Solved

Where does a static HTML and PHP file start to be interpreted?

Posted on 2008-10-02
3
138 Views
Last Modified: 2010-04-21
Hi there;

It's very noob to ask this but i can't help asking this...

I write simple appcliations with C and Java...The code is compiled and intepreted from its main at start...

So, for a webpage either HTML or PHP or any tech. where does the code start to be interpreted? I mean i know the answer you will say from the very top...But are there any exceptions you can tell me?

I am using Apache by the way...

Thanks in advance...
0
Comment
Question by:jazzIIIlove
  • 2
3 Comments
 
LVL 82

Accepted Solution

by:
hielo earned 500 total points
Comment Utility
>>I mean i know the answer you will say from the very top
Right. In PHP there is no "main()" like in C. HTML is not even an programming language. It is a markup language. It is not "active" (no functions, loop contructs, etc).

>>...But are there any exceptions you can tell me?
No "exception" per se, but execution begins at line 1. If line one has "include" statement, and the included file has inline code (as opposed to just function definitions), then the inline code of the included file will be executed. Once all that inline code is executed, then it will continue with line 2 of the "original" file.
0
 
LVL 12

Author Closing Comment

by:jazzIIIlove
Comment Utility
to the point answer...
0
 
LVL 82

Expert Comment

by:hielo
Comment Utility
glad to help
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
What is the normal amount of queries 5 67
PHP in Apache server 20 81
Getting attribute Values using xslt 4 34
Stupid git question 2 17
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now