Solved

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

Posted on 2008-10-02
3
139 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
ID: 22628337
>>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
ID: 31502557
to the point answer...
0
 
LVL 82

Expert Comment

by:hielo
ID: 22629944
glad to help
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
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 one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

920 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

15 Experts available now in Live!

Get 1:1 Help Now