<?xml version="1.0"?>
<rss version="2.0"><channel><title>Advanced PHP Videos Latest Topics</title><link>https://www.killersites.com/community/index.php?/forum/43-advanced-php-videos/</link><description>Advanced PHP Videos Latest Topics</description><language>en</language><item><title>Advanced PHP login page</title><link>https://www.killersites.com/community/index.php?/topic/23064-advanced-php-login-page/</link><description><![CDATA[
<p>
	Hi,
</p>

<p>
	I'm on chapter 12 - Advanced PHP,
</p>

<p>
	I'm using Windows 10
</p>

<p>
	 
</p>

<p>
	The login page works fine but I don't know why I'm getting these two Notices with undefined indexes, please can you help.  I have sent screen shots.
</p>

<p>
	Thank you.
</p>

<p><a href="https://www.killersites.com/community/uploads/monthly_2019_10/1334409180_Screenshot(2).png.07de0fefb0c186ee4a08b4b2ff83e8c4.png" class="ipsAttachLink ipsAttachLink_image"><img data-fileid="707" src="https://www.killersites.com/community/uploads/monthly_2019_10/879116990_Screenshot(2).thumb.png.3adc1e226045be3a409bd824723541a9.png" class="ipsImage ipsImage_thumbnailed" alt="Screenshot (2).png"></a></p>
<p><a href="https://www.killersites.com/community/uploads/monthly_2019_10/1664184977_Screenshot(3).png.cb599dd70051899de863dccb4810f5a8.png" class="ipsAttachLink ipsAttachLink_image"><img data-fileid="709" src="https://www.killersites.com/community/uploads/monthly_2019_10/987460832_Screenshot(3).thumb.png.30b5abb29bff0bcac29f870cfd40822d.png" class="ipsImage ipsImage_thumbnailed" alt="Screenshot (3).png"></a></p>
]]></description><guid isPermaLink="false">23064</guid><pubDate>Sun, 13 Oct 2019 00:00:07 +0000</pubDate></item><item><title>Form Validation Project Doubts</title><link>https://www.killersites.com/community/index.php?/topic/22984-form-validation-project-doubts/</link><description><![CDATA[
<div style="background-color:#ffffff;color:#222222;font-size:small;">
	Hey, I just completed the Form Validation Project on Studioweb and  I would really appreciate help regarding my doubts:
</div>

<div style="background-color:#ffffff;color:#222222;font-size:small;">
	 
</div>

<div style="background-color:#ffffff;color:#222222;font-size:small;">
	1. If we are enabling Server side validation as well as client side validation, and javascript is on, meaning validate plugin works so does the server side validation automatically turns off? in the tutorials and through my testing, its clear that PHP validation doesn't work when Validate plugin but why? Shouldn't both of them working at the same time?
</div>

<div style="background-color:#ffffff;color:#222222;font-size:small;">
	 
</div>

<div style="background-color:#ffffff;color:#222222;font-size:small;">
	2. Why do we need sessions in PHP if we can create and use associative arrays like $form['name'], $error['name'] etc. and then use them among different PHP pages?
</div>

<div style="background-color:#ffffff;color:#222222;font-size:small;">
	 
</div>

<div style="background-color:#ffffff;color:#222222;font-size:small;">
	Thank you
</div>
]]></description><guid isPermaLink="false">22984</guid><pubDate>Fri, 13 Sep 2019 13:00:08 +0000</pubDate></item><item><title>Php-Cart-Oop: Paypal Sandbox Totally Changed</title><link>https://www.killersites.com/community/index.php?/topic/17583-php-cart-oop-paypal-sandbox-totally-changed/</link><description><![CDATA[
<p>I wonder if there is an update to video 33 of the php-cart-oop-mvc-course?</p>
<p> </p>
<p>It seems that paypal's sandbox has totally changed since the video was created. That time, Ben could just create a testing accounts for buyer and seller right away, while at this time it seems I have to create a sandbox testing app with a bunch of options before getting to the points I am interested in for the sake of the php course.</p>
<p> </p>
<p>Is there an update of some kind?</p>
<p> </p>
<p>Anyway, thanx for a great course!! Really good it is!</p>
]]></description><guid isPermaLink="false">17583</guid><pubDate>Mon, 07 Oct 2013 14:22:19 +0000</pubDate></item><item><title>How does these functions work?</title><link>https://www.killersites.com/community/index.php?/topic/22329-how-does-these-functions-work/</link><description><![CDATA[
<p>
	Hi people! Since I couldnt get answers from Stackoverflow I desiced to ask you.
</p>

<p>
	Can someone explain how does these 2 functions work:
</p>

<ol>
<li>
		class_exists()
	</li>
	<li>
		spl_autoload_register()
		<p>
			 
		</p>
	</li>
