GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 30-Mar-2007, 07:54
Kacyndra's Avatar
Kacyndra Kacyndra is offline
Member
 
Join Date: May 2005
Location: Maryland
Posts: 230
Kacyndra will become famous soon enough

CHMOD Question :)


hi,
i have this very simple upload script, that i'm trying to modify.
basically, something is wrong w/ my direcotory structure, because i keep getting a CHMOD error, but when i upload a file, it flashes an error on the page, and then redirects somewhere else.

how can i see that error?

you can see it here:

http://www.xrumxrum.com/test/upload/upload.php


if you try it, upload a .txt file, and see what happens.

any help would be greatly appreciated!
Thanks!
__________________
Xrum!
  #2  
Old 30-Mar-2007, 08:06
Kacyndra's Avatar
Kacyndra Kacyndra is offline
Member
 
Join Date: May 2005
Location: Maryland
Posts: 230
Kacyndra will become famous soon enough

Re: CHMOD Question :)


i fixed the CHMOD error, however, i'm still very interested if anyone knows how to catch that "flashy" error message that goes away after a second.

Thanks!
__________________
Xrum!
  #3  
Old 30-Mar-2007, 20:19
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough

Re: CHMOD Question :)


I tried uploading a file just now.

I got this error: change permission to 777 failed!!.

If you want to suppress that error (warning) message, you could simply disable it for the function by prepending an asterisk '@'. E.g.:

if( @move_uploaded_file() )....

Within a PHP script, you could redirect by using the header() function. For example:

PHP Code:

header( "Location: http://www.xrumxrum.com/test/upload/upload.php?message=" . urlencode($message) ); 



What you have now is this:

HTML Code:
... <script>window.location.href='http://www.xrumxrum.com/test/upload/upload.php?message=change permission to 777 failed!!'</script> </body> </html>
 
 

Recent GIDBlogProblems with the Navy (Enlisted) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple modules compilation: begginer's question bithead C Programming Language 7 25-May-2005 21:36
non-member function question crq C++ Forum 1 03-Feb-2005 21:59
Simple question on arrays--please help! brookeville C++ Forum 16 17-Nov-2004 23:23
Repetition structure problem and question brookeville C++ Forum 17 29-Oct-2004 17:48
question of practice magiccreative C++ Forum 1 06-Feb-2004 07:17

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 07:11.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.