In order to avoid the hassle of doing a fopen, fread etc, you can read a file using the following one
PHP Tips
Other Categories: Application Architecture, Databases, News, Pear, PHP Functions, Setup & Installation, Site Operation, Tools, and Tricks & Hacks.
put this at the very beginning of your php this powerful hack implies to have *.yourdomain actually pointing to it. first check
For those of you who host multiple sites on your server but only have one ip, and no dns server. Maybe your hosting on your home dsl line and using a
After spending hours looking around for something enable me to use HTML tags in form fields I found the following:
This is a php initiated javascript clock. After seeing many requests for such an example, and needing one myself at one
This is code that I altered from a project I am working on. I have simplified it by taking out a confusing
In the php.ini file, you can set the variables auto_prepend_file and auto_append_file, so that php will automatically add a file before and after
If you fancy a real challenge, check out my guide to using cookies on your WAP-enabled mobile phone. The worked examples show how to determine if
To get MySQL to work with the PHP 5 copy /dll/libmySQL.dll to the directory where php 5 resides and copy the /extensions/php_mysql.dll to
Okay so you want to make a quick if in the middle of a string. You could to a quick function to return one value if a condition is true