Page 1 of 1

file uploading

Posted: Wed Apr 21, 2004 3:11 pm
by hward
how can i change what directory I want to upload to

Code: Select all

$parts = pathinfo($img1_name);
@copy("$img1", "/images/$stock_num.$partsїextension]") 
or die("Couldn't copy the file.");
www/admin/ where php page is
www/admin/images where page saves pics to now
www/images/ where i want to save it to

Posted: Wed Apr 21, 2004 3:15 pm
by kettle_drum
try "../images/mypics.gif"

Posted: Wed Apr 21, 2004 3:20 pm
by hward
ah yea the periods new it was something simple I was forgetting just couldn't find it anywhere


thanks alot