New at PHP basic questions.
Posted: Fri May 15, 2009 4:53 pm
Hi all!
this is my first post and im very new at PHP.
i have taken the liberty of checking out some PHP tutorials more specifically at http://www.php.net/tut.php
Im a bit confused on how PHP works, is it code that goes inside of .HTML or .PHP pages? like Java Script and VB Script? or does it sit on the server side and is it called into use by a piece of code in the .HTML or .PHP page?
can anyone just look at your PHP code? i see PHP can actually open a connection to a SQL database and read and write to it, how come people cant just Right click > view source, and steal the login information to your SQl database? i think im missing something important here lol
IF that's confusing. Heres what i was trying to do, i went online and doenloaded some sample PHP code examples and tried to implement them to see if they work but what happened was the PHP code was just displayed as plain text when i tried to navigate to the page.
I am using Apache and PHP5 is installed by my shared hosting provider.
Thanks in advance guys.
this is my first post and im very new at PHP.
i have taken the liberty of checking out some PHP tutorials more specifically at http://www.php.net/tut.php
Im a bit confused on how PHP works, is it code that goes inside of .HTML or .PHP pages? like Java Script and VB Script? or does it sit on the server side and is it called into use by a piece of code in the .HTML or .PHP page?
can anyone just look at your PHP code? i see PHP can actually open a connection to a SQL database and read and write to it, how come people cant just Right click > view source, and steal the login information to your SQl database? i think im missing something important here lol
IF that's confusing. Heres what i was trying to do, i went online and doenloaded some sample PHP code examples and tried to implement them to see if they work but what happened was the PHP code was just displayed as plain text when i tried to navigate to the page.
I am using Apache and PHP5 is installed by my shared hosting provider.
Thanks in advance guys.