How to call PHP script within HTML files

First off : Why the heck should you have/use PHP?
PHP is server side scripting. That means it is parsed on the server before your page loads in the browser. To the visitor and to the search engines PHP scripts are not noticeable. When PHP is combined with RSS feeds, links, blog entries, dynamic portfolio, it is a pretty powerful concept. With PHP you can add other people’s content to your web pages and the search engines will see it and think it is part of your website! (Think of the SEO-thingies). That PHP-parsed content when placed on your web page will essentially become a part of your web site and bring you more traffic. That is why most web developers recommend that you add the content from external sites to your website with PHP instead of Javascript.
Which comes first? Chicken or egg?
The characteristic of HTML that it will only parse / call the Javascript from within the HTML-parsing routine. (Okay, we both know it can call whatever files, but for the sake of this post, let’s pretend it’s that way, okay
). PHP, ASP, JSP, whatever, can call/use HTML tags/files, and not the other way around.
Yes, I know that you can simply “rewrite” everything into php and enclose the real php in <?php … ?>-tag.
But how should you do it if you insist that the file’s extension is still HTML and still can parse the PHP scripts inside? There are some ways:
- Option I
- a: .htaccess for HTM/HTML, IIS
- b: the same as Part I, only using the cPanel instead the hard way
- Option II: SSI Include (more…)
How to recognize a good programmer
How do you recognize good programmers if you’re a business guy?It’s not as easy as it sounds. CV experience is only of limited use here, because great programmers don’t always have the “official” experience to demonstrate that they’re great. In fact, a lot of that CV experience can be misleading. Yet there are a number of subtle cues that you can get, even from the CV, to figure out whether someone’s a great programmer.
Mario Bros-like
Seriously, if you can stand the 7 minutes-and-so of this movie, either you get seriously stressed out or you are just plain…. i dunno… just watch it…
(more…)
Mozilla Firefox 3 - better memory management
From Technews / Betasport
The next version of the world’s most popular alternative Web browser is taking shape, with a more stable Beta 2 released yesterday. Added to the feature set are some new conveniences you may wonder how you managed to do without. Until recently, test versions for the next edition of Firefox — codenamed “Gran Paradiso” — have been interesting but not altogether stable, which isn’t surprising for builds that were clearly labeled “alpha.” But yesterday, Mozilla sprung the trap on the Beta 2 release of Firefox 3.0, and early on, BetaNews noticed the improvements the organization had long been promising now appear to be working more solidly. Unlike Microsoft’s Internet Explorer 7, which shuffled the locations of features and buttons around faster than Bud Abbott playing the old shell game with Lou Costello, Firefox 3.0 looks pretty much the same as it did before. So the changes are subtle, then when you find them, they become profound.
Firefox 3 beta 2 includes some subtle usability improvements in the new Download Manager, which now displays the domain of the site from which the file originated next to each entry. Mozilla also improved its Places bookmarking and history system which is a major new feature of the Firefox 3 browser. While the new Firefox visual styles for Windows and Mac OS X haven’t landed yet, this beta is the first to include the native GTK theme for Firefox’s default icons, buttons, and menu styles in Linux. Even with a few bugs here and there the speed improvement in Firefox 3 is noticeable when compared to Firefox 2, and I for one have had no problems with it crashing. You can check Mozilla’s “what’s new” page for Firefox to read through a list of improvements and fixes in the latest beta, which is available for download here.
No more Bootcamp for Tiger
Apple Inc.’s Bootcamp 1.4 (Beta) is no longer available for download, not for Tiger (OS/X 10.4.x) at least.
Apple has confirmed that Windows partitions created with Boot Camp will continue to work. However, the Boot Camp Assistant, software that sets up and manages Windows partitions, will not. Apple also has said that it will stop delivering driver updates to beta users.
Apple doesn’t have any plans to sell a separate Tiger-only version of Boot Camp!
The good thing is, the new cat of Apple, Leopard, scheduled to release today (Friday, Oct 26th, 2007) has the Bootcamp hardcoded
Something to cheer up? or something to be frowned about?
There’s the complete story at Computerworld
Things to do when you’re a bored developer
Just a list of things you could do in your spare time that might be fun. This list is just in random order and some of these things might just be fads. A lot of these kind of overlap. (more…)












