Reply to Re: Getting started - not quite working

Your name:

Reply:


Posted by Michael Austin on 01/15/07 21:48

Si.W wrote:

> "Si.W" <swswsw@ntlworld.com> wrote in message
> news:DtRqh.83878$493.16927@newsfe4-gui.ntli.net...
>
>>"Michael Austin" <maustin@firstdbasource.com> wrote in message
>>news:CVCqh.1311$O02.671@newssvr11.news.prodigy.net...
>>
>>>Si.W wrote:
>>>
>>>
>>>>OK I've got Apache up and running also PHP and edited the httpd.conf and
>>>>php.ini as recommended(by ricocheting.com).
>>>>Problem is as soon as I have a single or double quote,all PHP after that
>>>>just gets dumped to the browser even though I do of course close the
>>>>quote.
>>>>Anyone have any idea why?
>>>>Thanks,Si.
>>>
>>>can you give us at least a "Hello World" example of the problem?
>>>
>>>create a file with just:
>>>
>>><?php echo "Hello World<br>"; echo 'Hello World<br>'; ?>
>>>
>>>what is the result?
>>>
>>>If you view the source, you should get:
>>>
>>>Hello World<br>Hello World<br>
>>>
>>>
>>>--
>>>Michael Austin
>>>Database Consultant
>>>Domain Registration and Linux/Windows Web Hosting Reseller
>>>http://www.spacelots.com
>>
>>Thanks Boss,
>> Appreciate the 1st comment that I should go through the docs,but y'know
>>it's a bit dispiriting.Tried the Hello World which showed that my first
>>idea was wrong as the browser output was:
>>"; echo 'Hello World
>>'; ?> .
>> Something's gone wrong,but I ain't sure what.Reinstalled once so I'll
>>have to see what's what but any advice appreciated.
>>Si.
>>
>
> OK seems to be a server config problem as I can see the php when I view
> source.
> Should be fun,my setup lines up with what the PHP docs tell me,so I'll have
> to start looking at the Apache docs .. joy!
> Thanks for help,Si.
>
>

you should be loading mod_php.conf in your httpd.conf and in your mod_php.conf
you should have:

AddType application/x-httpd-php .php .phtml .html .htm
AddType application/x-httpd-php-source .phps ##this is optional


--
Michael Austin
Database Consultant
Domain Registration and Linux/Windows Web Hosting Reseller
http://www.spacelots.com

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация