RE: [PHP] why this doesn't work as an external file but does internally?
| From: | Aaron Wolski | Date: | Tue, 05 Oct 2004 20:15:41 +0000 |
| Subject: | RE: [PHP] why this doesn't work as an external file but does internally? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-198724@lists.php.net to get a copy of this message | ||
File with the JS code is called: jsstuff.php
Aaron
> -----Original Message-----
> From: Vail, Warren [mailto:Warren.Vail@schwab.com]
> Sent: October 5, 2004 4:12 PM
> To: 'Aaron Wolski'; 'Jay Blanchard'; php-general@lists.php.net
> Subject: RE: [PHP] why this doesn't work as an external file but does
> internally?
>
> Right on, a .js file is probably not processed by the PHP engine, but
> while
> it's imbedded in a .php file, it is. Apples and Oranges, no?
>
> Warren Vail
>
>
> -----Original Message-----
> From: Aaron Wolski [mailto:aaronjw@martekbiz.com]
> Sent: Tuesday, October 05, 2004 1:01 PM
> To: 'Jay Blanchard'; php-general@lists.php.net
> Subject: RE: [PHP] why this doesn't work as an external file but does
> internally?
>
>
>
>
> > -----Original Message-----
> > From: Jay Blanchard [mailto:jay.blanchard@niicommunications.com]
> > Sent: October 5, 2004 3:52 PM
> > To: php-general@lists.php.net
> > Subject: RE: [PHP] why this doesn't work as an external file but
does
> > internally?
> >
> [snip]
> > And the web has these JavaScript lists! Quaint, no?
> [/snip]
>
> If you look closely, it's tied in with PHP. But thanks your help!
>
> [snip]
> > Anyhow, to make this work you will need to generate your JavaScript
> code
> > with PHP.
> [/snip]
>
> If that was true then why does this work:
>
> img1off = new Image(); img1off.src = "<?php echo $base_url;
> ?>Graphics/home_off.gif";
>
> I certainly didn't generate it with PHP and it was included as an
external
> file.
>
> Thanks!
>
> A
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php