Re: Novice question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 30 Oct 2011 17:24:07 -0000
"John Allsopp" <john@xxxxxxxxxxxxxxxxx> wrote:

> Hi
> 
> I'm afraid I've fallen a little out of touch with PHP dev, so a stupid
> question for you.
> 
> I want to write a script that requests a URL and then reads that
> website .. I'm interested to map web structures. My web host is
> saying I'll need URL file access enabled but that it's a) a security
> risk and b) deprecated.
> 
> So .. what's the good / proper / acceptable / secure way of reading in
> URLs in PHP or .. isn't there one?

cURL is the best one in my experience, but you have to manage security
yourself. Meaning: Remember to escape/encode data.

http://php.net/manual/en/book.curl.php

> Cheers
> J
> 
> -- 
> 01723 376477
> 
> Cost-free marketing: http://www.flowmarketing.co.uk/
> 
> Affordable marketing guidance for small businesses:
> http://www.amilliontweaks.co.uk/
> 
> Effective marketing services for SMEs: coming soon at
> http://www.surgemarketing.co.uk
> 
> Professional Internet marketing consultancy:
> http://www.johnallsopp.co.uk
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux