TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

Regarding PHP

Page: 1 Reply
Mar 26th 2003#97125 Report
Member since: Jan 19th 2002
Posts: 159
hi friends,

Is PHP is the completly platform independent?


abhi
Reply with Quote Reply
Mar 26th 2003#97126 Report
Member since: Mar 18th 2001
Posts: 6632
Yes, there are versions of PHP for Windows, Linux, and MacOSX.
Reply with Quote Reply
Mar 26th 2003#97135 Report
Member since: Apr 20th 2002
Posts: 3000
While we're at it, I'll ask my PHP question.

If it's possible, how can I go about installing PHP on my desktop (Windows XP) where I can preview PHP files without uploading them to my webhost all the time.
Reply with Quote Reply
Mar 26th 2003#97139 Report
Member since: Nov 26th 2001
Posts: 2586
Install a Server on your computer. Or windowsXP has IIS - you might need to go to "add/remove programs" and select "Windows Components" and add IIS.

The other option is Apache win binary. Then configure in PHP.

I havent added PHP to IIS before but I am sure it should be as easy as Apache.
Reply with Quote Reply
Mar 29th 2003#97439 Report
Member since: Apr 20th 2002
Posts: 3000
I downloaded and installed the Apache win Binary 2.0.44. Can you expand on configuring in PHP?
Reply with Quote Reply
Mar 29th 2003#97443 Report
Member since: Mar 18th 2001
Posts: 6632
Moochan, just download PHPTriad or something similar.

One .EXE installs apache, PHP, MySQL and PHPMyAdmin on your home machine. Very easy. A Double-Click and you have a web server up and running.

http://sourceforge.net/projects/phptriad
Reply with Quote Reply
Mar 29th 2003#97447 Report
Member since: Nov 26th 2001
Posts: 2586
1. Download PHP4.3.1 or whatever the current version is. I would just go ahead and get the Installer version. --- Dbl Click. You will get some error saying it couldnt be installed on Apache (because you need to edit he .conf file). No problem. Just click ok.

There are 2 methods to install PHP. Installing a Module or as CGI. I couldnt get it to install as a module on Apache 2, so I just used the CGI method (cause I am lazy). Go to Start --> programs --> Apache --> Configure Apache --> Edit the .conf file.

Open it in notepad or something like that. Scroll to the bottom and add these lines:

ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"

Change "c:/php/" to wherever you installed PHP.

Here is the PHP.net instructions:
http://www.php.net/manual/en/print/install.apache2.php

You need to follow the instructions on the install read me for PHP. You just edit the php.ini file and copy it to your windows root directory.

Then when you are done, go to your htdocs folder, which by default is in your Apache directory (you can edit the .conf file to point to another location and create a folder there. Makes life better IMO.)

Create a file like this:
< ? PHP
phpInfo();
? >

and call it whatever, info.php eg. Then go to http://localhost/info.php and if all is good you should see a php info page =)

You might have to make sure Apache is running (Check AdminTools --> Services) . One thing you can do for extra security is go to your services and set the apache service to run "Manual", then just turn it on/off when you want, rather than having it run whenever you boot up.
Reply with Quote Reply
Mar 29th 2003#97449 Report
Member since: Mar 18th 2001
Posts: 6632
Or you could just install PHPTriad... :rolleyes:
Reply with Quote Reply
Mar 29th 2003#97459 Report
Member since: May 1st 2002
Posts: 3034
yeah phptriad rox0rs j00
Reply with Quote Reply
Page: 1 Back to top
Please login or register above to post in this forum