Yesterday I yum installed these:
glibc-common.i386 2.3.4-2.54
glibc.i686 2.3.4-2.54
glibc-headers.i386 2.3.4-2.54
glibc-devel.i386 2.3.4-2.54
And about ten minutes ago I recompiled PHP with identical configure
options as before. And this time the glob function is inside PHP.
Phew.
Hopefully someo
Hi Louis,
Yes, I have read that glob is only available for PHP > 4.3 and I am
using version 5.2.1.7
# /usr/local/bin/php -v
PHP 5.2.17 (cli) (built: Feb 16 2011 15:41:35)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
with Zend Optimizer v3.
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 :
> Hi everyone,
> I am very new to PHP and trying to learn the glob() function. I copied
> the example on php.net :
>
> foreach (glob("*.txt") as $filename) {
> echo
Hi everyone,
I am very new to PHP and trying to learn the glob() function. I copied
the example on php.net :
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 CentO
4 matches
Mail list logo