You are here: Re: Testing PHP locally « PHP Programming Language « IT news, forums, messages
Re: Testing PHP locally

Posted by IchBin on 07/15/06 23:45

Eric Capps wrote:
> I'm writing a web app that uses a PHP script to request information from
> the server. I'd like to test it locally on my machine, but despite
> having PHP installed, I can't seem to get it to process the .php file
> automatically when it is read. Is there a way to turn automatic
> processing of a file/directory on/off?

I am new at this so get your grain of salt out. Not sure if this is what
you mean. If using Apache there is an option tells apache to
automatically load a file when pointed to a directory.. I added
index.php to the list of files. Ex:

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents. The MultiViews Option can be used for the
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.html.var index.php

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)

 

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

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