phpnuke. File uploading?
- RichL
-
RichL
- Member since: Apr. 2, 2000
- Offline.
-
- Forum Stats
- Member
- Level 05
- Blank Slate
Right then lads- heres another one which i hope you will ponder over with me! i am completely stumped. Now, i have installed (and am trynig out php-nuke) i try to upload *.anything and it gives me the following error:
Warning: open_basedir restriction in effect. File is in wrong directory in /web/sites/185/testing12345/www.testing12345.f2s.com/html/admin.php on line 206
Warning: Cannot add header information - headers already sent by (output started at /web/sites/185/testing12345/www.testing12345.f2s.com/html/admin.php:206) in /web/sites/185/testing12345/www.testing12345.f2s.com/html/admin.php on line 217
Its F2S so its not too great (i didnt want to put it on my real host just yet), but the file manager included can create dirctorys and all that..but it wont upload files. And before you say it, i have CHMODded all files and dirctorys to 666 and 777.
Could use your help please ;)
- liljim
-
liljim
- Member since: Dec. 16, 1999
- Offline.
-
- Send Private Message
- Browse All Posts (11,644)
- Block
-
- Forum Stats
- Staff
- Level 28
- Blank Slate
At 7/9/01 04:40 AM, RichL wrote: Warning: open_basedir restriction in effect. File is in wrong directory in /web/sites/185/testing12345/www.testing12345.f2s.com/html/admin.php on line 206
What directory is it you're attempting to upload to?
Warning: Cannot add header information - headers already sent by (output started at /web/sites/185/testing12345/www.testing12345.f2s.com/html/admin.php:206) in /web/sites/185/testing12345/www.testing12345.f2s.com/html/admin.php on line 217
Have you, perchance, been editing the files using something like DreamWeaver? These errors occur when there's whitespace before the initial <? tag - which DreamWeaver's particularly good at adding. functions that send header information must be executed before ANY html tags And / Or whitespace. It's to do with output buffering - though there's talk of sorting this out to make life easier for sloppy programmers in future releases. :)
- RichL
-
RichL
- Member since: Apr. 2, 2000
- Offline.
-
- Forum Stats
- Member
- Level 05
- Blank Slate
At 7/9/01 06:04 AM, liljim wrote:At 7/9/01 04:40 AM, RichL wrote: Warning: open_basedir restriction in effect. File is in wrong directory in /web/sites/185/testing12345/www.testing12345.f2s.com/html/admin.php on line 206What directory is it you're attempting to upload to?
Warning: Cannot add header information - headers already sent by (output started at /web/sites/185/testing12345/www.testing12345.f2s.com/html/admin.php:206) in /web/sites/185/testing12345/www.testing12345.f2s.com/html/admin.php on line 217Have you, perchance, been editing the files using something like DreamWeaver? These errors occur when there's whitespace before the initial <? tag - which DreamWeaver's particularly good at adding. functions that send header information must be executed before ANY html tags And / Or whitespace. It's to do with output buffering - though there's talk of sorting this out to make life easier for sloppy programmers in future releases. :)
Im trying to upload to basically any directory. Is it possible that F2S has restrictions? The whole php nuke is installed into address.f2s.com/html/index.php, is the /html/ subdirectory causing this problem?
And i dont use DreamWeaver..i dont like using WYSIWYG editors! I have tried to upload .gif and .jpg images as well as .html files so it cant be a problem with the file itself. Also- its hard for me to see whats wrong with the code as it is php-nuke, and alot of the code is in different places. Its hard to find the actual piece of code which might be wrong..but i seriously doubt it as thousands of people use php-nuke..and there hasnt been any reports of it not working as yet!
Any thoughts on it at all please put them across
- aladinsane
-
aladinsane
- Member since: Jan. 17, 2000
- Offline.
-
- Forum Stats
- Member
- Level 21
- Blank Slate
Like Jim said it sounds like a whitespace problem. I get that all the time when installing pre-written scripts. Take a look at the admin.php file and check if there is an empty line at the bottom after the closing php tag, if so delete that line and upload it again.
- RichL
-
RichL
- Member since: Apr. 2, 2000
- Offline.
-
- Forum Stats
- Member
- Level 05
- Blank Slate
At 7/9/01 06:19 AM, aladinsane wrote: Like Jim said it sounds like a whitespace problem. I get that all the time when installing pre-written scripts. Take a look at the admin.php file and check if there is an empty line at the bottom after the closing php tag, if so delete that line and upload it again.
Apart from the headers, i would still get the base_dir error. It is slightly possible that as i have the whole of phpnuke in a sub directory..webpage.f2s.com/nuke/ and it needs to be installed onto page.f2s.com/ for file upload to work properly? Has anyone else used phpnuke and ever got this problem? Php nuke is perfect..so this is very frustrating that one of the best features doesnt work!
P.S. it does create files..create dirs..edit..delete..all files..the ONLY thing is does not do is UPLOAD files!
- liljim
-
liljim
- Member since: Dec. 16, 1999
- Offline.
-
- Send Private Message
- Browse All Posts (11,644)
- Block
-
- Forum Stats
- Staff
- Level 28
- Blank Slate
At 7/9/01 06:35 AM, RichL wrote: Apart from the headers, i would still get the base_dir error. It is slightly possible that as i have the whole of phpnuke in a sub directory..webpage.f2s.com/nuke/ and it needs to be installed onto page.f2s.com/ for file upload to work properly? Has anyone else used phpnuke and ever got this problem? Php nuke is perfect..so this is very frustrating that one of the best features doesnt work!
P.S. it does create files..create dirs..edit..delete..all files..the ONLY thing is does not do is UPLOAD files!
Hrms. I just had a look at the PHP info for f2s.com - it appears to be set to /web/sites locally, which means that your file could be attempting to upload to a directory outside your document root... That shouldn't have anything to do with the header information errors though.
Incidentally, what file types are you attempting to upload? You're permitted to upload:
image/gif - gifs
image/x-xbitmap - bitmap files.
image/jpeg - Jpeg
image/pjpeg - Jpeg
application/vnd.ms-excel - Microsoft Excel
application/msword - Microsoft Word
- liljim
-
liljim
- Member since: Dec. 16, 1999
- Offline.
-
- Send Private Message
- Browse All Posts (11,644)
- Block
-
- Forum Stats
- Staff
- Level 28
- Blank Slate
At 7/9/01 07:22 AM, liljim wrote: it appears to be set to /web/sites locally <snip>
when he intended to write
the base dir... etc
- RichL
-
RichL
- Member since: Apr. 2, 2000
- Offline.
-
- Forum Stats
- Member
- Level 05
- Blank Slate
At 7/9/01 07:24 AM, liljim wrote:At 7/9/01 07:22 AM, liljim wrote: it appears to be set to /web/sites locally <snip>when he intended to writethe base dir... etc
Currently i have only tried uploading .gif, .jpg and a .html file. If we put aside the whitespace errors (i should be able to fix this)- would you mind me sending you the filemanager.php file? or do you have any other ideas? (or is it the fact that i have it in a subdirectory)

