Posted by admin in BNCScripts, PHP tutorialsJan 13th, 2013 | Comments Off on How to detect tablet devices with php
Posted by admin in BNCScripts, PHP tutorials, ResourcesOct 28th, 2010 | 1 Comment
In this post I will tell you how you can add your rss feed to twitter. Are you tired of spending so much time tweeting on Twitter? Spend your valuable time and efforts on managing you business instead of marketing all of the time.
Posted by admin in BNCScripts, PHP tutorialsOct 28th, 2010 | Comments Off on Rss feed in twitter
Do you have an rss feed and you don’t know how you can post the items to your twitter account without moving any finger ? You can use BNC Automatic Rss to Twitter – the easiest way to get your message across on Twitter.
Posted by admin in PHP tutorialsMay 31st, 2010 | Comments Off on Fatal error: Call to undefined function: curl_init()
When you try to use cURL to open a file and you got that error “Fatal error: Call to undefined function: curl_init()” you must enabled cURL function from your php configuration php.ini
Posted by admin in PHP tutorialsMar 28th, 2010 | Comments Off on How to Get the Current Page URL
Here is a php little function that will help you to get the current page url
$pageURL = $_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://';
$pageURL .= $_SERVER['SERVER_PORT'] != '80' ? $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"] : $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
Posted by admin in PHP tutorialsDec 1st, 2009 | Comments Off on PHP : How to get the select values from a Drop Down list
This is the scenario
This php code – get all everything between <select>
Posted by admin in PHP tutorialsDec 1st, 2009 | Comments Off on How To Force File Download With PHP
Here is a a simple code that will force the browser to download a file
Posted by admin in PHP tutorialsOct 30th, 2009 | Comments Off on Simple PHP BBCode
Many websites allow visitors to contribute to the sites’s content through forums, blogs etc . When you’re building such sites, it’s a good idea to provide users with the ability to enhance that content by posting formatted text. Here is a simple example of how to use bbcode with php.
Posted by admin in PHP tutorialsOct 30th, 2009 | Comments Off on Validate username in php
Use this simple code to validate the usernames in php ( maybe you need to a user registration ). The username will have only characters, numbers and _ (underscore)