[kdewebdev-webdeveloper] test

Andrew Lowe andrew.lowe at manildra.com.au
Mon Mar 3 17:41:35 EST 2008


On Mon, 3 Mar 2008 22:49:48 Isaak wrote:
> I thought Quanta was kde-webdevelop..? That's the reason I joined this
> mailing list.
>
> Well, since this list is now unofficially about web development, I'll start
> by asking the first question.
>
> Recently I started with XML in my web development but I don't know a way to
> include it in HTML files without JavaScript, since JavaScript isn't search
> engine friendly I included a link on the webpage which links to the XML
> file containing the news articles. I prefer not use an XML file (using
> XSLT) as home page and I'd like the solution to be browser-friendly
> (cross-browser), so does anyone have any suggestions on how to solve this?
> I also prefer not to load the news articles from the database everytime or
> use PHP to read the XML file everytime, XML should be good enough for news
> articles and this will reduce the resource usage.
>
> --
> Isaak
>

The Quanta list is at:
http://mail.kde.org/mailman/listinfo/quanta

And for your question...

You cannot load a separate file into HTML without a server or client side 
programming/scripting language such as JavaScript (Client Side) or PHP 
(Server Side).

Using a server side option would be best, as these are parsed well by search 
engines, as you are not relying on the client to render the page correctly 
using javascript, which could be not available, or enabled.

Articles should come out of a database quicker then an XML file, because 
databases are optimised for this task, whereas XML is optimised for making 
the data human readable.

The PHP code to doe the job would be pretty basic, and fairly fast, and not 
very heavy on the resources.

The other option you could do if you are expecting high load on your server to 
build the php and xml file into a static HTML file using an administration 
function... You would update the xml file, and then run the build script 
(PHP), this would update the HTML file which would be then loaded by clients 
without php having to re-run every time.  This however is really not needed 
unless you are getting very high loads... and then you would be better off 
looking at using a reverse proxy / apache cache to do this automatically.

I hope this helps....

-- 
Andrew Lowe
    System Administrator & Programmer
        Information Technology
            Manildra Group

Email:   andrew.lowe at manildra.com.au
Phone:   02 4423 8270
Mobile:  04 1323 8270
Fax:     02 4421 7760 


More information about the kdewebdev-webdeveloper mailing list