</ol>
<p>
	<strong>Class exist function</strong>
</p>

<pre class="ipsCode prettyprint lang-php prettyprinted">
<span class="kwd">if</span><span class="pun">(</span><span class="pln">class_exists</span><span class="pun">(</span><span class="str">'User'</span><span class="pun">)){</span><span class="pln">
	echo </span><span class="str">"It does exists"</span><span class="pun">;</span><span class="pln">
</span><span class="pun">}</span><span class="pln">
</span><span class="kwd">class</span><span class="pln"> </span><span>User</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
	</span><span class="com">/*
		Some code here
	*/</span><span class="pln">
</span><span class="pun">}</span><span class="pln">

</span><span class="com">// the output of file is "It does exists"</span></pre>

<p>
	So how does this function works? Scans whole file? Whole directory? I mean its called before I defined class.
</p>

<p>
	<strong>Spl autoload register function</strong>
</p>

<pre class="ipsCode prettyprint lang-php prettyprinted">
<span class="pln">include </span><span class="str">'functions.php'</span><span class="pun">;</span><span class="pln"> </span><span class="com">// &lt;- file where is the function class_exist('User') and spl_autoload_register()</span><span class="pln">
include </span><span class="str">'db_config.php'</span><span class="pun">;</span><span class="pln">
include </span><span class="str">'database.php'</span><span class="pun">;</span><span class="pln">
include </span><span class="str">'user.php'</span><span class="pun">;</span><span class="pln"> </span><span class="com">// &lt;- Here is the class (User) </span></pre>

<p>
	So how does this function work? Its before any of those files that are included, and still it does it work? Does it scans whole directory where it is or what? I am really confused.
</p>

<p>
	Thanks peeps!
</p>
]]></description><guid isPermaLink="false">22329</guid><pubDate>Thu, 15 Feb 2018 21:16:37 +0000</pubDate></item><item><title>Using PHP Validation Code From Course In Production Code?</title><link>https://www.killersites.com/community/index.php?/topic/22456-using-php-validation-code-from-course-in-production-code/</link><description><![CDATA[
<p>
	Hi all,
</p>

<p>
	Is it okay to use the PHP validation code from the course "Form Validation with PHP &amp; JavaScript", specifically the contact.php page to validate and send an email in production code, for a client website?
</p>

<p>
	Anything else I need to add to make sure the client doesn't get hacked or spoofing emails? Do I need something else like:
</p>

<p>
	<span style="color:#2f9c0a;font-size:12px;text-align:left;">filter_var<span style="color:#5f6364;">(</span></span><span style="color:#383838;font-size:12px;text-align:left;">$_POST</span><span style="color:#5f6364;font-size:12px;text-align:left;">[</span><span style="color:#2f9c0a;font-size:12px;text-align:left;">'email'</span><span style="color:#5f6364;font-size:12px;text-align:left;">]</span><span style="color:#5f6364;font-size:12px;text-align:left;">,</span><span style="background-color:#fdfdfd;color:#383838;font-size:12px;text-align:left;"> </span><span style="color:#c92c2c;font-size:12px;text-align:left;">FILTER_SANITIZE_EMAIL</span><span style="color:#5f6364;font-size:12px;text-align:left;">); </span>
</p>

<p>
	<span style="color:#5f6364;font-size:12px;text-align:left;">and </span>
</p>

<p>
	<span style="color:#2f9c0a;font-size:12px;text-align:left;">filter_var<span style="color:#5f6364;">(</span></span><span style="color:#383838;font-size:12px;text-align:left;">$_POST</span><span style="color:#5f6364;font-size:12px;text-align:left;">[</span><span style="color:#2f9c0a;font-size:12px;text-align:left;">'name'</span><span style="color:#5f6364;font-size:12px;text-align:left;">]</span><span style="color:#5f6364;font-size:12px;text-align:left;">,</span><span style="background-color:#fdfdfd;color:#383838;font-size:12px;text-align:left;"> </span><span style="color:#c92c2c;font-size:12px;text-align:left;">FILTER_SANITIZE_STRING</span><span style="color:#5f6364;font-size:12px;text-align:left;">)</span><span style="color:#5f6364;font-size:12px;text-align:left;">;</span>
</p>

<p>
	Are these necessary or is the code from the course safe enough? I guess I am just looking for best practices for form validation with security in mind. Thanks in advance for any help!
</p>

<p>
	—Edwin
</p>
]]></description><guid isPermaLink="false">22456</guid><pubDate>Wed, 02 May 2018 02:17:56 +0000</pubDate></item><item><title>General OOP questions</title><link>https://www.killersites.com/community/index.php?/topic/22413-general-oop-questions/</link><description><![CDATA[
<p>
	Hi
</p>

<p>
	Thanks for the great tutorial! In medias res - just the way I like it.
</p>

