i am a newbie.. having a few small doubts..
Posted: Tue Jun 19, 2007 11:23 am
1. I learned that PHP is an interpreted language. I agree unlike C,java,cpp there is no machine code that is generated and machine code will run.
but interpreting means line by line execution.
so, say i have a syntax error on line 232 then the first 231 lines should give the corresponding output. and the line after 232( 233 onwards also should give thier corresponding outputs( i mean every thing except 232 should be executed if other lines are not depending on 232nd line) but without executing even a single line it gives syntax error(unexpected bla..bla..) why so???
2. what is the difference between mysql_fetch_rows() and mysql_fetch_array()??
3. say i have a file included.php included on 36th line of temp.php
then there will be php start tag in both the files. when i inclued included.php the senerio will be some thing like
<?php
//<36th line>
<?php
?>
?>
then it should show an error [s]becoz[/s] because there are php tags inside php tags. but it doest. why???
but interpreting means line by line execution.
so, say i have a syntax error on line 232 then the first 231 lines should give the corresponding output. and the line after 232( 233 onwards also should give thier corresponding outputs( i mean every thing except 232 should be executed if other lines are not depending on 232nd line) but without executing even a single line it gives syntax error(unexpected bla..bla..) why so???
2. what is the difference between mysql_fetch_rows() and mysql_fetch_array()??
3. say i have a file included.php included on 36th line of temp.php
then there will be php start tag in both the files. when i inclued included.php the senerio will be some thing like
<?php
//<36th line>
<?php
?>
?>
then it should show an error [s]becoz[/s] because there are php tags inside php tags. but it doest. why???
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:11. Please use proper, complete spelling when posting in the forums. AOL Speak, leet speak and other abbreviated wording can confuse those that are trying to help you (or those that you are trying to help). Please keep in mind that there are many people from many countries that use our forums to read, post and learn. They do not always speak English as well as some of us, nor do they know these aberrant abbreviations. Therefore, use as few abbreviations as possible, especially when using such simple words.
Some examples of what not to do are ne1, any1 (anyone); u (you); ur (your or you're); 2 (to too); prolly (probably); afaik (as far as I know); etc.
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:2. Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.