Page 1 of 1

Can not find the file i upload ..

Posted: Sun Dec 03, 2006 2:45 pm
by suntzu
Hi to everyone,

I am quite new in PhP and brand new on this forum ... so i want you to be gently with me :lol:

The problem i face is that i can not locate the file i am downloading. I use my personal PC as localhost by setting up Apache 2.2, MySql, PhP.

So, i run phpinfo() and it seems that the variable upload_tmp_dir has no value. But, when i open the php.ini file change it and run phpinfo() again i can not see the change. It is like nothing changed ...

Is this my problem or something else is wrong?
Do the files uploaded to the temporary folder are deleted automatically after the script execution?
thnx.

Posted: Sun Dec 03, 2006 5:29 pm
by feyd
What code are you using that you've determined the file disappeared?

Posted: Sun Dec 03, 2006 5:34 pm
by potato
maybe restart your apache after you have changed your php.ini

Posted: Mon Dec 04, 2006 2:35 am
by suntzu
feyd and Bevibed.be thank you for your replies ...

I think i have resolved my problem :oops: as a newbie while using the target path i put a forward / in front of my directory, something like this ..

$target_path = "/uploads/";

When i removed it and replace it with $target_path = "uploads/"; it worked.

soryyyy ....