<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>BNCScripts &#187; PHP tutorials</title>
	<atom:link href="http://bncscripts.com/blog/category/php-tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://bncscripts.com/blog</link>
	<description>BNCScripts is a tech blog . Topics focus on software, tips and tricks, tutorials, web design,  resources and inspiration</description>
	<lastBuildDate>Mon, 12 Jul 2010 20:45:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Passing JavaScript to a PHP script</title>
		<link>http://bncscripts.com/blog/198/passing-javascript-to-a-php-script/</link>
		<comments>http://bncscripts.com/blog/198/passing-javascript-to-a-php-script/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 17:32:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP tutorials]]></category>
		<category><![CDATA[pass  javascript array to php]]></category>
		<category><![CDATA[pass  javascript variables to php]]></category>
		<category><![CDATA[pass  php variable javascript]]></category>
		<category><![CDATA[Passing  information from Javascript to PHP]]></category>
		<category><![CDATA[Passing Javascript Variable to PHP]]></category>
		<category><![CDATA[Passing JavaScript variables to a PHP script]]></category>
		<category><![CDATA[passing javascript vars into php]]></category>

		<guid isPermaLink="false">http://bncscripts.com/blog/?p=198</guid>
		<description><![CDATA[Simple code that will help you to pass javascript to a php variable.

&#60;script language=”javascript”&#62;
var java= “Content from javascript”;
&#60;/script&#62;
&#60;?php
$php = ‘&#60;script  language=”javascript”&#62;document.write(java)&#60;/script&#62;’;
echo $php;
?&#62;
]]></description>
		<wfw:commentRss>http://bncscripts.com/blog/198/passing-javascript-to-a-php-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fatal error: Call to undefined function: curl_init()</title>
		<link>http://bncscripts.com/blog/196/fatal-error-call-to-undefined-function-curl_init/</link>
		<comments>http://bncscripts.com/blog/196/fatal-error-call-to-undefined-function-curl_init/#comments</comments>
		<pubDate>Mon, 31 May 2010 19:26:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP tutorials]]></category>
		<category><![CDATA[call  undefined function curl init ubuntu]]></category>
		<category><![CDATA[call  undefined function curl init wamp]]></category>
		<category><![CDATA[call  undefined function curl init xampp]]></category>
		<category><![CDATA[call to undefined function curl init]]></category>
		<category><![CDATA[call to undefined function curl init debian]]></category>
		<category><![CDATA[call to undefined function curl init iis]]></category>
		<category><![CDATA[Call to undefined function: curl_init()]]></category>
		<category><![CDATA[Fatal error: Call to undefined function: curl_init()]]></category>
		<category><![CDATA[typo3 call undefined function curl init]]></category>

		<guid isPermaLink="false">http://bncscripts.com/blog/?p=196</guid>
		<description><![CDATA[When you try to use cURL to open a file and you got that error &#8220;Fatal error: Call to undefined function: curl_init()&#8221; you must enabled cURL function from your php configuration php.ini
]]></description>
		<wfw:commentRss>http://bncscripts.com/blog/196/fatal-error-call-to-undefined-function-curl_init/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Get the Current Page URL</title>
		<link>http://bncscripts.com/blog/156/how-to-get-the-current-page-url/</link>
		<comments>http://bncscripts.com/blog/156/how-to-get-the-current-page-url/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 16:14:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP tutorials]]></category>
		<category><![CDATA[get  current page URL]]></category>
		<category><![CDATA[Get the Current Page URL]]></category>
		<category><![CDATA[Getting the current full URL in PHP]]></category>
		<category><![CDATA[PHP  Tutorials Examples Get Full URL]]></category>
		<category><![CDATA[PHP Get Current URL]]></category>

		<guid isPermaLink="false">http://bncscripts.com/blog/?p=156</guid>
		<description><![CDATA[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;
}
]]></description>
		<wfw:commentRss>http://bncscripts.com/blog/156/how-to-get-the-current-page-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to hide PHP Notice &amp; Warning Messages</title>
		<link>http://bncscripts.com/blog/149/how-to-hide-php-notice-warning-messages/</link>
		<comments>http://bncscripts.com/blog/149/how-to-hide-php-notice-warning-messages/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 21:08:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP tutorials]]></category>
		<category><![CDATA[hide php errors]]></category>
		<category><![CDATA[hide php notice]]></category>
		<category><![CDATA[hide warning messages]]></category>
		<category><![CDATA[how to hide php errors]]></category>
		<category><![CDATA[how to hide php notice]]></category>

		<guid isPermaLink="false">http://bncscripts.com/blog/?p=149</guid>
		<description><![CDATA[How to hide PHP Notice &#38; 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 [...]]]></description>
		<wfw:commentRss>http://bncscripts.com/blog/149/how-to-hide-php-notice-warning-messages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP : How to get the select values from a Drop Down list</title>
		<link>http://bncscripts.com/blog/123/php-how-to-get-the-select-values-from-a-drop-down-list/</link>
		<comments>http://bncscripts.com/blog/123/php-how-to-get-the-select-values-from-a-drop-down-list/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 22:27:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP tutorials]]></category>
		<category><![CDATA[get values from a from a multiple  input]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[select value from option]]></category>
		<category><![CDATA[select value from the Drop Down]]></category>

		<guid isPermaLink="false">http://bncscripts.com/blog/?p=123</guid>
		<description><![CDATA[This is the scenario
&#60;select name="cars"&#62;
   &#60;option value="volvo"&#62;Volvo&#60;/option&#62;
   &#60;option value="audi"&#62;Audi&#60;/option&#62;
   &#60;option value="toyota"&#62;Toyota&#60;/option&#62;
   &#60;option value="form"&#62;Ford&#60;/option&#62;
&#60;/select&#62;
This php code &#8211; get all everything between &#60;select&#62;
preg_match('/&#60;select name="foo"&#62;(.*)&#60;\/select&#62;/msU',$html,$matches);
print_r($matches);
]]></description>
		<wfw:commentRss>http://bncscripts.com/blog/123/php-how-to-get-the-select-values-from-a-drop-down-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Force File Download With PHP</title>
		<link>http://bncscripts.com/blog/120/how-to-force-file-download-with-php/</link>
		<comments>http://bncscripts.com/blog/120/how-to-force-file-download-with-php/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 22:12:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP tutorials]]></category>
		<category><![CDATA[force download]]></category>
		<category><![CDATA[force file download]]></category>
		<category><![CDATA[php download force]]></category>
		<category><![CDATA[php force download file]]></category>

		<guid isPermaLink="false">http://bncscripts.com/blog/?p=120</guid>
		<description><![CDATA[Here is a a simple code that will force the browser to download a file

 &#60;?php
$file = "www.mysite.com/myfile.gif";
header("Content-type: application/octet-stream");
header('Content-Disposition: attachment; filename="'.$filename.'";');
download($file);
exit;
?&#62;
Very simple &#8230; Don&#8217;t forget to subscribe for more tutorials
]]></description>
		<wfw:commentRss>http://bncscripts.com/blog/120/how-to-force-file-download-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple PHP BBCode</title>
		<link>http://bncscripts.com/blog/105/simple-php-bbcode/</link>
		<comments>http://bncscripts.com/blog/105/simple-php-bbcode/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 21:18:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP tutorials]]></category>
		<category><![CDATA[convert bbcode to html with php]]></category>
		<category><![CDATA[PHP BBCode]]></category>
		<category><![CDATA[Use BB Code in Your PHP Application]]></category>

		<guid isPermaLink="false">http://bncscripts.com/blog/?p=105</guid>
		<description><![CDATA[Many websites allow visitors to contribute to the sites&#8217;s content through forums, blogs etc . When you&#8217;re building such sites, it&#8217;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.

$text="[b]some text[b] using bbcode";

$find = array(
"'\[b\](.*?)\[/b\]'i",
"'\[i\](.*?)\[/i\]'i",
"'\[u\](.*?)\[/u\]'i",
"'\[link\](.*?)\[/link\]'i",
"'\[link=(.*?)\](.*?)\[/link\]'i",
"'\[quote=(.*?)\](.*?)\[/quote\]'",
"'\[quote\](.*?)\[/quote\]'",
);
$replace [...]]]></description>
		<wfw:commentRss>http://bncscripts.com/blog/105/simple-php-bbcode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Validate username in php</title>
		<link>http://bncscripts.com/blog/102/validate-username-in-php/</link>
		<comments>http://bncscripts.com/blog/102/validate-username-in-php/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 20:58:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP tutorials]]></category>
		<category><![CDATA[valid username php]]></category>
		<category><![CDATA[validate username]]></category>

		<guid isPermaLink="false">http://bncscripts.com/blog/?p=102</guid>
		<description><![CDATA[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)

$username="your username";
  if(!preg_match("/^[\.A-z0-9_\-]{1,15}$/i", $username)) echo "Your username must only contain valid characters, numbers and _";
]]></description>
		<wfw:commentRss>http://bncscripts.com/blog/102/validate-username-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Validate Email Address in PHP</title>
		<link>http://bncscripts.com/blog/99/validate-email-address-in-php/</link>
		<comments>http://bncscripts.com/blog/99/validate-email-address-in-php/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 20:49:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP tutorials]]></category>
		<category><![CDATA[Email Address Validation]]></category>
		<category><![CDATA[php validate email]]></category>
		<category><![CDATA[simple email validation]]></category>
		<category><![CDATA[Validate an E-Mail Address with PHP]]></category>
		<category><![CDATA[validate email address]]></category>

		<guid isPermaLink="false">http://bncscripts.com/blog/?p=99</guid>
		<description><![CDATA[PHP validate email script is an easy way to validate an email address. Use this quick and simple PHP regular expression for email validation.

$email='your email';

if(!preg_match("/^[\.A-z0-9_\-]+[@][A-z0-9_\-]+([.][A-z0-9_\-]+)+[A-z]{1,4}$/", $email)) echo "Not valid Email.";
]]></description>
		<wfw:commentRss>http://bncscripts.com/blog/99/validate-email-address-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to search for a string in txt file ?</title>
		<link>http://bncscripts.com/blog/95/how-to-search-for-a-string-in-txt-file/</link>
		<comments>http://bncscripts.com/blog/95/how-to-search-for-a-string-in-txt-file/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 20:30:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP tutorials]]></category>
		<category><![CDATA[php counter]]></category>
		<category><![CDATA[php search in file]]></category>
		<category><![CDATA[search for a string]]></category>
		<category><![CDATA[search in txt file]]></category>
		<category><![CDATA[searching for a string]]></category>

		<guid isPermaLink="false">http://bncscripts.com/blog/?p=95</guid>
		<description><![CDATA[One of our clients asked how to display the hits from his website that are stored in a txt file .
First of all we need to search for that specific link and then display the hits.

This is a part of the hits.txt file

thedomain.com/news/ 232
thedomain.com/pictures/ 574
thedomain.com/company/ 433

And the php solution

// we get the url of the [...]]]></description>
		<wfw:commentRss>http://bncscripts.com/blog/95/how-to-search-for-a-string-in-txt-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
