SCExamples's profile picture. http://SourceCodeExamples.com

SourceCode Examples

@SCExamples

http://SourceCodeExamples.com

Detect Mobile browsers: class Mobile_Detect { protected $accept; protected $userAgent; protected $isMobile = fal... tinyurl.com/bpz87cw


Get current domain name: //Returns current domain and extension without www function curdomain() { $pageUR1 = pr... tinyurl.com/7rtbl5z


Get current page URL: function curPageURL() { $pageURL = 'http'; if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s"... tinyurl.com/77a9qz9


Age from DATE: This little function returns the age for this DATE (MySQL format) //Input format: YYYY-MM-DD func... tinyurl.com/855tyw6


Validate JSON format: //Check if a string is json format function is_json($json) { if ( preg_match('/^\{[^>]+\}$... tinyurl.com/6uxpcol


Get visitor IP address: //Return ip address of the visitor function ipadress() { return $_SERVER["REMOTE_ADDR"]; } tinyurl.com/6n5dpht


SourceCode Examples أعاد

Check our new virtual Stockmarket! enion.net RT


PHP Transform string to UTF-8 encoding: Here are some nice pieces of code that allow you to make all your data (... tinyurl.com/7se669m


Validate creditcard number: This piece of code will check if a creditcard number could possibly be valid, determined… tinyurl.com/3jw4cpw


Validate dutch bank account: This is a piece of code used to validate bank account numbers in the Netherlands,… tinyurl.com/3sz2d9m


Basic HTML5 site structure: This is a basic structure you can use for HTML5 pages. Please note, HTML5 is… tinyurl.com/3kstzvz


Simple file upload script: Here’s a simple script to upload a file to your webserver. You could combine this… tinyurl.com/3vxgokl


Align a website in the center: This CSS code will align your website in the center of the page, horizontal... tinyurl.com/3f2suw5


Date and time format like Facebook: This short PHP script will return a Facebook-like date and time format... tinyurl.com/4xvww97


Execute a PHP file in the background: This Ajax script will execute a PHP file on the background. It could... tinyurl.com/3lvt55l


Sleep (wait for X seconds): The following script will pause your javascript for x seconds (miliseconds act... tinyurl.com/3mr5sak


Mysql database connection: This is a simple example of how you could create a database connection from PHP… tinyurl.com/3jmjkhv


Timed redirect (redirect after x seconds): This piece of code will forward the user to a certain page afte... tinyurl.com/3cr8xb6


United States الاتجاهات

Loading...

Something went wrong.


Something went wrong.