Archive

Posts Tagged ‘php’

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

June 4th, 2008

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 more…

Php tricks , , ,

How to repair tables with a php file

May 30th, 2008

I just run recently on a problem that was affecting a forum that I administer. One of the forum’s table was marked as crashed and therefor the whole site wasn’t working. Since I’m not the root admin, I do not have complete access at the site’s resources. If I’d had mysql access, this could have been fixed easily. But I didn’t have. And I couldn’t wait for the root admin to come on-line, I had to do something. Fortunately, I did had ftp access so I made a php file that could fix that table for me. Here is the code: Read more…

Php tricks , , ,