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
Avoiding massive drag/drop in FTP Client
Moderator: General Moderators
Re: Avoiding massive drag/drop in FTP Client
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.
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
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.
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.