[Gllug] PHP Guru's

Sunny Aujla sunnyfedora99 at gmail.com
Mon Jul 19 14:06:01 UTC 2010


Hi All,

Thank you for everyone contributing and assisting me.

I finally wrote my system.  What i have done is created a php script and
added it to the crontab to run every few hours.  For all of you who are
interested how I achieved this, please email me and i can attach a sample
code for you.

Regards,
Sunny


On Mon, Jul 19, 2010 at 12:19 PM, <salsaman at xs4all.nl> wrote:

> On Mon, July 19, 2010 10:39, Tethys wrote:
> > --------
> >
> > salsaman at xs4all.nl writes:
> >
> >>I don't know if this is of any use, but I wrote a C function to check
> >> free
> >>space for the volume containing a given directory (the directory is
> >>created temporarily if it does not exist).
> >
> > Bleurgh! Why not just recursively try statvfs(2) ascending higher up
> > the directory tree until you find one that actually exists? No need to
> > create a temporary directory for that. But if you absolutely must create
> > a directory, can I introduce you to mkdir(2) and rmdir(2)?
> >
> > Your use of system("/bin/mkdir ...") and system("/bin/rm ...") makes my
> > skin crawl :-)
>
> "/bin/mkdir -p" and mkdir() do two different things. As do "/bin/rm -rf"
> and rmdir() [ok, so the latter is not really applicable here].
>
> Yes, I suppose I could have done something more elegant like you suggest,
> but when singlehanedly coding 54 man years of code in just 8 years*, quick
> and ugly cut and paste often beats slower and elegant :-)
>
>
> *https://www.ohloh.net/p/lives (estimate)
>
>
> Cheers,
> salsaman
> http://lives.sourceforge.net
>
>
>
>
> >
> > Tet
> > --
> > Gllug mailing list  -  Gllug at gllug.org.uk
> > http://lists.gllug.org.uk/mailman/listinfo/gllug
> >
> >
>
>
> --
> Gllug mailing list  -  Gllug at gllug.org.uk
> http://lists.gllug.org.uk/mailman/listinfo/gllug
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20100719/26fc0f51/attachment.html>
-------------- next part --------------
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug


More information about the GLLUG mailing list