HTTP retrieves whole .php code
#1

On my HTTP request, the data that is sent back is my source. In the source, it uses PHP to echo out some text that is produced by javascript.

The data that is given to me is:
Код:
<html>
<head>
<script type="text/javascript"
etc..

But I want only the text that is echo'd from PHP to display. (Like it does when I go to the page manually). How can I do that?

Thanks.
Reply
#2

You can't use javascript with the HTTP requests, the HTTP function does not parse HTML or Javascript, it parses requests to websites to obtain the source code, but not to parse the source code.

There's nothing you can do other than re-code the page to only echo what you need from PHP.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)