Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2008-10-02
3
Medium Priority
?
147 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 82

Accepted Solution

by:
hielo earned 2000 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

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 …
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 …
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 …

715 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