Where to Put a 3rd Party Script with Xsitepro

January 17, 2009 by Scott  
Filed under Xsitepro Technical

I ran across a question regarding php scripts. This person was having a problem utilizing a 3rd party script…..and I think they really need to get a new hosting account. However there could be some miscommunication between the hosting provider and user……but, I think the problem comes from trying to put the script in the wrong place when using Xsitepro. Anyway, here’s they’re question:

I have been having issues with an enquiry form and my Hosting webspace.
Basically to enable PHP with my hosting company I have had to enable something called CGI which sits on a different server. They have told me ‘basic html files need to go on the ftp site and any php and scripted files on the CCGI’.
What I am trying to do is use option 5 (redirection of an filled in client enquiry to a specified e-mail address). Aside of switching to host gator is there anything I can do?.
I am using plus.net hosting.
Any help much appreciated.

Here’s my attempt at answering:

Sounds like they are making it more complicated than it has to be.

I’ve 4 or 5 hosting accounts and I have never had to put my php scripts into a designated folder…and you should not have to.

I’m not an authority on hosting and someone might have a better explanation, I’m assuming their reason has to do with security.

If your script is a cgi or perl script, you need to put it in a folder or directory of your hosting account called “cgi-bin” ….perhaps this is what you’re dealing with.

You probably already know this, but often times you have a script hosted on your server, and this script performs some kind of function…..as an example, lets say it resizes some images. Next you call the function of this script into your webpage with a php include or a SSI….server side include.

When using Xsitepro you would first go to “Other” tab—-> then “Resource Manager” and click on “Add” and you add the page that has your php script. Then you would follow the directions for using the script.

If your script is a cgi or perl script, I’m assuming you would have to use a ftp program to upload the script to the cgi-bin folder and then follow the directions to make the script do what it’s supposed to do…..keeping in mind the file structure and location of your script and webpage.

Sorry couldn’t be of more help…..Good Luck!

Scott

Post to Twitter Digg This Post

Secret…..How I Learned PHP!

December 23, 2008 by Scott  
Filed under Xsitepro Tutorials

plankblog-300pxlSomeone asked me, “How do you know so much about PHP?”.

Short answer…Robert Plank! And he has a course called Hypnotic PHP designed especially for interent marketers, actually marketers of any kind can use the material you learn in this course about how to use php effectively to create more sales and bring in more money!

Back to the above question…….it really gave me a good laugh!  I really don’t know a whole lot about how php works, but I can copy snippets of php code and use them when building websites.

About three years ago I heard the term “php include” and was introduced to the concept of using it to build websites. I was totally baffled by the thought and the concept.

Now I use php includes in just about every website I build, and I use php includes easily in my Xsitepro websites. Sometimes I’ll insert a php include that points to an empty file, at the beginnning, middle or end of a webpage. As long as the file that is being “included” is empty, nothing will show. However, you can add anything to that empty file, at anytime, and the content will immediately show up.

Let’s look at the code for a simple php inlcude.

<?
php include (“page.html”);
?>

Where ‘page.html’ can be any page with text or html coding. For instance, let’s say you insert the php include in the beginning of your website article. If ‘page.html’ doesn’t include any content, your webpage will simply consiste of the basic article. However, if ‘page.htm’ had the following html coding:

<p>This article about php includes is one of the best I’ve seen, be sure to read it completely and check out the rest of the articles about php coding on this page.</p>

You would then see the above sentence wherever you inserted the php include.

It’s really amazing what you can do with php includes, and this is only the very basic of basic php code snippets. In one of Plank’s warrior forum blog posts he reveals a very simple php code snippet designed to rotate images, text, files or just about anything on your webpage. A simple piece of code that brilliantly rotates content….that means keeping information fresh on your website without having to edit it constantly.

Bobby Plank (I bet he would hate being called that….I kinda enjoy annoying him :) ) has produced a brilliant set of tutorials in the form of pdf’s and screen capture videos covering a gamut of php code for the internet marketer. Too many products to mention…but that is my secret source of figuring how to use php when building and designing websites.

My goal with this blog about Xsitepro is to help as many people as I can. In some cases that might be a newbie who doesn’t know the meaning of ftp…..or maybe you’re more advanced and are interested in learning how to use things like php includes…..hopefully, I can add to your knowledge which will encourage and help you to build the most effective websites available! Keep in mind, xsitepro is a platform or application used to build websites……very good websites, but they only become very good once you began to learn and implement things like php, advanced html coding and maybe a little javascript. So….make sure you invest some time in learning how to create one extra effect…..and that my friend will cost you the price of an ebook, seminar, video series or maybe a webinar or two.

So….check out Robert Plank’s blog, he has a lot of coding and marketing information there that won’t cost a penny. His latest post is on an unusual approach to membership sites….worth checking out. Also, he has all or at least most of his products listed in the right navigation bar….check those out, buy them one at a time and learn how to get a jump on your competition.

Post to Twitter Digg This Post

Powered by Yahoo! Answers