[thelist] parse file.js with PHP

PeterV peter at poorbuthappy.com
Thu Jun 27 11:01:01 CDT 2002


>- put the following in file.php
><?php
>// text/javascript, not text/html
>header("Content-type: text/javascript");
>
>// your script
>?>
>
>- don't link to file.php, but to file.php/javascript.js

I have just tried that, but it doesn't seem to work? When I try this
http://yourclips.localhost/javascript.php/javascript.js
I get a server 500 error.
This
http://yourclips.localhost/javascript.php
pops up a download dialog box...
Any ideas?
Thanks!
Peter





More information about the thelist mailing list