<p>
	I thought I'd post questions as they come up, for a starter here's this:
</p>

<p>
	"Another convention is that getter and setter names should match the property names"
</p>

<p>
	Is this really just a convention or the class would not work at all otherwise? In other words do I need "var $name;" in order to set (and get) the value of "$this-&gt;name"?
</p>
]]></description><guid isPermaLink="false">22413</guid><pubDate>Sun, 01 Apr 2018 12:25:26 +0000</pubDate></item><item><title>Whats the difference</title><link>https://www.killersites.com/community/index.php?/topic/22322-whats-the-difference/</link><description><![CDATA[
<p>
	Hi i have encountered one quirk in PHP, and I was wandering if anyone can explain it to me.<br>
	So writing this code gives me infinite loop
</p>

<pre class="ipsCode prettyprint lang-php prettyprinted">
<span class="kwd">public</span><span class="pln"> </span><span class="kwd">static</span><span class="pln"> </span><span class="kwd">function</span><span class="pln"> find_this_query</span><span class="pun">(</span><span class="pln">$sql</span><span class="pun">){</span><span class="pln">
			</span><span class="kwd">global</span><span class="pln"> $Database</span><span class="pun">;</span><span class="pln">
			$result_set </span><span class="pun">=</span><span class="pln"> $Database</span><span class="pun">-&gt;</span><span class="pln">queryFunction</span><span class="pun">(</span><span class="pln">$sql</span><span class="pun">);</span><span class="pln">
			$theObjectArray </span><span class="pun">=</span><span class="pln"> array</span><span class="pun">();</span><span class="pln">
			$var </span><span class="pun">=</span><span class="pln"> $result_set</span><span class="pun">-&gt;</span><span class="pln">fetch_assoc</span><span class="pun">();</span><span class="pln"> </span><span class="com">// I put the whole array in $var</span><span class="pln">
			</span><span class="kwd">while</span><span class="pun">(</span><span class="pln">$row </span><span class="pun">=</span><span class="pln"> $var</span><span class="pun">){</span><span class="pln"> </span><span class="com">// and then I put that here</span><span class="pln">
				</span><span class="com">// some code here</span><span class="pln">
			</span><span class="pun">}</span><span class="pln">
			</span><span class="kwd">return</span><span class="pln"> $theObjectArray</span><span class="pun">;</span><span class="pln">
		</span><span class="pun">}</span></pre>

<p>
	Buuuut this doesnt
</p>

<pre class="ipsCode prettyprint lang-php prettyprinted">
<span class="kwd">public</span><span class="pln"> </span><span class="kwd">static</span><span class="pln"> </span><span class="kwd">function</span><span class="pln"> find_this_query</span><span class="pun">(</span><span class="pln">$sql</span><span class="pun">){</span><span class="pln">
			</span><span class="kwd">global</span><span class="pln"> $Database</span><span class="pun">;</span><span class="pln">
			$result_set </span><span class="pun">=</span><span class="pln"> $Database</span><span class="pun">-&gt;</span><span class="pln">queryFunction</span><span class="pun">(</span><span class="pln">$sql</span><span class="pun">);</span><span class="pln">
			$theObjectArray </span><span class="pun">=</span><span class="pln"> array</span><span class="pun">();</span><span class="pln">
			</span><span class="kwd">while</span><span class="pun">(</span><span class="pln">$row </span><span class="pun">=</span><span class="pln"> $result_set</span><span class="pun">-&gt;</span><span class="pln">fetch_assoc</span><span class="pun">()){</span><span class="pln"> </span><span class="com">// here I just put method and everything works fine</span><span class="pln">
				</span><span class="com">// some code here</span><span class="pln">
			</span><span class="pun">}</span><span class="pln">
			</span><span class="kwd">return</span><span class="pln"> $theObjectArray</span><span class="pun">;</span><span class="pln">
		</span><span class="pun">}</span></pre>

<p>
	So I just wanna know why.<br>
	Thanks nerdzzzz!
</p>
]]></description><guid isPermaLink="false">22322</guid><pubDate>Tue, 13 Feb 2018 20:47:06 +0000</pubDate></item><item><title>Isset function</title><link>https://www.killersites.com/community/index.php?/topic/22295-isset-function/</link><description><![CDATA[
<p>
	Okay this is a newbie question but I know how it works but I just want to know how.<br><br>
	So this code for example:
</p>

<p>
	if(isset($_POST['submit'])){
</p>

<p>
	    // do some stuff
</p>

<p>
	} else {
</p>

<p>
	    // do some else stuff
</p>

<p>
	}
</p>

<p>
	This if statement will only do its code block if submit button is clicked or in nerds language if $_POST['submit'] is set.<br>
	So thats means that value of that submit button is NULL before clicking, but when we click that submit button we are giving it a value?<br><br>
	For example
