IT dragons tamed since 2006 (with 732 solutions and growing)

[login]
[join]

your IP[54.162.234.109]




If you thought this solution was helpfull, please login and vote. Not a member? click here

ID735
TitleGLOB_BRACE breaks non-GNU systems
Byjohn
Keywordsphp glob
CategoryPHP
Votes0
Views119
Score119
Date2017-01-17
Body
GLOB_BRACE breaks non-GNU systems

If you are running Solaris or BSD, glob brace does not work

Change this:

$imagesJC = glob($imagesDir . '*.{jpg,jpeg,png,gif}', GLOB_BRACE);

to this:

$imagesJC = glob($imagesDir . '*.{jpg,jpeg,png,gif}',(defined('GLOB_BRACE') ? GLOB_BRACE |
GLOB_NOSORT : GLOB_NOSORT) );
SharediggDigg this solutiondel.icio.usPost to del.icio.usSlashdotSlashdot it!email to a friend
PrintPrint This Solution Print
If you thought this solution was helpfull, please login and vote. Not a member? click here


Latest News

Thanks to Dave for hosting this site!

Paying the Rent



Advanced Search:

Choose body, keywords, title, or all to include in search 
words to include in search 
and(+)

Choose body, keywords, title, or all to include in search 
additional words to include in search 
not(-)

Choose body, keywords, title, or all to exclude in search 
words to exclude from search 


catagory
order by






diggDigg Dracko
del.icio.usPost to del.icio.us
SlashdotSlashdot us!




Don't forget to vote!
Powered by John Core
Bye!

Dracko by John Core

me

View John Core's profile on LinkedIn


Certifications
security logo saber ccsa logo ccna-logo hbss veritas

Technologies
oracle_logo
solaris_logo linux-logo openstack_logo vbox_logo splunk storagetek_logo sun_logo oraclevm_logo brocade_logo bsd_logo

Languages
c-logo bash-logo php-logo

Employers
PlanetPayment Medecision AWi PennStateHershey DISA DLA cim Sun

Consulting
KMBS PNC FBI CCS PTD Sentinel