Go to Content
Columbia College Chicago
Collage Tips and Tricks: Archives
Print this Page Email this Page

Collage Tips and Tricks: Archives

Hand-coding Archives

Protect your PHP

Embedded PHP can be stripped from the source of a file if you edit the file using the graphical mode ("Edit") instead of the source view ("Source"). When you add PHP script to the source view of a page for the first time wrap it in <cmignore> tags like this:

<cmignore><?php echo 'test'; ?></cmignore>

Formatting may still get messed up, but your code will remain intact. Code on multiple lines may be re-flowed so that it's all on one line, which means that comments within the PHP should use

/* this notation style */
/* of comments */

instead of

// this notation style
// which will break your PHP
// when these four lines are pushed
// into one line.

About Hand-coding

This page contains an archive of all entries posted to Collage Tips and Tricks in the Hand-coding category. They are listed from oldest to newest.

Many more can be found on the main index page or by looking through the archives.