Re: [PHP] Going Mad

2002-12-01 Thread Andy
OK, so I have located the httpd.config file but still no joy, I know it is something very simple and silly. I will explain in detail what I have done, I think this will give a better idea of where I am going wrong. Loaded Apache from the CD first in its default location c:/program

Re: [PHP] Going Mad

2002-12-01 Thread Jason Wong
On Sunday 01 December 2002 22:36, Andy wrote: OK, so I have located the httpd.config file but still no joy, I know it is something very simple and silly. I will explain in detail what I have done, I think this will give a better idea of where I am going wrong. Loaded Apache from the CD first

Re: [PHP] Going Mad

2002-12-01 Thread Ernest E Vogelsinger
At 15:36 01.12.2002, Andy said: [snip] Then i added Action application/x-httpd-php /php/php.exe under the Action section followed by AddType application/xhttpd-php .php under the AddType section. According to the book i would now be ready to go!

[PHP] Going Mad Result

2002-12-01 Thread Andy
Well, I did it :o) I am using IIS and got it right, thank you for all who helped me in my hour of need. The answer to the question was where i am placing the files (not in the root folder), just did it on the PC with IIS and there it was in all its glory! Now i am going to try it on the laptop

[PHP] Going Mad

2002-11-30 Thread Andy
Can someone please help, i think i am going mad. I have just installed Apache, php and Mysql, it all seems to be fine, the Apache server says it is ok, i think i have set the config file correctly, and Mysql look to be correct, but when i typed the code (My first code) ?php echo this is a php

Re: [PHP] Going Mad

2002-11-30 Thread Chris Hewitt
Andy wrote: ?php echo this is a php line; phpinfo(); ? and save it test.php when i look at it in explorer all i see the preceding html code. hat have i done wrong? I am using windows 2000 pro. It seems as though you have not added the AddType line for php in httpd.conf and restarted Apache.

Re: [PHP] Going Mad

2002-11-30 Thread Phil Driscoll
On Saturday 30 November 2002 5:31 pm, Chris Hewitt wrote: Andy wrote: ?php echo this is a php line; phpinfo(); ? and save it test.php when i look at it in explorer all i see the preceding html code. hat have i done wrong? I am using windows 2000 pro. It seems as though you have not added

Re: [PHP] Going Mad

2002-11-30 Thread Chris Hewitt
Andy Davey wrote: Hi Chris I have added AddType application/x-httpd-php .php to the httpd config file, and restarted it, but still no luck. Andy Hmm. I take it the file you are trying to get at (via http:// as Phil says) has got a php extension? I assume there are no IfModule or Directory

Re: [PHP] Going Mad

2002-11-30 Thread Andy
Chris Hewitt [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Andy Davey wrote: Hi Chris I have added AddType application/x-httpd-php .php to the httpd config file, and restarted it, but still no luck. Andy Hmm. I take it the file you are trying to get

Re: [PHP] Going Mad

2002-11-30 Thread Chris Hewitt
Andy Davey wrote: There are two httpd config files, one of which is default, i take it that is the one you edit? I know it is something simple, which is why i cannot se it! There should only be one. I suggest you put some rubbish into one and restart apache. If it does not complain then it is

Re: [PHP] Going Mad

2002-11-30 Thread Phil Driscoll
On Saturday 30 November 2002 5:32 pm, Andy Davey wrote: Hi Phil It took me a while to get the local host to show the apache welcome screen, but now that I have I am still unable to see the page, I have the file saved on my desktop, should I have the test.php file saved anywhere else? I

Re: [PHP] Going Mad

2002-11-30 Thread Chris Hewitt
Andy wrote: Chris Hewitt [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Can i type anything into the file or should it be code, you will have to Yes, anything. If apache does not understand it then it will not start up. Don't put a hash at the beginning of

Re: [PHP] Going Mad

2002-11-30 Thread Chris Hewitt
Phil Driscoll wrote: There's your problem. Assuming you haven't messed about too much with the apache config, your php file needs to live inside apache's htdocs directory. Can't remember exactly where that would be on a windows box - something like c:/program files/apache group/apache/htdocs