Page 1 of 1

PHP Command Line

Posted: Mon Apr 09, 2007 5:08 am
by mr00047
Hello everybody,

I wonder is it possible to send a request to a server by a php script while executing it from the command line?
I think it will make more sense if i tell you about the real life scenario. say for example i have a login page on the server. i want to authenticate to the website. is it possible? :oops:

Posted: Mon Apr 09, 2007 8:32 am
by feyd
Technically, almost anything is possible, so yes.

Posted: Mon Apr 09, 2007 9:28 am
by mr00047
Thanks feyd for at least giving me some hopes. Well, as it is yes, would you please kindly tell me how this can be achieved? do you have any idea or thought about it? or even do you know any place where i can study the topic?:)

Thank you again.

Posted: Mon Apr 09, 2007 9:39 am
by feyd
You will require cURL, fsockopen() or some class/library functions that use one or both such as Snoopy.