Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

PHP Executing Software?

Hey,

I am making a site that makes use of a PHP Content Management System and I am going to design the site using a computer that can't be online. Is there any reliable program that acts like a server that can execute PHP scripts?

Thanks
 
FireFox will render your pages OFFLINE, but you need PHP on your computer to interpret it. FireFox doesn't do any of the interpretting of PHP, Python, Ruby on Rails, etc. That's all handled by the server that the files are hosted on. When a website with PHP/etc. loads up, the server takes all the PHP and converts it to HTML. Thats why you need it installed on your PC, to interpret it.

Same thing goes with MySQL. If there is no place for the database (i.e. ON YOUR PC) then there is no database and thus it won't work.
 
There may be an easier way to do this than what I say, but this is how I did it.

A couple years ago, when I just started learning PHP, there was no server for me to test my code on - so, I turned my Windows XP comp into a server.

You need Windows XP Pro, however.

First, you need to install IIS - here is a basic guide for doing that.

Then Apache.

Then, you must install PHP - look here.

And then MySQL.

Hereis another basic guide to getting everything set up.

Once everything is set up, you should be able to access your server by typing in your computer's IP address into a browser. That would take you to the root directory you set up when you installed IIS - and whatever PHP scripts in there should run.

If you don't have XP pro, I don't know of any other way to tackle this problem - you might want to try a computer-support site where they have experts better able to answer your question.

Really, I think the best way would be for you to figure out how to connect that computer - PHP and MySQL run slowly just on a regular computer, and when you go to upload the site, the connecting settings would have to be changed in the PHP files. Also, some CMSs may not take very well to being set up on then transfered to two completely different environments.

Generally, working with PHP+MySQL on a Windows computer is a pain - if you can ever get it set up, it took me forever to get everything installed and configured properly. Then, every time you want to work on your code, you must make certain that both MySQL and IIS are started up.

As I said before, if there is any way you can get that computer connected, you should at least try before going this route - it will probably only lead to a lot of headache.
 

Anonymous

Guest

Ew, IIS :(

Ignore the previous posts, just install a pre-configured package, such as XAMPP or (the simplest) EasyPHP.

I develop on EasyPHP 1.8, though I'm looking to move to 2.0 beta for PHP 5 support. Unless what you want to use specifically requires PHP 5 (MediaWiki for example) then for now I'd stick to the stable 1.8 line.

EasyPHP includes everything you're after, Apache, PHP, mySQL and phpMyAdmin :)
 
Chutrick;244914":1t8wf7ce said:
Ew, IIS :(

Ignore the previous posts, just install a pre-configured package, such as XAMPP or (the simplest) EasyPHP.

I develop on EasyPHP 1.8, though I'm looking to move to 2.0 beta for PHP 5 support. Unless what you want to use specifically requires PHP 5 (MediaWiki for example) then for now I'd stick to the stable 1.8 line.

EasyPHP includes everything you're after, Apache, PHP, mySQL and phpMyAdmin :)

I'd wish I knew about that two years ago :p. I agree, ignore my previous post. :D
 
Meticlan, I was disappointed at your post as I don't have XP Pro... Thanks Chutrick for saving the day...

Thanks for input everybody, I'll be using EasyPHP I think!

EDIT: EasyPHP works easily and beautifully thanks!
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top