Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
networking [2014/12/02 11:53] karl [Learning PHP] |
networking [2018/03/26 00:44] (aktuell) karl [php.ini] |
||
---|---|---|---|
Zeile 61: | Zeile 61: | ||
A HTTP request header ends with an empty line. The new line characters are < | A HTTP request header ends with an empty line. The new line characters are < | ||
+ | |||
+ | ===== nmap ===== | ||
+ | check accessible ports on a computer in the network or on the internet: | ||
+ | nmap -A zeilhofer.co.at | ||
===== Learning HTML ===== | ===== Learning HTML ===== | ||
Zeile 72: | Zeile 76: | ||
https:// | https:// | ||
- | Here is a link to my first PHP file:\\ | + | Here are links to my first PHP files:\\ |
+ | http:// | ||
+ | <file php helloworld.php> | ||
+ | <?php | ||
+ | |||
+ | echo "Hello World!< | ||
+ | |||
+ | ?> | ||
+ | </ | ||
http:// | http:// | ||
+ | <file php myfirstphpfile.php> | ||
+ | <?php | ||
+ | |||
+ | echo "Hello World!< | ||
+ | |||
+ | // print unix time stamp (in seconds) | ||
+ | // append strings with dot | ||
+ | echo "unix time = " | ||
+ | |||
+ | // receive arguments form the url (webrequest): | ||
+ | |||
+ | // declare variables: | ||
+ | $relay1 = $_REQUEST[' | ||
+ | $relay2 = $_REQUEST[' | ||
+ | |||
+ | echo " | ||
+ | ?> | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== php.ini ===== | ||
+ | |||
+ | diff / | ||
+ | |||
+ | If this command returns nothing, then your PHP uses dev configuration. | ||
+ | |||
+ | diff / | ||
+ | |||
+ | If this command returns nothing your PHP uses production configuration. | ||
+ | |||
+ | If you want to use dev configuration, | ||
+ | |||
+ | sudo cp / | ||
+ | |||
+ | If you want to use production configuration, | ||
+ | |||
+ | sudo cp / | ||
+ | | ||
+ | | ||
+ | {{tag> | ||
+ |