</p>

<p>
	&lt;input type="submit" name="submit" value="someAwesomeValue"&gt;
</p>

<p>
	if I click this button its value will be 'someAwesomeValue' which means I set $_POST['submit'] value to 'someAwesomeValue'
</p>

<p>
	or in other words $_POST['submit'] = 'someAwesomeValue'
</p>

<p>
	Thanks!
</p>
]]></description><guid isPermaLink="false">22295</guid><pubDate>Mon, 22 Jan 2018 22:34:06 +0000</pubDate></item><item><title>One Error Running Sample Pay Pal Rest Api</title><link>https://www.killersites.com/community/index.php?/topic/22018-one-error-running-sample-pay-pal-rest-api/</link><description><![CDATA[
<p>hi</p>
<p> </p>
<p>i have pay pal rest api installed in a web app project folder, which is in htdocs of xampp on Slackware14 box. </p>
<p> </p>
<p>i ran one of the PayPal REST API Samples from</p>
<p><a href="http://localhost/gbf/vendor/paypal/rest-api-sdk-php/sample/index.html" rel="external nofollow">http://localhost/gbf/vendor/paypal/rest-api-sdk-php/sample/index.html</a>got a few errors and fixed all but one using cli at:  /opt/lampp/htdocs/gbf/vendor/paypal/rest-api-sdk-php </p>
<p>using : #chmod 777  sample  -R<br><br>The only eror left is:giving output of  Exception: error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure NULL</p>
<p> </p>
<p>Any Linux users out there that know how to fix this?</p>
]]></description><guid isPermaLink="false">22018</guid><pubDate>Thu, 18 Jun 2015 14:13:52 +0000</pubDate></item><item><title>Url Rewrite</title><link>https://www.killersites.com/community/index.php?/topic/21780-url-rewrite/</link><description><![CDATA[<p>I finally finished my site. But I realised I have a problem. The urls index.php?id=1..... are not so seo friendly. I've been on this for a week to no avail. I'm trying to remove the php extension too.</p>]]></description><guid isPermaLink="false">21780</guid><pubDate>Mon, 12 May 2014 19:01:09 +0000</pubDate></item><item><title>Php Cart Tweak Help</title><link>https://www.killersites.com/community/index.php?/topic/21316-php-cart-tweak-help/</link><description><![CDATA[
<p>I have been working with Ben Falk’s PHP shopping cart series and everything works very well.  I am trying to slightly customize the cart array so that it includes a second multiplier value.  </p>
<p> </p>
<p>I am planning to use this cart to place meal orders for a fitness and food service.  As part of the service, a customer inputs their Procarb# in order to determine the serving size of their meal based on their lean body mass.  So the array of numbers in the cart row that determines the total would be unit price x Procarb# x Quantity:  I know that this is doable but I am having a hard time making this edit work as I am new to such dynamic designs.  </p>
<p> </p>
<p>Can anyone help me determine where and how this edit should be made? </p>
<p> </p>
<p>-Ricky</p>
]]></description><guid isPermaLink="false">21316</guid><pubDate>Sat, 11 Jan 2014 18:13:10 +0000</pubDate></item><item><title>Kp5-Dispatching-Views Errors</title><link>https://www.killersites.com/community/index.php?/topic/17341-kp5-dispatching-views-errors/</link><description><![CDATA[
<p>Hello.</p>
<p> </p>
<p>I have been going through your php training video and i have done all up to php_advanced_pt2 which includes :</p>
<p> </p>
<p>kp3-setting-up-htaccess-for-controllers.mov</p>
<p>kp4-dispatching-requests-to-multiple-controllers.mov</p>
<p>kp5-dispatching-views.mov</p>
<p> </p>
<p> </p>
<p>The first video seems fine but somewhere in kp4 and kp5 it all goes wrong and it doesn't work how it should.</p>
<p> </p>
<p>I have been over and over it and can't find the problem. I have even installed your own files found in "php_advanced_sourcefiles / kp5-dispatching-views " and i am getting exactly the same errors.</p>
<p> </p>
<p>I am using mamp pro and i have tried the script on php 5.2.17, php5.3.14 and php 5.4.4 which i am currently using.</p>
<p> </p>
<p> </p>
<p>My files are located in:</p>
<p> </p>
<p>/Users/rickyspires/Sites/TRAINING/PHP_OOP/MVC/public</p>
<p> </p>
<p> </p>
<p>these are the errors i am getting:</p>
<p> </p>
<p> </p>
<p> </p>
<p>Notice: Undefined offset: 2 in /Users/rickyspires/Sites/TRAINING/PHP_OOP/MVC/public/index.php on line 22</p>
<p> </p>
<p>Fatal error: Uncaught exception 'Exception' with message 'Please implement a function called Action!' in /Users/rickyspires/Sites/TRAINING/PHP_OOP/MVC/site/app/controllers/ControllerAbstract.php:31 Stack trace: #0 /Users/rickyspires/Sites/TRAINING/PHP_OOP/MVC/public/index.php(37): site\app\controllers\ControllerAbstract-&gt;dispatch() #1 {main} thrown in /Users/rickyspires/Sites/TRAINING/PHP_OOP/MVC/site/app/controllers/ControllerAbstract.php on line 31</p>
<p> </p>
<p> </p>
<p> </p>
<p>If i remove  $pfx  from   list($pfx, $controllerName,$actionName) = preg_split('/[\/\\\]/',$uri);  in index.php</p>
<p>it fixes the first problem because $pfx is not defined any where but it is probably not the correct thing to do.</p>
<p> </p>
<p> </p>
<p>and</p>
<p> </p>
<p> </p>
<p>if i remove</p>
<p> </p>
<p>            else</p>
<p>            throw new \Exception("Please implement a function called $method!");</p>
<p> </p>
<p>from ControllerAbstract.php it fixes the second error but is probably not the correct thing to do.</p>
<p> </p>
<p> </p>
<p> </p>
<p>when i remove that code and go to my local site (<a href="" rel="">http://training-mvc.com</a>'&gt;http://training-mvc.com) the site is blank</p>
<p> </p>
<p>if i got to:</p>
<p> </p>
<p> http://training-mvc.com its blank</p>
<p> <a href="http://training-mvc.com/index/" rel="external nofollow">http://training-mvc.com/index/</a>  its blank</p>
<p><a href="http://training-mvc.com/index/welcome" rel="external nofollow">http://training-mvc.com/index/welcome</a>  its blank</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p>Thank you</p>
<p>Ricky Spires</p>
]]></description><guid isPermaLink="false">17341</guid><pubDate>Thu, 22 Aug 2013 16:39:42 +0000</pubDate></item><item><title>Cms: Every Ampersand And Following Content Gets Deleted!</title><link>https://www.killersites.com/community/index.php?/topic/17396-cms-every-ampersand-and-following-content-gets-deleted/</link><description><![CDATA[
<p>Hi,</p>
<p> </p>
<p>I have a problem with the CMS from the CMS course. </p>
<p>It does not allow me to save Ampersands at all, even everything that gets placed behind it is excluded after I press submit. </p>
<p> </p>
<p>How and in which file do I fix this? </p>
<p> </p>
<p>The one with the working solution will get a small donation for his/her support (paypal)!</p>
<p> </p>
<p>Thanx in advance!</p>
]]></description><guid isPermaLink="false">17396</guid><pubDate>Sun, 01 Sep 2013 18:17:36 +0000</pubDate></item><item><title>How To Replace Tinymce With It's Latest Version</title><link>https://www.killersites.com/community/index.php?/topic/17248-how-to-replace-tinymce-with-its-latest-version/</link><description><![CDATA[
<p>Hi,</p>
<p> </p>
<p>I finished the CMS course and I'm trying to replace TinyMCE with it's latest version (4.0.2), but it doesn't seem to work (it doesn't load TinyMCE at all).</p>
<p> </p>
<p>This is what I did:</p>
<p> </p>
<p>- I replaced the "tiny_mce" folder with the new folder (tinymce) and updated all path names related to this file.</p>
<p> </p>
<p>- In "v_edit.php" I replaced the TinyMCE script with the new version and linked the necessary CSS styles as explained in the course.</p>
<p> </p>
<p>- In "t_head.php" I updated the link to the TinyMCE plugin. </p>
<p> </p>
<p>When I click on a WYSIWYG block it loads a content block with text but no TinyMCE elements.</p>
<p> </p>
<p>Is there anything I need to be aware of since this is a new version? I have the feeling I'm missing an important step!?</p>
]]></description><guid isPermaLink="false">17248</guid><pubDate>Tue, 06 Aug 2013 15:15:50 +0000</pubDate></item><item><title>problem with echo $uri; and var_dump($controller)</title><link>https://www.killersites.com/community/index.php?/topic/7684-problem-with-echo-uri-and-var_dumpcontroller/</link><description><![CDATA[
<p>use \com\killerphp\controllers as Controllers;</p>
<p> </p>
<p> </p>
<p> </p>
<p>$uri = strtolower($_SERVER['REQUEST_URI']);</p>
<p> </p>
<p>list($pfx, $controllerName,$actionName) = preg_split('/[\/\\\]/',$uri);</p>
<p>echo $uri;</p>
<p> </p>
<p>switch($controllerName)</p>
<p>{</p>
<p>	case "":</p>
<p>	case "index":</p>
<p>		$controller = new Controllers\IndexController($controllerName,$actionName);</p>
<p>		break;</p>
<p>	case "test":</p>
<p>		$controller = new Controllers\TestController($controllerName,$actionName);</p>
<p>		break;</p>
<p>}</p>
<p>var_dump($controller);</p>
<p>$controller-&gt;dispatch();</p>
<p> </p>
<p>output is </p>
<p> </p>
<p>/public/</p>
<p> </p>
<p>Notice: Undefined variable: controller in C:\xampp\htdocs\public\index.php on line 35</p>
<p>NULL </p>
<p>Notice: Undefined variable: controller in C:\xampp\htdocs\public\index.php on line 36</p>
<p> </p>
<p>Fatal error: Call to a member function dispatch() on a non-object in C:\xampp\htdocs\public\index.php on line 36</p>
<p> </p>
<p> </p>
<p> </p>
<p>I 'm watching  kp3-setting-up-htaccess-for-controllers this video and try to do myself in window 7 laptop . my question is i save C:\xampp\htdocs\public .htaccess and show  output /public/ and also undefined variable controller ?? </p>
<p> </p>
<p>any body guide me to solve this problem then i move foward..... advance thankx</p>
]]></description><guid isPermaLink="false">7684</guid><pubDate>Sat, 05 May 2012 13:10:50 +0000</pubDate></item><item><title>Content Problem With Cms Course</title><link>https://www.killersites.com/community/index.php?/topic/11902-content-problem-with-cms-course/</link><description><![CDATA[
<p>Hi there!</p>
<p> </p>
<p>Im following the CMS course and there is an error that I can't quite solve, When i'm logged in on the CMS and try to edit one editable region, it processes the edit of that region to all editable regions. For Example: I have three regions that are editable by the CMS, I click on region 1 and type in the text "test", all three regions display the word "test". </p>
<p> </p>
<p>Can somebody give me pointers where to look or how to solve this problem?</p>
<p> </p>
<p>Thanx in advance!</p>
]]></description><guid isPermaLink="false">11902</guid><pubDate>Tue, 26 Feb 2013 18:33:48 +0000</pubDate></item><item><title>In Video Lesson Five I Lost You</title><link>https://www.killersites.com/community/index.php?/topic/11184-in-video-lesson-five-i-lost-you/</link><description><![CDATA[
<p>Hi Stefan,</p>
<p> </p>
<p>Found you in Google. Great! Learning OOP here ! (and having 5 years of PHP experience the old way;)</p>
<p> </p>
<p>I thought "well this is going well" after wathing the first 4 OOP video's</p>
<p> </p>
<p><a href="http://www.killerphp.com/tutorials/object-oriented-php/" rel="external nofollow">www.killerphp.com/tutorials/object-oriented-php</a></p>
<p> </p>
<p>and than..... I lost you in video 5 when you wrote:</p>
<p> </p>
<p>$stefan = new person();</p>
<p> </p>
<p>I am confused about $stefan because you also made the var $name = "Stefan";</p>
<p> </p>
<p>I mean... if you would do:</p>
<p> </p>
<p>$nicole = new person();</p>
<p> </p>
<p>(in THAT example)</p>
<p> </p>
<p>it would still echo Stefan as a result in your example (<a href="http://www.killerphp.com/videos/oop_php_build_objects_part_2/build_objects_php_oop_part_2.html" rel="external nofollow">build objects in PHP part 2 of 3</a>).</p>
<p> </p>
<p>So why do you give the variable in the index file the name $stefan and not $foo or $too or $whatever ? You use a real persons name for a variable and I think that would never happen in a real script.</p>
<p> </p>
<p>I did notice, after downloading the <a href="http://www.killerphp.com/tutorials/object-oriented-php/downloads/oop_php_source_files.zip" rel="external nofollow">Source Files</a>, you changed </p>
<p> </p>
<p>var $name = "Stefan"; (see video at 06:03)</p>
<p> </p>
<p>to </p>
<p> </p>
<p>var $name;</p>
<p> </p>
<p>Hope you get my confusion.</p>
<p> </p>
<p>Regards,</p>
<p> </p>
<p>Arno</p>
]]></description><guid isPermaLink="false">11184</guid><pubDate>Sun, 27 Jan 2013 15:29:57 +0000</pubDate></item><item><title>Learn build cms tutorial problems with saving text</title><link>https://www.killersites.com/community/index.php?/topic/8766-learn-build-cms-tutorial-problems-with-saving-text/</link><description><![CDATA[
<p>Dear Ben,</p>
<p> </p>
<p> </p>
<p>I have a problem,</p>
<p> </p>
<p>I can't seem to save more than 46 words in the database. If i enter more than that  it automaticly deletes the al the words until 46 words.</p>
<p> </p>
<p> </p>
<p>Can you or any one else help me please,</p>
<p> </p>
<p> </p>
<p>Greetings</p>
<p> </p>
<p> </p>
<p>Marlowe</p>
]]></description><guid isPermaLink="false">8766</guid><pubDate>Mon, 15 Oct 2012 23:02:20 +0000</pubDate></item><item><title>who no video link shoppingcart OPP mvc and Paypal share</title><link>https://www.killersites.com/community/index.php?/topic/8296-who-no-video-link-shoppingcart-opp-mvc-and-paypal-share/</link><description><![CDATA[
<p>who no video link shoppingcart OPP mvc and Paypal share for me ?</p>
<p>i learning PHP MVC , shoppingcart in MVC  so difficult . please Help me!</p>
]]></description><guid isPermaLink="false">8296</guid><pubDate>Mon, 10 Sep 2012 04:52:51 +0000</pubDate></item><item><title>how to connect zf command in win 7 64 bit running wamp</title><link>https://www.killersites.com/community/index.php?/topic/8011-how-to-connect-zf-command-in-win-7-64-bit-running-wamp/</link><description><![CDATA[<p>hi everyone, I have problem connecting zf command line tools to my cmd or powershell, I have done include path in php.ini and also path address in environmental variable, I do not know what else I can do, please help me figure this out</p>]]></description><guid isPermaLink="false">8011</guid><pubDate>Tue, 31 Jul 2012 06:04:32 +0000</pubDate></item><item><title>MVC</title><link>https://www.killersites.com/community/index.php?/topic/7987-mvc/</link><description><![CDATA[
<p>Hi,</p>
<p> </p>
<p>My PHP skills are rusty so I'm thinking of buying the CMS video course as a way of revisiting PHP. Will this course also teach me about the MVC coding methodology?</p>
<p> </p>
<p>thanks</p>
<p> </p>
<p>d</p>
]]></description><guid isPermaLink="false">7987</guid><pubDate>Mon, 23 Jul 2012 15:05:00 +0000</pubDate></item><item><title>Shopping cart</title><link>https://www.killersites.com/community/index.php?/topic/7864-shopping-cart/</link><description><![CDATA[
<p>When i add an item to the shopping cart..the item does not show instead these is what i see :</p>
<p> </p>
<p>View Store View Cart Clear Cart</p>
<p>Product Id	Quantity	Amount</p>
<p>$product_id	$quantity	$ amount</p>
<p>$product_id	$quantity	$ amount</p>
<p>$product_id	$quantity	$ amount</p>
<p> </p>
<p></p>
<pre class="ipsCode">
&lt;?php
require_once '../functions/functions.php';

