| 
	
 | 
 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] 
 |