<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>PHP Video Tutorials</title>
		<link>http://forum.phpvideotutorials.com/</link>
		<description>PHP Video Tutorials Support Forum</description>
		<language>en</language>
		<lastBuildDate>Tue, 09 Feb 2010 08:32:27 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://forum.phpvideotutorials.com/images/misc/rss.jpg</url>
			<title>PHP Video Tutorials</title>
			<link>http://forum.phpvideotutorials.com/</link>
		</image>
		<item>
			<title>The requested URL /invoicr/invoices was not found on this server.</title>
			<link>http://forum.phpvideotutorials.com/showthread.php?t=7331&amp;goto=newpost</link>
			<pubDate>Tue, 09 Feb 2010 07:19:39 GMT</pubDate>
			<description>Good Day! 
 
i have seen your video on cakephp on invoicr.It was great! I followed every step on the video but the error appears when i tried to run...</description>
			<content:encoded><![CDATA[<div>Good Day!<br />
<br />
i have seen your video on cakephp on invoicr.It was great! I followed every step on the video but the error appears when i tried to run it on localhost.it says &quot;The requested URL /invoicr/invoices was not found on this server&quot;. I used wamp as web server. i would be glad to hear from you. Thanks again!<br />
<br />
brendon andre</div>

]]></content:encoded>
			<category domain="http://forum.phpvideotutorials.com/forumdisplay.php?f=38">CakePHP</category>
			<dc:creator>brendon andre</dc:creator>
			<guid isPermaLink="true">http://forum.phpvideotutorials.com/showthread.php?t=7331</guid>
		</item>
		<item>
			<title>current users</title>
			<link>http://forum.phpvideotutorials.com/showthread.php?t=7330&amp;goto=newpost</link>
			<pubDate>Mon, 08 Feb 2010 20:26:17 GMT</pubDate>
			<description>I like the way forums show what users are currently logged on.  
 
