I am having trouble getting a redirected file's php section activating.
Some info to help you understand:

1) Within Apache's httpd.conf file I have the following set:
DocumentRoot "D:/Program Files/Apache Group/Apache/realdocs"
<Directory "D:/Program Files/Apache Group/Apache/realdocs">
RedirectMatch permanent ^/$ "P:/Main Projects/Test/index.php"
ScriptAlias /php/ "d:/php/"
AddType application/x-httpd-php .php .phtml
Action application/x-httpd-php "/php/php.exe

2)Within IE I enter:

which calls my index.php file:

<title>PHP Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">


<body bgcolor="#FFFFFF" text="#000000">

document.write("And the line is...");

print "please let me be seen";


This only prints out the javascript section though and doesn't appear to
call the php section. If I copy this file to my DocumentRoot directory
and then call it via:


all is well and both the javascript and php sections are displayed. Do I
need to somehow configure Apache to run php scripts from other locations
or am I doing something stupid?

Hope you can help,


PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to