Phpscripts4u - phpscripts4u.com

General Information:

Latest News:

Hacked. 29 May 2013 | 05:24 am

The site was hacked. Bleh. I’ll try to restore the best posts.

HTML Entity UTF8 Windows 1252 Character Encoding PHP Scripts 15 Jan 2013 | 02:00 am

HTML Entity UTF8 Windows 1252 Character Encoding PHP Scripts This is the one WordPress uses.     private function _seems_utf8($str)     {         $length = strlen($str);         for ($i=0; $i

Basic PHP Contact Form Script 24 Dec 2012 | 02:00 am

Basic PHP Contact Form Script accepts name, email and message as POST vars then strips tags (more security could be added here to prevent attacks, mysqli can be used but requires db connection to esca...

Recursive Zip Folder Using PHP no Absolute Realpath 18 Dec 2012 | 11:14 am

Code snippets and functions to Recursive Zip Folder Using PHP no Absolute Realpath. Was real tricky to get working so documenting some code snippets here for future reference. This function creates th...

Create Zip Archive of Folder and All Contents 5 Dec 2012 | 11:10 am

PHP code snippet to Create Zip Archive of Folder and All Contents – without the full directory path being included.

Display Stats From Specific Project using Google Analytics API 28 Nov 2012 | 02:00 am

Code snippet to Display Stats From Specific Project using Google Analytics API. Also see: Display List of Sites From Google Analytics API. Get Project ID You can get the project id from the report url...

Display List of Sites From Google Analytics API 28 Nov 2012 | 01:55 am

PHP Code snippet to Display List of Sites From Google Analytics API. Also see: Display Stats From Specific Project using Google Analytics API The Script setAccessType('online'); // default: offline $c...

Virtual Hosts Code Snippet 23 Nov 2012 | 02:00 am

This is how you can setup a new development environment in WAMP to work on a website from your local dev. Add this to your apache httpd.conf file. Change file path to your project folder. ServerName d...

Tell Apache/Google that a file is now GONE using htaccess 22 Nov 2012 | 04:00 pm

Tell Apache/Google that a file is now GONE using htaccess RewriteRule ^wp-content/themes/evolve/library/media/images/red-yellow/footer-top-red.jpg - [G,NC]

EC2 Instance CPU Montoring vs Cloudwatch 22 Nov 2012 | 05:13 am

Hey guys, just a screenshot showing how EC2 instance monitoring of the CPU is way off wack with Cloudwatch (detailed monitoring service). It’s showing like 100% CPU usage. So apparently the instance m...

Recently parsed news:

Recent searches: