<?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>Worcester Web Site Development Blog &#187; PHP</title>
	<atom:link href="http://worcesterwideweb.com/category/php-techniques/feed/" rel="self" type="application/rss+xml" />
	<link>http://worcesterwideweb.com</link>
	<description>Worcester Web Site Development Blog</description>
	<lastBuildDate>Thu, 25 Jun 2009 19:13:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Redirect mobile users to a mobile friendly page with php</title>
		<link>http://worcesterwideweb.com/2009/06/25/redirect-mobile-users-to-a-mobile-friendly-page-with-php/</link>
		<comments>http://worcesterwideweb.com/2009/06/25/redirect-mobile-users-to-a-mobile-friendly-page-with-php/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 19:11:07 +0000</pubDate>
		<dc:creator>Anthony</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://worcesterwideweb.com/2009/06/25/redirect-mobile-users-to-a-mobile-friendly-page-with-php/</guid>
		<description><![CDATA[After allot of trial and error I ended up coming up with some code that will redirect users to a mobile friendly page, this method won’t really be useful in about 5 years because modern browsers like safari allow full page viewing but this will get you by until then. Remember this code will have [...]]]></description>
			<content:encoded><![CDATA[<p>After allot of trial and error I ended up coming up with some code that will redirect users to a mobile friendly page, this method won’t really be useful in about 5 years because modern browsers like safari allow full page viewing but this will get you by until then. Remember this code will have to change constantly if you want to stay up to date with the latest hand held devices and mime types.</p>
<p>To get started all you have to do is place the following code in the stop of your php page. If your loading an application you can post this below your application just don’t output any data before the code is executed.</p>
<p><code><br />
<!--p<--></code><code>$mobile_browser = '0';</code><code>if(preg_match('/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone)/i',<br />
strtolower($_SERVER['HTTP_USER_AGENT']))){<br />
$mobile_browser++;<br />
}</p>
<p>if((strpos(strtolower($_SERVER['HTTP_ACCEPT']),'application/vnd.wap.xhtml+xml')&gt;0) or<br />
((isset($_SERVER['HTTP_X_WAP_PROFILE']) or isset($_SERVER['HTTP_PROFILE'])))){<br />
$mobile_browser++;<br />
}</p>
<p>$mobile_ua = strtolower(substr($_SERVER['HTTP_USER_AGENT'],0,4));<br />
$mobile_agents = array(<br />
'w3c ','acs-','alav','alca','amoi','audi','avan','benq','bird','blac',<br />
'blaz','brew','cell','cldc','cmd-','dang','doco','eric','hipt','inno',<br />
'ipaq','java','jigs','kddi','keji','leno','lg-c','lg-d','lg-g','lge-',<br />
'maui','maxo','midp','mits','mmef','mobi','mot-','moto','mwbp','nec-',<br />
'newt','noki','oper','palm','pana','pant','phil','play','port','prox',<br />
'qwap','sage','sams','sany','sch-','sec-','send','seri','sgh-','shar',<br />
'sie-','siem','smal','smar','sony','sph-','symb','t-mo','teli','tim-',<br />
'tosh','tsm-','upg1','upsi','vk-v','voda','wap-','wapa','wapi','wapp',<br />
'wapr','webc','winw','winw','xda','xda-');</p>
<p>if(in_array($mobile_ua,$mobile_agents)){<br />
$mobile_browser++;<br />
}<br />
if (strpos(strtolower($_SERVER['ALL_HTTP']),'OperaMini')&gt;0) {<br />
$mobile_browser++;<br />
}<br />
if (strpos(strtolower($_SERVER['HTTP_USER_AGENT']),'windows')&gt;0) {<br />
$mobile_browser=0;<br />
}</p>
<p>//change this to your mobile friendly page<br />
if($mobile_browser&gt;0){<br />
header( "Location: http://www.yourwebsite.com/mobile/" ) ;<br />
} else {<br />
// do something else<br />
}</p>
<p>$ua = $HTTP_USER_AGENT;<br />
if (stristr($ua, "Windows CE") or stristr($ua, "AvantGo") or stristr($ua,<br />
"Mazingo") or stristr($ua, "Mobile") or stristr($ua, "T68") or stristr($ua,<br />
"Syncalot") or stristr($ua, "Blazer") or stristr($ua, "NetFront"))<br />
{<br />
$DEVICE_TYPE="MOBILE";<br />
}</p>
<p>if (isset($DEVICE_TYPE) and $DEVICE_TYPE=="MOBILE")<br />
{<br />
//change this to your mobile friendly page<br />
header( "Location: http://www.yourwebsite.com/mobile/" ) ;<br />
exit;<br />
}</p>
<p>?&gt;</p>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://worcesterwideweb.com/2009/06/25/redirect-mobile-users-to-a-mobile-friendly-page-with-php/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Online food ordering script &#8220;Restaurant Biller&#8221; released with pricing!</title>
		<link>http://worcesterwideweb.com/2009/03/08/online-food-ordering-script-restaurant-biller-released-with-pricing/</link>
		<comments>http://worcesterwideweb.com/2009/03/08/online-food-ordering-script-restaurant-biller-released-with-pricing/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 22:22:16 +0000</pubDate>
		<dc:creator>Anthony</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Online Food Ordering]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Technology]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://worcesterwideweb.com/2009/03/08/online-food-ordering-script-restaurant-biller-released-with-pricing/</guid>
		<description><![CDATA[

Easy AJAX powered checkout system
Receive the orders directly through email within 30 seconds of placed order
Easy customization for those who want to modify their site
Set the hours you would like your store open
Turn your store off and on through the administration panel
Enable Credit or disable credit cards
Enable or disable delivery and delivery fees
Modify your home [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://worcesterwideweb.com/2009/03/08/online-food-ordering-script-restaurant-biller-released-with-pricing/restpng/" target="_blank" rel="attachment wp-att-43" title="rest.png"><img src="http://worcesterwideweb.com/wp-content/uploads/2009/03/rest.png" title="rest.png" alt="rest.png" border="0" /></a></p>
<ul>
<li>Easy AJAX powered checkout system</li>
<li>Receive the orders directly through email within 30 seconds of placed order</li>
<li>Easy customization for those who want to modify their site</li>
<li>Set the hours you would like your store open</li>
<li>Turn your store off and on through the administration panel</li>
<li>Enable Credit or disable credit cards</li>
<li>Enable or disable delivery and delivery fees</li>
<li>Modify your home page directly from a control panel</li>
<li>Add Edit and delete categories to your menu</li>
<li>Add Edit and delete menu items with extented features</li>
<li>Each site has a contact us page for customer questions</li>
<li>Edit the hours you would like your online store open</li>
<li>Add an addition cost for delivery, tax prices or order processing fees</li>
<li>Built In newsletter system</li>
<li>Free updates</li>
</ul>
<p><a href="http://restaurantbiller.com/" target="_blank" style="font-size:1.2em">Click here for a demo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://worcesterwideweb.com/2009/03/08/online-food-ordering-script-restaurant-biller-released-with-pricing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Function: Make non linked links clickable</title>
		<link>http://worcesterwideweb.com/2008/12/16/php-function-make-non-linked-links-clickable/</link>
		<comments>http://worcesterwideweb.com/2008/12/16/php-function-make-non-linked-links-clickable/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 19:49:43 +0000</pubDate>
		<dc:creator>Anthony</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://worcesterwideweb.com/2008/12/16/php-function-make-non-linked-links-clickable/</guid>
		<description><![CDATA[Recently I came across a problem making a twitter plugin. I needed to make links which had no &#8220;a&#8221; tag into links. You can do this progamaticly and here is the solution:
If you are going to use this script please download from here: links.php.txt

Code (php)


function makeClickableLinks($text) {


&#160;


$text = eregi_replace(&#8217;(((f&#124;ht){1}tp://)[-a-zA-Z0-9@:%_+.~#?&#38;//=]+)&#8217;,


&#160;


 &#160; &#160;&#8217;&#60;a href=&#34;1&#34;&#62;1&#60;/a&#62;&#8217;, $text);


&#160;


  $text = eregi_replace(&#8217;([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_+.~#?&#38;//=]+)&#8217;,


&#160;


 &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I came across a problem making a twitter plugin. I needed to make links which had no &#8220;a&#8221; tag into links. You can do this progamaticly and here is the solution:</p>
<p>If you are going to use this script please download from here: <a href="http://worcesterwideweb.com/wp-content/uploads/2008/12/linksphp.txt" title="linksphp.txt">links.php.txt</a></p>
<div class="ch_code_container" style="font-family: monospace;height:300px;">
<div style="">Code (php)</div>
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">function makeClickableLinks($text) {</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$text = eregi_replace(&#8217;(((f|ht){1}tp://)[-a-zA-Z0-9@:%_+.~#?&amp;//=]+)&#8217;,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"> &nbsp; &nbsp;&#8217;&lt;a href=&quot;1&quot;&gt;1&lt;/a&gt;&#8217;, $text);</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  $text = eregi_replace(&#8217;([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_+.~#?&amp;//=]+)&#8217;,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"> &nbsp; &nbsp;&#8217;1&lt;a href=&quot;http://2&quot;&gt;2&lt;/a&gt;&#8217;, $text);</div>
</li>
<li style="font-weight: bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  $text = eregi_replace(&#8217;([_.0-9a-z-]+@([0-9a-z][0-9a-z-]+.)+[a-z]{2,3})&#8217;,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"> &nbsp; &nbsp;&#8217;&lt;a href=&quot;mailto:1&quot;&gt;1&lt;/a&gt;&#8217;, $text);</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">return $text;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">// Usage</div>
</li>
<li style="font-weight: bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">// Email address example</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$text = &quot;you@example.com&quot;;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">echo makeClickableLinks($text);</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">echo &quot;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&quot;;</div>
</li>
<li style="font-weight: bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">// URL example</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$text = &quot;http://www.example.com&quot;;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">echo makeClickableLinks($text);</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">echo &quot;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&quot;;</div>
</li>
<li style="font-weight: bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">// FTP URL example</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$text = &quot;ftp://ftp.example.com&quot;;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">echo makeClickableLinks($text);</div>
</li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://worcesterwideweb.com/2008/12/16/php-function-make-non-linked-links-clickable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cubecart product compare mod</title>
		<link>http://worcesterwideweb.com/2008/12/15/cubecart-product-compare-mod/</link>
		<comments>http://worcesterwideweb.com/2008/12/15/cubecart-product-compare-mod/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 13:53:39 +0000</pubDate>
		<dc:creator>Anthony</dc:creator>
				<category><![CDATA[Cubecart]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://worcesterwideweb.com/2008/12/15/cubecart-product-compare-mod/</guid>
		<description><![CDATA[Cubecart product compare mod allows customers to compare 2 or more products, the customer can see the price,description, image, name and weight. The Cubecart product compare mod also makes it simple to add new fields to the compare mod. For instance if you own a computer shop you can add some custom fields to the [...]]]></description>
			<content:encoded><![CDATA[<p>Cubecart product compare mod allows customers to compare 2 or more products, the customer can see the price,description, image, name and weight. The Cubecart product compare mod also makes it simple to add new fields to the compare mod. For instance if you own a computer shop you can add some custom fields to the inventory table and compare those items on the compare page by just drawing the variable. With a simple installation this mod is a sure win for your cubecart installation.</p>
<p>Price: $15<br />
License: unlimited domain<br />
Demo: <a href="http://worcesterwideweb.com/store/index.php?act=viewCat&amp;catId=1" target="_blank">http://worcesterwideweb.com/store/index.php?act=viewCat&amp;catId=1</a></p>
<p><img src="http://worcesterwideweb.com/wp-content/uploads/2008/12/compare.jpg" alt="compare.jpg" /></p>
<p><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=billing%40worcesterwideweb%2ecom&amp;item_name=Cubecart%20compare&amp;amount=15%2e00&amp;no_shipping=0&amp;no_note=1&amp;currency_code=USD&amp;lc=US&amp;bn=PP%2dBuyNowBF&amp;charset=UTF%2d8" target="_blank"><br />
<img src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://worcesterwideweb.com/2008/12/15/cubecart-product-compare-mod/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Restaurant Online Ordering System Beta available!</title>
		<link>http://worcesterwideweb.com/2008/12/07/restaurant-online-ordering-system-beta-available/</link>
		<comments>http://worcesterwideweb.com/2008/12/07/restaurant-online-ordering-system-beta-available/#comments</comments>
		<pubDate>Sun, 07 Dec 2008 20:43:17 +0000</pubDate>
		<dc:creator>Anthony</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Online Food Ordering]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Web Technology]]></category>

		<guid isPermaLink="false">http://worcesterwideweb.com/2008/12/07/restaurant-online-ordering-system-beta-available/</guid>
		<description><![CDATA[The Restaurant Biller application is now available! With the features  listed below and the low price it costs to use this application its a sure hit for small business restaurants world wide. Here are the features the Restaurant Biller boasts:
The online restaurant ordering system for small to large businesses. More and more people are going online [...]]]></description>
			<content:encoded><![CDATA[<p>The Restaurant Biller application is now available! With the features  listed below and the low price it costs to use this application its a sure hit for small business restaurants world wide. Here are the features the <a href="http://www.restaurantbiller.com">Restaurant Biller </a>boasts:</p>
<blockquote><p>The online restaurant ordering system for small to large businesses. More and more people are going online to search for food in their area rather then using the yellow pages. Restaurant Biller© created an online solution for those restaurants to have an online menu where customers can place orders. This application is very powerful and easy to use with features allowing you to easily control every aspect of your website. Listed below are some of the features included in this application.</p>
<ul>
<li>Easy AJAX powered checkout system</li>
<li>Receive the orders directly through email within 30 seconds of placed order</li>
<li>Easy customization for those who want to modify their site</li>
<li>Modify your home page directly from a control panel</li>
<li>Add Edit and delete categories to your menu</li>
<li>Add Edit and delete menu items with extented features</li>
<li>Each site has a contact us page for customer questions</li>
<li>Edit the hours you would like your online store open</li>
<li>Add an addition cost for delivery, tax prices or order processing fees</li>
<li>Free updates</li>
</ul>
</blockquote>
<p><a href="http://restaurantbiller.com/" target="_blank">Click here to view the demo and website</a><br />
or<br />
<a href="http://worcesterwideweb.com/contact/">Click here to enquire about getting setup on this system</a></p>
]]></content:encoded>
			<wfw:commentRss>http://worcesterwideweb.com/2008/12/07/restaurant-online-ordering-system-beta-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php 5 and imagecreatefromjpeg()  recoverable error: Premature end of JPEG file</title>
		<link>http://worcesterwideweb.com/2008/03/17/php-5-and-imagecreatefromjpeg-recoverable-error-premature-end-of-jpeg-file/</link>
		<comments>http://worcesterwideweb.com/2008/03/17/php-5-and-imagecreatefromjpeg-recoverable-error-premature-end-of-jpeg-file/#comments</comments>
		<pubDate>Mon, 17 Mar 2008 18:25:38 +0000</pubDate>
		<dc:creator>Anthony</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://worcesterwideweb.com/2008/03/17/php-5-and-imagecreatefromjpeg-recoverable-error-premature-end-of-jpeg-file/</guid>
		<description><![CDATA[Ok I recently came up with a problem creating thumbnails for a project I am working on. I was stumped for hours, it seems that some files that were saved from a mac or certain photo editing programs would cause php to not recognize it a jpg thus giving the error:  
imagecreatefromjpeg() : gd-jpeg, libjpeg: recoverable [...]]]></description>
			<content:encoded><![CDATA[<p>Ok I recently came up with a problem creating thumbnails for a project I am working on. I was stumped for hours, it seems that some files that were saved from a mac or certain photo editing programs would cause php to not recognize it a jpg thus giving the error:  </p>
<p><strong>imagecreatefromjpeg() : gd-jpeg, libjpeg: recoverable error: Premature end of JPEG</strong></p>
<p>After researching this problem I realized it was a problem with php 5 and gd2. Heres how to fix it</p>
<ul>
<li><strong>php 4 : No action neccesarry it should work fine</strong></li>
<li><strong>php 5.0 &#8211; 5.1.2 = Upgrade to the latest php 5</strong></li>
<li><strong>php 5.1.3 &#8211; current = Declare this variable in your file before calling imagecreatefromjpeg()    </strong></li>
</ul>
<p><strong>ini_set(&#8217;gd.jpeg_ignore_warning&#8217;, 1);</strong></p>
<p>Doing that will cause gd2,php to ignore the error and continue where it use to just fail and do nothing.</p>
]]></content:encoded>
			<wfw:commentRss>http://worcesterwideweb.com/2008/03/17/php-5-and-imagecreatefromjpeg-recoverable-error-premature-end-of-jpeg-file/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Cubecart custom category order</title>
		<link>http://worcesterwideweb.com/2007/08/05/cubecart-custom-category-order/</link>
		<comments>http://worcesterwideweb.com/2007/08/05/cubecart-custom-category-order/#comments</comments>
		<pubDate>Sun, 05 Aug 2007 14:40:29 +0000</pubDate>
		<dc:creator>Anthony</dc:creator>
				<category><![CDATA[Cubecart]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://worcesterwideweb.com/2007/08/05/cubecart-custom-category-order/</guid>
		<description><![CDATA[So I developed another new mod for cubecart, this one allows you to sort out your categories in cubecart the way you want without staying with the normal sort by name or id as seen in other mods. This mod only modifies 3 files and installs one column “pos” to your database to do the ordering. [...]]]></description>
			<content:encoded><![CDATA[<p>So I developed another new mod for cubecart, this one allows you to sort out your categories in cubecart the way you want without staying with the normal sort by name or id as seen in other mods. This mod only modifies 3 files and installs one column “pos” to your database to do the ordering. Remember to back up your database and files before attempting any modification on your original files. To download this file click on the link below.</p>
<p><strike>Custom category ordering 1.0</strike></p>
<p><a href="http://worcesterwideweb.com/wp-content/uploads/2007/11/custom_category_order_13.zip" title="custom_category_order_1.3">custom_category_order_1.3</a> (updated for manual ordering)</p>
]]></content:encoded>
			<wfw:commentRss>http://worcesterwideweb.com/2007/08/05/cubecart-custom-category-order/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Cubecart multiple delete and re categorize admin hack</title>
		<link>http://worcesterwideweb.com/2007/07/15/cubecart-multiple-delete-and-re-categorize-admin-hack/</link>
		<comments>http://worcesterwideweb.com/2007/07/15/cubecart-multiple-delete-and-re-categorize-admin-hack/#comments</comments>
		<pubDate>Sun, 15 Jul 2007 18:39:52 +0000</pubDate>
		<dc:creator>Anthony</dc:creator>
				<category><![CDATA[Cubecart]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://worcesterwideweb.com/2007/07/15/cubecart-multiple-delete-and-re-categorize-admin-hack/</guid>
		<description><![CDATA[I am developing a new shopping cart using the cubecart system, the client has about 2500 parts in the database. After importing these products into the database I noticed that a good 500 were mis categorized and about 100 were out of date and had to be removed. Cubecart didnt have any support for multi [...]]]></description>
			<content:encoded><![CDATA[<p>I am developing a new shopping cart using the cubecart system, the client has about 2500 parts in the database. After importing these products into the database I noticed that a good 500 were mis categorized and about 100 were out of date and had to be removed. Cubecart didnt have any support for multi re-categorize or multiple deletes so I created the following hack. This hack will allow you to check off all the products on the product view page and do 2 different things. Either delete the selected products or move the selected products to a different category. To enable this hack in your cubecart admin panel paste the code in the following areas .</p>
<p>Due to people not being able to copy the code correctly I have pasted it in a text file which can be viewed here<br />
<a href='http://worcesterwideweb.com/wp-content/uploads/2007/07/install_multi_delete_recat.txt' title='install_multi_delete_recat.txt'>install_multi_delete_recat.txt</a></p>
<p>You can also download my own index.php with the mod already installed, this will work perfect for you if you havent already modded your admin/products/index.php. Download that file here: <a href='http://worcesterwideweb.com/wp-content/uploads/2007/07/install_multi_delete_recat-2.zip' title='install_multi_delete_recat-2.zip'>install_multi_delete_recat-2.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://worcesterwideweb.com/2007/07/15/cubecart-multiple-delete-and-re-categorize-admin-hack/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>mysql update from another table</title>
		<link>http://worcesterwideweb.com/2007/07/03/mysql-update-from-another-table/</link>
		<comments>http://worcesterwideweb.com/2007/07/03/mysql-update-from-another-table/#comments</comments>
		<pubDate>Tue, 03 Jul 2007 17:47:16 +0000</pubDate>
		<dc:creator>Anthony</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Technology]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://worcesterwideweb.com/2007/07/03/mysql-update-from-another-table/</guid>
		<description><![CDATA[Recently I needed to update a bunch of rows in mysql with information from another table. I will explain how to do this simple process.

Open up phpmyadmin or similar database editor
view the sql query below


Code (sql)


&#160;


UPDATE updatefrom p, updateto pp 


SET pp.last_name = p.last_name 


WHERE pp.visid = p.id



Lets say we have 2 tables one named [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I needed to update a bunch of rows in mysql with information from another table. I will explain how to do this simple process.</p>
<ol>
<li>Open up phpmyadmin or similar database editor</li>
<li>view the sql query below</li>
</ol>
<div class="ch_code_container" style="font-family: monospace;height:100%;">
<div style="">Code (sql)</div>
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #993333; font-weight: bold;">UPDATE</span> updatefrom p, updateto pp </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #993333; font-weight: bold;">SET</span> pp.last_name = p.last_name </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #993333; font-weight: bold;">WHERE</span> pp.visid = p.id</div>
</li>
</ol>
</div>
<p>Lets say we have 2 tables one named main and one named updateto and one named updatefrom, In the first line we assign variables to these t tables (p and pp) from there we can call column names using this format table.columname. If we had first_name and last_name in both tables and wanted to update the &#8220;updateto&#8221; table with the info from &#8220;updatefrom&#8221; this is how you would write it.</p>
]]></content:encoded>
			<wfw:commentRss>http://worcesterwideweb.com/2007/07/03/mysql-update-from-another-table/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Dynamic PHP Email Forms without massive amounts of code</title>
		<link>http://worcesterwideweb.com/2007/05/19/dynamic-php-email-forms-without-massive-amounts-of-code/</link>
		<comments>http://worcesterwideweb.com/2007/05/19/dynamic-php-email-forms-without-massive-amounts-of-code/#comments</comments>
		<pubDate>Sat, 19 May 2007 22:54:57 +0000</pubDate>
		<dc:creator>Anthony</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://worcesterwideweb.com/2007/05/19/dynamic-php-email-forms-without-massive-amounts-of-code/</guid>
		<description><![CDATA[Ever had a HUGE form that just emails basic information and just thought to yourself, damn there has to be an easier way to do this! I&#8217;ve got a solution that will work, basicly what it does is takes the form loops all the input fields and sends them through email (or proccess them any [...]]]></description>
			<content:encoded><![CDATA[<p>Ever had a HUGE form that just emails basic information and just thought to yourself, damn there has to be an easier way to do this! I&#8217;ve got a solution that will work, basicly what it does is takes the form loops all the input fields and sends them through email (or proccess them any way you would like) I&#8217;ll go over the basics here.</p>
<p>First we need a form Lets start with something simple</p>
<p><a href="http://worcesterwideweb.com/wp-content/uploads/2008/12/linksphp.txt" title="linksphp.txt"></a></p>
<div class="ch_code_container" style="font-family: monospace;height:300px;">
<div style="">Code (html)</div>
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">
</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;form action=&quot;process.php&quot; method=&quot;post&quot;&gt;
</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Name:&nbsp; &nbsp; &nbsp;
</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;input name=&quot;Name&quot; /&gt;
</div>
</li>
<li style="font-weight: bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">
</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Email:&nbsp; &nbsp; &nbsp;
</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;input name=&quot;Email&quot; /&gt;
</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">
</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Address:&nbsp; &nbsp; &nbsp;
</div>
</li>
<li style="font-weight: bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;input name=&quot;Address&quot; /&gt;
</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;input name=&quot;Address&quot; type=&quot;submit&quot; /&gt;
</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/form&gt;</div>
</li>
</ol>
</div>
<p>Now to process it, first we will import all variables and send them through a loop</p>
<div class="ch_code_container" style="font-family: monospace;height:300px;">
<div style="">Code (php)</div>
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">@import_request_variables(&quot;gpc&quot;);&nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$server = $_SERVER['HTTP_HOST'];&nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">foreach($_POST as $key =&gt; $data) { </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; if($key != &#8216;required&#8217;) { </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; if($data !=&#8221;) { </div>
</li>
<li style="font-weight: bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $message .= &#8216;&lt;strong&gt;&#8217;.$key.&#8217;&lt;/strong&gt;: &#8216;.$data.&#8221;; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; } </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; } </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">}</div>
</li>
</ol>
</div>
<p>Now you can display your information if you wish or go further to send it with an email, im using a email class i built which you can <a href="http://www.worcesterwideweb.com/wp-downloads/libmail.zip" title="php mail l ibrary">download here</a>.</p>
<div class="ch_code_container" style="font-family: monospace;height:300px;">
<div style="">Code (php)</div>
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">echo &#8216;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;p style=&quot;background-color: #f2fced; margin: 20px; border: #cccccc 1px solid; padding: 20px&quot;&gt; &lt;/p&gt;</div>
</li>
<li style="font-weight: bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;h4&gt;Your forum Has been sucessfully sent with the following information&lt;/h4&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&#8216;.$message.&#8217;&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&#8216;;&nbsp; &nbsp; &nbsp;</div>
</li>
<li style="font-weight: bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$m = new Mail(); // create the mail </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$m-&gt;From( &quot;email@server.com&quot; ); </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$m-&gt;To( &quot;email@server.com&quot;&nbsp; ); </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$m-&gt;Subject( &#8216;New forum submission from&nbsp; &#8216;.$server.&#8217; Contact Page&#8217; ); </div>
</li>
<li style="font-weight: bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$m-&gt;Body( $message); </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$m-&gt;Priority(4);&nbsp; &nbsp; &nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$m-&gt;Send(); // send the mail</div>
</li>
</ol>
</div>
<p>This method is very easy for sending simple forms where serverside validation is not needed. Check it out play with it and post if you have any questions ill be happy to help!</p>
]]></content:encoded>
			<wfw:commentRss>http://worcesterwideweb.com/2007/05/19/dynamic-php-email-forms-without-massive-amounts-of-code/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
