Forum Moderators: coopster

Message Too Old, No Replies

Offering PHP services question.

         

MajdAA

8:49 pm on Mar 26, 2005 (gmt 0)

10+ Year Member



Hi,

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]

coopster

10:07 pm on Mar 28, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, MajdAA.

A bit confusing, can you give a little more detail on what you are trying to accomplish here?

MajdAA

1:50 am on Mar 29, 2005 (gmt 0)

10+ Year Member



thnx for the welcome

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]

coopster

2:45 pm on Mar 29, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



The concept being discussed is actually accomplished using frames [w3.org].