Hi,
Is it possible to read the content of an url (e.g. by use copy function) and after to execute a JavaScrpit taken from this content, to simulate a browser user action by PHP program ?
I try to create an automatic test tool, which will be able to simulate browser user actions and read the server answers. If it is possible, could I simulate Ajax operations also (XHR) ?

Best regards,
Jacek

    [man]fopen/man and friends (fread, etc.) may read URI's if "url_fopen" is enabled in PHP's config file. The [man]cURL[/man] library extension to PHP was also made for this sort of thing. Depending on the content you're trying to siphon, you might even be able to use [man]include/man or [man]require/man ...

    HTH,

      Write a Reply...