Solved

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

Posted on 2008-10-02
3
140 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

778 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