|
#1
| ||||
| ||||
| 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 |
|
#2
| |||
| |||
| 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. |
|
#3
| ||||
| ||||
| 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 |
|
#4
| ||||
| ||||
| 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 |
|
#5
| ||||
| ||||
| 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. |
|
#6
| ||||
| ||||
| 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, 2120 GB RAID 1, 2500 GB RAID 0 |
![]() |
| Thread Tools | |
|
|