Re: Novice question
| From: | Rico Secada | Date: | Sun, 30 Oct 2011 21:28:41 +0000 |
| Subject: | Re: Novice question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-315558@lists.php.net to get a copy of this message | ||
On Sun, 30 Oct 2011 17:24:07 -0000
"John Allsopp" <john@johnallsopp.co.uk> 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
>