i am a newbie in learning php, and i would like to know if php can be used just as javascript being initialized in the head of an html docment to be called whenever you need it?
ndeniche
402
Posting Virtuoso
Featured Poster
Recommended Answers
Jump to PostI don't think you can do that at all with PHP because it need to be processed by the PHP engine (server side).
Jump to PostPHP is executed on the server, not in the browser. So it doesn't matter where you put it. If you want something executed in the browser you must use JavaScript.
All 5 Replies
Cerberus
17
Junior Poster
ndeniche
402
Posting Virtuoso
Featured Poster
stymiee
111
He's No Good To Me Dead
Team Colleague
dr4g
25
Junior Poster
WhiteLeo
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.