Cedik on June 7th, 2008
I recently started coding a site, based on theme made in Photoshop for one of my friends and I also had to make my own feedback form for that site, where the visitors could leave their opinion about the site. This feedback page also has the possibility to limit the number of characters that can be posted, and it also display how much of those characters you have used, thanks to a javascript code taken from DynamicDrive. In order to use this feedback form, you’ll also need a MySql database and access to it. First of all, insert this code in the head of your document (it’s used for the part that limits the number of characters in the comment) Read the rest of this entry »
Cedik on 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 the rest of this entry »
Cedik on June 1st, 2008
No-cache and no-store tags not working? It happened to me too. I tried all the tricks: the pragma meta tags, the cache-control meta tags, I even made the page have an expiration date from the past. Useless! All of these tactics were useless agains Internet Explorer and Opera. They only worked on Firefox and Safari.
You see, I made this script that updated an image every time someone went to the next page. The image was modified by the php command before the < img src > tag was output but still… no matter what I did, IE and Opera used to run that image from their cache, so the user had to reload the page in order to see the newly generated image. But I managed to get things going. Read the rest of this entry »
Cedik on 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 the rest of this entry »