All the examples on this page can be found in the
"phpinfusion.php" page of the sample site
How do I get my PHP code INTO Fusion?
To add PHP code to a NOF page, you need to enter it as "HTML" code. (Really, it means "Enter extra code of ANY type here, not just HTML, so don't get hung up on the HTML name
Draw a text box to start
Then you can enter PHP by clicking the HTML
or just pressing CTRL-T when inside the textbox
You can find your PHP code by the icons inside the textbox!
Other cool stuff:
PHP code can be placed in a textbox in more than one location
I can even embed HTML code inside PHP code.
Suppose I want to use NOF's textbox formatting capabilities, you can do that too by simply making sure the PHP code is inside a formatted area. To do this, place a few spaces in the text box, highlight & format, then back up (using the left arrow) into the formatted area and the CTRL-Ting the PHP code
When published, this box will bring a line of text that looks like this, you didn't have to repeat all the HTML font/size/space stuff:
Lesson Three - Reading Files and Images
Did you find this tutorial useful? Would like to view all of our tutorials and support pages?
Join the NetObjects Fusion Users Group Community