Re: cookies fails when php from ssi

From: Date: Tue, 14 Nov 2000 10:39:54 +0000
Subject: Re: cookies fails when php from ssi
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-4418@lists.php.net to get a copy of this message
> > On my website I use SSI, so my pages have .shtml extension. > The webserver is Apache and php is version 3. > > Now I'm writing a PHP script for insert some html lines in a certain point > in my page and I want to run this script with a SSI instruction from that > point in the page (<!--#include virtual="my_script.php3" -->). > > The problem is the script uses cookies and calling the script from a SSI > instruction causes the impossibility for the script to read and write > cookies. So it seems! > > I can't turn my pages in .php3 extension becasue they are indexed in many > search engines. > Try adding .shtml to end of the line in httpd.conf beginning AddType application/x-httpd-php3 .php3 This will tell apache to interpret php code found in .shtml files as well as .php3 files. Then you can insert your script directly into the page. HTH Andy

« previous php.db (#4418) next »