Page 1 of 3

turning php code into a beta website

Posted: Wed Jun 18, 2008 5:07 pm
by hvnlydaze
Sorry to be the ignorant one but I have a folder of php code and I cant seem to get it to a point where I can see what it would look like on a website. I have a php editor but it really is mumbo jumbo to me . Can anyone help?

Re: turning php code into a beta website

Posted: Wed Jun 18, 2008 6:34 pm
by califdon
hvnlydaze wrote:Sorry to be the ignorant one but I have a folder of php code and I cant seem to get it to a point where I can see what it would look like on a website. I have a php editor but it really is mumbo jumbo to me . Can anyone help?
PHP code is interpreted by the web server, so if you want to view scripts locally, you need to install PHP and a web server, like Apache. The way you install it is quite different on Windows or on Linux, but it is very common and the web is just full of tutorials on how to do it.

Re: turning php code into a beta website

Posted: Wed Jun 18, 2008 7:08 pm
by JAB Creations
I recommend XAMPP as it's pretty quick to setup...
http://www.apachefriends.org/en/xampp.html

I even recently shot a video tutorial quickly outlining how it works...
http://youtube.com/watch?v=jCCL3SUFULY

1.) Install XAMPP.
2.) Change the htdocs to the folder you intend to use for your local website.
3.) Make a sub-folder in that folder and move the files you're trying to get to work.

Re: turning php code into a beta website

Posted: Wed Jun 18, 2008 7:51 pm
by hvnlydaze
ok I have uploaded files to my server now what?

Re: turning php code into a beta website

Posted: Wed Jun 18, 2008 7:56 pm
by hvnlydaze
Jab, Do you use skype?

Re: turning php code into a beta website

Posted: Wed Jun 18, 2008 8:06 pm
by JAB Creations
1.) Do not PM members for answers as it defeats the purpose of having an open discussion where others can learn from your questions/answers.

2.) XAMPP lets you run your own system as the server for local testing. You don't need to upload anything for any reason.

If you follow the directions in the video you'll have already setup your htdocs folder and you'd be well on your way.

Re: turning php code into a beta website

Posted: Wed Jun 18, 2008 8:24 pm
by hvnlydaze
tanks will watch video and see where it takes me. sorry about the pm

Re: turning php code into a beta website

Posted: Wed Jun 18, 2008 8:43 pm
by hvnlydaze
I downloaded it but error came up saying apache tried to use port 80 but already in use failed. The download itself worked but when I opened xampp control window apache is not running

Re: turning php code into a beta website

Posted: Wed Jun 18, 2008 8:45 pm
by hvnlydaze
in the modules

Re: turning php code into a beta website

Posted: Wed Jun 18, 2008 8:46 pm
by JAB Creations
Then something is already running on port 80. Do you have IIS or another web server already running on port 80?

Re: turning php code into a beta website

Posted: Wed Jun 18, 2008 8:48 pm
by hvnlydaze
i had the smart ftp running but not sure what port 80 is btw closed smart ftp and trie to start apache and still says port 80 is busy

Re: turning php code into a beta website

Posted: Wed Jun 18, 2008 8:49 pm
by hvnlydaze
not sure what IIS is

Re: turning php code into a beta website

Posted: Wed Jun 18, 2008 8:57 pm
by JAB Creations
JAB Creations wrote:Do you have IIS or another web server...
Did you try rebooting?

If Apache won't run through XAMPP the 'running' text with green background will only momentarily flicker on and then off.

Also try using Apache and MySQL as a service instead (click the 'Svc' checkboxes).

I am not aware of any program that would allow you to know what programs are using what ports.

Re: turning php code into a beta website

Posted: Wed Jun 18, 2008 9:23 pm
by Kieran Huggins
Skype uses port 80 as a "get around the firewall" port - turn off skype first, then start it after your web server is running.

Re: turning php code into a beta website

Posted: Wed Jun 18, 2008 9:47 pm
by hvnlydaze
Thanks am triing now