Page 1 of 1

update picture

Posted: Tue Dec 14, 2004 1:44 am
by C_Calav
can anyone point me in the right direction on how to update a picture?

or isnt this done?

Posted: Tue Dec 14, 2004 2:01 am
by rehfeld
use ftp

Posted: Tue Dec 14, 2004 3:33 am
by kettle_drum
And by updating you mean?

Posted: Tue Dec 14, 2004 3:49 am
by C_Calav
sorry i should have explained my self more.

what i wanted to achieve i have done, just used the insert pic script for a update pic script.

when i mean update pic, i mean update the pic's file name.

what i have so far -

Insert Script: enter some details, then upload a pic

Update Script: update details and update pic file name

i just used insert pic, for update pic.

works fine.

only prob is you'll have 2 pics the same in your dicrectoy but with different file names

Posted: Tue Dec 14, 2004 5:15 am
by kettle_drum
If your left with two of the same you can use unlink() to delete one. Are you not just using rename() to rename the image?

Posted: Tue Dec 14, 2004 2:36 pm
by C_Calav
the user is renaming the file manualy, i will look into the rename() function, thanx kettle_drum!