PHP
Insert XML Data to MySql Table
Input XML Data <?xml version="1.0" encoding="UTF-8"?> <items> <item> <title>PHP Shopping Cart with PayPal Payment Gateway Integration</title> <link>http://phppot.com/php/php-shopping-cart-with-paypal-payment-gateway-integration/</link> <description>Shopping cart checkout ... Read More
PHP Code to Convert Array to XML
<?php $input_array = array( 'article' => array( array( 'title' => 'Favorite Star Rating with jQuery', 'link' => 'http://phppot.com/jquery/dynamic-star-rating-with-php-and-jquery/', 'description' => ... Read More
PHP Functions to Clean User Input
<?php function cleanInput($input) { $search = array( '@<script[^>]*?>.*?</script>@si', // Strip out javascript '@<[\/\!]*?[^<>]*?>@si', // Strip out HTML tags '@<style[^>]*?>.*?</style>@siU', // ... Read More