<?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>TechiesWeb &#187; PHP</title>
	<atom:link href="http://www.techiesweb.net/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techiesweb.net</link>
	<description>Programming tips &#38; tricks,What went wrong while coding,Code snippets,ASP,ASP.NET,PHP,MySQL,SQL Server,jQuery,AJAX</description>
	<lastBuildDate>Tue, 22 Dec 2009 10:21:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP strip_tags : Remove HTML  markup from a string</title>
		<link>http://www.techiesweb.net/2009/12/php-strip_tags-remove-html-mark-up-from-string/</link>
		<comments>http://www.techiesweb.net/2009/12/php-strip_tags-remove-html-mark-up-from-string/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 16:42:51 +0000</pubDate>
		<dc:creator>Shyju</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.techiesweb.net/?p=12</guid>
		<description><![CDATA[strip_tags is a PHP function which will remove all HTML mark up from a string.This will remove PHP tags and XML mark from the input string if there is any
Ex : $strPreviewName=&#8217;I am &#60;b&#62;Bold&#60;/b&#62;and&#60;i&#62;Italic&#60;/i&#62;&#8217;;
The output of echo $strPreviewName would show
I am Bold and Italic.
Now this would make problems in cases where u need to take [...]]]></description>
			<content:encoded><![CDATA[<p>strip_tags is a PHP function which will remove all HTML mark up from a string.This will remove PHP tags and XML mark from the input string if there is any</p>
<p>Ex : $strPreviewName=&#8217;I am &lt;b&gt;Bold&lt;/b&gt;and&lt;i&gt;Italic&lt;/i&gt;&#8217;;</p>
<p>The output of echo $strPreviewName would show</p>
<p>I am <strong>Bold </strong>and <em>Italic</em>.</p>
<p>Now this would make problems in cases where u need to take a substring of the first string or trim the string to  take the first 50 characters .Then it would break the HTML markup and which will leads to the rest of the page contents to be affected by the styles mentioned in the first string. In this case,we can use strip_tags function to remove all HTML markups from the string.</p>
<p>Ex : $strPreviewName=&#8217;I am &lt;b&gt;Bold&lt;/b&gt;and&lt;i&gt;Italic again&lt;/i&gt;&#8217;;</p>
<p>$strPreviewNameUpdated =strip_tags($strPreviewName);</p>
<p>The output of echo $strPreviewNameUpdatedwould show</p>
<p>I am Bold and Italic.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techiesweb.net/2009/12/php-strip_tags-remove-html-mark-up-from-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to use WAMP (Windows-Apache-MySQL-PHP) to setup your PHP development</title>
		<link>http://www.techiesweb.net/2008/07/how-to-use-wamp-to-setup-your-php-development-environment/</link>
		<comments>http://www.techiesweb.net/2008/07/how-to-use-wamp-to-setup-your-php-development-environment/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 04:09:10 +0000</pubDate>
		<dc:creator>Shyju</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Open source]]></category>
		<category><![CDATA[WAMP]]></category>

		<guid isPermaLink="false">http://connectshyju.wordpress.com/?p=30</guid>
		<description><![CDATA[How to Start with WAMP server for developing PHP Applications]]></description>
			<content:encoded><![CDATA[<p style="text-align:center;"><a href="http://techiesweb.files.wordpress.com/2008/07/wamp_home.gif"><br />
</a></p>
<p>Last time, i wrote something about Configuring PHP and Apache.But in reality me too did not liked it to do this tedious task.Fortunately one of my friend who was working with PHP for some years told me about WAMP.This guy helped me to get a latest version of WAMP and we installed it ,started working on it. really cool !</p>
<p>WAMP stands for Windows-Apache-MySQL-PHP.I would like to describe WAMP as an Ideal execution environment for developing PHP-MySQl Applications with Apache websercer in Windows platform.</p>
<p>In wamp ,we need not bother about editing the configuration files ,which may be a boring task for some of us,Instead we can do all these(up to an extend) on the installation wizard .Still wamp allow the user to have access to all the config files in one click.You need not go for a search with file name ini.php / httpd.config</p>
<p>You can download WAMP server from <a title="Click here to download WAMP" href="http://www.en.wampserver.com/" target="_blank">here</a></p>
<p>Once you install wamp,start the wamp server from the start menu.you can see a systray icon in the right bottom side of screen adjacent to the time</p>
<p style="text-align:center;"><a href="http://techiesweb.files.wordpress.com/2008/07/wamp_startmenu.gif"><img class="size-full wp-image-8 aligncenter" src="http://techiesweb.files.wordpress.com/2008/07/wamp_startmenu.gif" alt="WAMP Server SysTrayMenu" width="281" height="289" /></a></p>
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:left;">Left click on WampServer&#8217;s SysTray icon will help us to do the followings:</p>
<ul>
<li> Control Apache and MySQL services</li>
<li> Switch online/offline staus</li>
<li> install and switch Apache, MySQL and PHP releases</li>
<li> Access to MySQL DB front ends like PhpMyAdmin/Sqlite Manager</li>
<li> View logs</li>
<li> View/Edit configuration settings files..</li>
</ul>
<p>Now Let us start&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;</p>
<p>When we install our WAMP server in our PC, the installation program automatically create a folder named www inside wamp folder.You can Put your projects in this folder.Take a browser and inthe addressbar type,</p>
<p>http://localhost</p>
<p style="text-align:center;"><a href="http://techiesweb.files.wordpress.com/2008/07/wamp_home.gif"><img class="aligncenter size-full wp-image-9" src="http://techiesweb.files.wordpress.com/2008/07/wamp_home.gif" alt="WAMP Homepage" width="717" height="538" /></a></p>
<p>Your browser will render a page like the above.There you can find a Heading called &#8220;Your Project&#8221;.There it will display all the projects we have put under www directory</p>
<p><a href="http://techiesweb.files.wordpress.com/2008/07/wamp_home_projectslist.gif"><img class="alignleft size-full wp-image-12" src="http://techiesweb.files.wordpress.com/2008/07/wamp_home_projectslist.gif" alt="Wamp ProjectList" /></a></p>
<p>This is a snapshot from my PC.30JUNe,Liveprojects,MyBB,MyForum,MyWordpress ,NewFolder are Projects created by me.You can click any one of this iems to navigate to that project.</p>
<p>Above the You projects Title,You can see the Caption &#8220;Tools&#8221;,under that you can see a list having items &#8220;phpinfo&#8221;,&#8221;phpmyAdmin&#8221;,&#8221;sqllitemanager&#8221;,clicking on the phpinfo leads you to a web page which display all details regarding this installation packages.ie; for example,you can findout which all libraries are supporting our current php version and all.The remaining two,phpmyadmin,sqlitemager are two tools written in php to handle your mysql db.</p>
<p>Thats all Guys&#8230;.  Try this and revert me if you have any queries .I shall come up with some more stuff soon</p>
<p style="text-align:center;"><a href="http://techiesweb.files.wordpress.com/2008/07/wamp_home.gif"><br />
</a></p>
<p style="text-align:left;">
]]></content:encoded>
			<wfw:commentRss>http://www.techiesweb.net/2008/07/how-to-use-wamp-to-setup-your-php-development-environment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Starting with PHP-Apache</title>
		<link>http://www.techiesweb.net/2008/05/starting-with-php-apache/</link>
		<comments>http://www.techiesweb.net/2008/05/starting-with-php-apache/#comments</comments>
		<pubDate>Tue, 13 May 2008 09:23:14 +0000</pubDate>
		<dc:creator>Shyju</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Apache Configuration]]></category>
		<category><![CDATA[Starting PHP]]></category>

		<guid isPermaLink="false">http://connectshyju.wordpress.com/?p=4</guid>
		<description><![CDATA[I am not a novice PHP programmer.rather i am also a beginner.here i am presenting some stuffs which i tried and worked.i would like to thank my friend ANILKUMAR who helped me to learn these stuffs
i think it is better to start from the basics.So shall we start from the platform ? Yes ! we [...]]]></description>
			<content:encoded><![CDATA[<p>I am not a novice PHP programmer.rather i am also a beginner.here i am presenting some stuffs which i tried and worked.i would like to thank my friend ANILKUMAR who helped me to learn these stuffs</p>
<p>i think it is better to start from the basics.So shall we start from the platform ? Yes ! we should.</p>
<p>for running a serverside program,we need a WebServer.we all may know the typical webserver,IIS (Intrenet Information Server) incorporated with windows operating systems.but right now i am skipping it as all of us know little bit of IIS configuration and related stuffs . No ? (anyway we shall disucss it later )</p>
<p>i am going to talk about Apache server,a powerful product from the <a class="aligncenter" title="Check Apache" href="http://www.apache.org/" target="_blank">Apache foundation.<br />
</a></p>
<p>You can download apache server verisions from there. i have Apache 2.2.6 Server version.Run the Setup.It is quite eazy to run the wizard.the only place i suspect u may get stucked is the pane where u have to enter the Network domain,servername,Administrators email address .You can give localhost/ur local IP in the first two fields and give admin@localhost in the third field(Assume we are going to work on the same machine(same server)).</p>
<p>Once u finish the Installation wizard,u can verify by going  to Start Menu- &gt;Programs-&gt;Apache HTTP Server 2.2.6</p>
<p>Now We will Install PHP Engine.You can go to www.php.net and get the appropriate verision.i am tried with PHP 5 .Once ou download it,No need to Install anything.more over,you cant find a typical install /SetUp.exe there in the folder.no need to worry. just copy the folder which contains the unziped files and paste it in any one of your disk drives(C/D/E/F). thats All !.</p>
<p>Now that we&#8217;ve got PHP and Apache working separately, we need to get get them to work together.<br />
from the Start menu option u can open the Configuration file (Start-&gt;Programs-&gt;Apache HTTP Server 2.2.6-&gt;Configure Apache server-&gt;Edit the apache httpd.config Configuration file) You can open it by any Editors like text pad/Notepad.</p>
<p>Now u can see the contents of the file .for a beginner ,it may be really difficult to understand what all these things .No need to bother about the contents.These are some configuration parameters which our apache server use for the execution.just go through the page.the page itself provides some general tutorials.You can find out  a couple of lines starting with #LoadModule or LoadModule.just go to the end of those block of code.the # prefixed lines are commented lines</p>
<p>just add the following line @ the bottom of that blockof  code<br />
<span style="color:#0000ff;"> LoadModule php5_module &#8220;E:/php/php5apache2_2.dll&#8221;</span><br />
You have to Change the Physical location to your folder</p>
<p>where u have the Extracted files.for me IT is the PHP Folder</p>
<p>in E drive.change the part before php5apache2_2.dll in the</p>
<p>path.(on the other habd u can make sure that this DLL exists</p>
<p>in that directory).</p>
<p>below that line add this line<br />
<span style="color:#0000ff;"> AddType application/x-httpd-php .php</span><br />
(This is to specify the Type of files)</p>
<p>Then below that line add this line<br />
<span style="color:#0000ff;"> PHPIniDir &#8220;E:/php&#8221;</span><br />
(Configuring the path to php.ini).You have to specify the</p>
<p>folder where u have those extracted php files and dlls.for</p>
<p>me it is E drive,PHP folder</p>
<p>thats all ! You have done it .Now You can save the file and</p>
<p>close it.Now we have to restrat the server to make these</p>
<p>chenges available.Go to the start menu-&gt;PRograms-&gt;Apachec</p>
<p>HTTP Server 2.2.6-&gt;Control Apache server-&gt;Restart</p>
<p>Thats all &#8230;&#8230;</p>
<p>write a small php program (copy this)</p>
<p><span style="color:#0000ff;">&lt;html&gt;<br />
&lt;body&gt;<br />
&lt;form&gt;<br />
&lt;?php<br />
echo &#8220;I created my first PHP Program !&#8221;;</span><br />
<span style="color:#0000ff;"> ?&gt;<br />
&lt;/form&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</span></p>
<p>save this as testprogram.php and put it in this folder<br />
F:\Program Files\Apache Software Foundation\Apache2.2\htdocs</p>
<p>(for me It is F drive ,since i installed Apache on F Drive.for u it may be different)</p>
<p>then take a browser type</p>
<p>http://localhost/testprogram.php</p>
<p>press enter key.You can see your first php programs out put !</p>
<p>just try buddies .I will come up with some more stuff soon,(once i found those code&#8217;s are working)</p>
<p><span style="color:#ff0000;">Make Sure to Stop IIS in control panel-&gt;Administrative tools-&gt;services as you are running another web server(Apache)</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techiesweb.net/2008/05/starting-with-php-apache/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
