Benutzer-Werkzeuge

Webseiten-Werkzeuge


networking

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
networking [2014/11/01 18:25]
karl [HTTP GET vs. POST]
networking [2018/03/26 00:44] (aktuell)
karl [php.ini]
Zeile 59: Zeile 59:
  
 As we can see now, all the name-value-pairs are transmitted in the HTTP-message-header, and the message has no body.  As we can see now, all the name-value-pairs are transmitted in the HTTP-message-header, and the message has no body. 
 +
 +A HTTP request header ends with an empty line. The new line characters are <CR><LF>, as used in the Windows-world. 
 +
 +===== nmap =====
 +check accessible ports on a computer in the network or on the internet:
 +  nmap -A zeilhofer.co.at
  
 ===== Learning HTML ===== ===== Learning HTML =====
Zeile 69: Zeile 75:
 I have created a printable version of "PHP Programming" on wikibooks.org\\ I have created a printable version of "PHP Programming" on wikibooks.org\\
 https://en.wikibooks.org/wiki/Wikibooks:Collections/PHP_Programming https://en.wikibooks.org/wiki/Wikibooks:Collections/PHP_Programming
 +
 +Here are links to my first PHP files:\\
 +http://www.zeilhofer.co.at/php_learning/helloworld.php \\
 +<file php helloworld.php>
 +<?php
 +
 +echo "Hello World!<br>";
 +
 +?>
 +</file>
 +
 +http://www.zeilhofer.co.at/php_learning/myfirstphpfile.php?relay1=5&relay2=7
 +<file php myfirstphpfile.php>
 +<?php
 +
 +echo "Hello World!<br>";
 +
 +// print unix time stamp (in seconds)
 +// append strings with dot
 +echo "unix time = ".time()."s<br>"; 
 +
 +// receive arguments form the url (webrequest):
 +
 +// declare variables:
 +$relay1 = $_REQUEST['relay1'];
 +$relay2 = $_REQUEST['relay2'];
 +
 +echo "relay1 = $relay1 and relay2 = $relay2";
 +?>
 +</file>
 +
 +
 +===== php.ini =====
 +
 +  diff /etc/php5/apache2/php.ini /usr/share/doc/php5-common/examples/php.ini-development
 +
 +If this command returns nothing, then your PHP uses dev configuration.
 +
 +  diff /etc/php5/apache2/php.ini /usr/share/php5/php.ini-production
 +
 +If this command returns nothing your PHP uses production configuration.
 +
 +If you want to use dev configuration,
 +
 +  sudo cp /usr/share/doc/php5-common/examples/php.ini-development /etc/php5/apache2/php.ini
 +
 +If you want to use production configuration,
 +
 +  sudo cp /usr/share/php5/php.ini-production /etc/php5/apache2/php.ini
 +  
 +  
 +{{tag>software english web programming}}
  
networking.1414862713.txt.gz · Zuletzt geändert: 2014/11/01 18:25 von karl