Server Parased Include
Moderator: General Moderators
- tecktalkcm0391
- DevNet Resident
- Posts: 1030
- Joined: Fri May 26, 2006 9:25 am
- Location: Florida
Server Parased Include
Is there anyway that I could make something to upload to a server that would go on every page and add some HTML right before the </body> tag. (Without Using any PHP)
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Re: Server Parased Include
You are trying to do this dynamically, I presume?tecktalkcm0391 wrote:Is there anyway that I could make something to upload to a server that would go on every page and add some HTML right before the </body> tag. (Without Using any PHP)
- tecktalkcm0391
- DevNet Resident
- Posts: 1030
- Joined: Fri May 26, 2006 9:25 am
- Location: Florida
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
- tecktalkcm0391
- DevNet Resident
- Posts: 1030
- Joined: Fri May 26, 2006 9:25 am
- Location: Florida
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
I'm sure a Google would lead you to the resource you desire.
http://www.google.com/search?q=mod%20rewrite
http://www.google.com/search?q=mod%20rewrite
- tecktalkcm0391
- DevNet Resident
- Posts: 1030
- Joined: Fri May 26, 2006 9:25 am
- Location: Florida
- n00b Saibot
- DevNet Resident
- Posts: 1452
- Joined: Fri Dec 24, 2004 2:59 am
- Location: Lucknow, UP, India
- Contact:
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Re: Server Parased Include
Ok, let me wrap my mind around this. You want to take an HTML page that is on the server, open it and add some code just before the </body> tag, and you want to do it without using PHP? How about Perl? What are you trying to accomplish with this and why? That might help us better help you.tecktalkcm0391 wrote:Is there anyway that I could make something to upload to a server that would go on every page and add some HTML right before the </body> tag. (Without Using any PHP)
- jayshields
- DevNet Resident
- Posts: 1912
- Joined: Mon Aug 22, 2005 12:11 pm
- Location: Leeds/Manchester, England
He is wanting to have every webpage on his server have some extra HTML code in it in a specific place. The extra HTML code and specific place will be the same across all files.
The files will not be modified, but the HTML will be modified on the fly when the user is viewing a webpage.
If a HTML file on the server contained this:
When viewed it would look like this:
The files will not be modified, but the HTML will be modified on the fly when the user is viewing a webpage.
If a HTML file on the server contained this:
Code: Select all
<html>
<head><title>something</title></head>
<body>something</body>
</html>Code: Select all
<html>
<head><title>something</title></head>
<body>something{WHATEVER EXTRA STUFF HERE}</body>
</html>- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
There's always auto_prepend_file and its sibling.