Re: Glob issue

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

 



On Wed, Jul 15, 2015 at 5:01 PM, The Doctor <doctor@xxxxxxxxxxxxxxxxx>
wrote:

> REcently in our php error log we have been seeing
>
> [15-Jul-2015 07:16:39 America/Edmonton] PHP Fatal error:  Call to
> undefined function glob() in /var/www/docs/foreachtest.phtml on line 2
>
>
> And  the foreachtest.phtml read
>
>
> <?php
> foreach (glob("*.html") as $filename) {
>     echo "$filename size " . filesize($filename) . "\n";
> }
> ?>
>
>
> What is happening?
>
> Using php 5.6.11 on Apache 2.2 latest.
>
> --
> Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@
> nl2k.ab.ca
> God,Queen and country!Never Satan President Republic!Beware AntiChrist
> rising!
> http://www.fullyfollow.me/rootnl2k  Look at Psalms 14 and 53 on Atheism
> Abuse a man unjustly, and you will make friends for him.  -Edgar Watson
> Howe
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Sounds like a bad install. I would suggest you recompile/install PHP, fixes
such issues most of the times (missing core functionality).

[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