Solved

posting data to remote server but result to own server

Posted on 2006-10-22
6
242 Views
Last Modified: 2006-11-18
Hi,

How to code in PHP

ex.

I have make a form with username and password in php and
if i enter the user and pass, i want it will automatically check from ex. mail.yahoo.com ( user and pass )
then the result wheter login success or not, it should appear in the php form that i created not go the the mail.yahoo.com page

Thanks
0
Comment
Question by:abangbatax
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 15

Expert Comment

by:babuno5
ID: 17786742
Check this function out
http://in.php.net/fsockopen
0
 

Author Comment

by:abangbatax
ID: 17786749
How about CURL?

i heard it also can but i dont know how to code it

Thanks
0
 
LVL 15

Expert Comment

by:babuno5
ID: 17786784
yes CURL is also possible but u need to have CURL installed
0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 

Author Comment

by:abangbatax
ID: 17786791
Yes, it's installed

could you tell me the php code sample?

Thanks
0
 
LVL 15

Expert Comment

by:babuno5
ID: 17786855
I  m not much familiar with CURL but check this link out
http://www.higherpass.com/php/tutorials/Using-Curl-To-Query-Remote-Servers/1/
0
 
LVL 15

Accepted Solution

by:
babuno5 earned 125 total points
ID: 17786865
there are lots of examples on this link too
http://in.php.net/curl
0

Featured Post

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question