image
image

Go Back   macosx.com > Design, Media, Programming & Scripting > Software Programming & Web Scripting

Reply
 
Thread Tools
  #1  
Old September 22nd, 2004, 02:09 AM
Mat's Avatar
Mat Mat is offline
iSmell
 
Join Date: May 2003
Location: A Land Down Under
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Mat is on a distinguished road
Making Website Load from External File

Sorry if the heading is misleading.

I am trying to create a simple website with a list of all my albums (i'm up to 183). It would just serve the purpose of my friends being able to see what I have, and have bought recently.

What I'd like to be able to do is simply update a list of the cds instead of having to update the HTML file, and then have the HTML file read the list from that other file. I'm sure there is a way to do it, just unsure which language/setup I should be using. I've been looking at PHP and XML, but have found the info all a bit advanced, as I have no knowledge of either.

So I was just wondering what you guys/gals think will do the job.

All help welcomed and appreciated.

Mat
__________________
Truth hurts. Maybe not as much as jumping on a bicycle with a seat missing, but it hurts.
- Drebin, Naked Gun 2 1/2
Reply With Quote
  #2  
Old September 22nd, 2004, 10:35 AM
Person that uses a Mac
 
Join Date: Nov 2003
Location: Berea, Ohio
Posts: 402
Thanks: 0
Thanked 0 Times in 0 Posts
btoth is on a distinguished road
You could use PHP to just read from a flat file... have each line in the file be a record of sorts ended with a newline character. Should be pretty easy to do that way. It depends on how organized you want the file to be. iTunes uses XML, so you could also parse that too, but I haven't done XML in PHP to be of any help.
__________________
Mac Software by Me - ImageReel, Google Maps Address Book Plugin.
Reply With Quote
  #3  
Old September 23rd, 2004, 01:43 AM
Mat's Avatar
Mat Mat is offline
iSmell
 
Join Date: May 2003
Location: A Land Down Under
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Mat is on a distinguished road
thanks btoth

I spoke to my Uni tutor and he showed me how to do it in PHP, it seems pretty easy, I just discovered that my ISP's web space doesn't have a PHP server running on it anyway. Doesn't matter I'll just do it the old fashioned way. HTML.

Thanks for the input mate.
__________________
Truth hurts. Maybe not as much as jumping on a bicycle with a seat missing, but it hurts.
- Drebin, Naked Gun 2 1/2
Reply With Quote
  #4  
Old September 23rd, 2004, 05:16 AM
Pengu's Avatar
Digital Music Pimp
 
Join Date: Nov 2002
Location: Um.. Here.
Posts: 1,591
Thanks: 0
Thanked 0 Times in 0 Posts
Pengu is on a distinguished road
check out www.webhostingtalk.com
in the forums there are offers/request for free webhosts all the time.
__________________
PowerMac G5 Dual 2.0Ghz | 1Gb | 250Gb | Bluetooth | NVidia GeForce 6800 Ultra DDL 256Mb | 20" Cinema Display | MX1000 Wireless Laser Mouse | OS X 10.3.9

PowerMac G4 400Mhz | 832Mb | 40Gb + 120Gb | OS X Server 10.3.8 - Web Dev, Proxy, Mail, NAT, Firewall, Backup

Netgear Gigabit Switch | Sony Ericsson P910i Smartphone | iPod Colour 60Gb
Reply With Quote
  #5  
Old September 27th, 2004, 05:32 AM
Mat's Avatar
Mat Mat is offline
iSmell
 
Join Date: May 2003
Location: A Land Down Under
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Mat is on a distinguished road
Cool, thanks man.

I found out the line of coded needed to do what I wanted. In case anyone is interested, it is:

<?php include("file.extension"); ?>

So easy, and that file can be just about anything.

Thanks for your help peeps.
__________________
Truth hurts. Maybe not as much as jumping on a bicycle with a seat missing, but it hurts.
- Drebin, Naked Gun 2 1/2

Last edited by Mat; September 28th, 2004 at 08:17 PM.
Reply With Quote
  #6  
Old October 1st, 2004, 02:12 PM
michaelsanford's Avatar
Psycholinguist
 
Join Date: Oct 2002
Location: Ottawa/Montrιal
Posts: 2,174
Thanks: 0
Thanked 0 Times in 0 Posts
michaelsanford is on a distinguished road
Yeah, include(); the function I use most in PHP by far.
__________________
michaelsanford.com • Blog • Twitter • Tumblr • LinkedIn
• iMac Aluminum 24" |
MacOS X 10.5-current | 3.06 GHz Intel Core Duo | 4 GB RAM | 1 TB HDD
• iBook G4 1.42 GHz | MacOS X 10.5-current | 1 GB RAM, 100 GB HDD
• AMD Athlon64 3500+ | Slackware 12 (2.6.21.5-smp) | 2 GB RAM, 2•120 GB RAID 1, 2•500 GB RAID 0
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 11:30 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.