2 ms·
I don't think you understand. Php would be processing the file. Try it with the php cli. echo "Hello World" > file.php && php file.php
by tyingq 4y ago
I don't think you understand. Php would be processing the file. Try it with the php cli.
echo "Hello World" > file.php && php file.php
- Moru 4y agoThat's what I meant with "unless you run it from the console". But since the purpose with PHP is usually to run it on a webserver, you want to try that it actually works with the webserver.
- tyingq 4y agoAh, okay. The context in which I was sharing that was about verboseness, "extra ceremony", and "priorities of the language designers". It meant something specific in that context. Though you could still test that it's working in a webserver, since if it came from php rather than just the webserver, it would have some additional headers like X-Powered-By.