From: jbreker at sympatico dot ca
Operating system:
PHP version: 4.3.2
PHP Bug Type: Feature/Change Request
Bug description: Shell like 'for arg in [list]' loop
Description:
------------
Right now I am executing shell scripts (like the one below) in order to
put pictures up on my site. I would prefer to do this entirely in php
code. I looked at the foreach loop and at some filesystem functions but I
can't see any combination working when you don't know the filename.
sample shell script example code:
for file in *.jpg
do
echo "<a href=\"$file\"><img src=\"$file\"/></a><br/>"
done
--
Edit bug report at http://bugs.php.net/?id=24250&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=24250&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=24250&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24250&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24250&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24250&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24250&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24250&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24250&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24250&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24250&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24250&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24250&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24250&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24250&r=gnused