SunQuest
           Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old April 3rd, 2001, 07:11 AM
Teedeepee Teedeepee is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 18 Teedeepee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 54 m 14 sec
Reputation Power: 0
Question

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

Reply With Quote
  #2  
Old April 3rd, 2001, 08:02 AM
churcr1 churcr1 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Location: United Kingdom
Posts: 9 churcr1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to churcr1
Lightbulb Includes / pre parsing

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.

Reply With Quote
  #3  
Old April 4th, 2001, 02:09 AM
EiN5TeiN EiN5TeiN is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Posts: 1 EiN5TeiN User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to EiN5TeiN
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!

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Parsing both XSSI and PHP commands in one page


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway