Can not find the file i upload ..

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
suntzu
Forum Newbie
Posts: 2
Joined: Sun Dec 03, 2006 2:19 pm

Can not find the file i upload ..

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

What code are you using that you've determined the file disappeared?
User avatar
potato
Forum Contributor
Posts: 192
Joined: Tue Mar 16, 2004 8:30 am
Location: my lovely trailer, next to the big tree

Post by potato »

maybe restart your apache after you have changed your php.ini
suntzu
Forum Newbie
Posts: 2
Joined: Sun Dec 03, 2006 2:19 pm

Post 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 ....
Post Reply