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:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old June 20th, 2001, 05:43 PM
firepages's Avatar
firepages firepages is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: Perth West Australia
Posts: 741 firepages User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
enabling i.e... this.php/xxx/xxxx/xx.ext

ie I want apache to parse

http://www.any.com/file.php/variabl...le/variable.ext

so file.php has the 'variable/variable/variable.ext' as a $variable - apparantly this does not work on the firepages bundle but does on some hosts and a couple of guys I know are desperate to mimic this offline & they use the firepages bundle for offline testing.

I have looked at mod_rewrite with glazed eyes ;( this is really not my territory but I would like to get them on track.

any help or links appreciated.

(this is on apache 1.3.19 running on Win(I think)98)
__________________
resistance is no longer futile :: 423

Reply With Quote
  #2  
Old June 21st, 2001, 02:44 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> this is on apache 1.3.19 running on Win(I think)98)

First of all, I know nothing about Apache on Windows.

Anyway, say you request http://www.any.com/file.php/abc/def/ghi/j.html, this URL stays in browser location bar unchanged:

#http://www.any.com/file.php

Code:
<html>
<body>
<?php
  $variable = "$QUERY_STRING";
  echo "$variable\n";
?>
</body>
</html>


#http://www.any.com/.htaccess or preferrably specify this in httpd.conf

Code:
RewriteEngine on
RewriteCond %{REQUEST_URI}      ^/file\.php/(.+)$
RewriteRule ^file.php/(.*)$             /full/system/path/to/file.php?$1 [L]


Or use RewriteRule ^file.php/(.*)$ /full/system/path/to/file.php?$1 [T=application/x-httpd-php,L] which should be more reliable.

Reply With Quote
  #3  
Old June 21st, 2001, 03:56 AM
firepages's Avatar
firepages firepages is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: Perth West Australia
Posts: 741 firepages User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
freebsd, you are a gem...

that rewrite stuff gives me the shudders..

Cheers.

Reply With Quote
  #4  
Old June 21st, 2001, 06:22 AM
firepages's Avatar
firepages firepages is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: Perth West Australia
Posts: 741 firepages User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Just a quick add on for anyone using phpdev or php as a CGI...

I had to add /php/php.exe ....i.e

RewriteRule file.php/(.*)$ /php/php.exe/file.php?$1 [L]

& I assume that thats windows/CGI specfic?

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > enabling i.e... this.php/xxx/xxxx/xx.ext


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