Posts Tagged ‘site’

5 important steps to keep in mind when making a php site

First of all, I’d like to mention that this is not a post for an absolute beginner. This is more of a post for those who work with php and know their way around but who simply don’t know certain things about how you should make a php page. So, without further adu, the 5 important steps you should keep in mind when making a php site are:

1. Put all the essential data inside a config.php file. This way, you won’t have to rewrite the passwords and all the global variables inside each php file. And by global variables I mean those variables keep their value all over the site. If $var1 has the same value in index.php and gallery.php, why declair it twice?

What are the advantages of this? Read the rest of this entry »

permalinkRead More CommentComments (0) CatPhp tricks
CSS Template by RamblingSoul | Tomodachi theme by Theme Lab
Anime