file uploading

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hward
Forum Contributor
Posts: 107
Joined: Mon Apr 19, 2004 6:19 pm

file uploading

Post 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
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post by kettle_drum »

try "../images/mypics.gif"
hward
Forum Contributor
Posts: 107
Joined: Mon Apr 19, 2004 6:19 pm

Post by hward »

ah yea the periods new it was something simple I was forgetting just couldn't find it anywhere


thanks alot
Post Reply