Re: newbie - function is undefined

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4 April 2011 14:03, Jay Blanchard <jblanchard@xxxxxxxxxx> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux