Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Tag Cloud
access acer asus batch bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet laptop malware memory monitor motherboard mouse network operating system printer problem ram registry router slow software sound trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
updating one file for many pages

Reply  
Thread Tools
B1u3's Avatar
Member with 144 posts.
 
Join Date: Jun 2005
Experience: Intermediate
22-May-2007, 01:40 AM #1
updating one file for many pages
hello, im trying to make sections of my website to load from one html file.

in the coming month i will have alot of html files, each with a section that would load from a external file on the main part of my site, so i dont have to edit alot of files..

i have tried a "<?php include 'name.php'; ?">" which i had to keep in the same directory of the page i wanted it to load from, and i had 5 before i realized that it would take along time to update each of those files.

i just tried to make an iframe it did work, but it did not fully work, only half of what i wanted to display showed up.

i should note that i set my .htaccess file to make php elements load from inside html.

so whats better and could you help?

thanks-
MMJ's Avatar
MMJ MMJ is offline
Senior Member with 3,637 posts.
 
Join Date: Oct 2006
22-May-2007, 06:03 AM #2
You could easily change the dir to include from.

What exactly is wrong with php include? Why exactly does it not work?

You could use SSI.
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 11:12 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.