Padgoi Posted August 18, 2008 Share Posted August 18, 2008 Ok, so I have this script that displays all images in a particular directory. I want to add 3 links under each image so that if I click one of those links, it will move that image from one directory to another directory. If I click another link, it will move it to another directory. And if I click a third link, it will delete the image. Can anyone help me with this? I'd be very appreciative. Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/120258-php-help-if-click-link-move-file-to-other-directory/ Share on other sites More sharing options...
genericnumber1 Posted August 18, 2008 Share Posted August 18, 2008 I've found this to be a good intro to file handling in php... http://www.kirupa.com/developer/php/filehandling.htm Also, as for that intro, look into scandir() for a shortcut alternative to the methods used on page 2. Link to comment https://forums.phpfreaks.com/topic/120258-php-help-if-click-link-move-file-to-other-directory/#findComment-619520 Share on other sites More sharing options...
Padgoi Posted August 18, 2008 Author Share Posted August 18, 2008 Thanks, but my PHP skills are really limited and I'm honestly looking for something very simple that if I click a certain link, it will copy the file to another directory, that's it. Link to comment https://forums.phpfreaks.com/topic/120258-php-help-if-click-link-move-file-to-other-directory/#findComment-619522 Share on other sites More sharing options...
genericnumber1 Posted August 18, 2008 Share Posted August 18, 2008 I was "helping you with this" It's rare that you will find someone who will write a whole script for you. Your most available option to get this done easily (and for free) is to learn through doing it yourself! Link to comment https://forums.phpfreaks.com/topic/120258-php-help-if-click-link-move-file-to-other-directory/#findComment-619539 Share on other sites More sharing options...
Padgoi Posted August 18, 2008 Author Share Posted August 18, 2008 I didn't realize I needed a whole script to simply move a file from one directory to another by clicking a button. Sorry. Link to comment https://forums.phpfreaks.com/topic/120258-php-help-if-click-link-move-file-to-other-directory/#findComment-619540 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.