PHP Command Line

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mr00047
Forum Newbie
Posts: 14
Joined: Fri May 12, 2006 1:01 pm

PHP Command Line

Post 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:
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Technically, almost anything is possible, so yes.
mr00047
Forum Newbie
Posts: 14
Joined: Fri May 12, 2006 1:01 pm

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

You will require cURL, fsockopen() or some class/library functions that use one or both such as Snoopy.
Post Reply