|
![]() |
![]() |
![]() |
![]() |
![]() |
|
![]() |
#1 | |
I can now put whatever you want in this space :)
Join Date: Mar 2009
Location: Merica!
Posts: 543
|
Quote:
echo @stripslashes( @join( @file( "http://www.somedomain.com/cgi-bin/someperl.cgi" ),"" )); As for running htm pages as php, maybe in one directory it would be OK, but not sitewide. You dont really want HTM being parsed as PHP if you can help it. It will cause a performance hit.
__________________
Its just a jump to the left. Last edited by nate; 2009-05-12 at 07:15 PM.. |
|
![]() |
![]() |
![]() |
#2 | ||
on vacation
|
Quote:
Quote:
![]() well I'm not up on all this techy stuff lol. If you tell me how to do something I'll understand it, but I probably won't know why it works ![]() I have one directory with about 125 or so pages that I'd be needing the php on. Any new pages in that directory I would just do as php I guess. I was thinking about just switching them to php anyway if I can do a global redirect or something since they're all in the same directory? I really don't want to have to redirect 125 pages separately, it sounds a bit messy. for now I'm going to parse 'em, if you guys have a good solution my ears are open ![]() |
||
![]() |
![]() |
![]() |
#3 | |
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
Quote:
If you wanted to redirect files, you could do it with mod_rewrite. If you want to silently serve the .php as .html (and for some reason didn't want to parse .html) Code:
RewriteEngine on RewriteRule ^(.*).html$ $1.php [L] Code:
RewriteEngine on RewriteRule ^(.*).html$ $1.php [R=301,L]
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
|
![]() |
![]() |
![]() |
#4 | |
on vacation
|
Quote:
|
|
![]() |
![]() |
![]() |
#5 | |
wtfwjd?
Join Date: May 2007
Posts: 2,103
|
Quote:
Interesting thread...wish I understood more of this stuff... |
|
![]() |
![]() |
![]() |
#6 | |
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
Quote:
And that doesn't really solve the problem. If a file is being included, sure, that will work, though, Code:
echo @file_get_contents('http://www.somedomain.com/cgi-bin/someperl.cgi'); If it is a local file, you're better off doing: Code:
echo @file_get_contents('/path/to/localfile.html'); Code:
<!--#config timefmt="%A %B %d, %Y" --> Today is <!--#echo var="DATE_LOCAL" --> In the end, SSI wasn't used, so, it's a moot point. ![]()
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|