Forum Moderators: coopster
I've come across one system but it's $300 and not PHP. I can't justify that without a client willing to foot the bill.
I've found PHPsniff but it doesn't seem to register connection speed (lots of other useful browser info though)
Cheers,
hughie
what if the user is browsing through a proxy? the person may be on a 9600 baud modem but the proxy pulls it in at 100mb.
do like mincklerstraat suggests, it gives the illusion of speed.. make what the surfer is looking for appear first or make something appear right away. (a problem with nested tables or large tables with images that do not contain image sizes in the tag, etc)
For instance,
person with 56k connection gets basic advert (5k)
person with broadband gets advert with video (150k)
I've seen yahoo do it and i know of a way not using php but its $300 like i said. Not sure how they would get round the proxy problem though, thats a good point!
Have a look at <snip> all one of course. they do it with ASP/JSP and it seems very good, i'm looking for a php alternative thats cheaper.
Not tested it with a proxy though.
ta,
hughie
[edited by: jatar_k at 5:08 pm (utc) on Oct. 13, 2004]
[edit reason] removed url [/edit]
You can put server-side code in a CSS file, so database queries shouldn't be a problem. However, it'd probably be better to do the query as normal and pass any appropriate paths to the CSS file when you call it:
<style type="text/css">
@import style.css?img1=pathtoimg1&img2=pathtoimg2";
</style>
If you're going for a whole lot of fancy background gizmos (and why not!), including the sheet like jetboy recommends is best. However, there are certain things you'll want to know before you try. See third message in [webmasterworld.com...] regarding headers needed for css sheets in moz and on the non-cachability of php css sheets unless you deliver extra cache-info headers.