![]() |
|
| |||||||
| Notices |
| mySQL & PHP Discussions, information and help with mySQL and PHP. |
![]() |
| | LinkBack | Thread Tools |
|
#1
| |||
| |||
|
How to override default php settings like "include path" etc ? I am trying to upload file to a dir and get the following error - Warning: move_uploaded_file(): open_basedir restriction in effect. File(/public_html/connect/fup/WSREG32.LOG) is not within the allowed path(s): (/home/qmsys3d:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/qmsys3d/public_html/connect/fup/fupload.php on line 6 Please Advice. (test url -> http://connect.qmsys.info/fup) fupload.php code -> ----------------- <?php $uploadDir = '/public_html/connect/fup/'; $uploadFile = $uploadDir . $_FILES['userfile']['name']; $userfile = $_FILES['userfile']['name']; print "<pre>"; if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadFile)) { print "File is valid, and was successfully uploaded. "; // print "Here's some more debugging info:\n"; // print_r($_FILES); } else { print "Possible file upload attack! Here's some debugging info:\n"; print_r($_FILES); } print "</pre>"; ?> |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| embedding RSS Feed via PHP | wgreene | mySQL & PHP | 4 | 05-20-2008 03:06 AM |
| how do i insert php? | GiGoLo | mySQL & PHP | 1 | 11-19-2005 12:04 PM |
| Please help with PHP / SQL | alexw | mySQL & PHP | 2 | 11-16-2005 02:31 AM |
| Question on PHP settings | lostingamma | mySQL & PHP | 2 | 11-13-2005 10:12 PM |
| PHP Cart? | avimia | General Support Issues | 3 | 10-02-2005 12:39 PM |