Chit Chat For all general off topic chat on GTcars.

Anyone firmiliar with PHP?

Thread Tools
 
Search this Thread
 
Old Sep 12, 2005 | 01:30 PM
  #1  
meissen's Avatar
Thread Starter
GTcars - Post God !
 
Joined: Sep 2003
Posts: 6,032
From: Macomb, Michigan
Rep Power: 947
meissen has a spectacular aura aboutmeissen has a spectacular aura aboutmeissen has a spectacular aura about
Anyone firmiliar with PHP?

I can't figure out why this won't work, I found it off of http://px.sklar.com/ and then tweaked it by adding the loop to display all the files in the array...

<?
/*

This script read the filenames from a specified directory and returns them in an array.
The number of filenames is also returned.

Copyleft(L) 1999 Eric Persson, eric@persson.tm, http://www.persson.tm/scripts/

*/

Function searchdir($basedir)
{
global $filelisting, $number;
unset($filelisting);
unset($number);

$handle=opendir($basedir);
while ($file = readdir($handle)) {
if ($file=="." or $file=="..") {
** else {
$filelisting[]="$basedir$file";
**;
**;

$number=sizeof($filelisting);
**;


searchdir("./");
for ($i = 0; $i <= $number; $i++) {
echo $filelisting[$i];
**
echo $number; //echos the size of the array

?>

but when I run this file on my image directory, it doesn't echo anything.
Old Sep 12, 2005 | 01:33 PM
  #2  
meissen's Avatar
Thread Starter
GTcars - Post God !
 
Joined: Sep 2003
Posts: 6,032
From: Macomb, Michigan
Rep Power: 947
meissen has a spectacular aura aboutmeissen has a spectacular aura aboutmeissen has a spectacular aura about
Why is the closing bracket for {** considered censored by two ** on here, Chad?
Old Sep 12, 2005 | 02:15 PM
  #3  
paarman97maro's Avatar
GTcars - Post God !
 
Joined: Apr 2005
Posts: 16,092
From: Holmen, WI
Rep Power: 1088
paarman97maro will become famous soon enoughpaarman97maro will become famous soon enough
php is one of the the only codes i didnt take time to learn...kinda wish i would have so I could help you here
Old Sep 12, 2005 | 04:03 PM
  #4  
Mike Jones's Avatar
GTcars - Post God !
iTrader: (1)
 
Joined: Jan 2002
Posts: 13,249
Rep Power: 0
Mike Jones street rep is low. keep goingMike Jones street rep is low. keep goingMike Jones street rep is low. keep goingMike Jones street rep is low. keep goingMike Jones street rep is low. keep goingMike Jones street rep is low. keep goingMike Jones street rep is low. keep going
Originally Posted by meissenation
Why is the closing bracket for {** considered censored by two ** on here, Chad?
What's it suppose to say because that doesn't make any sense.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
mz.pasillas_o7_27_07
honda / acura
0
Nov 8, 2008 09:47 PM
kuba
Chit Chat
46
Sep 27, 2005 11:20 AM
p51mustang
Honda Mailing List
0
Jun 20, 2005 06:37 PM
meissen
Chit Chat
6
Feb 4, 2005 11:50 PM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 



All times are GMT -4. The time now is 02:57 AM.

Page generated in 0.23171 seconds with 7 queries