|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
FTP Upload problem
Hey there!
I got a problem here and would be really glad if someone could explain that to me: I have done a CMS for a company and this CMS works - among others - with php-triggered FTP to upload pictures. Now this script has been working for about half a year without any failures. But since a few weeks the script would not upload even a single picture. It keeps giving that error message when trying to upload: Warning: ftp_put(): open_basedir restriction in effect. File(/tmp/phpSL8kfg) is not within the allowed path(s): (/home/www/web662/) in /home/www/web662/html/admin/admin_datenbank_hinzufuegen.php on line 102 Now I guess that my host has probably changed some globals or such kinda stuff, since the script is supposed to upload the pictures to a certain subdirectory, while the error message indicates that it tries to upload the picture to a temp directory. Does anyone know which global var it could be that I am searching for? thx in advance for taking the time to read that ![]() |
|
#2
|
|||
|
|||
|
change the path in ur script to be something relative to your hosting dir
example : ./tmp/phpSL8kfg instead of /tmp/phpSL8kfg Your probably right though, it was probably ur host that changed something. |
|
#3
|
|||
|
|||
|
the path is and has always been relative
the path is:/immobilien the prob seems to be that the FTP would not upload it to /immobilien but to ./tmp/phpSL8kfg Might that be a global variable problem? I am not used to global variables at all. So I can only assume... and if so, how could I exclude that special global var? best regards ![]() |
|
#4
|
|||
|
|||
|
ttt
|
|
#5
|
|||
|
|||
|
plz, anyone?
![]() |
|
#6
|
|||
|
|||
|
once again topping that...
|
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > FTP Upload problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|