Re: PHP slower than javascript if heavy traffic?




Jan wrote:
PHP/ASP/JSP may be used to create dynamic pages. Sites using this to
create all their pages are often very slow, maybe to due workload on
the server.

May the pages become quicker if a browser client script like javascript
is used instead of PHP, thus keeping most of the page in static HTML?
My aim to is to produce cookies for a site with 200,000 visitors a day,
and a PHP part in the HTML code may be one approach.

What exactly are you hoping to achieve in Javascript? Some things will
be faster with a client-side implementation (i.e. input validation)
while some things will be impossible (i.e. writing info to a database).

It all depends on what you're doing. If you still need a server-side
scripting engine to generate a large part of the Javascript, you
probably haven't gained much.

And what exactly do you mean, "my aim is to produce cookies" ?

.



Relevant Pages

  • Re: Question on textbox property.
    ... you could write Javascript code that gets run on Window's ... the cookies will be sent to the server. ... > makes changes to each of the textbox content, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Cross-domain cookie updating ?
    ... It's not strictly a PHP question, but something that PHP guys would know the answer to. ... If the file being returned has updated cookie information in the response header, then I imagine the cookies for example.com get updated. ... What if the JS file it's requesting is actually to a different unrelated domain server that's going to return a JavaScript file with updated cookies in the response header. ...
    (comp.lang.php)
  • Re: Proggramatically delete cookies
    ... Client side script (JavaScript). ... But only cookies from your server ... IIRC. ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: [PHP] Saving css state in javascript and passing to php via form submit
    ... Ok, i can put the data in the session variable, but i can ... You can use session within javascript too i believe. ... AFAIK they are send in the HTTP headers from and to the server. ... Cookies are nearly the same as sessions, ...
    (php.general)
  • Re: Tier3 today - And Flex-it like NASDAQ (*Only better!*)
    ... FlexBuilder, or just working on the FABridge functionality in general, you ... ArrayCollections are completely accessible via the Javascript in ... Broadcasted server to client messages, ...
    (comp.os.vms)