Chit Chat For all general off topic chat on GTcars.

Anyone firmiliar with PHP?

Thread Tools
 
Search this Thread
 
Old 09-12-2005, 01:30 PM
  #1  
GTcars - Post God !
Thread Starter
 
meissen's Avatar
 
Join Date: Sep 2003
Location: Macomb, Michigan
Posts: 6,032
Rep Power: 878
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.
meissen is offline  
Old 09-12-2005, 01:33 PM
  #2  
GTcars - Post God !
Thread Starter
 
meissen's Avatar
 
Join Date: Sep 2003
Location: Macomb, Michigan
Posts: 6,032
Rep Power: 878
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?
meissen is offline  
Old 09-12-2005, 02:15 PM
  #3  
GTcars - Post God !
 
paarman97maro's Avatar
 
Join Date: Apr 2005
Location: Holmen, WI
Posts: 16,092
Rep Power: 1018
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
paarman97maro is offline  
Old 09-12-2005, 04:03 PM
  #4  
GTcars - Post God !
iTrader: (1)
 
Mike Jones's Avatar
 
Join Date: 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.
Mike Jones is offline  
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
mz.pasillas_o7_27_07
honda / acura
0
11-08-2008 09:47 PM
kuba
Chit Chat
46
09-27-2005 11:20 AM
p51mustang
Honda Mailing List
0
06-20-2005 06:37 PM
meissen
Chit Chat
6
02-04-2005 11:50 PM

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


Quick Reply: Anyone firmiliar with PHP?



All times are GMT -4. The time now is 03:07 AM.

Page generated in 0.07139 seconds with 13 queries