turning php code into a beta website

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

hvnlydaze
Forum Newbie
Posts: 20
Joined: Wed Jun 18, 2008 4:53 pm

turning php code into a beta website

Post 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?
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: turning php code into a beta website

Post 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.
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: turning php code into a beta website

Post 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.
hvnlydaze
Forum Newbie
Posts: 20
Joined: Wed Jun 18, 2008 4:53 pm

Re: turning php code into a beta website

Post by hvnlydaze »

ok I have uploaded files to my server now what?
hvnlydaze
Forum Newbie
Posts: 20
Joined: Wed Jun 18, 2008 4:53 pm

Re: turning php code into a beta website

Post by hvnlydaze »

Jab, Do you use skype?
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: turning php code into a beta website

Post 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.
hvnlydaze
Forum Newbie
Posts: 20
Joined: Wed Jun 18, 2008 4:53 pm

Re: turning php code into a beta website

Post by hvnlydaze »

tanks will watch video and see where it takes me. sorry about the pm
hvnlydaze
Forum Newbie
Posts: 20
Joined: Wed Jun 18, 2008 4:53 pm

Re: turning php code into a beta website

Post 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
hvnlydaze
Forum Newbie
Posts: 20
Joined: Wed Jun 18, 2008 4:53 pm

Re: turning php code into a beta website

Post by hvnlydaze »

in the modules
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: turning php code into a beta website

Post by JAB Creations »

Then something is already running on port 80. Do you have IIS or another web server already running on port 80?
hvnlydaze
Forum Newbie
Posts: 20
Joined: Wed Jun 18, 2008 4:53 pm

Re: turning php code into a beta website

Post 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
hvnlydaze
Forum Newbie
Posts: 20
Joined: Wed Jun 18, 2008 4:53 pm

Re: turning php code into a beta website

Post by hvnlydaze »

not sure what IIS is
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: turning php code into a beta website

Post 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.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Re: turning php code into a beta website

Post 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.
hvnlydaze
Forum Newbie
Posts: 20
Joined: Wed Jun 18, 2008 4:53 pm

Re: turning php code into a beta website

Post by hvnlydaze »

Thanks am triing now
Post Reply