| Sponsored Links |
| | #1 |
![]() | Webman gave me a little php script that will display the contents of a folder in a nice gui (thanks for that webman). When i use this on an Xampp install it works a treat when i use it on a IIS install i doesn't work. I was wondering if anyone can point out as to why not. I have posted my php.ini file and a copy of the script. Thanks allot |
| |
| | #3 |
![]() | |
| |
| | #4 |
![]() Join Date: Dec 2006
Posts: 754
Thanks: 13
Thanked 9 Times in 9 Posts
Rep Power: 9 | Is PHP installed for IIS is the obvious question? Acid test: <?php phpinfo(); ?> |
| |
| | #5 |
![]() | Yer its installed (that is why i have attached the php config file) and the server running a Joomla site. Thanks Z |
| |
| | #6 |
![]() Join Date: May 2006
Posts: 137
Thanks: 4
Thanked 2 Times in 1 Post
Rep Power: 6 | What error/s are you getting? |
| |
| | #7 |
![]() | just a blank screen cheers z |
| |
| | #8 |
![]() Join Date: Mar 2008 Location: London
Posts: 173
Thanks: 8
Thanked 12 Times in 11 Posts
Rep Power: 4 | Nifty script btw - all the images are encoded inside it and generated on the fly. Your fix: Code: in php.ini short_open_tag = [Off to On] |
| |
| | #9 |
![]() Join Date: Nov 2005 Location: Bishop Auckland, County Durham
Posts: 5,523
Thanks: 90
Thanked 79 Times in 63 Posts
Blog Entries: 1 Rep Power: 35 | @Domino - Oi! Just to make it clear I didn't create the script; I found it a while ago somewhere on the web, and haven't been able to find or remember the original source. |
| |
| | #10 | ||
![]() | Quote:
Quote:
| ||
| |
| | #11 |
![]() | |
| |
| | #12 |
![]() Join Date: Dec 2006
Posts: 754
Thanks: 13
Thanked 9 Times in 9 Posts
Rep Power: 9 | Errr, this relating to what? arrays? mysql? the ini file? some code snippet might be handy? |
| |
| | #13 |
![]() | |
| |
| | #14 |
![]() Join Date: Dec 2006
Posts: 754
Thanks: 13
Thanked 9 Times in 9 Posts
Rep Power: 9 | Ah right, didn't spot that. I would simply traverse the array starting from the other way around. Without actually installing or testing it I'd say you need to re-arrange the loop: for(var i=a;i<b&&i<(_files.length+_dirs.length);++i) Also while this is a nice little script, variable naming is pretty ugly and I cannot be bothered to decypher it. O_o You'dd need to make the predicate become the intialisation i=_files.length + _dirs.length and the addition become subtraction: i-- and i>0 but not sure what the i<b is all about. Thank god I rolled my own piece of PHP for doing this sort of thing :] Edit: Actually, from delving a little more seems he's already rolled a sort function for different fields (name, size, date e.t.c) in there. Why do you actually need to modify anything? or does it need to be descending by default? o_O Last edited by Friez; 15-08-2008 at 02:58 PM.. |
| |
| | #15 |
![]() | That post up there didn't mean to sound sharp |
| |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP script to downlod mail | russdev | Web Development | 2 | 20-01-2008 04:22 PM |
| Simple PHP script for notes about students? | ChrisS | Scripts | 1 | 29-11-2007 11:25 AM |
| PHP IMAP check mail script | claridentech | Web Development | 2 | 22-04-2007 03:47 AM |
| PHP flat file database script | ajbritton | Web Development | 3 | 26-10-2006 08:51 PM |
| Looking for PHP blog script which does not require database | ajbritton | Web Development | 9 | 10-10-2006 08:26 AM |
« Forum / message board that supports LDAP / AD authentication
|
Devizes Booking System - Limit to x bookings »
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search Thread |
|
|








