
SourceCode Examples
@SCExamples
http://SourceCodeExamples.com
You might like
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
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 Trends
- 1. Ohtani 201K posts
- 2. Dodgers 245K posts
- 3. Dodgers 245K posts
- 4. Carson Beck 16.2K posts
- 5. $SAWA 1,659 posts
- 6. Miami 98.6K posts
- 7. Louisville 27.6K posts
- 8. Nebraska 17.6K posts
- 9. Brewers 54.7K posts
- 10. Babe Ruth 3,159 posts
- 11. NLCS 57.3K posts
- 12. Emiru 4,993 posts
- 13. #SmackDown 56.3K posts
- 14. Rhule 4,547 posts
- 15. #BostonBlue 7,719 posts
- 16. Minnesota 47.2K posts
- 17. 3 HRs 9,921 posts
- 18. George Santos 79.9K posts
- 19. 10 Ks 4,362 posts
- 20. Massie 28.1K posts
Something went wrong.
Something went wrong.