|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Hi all,
Here's my challenge... How do I get Apache to parse both XSSI and PHP 4 commands in one single file ? When I set the file type (i.e. .html) in the Apache MIME configuration for both XSSI and PHP parsers to compile, the PHP parser takes over, resulting in my XSSI commands to be sent unparsed to the browser. Any guess ? Thanks. TdP |
|
#2
|
|||
|
|||
|
The type of solution really depends on what order things need to be evaluated in so this idea may not work. Have you tried using Includes? If you can include the XSSIs code in an included file they should execute before the PHP for the page.
Failing that, apart from the work involved is there any reason the PHP could not pass the XSSI? Just a kite flyer. |
|
#3
|
|||
|
|||
|
I had the same problem with IIS and didn't figure an intelligent way to get around it. I tried to add the
"#!/usr/local/php/bin -q" (with a valid NT path) statement at the beginning of the page, which should do the job but didn't. Please let me know if it works on Apache. Temporarly, I set the phpaspi module to manage all my .html files and I use php's standard include function : include("mypage.html"); I'd rather user SSI for its better performance. Please, someone, inform us on this! ![]() Thanks you code-gods, serveradmin-gods out-there! |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Parsing both XSSI and PHP commands in one page |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|