gotFusion.com....... Where your adventure begins
Full Service Web HostingNetObjects Fusion 7 Websites Portal

 


 

On This Page

Read Files in Fusion

Display Image Files

All the examples on this page can be found in the php sample site

Open/Read Files in Fusion using PHP

In This Tutorial

PHP Tutorial Home

The Essentials

PHP in Fusion

Reading Files

Variables

Code Flow Control

To read or open a file in Fusion using PHP code, you would first start by drawing a text box as we have done in an earlier lesson.

 

 

There are many ways to read and format text files, This is a simple example

This line will result in the following in the browser when published

Results of PHP code above

Take advantage of NOF's formatting capabilities here too. Shortening the size of the text box will reduce the size of the file wrapping in the browser display.

Size of textbox will dictate the wrapping of the text file

The above format will looks like this:

Same results with tight wrap boundaries

A note, PHP has many many text formatting functions to provide better formatting than is displayed here. These are just the basics to get you going.


Display Images in Browser

To display images, you can to do the following:

Show an image

The results look like this in the browser:

Results of above PHP code

OK, so this is good, but what would be REALLY great would be if you could store/retrieve the text information or image and store it in a variable..... HMMMMM, well, YOU CAN by storing the filename or image name in a variable!

Next Lesson - Variables

 

Did you find this tutorial useful? Would like to view all of our tutorials and support pages?
Join the NetObjects Fusion Users Group Community

View the PREVIOUS page in this tutorial

Return to the TOP of this page

View the NEXT page in this tutorial


|  Fusion  |  Web Design  |  Hosting  |  Resources  |  gotFusion Store  | 

Problems with this page?  

All content copyright © 2002 gotFusion LLC.  The name gotFusion and the gotFusion ® logo are registered trademarks of gotFusion LLC
Copyright, legal notice & privacy statement