Add PHP to Build a Niche Store Content Pages
If you are using BANS then you know that you can not add php into the content areas in your admin panel. All is not lost though, you can easily add a couple of lines of code to call php files. We will get to that in a moment.
Lets talk about why we might want to use php on our content pages. If you use PopShops then you know that using the php option gives you the benefit of having the content visible to the search engines. What about using a php script to add a nice contact form to your site, no problem. Check the baby site in my previous post for a nice contact script. If you are customizing your header, like in the previous post, then you could use php to call navigation or banners. This allows your template file to remain clean and easy to work with. If you need to swap out a banner or change a link in the custom nav you only need open that file, not the template, thus reducing the risk of breaking your site.
OK, we can all see the benefits of using php. Head on over to the forum to see some examples of code. Forum
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.
Comments
Hey Michael, First off there are no dumb questions. What I do is usually create a directory in my hosting account lets call it phpfiles(does not matter) and put the php files in that folder. You just have to make sure when including the file in the page that you use the correct path ie. phpfiles/myphpfile.php. I like to use notepad2 to make the files and just save it as myfile.php. I will look into the forum problem. Dave



Hi Dave, I really like what you have started over here. Very good information. I tried to post this question on the forums but for some reason I could not read any numbers or letters in the image verification box. It just had a picture.
So, my question. This may sound dumb but In what BANS folder do I put the PHP file. I have host gator with cpanel if that helps. Also, to make the file do I just take my php code and insert it in a foler and call it anything with a .php extension. Thanks, Im pretty new to all this. Keep up the good work.