You are here: Home > Web Design > Use CSV or XML Files And Make Your Life Easier!
Thursday, 06 December 2007
If you are designing a directory site such as my hotel room website, my breakdown cover site or my credit card site, it's much easier to either build in an admin interface or to use a simple script that can parse CSV / XML files.
Why?
Today I had an email from Hilton Hotels asking me to change all my banner links and deeplinks.
Given they have quite a few hotels, this could be a daunting task to someone who has hardcoded their website.
But I've built a script that takes a CSV file, and inserts it into the database, overwriting the previous data. This means all I had to do was one "search and replace" search, save the file to my server and run the script.
Hey presto, all sorted.
Such an approach could be used for directory based websites, voucher code websites, etc.
What I do is simply set up a CSV file for each new site I create rather than use an admin interface. It takes less time and it's more secure as I can delete the import script after use, rather than relying upon a password protected admin area.
Bookmark this article in Bumpzee, Del.icio.us, Digg and Stumble Upon
Technorati tags: xml, csv, database, script, affiliate
You may also be interested in reading:
4 CommentsComments are manually approved and hence can a while to appear. Questions, informative posts, and feedback comments are gladly accepted. Spam is deleted. Spam-type comments have their links removed (Comment Policy)
Would you mind sharing the source script you use and perhaps posting 'how to do it' or a link to another site? Many thanks.
Written on Friday 07 December 2007 at 08:54:15 GMT (Permalink)
@Chris - Thanks for the link
@Gadget - On my todo list :-)
Written on Friday 07 December 2007 at 09:53:16 GMT (Permalink)
It is so much easier when you automate sections of your process in order to keep things up to date.
Written on Monday 31 March 2008 at 23:29:26 GMT (Permalink)
Please allow 1 minute to connect. Please quote code DF
2008:
2007:
Freebies make me work harder! If you send it, I'll blog about it - unless it's rude :-)

chris
I don't use csv / datafeeds but the benefits are obvious so maybe i should. I usually concentrate on unique content and often rewrite alof of product information. If you have hardcoded your website or are a designer (like i am) theres a tool i use called,
Search and Replace funnily enough and will search through all files in a directory and change, http://www.rjlsoftware.com/...
Hope this helps those who have hardcoded their websites!
Written on Thursday 06 December 2007 at 19:56:24 GMT (Permalink)