Re: Please help with glob
| From: | Louis Huppenbauer | Date: | Tue, 05 Apr 2011 06:25:48 +0000 |
| Subject: | Re: Please help with glob | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-312265@lists.php.net to get a copy of this message | ||
Hi there
Since glob is actually a part of the core - Are you absolutely sure
that you're running PHP > 4.3
2011/4/5 Al Mangkok <almangkok@gmail.com>:
> Hi everyone,
> I am very new to PHP and trying to learn the glob() function. I copied
> the example on php.net :
>
> <?php
> foreach (glob("*.txt") as $filename) {
> echo "$filename size " . filesize($filename) . "\n";
> }
> ?>
>
> When I ran the script, I got this error message:
> Fatal error: Call to undefined function glob() in
> /usr/local/apache2/htdocs/hrms/globtest.php on line 2
>
> I am running PHP 5.2.17 on CentOS 4.8 . How do I compile PHP to get
> the glob function in ?
> Please help.
>
>
> --
> al
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>