NYCPHP Meetup

NYPHP.org

[nycphp-talk] php performing actions on pages

Anirudh Zala arzala at gmail.com
Tue Nov 7 23:52:13 EST 2006


On Wednesday 08 November 2006 09:37, Rob Notwicz wrote:
> Thanks Anirudh! You wouldn't happen to know of any good sites/examples
> showing this kind of thing in action?
>

Here are some links with examples.

http://in.php.net/fsockopen
http://livedocs.phpdoc.info/index.php?l=en&q=function.fsockopen

You can also google term "fosockopen" or "socket programming in php" to get 
more materials like above.

Thanks

Zala

> On 11/7/06, Anirudh Zala <arzala at gmail.com> wrote:
> > On Wednesday 08 November 2006 05:59, Rob Notwicz wrote:
> > > Can a php script be made to perform actions on a site, such as: open
> > > it, fill in a form, click a link/button, and receive the page returned?
> > > I've been having problems getting cURL to extract a site behind an
> > > https
> >
> > login
> >
> > > and I was wondering if there was a more direct method.
> > >
> > > thanks,
> > >    Rob
> >
> > Yes, using PHP functions like "fsockopen, fputs, fgets" etc. you can do
> > so.
> > But this method might have certain limitations of accessing pages. For
> > example, pages being submitted using JS might not work with this method.
> >
> > It is not to be assumed that whatever acctions is performed using
> > browser, can
> > also be done exactly using these methods.
> >
> > Thanks
> >
> > Zala
> > _______________________________________________
> > New York PHP Community Talk Mailing List
> > http://lists.nyphp.org/mailman/listinfo/talk
> >
> > NYPHPCon 2006 Presentations Online
> > http://www.nyphpcon.com
> >
> > Show Your Participation in New York PHP
> > http://www.nyphp.org/show_participation.php



More information about the talk mailing list