FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old February 22nd, 2004, 09:45 AM
mithril mithril is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 344 mithril User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 2 h 30 m 7 sec
Reputation Power: 6
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

Reply With Quote
  #2  
Old February 22nd, 2004, 10:32 AM
MO_PAshun MO_PAshun is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Salt Lake City, Utah
Posts: 120 MO_PAshun User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via MSN to MO_PAshun
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.

Reply With Quote
  #3  
Old February 22nd, 2004, 11:20 AM
mithril mithril is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 344 mithril User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 2 h 30 m 7 sec
Reputation Power: 6
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

Reply With Quote
  #4  
Old February 23rd, 2004, 08:52 AM
mithril mithril is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 344 mithril User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 2 h 30 m 7 sec
Reputation Power: 6
ttt

Reply With Quote
  #5  
Old February 25th, 2004, 12:10 PM
mithril mithril is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 344 mithril User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 2 h 30 m 7 sec
Reputation Power: 6
plz, anyone?

Reply With Quote
  #6  
Old February 27th, 2004, 03:27 PM
mithril mithril is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 344 mithril User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 2 h 30 m 7 sec
Reputation Power: 6
once again topping that...

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > FTP Upload problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway