Re: newbie - function is undefined

From: Date: Mon, 04 Apr 2011 13:29:47 +0000
Subject: Re: newbie - function is undefined
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-312242@lists.php.net to get a copy of this message
On 4 April 2011 14:03, Jay Blanchard <jblanchard@pocket.com> wrote: > [snip] > Short answer : yes. > Medium answer : probably, but really yes. > Long answer : unless you are providing some sort of mechanism to hold > the current state of PHP, eject the required JS code to get a value > from the client and return it to the server which then recreates the > working environment and carries on execution (try debugging THAT), > then almost certainly. > [/snip] > > So dynamically generated pages by PHP shouldn't spit out any JS of any > type? > Oh no no no. You can use PHP to GENERATE JS, CSS, HTML, XML, etc. You just can't CALL JS from PHP and get a response. I use PHP to create JS code a LOT. The CSS/JS Combinator uses PHP to shrink and cache the JS and CSS code to reduce the number of hits a page generates. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

« previous php.general (#312242) next »