php dir script

Sharky Forums


Results 1 to 5 of 5

Thread: php dir script

  1. #1
    Hammerhead Shark
    Join Date
    Feb 2001
    Location
    Columbus, Ohio
    Posts
    1,277

    php dir script

    I'm trying to get a php directory listing script working but am having some troubles. The first directory will come up fine, it'll store any directories you click on into the $path variable, but nothign will show up.

    Here is the code http://64.53.173.214/test.phps
    here is the output http://64.53.173.214/test.php

  2. #2
    Ursus Arctos Moderatis Grizzly's Avatar
    Join Date
    Sep 2000
    Location
    Providence, RI USA
    Posts
    3,077
    The logic appears to be fine...which is strange. The only thing I can really say is I'd double-check the permissions on those subdirectories.

  3. #3
    Reef Shark
    Join Date
    Feb 2001
    Location
    Minot, ND
    Posts
    387
    hehe, damn anfpunk asking questions....

    http://blahd.homeip.net/dir.php

    and http://blahd.homeip.net/dir.phps

    this shows what the perms are for folders and files inside of the /var/www/ directory. You see anything wrong grizz?
    http://blahd.homeip.net/perms
    My Site -=[http://hzrd.us]=-
    Puter #1
    Athlon XP 2600+ @ 2.2GHz 11.5x190 | 2x512mb Corsair c2 3200 | Radeon 9800 Pro |Asus a7nx8 | WD 120GB/ Seagate SATA 120GB x 2


    Puter #2
    T'bird 1000@1224 | 768 Crucial PC133 | GeForce2 MX 32mb eVGA | Abit KT7a-Raid | 40gb ata/100 WD | Sound Blaster Live!

  4. #4
    Tiger Shark andy3109's Avatar
    Join Date
    Sep 2001
    Location
    Syracuse
    Posts
    607
    you have to much money . Nice setup though. Instead of taking up room with two monitors, keyboards, and mice, get the adaptor that you can plug only one of each into. Its a switch and all you have to do is press the switch and your over to the other computer. Makes things alot cleaner and saves power ($$)
    -andy
    AMD 1600+ @ 1.90ghz - Mushkin PC2100 CAS2 KR7A-RAID Mobo - Geforce III Ti200
    75GB WD and 30GB Maxtor (both 7200RPM)
    Two smart fan 2 & two generic 80MM fans
    19' flat screen
    52x cd rom - 12x Burner floppy - Tape, bolts, clench grip
    and most importantely..your mom
    IM PART OF THE COOLERS GUILD, I HAD NO IDEA!

  5. #5
    Hammerhead Shark
    Join Date
    Feb 2001
    Location
    Columbus, Ohio
    Posts
    1,277
    php needed the full path for most of the functions like is_file. Now it's working but my dns is down til tuesday prolly since my friend just moved and I have to update the main dns box.

    I will never go back to 1 monitor ever again. I love the flexibility of not needed to hit scroll lock or some other key to switch with a kvm. I have too many apps open a lot of the time and like to be able to see everything easily. Though I'll never go to 3 monitors anytime soon.) I'd prolly get a kvm then.
    Last edited by anfpunk; 12-16-2002 at 03:31 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •