Easily Editable Websites AKA PHP help!!
Moderator: Moderators
-
Super Cameraman
- Posts: 1123
- Joined: Mon Feb 27, 2006 6:25 pm
Easily Editable Websites AKA PHP help!!
Well, here's the deal:
I made a website for a kids' gym for a guy named Steve (www.RascalsGym.com if you want to see it) and it works great and it's been getting a lot of hits, but whenever it needs to be edited, I need to do it.
Is there a way to make this easier so Steve can edit it without me?
Like embedding a txt file into the html so you just edit the text in the txt and not the html? There has to be some way, right? I know it's possible to embed XML text in Flash, but I don't really want to use Flash if I don't have to. Apparently people don't have it, and it takes a long time to load. (I've never had any problems with it though)
SCM
I made a website for a kids' gym for a guy named Steve (www.RascalsGym.com if you want to see it) and it works great and it's been getting a lot of hits, but whenever it needs to be edited, I need to do it.
Is there a way to make this easier so Steve can edit it without me?
Like embedding a txt file into the html so you just edit the text in the txt and not the html? There has to be some way, right? I know it's possible to embed XML text in Flash, but I don't really want to use Flash if I don't have to. Apparently people don't have it, and it takes a long time to load. (I've never had any problems with it though)
SCM
Last edited by Super Cameraman on Thu Sep 06, 2007 2:50 pm, edited 1 time in total.
If you're looking at this post and it was made before 2008, just ignore it.
-
Super Cameraman
- Posts: 1123
- Joined: Mon Feb 27, 2006 6:25 pm
-
bicostp
- Moderator
- Posts: 10491
- Joined: Mon Mar 07, 2005 5:47 pm
- Steam ID: bicostp
- Location: Spamalot
- Contact:
I think the easiest solution is to put the text in a separate HTML file, then use PHP include to stitch it back into the page when necessary. He could use Notepad, or (*cringe*) Word or FrontPage to edit the content.
Twitter
http://www.pcwgaming.com" onclick="window.open(this.href);return false;
If you want a Dropbox account, please use my referral link
http://www.pcwgaming.com" onclick="window.open(this.href);return false;
If you want a Dropbox account, please use my referral link
-
Super Cameraman
- Posts: 1123
- Joined: Mon Feb 27, 2006 6:25 pm
-
bicostp
- Moderator
- Posts: 10491
- Joined: Mon Mar 07, 2005 5:47 pm
- Steam ID: bicostp
- Location: Spamalot
- Contact:
Well, PHP include is basically a not-crappy way to include pages inside pages. (Frames and iFrames, by contrast, are crappy and should only be used when necessary.) I-Mockery.com uses it for the header on all their pages, and I'm slowly overhauling my site to use it too.
Here's a good tutorial:
http://www.albinoblacksheep.com/tutorial/include
As for Word and FrontPage, they fail at making web pages. No real standards support, and the code they churn out isn't the most streamlined. Nothing compares to coding a website by hand.
Here's a good tutorial:
http://www.albinoblacksheep.com/tutorial/include
As for Word and FrontPage, they fail at making web pages. No real standards support, and the code they churn out isn't the most streamlined. Nothing compares to coding a website by hand.
Twitter
http://www.pcwgaming.com" onclick="window.open(this.href);return false;
If you want a Dropbox account, please use my referral link
http://www.pcwgaming.com" onclick="window.open(this.href);return false;
If you want a Dropbox account, please use my referral link
-
CronoTriggerfan
- Moderator
- Posts: 4131
- Joined: Fri Jan 27, 2006 3:07 pm
- Location: University of Michigan - Ann Arbor
- Contact:
-
Super Cameraman
- Posts: 1123
- Joined: Mon Feb 27, 2006 6:25 pm
I can actually understand the tutorial, but as soon as I paste the code into the html, the whole layout of the website gets totally messed up...bicostp wrote:Well, PHP include is basically a not-crappy way to include pages inside pages. (Frames and iFrames, by contrast, are crappy and should only be used when necessary.) I-Mockery.com uses it for the header on all their pages, and I'm slowly overhauling my site to use it too.
Here's a good tutorial:
http://www.albinoblacksheep.com/tutorial/include
As for Word and FrontPage, they fail at making web pages. No real standards support, and the code they churn out isn't the most streamlined. Nothing compares to coding a website by hand.
I actually found something using iFrames, and it worked and did what I needed, but I could only get one iFrame to work on a single page. I need at least two...
EDIT: Actually, that worked perfectly!!
EDIT 2: No I won't use Notepad!!
If you're looking at this post and it was made before 2008, just ignore it.
-
Super Cameraman
- Posts: 1123
- Joined: Mon Feb 27, 2006 6:25 pm
It won't let me. It's not an option in the save as menu.
EDIT: As soon as I open it in Word, it adds head and body tags, and a whole lot of other stuff to the code, and with all that stuff, it screws up the page I embed it in.. As soon as I delete that code and resave it, it works perfectly. Is there a way to turn of... auto-script-messing-up in Word?
EDIT: As soon as I open it in Word, it adds head and body tags, and a whole lot of other stuff to the code, and with all that stuff, it screws up the page I embed it in.. As soon as I delete that code and resave it, it works perfectly. Is there a way to turn of... auto-script-messing-up in Word?
If you're looking at this post and it was made before 2008, just ignore it.
Right click the file and choose open with... text edit. Should be standard on any XP (or Vista... I think?), and much cleaner and friendlier than Notepad.Super Cameraman wrote:It won't let me. It's not an option in the save as menu.
EDIT: As soon as I open it in Word, it adds head and body tags, and a whole lot of other stuff to the code, and with all that stuff, it screws up the page I embed it in.. As soon as I delete that code and resave it, it works perfectly. Is there a way to turn of... auto-script-messing-up in Word?
Which I use and love. Most of the time.
Glad the iframes worked for you, I love them--but unfortunately the iPhone doesn't
-
Super Cameraman
- Posts: 1123
- Joined: Mon Feb 27, 2006 6:25 pm
