Re: [PHP] Re: Replacing datafile with array

2001-09-18 Thread _lallous
Man, you can't do echo Array! you have to walk through an array! dump the array and see its content via: var_dump($retVal) for example, refer yourself to the array functions in PHP's manual, "Daniel alsén" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hmm.

RE: [PHP] Re: Replacing datafile with array Sorry... .)

2001-09-18 Thread Daniel Alsén
Sorry, It seems like every time i posted a question i was able to solve it myself :) Something strange going on in my problem solving part of the brain. I got the whole script to work. The navigation part solved itself when i moved the 'cleaning up' part to the very end of the script. Still, if

RE: [PHP] Re: Replacing datafile with array II

2001-09-18 Thread Daniel Alsén
Woops! I actually got the listing to work by replacing $photos = file($retVal); with $photos = $retVal; :) But, there´s still a problem. The script doesn´t seem to be able to use the navigation part (print out the next and previous links). That part of the script looks like this: next pa

RE: [PHP] Re: Replacing datafile with array

2001-09-18 Thread Daniel Alsén
Hmm... it still doesn´t work. If i echo $retVal i just get the word 'Array' (the same number of times that the number of files in the directory). If i echo $file i get the file listing...however, it doesn´t pass on the content to the rest of my script. Maybe someone could help me out with the