Problem in Uploading Files using Register Global on/off

Thread Solved

Join Date: Sep 2006
Posts: 84
Reputation: rinoa04 is on a distinguished road 
Solved Threads: 4
rinoa04's Avatar
rinoa04 rinoa04 is offline Offline
Junior Poster in Training

Problem in Uploading Files using Register Global on/off

 
0
  #1
Oct 13th, 2006
Hello... I have one curiosity that I need to solve. I hope anyone who know the problem tell me reason why is this so. I have done a php/mysql application some time ago and I encounter this problem while testing on using coding with register_global on and register_global off. I usually write my coding when register_global is on in which is not a good practice.

The problem is:
I try two same coding in which one with register_global on and another one with register_global off to upload a file to server. It works fine but the files used to be uploaded disappear from the source destination although the file did upload to the destination server file. This happened to the coding with register_global off.

Can anyone tell why is that so. Thank you.
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 133
Reputation: sn4rf3r is an unknown quantity at this point 
Solved Threads: 2
sn4rf3r's Avatar
sn4rf3r sn4rf3r is offline Offline
Junior Poster

Re: Problem in Uploading Files using Register Global on/off

 
0
  #2
Oct 13th, 2006
can you post the code? Also you might want to check here: http://us2.php.net/features.file-upload

there is a working example on file uploading.
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 84
Reputation: rinoa04 is on a distinguished road 
Solved Threads: 4
rinoa04's Avatar
rinoa04 rinoa04 is offline Offline
Junior Poster in Training

Re: Problem in Uploading Files using Register Global on/off

 
0
  #3
Oct 15th, 2006
Thank you for the help. I know what is the problem now. It was cause by the unlink($file) statement in the coding. That is why the file is missing after uploading.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC