|
|
|
 |

December 6th, 2003, 02:38 AM
|
 |
Major General
|
|
Join Date: May 2002
Location: Linghem, Östergötland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: PHP Help Needed
Will check now.
Edit1:
This is an included file, right.
As I get errors for missing definition of index, numitems, full etc....
Will check further..
Edit2:
Copying the script to my server and the files in the directory (to be sorted) and removing inclusions of header and footer, gives too many errors to even start debugging.
If I'll dig into I ought to have more...
I'll skip all else and just look at the sorting.
[ December 06, 2003, 00:55: Message edited by: Ruatha ]
|

December 6th, 2003, 02:53 AM
|
 |
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
Re: PHP Help Needed
I don't get any errors about missing definitions... that, and I don't think it is necessary to explicitly define variables separately to just using them in PHP.
The file is not included in anything.
[ December 06, 2003, 00:54: Message edited by: Imperator Fyron ]
|

December 6th, 2003, 02:59 AM
|
 |
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
Re: PHP Help Needed
Note how there are no errors when it is running under a Linux environment (on the se.net server)...
|

December 6th, 2003, 03:05 AM
|
 |
Major General
|
|
Join Date: May 2002
Location: Linghem, Östergötland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: PHP Help Needed
Ok, then I can't explain all the errors.
Anyway, this sorts the names right It seems;
http://pbw.ath.cx/sort.txt
test
http://pbw.ath.cx/sort.php
And that's kind of strange as I haven't altered anything significant.
Can it be the multiarray that messes things up??
Edit: Ahh, I run win server...
[ December 06, 2003, 01:07: Message edited by: Ruatha ]
|

December 6th, 2003, 03:08 AM
|
 |
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
Re: PHP Help Needed
Sorting a normal array is not a problem. I could just call the asort() function if that were the case. The problem is in sorting a 2D array.
|

December 6th, 2003, 03:09 AM
|
 |
Major General
|
|
Join Date: May 2002
Location: Linghem, Östergötland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: PHP Help Needed
What I've done is to define filenames[array] at the same time as Filearray in the beginning.
And started the counter at 1 instead of zero.
As this work I can't be of any help in rooting out your problem, sorry.
[ December 06, 2003, 01:10: Message edited by: Ruatha ]
|

December 6th, 2003, 03:10 AM
|
 |
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
Re: PHP Help Needed
Quote:
Edit: Ahh, I run win server...
|
Windows and Linux treat code rather differently at times. 
|
Thread Tools |
|
Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|