Closed Thread Icon

Topic awaiting preservation: temp file or template? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=12112" title="Pages that link to Topic awaiting preservation: temp file or template? (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: temp file or template? <span class="small">(Page 1 of 1)</span>\

 
butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

posted posted 03-15-2002 00:12

I've coded (PHP) a site that automatically grabs any files in the "includes" folder and formats the name of the file and adds it as an option to a select box that's used as part of the main navigation. This was done so the site owner could drop any content related files into the include folder and they would automatically become available in the nav dropdown.

So that they were able to display image files as a content include I've coded it with getimagesize() to get the height and width. I have also made a template to echo the info into an image tag to include in the final display in the browser (I hope that made sense).

My question is, would I be better off using PHP to generate a temp file and write the necessary image tag in the temp file for inclusion so I don't have to have a separate directory with "wrapper" files, or am I just as well off the way I'm currently doing this.

Thanks

-Butcher-

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 03-15-2002 05:42

I'd say you're probably safe unless the number of items gets WAY out of hand.

« BackwardsOnwards »

Show Forum Drop Down Menu