|
|||
check script ni sat.....
hello guys...ni aku try buat image gallery kat web page aku ni..malang sekali tak berjaya....
aku try ambil semua gambar dalam folder d:\data.....but bila aku run script tu...alu dapat error ni: Warning: sort() expects parameter 1 to be array, null given in C:\xamp\xampp\htdocs\projek2\gallery.php on line 19 Warning: Invalid argument supplied for foreach() in C:\xamp\xampp\htdocs\projek2\gallery.php on line 20 <?php echo" <html> <head><title>Image gallery</title></head> <body>"; $dir="d:/data/"; $do=opendir($dir); while($filename=readdir($do)){ $filepath=$dir.$filename; if(is_file($filepath) and ereg("\.jpeg$",$filename)){ $gambar[]=$filepath; } } sort($gambar); echo"Senarai Gambar Dalam Gallery Kami...<br>"; foreach($gambar as $listgambar){ echo"<img src='$listgambar'><br>"; } ?> </body> </html> aku harap korang dapat tolong aku.... |
|
|||
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sms script | zumaidi | Website Programming | 10 | 23-02-2007 08:48 AM |
| help Me Check this script | slier | Website Programming | 2 | 13-11-2006 10:10 PM |
| script | nurulmajdi | Website Programming | 12 | 16-02-2004 04:03 PM |
| Help Me With My First Php Script !!!! | mya | Website Programming | 17 | 24-01-2004 06:12 PM |
| cgi script | Seman | Website Programming | 6 | 16-09-2003 05:46 PM |
All times are GMT +8. The time now is 01:26 AM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.










Linear Mode

