On Wed, 09 Feb 2005 16:17:28 GMT Senator Jay Billington Bulworth wrote:
>> In an attempt to try out some things with php, I have run into a new
>> snag. The output file is pure text.
>> Basically it's a simple photo gallery using <ul> links to show various
>> thumbnails.
>> In turn, the thumbnails show a bigger image.
>> All on the same page.
>> My only possible thinking is that it has something to do with the
>> array notation.
>> $image =array ( );
>> $image[101]="name.jpg";
> This should work, for example:
> <?php
> $image = array();
> $image[101] = "name.jpg";
> echo $image[101];
It's a bit more involved than just placing an image on the page.
> ..should output name.jpg.
>> Is it correct to say $image = array(999); ??
>> As to define 999 items? as in javascript?
> No, in PHP, this would define an array with only one element, the
> integer
> 999.
Wasn't sure. Thanks.
>> Instead of using the normal 0 starting point, as I figure this is not
>> necessary.
>> It has worked up to a point, then all of a sudden I get the text
>> output.
> What exactly is the text output that you're getting?
Precisely the same text as the input file.
>> Stay informed about: When output file shows only text...what's the problem?