<?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>Lost within &#187; Web Development</title>
	<atom:link href="http://lostwithin.net/category/web-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostwithin.net</link>
	<description>Alaa Abdelhaq Blog</description>
	<lastBuildDate>Mon, 20 Feb 2012 11:14:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Send me an angel investor</title>
		<link>http://lostwithin.net/send-me-an-angel-investor/</link>
		<comments>http://lostwithin.net/send-me-an-angel-investor/#comments</comments>
		<pubDate>Sun, 19 Feb 2012 22:00:31 +0000</pubDate>
		<dc:creator>Alaa Abdelhaq</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Feelings]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[lyrics]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://lostwithin.net/?p=173</guid>
		<description><![CDATA[In my struggle of finding an angel investor (ملاك مستثمر) to invest in one of my websites, the only angel I was able to find was the death angel So I was listening to Scorpions song &#8220;Send me an angel&#8221; and the following lyrics came into my mind, some will find it stupid and maybe funny but who [...]]]></description>
			<content:encoded><![CDATA[<p>In my struggle of finding an angel investor (ملاك مستثمر) to invest in one of my websites, the only angel I was able to find was the death angel <img src='http://lostwithin.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>So I was listening to Scorpions song &#8220;Send me an angel&#8221; and the following lyrics came into my mind, some will find it stupid and maybe funny but who cares <img src='http://lostwithin.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Hope you will like it, I call it &#8220;Send me an angel investor&#8221;</p>
<p>The lyrics:</p>
<p><strong>Business man said, &#8220;Just walk this way</strong><br />
<strong> To the dawn of the wealth</strong><br />
<strong> The money will blow into your face</strong><br />
<strong> As the VCs pass you by&#8221;</strong></p>
<p><strong> &#8220;Check your email from your laptop</strong><br />
<strong> It&#8217;s the call of business plan</strong><br />
<strong> Close your Facebook and you will find</strong><br />
<strong> Time to focus on your plan&#8221;</strong></p>
<p><strong> Here I am</strong><br />
<strong> Will you send me an angel investor?</strong><br />
<strong> Here I am</strong><br />
<strong> In the land of the broken dreams </strong></p>
<p><strong> Business man said, &#8220;Just find your place</strong><br />
<strong> In the MENA or KSA</strong><br />
<strong> Seek the investors along the way</strong><br />
<strong> Just beware of phony gray heads&#8221;</strong></p>
<p><strong> Here I am</strong><br />
<strong> Will you send me an angel investor?</strong><br />
<strong> Here I am</strong><br />
<strong> in the land of the broken dreams</strong></p>
<p><strong> Business man said, “Just upload your website</strong><br />
<strong> And reach out for the hits</strong><br />
<strong> Find the door to the investors land</strong><br />
<strong> Just believe in your plans”</strong></p>
<p><strong>Here I am</strong><br />
<strong> Will you send me an angel investor?</strong><br />
<strong> Here I am</strong><br />
<strong> in the land of the broken dreams</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://lostwithin.net/send-me-an-angel-investor/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Check if a radion button is checked using jquery</title>
		<link>http://lostwithin.net/check-if-a-radion-button-is-checked-using-jquery/</link>
		<comments>http://lostwithin.net/check-if-a-radion-button-is-checked-using-jquery/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 13:54:32 +0000</pubDate>
		<dc:creator>Alaa Abdelhaq</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[checked]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[radio button]]></category>

		<guid isPermaLink="false">http://lostwithin.net/?p=150</guid>
		<description><![CDATA[let say you have a group of radio buttons sharing the same name attribute for sure, and upon submit or some event you want to check if one of these radio buttons was checked or not. you can do this simply by the following code. $&#40;document&#41;.ready&#40;function&#40;&#41;&#123; $&#40;'#submit_button'&#41;.click&#40;function&#40;&#41; &#123; if &#40;!$&#40;&#34;input[@name='name']:checked&#34;&#41;.val&#40;&#41;&#41; &#123; alert&#40;'Nothing is checked!'&#41;; return [...]]]></description>
			<content:encoded><![CDATA[<p>let say you have a group of radio buttons sharing the same name attribute for sure, and upon submit or some event you want to check if one of these radio buttons was checked or not.<br />
you can do this simply by the following code.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
  $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#submit_button'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;input[@name='name']:checked&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
       <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Nothing is checked!'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'One of the radio buttons is checked!'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>hope this will help you <img src='http://lostwithin.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://lostwithin.net/check-if-a-radion-button-is-checked-using-jquery/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>How to manipulate mysql datetime using php</title>
		<link>http://lostwithin.net/how-to-manipulate-mysql-datetime-using-php/</link>
		<comments>http://lostwithin.net/how-to-manipulate-mysql-datetime-using-php/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 09:04:25 +0000</pubDate>
		<dc:creator>Alaa Abdelhaq</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[add]]></category>
		<category><![CDATA[datetime]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[manipulate]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://lostwithin.net/?p=91</guid>
		<description><![CDATA[You are having hard time with mysql datetime format? I wont blame you I hope this short example will help you. let say in your mysql database you are saving time on the datetime format like this &#8220;2009-01-20 02:11:05&#8243;. you need to pull it and add some days or time intervals and print it in [...]]]></description>
			<content:encoded><![CDATA[<p>You are having hard time with mysql datetime format? I wont blame you <img src='http://lostwithin.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
I hope this short example will help you.</p>
<p>let say in your mysql database you are saving time on the datetime format<br />
like this &#8220;2009-01-20 02:11:05&#8243;.</p>
<p>you need to pull it and add some days or time intervals and print it in a different format, thats easy do the following</p>
<p>1- In your query pulling the time, pull it this way:</p>

<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #000099;">UNIX_TIMESTAMP</span><span style="color: #FF00FF;">&#40;</span><span style="color: #999900; font-weight: bold;">time</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">AS</span> <span style="color: #999900; font-weight: bold;">time</span></pre></div></div>

<p>this will covert it into unix timestamp, which will make it easier for you to manipulate it with php functions.</p>
<p>2- Add your time interval, let say we need to add 15 days.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$unix_timestamp_from_database</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1232410265</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$time_from_db</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$unix_timestamp_from_database</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$new_time</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$time_from_db</span> <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">15</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">86400</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>86400seconds equals one day.<br />
In unix timestamp we manipulate time by seconds.<br />
so if you want to add an hour you add it like by (60 * 60)<br />
which equals 3600 seconds.</p>
<p>3- Then you format it as you desire:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$new_time_format</span> <span style="color: #339933;">=</span> <span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;d-M-Y&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$new_time</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$new_time_format</span><span style="color: #339933;">;</span></pre></div></div>

<p>hope it will help you <img src='http://lostwithin.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://lostwithin.net/how-to-manipulate-mysql-datetime-using-php/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How your site looks in other browsers??</title>
		<link>http://lostwithin.net/how-your-site-looks-in-other-browsers/</link>
		<comments>http://lostwithin.net/how-your-site-looks-in-other-browsers/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 14:13:51 +0000</pubDate>
		<dc:creator>Alaa Abdelhaq</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[bounce rate]]></category>
		<category><![CDATA[browsers compatibility]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[decrease]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[LinkedIn]]></category>

		<guid isPermaLink="false">http://lostwithin.net/?p=71</guid>
		<description><![CDATA[Sometimes working on web design may not be as easy as you think. Specially when it comes to browsers compatibility. things get tricky and difficult with the lack of HTML CSS and Javascript debuggers like firebug on other browsers specially IE! plus you are working under your favorite OS, so it gets harder to test [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes working on web design may not be as easy as you think.<br />
Specially when it comes to browsers compatibility.<br />
things get tricky and difficult with the lack of HTML CSS and Javascript debuggers like firebug on<br />
other browsers specially IE!<br />
plus you are working under your favorite OS, so it gets harder to test your work on different browsers and different platforms?<br />
By surfing the web I came by chance with this incredible website <a title="CLICK HERE :)" href="http://browsershots.org/" target="_blank">LINK</a><br />
How it helps you?<br />
simply click on the link place your website address<br />
then check the browsers you want to check under different platforms.<br />
next you can put some rules like the preferred resolution you want the test to be ran under.<br />
then you submit it.<br />
Next the website will show you exactly how your website will look on the selected browsers.<br />
it will get you results as a png images, yes images!<br />
maybe some people wont like the service, for me if I was able to check exactly how my website looks on each browser that would be great, and maybe helps me to decrease bounce rate <img src='http://lostwithin.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>give it a try <img src='http://lostwithin.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://lostwithin.net/how-your-site-looks-in-other-browsers/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Javascript and browsers</title>
		<link>http://lostwithin.net/javascript-and-browsers/</link>
		<comments>http://lostwithin.net/javascript-and-browsers/#comments</comments>
		<pubDate>Tue, 26 Aug 2008 13:41:58 +0000</pubDate>
		<dc:creator>Alaa Abdelhaq</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[opera]]></category>

		<guid isPermaLink="false">http://lostwithin.net/?p=23</guid>
		<description><![CDATA[Building websites with a lot of client script like javascript may be a nightmare sometimes! there is a big possibility that the client disabled the javascript by mistake or does not know whats javascript is! so am wondering when browsers like firefox IE or Opera will make javascript support as an mandatory thing, and the [...]]]></description>
			<content:encoded><![CDATA[<p>Building websites with a lot of client script like javascript may be a nightmare sometimes!<br />
there is a big possibility that the client disabled the javascript by mistake or does not know whats javascript is!<br />
so am wondering when browsers like firefox IE or Opera will make javascript support as an mandatory thing, and the end-user will never ever be able to disable it?<br />
or what could replace javascript??</p>
]]></content:encoded>
			<wfw:commentRss>http://lostwithin.net/javascript-and-browsers/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Ubuntu &#8211; Enable mod_rewrite in Apache server</title>
		<link>http://lostwithin.net/ubuntu-enable-mod_rewrite-in-apache-server/</link>
		<comments>http://lostwithin.net/ubuntu-enable-mod_rewrite-in-apache-server/#comments</comments>
		<pubDate>Sun, 17 Aug 2008 07:59:58 +0000</pubDate>
		<dc:creator>Alaa Abdelhaq</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mode rewrite]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://lostwithin.net/?p=20</guid>
		<description><![CDATA[At first I should define, what is mod_rewrite? mod_rewrite is a part of Apache server that can rewrite requested urls on the fly. To enable mod_rewrite in Ubuntu, you just need to write this command in terminal sudo a2enmod rewrite]]></description>
			<content:encoded><![CDATA[<p>At first I should define, what is mod_rewrite?<br />
mod_rewrite is a part of Apache server that can rewrite requested urls on the fly.</p>
<p>To enable mod_rewrite in Ubuntu, you just need to write this command in terminal</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> a2enmod rewrite</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://lostwithin.net/ubuntu-enable-mod_rewrite-in-apache-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ffmpeg</title>
		<link>http://lostwithin.net/ffmpeg/</link>
		<comments>http://lostwithin.net/ffmpeg/#comments</comments>
		<pubDate>Sun, 17 Aug 2008 07:45:29 +0000</pubDate>
		<dc:creator>Alaa Abdelhaq</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://lostwithin.net/?p=19</guid>
		<description><![CDATA[This post will help you to install ffmpeg and compile it with some important codecs. First, get your dependencies: sudo apt-get build-dep ffmpeg sudo apt-get install liblame-dev libfaad2-dev libfaac-dev libxvidcore4-dev liba52-0.7.4 liba52-0.7.4-dev libx264-dev checkinstall build-essential subversion Next, grab the ffmpeg source: svn checkout -r 8998 svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg If you’re feeling adventurous, you can try the [...]]]></description>
			<content:encoded><![CDATA[<p>This post will help you to install ffmpeg and compile it with some important codecs.</p>
<p>First, get your dependencies:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> build-dep <span style="color: #c20cb9; font-weight: bold;">ffmpeg</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> liblame-dev libfaad2-dev 
libfaac-dev libxvidcore4-dev liba52-0.7.4 
liba52-0.7.4-dev libx264-dev checkinstall 
build-essential subversion</pre></div></div>

<p>Next, grab the ffmpeg source:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">svn</span> checkout <span style="color: #660033;">-r</span> <span style="color: #000000;">8998</span> <span style="color: #c20cb9; font-weight: bold;">svn</span>:<span style="color: #000000; font-weight: bold;">//</span>svn.mplayerhq.hu<span style="color: #000000; font-weight: bold;">/</span>ffmpeg<span style="color: #000000; font-weight: bold;">/</span>trunk <span style="color: #c20cb9; font-weight: bold;">ffmpeg</span></pre></div></div>

<p>If you’re feeling adventurous, you can try the very latest code by omitting the <code>-r 8998</code> part of that line. Revision 8998 is the latest at the time of writing, and worked for me.</p>
<p>Now you can configure and build ffmpeg. This takes a little while:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #c20cb9; font-weight: bold;">ffmpeg</span>
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--enable-gpl</span> <span style="color: #660033;">--enable-pp</span> <span style="color: #660033;">--enable-libvorbis</span> 
<span style="color: #660033;">--enable-libogg</span> <span style="color: #660033;">--enable-liba52</span> <span style="color: #660033;">--enable-libdts</span> 
<span style="color: #660033;">--enable-dc1394</span> <span style="color: #660033;">--enable-libgsm</span> <span style="color: #660033;">--disable-debug</span> 
<span style="color: #660033;">--enable-libmp3lame</span> <span style="color: #660033;">--enable-libfaad</span> <span style="color: #660033;">--enable-libfaac</span> 
<span style="color: #660033;">--enable-xvid</span> <span style="color: #660033;">--enable-pthreads</span> <span style="color: #660033;">--enable-x264</span>
<span style="color: #c20cb9; font-weight: bold;">make</span></pre></div></div>

<p>Finally, install it.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">checkinstall</pre></div></div>

<p>gives you the option to edit some parameters: I set the name to <code>ffmpeg</code> and the version to <code>3:0.svn20070511</code></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> checkinstall</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://lostwithin.net/ffmpeg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get user&#8217;s IP and computer name using PHP</title>
		<link>http://lostwithin.net/how-to-get-users-ip-and-computer-name-using-php/</link>
		<comments>http://lostwithin.net/how-to-get-users-ip-and-computer-name-using-php/#comments</comments>
		<pubDate>Sat, 15 Mar 2008 22:03:13 +0000</pubDate>
		<dc:creator>Alaa Abdelhaq</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[LinkedIn]]></category>

		<guid isPermaLink="false">http://lostwithin.net/?p=6</guid>
		<description><![CDATA[To get the user&#8217;s IP use the following script: &#60;?php GetHostByName&#40;$REMOTE_ADDR&#41;; ?&#62; To get the user&#8217;s computer name use the following script: &#60;?php gethostbyaddr&#40;$_SERVER&#91;'REMOTE_ADDR'&#93;&#41;; ?&#62;]]></description>
			<content:encoded><![CDATA[<p>To get the user&#8217;s IP use the following script:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #990000;">GetHostByName</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$REMOTE_ADDR</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>To get the user&#8217;s computer name use the following script:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #990000;">gethostbyaddr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REMOTE_ADDR'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://lostwithin.net/how-to-get-users-ip-and-computer-name-using-php/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
	</channel>
</rss>

