Using .htaccess 












Using .htaccess/.htpasswd Password Protection 





Coding Tips 








Uploads and Downloads 



Mail 
see it on this page





Working with Images 


Frequently Requested Website Functionality 
see it on this page
see it on this page
see it on this page
see it on this page











Using PHP 




Website Managment 








Other Tips 









Clean up your PHP scripts
Scripting in php can get very messy. Typically you build your html as you go, so you have your php logic and your html all mixed up. IMHO, a better way is to separate your html from your php logic. Then you can edit your html page in a standard html editor, and work on your logic independently. This will make your site much easier to maintain. You can build very complex sites in this way, while keeping your scripts easy to understand. Build the variable content of your page in php, put the variable names in your html, and then as the last php line use this:
<?php
eval("echo(\"".str_replace("\"","\\\"",file_get_contents('page.htm'))."\");");
?>
<?php
eval("\$variable = \"".str_replace("\"","\\\"",file_get_contents('page.htm'))."\";");
?>
