Re: how to open a webpage

From: Date: Mon, 12 Jan 2004 17:00:16 +0000
Subject: Re: how to open a webpage
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-174340@lists.php.net to get a copy of this message
--- Richard Davey <rich@launchcode.co.uk> wrote: > b> How can I open this URL automatically ?? > > PHP itself cannot open a web page, it's a server-side language and > doesn't have any control over the client like that. Well, that's not exactly true if the allow_url_fopen directive is enabled. You can open Web pages just like local files: $handle = fopen('http://www.example.com/', 'r'); Hope that helps. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security Handbook Coming mid-2004 HTTP Developer's Handbook http://httphandbook.org/

« previous php.general (#174340) next »