[Gambas-user] which is the most close to file_get_contents ?

Bruce Steers bsteers4 at gmail.com
Sat Dec 12 20:23:29 CET 2020


On Sat, 12 Dec 2020 at 19:14, Benoît Minisini <g4mba5 at gmail.com> wrote:

> Le 11/12/2020 à 18:15, PICCORO McKAY Lenz a écrit :
> > in php we have too many generic helpers, functions etc.. so maybe php
> > programers are very lazy.. but php have those easy touse things like
> > https://www.php.net/manual/en/function.file-get-contents.php
> >
> > it does not care if are a file or url.. just use it and get json output..
> >
>

Bare in mind though that all php functions happen server-side
you could not use it to load a file from your hard drive, just a file path
without a http:// url prefix in your web app, but that technically is still
a URL.

so it does care really :)

BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20201212/45d4e30b/attachment.htm>


More information about the User mailing list