Jump to content

PHP not working


Recommended Posts

Hello everyone in the forum

 

I am new in PHP, and I hope to get some help from here.

 

I have installed Apache 2.2 and it worked fine, but after I have installed PHP, it stops working. When I Uninstall PHP, the Apache works but the browser stop displaying PHP, instead it displays (open with) dialog box.

 

Link to comment
Share on other sites

Sounds like a problem.  More information might reveal a solution.

Could you tell me what type of information, but please be simple.

 

Try to use a Apache, MySQL, PHP distribution, like XAMPP, WAMP, LAMPP, etc.

As I know all these distribution is for linux, but I am using Windows XP SP3.

 

Thank you all.

Link to comment
Share on other sites

Could you tell me what type of information, but please be simple.

Like, what operating system you're using...

 

As I know all these distribution is for linux, but I am using Windows XP SP3.

Well there ya go!  WAMP and XAMPP are specifically designed for Windows.  Try 'em out.

Link to comment
Share on other sites

Uninstall PHP and reinstall by following this tutorial. http://www.sitepoint.com/how-to-install-php-on-windows/ It should work after following all this steps.

Thank you a lot for your reply.

But the instructions says:

Step 3: configure php.ini

Copy C:\php\php.ini-recommended to C:\php\php.ini. There are several lines you will need to change in a text editor (use search to find the current setting).

I can't find such .ini. Only (php.ini-development) and (php.ini-production) are available.

 

 

Link to comment
Share on other sites

If you are working with PHP 5.3, the php.ini-recommeded has been changed to php.ini-development or php.ini-production. I would suggest you to use php.ini-development i to start with if you're just testing it out.

Thanks a lot.

All are goin' fine now. The problem was in the PHP directory name. I have named it (PHP), and in Environment Variables (php).

Thank you all for your valuable help.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.