//call the shopping cart function
$shopping_cart = get_shopping_cart();

echo render_header();


$product_id = $_REQUEST['id'];

if(product_exists($product_id))
{
$shopping_cart-&gt;AddItem($product_id);
}
?&gt;
&lt;table class ='shoppingCart'&gt;
   &lt;tr&gt;
    &lt;th&gt;Product Id&lt;/th&gt;
	&lt;th&gt;Quantity&lt;/th&gt;
	&lt;th&gt;Amount&lt;/th&gt;
&lt;/tr&gt;


&lt;?php
   //create a local variable called line Item counter
$line_item_counter = 1;

foreach ($shopping_cart-&gt;GetItems() as $product_id)
{
 echo render_shopping_cart_row($shopping_cart, $product_id,$line_item_counter);
 $line_item_counter++;
}


function render_shopping_cart_row($shopping_cart, $product_id,$line_item_counter)
   {

    $quantity = $shopping_cart-&gt;GetItemQuantity($product_id);
$output = '&lt;tr&gt;
    &lt;td&gt;$product_id&lt;/td&gt;
	&lt;td&gt;$quantity&lt;/td&gt;
	&lt;td&gt;$ amount&lt;/td&gt;
&lt;/tr&gt;';
   return $output;
}
?&gt;


&lt;/table&gt;
&lt;?php
set_shopping_cart($shopping_cart);

