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
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 tutorialsJun 7th, 2010 | Comments Off
Simple code that will help you to pass javascript to a php variable.
Posted by admin in PHP tutorialsMay 31st, 2010 | Comments Off
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
Here is a php little function that will help you to get the current page url
function CurrentPageURL()
{
$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'];
return $pageURL;
}
Posted by admin in PHP tutorialsJan 15th, 2010 | Comments Off
How to hide PHP Notice & Warning Messages. The PHP notice errors are frustrating and you are tired of seeing them when you are working on your scripts. They are showed at the beggining of your pages and may reveal confidential information to the visitor like the path to the file or the php file name in some cases.
Posted by admin in PHP tutorialsDec 1st, 2009 | Comments Off
This is the scenario
<select name="cars">
<option value="volvo">Volvo</option>
<option value="audi">Audi</option>
<option value="toyota">Toyota</option>
<option value="form">Ford</option>
</select>
This php code – get all everything between <select>
preg_match('/<select name="foo">(.*)<\/select>/msU',$html,$matches);
print_r($matches);
Posted by admin in PHP tutorialsDec 1st, 2009 | Comments Off
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
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
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)