How to call PHP script within HTML files

Catagories: CSS / Webdesign, GUI, Operating system, PHP, Programming, Windows, cPanel / February 26th, 2008

Will code HTML for food - God bless you!

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 :D ). 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…)

When I ask you to listen

Catagories: Life / February 16th, 2008

Found this somewhere on the internet… :)

WHEN I ASK YOU TO LISTEN*
*Anonymous: “Listen” was found in David Bailey and Sharon Dreyer’s book, Care of the mentally ill (1977)

When I ask you to listen to me
and you start giving advice and you have not done what I asked.

When I ask you to listen to me
and you begin to tell me why I shouldn’t feel that way, you are trampling on my feelings.

When I ask you to listen to me
and you feel you have to do something to solve my problem you have failed me, strange as that may seem.

Listen! All I asked, was that you listen not talk or do
- just hear me.

Advice is cheap;
ten cents will get you both Dear Abby and Billy Graham in the same newspaper, and I can do for myself; I’m not helpless.

When you do something for me that I can and need to do for myself,
you contribute to my fear and weakness.

But, when you accept as a simple fact that I do feel what I feel, no matter how irrational,
then I can quit trying to convince you and can get about the business of understanding what’s behind this irrational feeling.

And when that’s clear, the answers are obvious
and I don’t need advice.

Irrational feelings make sense
when we understand what’s behind them.

Perhaps that’s why prayer works, sometimes,
for some people because God is mute and he doesn’t give advice or try to fix things.

He “just listens and lets you work it out for yourself.”
So please listen and just hear me.

And if you want to talk, wait a minute for your turn; And I’ll listen to you.


no comments yet 271 pageview(s)

How to recognize a good programmer

Catagories: CSS / Webdesign, DTP, Design, Desktop, GUI, Life, Operating system, Programming / February 7th, 2008

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.

(more…)


4 comments 466 pageview(s)