Date: 11/14/00
- Next message: CC Zona: "Re: [PHP-DB] general php list?"
- Previous message: phobo: "Re: [PHP-DB] HELP ME !!"
- In reply to: Francesco Borri: "[PHP-DB] cookies fails when php from ssi"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>
> 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
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: CC Zona: "Re: [PHP-DB] general php list?"
- Previous message: phobo: "Re: [PHP-DB] HELP ME !!"
- In reply to: Francesco Borri: "[PHP-DB] cookies fails when php from ssi"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

