Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 12-29-2003, 05:35 PM   #1
ldinternet
Confirmed User
 
Join Date: Apr 2001
Posts: 8,245
Question for anyone that knows PHP

I have

- a site with 50,000 html pages
- a list of updates in updates.html

Would it be possible to insert a bit of PHP into the html pages, that will pull the content of updates.html and display it? I'd like the updates to appear as part of the page, not in an i frame or anything like that.

If possible, could someone give me an example of how this is done?

thanks......

Last edited by ldinternet; 12-29-2003 at 05:47 PM..
ldinternet is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-29-2003, 05:37 PM   #2
SetTheWorldonFire
Confirmed User
 
Industry Role:
Join Date: Feb 2002
Location: California
Posts: 7,444
yes it's possible and no I can't tell you how.

unless you paypal me $10,000

or talk to a php programmer and have them give you a quote.

it's pretty much just a file open and insert html to all those pages.
__________________
www.STWOFDesign.com
hit me up on icq 154206276 or Skype: JaimeGizzle
SetTheWorldonFire is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-29-2003, 05:39 PM   #3
ztik
Confirmed User
 
ztik's Avatar
 
Industry Role:
Join Date: Aug 2001
Location: Nomad
Posts: 5,196
why not just use ssi?
__________________
.
ztik is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-29-2003, 05:41 PM   #4
avion
Confirmed User
 
Join Date: Jan 2003
Location: right next to u
Posts: 1,403
it is possible, but really why dont u use SSI - would be simpler I believe...
avion is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-29-2003, 05:42 PM   #5
Darren
Confirmed User
 
Darren's Avatar
 
Join Date: Sep 2001
Posts: 5,994
Idinternet ICQ me and I can get my programmer to do it for ya... on the house! Won't be till 2mor 11am GMT time he gets in.
Darren is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-29-2003, 05:49 PM   #6
Babaganoosh
♥♥♥ Likes Hugs ♥♥♥
 
Babaganoosh's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
Use the "include file" SSI directive. You don't need any scripts to do that.
__________________
I like pie.
Babaganoosh is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-29-2003, 05:50 PM   #7
Darren
Confirmed User
 
Darren's Avatar
 
Join Date: Sep 2001
Posts: 5,994
or u could use SSI heheh
Darren is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-29-2003, 05:53 PM   #8
^R3K^
Confirmed User
 
Join Date: Sep 2001
Location: North Carolina
Posts: 2,815
you could do it easily by adding header or footer with ssi, or just ad a bit of code on each of the html pages maybe at a peice of code that appears on each page. then add something like
PHP Code:
<?php include updates.htm'; ?>
and then add to your htaccess "AddType application/x-httpd-php .htm .html"
__________________
no business like ho business

Http://www.natnet.com
No Hype, Just Results
^R3K^ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.