Page 1 of 1

Avoiding massive drag/drop in FTP Client

Posted: Thu Oct 02, 2008 3:56 pm
by <br>
I organize my sites with one massive index.php file that runs different code based on what URL the user is at... This is easy for updating code but when I update code that is displayed across every page in the site (the menu or footer for example) I end up dragging and dropping the updated index file into every file folder with FileZilla...

What's the best solution for this? An FTP client that allows you to upload a file to all subdirectories of a folder? Another way to structure my sites besides actually uploading a current index to each folder?

Thanks,
Jacob

Re: Avoiding massive drag/drop in FTP Client

Posted: Thu Oct 02, 2008 7:01 pm
by josh
people are going to offer many different views,
you could take your common header and footer functionality and extract them to their own file and then include() them.
You could use URL rewriting and a front-end controller. Copying the files around seems pretty tedious.

Re: Avoiding massive drag/drop in FTP Client

Posted: Sat Oct 25, 2008 9:33 pm
by mnsmfp
Hi,

I'm not sure if this will help but there is a tutorial online about how to easily install a drag and drop application using ajax and php.

http://www.easykiss123.com/?cat=15

hope it's something along the lines of what you're looking for.