echo render_footer();
?&gt;




</pre>
<div></div>
<p> </p>
<p> </p>
<p>Thats my addToCart code. Every other thing worked perfectly well till here..(Lesson7)..Thanks</p>
]]></description><guid isPermaLink="false">7864</guid><pubDate>Thu, 21 Jun 2012 01:13:39 +0000</pubDate></item><item><title>Advanced PHP Source Code</title><link>https://www.killersites.com/community/index.php?/topic/7542-advanced-php-source-code/</link><description><![CDATA[
<p>I just purchased the PHP Advanced videos. When I downloaded and extracted the php_advanced_sourcefiles.zip file, the folders are empty, there are no source files. I'm running on a Windows 7 environment, so the files in the MACOSX folders are useless to me. Is there another location that I can download the source for a PC?</p>
<p>Thank you.</p>
]]></description><guid isPermaLink="false">7542</guid><pubDate>Sat, 07 Apr 2012 17:10:21 +0000</pubDate></item><item><title><![CDATA[Question about autoloading classes & how to deal with them if they don't exist]]></title><link>https://www.killersites.com/community/index.php?/topic/7458-question-about-autoloading-classes-how-to-deal-with-them-if-they-dont-exist/</link><description><![CDATA[
<p>This message is targeted at john lebensold, but any answers are welcome <img src="https://www.killersites.com/community/uploads/emoticons/default_smile.png" alt=":)" data-emoticon="" srcset="https://www.killersites.com/community/uploads/emoticons/smile@2x.png 2x" width="20" height="20"></p>
<p> </p>
<p>I have an application I'm writing, &amp; would like to give the option for customization down the road, but also have it upgradable to version 2.0.. 3.0.. 4.0 in the future without having to edit the main files at the time of upgrade to keep customizations. I have created on one, I have a Cms class, &amp; have made a "customCms extends Cms Class" file, but don't necessarily want to write a blank file for every class so that down the road I can possibly customize it (mainly because when I deploy the new version I don't want to chance overwriting the end programers customizations if I don'[t delete the custom file before packaging). I have this code, but it doesn't do that, it will error if the file is not found. The autoloader works, but the "$Cms = new Cms" doesn't, it errors. Is there a way to load a class only if it exists?</p>
<p> </p>
<p>the code I'm using is:</p>
<p> </p>
<p>function __autoload($className)</p>
<p>{</p>
<p>	if(file_exists($filename = str_replace('\\', '/' , $className) . '.php')){</p>
<p>		require_once $filename;</p>
<p>	}else{</p>
<p>	        return FALSE;</p>
<p>        }</p>
<p>}</p>
<p> </p>
<p>&amp; this I believe is working, if it doesn't find the file it returns false.</p>
<p> </p>
<p>		//create cms object</p>
<p>		if(!$this-&gt;Cms = new \enterprize\controllers\customCms()){</p>
<p>			$this-&gt;Cms = new \enterprize\controllers\Cms();</p>
<p>		}</p>
<p> </p>
<p>but this part is not working, even tho I have the if(), it's erroring while it's trying to create $Cms.</p>
]]></description><guid isPermaLink="false">7458</guid><pubDate>Mon, 26 Mar 2012 18:31:58 +0000</pubDate></item><item><title>how to post multiple inputs from mysql_fetch_array using a single submit button?</title><link>https://www.killersites.com/community/index.php?/topic/6894-how-to-post-multiple-inputs-from-mysql_fetch_array-using-a-single-submit-button/</link><description><![CDATA[
<p>hi i need help on posting multiple inputs in a single button...while using mysql_fetch_array</p>
<p>here is my codes:</p>
<p> </p>
<p>&lt;?</p>
<p>$re6 = mysql_query('select username from users where course = "BSIT" and yearlevel = "FOURTH"');</p>
<p>?&gt;</p>
<p>&lt;br /&gt;</p>
<p>&lt;h1&gt;Post Grade&lt;/h1&gt;</p>
<p>&lt;h1&gt;IT, Fourth Year&lt;/h1&gt;</p>
<p>&lt;br /&gt;Please fill the following form to send The Grade&lt;br /&gt;</p>
<p>&lt;?</p>
<p>$n = 0;</p>
<p>while($row = mysql_fetch_row($re6))</p>
<p>{</p>
<p>    echo'&lt;form action="grade_post.php" method="post"&gt;';</p>
<p>    echo'Recipient&lt;span class="small"&gt;(Username)&lt;/span&gt;&lt;input type="text" value="'.$row['username'].'" readonly="readonly" id="recip" name="recip[' . $n . ']" /&gt;';</p>
<p>    echo'Subject&lt;input type="text" value="'.htmlentities($otitle, ENT_QUOTES, 'UTF-8').'" id="title" name="title[' . $n . ']" /&gt;';</p>
<p>    echo'&lt;input type="hidden" value="FOURTH" id="year" name="year[' . $n . ']" /&gt;';</p>
<p>    echo'&lt;input type="hidden" value="FIRST" id="sem" name="sem[' . $n . ']" /&gt;';</p>
<p>    echo'Grade&lt;input type="text" id="message" name="message[' . $n . ']" &gt;&lt;br /&gt;';</p>
<p>    ++$n;</p>
<p>}</p>
<p>?&gt;</p>
<p> </p>
<p> </p>
<p>i get all my recipients in every input type, but when i tried to post it in my database not all of them are posted rather only one of them are posted in my database    ...what i want to happen is that all of my recipients in every input type will be posted in my database with different ids'...help pls...</p>
]]></description><guid isPermaLink="false">6894</guid><pubDate>Wed, 01 Feb 2012 11:27:11 +0000</pubDate></item></channel></rss>
