Page 1 of 1
php
Posted: Sat Oct 06, 2007 11:42 pm
by Lilith
When I first downloaded php I thought it would be like programming in MASM or C++. I do not think this is true anymore as I downloaded php and installed it. It did not bring up it's own program it just said it was installed. Does it just make your computer familiar with php or did something go wrong and I am supposed to have a complier or something?

Posted: Sun Oct 07, 2007 12:27 am
by aaronhall
PHP isn't a compiled language like C++. All scripts are run through the interpreter (a single binary file) to produce the script's output. PHP is usually hooked up to a web server via CGI, and isn't used to create binary, standalone programs like you would in C++ or MASM
Posted: Sun Oct 07, 2007 4:40 am
by VladSun
You can run a PHP script in console by executing:
You will see its output (STDOUT tarrgeted) in the console.
Choose the Right Board
Posted: Sun Oct 07, 2007 9:17 am
by s.dot
VladSun wrote:You can run a PHP script in console by executing:
You will see its output (STDOUT tarrgeted) in the console.
Along with many other command line features.
http://us.php.net/manual/en/features.commandline.php
If you're using windows, you'll have to add php to your PATH environment variable.
Moved to Installation and Configuration.
Posted: Sun Oct 07, 2007 11:55 am
by Lilith
Ok I think I get it. MySQL is like a library for php, right? You need a server to test your script. Does php only work on a server or can you run it like the html code. I know with html you can write it in notepad and save it as an internet file and you can access it. Is php like that?
Posted: Sun Oct 07, 2007 11:57 am
by s.dot
If you have it on your localhost, it can be.