<?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>Web Development - Web Development Tutorial for Developer&#039;s, Asp.net Tutorial, PHP Development, Wordpress Integration &#187; PHP Development</title>
	<atom:link href="http://www.solutions4ever.net/category/php-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.solutions4ever.net</link>
	<description>Web Development Solutions Provider</description>
	<lastBuildDate>Fri, 03 Sep 2010 11:45:12 +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>Working with Session in PHP</title>
		<link>http://www.solutions4ever.net/2010/08/working-with-session-in-php/</link>
		<comments>http://www.solutions4ever.net/2010/08/working-with-session-in-php/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 10:15:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Development]]></category>

		<guid isPermaLink="false">http://www.solutions4ever.net/?p=205</guid>
		<description><![CDATA[<p>Session is the one of the most important factor in any web programming. Basically we know that session holds the value in a specific time period when session is expired we have lost the value. Mostly on that time we use session when ever we are trying to create a  ... <a href="http://www.solutions4ever.net/2010/08/working-with-session-in-php/" class="expert-read-more" >Read More</a>]]></description>
			<content:encoded><![CDATA[<p>Session is the one of the most important factor in any web programming. Basically we know that session holds the value in a specific time period when session is expired we have lost the value. Mostly on that time we use session when ever we are trying to create a login form. We describe few example related to session it will help full to when ever you try to use a session.<br />
<br/><br/><br />
<a href="http://www.solutions4ever.net/wp-content/uploads/2010/08/session.jpg"><img src="http://www.solutions4ever.net/wp-content/uploads/2010/08/session.jpg" alt="" title="Working with Session in PHP" width="461" height="698" class="alignnone size-full wp-image-220" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.solutions4ever.net/2010/08/working-with-session-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>url rewriting for seo friendly URL, Convert .php to .html</title>
		<link>http://www.solutions4ever.net/2010/07/url-rewriting-for-seo-friendly-url-convert-php-to-html/</link>
		<comments>http://www.solutions4ever.net/2010/07/url-rewriting-for-seo-friendly-url-convert-php-to-html/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 12:13:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Development]]></category>

		<guid isPermaLink="false">http://www.solutions4ever.net/?p=197</guid>
		<description><![CDATA[<p>For rewriting the URL, you should create a .htaccess file in the root folder of your web directory. And have to put the following codes as your requirement.

Options +FollowSymlinks
RewriteEngine on
RewriteRule ^(.*)\.htm$ $1.php [nc]

The following example will rewrite the test.php to test.html i.e when a URL like http://localhost/test.htm is called in  ... <a href="http://www.solutions4ever.net/2010/07/url-rewriting-for-seo-friendly-url-convert-php-to-html/" class="expert-read-more" >Read More</a>]]></description>
			<content:encoded><![CDATA[<p>For rewriting the URL, you should create a .htaccess file in the root folder of your web directory. And have to put the following codes as your requirement.<br />
<br/><br />
<span style="color: #800000;">Options +FollowSymlinks<br />
RewriteEngine on<br />
RewriteRule ^(.*)\.htm$ $1.php [nc]</span><br />
<br/><br />
The following example will rewrite the test.php to test.html i.e when a URL like http://localhost/test.htm is called in address bar it calls the file test.php. As you can see the regular expression in first part of the RewriteRule command and $1 represents the first regular expression of the part of the RewriteRule and [nc] means not case sensitive.<br />
<br/><br />
<span style="color: #800000;">Options +FollowSymlinks<br />
RewriteEngine on<br />
RewriteRule ^item-([0-9]+)\.html$ item.php?id=$1</span><br />
<br/><br />
The following example will rewrite the item.php?id=5 to item-5.html i.e when a URL like http://localhost/product-5.html calls item<span style="color: #993366;">.php?id=5</span> automatically.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.solutions4ever.net/2010/07/url-rewriting-for-seo-friendly-url-convert-php-to-html/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Get the width and height of an image using a function in PHP</title>
		<link>http://www.solutions4ever.net/2010/03/get-the-width-and-height-of-an-image-using-a-function-in-php/</link>
		<comments>http://www.solutions4ever.net/2010/03/get-the-width-and-height-of-an-image-using-a-function-in-php/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 10:22:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Development]]></category>

		<guid isPermaLink="false">http://www.solutions4ever.net/?p=140</guid>
		<description><![CDATA[<p>Syntax</p>
<p> </p>
<p>list($width, $height, $type, $attr) = getimagesize(&#8220;image_name.jpg&#8220;);</p>
<p>
&#60; ? php</p>
<p>                                            ... <a href="http://www.solutions4ever.net/2010/03/get-the-width-and-height-of-an-image-using-a-function-in-php/" class="expert-read-more" >Read More</a>]]></description>
			<content:encoded><![CDATA[<p><strong>Syntax</strong></p>
<p><strong> </strong></p>
<p><span style="color: #800000;">list($width, $height, $type, $attr) = getimagesize(&#8220;<strong>image_name.jpg</strong>&#8220;);</span></p>
<p>
&lt; ? php</p>
<p>                                                list($width, $height, $type, $attr) = getimagesize(&quot;<strong>image_name.jpg</strong>&quot;);</span></span></p>
<p><span class="Blue">echo &quot;Image width &quot; .$width;<br />
                                                echo &quot;&lt;BR&gt;&quot;;<br />
                                                echo &quot;Image height &quot; .$height;<br />
                                                echo &quot;&lt;BR&gt;&quot;;<br />
                                                echo &quot;Image type &quot; .$type;<br />
                                                echo &quot;&lt;BR&gt;&quot;;<br />
                                                echo &quot;Attribute &quot; .$attr;</p>
<p>                                               ? &gt;</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>When you run this script you will see the result like this</p>
<p>Image width <strong>379</strong><br />
Image height <strong>344</strong><br />
Image type <strong>2</strong><br />
Image attribute <strong>width=&#8221;379&#8243; height=&#8221;344&#8243;</strong></p>
<p>You will get the width, height, type of an image and also attribute of an image, I use this function in my image upload form.<br />
Type of an image you can see from table below</p>
<table border="0" cellspacing="1" cellpadding="0" width="100%" bgcolor="#dfebf2">
<tbody>
<tr>
<td>
<table border="0" cellspacing="3" cellpadding="0" width="100%" bgcolor="#ffffff">
<tbody>
<tr>
<td>
<table border="0" cellspacing="1" cellpadding="0" width="100%" bgcolor="#f4f9fb">
<tbody>
<tr>
<td width="1%" height="20"> </td>
<td width="99%"><strong>Type of the image</strong></td>
</tr>
<tr>
<td colspan="2" bgcolor="#eeeeee"><img src="http://www.phpeasystep.com/phptu/images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
<tr>
<td colspan="2" valign="top">
<table border="0" cellspacing="5" cellpadding="0" width="100%">
<tbody>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="4" width="100%">
<tbody>
<tr>
<td width="25%">1 = GIF</td>
<td width="35%">5 = PSD</td>
<td>9 = JPC</td>
<td>13 = SWC</td>
</tr>
<tr>
<td>2 = JPG</td>
<td>6 = BMP</td>
<td>10 = JP2</td>
<td>14 = IFF</td>
</tr>
<tr>
<td>3 = PNG</td>
<td>7 = TIFF(intel byte order)</td>
<td>11 = JPX</td>
<td>15 = WBMP</td>
</tr>
<tr>
<td>4 = SWF</td>
<td>8 = TIFF(motorola byte order)</td>
<td>12 = JB2</td>
<td>16 = XBM</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.solutions4ever.net/2010/03/get-the-width-and-height-of-an-image-using-a-function-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redirecting non-www to www with .htaccess</title>
		<link>http://www.solutions4ever.net/2010/02/redirecting-non-www-to-www-with-htaccess/</link>
		<comments>http://www.solutions4ever.net/2010/02/redirecting-non-www-to-www-with-htaccess/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 09:49:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Development]]></category>

		<guid isPermaLink="false">http://www.solutions4ever.net/?p=131</guid>
		<description><![CDATA[<p>If you would like to redirect all non-www requests to your site to the www version, you need to add the following code to your .htaccess file:</p>
<p>in your .htaccess file</p>
<p>RewriteEngine On</p>
<p>RewriteCond %{HTTP_HOST} !^www\.</p>
<p>RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]</p>
<p>This will redirect any requests to http://your-domain.com to http://www.your-domain.com. There are some benefits from doing  ... <a href="http://www.solutions4ever.net/2010/02/redirecting-non-www-to-www-with-htaccess/" class="expert-read-more" >Read More</a>]]></description>
			<content:encoded><![CDATA[<p>If you would like to redirect all non-www requests to your site to the www version, you need to add the following code to your .htaccess file:</p>
<p>in your .htaccess file</p>
<p><code>RewriteEngine On</code></p>
<p><code>RewriteCond %{HTTP_HOST} !^www\.</code></p>
<p><code>RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]</code></p>
<p>This will redirect any requests to http://your-domain.com to http://www.your-domain.com. There are some benefits from doing that:</p>
<ul>
<li>It will avoid duplicate content in Google</li>
<li>It will avoid the possibility of split page rank and/or split link popularity (inbound links).</li>
<li>It&#8217;s nicer, and more consistent.</li>
</ul>
<p>Note that if your site has already been indexed by Google without the www, this <em>might</em> cause unwanted side effects, like lost of PR. I don&#8217;t think this would happen, or in any case it would be a temporary issue (we are doing a permanent redirect, 301, so Google should transfer all rankings to the www version). But anyway, use at your own risk!</p>
<p>Something nice about the code above is that you can use it for any website, since it doesn&#8217;t include the actual domain name.</p>
<h2>Redirecting www to non-www</h2>
<p>If you want to do the opposite, the code is very similar:</p>
<p>in your .htaccess file</p>
<p><code>RewriteEngine On<br />
</code><code>RewriteCond %{HTTP_HOST} !^my-domain\.com$ [NC]<br />
</code><code>RewriteRule ^(.*)$ http://my-domain.com/$1 [R=301,L]</code></p>
<p>In this case we are explicitly typing the domain name. I&#8217;m sure it&#8217;s possible to do it in a generic way, but I haven&#8217;t had the time to work one out and test it. So remember to change &#8216;my-domain&#8217; with your domain name!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.solutions4ever.net/2010/02/redirecting-non-www-to-www-with-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
