Defenition:
“On Page” SEO simply refers to the text and content on your web site pages. Basically editing your page and content so the Search Engine can find your webpage when a surfer is searching for your web sites particular topic.
Defenition:
“On Page” SEO simply refers to the text and content on your web site pages. Basically editing your page and content so the Search Engine can find your webpage when a surfer is searching for your web sites particular topic.
When we write code we love to format it nicely adding tabs, line breaks and indentations, but the end user isn’t interested in how lovely the source code is, they just want the page content, so this script strips out all the line breaks and spaces in your code and puts it on one line, compressing your code and making it faster.
I threw this little script together today when checking why a PHP/Flash/MySQL application has stopped working.
The application itself looks and works fine, but I suspected a firewall block between the web server and database server. Without SSH access to this shared server I had to get inventive.
So I tested that PHP could open a socket on the right port to my server…
Today i will give you a function to print php array as php code format.
To print, you can use this function:
Go to your xampp install directory ->apache/bin, there you should have php.ini file.
find this line:
;extension=php_memcache.dll
and replace it with:
extension=php_memcache.dll
Today i will instruct you how to create simple count down redirect page by javascript.
Here’s a script that actually counts down the seconds until you are redirected
Memcache is a great caching tool available for nearly every scripting or programming environment. I use it with PHP to speed up some applications I have written by completely avoiding asking the database for information. I wanted a very clean way of implementing this in my various projects, with as little change to the existing code as possible. Since memcache is an OBJECT caching system, you can’t simply drop your mysql_query resource into memcache, ask for it at another time, and get your results back … Which is how I had originally thought it worked the first time I read about it. The good news is that it can also store Strings, Integers, Floats, Arrays etc … Below I have a few other things I’ve learned whilst using memcache as well as the caching script I use for database queries.
INSERT … ON DUPLICATE KEY UPDATE is very powerful but often forgotten MySQL feature. It was introduced in MySQL 4.1 but I still constantly see people unaware of it.
Myself I like this feature big deal because it is designed in truly MySQL style – very efficient solution for freqent task while keeping it beautiful and easy to use.
Every once in a while I need to process a HUGE file. Though PHP probably isn’t the most efficient way of processing the file, I’ll usually use PHP because it makes coding the processing script much faster. To prevent the script from timing out, I need to increase the execution time of the specific processing script. Here’s how I do it.
PHP Fatal error: Out of memory (allocated 45236595) (tried to allocate 74521 bytes) in /home/xxxxx/public_html/xyz/admin.php(154) on line 40
Solution is to increase the memory allocated for PHP.