is there a way to do this using the user sessions? or how is this done?</description>
			<content:encoded><![CDATA[<div>I like the way forums show what users are currently logged on. <br />
<br />
is there a way to do this using the user sessions? or how is this done?</div>

]]></content:encoded>
			<category domain="http://forum.phpvideotutorials.com/forumdisplay.php?f=7">PHP</category>
			<dc:creator>kshuck2</dc:creator>
			<guid isPermaLink="true">http://forum.phpvideotutorials.com/showthread.php?t=7330</guid>
		</item>
		<item>
			<title><![CDATA[Evenin']]></title>
			<link>http://forum.phpvideotutorials.com/showthread.php?t=7329&amp;goto=newpost</link>
			<pubDate>Mon, 08 Feb 2010 19:28:13 GMT</pubDate>
			<description>Hey! 
My name is Frank. 
Love this site :D 
Leigh makes learning pretty fun (unlike Lynda.com). 
 
Hope to become a total php pro/ a medium php...</description>
			<content:encoded><![CDATA[<div>Hey!<br />
My name is Frank.<br />
Love this site :D<br />
Leigh makes learning pretty fun (unlike Lynda.com).<br />
<br />
Hope to become a total php pro/ a medium php person. Either one is fine.<br />
<br />
I will be chatting at you all some more soon, 'cause no doubt I will have at least loads of problems.<br />
<br />
Bye!</div>

]]></content:encoded>
			<category domain="http://forum.phpvideotutorials.com/forumdisplay.php?f=2">Introductions</category>
			<dc:creator>mrFrank</dc:creator>
			<guid isPermaLink="true">http://forum.phpvideotutorials.com/showthread.php?t=7329</guid>
		</item>
		<item>
			<title>Free SSH alternative to PuTTY</title>
			<link>http://forum.phpvideotutorials.com/showthread.php?t=7328&amp;goto=newpost</link>
			<pubDate>Mon, 08 Feb 2010 17:44:56 GMT</pubDate>
			<description><![CDATA[Does anyone know of a good free SSH console to PuTTY. I'm not really a big fan of it to be honest, and wondered if there was something better...]]></description>
			<content:encoded><![CDATA[<div>Does anyone know of a good free SSH console to PuTTY. I'm not really a big fan of it to be honest, and wondered if there was something better available</div>

]]></content:encoded>
			<category domain="http://forum.phpvideotutorials.com/forumdisplay.php?f=8">General Chat</category>
			<dc:creator>JAY6390</dc:creator>
			<guid isPermaLink="true">http://forum.phpvideotutorials.com/showthread.php?t=7328</guid>
		</item>
		<item>
			<title>array not showing</title>
			<link>http://forum.phpvideotutorials.com/showthread.php?t=7327&amp;goto=newpost</link>
			<pubDate>Mon, 08 Feb 2010 15:28:39 GMT</pubDate>
			<description>hello 
 
lesson07_routing_system 
 
 
my array is not showing on index.php ? 
 
http://localhost/blog/ : should show an array but its not:</description>
			<content:encoded><![CDATA[<div>hello<br />
<br />
lesson07_routing_system<br />
<br />
<br />
my array is not showing on index.php ?<br />
<br />
<a href="http://localhost/blog/" target="_blank">http://localhost/blog/</a> : should show an array but its not:<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				this is the index.php file<br />
Array ( )
			
			<hr />
		</td>
	</tr>
	</table>
</div><br />
<b>index.php</b><br />
<br />
Code:<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				&lt;?php<br />
<br />
echo '&lt;p&gt;this is the index.php file&lt;/p&gt;';<br />
<br />
// REQUESTED URL<br />
$url = $_SERVER['REQUEST_URL'];<br />
<br />
// REMOVES APLICATION ROUTE FROM URL<br />
$url = str_replace('/blog/','',$url);<br />
<br />
//posts/2<br />
<br />
preg_match('/^posts\/(?P&lt;id&gt;\d+)/', $url, $matches);<br />
<br />
print_r($matches);<br />
<br />
<br />
echo $url;<br />
<br />
<br />
<br />
?&gt;
			
			<hr />
		</td>
	</tr>
	</table>
</div>any ideas. sorry</div>

]]></content:encoded>
			<category domain="http://forum.phpvideotutorials.com/forumdisplay.php?f=3">Database Website From Scratch</category>
			<dc:creator>rickyspires</dc:creator>
			<guid isPermaLink="true">http://forum.phpvideotutorials.com/showthread.php?t=7327</guid>
		</item>
		<item>
			<title>stumped and seeing things at the opera...</title>
			<link>http://forum.phpvideotutorials.com/showthread.php?t=7326&amp;goto=newpost</link>
			<pubDate>Mon, 08 Feb 2010 05:36:58 GMT</pubDate>
			<description>I usually test and fix my sites to be as compatible as possible in the latest versions of firefox, IE, safari, chrome, and opera...  
I have a site...</description>
			<content:encoded><![CDATA[<div>I usually test and fix my sites to be as compatible as possible in the latest versions of firefox, IE, safari, chrome, and opera... <br />
I have a site that uses a custom photo gallery, it works great in all browsers except opera, when loading small thumbnails into a table it shows double images<br />
here is the link to the test site page that is giving me fits:<br />
<br />
<a href="http://blog.shuckwebdesign.com/albums/1" target="_blank">http://blog.shuckwebdesign.com/albums/1</a><br />
or<br />
<a href="http://blog.shuckwebdesign.com/albums/12" target="_blank">http://blog.shuckwebdesign.com/albums/12</a><br />
<br />
it is only opera that is giving me this issue, but it is really bugging me.<br />
<br />
its a secure site so I opened up this page of the photo gallery so you can see<br />
<br />
here is the stylesheet<br />
<a href="http://blog.shuckwebdesign.com/public/stylesheets/posts.css" target="_blank">http://blog.shuckwebdesign.com/publi...eets/posts.css</a><br />
<br />
any help is greatly appreciated<br />
<br />
thanks!</div>

]]></content:encoded>
			<category domain="http://forum.phpvideotutorials.com/forumdisplay.php?f=33"><![CDATA[CSS & HTML]]></category>
			<dc:creator>kshuck2</dc:creator>
			<guid isPermaLink="true">http://forum.phpvideotutorials.com/showthread.php?t=7326</guid>
		</item>
		<item>
			<title><![CDATA[xampp - document_root & .htaccess problems]]></title>
			<link>http://forum.phpvideotutorials.com/showthread.php?t=7325&amp;goto=newpost</link>
			<pubDate>Sun, 07 Feb 2010 22:24:54 GMT</pubDate>
			<description><![CDATA[hello. 
 
im building the database script and i have ran in to a couple of problems : 
 
1, 
im using xampp which is like wamp/mamp but it doesn't...]]></description>
			<content:encoded><![CDATA[<div>hello.<br />
<br />
im building the database script and i have ran in to a couple of problems :<br />
<br />
1,<br />
im using xampp which is like wamp/mamp but it doesn't seem to find my document root<br />
<br />
in post.php<br />
include('$_SERVER['DOCUMENT_ROOT']);   gives me errors<br />
<br />
 i have to include a full url for it to work.<br />
include('/Users/rickyspires/Sites/blog/models/post.php');<br />
 <br />
<br />
2, i seem to have trouble with my .htaccess file.<br />
<br />
in wampp my rewrite_module is on but it wont open the url without /index.php on the end.<br />
<br />
ie.<br />
<a href="http://localhost/~rickyspires/blog" target="_blank">http://localhost/~rickyspires/blog</a> - GETS ERRORS<br />
<a href="http://localhost/~rickyspires/blog/index.php" target="_blank">http://localhost/~rickyspires/blog/index.php</a> - WORKS<br />
<br />
<br />
3, the following code on index.php gives me errors:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;?php<br />
<br />
echo '&lt;p&gt;this is the index.php file&lt;/p&gt;';<br />
<br />
// REQUESTED URL<br />
$url = $_SERVER['REQUEST_URL'];<br />
<br />
// REMOVES APLICATION ROUTE FROM URL<br />
$url = str_replace('/blog/','',$url);<br />
<br />
//posts/2<br />
<br />
preg_match('/^posts\/(?p&lt;id&gt;\d+)/', $url, $matches);<br />
<br />
print_r($matches);<br />
<br />
<br />
echo $url;<br />
<br />
<br />
<br />
?&gt;</code><hr />
</div><br />
<br />
THIS IS HOW THE PAGE LOOKS &amp; THE PAGE ERROR:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">HTML Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">this is the index.php file<br />
<br />
Warning: preg_match() &#91;function.preg-match&#93;: Compilation failed: unrecognized character after (? or (?- at offset 10 in /Users/rickyspires/Sites/blog/index.php on line 13</code><hr />
</div><br />
<br />
thanks<br />
rick</div>

]]></content:encoded>
			<category domain="http://forum.phpvideotutorials.com/forumdisplay.php?f=3">Database Website From Scratch</category>
			<dc:creator>rickyspires</dc:creator>
			<guid isPermaLink="true">http://forum.phpvideotutorials.com/showthread.php?t=7325</guid>
		</item>
		<item>
			<title><![CDATA[Removing 'published' column]]></title>
			<link>http://forum.phpvideotutorials.com/showthread.php?t=7323&amp;goto=newpost</link>
			<pubDate>Sun, 07 Feb 2010 15:00:34 GMT</pubDate>
			<description><![CDATA[I've been extending the cakeCMS and I think the 'published' column in the 'posts' table is mostly redundant, none of my post types actually save data...]]></description>
			<content:encoded><![CDATA[<div>I've been extending the cakeCMS and I think the 'published' column in the 'posts' table is mostly redundant, none of my post types actually save data into it anymore so it's just a column full of '0000-00-00 00:00:00', in order to make the system a little more efficient I thought about removing it from the DB completely.<br />
<br />
I used the schema tool to remove the column, but now none of the posts show up? I just get blank index pages. There must be some reference to it somewhere and since this affects all the different post types the same it surely must be something to do with the app_controller, post_controller or the post model surely? And yet I can't find any place where the published column is being referenced.<br />
<br />
Anyone know how I might go about deleting this column properly?</div>

]]></content:encoded>
			<category domain="http://forum.phpvideotutorials.com/forumdisplay.php?f=37">Building a CMS with CakePHP 1.2</category>
			<dc:creator>chrispy</dc:creator>
			<guid isPermaLink="true">http://forum.phpvideotutorials.com/showthread.php?t=7323</guid>
		</item>
		<item>
			<title>I like it here...</title>
			<link>http://forum.phpvideotutorials.com/showthread.php?t=7321&amp;goto=newpost</link>
			<pubDate>Sun, 07 Feb 2010 06:40:28 GMT</pubDate>
			<description>Hello,  
 
I bought the job website tutorial a month ago for a look-see and loved it.  I just did the 3 month subscription. 
 
My goal is to learn...</description>
			<content:encoded><![CDATA[<div>Hello, <br />
<br />
I bought the job website tutorial a month ago for a look-see and loved it.  I just did the 3 month subscription.<br />
<br />
My goal is to learn cakephp, make my very own CMS and design the hell out of it.  <br />
<br />
Thanks for all the help so far.  Frankly, I'm surprised at the quick responses so far.  <br />
<br />
Special shout-out to Scrogson for his wonderful MAMP/Cakephp tutorial and pong-like return to my link query.  <br />
<br />
Goreach</div>

]]></content:encoded>
			<category domain="http://forum.phpvideotutorials.com/forumdisplay.php?f=2">Introductions</category>
			<dc:creator>goreach</dc:creator>
			<guid isPermaLink="true">http://forum.phpvideotutorials.com/showthread.php?t=7321</guid>
		</item>
		<item>
			<title>email is not sending?</title>
			<link>http://forum.phpvideotutorials.com/showthread.php?t=7320&amp;goto=newpost</link>
			<pubDate>Sun, 07 Feb 2010 05:40:46 GMT</pubDate>
			<description><![CDATA[PHP: 
--------- 
<?php 
include('db_fns.php'); 
 
$paypal_email = "orders_1265251051_biz@yahoo.com"; 
$paypal_currency = "USD"; 
$shipping = 10.00;]]></description>
			<content:encoded><![CDATA[<div><div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
	<div class="alt2">
		<hr />
		<code style="white-space:nowrap">
		<div dir="ltr" style="text-align:left;">
			<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">include(</span><span style="color: #DD0000">'db_fns.php'</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$paypal_email&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"orders_1265251051_biz@yahoo.com"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$paypal_currency&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"USD"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$shipping&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">10.00</span><span style="color: #007700">;<br /><br />function&nbsp;</span><span style="color: #0000BB">no_paypal_trans_id</span><span style="color: #007700">(</span><span style="color: #0000BB">$trans_id</span><span style="color: #007700">)<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$connection&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">db_connect</span><span style="color: #007700">();&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$query&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">sprintf</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT&nbsp;id&nbsp;from&nbsp;orders&nbsp;WHERE&nbsp;paypal_trans_id&nbsp;=&nbsp;'%s'"</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">mysql_real_escape_string</span><span style="color: #007700">(</span><span style="color: #0000BB">$trans_id</span><span style="color: #007700">));<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #0000BB">$query</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$num_results&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysql_num_rows</span><span style="color: #007700">(</span><span style="color: #0000BB">$result</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">$num_results&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">false</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />}<br /><br />function&nbsp;</span><span style="color: #0000BB">payment_amount_correct</span><span style="color: #007700">(</span><span style="color: #0000BB">$shipping</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$params</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$amount&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">0.00</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for&nbsp;(</span><span style="color: #0000BB">$i</span><span style="color: #007700">=</span><span style="color: #0000BB">1</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">$i&nbsp;</span><span style="color: #007700">&lt;=&nbsp;</span><span style="color: #0000BB">$params</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'num_cart_items'</span><span style="color: #007700">&#93;;&nbsp;</span><span style="color: #0000BB">$i</span><span style="color: #007700">++)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$query&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">sprintf</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT&nbsp;price&nbsp;from&nbsp;content&nbsp;where&nbsp;id&nbsp;='%s'"</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">mysql_real_escape_string</span><span style="color: #007700">(</span><span style="color: #0000BB">$params</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'item_number{$i}'</span><span style="color: #007700">&#93;));<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #0000BB">$query</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">$result</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$item_price&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysql_result</span><span style="color: #007700">(</span><span style="color: #0000BB">$result</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'price'</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$amount&nbsp;</span><span style="color: #007700">+=&nbsp;</span><span style="color: #0000BB">$item_price&nbsp;</span><span style="color: #007700">*&nbsp;</span><span style="color: #0000BB">$params</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">"quanity{$i}"</span><span style="color: #007700">&#93;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if((</span><span style="color: #0000BB">$amount</span><span style="color: #007700">+</span><span style="color: #0000BB">$shipping</span><span style="color: #007700">)&nbsp;==&nbsp;</span><span style="color: #0000BB">$params</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'mc_gross'</span><span style="color: #007700">&#93;)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">false</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br /></span><span style="color: #FF8000">//http://www.paypal.com/cgi-bin/webscr?cmd=p/xcl/rec/ipn-code-outside<br /><br />//&nbsp;read&nbsp;the&nbsp;post&nbsp;from&nbsp;PayPal&nbsp;system&nbsp;and&nbsp;add&nbsp;'cmd'<br /></span><span style="color: #0000BB">$req&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'cmd=_notify-validate'</span><span style="color: #007700">;<br /><br />foreach&nbsp;(</span><span style="color: #0000BB">$_POST&nbsp;</span><span style="color: #007700">as&nbsp;</span><span style="color: #0000BB">$key&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #0000BB">$value</span><span style="color: #007700">)&nbsp;{<br /></span><span style="color: #0000BB">$value&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">urlencode</span><span style="color: #007700">(</span><span style="color: #0000BB">stripslashes</span><span style="color: #007700">(</span><span style="color: #0000BB">$value</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">$req&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"&amp;$key=$value"</span><span style="color: #007700">;<br />}<br /><br /></span><span style="color: #FF8000">//&nbsp;post&nbsp;back&nbsp;to&nbsp;PayPal&nbsp;system&nbsp;to&nbsp;validate<br /></span><span style="color: #0000BB">$header&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"POST&nbsp;/cgi-bin/webscr&nbsp;HTTP/1.0\r\n"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$header&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"Content-Type:&nbsp;application/x-www-form-urlencoded\r\n"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$header&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"Content-Length:&nbsp;"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">strlen</span><span style="color: #007700">(</span><span style="color: #0000BB">$req</span><span style="color: #007700">)&nbsp;.&nbsp;</span><span style="color: #DD0000">"\r\n\r\n"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$fp&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">fsockopen&nbsp;</span><span style="color: #007700">(</span><span style="color: #DD0000">'www.sandbox.paypal.com'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">80</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$errno</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$errstr</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">30</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">//&nbsp;assign&nbsp;posted&nbsp;variables&nbsp;to&nbsp;local&nbsp;variables<br /></span><span style="color: #0000BB">$item_name&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'item_name'</span><span style="color: #007700">&#93;;<br /></span><span style="color: #0000BB">$item_number&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'item_number'</span><span style="color: #007700">&#93;;<br /></span><span style="color: #0000BB">$payment_status&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'payment_status'</span><span style="color: #007700">&#93;;<br /></span><span style="color: #0000BB">$payment_amount&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'mc_gross'</span><span style="color: #007700">&#93;;<br /></span><span style="color: #0000BB">$payment_currency&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'mc_currency'</span><span style="color: #007700">&#93;;<br /></span><span style="color: #0000BB">$txn_id&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'txn_id'</span><span style="color: #007700">&#93;;<br /></span><span style="color: #0000BB">$receiver_email&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'receiver_email'</span><span style="color: #007700">&#93;;<br /></span><span style="color: #0000BB">$payer_email&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'payer_email'</span><span style="color: #007700">&#93;;<br /><br />if&nbsp;(!</span><span style="color: #0000BB">$fp</span><span style="color: #007700">)&nbsp;{<br /></span><span style="color: #FF8000">//&nbsp;HTTP&nbsp;ERROR<br /></span><span style="color: #007700">}&nbsp;else&nbsp;{<br /></span><span style="color: #0000BB">fputs&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$header&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">$req</span><span style="color: #007700">);<br />while&nbsp;(!</span><span style="color: #0000BB">feof</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">))&nbsp;{<br /></span><span style="color: #0000BB">$res&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">fgets&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">1024</span><span style="color: #007700">);<br />if&nbsp;(</span><span style="color: #0000BB">strcmp&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">$res</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"VERIFIED"</span><span style="color: #007700">)&nbsp;==&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)&nbsp;{<br /></span><span style="color: #FF8000">//&nbsp;check&nbsp;the&nbsp;payment_status&nbsp;is&nbsp;Completed<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'payment_status'</span><span style="color: #007700">&#93;&nbsp;==&nbsp;</span><span style="color: #DD0000">'Completed'<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">&amp;&amp;&nbsp;</span><span style="color: #0000BB">no_paypal_trans_id</span><span style="color: #007700">(</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'txn_id'</span><span style="color: #007700">&#93;)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;</span><span style="color: #0000BB">$paypal_email&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'receiver_email'</span><span style="color: #007700">&#93;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;</span><span style="color: #0000BB">$paypal_currency&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'mc_currency'</span><span style="color: #007700">&#93;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;</span><span style="color: #0000BB">payment_amount_correct</span><span style="color: #007700">(</span><span style="color: #0000BB">$shipping</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">))<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$to&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'admin@freeflyin.com'</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$subject&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'the&nbsp;subject'</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$message&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'hello&nbsp;it&nbsp;worked'</span><span style="color: #007700">.</span><span style="color: #0000BB">$req</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$headers&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'From:&nbsp;revx@freeflyin.com'&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #DD0000">"\r\n"&nbsp;</span><span style="color: #007700">.<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">'Reply-To:&nbsp;revx@freeflyin.com'&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #DD0000">"\r\n"&nbsp;</span><span style="color: #007700">.<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">'X-Mailer:&nbsp;PHP/'&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">phpversion</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">mail</span><span style="color: #007700">(</span><span style="color: #0000BB">$to</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$subject</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$message</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$headers</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #FF8000">//&nbsp;check&nbsp;that&nbsp;payment_amount/payment_currency&nbsp;are&nbsp;correct<br />//&nbsp;process&nbsp;payment<br /></span><span style="color: #007700">}<br />else&nbsp;if&nbsp;(</span><span style="color: #0000BB">strcmp&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">$res</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"INVALID"</span><span style="color: #007700">)&nbsp;==&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)&nbsp;{<br /></span><span style="color: #FF8000">//&nbsp;log&nbsp;for&nbsp;manual&nbsp;investigation<br /></span><span style="color: #007700">}<br />}<br /></span><span style="color: #0000BB">fclose&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">);<br />}<br /><br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code><!-- php buffer end -->
		</div>
		</code>
		<hr />
	</div>
</div>its not sending me an email, and yes the mail function does work, i tried it seperatly on another file.</div>

]]></content:encoded>
			<category domain="http://forum.phpvideotutorials.com/forumdisplay.php?f=22"><![CDATA[Shopping Cart & PayPal]]></category>
			<dc:creator>Fellixombc</dc:creator>
			<guid isPermaLink="true">http://forum.phpvideotutorials.com/showthread.php?t=7320</guid>
		</item>
		<item>
			<title>LadyAdmin is not a member here or administrator.</title>
			<link>http://forum.phpvideotutorials.com/showthread.php?t=7319&amp;goto=newpost</link>
			<pubDate>Sun, 07 Feb 2010 05:04:10 GMT</pubDate>
			<description>Just a heads up that if you get a message about a virus or spam from someone with the name LadyAdmin or something close to that, that you should...</description>
			<content:encoded><![CDATA[<div>Just a heads up that if you get a message about a virus or spam from someone with the name LadyAdmin or something close to that, that you should ignore it and delete it.</div>

]]></content:encoded>
			<category domain="http://forum.phpvideotutorials.com/forumdisplay.php?f=8">General Chat</category>
			<dc:creator>Lickity</dc:creator>
			<guid isPermaLink="true">http://forum.phpvideotutorials.com/showthread.php?t=7319</guid>
		</item>
		<item>
			<title>Lesson 5 error Controller can not be found</title>
			<link>http://forum.phpvideotutorials.com/showthread.php?t=7318&amp;goto=newpost</link>
			<pubDate>Sun, 07 Feb 2010 00:43:42 GMT</pubDate>
			<description><![CDATA[I'm having a problem after setting up the redirect controller in lesson 5.  I followed all the steps and when I go to test the pages (minute 23 of...]]></description>
			<content:encoded><![CDATA[<div>I'm having a problem after setting up the redirect controller in lesson 5.  I followed all the steps and when I go to test the pages (minute 23 of the video) cake gives me the following error:<br />
<br />
Missing Controller<br />
<br />
Error: Controller could not be found.<br />
<br />
Error: Create the class Controller below in file: cms/controllers/controller.php<br />
<br />
&lt;?php<br />
class Controller extends AppController {<br />
<br />
	var $name = '';<br />
}<br />
?&gt;<br />
<br />
I have checked my code to the code downloaded with the video and I am not finding any difference.</div>

]]></content:encoded>
			<category domain="http://forum.phpvideotutorials.com/forumdisplay.php?f=37">Building a CMS with CakePHP 1.2</category>
			<dc:creator>MikeGeorgeff</dc:creator>
			<guid isPermaLink="true">http://forum.phpvideotutorials.com/showthread.php?t=7318</guid>
		</item>
		<item>
			<title>Cakephp and MAMP</title>
			<link>http://forum.phpvideotutorials.com/showthread.php?t=7317&amp;goto=newpost</link>
			<pubDate>Sun, 07 Feb 2010 00:29:48 GMT</pubDate>
			<description><![CDATA[Hello folks. 
 
Thanks in advance for the advice! :) 
 
Before I can do anything with this tutorial, I'll need your help configuring cakephp and...]]></description>
			<content:encoded><![CDATA[<div>Hello folks.<br />
<br />
Thanks in advance for the advice! :)<br />
<br />
Before I can do anything with this tutorial, I'll need your help configuring cakephp and MAMP.  THere seems to be bits and pieces of information about just this thing on the internet but nothing concrete.  Before I start messing around in the terminal and screwing this up perhaps one of you fine folks can talk me through this.  <br />
<br />
Or should I just go ahead and shell out cash for something like the &quot;ModelBaker&quot; app?<br />
<br />
Thanks again!<br />
<br />
Goreach</div>

]]></content:encoded>
			<category domain="http://forum.phpvideotutorials.com/forumdisplay.php?f=37">Building a CMS with CakePHP 1.2</category>
			<dc:creator>goreach</dc:creator>
			<guid isPermaLink="true">http://forum.phpvideotutorials.com/showthread.php?t=7317</guid>
		</item>
		<item>
			<title>Parse error in C:\wamp\bin\apache\APache2.2.11\bin\php.ini on line 1891</title>
			<link>http://forum.phpvideotutorials.com/showthread.php?t=7316&amp;goto=newpost</link>
			<pubDate>Sat, 06 Feb 2010 07:42:36 GMT</pubDate>
			<description><![CDATA[Hi  
 
I am new to PHP and learning now using videos. I am in lesson 2. But while doing the simple mathematics and clicking on "Debug" i am getting...]]></description>
			<content:encoded><![CDATA[<div>Hi <br />
<br />
I am new to PHP and learning now using videos. I am in lesson 2. But while doing the simple mathematics and clicking on &quot;Debug&quot; i am getting this error,<br />
&quot;Parse error in C:\wamp\bin\apache\APache2.2.11\bin\php.ini on line 1891&quot;. What could be the problem? <br />
<br />
Thanks in advance<br />
Gopal</div>

]]></content:encoded>
			<category domain="http://forum.phpvideotutorials.com/forumdisplay.php?f=4">Free Lessons</category>
			<dc:creator>ammadekh</dc:creator>
			<guid isPermaLink="true">http://forum.phpvideotutorials.com/showthread.php?t=7316</guid>
		</item>
		<item>
			<title>Check if table has data.</title>
			<link>http://forum.phpvideotutorials.com/showthread.php?t=7315&amp;goto=newpost</link>
			<pubDate>Fri, 05 Feb 2010 10:16:08 GMT</pubDate>
			<description><![CDATA[Helllloooooooo fellow php'ers. 
 
I am doing some research into appointment scheduling systems, basically they all look the same both free and...]]></description>
			<content:encoded><![CDATA[<div>Helllloooooooo fellow php'ers.<br />
<br />
I am doing some research into appointment scheduling systems, basically they all look the same both free and purchase editions of the software. The only problem is that I am after something quite specific and wondered if my old friend PHP could answer the call.<br />
<br />
The project is going to be a complete booking system with multiple rooms that have a specfic 45min time slot and each booking will house basic information etc.<br />
My only problem where I come stuck on is that currently I am using just an excel spreadsheet to house the data and when someone else wants to use it they see a message that the file is locked and marked read only.<br />
<br />
I basically want to have multiple users that can log in and book appointments for customers without showing the locked for editing box, and will be an online tool.<br />
<br />
Is it possible for php to check to see if the data exists within a time slot so that the appointment can't be overwritten if another user logs in and wants to add an appointment to the same time.<br />
<br />
Is there already a solution out there that can already do this that I don't know of.<br />
<br />
Thanks</div>

]]></content:encoded>
			<category domain="http://forum.phpvideotutorials.com/forumdisplay.php?f=7">PHP</category>
			<dc:creator>processTHIS</dc:creator>
			<guid isPermaLink="true">http://forum.phpvideotutorials.com/showthread.php?t=7315</guid>
		</item>
	</channel>
</rss>
