Forum Moderators: coopster
I have written about 5-6 scripts.
I want to offer them as a service on my site
Now my question is:
How can I include a php file via javascript?
I want the php to be parsed, and the output to be sort of, echoed using javascript.
I have searched for a solution on google and what i came up with was:
<script language=javascript src="http://www.example.com/scripts/FastNEWS/view.php"
type="text/javascript"></script>
but that didn't work.
[edited by: coopster at 10:43 pm (utc) on Mar. 26, 2005]
[edit reason] generalilzed url (TOS) [webmasterworld.com] [/edit]
well basically, i want the user to sign up, register for script X and then click "Generate Code" and he gets about 3 lines of code in javascript.
The reason i say javascript is for all the people out there with sites that don't support php/mysql.
So basically, the code generated would act just like an include() function. It would parse the page on my server, then show the output on his server.
[edited by: coopster at 2:38 pm (utc) on Mar. 29, 2005]
[edit reason] removed url per TOS [webmasterworld.com] [/edit]