Curl and File Ownership in PHP

i'm setting up a software and on some functions i get the several error messages, the first one of which is:

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/hotelcom/public_html/link_mgr/_libs/html.php(2) : eval()'d code on line 303

after looking around on forums, it seems that it is advised to contact hosting company because it's a problem with server's handling of curl in some versions of PHP


I've disabled the open_basedir restriction on which should fix this curl error for you.

that error message is gone
the other error messages are:

Database Access ErrorPHP Error: [2] fopen(/home/hotelcom/public_html//link_mgr/_Data/Links.cgi) [function.fopen]: failed to open stream: Permission denied [Line: 102] [File: /home/hotelcom/public_html/link_mgr/_database/database.php]Database Access ErrorOpen the Table Links (for APPEND) failedDatabase Access ErrorQuery 'INSERT INTO Links (parentdir, name, showlink, checklink, usermail, approved, description, datecreated, linkchecked, linkverified, verifycount, failedcount) VALUES (, 'testing hotel', '', '', This email address is being protected from spambots. You need JavaScript enabled to view it.', 0, 'test rootsreggae bookhostel for us', 1196184114, 1196184114, 1, 1, 0)' failedWarning: Cannot modify header information - headers already sent by (output started at /home/hotelcom/public_html/link_mgr/_database/util.php:444) in /home/hotelcom/public_html/link_mgr/addlink.php on line 81

But I guess that's nothing to do with you.
I put that up just in case it has. Just trying my luck in order to save a dozen hours tyring to understand forums in case u already know it's server ralated.
Please just tell me if it's related to hosting (and probably not) and i'll keep on looking.
Thanks again


These look like scripting errors, let us know if you find any more hosting problems!
Please let us know if there is anything further we can do.

actually looks like it might be server related after all, it seems that i have that file ownership problem on some files in the link_mgr directory (i cant' change permission on some files there)
could you please reset file ownership on all files the link_mgr folder please, it might be the problem coz probably if file ownership is set to "nobody" then they can't be updated I guess.. I saw that for the files "header.php" and "footer.php" in the "_template" folder, but it's probably the case for more files.
if you can perform the operation on whole folders rather than files by files , can you reset that ownership for the whole "link_mgr" folder please.
Thanks a lot

I have changed the ownership to hotelcomon ever file within link_mgr

Please let us know if we can assist you further.

This website uses Cookies