You are here: Re: Getting started - not quite working « PHP Programming Language « IT news, forums, messages
Re: Getting started - not quite working

Posted by Si.W on 01/15/07 23:26

"Michael Austin" <maustin@firstdbasource.com> wrote in message
news:xJSqh.26906$QU1.23812@newssvr22.news.prodigy.net...
> 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.
>
> if you are using Apache, your httpd should have the following line:
>
> Include /apache$root/conf/mod_php.conf
>
> in your mod_php.conf file there should be:
>
> AddType application/x-httpd-php .php .phtml .html .htm ##(htm* is
> optional)
> AddType application/x-httpd-php-source .phps ##optional
>
>
> --
> Michael Austin
> Database Consultant
> Domain Registration and Linux/Windows Web Hosting Reseller
> http://www.spacelots.com

I'll have a look tomorrow,thanks for the pointers,will hopefully help.
Si.

 

Navigation:

[Reply to this 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

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