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
PHP Tips
Other Categories: Application Architecture, Databases, News, Pear, PHP Functions, Setup & Installation, Site Operation, Tools, and Tricks & Hacks.
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 code prevents session hijacking. It compares the ip number of the creator with that of the user of the session. If they don’t match it gives an
I had once needed to run two MySQL servers from the same binary one with Transactional support and another without. The procedure followed is
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