<?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>PHP Archives - VirtJunkie</title>
	<atom:link href="/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>/category/php/</link>
	<description>Virtualization, Automation, and anything else that might be on my mind</description>
	<lastBuildDate>Wed, 06 Dec 2006 02:14:55 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.2</generator>

<image>
	<url>/wp-content/uploads/2020/04/cropped-vj4-150x150.png</url>
	<title>PHP Archives - VirtJunkie</title>
	<link>/category/php/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Using AOL Instant Messenger with PHP</title>
		<link>/2006/12/05/109/</link>
					<comments>/2006/12/05/109/#respond</comments>
		
		<dc:creator><![CDATA[Jon]]></dc:creator>
		<pubDate>Wed, 06 Dec 2006 02:14:55 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">http://www.jonhoweonline.com/blog/node/109</guid>

					<description><![CDATA[<p>I&#8217;ve been looking for a while for a way to integrate PHP and AOL Instant Messenger (AIM). Up until now I haven&#8217;t found a way to do it besides the stuff Here. Fortunately, I got a little distracted in my studies and found what looks like a Dynamite OO Library Here. Look in the future [&#8230;]</p>
<p>The post <a href="/2006/12/05/109/">Using AOL Instant Messenger with PHP</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I&#8217;ve been looking for a while for a way to integrate PHP and AOL Instant Messenger (AIM).  Up until now I haven&#8217;t found a way to do it besides the stuff <a title="Here" href="http://www.everything2.com/index.pl?node_id=1683074">Here</a>.  Fortunately, I got a little distracted in my studies and found what looks like a <span style="text-decoration: underline">Dynamite</span> OO Library <a title="Here" href="http://www.therisenrealm.com/scripts/bluetoc/">Here</a>.</p>
<p>Look in the future for some examples of how to use this.</p>
<p>Jon</p>
<p>The post <a href="/2006/12/05/109/">Using AOL Instant Messenger with PHP</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>/2006/12/05/109/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>AJAX Based MySql Live Search</title>
		<link>/2006/04/03/ajax_based_mysql_live_search/</link>
					<comments>/2006/04/03/ajax_based_mysql_live_search/#respond</comments>
		
		<dc:creator><![CDATA[Jon]]></dc:creator>
		<pubDate>Mon, 03 Apr 2006 22:02:25 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>
		<guid isPermaLink="false">http://www.jonhoweonline.com/blog/?p=69</guid>

					<description><![CDATA[<p>This is a little something that I made up this afternoon at school. It&#8217;s an implementation of a search app with out a celing. In other words , there&#8217;s no submit button. With each keystoke that you type, the query get&#8217;s more accurate. If you just want to check it out (with source, and an [&#8230;]</p>
<p>The post <a href="/2006/04/03/ajax_based_mysql_live_search/">AJAX Based MySql Live Search</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This is a little something that I made up this afternoon at school.</p>
<p>It&#8217;s an implementation of a search app with out a celing.  In other words , there&#8217;s no submit button.  With each keystoke that you type, the query get&#8217;s more accurate.</p>
<p>If you just want to check it out (with source, and an example) then <a href="/blog/blogfiles/ajax_db_search/ajaxSearch.php">Click Here</a><br />
The code is commented pretty well.</p>
<p>If you want a little explanation read on.</p>
<p>I used a library called <a href="http://www.xajaxproject.org/">Xajax</a> for this project (and the last one as well).  It&#8217;s an extremely useful and easy to use library because of the fact that it doesn&#8217;t require the coder to know any javascript. This is a goood thing, because I HATe javascript.</p>
<p>The Xajax library allows you to take a PHP function and essentially use it as a javascript function asynchronously.</p>
<p>What this script does is check to see if the user presses a key.  Each time that they do the PHP function autoSearch() runs.  autoSearch() has one paramater, the current value of the input box.  Read the code comments for more info on this.</p>
<p>If the entered query is 2 or more charachters, then a mysql query is executed.  If there are result(s), then they are diplayed.</p>
<p>Practical Application:<br />
Personally, I hope to use this in the content mananagement system that I&#8217;ll be starting soon.  I&#8217;m planning on having it parse through blog entries, and display the title and the publishing date of the post.</p>
<p>When you click on the link above you&#8217;ll see the example page.  At the bottom of it are links to the PHP source, as well as the MySql Source.</p>
<p>If you have any questions email me at &#8220;howe -dot- jon &#8211; at &#8211; gmail &#8211; dot &#8211; com&#8221;, and I&#8217;ll get back as soon as I can.</p>
<p>Later,<br />
Jon Howe</p>
<p>The post <a href="/2006/04/03/ajax_based_mysql_live_search/">AJAX Based MySql Live Search</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>/2006/04/03/ajax_based_mysql_live_search/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Howto: AJAX Regular Expression Email Verifier</title>
		<link>/2006/03/31/howto_ajax_regular_expression_email_verifier/</link>
					<comments>/2006/03/31/howto_ajax_regular_expression_email_verifier/#respond</comments>
		
		<dc:creator><![CDATA[Jon]]></dc:creator>
		<pubDate>Sat, 01 Apr 2006 03:05:13 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>
		<guid isPermaLink="false">http://www.jonhoweonline.com/blog/?p=67</guid>

					<description><![CDATA[<p>It&#8217;s important to do form validation for obvious reasons. This is an implementation of an email checker that uses php regular expressions, and a little bet if pizzaz with asynchronous javascript and xml, or AJAX. Here&#8217;s the example. A quick rundown of how this works is: You type in a string You hit submit The [&#8230;]</p>
<p>The post <a href="/2006/03/31/howto_ajax_regular_expression_email_verifier/">Howto: AJAX Regular Expression Email Verifier</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>It&#8217;s important to do form validation for obvious reasons.  This is an implementation of an email checker that uses php regular expressions, and a little bet if pizzaz with asynchronous javascript and xml, or AJAX.</p>
<p><a href="/blog/blogfiles/ajax_email_regex/ajax_email_regex.php">Here&#8217;s the example.</a></p>
<p>A quick rundown of how this works is:</p>
<ol>
<li>You type in a string</li>
<li>You hit submit</li>
<li>The data is transfered asynchronously (without refreshing the page) to the server</li>
<li>The server checks to see if the email is valid or invalid</li>
<li>If it&#8217;s valid it tells you so, as well as if it&#8217;s not</li>
<p>The guts of the script are here:<br />
<code>if (eregi("^[a-zA-Z0-9_-.+]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-_.]+$",$email)) {<br />
		//return confirmation that it worked<br />
}<br />
else {<br />
           //return that it didn't work<br />
}<br />
</code></p>
<p>Basically, it checks to see if there&#8217;s either a lowercase or uppercase a-z or 0-9 or an underscore, or a dash, or a period before the @ sign ([a-zA-Z0-9_-.+]+@).  Then after the @ sign it checks for the same thing except for the period and the underscore up until another dot.  After that dot it checks once again for the same charachters as the first set.</p>
<p>Hopefully this helps someone.  If you have any questions feel free to email me at &#8220;howe -dot- jon -at- gmail -dot- com&#8221; and I&#8217;ll help you however I can.</p>
<p>Later,<br />
Jon Howe</p>
<p>The post <a href="/2006/03/31/howto_ajax_regular_expression_email_verifier/">Howto: AJAX Regular Expression Email Verifier</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>/2006/03/31/howto_ajax_regular_expression_email_verifier/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>HOWTO: Create a Logging Redirection Page using PHP and MYSql</title>
		<link>/2006/03/28/howto_create_a_logging_redirection_page_using_php_and_mysql/</link>
					<comments>/2006/03/28/howto_create_a_logging_redirection_page_using_php_and_mysql/#respond</comments>
		
		<dc:creator><![CDATA[Jon]]></dc:creator>
		<pubDate>Wed, 29 Mar 2006 02:13:46 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>
		<guid isPermaLink="false">http://www.jonhoweonline.com/blog/?p=65</guid>

					<description><![CDATA[<p>Since I&#8217;ve already been on the topic of doing small beginner PHP tutorials, here&#8217;s another one. This one is pretty self explanitory. You can see it here. Basically what this does is let you enter a domain or page or whatever and it redirects you to the page. On top of just redirecting you, it [&#8230;]</p>
<p>The post <a href="/2006/03/28/howto_create_a_logging_redirection_page_using_php_and_mysql/">HOWTO: Create a Logging Redirection Page using PHP and MYSql</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Since I&#8217;ve already been on the topic of doing small beginner PHP tutorials, here&#8217;s another one.  This one is pretty self explanitory.</p>
<p>You can see it <a href="/blog/blogfiles/redirect/redirect_main.php">here</a>.</p>
<p>Basically what this does is let you enter a domain or page or whatever and it redirects you to the page.  On top of just redirecting you, it logs all of the redirections along with the request date, and requester ip address.</p>
<p>If you have a need for this, you&#8217;ll most likely know how to implement it.  If not, feel free, as always, to email me (howe -dot- jon -at- gmail -dot- com), and I&#8217;d be happy to help you out to the best of my abilities.</p>
<p>Later,<br />
Jon Howe</p>
<p>The post <a href="/2006/03/28/howto_create_a_logging_redirection_page_using_php_and_mysql/">HOWTO: Create a Logging Redirection Page using PHP and MYSql</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>/2006/03/28/howto_create_a_logging_redirection_page_using_php_and_mysql/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Howto: PHP Secure Download Script</title>
		<link>/2006/03/25/howto_php_secure_download_script/</link>
					<comments>/2006/03/25/howto_php_secure_download_script/#respond</comments>
		
		<dc:creator><![CDATA[Jon]]></dc:creator>
		<pubDate>Sat, 25 Mar 2006 12:10:14 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>
		<guid isPermaLink="false">http://www.jonhoweonline.com/blog/?p=64</guid>

					<description><![CDATA[<p>I&#8217;ve been wanting to make a script in PHP that handles downloads for a while. Last night I was bored, so I made one. DISCLAIMER: This is a very basic example, but if you have any use for this, I&#8217;m sure that you can figure out how to use it. If not, I&#8217;ll probably work [&#8230;]</p>
<p>The post <a href="/2006/03/25/howto_php_secure_download_script/">Howto: PHP Secure Download Script</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I&#8217;ve been wanting to make a script in PHP that handles downloads for a while.  Last night I was bored, so I made one.</p>
<p>DISCLAIMER:<br />
This is a very basic example, but if you have any use for this, I&#8217;m sure that you can figure out how to use it.  If not, I&#8217;ll probably work more with it in the future anyways.</p>
<p>This system works with two PHP files.</p>
<p>If you just want to see the script work, go <a href="/blog/blogfiles/dlkeeper/dl.php">Here</a>.</p>
<p>From there you can download a sample file and see the source of the scripts.</p>
<p>Now, for how it works&#8230;</p>
<p>All that the first script (dl.php) does is display a link to the   main download script (which handles the actual download) and sets a session variable for 60 seconds in the future.</p>
<p>Once you click on the link, the main download script (dl2.php) sets another session variable containing the time that the link was clicked.</p>
<p>It checks to see if the time that dl.php was generated no more than 60 seconds later than the link was clicked.  If it was later than that the download fails.</p>
<p>Feel free to email me (howe -dot- jon -at- gmail -dot- com) if you have any questions, or requests or whatever, and I&#8217;ll do my best to get back to you that day.</p>
<p>Later,<br />
Jon Howe</p>
<p>The post <a href="/2006/03/25/howto_php_secure_download_script/">Howto: PHP Secure Download Script</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>/2006/03/25/howto_php_secure_download_script/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Convert RPM to Deb + News</title>
		<link>/2006/01/12/convert_rpm_to_deb___news/</link>
					<comments>/2006/01/12/convert_rpm_to_deb___news/#respond</comments>
		
		<dc:creator><![CDATA[Jon]]></dc:creator>
		<pubDate>Thu, 12 Jan 2006 08:57:10 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">http://www.jonhoweonline.com/blog/?p=55</guid>

					<description><![CDATA[<p>I found a few cool things this morning. The first being a way to install a rpm file in Debian. You do this using the alien command (apt-get install alien). To convert a package from an rpm to a deb run the following command: alias --to-deb To just install a rpm use the following command: [&#8230;]</p>
<p>The post <a href="/2006/01/12/convert_rpm_to_deb___news/">Convert RPM to Deb + News</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I found a few cool things this morning.</p>
<p>The first being a way to install a rpm file in Debian.  You do this using the alien command (<strong>apt-get install alien</strong>).</p>
<p>To convert a package from an rpm to a deb run the following command:<br />
<code>alias --to-deb <rpm name></code></p>
<p>To just install a rpm use the following command:<br />
<code>alias -i <rpm name></p>
<p>It's that easy.</p>
<p>Also, I was looking at some stories on the front page of <a href="http://digg.com/">Digg</a>, and found a <a href="http://www.andrewtheken.com/?page=GMapsClass">Great New Library</a> for use with Google Maps.  It has the features of the one that I was messing around with earlier (I forgot the name of it).  It even includes the features that I had to add inot the other library.</p>
<p>Who knows, you might be getting a little tutorial on how to use this library soon.</p>
<p>Later,<br />
Jon Howe</p>
<p>The post <a href="/2006/01/12/convert_rpm_to_deb___news/">Convert RPM to Deb + News</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>/2006/01/12/convert_rpm_to_deb___news/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Create a PDF Document from PHP</title>
		<link>/2005/12/06/how_to_create_a_pdf_document_from_php/</link>
					<comments>/2005/12/06/how_to_create_a_pdf_document_from_php/#respond</comments>
		
		<dc:creator><![CDATA[Jon]]></dc:creator>
		<pubDate>Tue, 06 Dec 2005 05:22:58 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">http://www.jonhoweonline.com/blog/?p=41</guid>

					<description><![CDATA[<p>In this project that I&#8217;ve been messing with, I&#8217;ve come across the need to convert dynamic PHP output to a PDF. Suprisingly, this is a pretty easy process thanks to DomPDF. Boy is this ever hard. Check it out below! (Reminder &#8211; you&#8217;re going to need to have Adobe Acrobat Reader for this to work, [&#8230;]</p>
<p>The post <a href="/2005/12/06/how_to_create_a_pdf_document_from_php/">How to Create a PDF Document from PHP</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In this project that I&#8217;ve been messing with, I&#8217;ve come across the need to convert dynamic PHP output to a PDF.</p>
<p>Suprisingly, this is a pretty easy process thanks to <a href="digitaljunkies.ca/dompdf/">DomPDF</a>.</p>
<p>Boy is this ever hard.</p>
<p>Check it out below!<br />
(Reminder &#8211; you&#8217;re going to need to have <a href="http://www.adobe.com/products/acrobat/readstep2.html">Adobe Acrobat Reader</a> for this to work, seeing as how thi s is a PDf generator.  You probably already have it, but in case you don&#8217;t, here it is.</p>
<p>&lt;br /&gt;</p>
<p>Let me know what you think.</p>
<p>Later,<br />
Jon</p>
<p>The post <a href="/2005/12/06/how_to_create_a_pdf_document_from_php/">How to Create a PDF Document from PHP</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>/2005/12/06/how_to_create_a_pdf_document_from_php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>News / Ideas</title>
		<link>/2005/11/05/news__ideas/</link>
					<comments>/2005/11/05/news__ideas/#respond</comments>
		
		<dc:creator><![CDATA[Jon]]></dc:creator>
		<pubDate>Sat, 05 Nov 2005 12:12:54 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">http://www.jonhoweonline.com/blog/?p=28</guid>

					<description><![CDATA[<p>I decided after reading all of chapter 2 and part of chapter 3 in my AJAX book that I need to learn Javascript better before I go further with AJAX, because It&#8217;s based on Javascript. Fortunately I have a really good Javascript book that I&#8217;m about 1/8&#8217;th of the way done with. As for news&#8230; [&#8230;]</p>
<p>The post <a href="/2005/11/05/news__ideas/">News / Ideas</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I decided after reading all of chapter 2 and part of chapter 3 in my AJAX book that I need to learn Javascript better before I go further with AJAX, because It&#8217;s based on Javascript.  Fortunately I have a really good Javascript book that I&#8217;m about 1/8&#8217;th of the way done with.</p>
<p>As for news&#8230;</p>
<p>I&#8217;m working on a ton of features daily on this site that I&#8217;m making (which I could still use some testers (<a href="mailto=jon@jonhoweonline.com">Email me</a>) for.  One feature that&#8217;s been annoying me, as I&#8217;ve been trying to implement it is the functionality to have the site remember someone after they log out.</p>
<p>Last night before I went to bed I had had it with not being able to figure it out, so I brainstormed, and wrote out a two page instruction sheet for myself on how to do it.</p>
<p>If you already know PHP, and think that this is easy, you&#8217;re right, usually.  The problem was, that I didn&#8217;t plan to have this functionality when I made the site, and it was hard to find a way to to fit it in once it was already made.</p>
<p>So, I&#8217;m going to go to school in 15 minutes, get home around 12:45, then start adding this functionality to this site.  Afterwards I&#8217;m going to make another entry with examples on how to do it.</p>
<p>Later,<br />
Jon Howe</p>
<p>The post <a href="/2005/11/05/news__ideas/">News / Ideas</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>/2005/11/05/news__ideas/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Web Design</title>
		<link>/2005/10/31/web_design/</link>
					<comments>/2005/10/31/web_design/#respond</comments>
		
		<dc:creator><![CDATA[Jon]]></dc:creator>
		<pubDate>Mon, 31 Oct 2005 19:10:52 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">http://www.jonhoweonline.com/blog/?p=24</guid>

					<description><![CDATA[<p>So over the past few months I&#8217;ve been working on a website for someone. The website&#8217;s going to be used sort of as a utility website for employees at car dealerships around Michigan. I haven&#8217;t mentioned a lot about it, because it&#8217;s not quite ready yet, and it&#8217;s a bit secretive at this point. However, [&#8230;]</p>
<p>The post <a href="/2005/10/31/web_design/">Web Design</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>So over the past few months I&#8217;ve been working on a website for someone.  The website&#8217;s going to be used sort of as a utility website for employees at car dealerships around Michigan.</p>
<p>I haven&#8217;t mentioned a lot about it, because it&#8217;s not quite ready yet, and it&#8217;s a bit secretive at this point.</p>
<p>However, it is coming along pretty well at this point.  The user interface is done (for the most part), and a new site design is being made by someone that is very good at making site designs.  All that has to happen is a calculation has to be transferred from one language into the language that the site is in.</p>
<p>Sometime in the near future I could use some help from (preferably) people that I know to beta test the user interface.</p>
<p>If you&#8217;re interested in trying to break my site, feel free to contact me via email at <a href="mailto:jon@jonhoweonline.com">this email address</a></p>
<p>Thanks,<br />
Jon Howe</p>
<p>The post <a href="/2005/10/31/web_design/">Web Design</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>/2005/10/31/web_design/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
