lucavilla Posted October 9, 2007 Share Posted October 9, 2007 I have Windows Vista and PHP with Curl. I would save a web page on my harddisk with a PHP command-line command. What's the more minimalist way to do it? Link to comment https://forums.phpfreaks.com/topic/72479-shortest-code-to-open-a-web-page-from-php/ Share on other sites More sharing options...
Orio Posted October 9, 2007 Share Posted October 9, 2007 copy($url, "C:\file.ext"); You need to enable the allow_url_fopen directive in your php.ini Orio. Link to comment https://forums.phpfreaks.com/topic/72479-shortest-code-to-open-a-web-page-from-php/#findComment-365470 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.