All the examples on this page can be found in the php sample site
Open/Read Files in Fusion using PHP
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.
This line will result in the following in the browser when published
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.
The above format will looks like this:
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:
The results look like this in the browser:
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
|