align-toparrow-leftarrow-rightbackbellblockcalendarcamerachatcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-crosscrosseditfacebookglobegoogleimagesinstagramlocation-pinmagnifying-glassmailmoremuplabelShape 3 + Rectangle 1outlookpersonplusImported LayersImported LayersImported Layersshieldstartwitteryahoo

Re: [houston-php] Mix html with php vs php string.

From: user 1.
Sent on: Wednesday, October 13, 2010 9:55 PM
Hey Sean, I wrote a script that allows me to import my php scripts and it returns HTML markup with styling. This allows me to paste the php/markup in various blog post, emails etc with color coding for easier references. it's not perfect thought - but it gets the job done.

It all comes down to header size and non-associative modifying.
You're going to get the same result in either implementation but the speed in which you retrieve the results will vary based on the size of your script and you should always code with the expectation that it will be used and modified by someone other than yourself and your application and build it portable.

We're all giving you personal preferences with a couple of universally accepted optimizations but it's up to you and the project ultimately. Just keep in mind

1. Header Size.
2. Performance.
3. Portability.
4. Ease of modification by third party.

Brandon R. Bissoon
Multi-Platform Developer / UX Architect

"A simple man believes anything, but a prudent man gives thought to his steps." (Proverbs 14:15)

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy