print PHP Funktionen : PHP Übersicht : PHP Manual

print

PHP Function print / PHP Funktion print

phplist » Webkatalog Script - Link Script » PHP Function Coder » print
PHP Funktion
print ( phplist Code 100% Relevanz )
Rubrik
String-Funktionen
Kurzform
print -- Ausgabe eines Strings
Vorschau
...print print (PHP 3, PHP 4, PHP 5) print -- Ausgabe eines Strings Beschreibung int print ( string arg ) Gibt arg aus. Der Rückgabewert ist immer 1 . print() ist keine wirkliche Funktion (sondern ein Sprachkonstrukt), weshalb Sie beim Aufruf nicht unbedingt Klammern benutzen müssen. Beispiel 1. print() -Beispiele <?php print( "Hallo Welt" ); print "print() funktioniert ...
PHP Manual
[ print php.net ]

PHP Funktion
printf ( phplist Code 91% Relevanz )
Rubrik
String-Funktionen
Kurzform
printf -- Gibt einen formatierten String aus
Vorschau
...printf printf (PHP 3, PHP 4, PHP 5) printf -- Gibt einen formatierten String aus Beschreibung int printf ( string format [, mixed args [, mixed ...]] ) Erzeugt eine Ausgabe abhängig von format . Format wird in der Dokumentation zu sprintf() näher beschrieben. Gibt die Länge des ausgegebenen Strings . Siehe auch print...
PHP Manual
[ printf php.net ]

PHP Funktion
ps_lineto ( phplist Code 57% Relevanz )
Rubrik
PostScript document creation
Kurzform
ps_lineto -- Draws a line
Vorschau
...y y-coordinate of the end point of the line. Rückgabewerte Gibt bei Erfolg TRUE , im Fehlerfall FALSE . Beispiele Beispiel 1. Drawing a rectangle <?php $ps = ps_new (); if (! ps_open_file ( $ps , "rectangle.ps" )) { print "Cannot open PostScript file\n" ; exit; } ps_set_info ( $ps , "Creator" , "rectangle.php" ); ps_set_info ( $ps , "Author" , "Uwe Steinmann" ); ps_set_info ( $ps , "Title" , "Lineto example" ); ps_begin_page ( $ps , 596 , ...
PHP Manual
[ ps_lineto php.net ]

PHP Funktion
fwrite ( phplist Code 55% Relevanz )
Rubrik
Funktionen des Dateisystems
Kurzform
fwrite -- Schreibt Binärdaten in eine Datei
Vorschau
...filename )) { // Wir öffnen $filename im "Anhänge" - Modus. // Der Dateizeiger befindet sich am Ende der Datei, und // dort wird $somecontent später mit fwrite() geschrieben. if (! $handle = fopen ( $filename , "a" )) { print "Kann die Datei $filename nicht öffnen" ; exit; } // Schreibe $somecontent in die geöffnete Datei. if (! fwrite ( $handle , $somecontent )) { print "Kann in die Datei $filename nicht schreiben" ; exit; } print "Fertig, in...
PHP Manual
[ fwrite php.net ]

PHP Funktion
gmp_intval ( phplist Code 53% Relevanz )
Rubrik
GMP Functions
Kurzform
gmp_intval -- Convert GMP number to integer
Vorschau
... ( resource gmpnumber ) This function allows to convert GMP number to integer. Warnung This function returns a useful result only if the number actually fits the PHP integer (i.e., signed long type). If you want just to print the GMP number, use gmp_strval() . Beispiel 1. gmp_intval() example <?php // displays correct result echo gmp_intval ( "2147483647" ) . "\n" ; // displays wrong result, above PHP integer limit echo gmp_intval ( "...
PHP Manual
[ gmp_intval php.net ]

PHP Funktion
phpcredits ( phplist Code 53% Relevanz )
Rubrik
PHP Optionen & Informationen
Kurzform
phpcredits -- Prints out the credits for PHP
Vorschau
...phpcredits phpcredits (PHP 4, PHP 5) phpcredits -- Prints out the credits for PHP Description bool phpcredits ( [int flag] ) This function prints out the credits listing the PHP developers, modules, etc. It generates the appropriate HTML codes to insert the information in a page. flag is optional, and it defaults to CREDITS_ALL . To generate a custom credits page...
PHP Manual
[ phpcredits php.net ]

PHP Funktion
pg_port ( phplist Code 50% Relevanz )
Rubrik
PostgreSQL Funktionen
Kurzform
pg_port -- Gibt die Portnummer zurück über die die Verbindung aufgebaut wurde
Vorschau
... zum PostgreSQL Datenbankserver aufgebaut wurde oder FALSE , falls ein Fehler auftrat. Beispiele Beispiel 1. pg_port() Beispiel <?php $pgsql_conn = pg_connect ( "dbname=mark host=localhost" ); if ( $pgsql_conn ) { print "Verbindungsaufbau über Port " . pg_port ( $pgsql_conn ) . " erfolgreich<br/>\n" ; } else { print pg_last_error ( $pgsql_conn ); exit; } ?> pg_ping pg_prepare...
PHP Manual
[ pg_port php.net ]

PHP Funktion
com_print_typeinfo ( phplist Code 43% Relevanz )
Rubrik
COM Support Funktionen für Windows
Kurzform
com_print_typeinfo -- Print out a PHP class definition for a dispatchable interface
Vorschau
...com_print_typeinfo com_print_typeinfo (PHP 4 >= 4.2.3, PHP 5) com_print_typeinfo -- Print out a PHP class definition for a dispatchable interface Description bool com_print_typeinfo ( object comobject [, string dispinterface [, bool wantsink]] ) The purpose of this function is to help generate a skeleton class for use as an event sink. You may also use it to generate a dump of any COM ...
PHP Manual
[ com_print_typeinfo php.net ]

PHP Funktion
parse_str ( phplist Code 43% Relevanz )
Rubrik
String-Funktionen
Kurzform
parse_str -- Überträgt einen String in Variable
Vorschau
... $output [ 'first' ]; // value echo $output [ 'arr' ][ 0 ]; // foo bar echo $output [ 'arr' ][ 1 ]; // baz ?> Siehe auch parse_url() , pathinfo() , http_build_query() , get_magic_quotes_gpc() und urldecode() . ord print...
PHP Manual
[ parse_str php.net ]

PHP Funktion
ps_rotate ( phplist Code 43% Relevanz )
Rubrik
PostScript document creation
Kurzform
ps_rotate -- Sets rotation factor
Vorschau
... ( $ps , 0 , 0 ); ps_lineto ( $ps , 0 , 50 ); ps_lineto ( $ps , 50 , 50 ); ps_lineto ( $ps , 50 , 0 ); ps_lineto ( $ps , 0 , 0 ); ps_stroke ( $ps ); } $ps = ps_new (); if (! ps_open_file ( $ps , "rotation.ps" )) { print "Cannot open PostScript file\n" ; exit; } ps_set_info ( $ps , "Creator" , "rotation.php" ); ps_set_info ( $ps , "Author" , "Uwe Steinmann" ); ps_set_info ( $ps , "Title" , "Rotation example" ); ps_set_info ( $ps , "...
PHP Manual
[ ps_rotate php.net ]

PHP Funktion
px_date2string ( phplist Code 42% Relevanz )
Rubrik
Paradox File Access
Kurzform
px_date2string -- Converts a date into a string.
Vorschau
... into a human readable form <?php $px = px_new (); /* make up a date as it could be stored in */ /* a date field of a paradox db. */ /* 700000 days since 1.1.0000. */ $days = 700000 ; /* Use the calendar functions to print a */ /* human readable format of the date */ echo jdtogregorian ( $days + 1721425 ). "\n" ; /* px_date2string() outputs the same */ echo px_date2string ( $px , $days , "n/d/Y" ). "\n" ; px_delete ( $px ); ?> Das oben ...
PHP Manual
[ px_date2string php.net ]

PHP Funktion
ovrimos_connect ( phplist Code 40% Relevanz )
Rubrik
Ovrimos SQL Functions
Kurzform
ovrimos_connect -- Connect to the specified database
Vorschau
..., table_name from sys.tables" ); if ( $res != 0 ) { echo "Statement ok!" ; ovrimos_result_all ( $res ); ovrimos_free_result ( $res ); } ovrimos_close ( $conn ); } ?> The above example will connect to the database and print out the specified table. ovrimos_commit ovrimos_cursor...
PHP Manual
[ ovrimos_connect php.net ]

PHP Funktion
pg_untrace ( phplist Code 40% Relevanz )
Rubrik
PostgreSQL Funktionen
Kurzform
pg_untrace -- Beendet die Ablaufverfolgung einer PostgreSQL-Verbindung
Vorschau
...pg_connect ( "dbname=mark host=localhost" ); if ( $pgsql_conn ) { pg_trace ( '/tmp/trace.log' , 'w' , $pgsql_conn ); pg_query ( "SELECT 1" ); pg_untrace ( $pgsql_conn ); // Jetzt ist die Ablaufverfolgung beendet } else { print pg_last_error ( $pgsql_conn ); exit; } ?> Siehe auch pg_trace() pg_unescape_bytea pg_update...
PHP Manual
[ pg_untrace php.net ]

PHP Funktion
Operatoren ( phplist Code 40% Relevanz )
Rubrik
Sprachreferenz
Kurzform
-----
Vorschau
... als Ergebnis einen anderen Wert (damit wird diese Konstruktion selbst zu einem Ausdruck). Als Eselsbrücke können Sie sich Operatoren als Funktionen oder Konstrukte vorstellen, die Ihnen einen Wert liefern (ähnlich print) und alles, was Ihnen keinen Wert liefert (ähnlich echo) als irgend etwas Anderes. Es gibt drei Arten von Opratoren. Als erstes gibt es den unären Operator, der nur mit einem Wert umgehen kann, zum Beispiel ! (der ...
PHP Manual
[ Operatoren php.net ]

PHP Funktion
Printing Information ( phplist Code 40% Relevanz )
Rubrik
Zend API: Hacking the Core of PHP
Kurzform
-----
Vorschau
...Printing Information PHP Handbuch Kapitel 46. Zend API: Hacking the Core of PHP Printing Information Often it's necessary to print messages to the output stream from your module, just as print() would be used within a script. PHP offers functions for most generic tasks, such as printing warning messages, generating output for phpinfo() , and so on. The following sections provide more details. Examples of these ...
PHP Manual
[ Printing Information php.net ]

PHP Funktion
ocirowcount ( phplist Code 38% Relevanz )
Rubrik
Oracle 8 Funktionen
Kurzform
ocirowcount -- Gibt die Anzahl der betroffenen Zeilen zurück
Vorschau
... ( int statement ) OCIRowCount() gibt die Anzahl der betroffenen Zeilen zum Beispiel einer UPDATE Aktion . Sie gibt nicht die Anzahl der gelieferten Zeilen von einem SELECT Statements ! Beispiel 1. OCIRowCount <?php print "<HTML><PRE>"; $conn = OCILogon("scott","tiger"); $stmt = OCIParse($conn,"create table emp2 as select * from emp"); OCIExecute($stmt); print OCIRowCount($stmt) . " rows inserted.<BR>"; ...
PHP Manual
[ ocirowcount php.net ]

PHP Funktion
ps_begin_pattern ( phplist Code 38% Relevanz )
Rubrik
PostScript document creation
Kurzform
ps_begin_pattern -- Start a new pattern
Vorschau
... Must be 1 or 2. Rückgabewerte The identifier of the pattern or FALSE in case of an error. Beispiele Beispiel 1. Creating and using a pattern <?php $ps = ps_new (); if (! ps_open_file ( $ps , "pattern.ps" )) { print "Cannot open PostScript file\n" ; exit; } ps_set_parameter ( $ps , "warning" , "true" ); ps_set_info ( $ps , "Creator" , "pattern.php" ); ps_set_info ( $ps , "Author" , "Uwe Steinmann" ); ps_set_info ( $ps , "Title" , "...
PHP Manual
[ ps_begin_pattern php.net ]

PHP Funktion
xml_parse_into_struct ( phplist Code 38% Relevanz )
Rubrik
XML Parser Functions
Kurzform
xml_parse_into_struct -- Parse XML data into an array structure
Vorschau
... with operators such as ===. Below is an example that illustrates the internal structure of the arrays being generated by the function. We use a simple note tag embedded inside a para tag, and then we parse this and print out the structures generated: Beispiel 1. xml_parse_into_struct() example <?php $simple = "<para><note>simple note</note></para>" ; $p = xml_parser_create (); xml_parse_into_struct ( $p , $...
PHP Manual
[ xml_parse_into_struct php.net ]

PHP Funktion
pg_tty ( phplist Code 36% Relevanz )
Rubrik
PostgreSQL Funktionen
Kurzform
pg_tty -- Gibt den TTY Namen für die Verbindung zurück
Vorschau
... die TTY Debugmeldungen für die connection enthält oder FALSE , falls ein Fehler auftrat. Beispiele Beispiel 1. pg_tty() Beispiel <?php $pgsql_conn = pg_connect ( "dbname=mark host=localhost" ); if ( $pgsql_conn ) { print "TTY Debugmeldung des Servers: " . pg_tty ( $pgsql_conn ) . "<br/>\n" ; } else { print pg_last_error ( $pgsql_conn ); exit; } ?> pg_transaction_status pg_unescape_bytea...
PHP Manual
[ pg_tty php.net ]

PHP Funktion
ps_begin_template ( phplist Code 36% Relevanz )
Rubrik
PostScript document creation
Kurzform
ps_begin_template -- Start a new template
Vorschau
...The height of the template in pixel. Rückgabewerte Gibt bei Erfolg TRUE , im Fehlerfall FALSE . Beispiele Beispiel 1. Creating and using a template <?php $ps = ps_new (); if (! ps_open_file ( $ps , "template.ps" )) { print "Cannot open PostScript file\n" ; exit; } ps_set_parameter ( $ps , "warning" , "true" ); ps_set_info ( $ps , "Creator" , "template.php" ); ps_set_info ( $ps , "Author" , "Uwe Steinmann" ); ps_set_info ( $ps , "Title" , "...
PHP Manual
[ ps_begin_template php.net ]

PHP Funktion
String-Funktionen ( phplist Code 36% Relevanz )
Rubrik
Funktionsreferenz
Kurzform
-----
Vorschau
... crc32 -- Berechnet den polynomischen CRC32-Wert eines Strings crypt -- Einweg-String-Verschlüsselung (Hashbildung) echo -- Gibt einen oder mehrere Strings aus explode -- Teilt einen String anhand einer Zeichenkette fprintf -- Schreibt einen formatierten String in einen Stream get_html_translation_table -- Gibt die Umwandlungs-Tabelle , die von htmlspecialchars() und htmlentities() verwendet wird hebrev -- Konvertiert (natürlichen) hebrä...
PHP Manual
[ String-Funktionen php.net ]

PHP Funktion
PHP benutzen ( phplist Code 35% Relevanz )
Rubrik
FAQ: Frequently Asked Questions
Kurzform
-----
Vorschau
...üfen und geben diese Werte aus. <?php $empty = $post = array(); foreach ( $_POST as $varname => $varvalue ) { if (empty( $varvalue )) { $empty [ $varname ] = $varvalue ; } else { $post [ $varname ] = $varvalue ; } } print "<pre>" ; if (empty( $empty )) { print "Keiner der POST-Werte ist leer. Die Werte sind:\n" ; var_dump ( $post ); } else { print "Wir haben " . count ( $empty ) . " leere Werte:\n" ; print "Alle Werte:\n" ; var_dump...
PHP Manual
[ PHP benutzen php.net ]

PHP Funktion
ibase_connect ( phplist Code 33% Relevanz )
Rubrik
InterBase-Funktionen
Kurzform
ibase_connect -- Öffnet eine Verbindung zu einer InterBase-Datenbank
Vorschau
...Beispiel 1. ibase_connect() -Beispiel: <?php $dbh = ibase_connect ( $host , $username , $password ); $stmt = 'SELECT * FROM tblname' ; $sth = ibase_query ( $dbh , $stmt ); while ( $row = ibase_fetch_object ( $sth )) { print $row -> email . "\n" ; } ibase_close ( $dbh ); ?> Anmerkung: Buffers existiert seit PHP4-RC2. Anmerkung: Dialect wurde in PHP4-RC2 hinzugefügt. Er funktioniert ab der InterBase-Version 6. Anmerkung: Role existiert ...
PHP Manual
[ ibase_connect php.net ]

PHP Funktion
kadm5_get_principal ( phplist Code 33% Relevanz )
Rubrik
KADM5
Kurzform
kadm5_get_principal -- Gets the principal's entries from the Kerberos database
Vorschau
... Returns array of options on success, or FALSE on failure. Beispiele Beispiel 1. kadm5_get_principal() example <?php $handle = kadm5_init_with_password ( "afs-1" , "GONICUS.LOCAL" , "admin/admin" , "password" ); print "<h1>get_principal burbach@GONICUS.LOCAL</h1>\n" ; $options = kadm5_get_principal ( $handle , "burbach@GONICUS.LOCAL" ); foreach ( $options as $key => $value ) { echo "$key: $value<br /> \n " ; } ...
PHP Manual
[ kadm5_get_principal php.net ]

PHP Funktion
ocicolumntype ( phplist Code 33% Relevanz )
Rubrik
Oracle 8 Funktionen
Kurzform
ocicolumntype -- Liefert den Datentyp einer Spalte zurück.
Vorschau
... den Datentyp einer Spalte . Beschreibung mixed OCIColumnType ( int stmt, int col ) OCIColumnType() liefert den Datentyp einer Spalte passend zu der Spaltennummer (beginnend bei 1). Beispiel 1. OCIColumnType <?php print "<HTML><PRE>\n"; $conn = OCILogon("scott", "tiger"); $stmt = OCIParse($conn,"select * from emp"); OCIExecute($stmt); print "<TABLE BORDER=\"1\">"; print "<TR>"; print "<TH>Name<...
PHP Manual
[ ocicolumntype php.net ]

PHP Funktion
pg_host ( phplist Code 33% Relevanz )
Rubrik
PostgreSQL Funktionen
Kurzform
pg_host -- Gibt den Namen des Host zurück zu dem verbunden wurde
Vorschau
... des Hosts enthält, zu dem die connection besteht oder FALSE , falls ein Fehler auftrat. Beispiele Beispiel 1. pg_host() Beispiel <?php $pgsql_conn = pg_connect ( "dbname=mark host=localhost" ); if ( $pgsql_conn ) { print "Sie sind verbunden mit: " . pg_host ( $pgsql_conn ) . "<br/>\n" ; } else { print pg_last_error ( $pgsql_conn ); exit; } ?> Siehe auch pg_connect() pg_pconnect() pg_get_result pg_insert...
PHP Manual
[ pg_host php.net ]

PHP Funktion
php_sapi_name ( phplist Code 33% Relevanz )
Rubrik
PHP Optionen & Informationen
Kurzform
php_sapi_name -- Zeigt die Schnittstelle zwischen Webserver und PHP an
Vorschau
... Zeichenkette an. Bei CGI PHP ist diese Zeichenkette "cgi", bei mod_php für Apache ist die Zeichenkette "apache" usw. Beispiel 1. php_sapi_name() Beispiel $inter_type = php_sapi_name(); if ($inter_type == "cgi") print "Sie benutzen CGI PHP\n"; else print "Sie benutzen nicht CGI PHP\n"; php_logo_guid php_uname...
PHP Manual
[ php_sapi_name php.net ]

PHP Funktion
px_timestamp2string ( phplist Code 33% Relevanz )
Rubrik
Paradox File Access
Kurzform
px_timestamp2string -- Converts the timestamp into a string.
Vorschau
... into a human readable form <?php $px = px_new (); /* make up a date as it could be stored in */ /* a date field of a paradox db. */ /* 700000 days since 1.1.0000. */ $days = 700000 ; /* Use the calendar functions to print a */ /* human readable format of the date */ echo jdtogregorian ( $days + 1721425 ). "\n" ; /* Turn it into a timestamp as it stored in a paradox database */ /* Timestamps are stored in milli seconds since 1.1.0000 */ $...
PHP Manual
[ px_timestamp2string php.net ]

PHP Funktion
Testing ( phplist Code 33% Relevanz )
Rubrik
PDO Driver How-To
Kurzform
-----
Vorschau
... that was created by ext_skel when you created your extension skeleton. The content of this file should look something like the following: --TEST--SKEL--SKIPIF--<?php # vim:ft=phpif (!extension_loaded('pdo_SKEL')) print 'skip'; ?>--REDIRECTTEST--if (false !== getenv('PDO_SKEL_TEST_DSN')) {# user set them from their shell $config['ENV']['PDOTEST_DSN'] = getenv('PDO_SKEL_TEST_DSN'); $config['ENV']['PDOTEST_USER'] = getenv('...
PHP Manual
[ Testing php.net ]

PHP Funktion
ingres_connect ( phplist Code 32% Relevanz )
Rubrik
Ingres II Funktionen
Kurzform
ingres_connect -- Eine Verbindung zu einem Ingres II Datenbankserver öffnen
Vorschau
... dann speichern müssen, wenn Sie mehr als eine Verbindung zur gleichen Zeit benutzen. Beispiel 1. ingres_connect() Beispiel <?php $link = ingres_connect ("mydb", "user", "pass") or die ("Verbindung fehlgeschlagen"); print ("Verbindungsaufbau erfolgreich"); ingres_close ($link);?> Beispiel 2. ingres_connect() Beispiel mit der aktuellen Verbindungskennung <?php ingres_connect ("mydb", "user", "pass") or die ("Verbindung ...
PHP Manual
[ ingres_connect php.net ]

PHP Funktion
kadm5_get_principals ( phplist Code 32% Relevanz )
Rubrik
KADM5
Kurzform
kadm5_get_principals -- Gets all principals from the Kerberos database
Vorschau
... Returns array of principals on success, or FALSE on failure. Beispiele Beispiel 1. kadm5_get_principals() example <?php $handle = kadm5_init_with_password ( "afs-1" , "GONICUS.LOCAL" , "admin/admin" , "password" ); print "<h1>get_principals</h1>\n" ; foreach ( kadm5_get_principals ( $handle ) as $principal ) { echo "$principal<br /> \n " ; } kadm5_destroy ( $handle ); ?> kadm5_get_principal ...
PHP Manual
[ kadm5_get_principals php.net ]

PHP Funktion
maxdb_get_proto_info ( phplist Code 32% Relevanz )
Rubrik
MaxDB PHP Extension
Kurzform
maxdb_get_proto_info (no version information might be only in CVS)maxdb->protocol_version -- Returns the version of the MaxDB protocol used
Vorschau
... (constant 10). See also maxdb_get_host_info() Example Beispiel 1. Object oriented style <?php $maxdb = new maxdb ( "localhost" , "MONA" , "RED" , "DEMODB" ); /* check connection */ if ( maxdb_connect_errno ()) { printf ( "Connect failed: %s\n" , maxdb_connect_error ()); exit(); } /* print protocol version */ printf ( "Protocol version: %d\n" , $maxdb -> protocol_version ); /* close connection */ $maxdb -> close (); ?> Beispiel...
PHP Manual
[ maxdb_get_proto_info php.net ]

PHP Funktion
PDF-Funktionen ( phplist Code 32% Relevanz )
Rubrik
Funktionsreferenz
Kurzform
-----
Vorschau
... ( $p , "" ); $buf = PDF_get_buffer ( $p ); $len = strlen ( $buf ); header ( "Content-type: application/pdf" ); header ( "Content-Length: $len" ); header ( "Content-Disposition: inline; filename=hello.pdf" ); print $buf ; PDF_delete ( $p ); ?> Das folgende Code-Beispiel ist in der PDFlib-Distribution für PHP 5 enthalten. Es verwendet die in PHP 5 erstmalig verfügbare Funktionalität zur Ausnahmebehandlung und Objektkapselung. Das...
PHP Manual
[ PDF-Funktionen php.net ]

PHP Funktion
PDO-Funktionen ( phplist Code 32% Relevanz )
Rubrik
Funktionsreferenz
Kurzform
-----
Vorschau
...() konfigurieren. Beispiel 2. Verbindungsfehler behandeln <?php try { $dbh = new PDO ( 'mysql:host=localhost;dbname=test' , $user , $pass ); foreach ( $dbh -> query ( 'SELECT * from FOO' ) as $row ) { print_r ( $row ); } $dbh = null ; } catch ( PDOException $e ) { print "Error!: " . $e -> getMessage () . "<br/>" ; die(); } ?> Warnung Wenn Ihre Anwendung die vom PDO-Konstruktor geworfene Ausnahme nicht auffängt, ...
PHP Manual
[ PDO-Funktionen php.net ]

PHP Funktion
continue ( phplist Code 31% Relevanz )
Rubrik
Kontroll-Strukturen
Kurzform
-----
Vorschau
...gt; Lassen Sie das Semikolon nach continue weg, kann dies zu verwirrenden Ergebnissen führen. Es folgt ein Beispiel, wie Sie es nicht machen sollten. <?php for ( $i = 0 ; $i < 5 ; ++ $i ) { if ( $i == 2 ) continue print "$i \n " ; } ?> Sie könnten erwarten, dass das Ergebnis wie folgt aussieht, 0134 aber tatsächlich sieht die Ausgabe so aus, 2 weil der Rückgabewert von print() int(1) ist und das wird als das oben angesprochene ...
PHP Manual
[ continue php.net ]

PHP Funktion
mysqli_get_proto_info ( phplist Code 31% Relevanz )
Rubrik
Verbesserte MySQL Erweiterung
Kurzform
mysqli_get_proto_info (no version information might be only in CVS)mysqli->protocol_version -- Returns the version of the MySQL protocol used
Vorschau
... version. Siehe auch mysqli_get_host_info() . Beispiele Beispiel 1. Object oriented style <?php $mysqli = new mysqli ( "localhost" , "my_user" , "my_password" ); /* check connection */ if ( mysqli_connect_errno ()) { printf ( "Connect failed: %s\n" , mysqli_connect_error ()); exit(); } /* print protocol version */ printf ( "Protocol version: %d\n" , $mysqli -> protocol_version ); /* close connection */ $mysqli -> close (); ?> ...
PHP Manual
[ mysqli_get_proto_info php.net ]

PHP Funktion
pg_trace ( phplist Code 31% Relevanz )
Rubrik
PostgreSQL Funktionen
Kurzform
pg_trace -- Ermöglicht die Ablaufverfolgung einer Verbindung
Vorschau
... host=localhost" ); if ( $pgsql_conn ) { pg_trace ( '/tmp/trace.log' , 'w' , $pgsql_conn ); pg_query ( "SELECT 1" ); pg_untrace ( $pgsql_conn ); // Jetzt enthält /tmp/trace.log die Kommunikation mit dem Server } else { print pg_last_error ( $pgsql_conn ); exit; } ?> Siehe auch fopen() pg_untrace() pg_set_error_verbosity pg_transaction_status...
PHP Manual
[ pg_trace php.net ]

PHP Funktion
udm_api_version ( phplist Code 30% Relevanz )
Rubrik
mnoGoSearch Funktionen
Kurzform
udm_api_version -- Gibt die Version der mnoGoSearch API zurück.
Vorschau
... dem Benutzer zu erfahren, welche Funktionen der mnoGoSearch-API verfügbar sind. udm_get_doc_count() diese Funktion ist erst ab mnoGoSearch 3.1.11 oder später verfügbar. Beispiel: if (udm_api_version() &gt;= 30111) { print "Total number of urls in database: ".udm_get_doc_count($udm)."&lt;br&gt;\n"; } udm_alloc_agent udm_cat_list...
PHP Manual
[ udm_api_version php.net ]

PHP Funktion
version_compare ( phplist Code 30% Relevanz )
Rubrik
PHP Optionen & Informationen
Kurzform
version_compare -- Compares two "PHP-standardized" version number strings
Vorschau
..., the function will return TRUE if the relationship is the one specified by the operator, FALSE otherwise. Anmerkung: PHP_VERSION constant holds current PHP version. Beispiel 1. version_compare() example <?php // prints -1 echo version_compare ( "4.0.4" , "4.0.6" ); // these all print 1 echo version_compare ( "4.0.4" , "4.0.6" , "<" ); echo version_compare ( "4.0.6" , "4.0.6" , "eq" ); ?> sys_get_temp_dir zend_logo_guid...
PHP Manual
[ version_compare php.net ]

PHP Funktion
ocinewdescriptor ( phplist Code 29% Relevanz )
Rubrik
Oracle 8 Funktionen
Kurzform
ocinewdescriptor -- Initialize a new empty descriptor LOB/FILE (LOB is default)
Vorschau
...OCIExecute($stmt); while ( OCIFetch($stmt) ) { $nrows = OCIRowCount($stmt); $delete = OCIParse($conn,"delete from $table where ROWID = :rid"); OCIBindByName($delete,":rid",&$rowid,-1,OCI_B_ROWID); OCIExecute($delete); print "$nrows\n"; if ( ($nrows % $commitsize) == 0 ) { OCICommit($conn); } } $nrows = OCIRowCount($stmt); print "$nrows deleted...\n"; OCIFreeStatement($stmt); OCILogoff($conn);?> <?php /* This script demonstrates file ...
PHP Manual
[ ocinewdescriptor php.net ]

PHP Funktion
ocistatementtype ( phplist Code 29% Relevanz )
Rubrik
Oracle 8 Funktionen
Kurzform
ocistatementtype -- Gibt den Typ eine Statements zurück
Vorschau
... Beschreibung string OCIStatementType ( int stmt ) OCIStatementType() kann folgende Werte liefern: "SELECT" "UPDATE" "DELETE" "INSERT" "CREATE" "DROP" "ALTER" "BEGIN" "DECLARE" "UNKNOWN" Beispiel 1. Beispiel: <?php print "<HTML><PRE>"; $conn = OCILogon("scott","tiger"); $sql = "delete from emp where deptno = 10"; $stmt = OCIParse($conn,$sql); if ( OCIStatementType($stmt) == "DELETE" ) { die "You are not allowed to delete ...
PHP Manual
[ ocistatementtype php.net ]

PHP Funktion
sesam_diagnostic ( phplist Code 29% Relevanz )
Rubrik
SESAM Datenbankfunktionen
Kurzform
sesam_diagnostic -- Liefert Status-Informationen über den letzten SESAM-Aufruf
Vorschau
... (E SEW42AE ILLEGAL CHARACTER) zusammen mit dem fehlerhaften SQL-Statement und der genauen Position des Fehlers angezeigt. Beispiel 1. Anzeige von SESAM-Fehlermeldungen mit Fehlerposition <?php // Function which prints a formatted error message, // displaying a pointer to the syntax error in the // SQL statement function PrintReturncode ( $exec_str ) { $err = Sesam_Diagnostic (); $colspan = 4 ; // 4 cols for: sqlstate, errlin, errcol, ...
PHP Manual
[ sesam_diagnostic php.net ]

PHP Funktion
db2_result ( phplist Code 27% Relevanz )
Rubrik
IBM DB2 Cloudscape and Apache Derby Functions
Kurzform
db2_result -- Returns a single column from a row in the result set
Vorschau
... FROM animals WHERE weight < ?' ; $stmt = db2_prepare ( $conn , $sql ); db2_execute ( $stmt , array( 10 )); while ( db2_fetch_row ( $stmt )) { $name = db2_result ( $stmt , 0 ); $breed = db2_result ( $stmt , 'BREED' ); print "$name $breed" ; } ?> Das oben gezeigte Beispiel erzeugt folgendeAusgabe: cat Pookgold fish Bubblesbudgerigar Gizmogoat Rickety Ride Siehe auch db2_fetch_array() db2_fetch_assoc() db2_fetch_both() db2_fetch_object() ...
PHP Manual
[ db2_result php.net ]

PHP Funktion
imap_rfc822_write_address ( phplist Code 27% Relevanz )
Rubrik
IMAP POP3 und NNTP Funktionen
Kurzform
imap_rfc822_write_address -- Bildet aus Realnamen Postfach und Server eine korekt formatierte Mail-Adresse
Vorschau
... imap_rfc822_write_address ( string mailbox, string host, string personal ) Bildet aus Realnamen, Postfach und Server eine korekt formatierte Mail-Adresse gemäß RFC822 . Beispiel 1. imap_rfc822_write_address() Beispiel print imap_rfc822_write_address ("hartmut", "cvs.php.net", "Hartmut Holzgraefe); imap_rfc822_parse_headers imap_scanmailbox...
PHP Manual
[ imap_rfc822_write_address php.net ]

PHP Funktion
ocifetchstatement ( phplist Code 27% Relevanz )
Rubrik
Oracle 8 Funktionen
Kurzform
ocifetchstatement -- Fetcht die Ergebnisse in ein Array
Vorschau
... example mbritton@verinet.com (990624) */ $conn = OCILogon("scott","tiger"); $stmt = OCIParse($conn,"select * from emp"); OCIExecute($stmt); $nrows = OCIFetchStatement($stmt,$results);if ( $nrows > 0 ) { print "<TABLE BORDER=\"1\">\n"; print "<TR>\n"; while ( list( $key, $val ) = each( $results ) ) { print "<TH>$key</TH>\n"; } print "</TR>\n"; for ( $i = 0; $i < $nrows; $i++ ) { reset...
PHP Manual
[ ocifetchstatement php.net ]

PHP Funktion
ocinumcols ( phplist Code 27% Relevanz )
Rubrik
Oracle 8 Funktionen
Kurzform
ocinumcols -- Gibt die Anzahl der Spalten in einem Statement zurück
Vorschau
...3.0.4, PHP 4, PHP 5) ocinumcols -- Gibt die Anzahl der Spalten in einem Statement Beschreibung int OCINumCols ( int stmt ) OCINumCols() gibt die Anzahl der Spalten in einem Statement . Beispiel 1. OCINumCols <?php print "<HTML><PRE>\n"; $conn = OCILogon("scott", "tiger"); $stmt = OCIParse($conn,"select * from emp"); OCIExecute($stmt); while ( OCIFetch($stmt) ) { print "\n"; $ncols = OCINumCols($stmt); for ( $i = 1; $i &#...
PHP Manual
[ ocinumcols php.net ]

PHP Funktion
ovrimos_fetch_row ( phplist Code 27% Relevanz )
Rubrik
Ovrimos SQL Functions
Kurzform
ovrimos_fetch_row -- Fetches a row from the result set
Vorschau
...=" . $table_id . ", table_name=" . $table_name . "\n" ; } else { echo "Next: error\n" ; } } else { echo "First: error\n" ; } ovrimos_free_result ( $res ); } ovrimos_close ( $conn ); } ?> This will fetch a row and print the result. ovrimos_fetch_into ovrimos_field_len...
PHP Manual
[ ovrimos_fetch_row php.net ]

PHP Funktion
Überladung ( phplist Code 27% Relevanz )
Rubrik
Klassen und Objekte (PHP 5)
Kurzform
-----
Vorschau
... __get ( $nm ) { echo "Liefere [ $nm ]\n " ; if (isset( $this -> x [ $nm ])) { $r = $this -> x [ $nm ]; echo "Gebe : $r \n " ; return $r ; } else { echo "Nichts!\n" ; } } public function __set ( $nm , $val ) { print "Setze [ $nm ] auf $val \n " ; if (isset( $this -> x [ $nm ])) { $this -> x [ $nm ] = $val ; echo "OK!\n" ; } else { echo "Nicht OK!\n" ; } } private function __isset ( $nm ) { echo "Prüfe, ob $nm gesetzt ist \n...
PHP Manual
[ Überladung php.net ]

PHP Funktion
Source Discussion ( phplist Code 27% Relevanz )
Rubrik
Zend API: Hacking the Core of PHP
Kurzform
-----
Vorschau
...unused, use NULL . To declare a function, use the macro ZEND_RSHUTDOWN . info_func When phpinfo() is called in a script, Zend cycles through all loaded modules and calls this function. Every module then has the chance to print its own "footprint" into the output page. Generally this is used to dump environmental or statistical information. To mark this field as unused, use NULL . To declare a function, use the macro ZEND_MINFO . version The ...
PHP Manual
[ Source Discussion php.net ]

PHP Funktion
ovrimos_result_all ( phplist Code 26% Relevanz )
Rubrik
Ovrimos SQL Functions
Kurzform
ovrimos_result_all -- Prints the whole result set as an HTML table
Vorschau
...ovrimos_result_all ovrimos_result_all (PHP 4 >= 4.0.3, PHP 5) ovrimos_result_all -- Prints the whole result set as an HTML table Description int ovrimos_result_all ( int result_id [, string format] ) ovrimos_result_all() prints the whole result set as an HTML table. Returns the number of rows in the generated...
PHP Manual
[ ovrimos_result_all php.net ]

PHP Funktion
Multibyte String Functions ( phplist Code 26% Relevanz )
Rubrik
Funktionsreferenz
Kurzform
-----
Vorschau
... to autombstring.detect_order = ASCII,JIS,UTF-8,SJIS,EUC-JP ; Specify order ;; Set default substitute charactermbstring.substitute_character = 12307 ; Specify Unicode valuembstring.substitute_character = none ; Do not print charactermbstring.substitute_character = long ; Long Example: U+3000,JIS+7E7E Beispiel 2. php.ini setting for EUC-JP users ;; Disable Output Bufferingoutput_buffering = Off ;; Set HTTP header charsetdefault_charset = EUC...
PHP Manual
[ Multibyte String Functions php.net ]

PHP Funktion
dbx_connect ( phplist Code 25% Relevanz )
Rubrik
dbx Funktionen
Kurzform
dbx_connect -- Öffnet eine Verbindung/Datenbank
Vorschau
...oben erwähnte Modulnummer, und wird nur dbx-intern verwendet. Beispiel 1. dbx_connect() <?php $link = dbx_connect ( DBX_ODBC , "" , "db" , "username" , "password" , DBX_PERSISTENT ) or die ( "Fehler beim Verbinden" ); print ( "Verbindung hergestellt" ); dbx_close ( $link ); ?> Anmerkung: Konsultieren Sie bitte auch die modulspezifische Dokumentation. Siehe auch dbx_close() . dbx_compare dbx_error...
PHP Manual
[ dbx_connect php.net ]

PHP Funktion
file_exists ( phplist Code 25% Relevanz )
Rubrik
Funktionen des Dateisystems
Kurzform
file_exists -- Prüft ob eine Datei oder ein Verzeichnis existiert
Vorschau
... shares verwenden Sie bitte //computername/share/filename oder \\computername\share\filename . Beispiel 1. Testen, ob eine Datei existiert <?php $filename = '/path/to/foo.txt' ; if ( file_exists ( $filename )) { print "The file $filename exists" ; } else { print "The file $filename does not exist" ; } ?> Anmerkung: Die Ergebnisse dieser Funktionwerden gecached. e Details erhalten Sie bei clearstatcache() . Anmerkung: Diese Funktion ...
PHP Manual
[ file_exists php.net ]

PHP Funktion
geoip_database_info ( phplist Code 25% Relevanz )
Rubrik
GeoIP Functions
Kurzform
geoip_database_info -- Get GeoIP Database information
Vorschau
... (ie: GEOIP_*_EDITION). Rückgabewerte Returns the corresponding database version, or NULL on error. Beispiele Beispiel 1. A geoip_region_by_name() example This will output the current database version string. <?php print geoip_database_info ( GEOIP_COUNTRY_EDITION ); ?> Das oben gezeigte Beispiel erzeugt folgendeAusgabe: GEO-106FREE 20060801 Build 1 Copyright (c) 2006 MaxMind LLC All Rights Reserved geoip_country_name_by_name ...
PHP Manual
[ geoip_database_info php.net ]

PHP Funktion
imap_append ( phplist Code 25% Relevanz )
Rubrik
IMAP POP3 und NNTP Funktionen
Kurzform
imap_append -- Fügt eine String-Nachricht an das angegebene Postfach an.
Vorschau
...wird, so werden die Flags der Nachricht in der Mailbox entsprechend gesetzt. Beispiel 1. imap_append() Beispiel $stream = imap_open ("{your.imap.host}INBOX.Drafts", "username", "password"); $check = imap_check ($stream); print "Msg Count before append: " . $check->Nmsgs . "<br>\n"; imap_append( $stream, "{your.imap.host}INBOX.Drafts" , "From: me@my.host\r\n" . "To: you@your.host\r\n" . "Subject: test\r\n" . "\r\n" . "Das ist ein Test, ...
PHP Manual
[ imap_append php.net ]

PHP Funktion
imap_delete ( phplist Code 25% Relevanz )
Rubrik
IMAP POP3 und NNTP Funktionen
Kurzform
imap_delete -- Merkt eine Nachricht des aktuellen Postfachs zum Löschen vor.
Vorschau
... optionalen Flag CL_EXPUNGE . Beispiel 1. imap_delete() Beispiel $mbox = imap_open ("{your.imap.host}INBOX", "username", "password") || die ("can't connect: " . imap_last_error()); $check = imap_mailboxmsginfo ($mbox); print "Messages before delete: " . $check->Nmsgs . "<br>\n" ; imap_delete ($mbox, 1); $check = imap_mailboxmsginfo ($mbox); print "Messages after delete: " . $check->Nmsgs . "<br>\n" ; imap_expunge ($mbox); $...
PHP Manual
[ imap_delete php.net ]

PHP Funktion
imap_mailboxmsginfo ( phplist Code 25% Relevanz )
Rubrik
IMAP POP3 und NNTP Funktionen
Kurzform
imap_mailboxmsginfo -- Liefert Informationen über das aktuelle Postfach
Vorschau
... in Byte Beispiel 1. imap_mailboxmsginfo() Beispiel $mbox = imap_open ("{your.imap.host}INBOX", "username", "password") || die ("can't connect: " . imap_last_error()); $check = imap_mailboxmsginfo ($mbox); if ($check) { print "Date: " . $check->Date . "<br>\n"; print "Driver: " . $check->Driver . "<br>\n"; print "Mailbox: " . $check->Mailbox . "<br>\n"; print "Messages: " . $check->Nmsgs . "<br>\n" ; print "...
PHP Manual
[ imap_mailboxmsginfo php.net ]

PHP Funktion
imap_status ( phplist Code 25% Relevanz )
Rubrik
IMAP POP3 und NNTP Funktionen
Kurzform
imap_status -- Liefert ausgewählte Statusinformationen zum angegebenen Postfach
Vorschau
...() Beispiel $mbox = imap_open ("{your.imap.host}", "username", "password", OP_HALFOPEN) || die ("can't connect: " . imap_last_error()); $status = imap_status ($mbox, "{your.imap.host}INBOX", SA_ALL); if($status) { print ("Messages: " . $status->messages ) . "<br>\n"; print ("Recent: " . $status->recent ) . "<br>\n"; print ("Unseen: " . $status->unseen ) . "<br>\n"; print ("UIDnext: " . $status->uidnext...
PHP Manual
[ imap_status php.net ]

PHP Funktion
ldap_search ( phplist Code 25% Relevanz )
Rubrik
LDAP Funktionen
Kurzform
ldap_search -- Suche im LDAP Baum
Vorschau
...z.B. "Jo" $dn = "o=Meine Firma, c=DE"; $filter="(|(sn=$person*)(vorname=$person*))"; $justthese = array( "ou", "sn", "vorname", "mail"); $sr=ldap_search($ds, $dn, $filter, $justthese); $info = ldap_get_entries($ds, $sr); print $info["count"]." gefundene Einträge<p>"; Seit der Version 4.0.5 ist es außerdem möglich parallele Suchen durchzuführen. Um dies zu verwirklichen benutzen Sie als erstes Argument einen Array von Verbindungs-...
PHP Manual
[ ldap_search php.net ]

PHP Funktion
stream_get_contents ( phplist Code 25% Relevanz )
Rubrik
Stream Functions
Kurzform
stream_get_contents -- Reads remainder of a stream into a string
Vorschau
... offset before reading. Added in PHP 5.1.0. Rückgabewerte Returns a string, or FALSE on failure. Beispiele Beispiel 1. stream_get_contents() example <?php if ( $stream = fopen ( 'http://www.example.com' , 'r' )) { // print all the page starting at the offset 10 echo stream_get_contents ( $stream , - 1 , 10 ); fclose ( $stream ); } if ( $stream = fopen ( 'http://www.example.net' , 'r' )) { // print the first 5 bytes echo stream_get_contents...
PHP Manual
[ stream_get_contents php.net ]

PHP Funktion
dbase_create ( phplist Code 24% Relevanz )
Rubrik
dBase Funktionen
Kurzform
dbase_create -- Erzeugt eine dBase-Datenbank
Vorschau
...dbf"; // Datenbank-"Definitionen" $def = array( array("Datum", "D"), array("Name", "C", 50), array("Alter", "N", 3, 0), array("Email", "C", 128), array("IstMitglied", "L") ); // Erzeugung if (!dbase_create($dbname, $def)) print "<strong>Error!</strong>"; dbase_close dbase_delete_record...
PHP Manual
[ dbase_create php.net ]

PHP Funktion
i18n_loc_get_default ( phplist Code 24% Relevanz )
Rubrik
Unicode Functions
Kurzform
i18n_loc_get_default -- Get the default Locale
Vorschau
...a string with the current Locale. Beispiele Beispiel 1. A i18n_loc_get_default() example <?php // get the default Locale echo i18n_loc_get_default (); //set a new Locale... i18n_loc_set_default ( 'pt_PT' ); // ... and print it echo i18n_loc_get_default (); ?> Das oben gezeigte Beispiel erzeugt folgendeAusgabe: en_US_POSIXpt_PT Siehe auch i18n_loc_set_default() Unicode Functions i18n_loc_set_default...
PHP Manual
[ i18n_loc_get_default php.net ]

PHP Funktion
money_format ( phplist Code 24% Relevanz )
Rubrik
String-Funktionen
Kurzform
money_format -- Formats a number as a currency string
Vorschau
... the formatting string will be returned unchanged. Beispiel 1. money_format() Example We will use different locales and format specifications to illustrate the use of this function. <?php $number = 1234.56 ; // let's print the international format for the en_US locale setlocale ( LC_MONETARY , 'en_US' ); echo money_format ( '%i' , $number ) . "\n" ; // USD 1,234.56 // Italian national format with 2 decimals` setlocale ( LC_MONETARY , 'it_IT...
PHP Manual
[ money_format php.net ]

PHP Funktion
ocinewcursor ( phplist Code 24% Relevanz )
Rubrik
Oracle 8 Funktionen
Kurzform
ocinewcursor -- return a new cursor (Statement-Handle) - use this to bind ref-cursors!
Vorschau
...($stmt);ociexecute($curs); while (OCIFetchInto($curs,&$data)) { var_dump($data);} OCIFreeCursor($stmt);OCIFreeStatement($curs);OCILogoff($conn);?> Beispiel 2. Using a REF CURSOR in a select statement <?php print "<HTML><BODY>";$conn = OCILogon("scott","tiger");$count_cursor = "CURSOR(select count(empno) num_emps from emp " . "where emp.deptno = dept.deptno) as EMPCNT from dept";$stmt = OCIParse($conn,"select ...
PHP Manual
[ ocinewcursor php.net ]

PHP Funktion
ps_translate ( phplist Code 24% Relevanz )
Rubrik
PostScript document creation
Kurzform
ps_translate -- Sets translation
Vorschau
... ( $ps , 0 , 0 ); ps_lineto ( $ps , 0 , 50 ); ps_lineto ( $ps , 50 , 50 ); ps_lineto ( $ps , 50 , 0 ); ps_lineto ( $ps , 0 , 0 ); ps_stroke ( $ps ); } $ps = ps_new (); if (! ps_open_file ( $ps , "translate.ps" )) { print "Cannot open PostScript file\n" ; exit; } ps_set_info ( $ps , "Creator" , "translate.php" ); ps_set_info ( $ps , "Author" , "Uwe Steinmann" ); ps_set_info ( $ps , "Title" , "Translated example" ); ps_set_info ( $ps , "...
PHP Manual
[ ps_translate php.net ]

PHP Funktion
SimpleXML Funktionen ( phplist Code 24% Relevanz )
Rubrik
Funktionsreferenz
Kurzform
-----
Vorschau
... Sie dafür (string) , ansonsten behandelt PHP das Element als Objekt. <?php include 'example.php' ; $xml = new SimpleXMLElement ( $xmlstr ); if ((string) $xml -> movie -> title == 'PHP: Behind the Parser' ) { print 'Mein Lieblingsfilm.' ; } htmlentities ((string) $xml -> movie -> title ); ?> Beispiel 6. XPath verwenden SimpleXML hat einen eingebauten XPath -Support. So finden Sie alle <character> Elemente: <?...
PHP Manual
[ SimpleXML Funktionen php.net ]

PHP Funktion
get_defined_constants ( phplist Code 23% Relevanz )
Rubrik
PHP Optionen & Informationen
Kurzform
get_defined_constants -- Returns an associative array with the names of all the constants and their values
Vorschau
...] ) This function returns the names and values of all the constants currently defined. This includes those created by extensions as well as those created with the define() function. For example the line below: <?php print_r ( get_defined_constants ()); ?> will print a list like: Array( [E_ERROR] => 1 [E_WARNING] => 2 [E_PARSE] => 4 [E_NOTICE] => 8 [E_CORE_ERROR] => 16 [E_CORE_WARNING] => 32 [E_COMPILE_ERROR] =&#...
PHP Manual
[ get_defined_constants php.net ]

PHP Funktion
maxdb_get_server_info ( phplist Code 23% Relevanz )
Rubrik
MaxDB PHP Extension
Kurzform
maxdb_get_server_info (no version information might be only in CVS)maxdb->server_info -- Returns the version of the MaxDB server
Vorschau
...() , maxdb_get_server_version() Example Beispiel 1. Object oriented style <?php $maxdb = new maxdb ( "localhost" , "MONA" , "RED" , "DEMODB" ); /* check connection */ if ( maxdb_connect_errno ()) { printf ( "Connect failed: %s\n" , maxdb_connect_error ()); exit(); } /* print server version */ printf ( "Server version: %s\n" , $maxdb -> server_info ); /* close connection */ $maxdb -> close (); ?> Beispiel 2. ...
PHP Manual
[ maxdb_get_server_info php.net ]

PHP Funktion
copy ( phplist Code 22% Relevanz )
Rubrik
Funktionen des Dateisystems
Kurzform
copy -- Kopiert eine Datei
Vorschau
... Beschreibung bool copy ( string source, string dest ) Diese Funktion kopiert die Datei source nach dest . Gibt bei Erfolg TRUE , im Fehlerfall FALSE . Beispiel 1. copy() <?php if (! copy ( $file , $file . '.bak' )) { print ( "failed to copy $file...<br> \n " ); } ?> Anmerkung: Ab PHP 4.3.0 können die Parameter source und dest auch URLs sein, wenn "fopen wrappers" aktiviert ist. e Details hierzu finden Sie unter fopen() . Ist dest ...
PHP Manual
[ copy php.net ]

PHP Funktion
fbsql_connect ( phplist Code 22% Relevanz )
Rubrik
FrontBase Funktionen
Kurzform
fbsql_connect -- Öffnet eine Verbindung mit einem FrontBase-Server
Vorschau
... beendet wird oder vorher, wenn fbsql_close() benutzt wird. Beispiel 1. fbsql_connect() -Beispiel: <?php $link = fbsql_connect ( "localhost" , "_SYSTEM" , "geheim" ) or die ( "Konnte keine Verbindung herstellen!" ); print ( "Verbinden mit FrontBase erfolgreich" ); fbsql_close ( $link ); ?> Siehe auch: fbsql_pconnect() und fbsql_close() . fbsql_commit fbsql_create_blob...
PHP Manual
[ fbsql_connect php.net ]

PHP Funktion
mysqli_get_server_info ( phplist Code 22% Relevanz )
Rubrik
Verbesserte MySQL Erweiterung
Kurzform
mysqli_get_server_info (no version information might be only in CVS)mysqli->server_info -- Returns the version of the MySQL server
Vorschau
...() und mysqli_get_server_version() . Beispiele Beispiel 1. Object oriented style <?php $mysqli = new mysqli ( "localhost" , "my_user" , "my_password" ); /* check connection */ if ( mysqli_connect_errno ()) { printf ( "Connect failed: %s\n" , mysqli_connect_error ()); exit(); } /* print server version */ printf ( "Server version: %s\n" , $mysqli -> server_info ); /* close connection */ $mysqli -> close (); ?> Beispiel 2. ...
PHP Manual
[ mysqli_get_server_info php.net ]

PHP Funktion
ocicolumnname ( phplist Code 22% Relevanz )
Rubrik
Oracle 8 Funktionen
Kurzform
ocicolumnname -- Liefert den Namen der Spalte zurück.
Vorschau
...Liefert den Namen der Spalte . Beschreibung string OCIColumnName ( int stmt, int col ) OCIColumnName() liefert den Name einer Spalte passend zu der Spaltennummer (beginnend bei 1). Beispiel 1. OCIColumnName <?php print "<HTML><PRE>\n"; $conn = OCILogon("scott", "tiger"); $stmt = OCIParse($conn,"select * from emp"); OCIExecute($stmt); print "<TABLE BORDER=\"1\">"; print "<TR>"; print "<TH>Name<...
PHP Manual
[ ocicolumnname php.net ]

PHP Funktion
ocicolumnsize ( phplist Code 22% Relevanz )
Rubrik
Oracle 8 Funktionen
Kurzform
ocicolumnsize -- Gibt die Grösse einer Spalte zurück
Vorschau
...mixed column ) OCIColumnSize() gibt die grösse einer Oracle Spalte . Für den Parameter column kann wahlweise die Splatennummer (beginnend bei 1) oder der Spaltenname genommen werden. Beispiel 1. OCIColumnSize <?php print "<HTML><PRE>\n"; $conn = OCILogon("scott", "tiger"); $stmt = OCIParse($conn,"select * from emp"); OCIExecute($stmt); print "<TABLE BORDER=\"1\">"; print "<TR>"; print "<TH>Name<...
PHP Manual
[ ocicolumnsize php.net ]

PHP Funktion
SDO Functions ( phplist Code 22% Relevanz )
Rubrik
Funktionsreferenz
Kurzform
-----
Vorschau
... how we can reflect on an empty Employee data object. <?php // Create the employee data object (e.g. from an XML Data Access Service) $employee = ...; $reflection = new SDO_Model_ReflectionDataObject ( $employee ); print( $reflection ); ?> Das oben gezeigte Beispiel erzeugt folgendeAusgabe: object(SDO_Model_ReflectionDataObject)#4 { - ROOT OBJECT - Type { companyNS:EmployeeType[3] { commonj.sdo:String $name; commonj.sdo:String $SN; ...
PHP Manual
[ SDO Functions php.net ]

PHP Funktion
call_user_func ( phplist Code 21% Relevanz )
Rubrik
Function Handling functions
Kurzform
call_user_func -- Aufruf einer benutzerdefinierten Funktion
Vorschau
... Funktion Description mixed call_user_func ( string function_name [, mixed parameter [, mixed ...]] ) Ruft die Funktion mit Namen function_name mit den Parametern parameters auf. function friseur ($type) { print "Sie möchten einen $type-Kopf, kein Problem<br>"; } call_user_func ('friseur', "Bubi"); call_user_func ('friseur', "Pilz"); call_user_func_array create_function...
PHP Manual
[ call_user_func php.net ]

PHP Funktion
db2_bind_param ( phplist Code 21% Relevanz )
Rubrik
IBM DB2 Cloudscape and Apache Derby Functions
Kurzform
db2_bind_param -- Binds a PHP variable to an SQL statement parameter
Vorschau
... ( $stmt , 2 , "upper_limit" , DB2_PARAM_IN ); // We can also declare the variable after calling db2_bind_param() $upper_limit = 15.0 ; if ( db2_execute ( $stmt )) { while ( $row = db2_fetch_array ( $stmt )) { print " { $row [ 0 ]} , { $row [ 1 ]} , { $row [ 2 ]}\n " ; } } ?> Das oben gezeigte Beispiel erzeugt folgendeAusgabe: Pook, cat, 3.2Rickety Ride, goat, 9.7Peaches, dog, 12.3 Beispiel 2. Calling stored procedures with IN and...
PHP Manual
[ db2_bind_param php.net ]

PHP Funktion
ps_setpolydash ( phplist Code 21% Relevanz )
Rubrik
PostScript document creation
Kurzform
ps_setpolydash -- Sets appearance of a dashed line
Vorschau
...alternately for the black and white portion. Rückgabewerte Gibt bei Erfolg TRUE , im Fehlerfall FALSE . Beispiele Beispiel 1. Drawing a dashed line <?php $ps = ps_new (); if (! ps_open_file ( $ps , "polydash.ps" )) { print "Cannot open PostScript file\n" ; exit; } ps_set_info ( $ps , "Creator" , "polydash.php" ); ps_set_info ( $ps , "Author" , "Uwe Steinmann" ); ps_set_info ( $ps , "Title" , "Poly dash example" ); ps_begin_page ( $ps , 596...
PHP Manual
[ ps_setpolydash php.net ]

PHP Funktion
COM Support Funktionen für Windows ( phplist Code 21% Relevanz )
Rubrik
Funktionsreferenz
Kurzform
-----
Vorschau
... -- Holt eine IEnumVariant com_load_typelib -- Lädt eine Typelib com_load -- Erstellt eine neue Referenz auf eine COM Komponente com_message_pump -- Process COM messages, sleeping for up to timeoutms milliseconds com_print_typeinfo -- Print out a PHP class definition for a dispatchable interface com_propget -- Liefert den Wert der Eigenschaft einer COM Komponente com_propput -- Weist einer Eigenschaft einer COM Komponente einen Wert zu ...
PHP Manual
[ COM Support Funktionen für Windows php.net ]

PHP Funktion
db2_next_result ( phplist Code 20% Relevanz )
Rubrik
IBM DB2 Cloudscape and Apache Derby Functions
Kurzform
db2_next_result -- Requests the next result set from a stored procedure
Vorschau
... from statement resources returned from our calls to the db2_next_result() function. <?php $conn = db2_connect ( $database , $user , $password ); if ( $conn ) { $stmt = db2_exec ( $conn , 'CALL multiResults()' ); print "Fetching first result set\n" ; while ( $row = db2_fetch_array ( $stmt )) { var_dump ( $row ); } print "\nFetching second result set\n" ; $res = db2_next_result ( $stmt ); if ( $res ) { while ( $row = db2_fetch_array ( $...
PHP Manual
[ db2_next_result php.net ]

PHP Funktion
PDOStatement->fetch() ( phplist Code 20% Relevanz )
Rubrik
PDO-Funktionen
Kurzform
PDOStatement->fetch() -- Fetches the next row from a result set
Vorschau
...() was called. Beispiele Beispiel 1. Fetching rows using different fetch styles <?php $sth = $dbh -> prepare ( "SELECT name, colour FROM fruit" ); $sth -> execute (); /* Exercise PDOStatement::fetch styles */ print( "PDO::FETCH_ASSOC: " ); print( "Return next row as an array indexed by column name\n" ); $result = $sth -> fetch ( PDO :: FETCH_ASSOC ); print_r ( $result ); print( "\n" ); print( "PDO::FETCH_BOTH: " ); print( "Return...
PHP Manual
[ PDOStatement->fetch() php.net ]

PHP Funktion
ps_set_text_pos ( phplist Code 20% Relevanz )
Rubrik
PostScript document creation
Kurzform
ps_set_text_pos -- Sets position for text output
Vorschau
...-coordinate of the new text position. Rückgabewerte Gibt bei Erfolg TRUE , im Fehlerfall FALSE . Beispiele Beispiel 1. Placing text at a given position <?php $ps = ps_new (); if (! ps_open_file ( $ps , "text.ps" )) { print "Cannot open PostScript file\n" ; exit; } ps_set_info ( $ps , "Creator" , "rectangle.php" ); ps_set_info ( $ps , "Author" , "Uwe Steinmann" ); ps_set_info ( $ps , "Title" , "Text placement example" ); ps_begin_page ( $ps...
PHP Manual
[ ps_set_text_pos php.net ]

PHP Funktion
touch ( phplist Code 20% Relevanz )
Rubrik
Funktionen des Dateisystems
Kurzform
touch -- Setzt die Zugriffs- und Modifizierungszeit einer Datei
Vorschau
... Zugriffszeit unabhängig von der Anzahl der Parameter stets modifiziert wird. Wenn die Datei nicht existiert, wird sie erzeugt. Gibt bei Erfolg TRUE , im Fehlerfall FALSE . Beispiel 1. touch() if (touch ($DateiName)) { print "$DateiName Modifizierungs-Zeit wurde auf das aktuelle Datum und die aktuelle Uhrzeit gesetzt."; } else { print "Tut mir leid, Modifikations-Zeit von $DateiName konnte nicht geändert werden."; } tmpfile umask...
PHP Manual
[ touch php.net ]

PHP Funktion
Extending PHP 3 ( phplist Code 20% Relevanz )
Rubrik
PHP und Zend Engine Interna
Kurzform
-----
Vorschau
... counterparts" is: if you efree() something which was not emalloc()'ed nor estrdup()'ed you might get a segmentation fault. So please take care and free all of your wasted memory. If you compile with "-DDEBUG", PHP will print out a list of all memory that was allocated using emalloc() and estrdup() but never freed with efree() when it is done running the specified script. Setting Variables in the Symbol Table A number of macros are available ...
PHP Manual
[ Extending PHP 3 php.net ]

PHP Funktion
Hash Funktionen ( phplist Code 20% Relevanz )
Rubrik
Funktionsreferenz
Kurzform
-----
Vorschau
.... Mhash wird verwendet um z.B. Checksummen und Mehr zu erstellen. Beispiel 1. Berechne den MD5 Extrakt und gib es als Hex aus <?php $input = "what do ya want for nothing?" ; $hash = mhash ( MHASH_MD5 , $input ); print "Der Hash ist " . bin2hex ( $hash ). "\n&lt;br>" ; $hash = mhash ( MHASH_MD5 , $input , "Jefe" ); print "Der hmac ist " . bin2hex ( $hash ). "\n&lt;br>" ; ?> Die Ausgabe ist: Der Hash ist ...
PHP Manual
[ Hash Funktionen php.net ]

PHP Funktion
WDDX Funktionen ( phplist Code 20% Relevanz )
Rubrik
Funktionsreferenz
Kurzform
-----
Vorschau
... 'Structure' serialisiert wird. Wenn das erste Element einen String als Schlüssel hat, wird das Array in eine 'Structure' serialisiert, andernfalls in ein Array. Beispiel 1. Einen einzelnen String serialisieren <?php print wddx_serialize_value ( "PHP to WDDX packet example" , "PHP packet" ); ?> dieses Beispiel erzeugt: <wddxPacket version='1.0'><header comment='PHP packet'/><data> <string>PHP to WDDX packet ...
PHP Manual
[ WDDX Funktionen php.net ]

PHP Funktion
geoip_country_code_by_name ( phplist Code 19% Relevanz )
Rubrik
GeoIP Functions
Kurzform
geoip_country_code_by_name -- Get the two letter country code
Vorschau
... is to be looked-up. Rückgabewerte Returns the two letter ISO country code on success, or FALSE if the address cannot be found in the database. Beispiele Beispiel 1. A geoip_country_code_by_name() example This will print where the host example.com is located. <?php $country = geoip_country_code_by_name ( 'www.example.com' ); if ( $country ) { echo 'This host is located in: ' . $country ; } ?> Das oben gezeigte Beispiel erzeugt ...
PHP Manual
[ geoip_country_code_by_name php.net ]

PHP Funktion
geoip_country_code3_by_name ( phplist Code 19% Relevanz )
Rubrik
GeoIP Functions
Kurzform
geoip_country_code3_by_name -- Get the three letter country code
Vorschau
... is to be looked-up. Rückgabewerte Returns the three letter country code on success, or FALSE if the address cannot be found in the database. Beispiele Beispiel 1. A geoip_country_code3_by_name() example This will print where the host example.com is located. <?php $country = geoip_country_code3_by_name ( 'www.example.com' ); if ( $country ) { echo 'This host is located in: ' . $country ; } ?> Das oben gezeigte Beispiel erzeugt ...
PHP Manual
[ geoip_country_code3_by_name php.net ]

PHP Funktion
geoip_country_name_by_name ( phplist Code 19% Relevanz )
Rubrik
GeoIP Functions
Kurzform
geoip_country_name_by_name -- Get the full country name
Vorschau
... whose location is to be looked-up. Rückgabewerte Returns the country name on success, or FALSE if the address cannot be found in the database. Beispiele Beispiel 1. A geoip_country_name_by_name() example This will print where the host example.com is located. <?php $country = geoip_country_name_by_name ( 'www.example.com' ); if ( $country ) { echo 'This host is located in: ' . $country ; } ?> Das oben gezeigte Beispiel erzeugt ...
PHP Manual
[ geoip_country_name_by_name php.net ]

PHP Funktion
ibase_num_fields ( phplist Code 19% Relevanz )
Rubrik
InterBase-Funktionen
Kurzform
ibase_num_fields -- Ermittelt die Anzahl der Felder einer Ergebnis-Liste
Vorschau
...;?php $dbh = ibase_connect ( $host , $username , $password ); $stmt = 'SELECT * FROM tblname' ; $sth = ibase_query ( $dbh , $stmt ); if ( ibase_num_fields ( $sth ) > 0 ) { while ( $row = ibase_fetch_object ( $sth )) { print $row -> email . "\n" ; } } else { die ( "Keine Ergebnisse für ihre Abfrage" ); } ibase_close ( $dbh ); ?> Siehe auch: ibase_field_info() . Anmerkung: ibase_num_fields() funktioniert z.Zt. nicht bei PHP 4. ...
PHP Manual
[ ibase_num_fields php.net ]

PHP Funktion
maxdb_use_result ( phplist Code 19% Relevanz )
Rubrik
MaxDB PHP Extension
Kurzform
maxdb_use_result (no version information might be only in CVS)maxdb->use_result -- Initiate a result set retrieval
Vorschau
... also maxdb_real_query() , maxdb_store_result() . Example Beispiel 1. Object oriented style <?php $maxdb = new maxdb ( "localhost" , "MONA" , "RED" , "DEMODB" ); /* check connection */ if ( maxdb_connect_errno ()) { printf ( "Connect failed: %s\n" , maxdb_connect_error ()); exit(); } $query = "SELECT * FROM DUAL" ; /* execute multi query */ if ( $maxdb -> multi_query ( $query )) { do { /* store first result set */ if ( $result = $maxdb...
PHP Manual
[ maxdb_use_result php.net ]

PHP Funktion
ociserverversion ( phplist Code 19% Relevanz )
Rubrik
Oracle 8 Funktionen
Kurzform
ociserverversion -- Return a string containing server version information.
Vorschau
...3.0.4, PHP 4, PHP 5) ociserverversion -- Return a string containing server version information. Beschreibung string OCIServerVersion ( int conn ) Beispiel 1. OCIServerVersion <?php $conn = OCILogon("scott","tiger"); print "Server Version: " . OCIServerVersion($conn); OCILogOff($conn);?> ocisavelobfile ocisetprefetch...
PHP Manual
[ ociserverversion php.net ]

PHP Funktion
PDO->query() ( phplist Code 19% Relevanz )
Rubrik
PDO-Funktionen
Kurzform
PDO->query() -- Executes an SQL statement returning a result set as a PDOStatement object
Vorschau
... the rowset returned by a successfully executed SELECT statement. <?php function getFruit ( $conn ) { $sql = 'SELECT name, colour, calories FROM fruit ORDER BY name' ; foreach ( $conn -> query ( $sql ) as $row ) { print $row [ 'NAME' ] . "\t" ; print $row [ 'COLOUR' ] . "\t" ; print $row [ 'CALORIES' ] . "\n" ; } } ?> Das oben gezeigte Beispiel erzeugt folgendeAusgabe: apple red 150banana yellow 250kiwi brown 75lemon yellow 25orange ...
PHP Manual
[ PDO->query() php.net ]

PHP Funktion
PDO->quote() ( phplist Code 19% Relevanz )
Rubrik
PDO-Funktionen
Kurzform
PDO->quote() -- Quotes a string for use in a query.
Vorschau
.... Returns FALSE if the driver does not support quoting in this way. Beispiele Beispiel 1. Quoting a normal string <?php $conn = new PDO ( 'sqlite:/home/lynn/music.sql3' ); /* Simple string */ $string = 'Nice' ; print "Unquoted string: $string \n " ; print "Quoted string: " . $conn -> quote ( $string ) . "\n" ; ?> Das oben gezeigte Beispiel erzeugt folgendeAusgabe: Unquoted string: NiceQuoted string: 'Nice' Beispiel 2. Quoting a ...
PHP Manual
[ PDO->quote() php.net ]

PHP Funktion
ps_makespotcolor ( phplist Code 19% Relevanz )
Rubrik
PostScript document creation
Kurzform
ps_makespotcolor -- Create spot color
Vorschau
...from the current fill color. The fill color must be defined in rgb, cmyk or gray colorspace. The spot color name can be an arbitrary name. A spot color can be set as any color with ps_setcolor() . When the document is not printed but displayed by an postscript viewer the given color in the specified color space is use. Parameter Liste psdoc Resource identifier of the postscript file as returned by ps_new() . name Name of the spot color, e.g. ...
PHP Manual
[ ps_makespotcolor php.net ]

PHP Funktion
register_shutdown_function ( phplist Code 19% Relevanz )
Rubrik
Function Handling functions
Kurzform
register_shutdown_function -- Registriert eine Funktion zur Ausführung beim Skript-Abschluss
Vorschau
... Funktion wird im Skript zwecks Ausführung an dessen Ende eingetragen. Bekannte Problemfälle: Da innerhalb dieser Funktion keinerlei Ausgabe im Browser erzeugt werden, können sie die registrierte Funktion nicht mit print oder echo usw. debuggen. get_defined_functions register_tick_function...
PHP Manual
[ register_shutdown_function php.net ]

PHP Funktion
Expect Functions ( phplist Code 19% Relevanz )
Rubrik
Funktionsreferenz
Kurzform
-----
Vorschau
... timeout of seconds, specified in value of expect.timeout EXP_FULLBUFFER ( integer ) Value, returned by expect_expectl() if no pattern have been matched. Beispiele This example connects to the remote host via SSH, and prints the remote uptime. Beispiel 1. Expect Usage Example <?php ini_set ( "expect.loguser" , "Off" ); $stream = fopen ( "expect://ssh root@remotehost uptime" , "r" ); $cases = array ( array ( 0 => "password:" , 1 => ...
PHP Manual
[ Expect Functions php.net ]

PHP Funktion
Semaphor und Shared Memory Funktionen ( phplist Code 19% Relevanz )
Rubrik
Funktionsreferenz
Kurzform
-----
Vorschau
... anfordern if(! sem_acquire ( $skey )) { echo "sem_acquire fehlgeschlagen<br>\n" ; exit;} // Wert lesen, aktualisieren und schreiben $val = @ shm_get_var ( $mkey , 1 ); if( $val === false ) $val = 1 ; else $val ++; print "new value is $val<br> \n " ; shm_put_var ( $mkey , 1 , $val ); // Zugriff freigeben sem_release ( $skey ); ?> Inhaltsverzeichnis ftok -- Convert a pathname and a project identifier to a System V IPC key ...
PHP Manual
[ Semaphor und Shared Memory Funktionen php.net ]

PHP Funktion
geoip_org_by_name ( phplist Code 18% Relevanz )
Rubrik
GeoIP Functions
Kurzform
geoip_org_by_name -- Get the organization name
Vorschau
... hostname The hostname or IP address. Rückgabewerte Returns the organization name on success, or FALSE if the address cannot be found in the database. Beispiele Beispiel 1. A geoip_org_by_name() example This will print to whom the host example.com IP is allocated. <?php $org = geoip_country_code_by_name ( 'www.example.com' ); if ( $org ) { echo 'This host IP is allocated to: ' . $org ; } ?> Das oben gezeigte Beispiel erzeugt ...
PHP Manual
[ geoip_org_by_name php.net ]

PHP Funktion
imap_getmailboxes ( phplist Code 18% Relevanz )
Rubrik
IMAP POP3 und NNTP Funktionen
Kurzform
imap_getmailboxes -- Liefert detailierte Informationen über eine Auswahl von Postfächern
Vorschau
...", "password", OP_HALFOPEN) || die ("can't connect: " . imap_last_error()); $list = imap_getmailboxes ($mbox, "{your.imap.host}", "*"); if (is_array ($list)) { reset ($list); while (list( $key, $val) = each ($list)) { print "($key) "; print imap_utf7_decode ($val->name) . ","; print "'" . $val->delimiter . "',"; print $val->attributes . "<br>\n"; } } else { print "imap_getmailboxes failed: " . imap_last_error() . "\n"; } ...
PHP Manual
[ imap_getmailboxes php.net ]

PHP Funktion
mysqli_use_result ( phplist Code 18% Relevanz )
Rubrik
Verbesserte MySQL Erweiterung
Kurzform
mysqli_use_result (no version information might be only in CVS)mysqli->use_result -- Initiate a result set retrieval
Vorschau
...() und mysqli_store_result() . Beispiele Beispiel 1. Object oriented style <?php $mysqli = new mysqli ( "localhost" , "my_user" , "my_password" , "world" ); /* check connection */ if ( mysqli_connect_errno ()) { printf ( "Connect failed: %s\n" , mysqli_connect_error ()); exit(); } $query = "SELECT CURRENT_USER();" ; $query .= "SELECT Name FROM City ORDER BY ID LIMIT 20, 5" ; /* execute multi query */ if ( $mysqli -> multi_query ( $...
PHP Manual
[ mysqli_use_result php.net ]

PHP Funktion
PDOStatement->errorCode() ( phplist Code 18% Relevanz )
Rubrik
PDO-Funktionen
Kurzform
PDOStatement->errorCode() -- Fetch the SQLSTATE associated with the last operation on the statement handle
Vorschau
... 1. Retrieving a SQLSTATE code <?php /* Provoke an error -- the BONES table does not exist */ $err = $dbh -> prepare ( 'SELECT skull FROM bones' ); $err -> execute (); echo "\nPDOStatement::errorCode(): " ; print $err -> errorCode (); ?> Das oben gezeigte Beispiel erzeugt folgendeAusgabe: PDOStatement::errorCode(): 42S02 Siehe auch PDO->errorCode() PDO->errorInfo() PDOStatement->errorInfo() PDOStatement->...
PHP Manual
[ PDOStatement->errorCode() php.net ]

PHP Funktion
PDOStatement->rowCount() ( phplist Code 18% Relevanz )
Rubrik
PDO-Funktionen
Kurzform
PDOStatement->rowCount() -- Returns the number of rows affected by the last SQL statement
Vorschau
... by a DELETE, INSERT, or UPDATE statement. <?php /* Delete all rows from the FRUIT table */ $del = $dbh -> prepare ( 'DELETE FROM fruit' ); $del -> execute (); /* Return number of rows that were deleted */ print( "Return number of rows that were deleted:\n" ); $count = $del -> rowCount (); print( "Deleted $count rows. \n " ); ?> Das oben gezeigte Beispiel erzeugt folgendeAusgabe: Deleted 9 rows. Beispiel 2. Counting rows ...
PHP Manual
[ PDOStatement->rowCount() php.net ]

PHP Funktion
Arrays ( phplist Code 18% Relevanz )
Rubrik
Typen
Kurzform
-----
Vorschau
...Er muss nur irgendwann im Array existiert haben, seitdem es zum letzten Mal neu indiziert wurde. Folgendes Beispiel zur Veranschaulichung: <?php // Wir erzeugen ein einfaches Array $array = array( 1 , 2 , 3 , 4 , 5 ); print_r ( $array ); // Nun löschen wir alle Elemente, lassen das Array selbst // aber intakt: foreach ( $array as $i => $wert ) { unset( $array [ $i ]); } print_r ( $array ); // Wir hängen ein Element an (beachten Sie, dass ...
PHP Manual
[ Arrays php.net ]

PHP Funktion
fgetcsv ( phplist Code 17% Relevanz )
Rubrik
Funktionen des Dateisystems
Kurzform
fgetcsv -- Liest eine Zeile von der Position des Dateizeigers und prüft diese auf Komma-Separierte-Werte (CSV)
Vorschau
...Datei zum Lesen öffnen while ( ( $data = fgetcsv ( $handle , 1000 , "," )) !== FALSE ) { // Daten werden aus der Datei // in ein Array $data gelesen $num = count ( $data ); // Felder im Array $data // werden gezählt print "<p> $num fields in line $row: <br> \n " ; $row ++; // Anzahl der Arrays wird // inkrementiert for ( $c = 0 ; $c < $num ; $c ++) { // FOR-Schleife, um Felder print $data [ $c ] . "<br>\n" ; // des ...
PHP Manual
[ fgetcsv php.net ]

PHP Funktion
ibase_fetch_object ( phplist Code 17% Relevanz )
Rubrik
InterBase-Funktionen
Kurzform
ibase_fetch_object -- Liest einen Datensatz einer InterBase-Datenbank als Objekt ein
Vorschau
...() gewonnenen result_id in ein Pseudo-Objekt ein. <php $dbh = ibase_connect ($host, $username, $password); $stmt = 'SELECT * FROM tblname'; $sth = ibase_query ($dbh, $stmt); while ($row = ibase_fetch_object ($sth)) { print $row->email . "\n"; } ibase_close ($dbh); ?> Siehe auch ibase_fetch_row() . ibase_fetch_assoc ibase_fetch_row...
PHP Manual
[ ibase_fetch_object php.net ]

PHP Funktion
imap_createmailbox ( phplist Code 17% Relevanz )
Rubrik
IMAP POP3 und NNTP Funktionen
Kurzform
imap_createmailbox -- Erzeugt ein neues Postfach
Vorschau
... it to restore# your inbox to its initial state if (@imap_createmailbox ($mbox,imap_utf7_encode ("{your.imap.host}INBOX.$newname"))) { $status = @imap_status($mbox,"{your.imap.host}INBOX.$newname",SA_ALL); if($status) { print("your new mailbox '$name1' has the following status:<br>\n"); print("Messages: ". $status->messages )."<br>\n"; print("Recent: ". $status->recent )."<br>\n"; print("Unseen: ". $status->...
PHP Manual
[ imap_createmailbox php.net ]

PHP Funktion
imap_fetch_overview ( phplist Code 17% Relevanz )
Rubrik
IMAP POP3 und NNTP Funktionen
Kurzform
imap_fetch_overview -- Liefert einen Auszug aus den Header-Feldern von Nachrichten
Vorschau
...username", "password") || die ("can't connect: " . imap_last_error()); $overview = imap_fetch_overview ($mbox, "2,4:6", 0); if (is_array ($overview )) { reset ($overview); while (list ($key, $val) = each ($overview)) { print $val->msgno . " - " . $val->date . " - " . $val->subject . "\n"; } } imap_close ($mbox); imap_expunge imap_fetchbody...
PHP Manual
[ imap_fetch_overview php.net ]

PHP Funktion
maxdb_get_host_info ( phplist Code 17% Relevanz )
Rubrik
MaxDB PHP Extension
Kurzform
maxdb_get_host_info (no version information might be only in CVS)maxdb->get_host_info -- Returns a string representing the type of connection used
Vorschau
... connection type. See also maxdb_get_proto_info() Example Beispiel 1. Object oriented style <?php $maxdb = new maxdb ( "localhost" , "MONA" , "RED" , "DEMODB" ); /* check connection */ if ( maxdb_connect_errno ()) { printf ( "Connect failed: %s\n" , maxdb_connect_error ()); exit(); } /* print host information */ printf ( "Host info: %s\n" , $maxdb -> host_info ); /* close connection */ $maxdb -> close (); ?> Beispiel 2. Procedural...
PHP Manual
[ maxdb_get_host_info php.net ]

PHP Funktion
mysqli_multi_query ( phplist Code 17% Relevanz )
Rubrik
Verbesserte MySQL Erweiterung
Kurzform
mysqli_multi_query (no version information might be only in CVS)mysqli->multi_query -- Performs a query on the database
Vorschau
...() und mysqli_more_results() . Beispiele Beispiel 1. Object oriented style <?php $mysqli = new mysqli ( "localhost" , "my_user" , "my_password" , "world" ); /* check connection */ if ( mysqli_connect_errno ()) { printf ( "Connect failed: %s\n" , mysqli_connect_error ()); exit(); } $query = "SELECT CURRENT_USER();" ; $query .= "SELECT Name FROM City ORDER BY ID LIMIT 20, 5" ; /* execute multi query */ if ( $mysqli -> multi_query ( $...
PHP Manual
[ mysqli_multi_query php.net ]

PHP Funktion
PDOStatement->bindColumn() ( phplist Code 17% Relevanz )
Rubrik
PDO-Funktionen
Kurzform
PDOStatement->bindColumn() -- Bind a column to a PHP variable
Vorschau
... -> bindColumn ( 2 , $colour ); /* Bind by column name */ $stmt -> bindColumn ( 'calories' , $cals ); while ( $row = $stmt -> fetch ( PDO :: FETCH_BOUND )) { $data = $name . "\t" . $colour . "\t" . $cals . "\n" ; print $data ; } } catch ( PDOException $e ) { print $e -> getMessage (); } } readData ( $dbh ); ?> Das oben gezeigte Beispiel erzeugt folgendeAusgabe: apple red 150banana yellow 175kiwi green 75orange orange 150mango red ...
PHP Manual
[ PDOStatement->bindColumn() php.net ]

PHP Funktion
PDOStatement->nextRowset() ( phplist Code 17% Relevanz )
Rubrik
PDO-Funktionen
Kurzform
PDOStatement->nextRowset() -- Advances to the next rowset in a multi-rowset statement handle
Vorschau
...terminates the loop when no more rowsets can be returned. <?php $sql = 'CALL multiple_rowsets()' ; $stmt = $conn -> query ( $sql ); $i = 1 ; do { $rowset = $stmt -> fetchAll ( PDO :: FETCH_NUM ); if ( $rowset ) { printResultSet ( $rowset , $i ); } $i ++; } while ( $stmt -> nextRowset ()); function printResultSet (& $rowset , $i ) { print "Result set $i: \n " ; foreach ( $rowset as $row ) { foreach ( $row as $col ) { print $col...
PHP Manual
[ PDOStatement->nextRowset() php.net ]

PHP Funktion
extends ( phplist Code 17% Relevanz )
Rubrik
Klassen und Objekte
Kurzform
-----
Vorschau
...bestimmen und erfragen. Sie können noch immer die normalen Cart Funktionen an Named_Cart anwenden: $ncart = new Named_Cart; // Erstellt einen bestimmten Einkaufwagen $ncart->set_owner("kris"); // den Besitzer festlegen print $ncart->owner; // den Besitzer ausgeben $ncart->add_item("10", 1); // (vererbte Funktionalität von Cart) Dies wird auch eine "Eltern-Kind" Beziehung genannt. Sie erstellen eine Klasse ("Eltern"), und erstellen ...
PHP Manual
[ extends php.net ]

PHP Funktion
Kontroll-Strukturen ( phplist Code 17% Relevanz )
Rubrik
Sprachreferenz
Kurzform
-----
Vorschau
... Anweisungen in Gruppen zusammenfassen. Der folgende Programm-Code wird zum Beispiel a ist größer als b anzeigen, wenn $a größer als $b ist und danach wird der Wert von $a in $b gespeichert: <?php if ( $a > $b ) { print "a ist größer als b" ; $b = $a ; } ?> if -Anweisungen können beliebig oft innerhalb anderer if -Anweisungen definiert werden. Das ermöglicht ihnen völlige Flexibilität bei der bedingten Ausführung verschiedenster ...
PHP Manual
[ Kontroll-Strukturen php.net ]

PHP Funktion
Klassenabstraktion ( phplist Code 17% Relevanz )
Rubrik
Klassen und Objekte (PHP 5)
Kurzform
-----
Vorschau
... class AbstractClass { // Die abgeleitete Klasse zwingen, diese Methoden zu definieren abstract protected function getValue (); abstract protected function prefixValue ( $prefix ); // Gemeinsame Methode public function printOut () { print $this -> getValue () . "\n" ; } } class ConcreteClass1 extends AbstractClass { protected function getValue () { return "ConcreteClass1" ; } public function prefixValue ( $prefix ) { return " { $prefix } ...
PHP Manual
[ Klassenabstraktion php.net ]

PHP Funktion
MaxDB PHP Extension ( phplist Code 17% Relevanz )
Rubrik
Funktionsreferenz
Kurzform
-----
Vorschau
..., you have to load the tutorial data into your database. Then you have to set maxdb.default_db in php.ini to the database that contains the tutorial data. This simple example shows how to connect, execute a query, print resulting rows and disconnect from a MaxDB database. Beispiel 1. MaxDB extension overview example <?php $link = maxdb_connect ( "localhost" , "MONA" , "RED" , "DEMODB" ); /* check connection */ if ( maxdb_connect_errno...
PHP Manual
[ MaxDB PHP Extension php.net ]

PHP Funktion
Ncurses Terminal Screen Control Functions ( phplist Code 17% Relevanz )
Rubrik
Funktionsreferenz
Kurzform
-----
Vorschau
... next page NCURSES_KEY_PPAGE previous page NCURSES_KEY_STAB set tab NCURSES_KEY_CTAB clear tab NCURSES_KEY_CATAB clear all tabs NCURSES_KEY_SRESET soft (partial) reset NCURSES_KEY_RESET reset or hard reset NCURSES_KEY_PRINT print NCURSES_KEY_LL lower left NCURSES_KEY_A1 upper left of keypad NCURSES_KEY_A3 upper right of keypad NCURSES_KEY_B2 center of keypad NCURSES_KEY_C1 lower left of keypad NCURSES_KEY_C3 lower right of keypad ...
PHP Manual
[ Ncurses Terminal Screen Control Functions php.net ]

PHP Funktion
geoip_record_by_name ( phplist Code 16% Relevanz )
Rubrik
GeoIP Functions
Kurzform
geoip_record_by_name -- Returns the detailed City information found in the GeoIP Database
Vorschau
...address whose record is to be looked-up. Rückgabewerte Returns the associative array on success, or FALSE if the address cannot be found in the database. Beispiele Beispiel 1. A geoip_record_by_name() example This will print the array containing the record of host example.com. <?php $record = geoip_record_by_name ( 'www.example.com' ); if ( $record ) { print_r ( $record ); } ?> Das oben gezeigte Beispiel erzeugt folgendeAusgabe: Array...
PHP Manual
[ geoip_record_by_name php.net ]

PHP Funktion
geoip_region_by_name ( phplist Code 16% Relevanz )
Rubrik
GeoIP Functions
Kurzform
geoip_region_by_name -- Get the country code and region
Vorschau
...address whose region is to be looked-up. Rückgabewerte Returns the associative array on success, or FALSE if the address cannot be found in the database. Beispiele Beispiel 1. A geoip_region_by_name() example This will print the array containing the country code and region of the host example.com. <?php $region = geoip_region_by_name ( 'www.example.com' ); if ( $region ) { print_r ( $region ); } ?> Das oben gezeigte Beispiel erzeugt ...
PHP Manual
[ geoip_region_by_name php.net ]

PHP Funktion
ircg_fetch_error_msg ( phplist Code 16% Relevanz )
Rubrik
IRC Gateway Funktionen
Kurzform
ircg_fetch_error_msg -- Liefert den Fehler des letzten ircg Funktionsaufrufes.
Vorschau
...Anmerkung: Die Fehlernummer wird im ersten Element des Arrays geliefert, der Fehlertext im zweiten Parameter. Beispiel 1. ircg_fetch_error_msg() Beispiel if (!ircg_join ($id, "#php")){ $error = ircg_fetch_error_msg($id); print ("Can't join channel #php. Errorcode: $error[0] Description: $error[1]"); } ircg_eval_ecmascript_params ircg_get_username...
PHP Manual
[ ircg_fetch_error_msg php.net ]

PHP Funktion
mysqli_get_host_info ( phplist Code 16% Relevanz )
Rubrik
Verbesserte MySQL Erweiterung
Kurzform
mysqli_get_host_info (no version information might be only in CVS)mysqli->get_host_info -- Returns a string representing the type of connection used
Vorschau
...Siehe auch mysqli_get_proto_info() . Beispiele Beispiel 1. Object oriented style <?php $mysqli = new mysqli ( "localhost" , "my_user" , "my_password" , "world" ); /* check connection */ if ( mysqli_connect_errno ()) { printf ( "Connect failed: %s\n" , mysqli_connect_error ()); exit(); } /* print host information */ printf ( "Host info: %s\n" , $mysqli -> host_info ); /* close connection */ $mysqli -> close (); ?> Beispiel 2. ...
PHP Manual
[ mysqli_get_host_info php.net ]

PHP Funktion
newt_get_screen_size ( phplist Code 16% Relevanz )
Rubrik
Newt Functions
Kurzform
newt_get_screen_size -- Fills in the passed references with the current size of the terminal
Vorschau
... Number of columns in the terminal rows Number of rows in the terminal Rückgabewerte This function returns values in an argument, passed by reference. Beispiele Beispiel 1. A newt_get_screen_size() example This code prints out the screen size of your terminal. <?php newt_init (); newt_get_screen_size (& $cols , & $rows ); newt_finished (); print "Your terminal size is: { $cols } x { $rows }\n " ; ?> Das oben gezeigte Beispiel...
PHP Manual
[ newt_get_screen_size php.net ]

PHP Funktion
PDO->errorCode() ( phplist Code 16% Relevanz )
Rubrik
PDO-Funktionen
Kurzform
PDO->errorCode() -- Fetch the SQLSTATE associated with the last operation on the database handle
Vorschau
... handle. Beispiele Beispiel 1. Retrieving a SQLSTATE code <?php /* Provoke an error -- the BONES table does not exist */ $dbh -> exec ( "INSERT INTO bones(skull) VALUES ('lucy')" ); echo "\nPDO::errorCode(): " ; print $dbh -> errorCode (); ?> Das oben gezeigte Beispiel erzeugt folgendeAusgabe: PDO::errorCode(): 42S02 Siehe auch PDO->errorInfo() PDOStatement->errorCode() PDOStatement->errorInfo() PDO->...
PHP Manual
[ PDO->errorCode() php.net ]

PHP Funktion
PDOStatement->setFetchMode() ( phplist Code 16% Relevanz )
Rubrik
PDO-Funktionen
Kurzform
PDOStatement->setFetchMode() -- Set the default fetch mode for this statement
Vorschau
... a PDOStatement object. <?php $sql = 'SELECT name, colour, calories FROM fruit' ; try { $stmt = $dbh -> query ( $sql ); $result = $stmt -> setFetchMode ( PDO :: FETCH_NUM ); while ( $row = $stmt -> fetch ()) { print $row [ 0 ] . "\t" . $row [ 1 ] . "\t" . $row [ 2 ] . "\n" ; } } catch ( PDOException $e ) { print $e -> getMessage (); } ?> Das oben gezeigte Beispiel erzeugt folgendeAusgabe: apple red 150banana yellow 250orange ...
PHP Manual
[ PDOStatement->setFetchMode() php.net ]

PHP Funktion
maxdb_character_set_name ( phplist Code 14% Relevanz )
Rubrik
MaxDB PHP Extension
Kurzform
maxdb_character_set_name (no version information might be only in CVS)maxdb->character_set_name -- Returns the default character set for the database connection
Vorschau
...maxdb_real_escape_string() . Example Beispiel 1. Object oriented style <?php /* Open a connection */ $maxdb = new maxdb ( "localhost" , "MONA" , "RED" , "DEMODB" ); /* check connection */ if ( maxdb_connect_errno ()) { printf ( "Connect failed: %s\n" , maxdb_connect_error ()); exit(); } /* Print current character set */ $charset = $maxdb -> character_set_name (); printf ( "Current character set is %s\n" , $charset ); $maxdb -> close...
PHP Manual
[ maxdb_character_set_name php.net ]

PHP Funktion
db2_execute ( phplist Code 13% Relevanz )
Rubrik
IBM DB2 Cloudscape and Apache Derby Functions
Kurzform
db2_execute -- Executes a prepared SQL statement
Vorschau
...0 , 'cat' , 'Pook' , 3.2 ); $insert = 'INSERT INTO animals (id, breed, name, weight) VALUES (?, ?, ?, ?)' ; $stmt = db2_prepare ( $conn , $insert ); if ( $stmt ) { $result = db2_execute ( $stmt , $pet ); if ( $result ) { print "Successfully added new pet." ; } } ?> Das oben gezeigte Beispiel erzeugt folgendeAusgabe: Successfully added new pet. Beispiel 2. Calling a stored procedure with an OUT parameter The following example prepares a CALL...
PHP Manual
[ db2_execute php.net ]

PHP Funktion
DOMImplementation->createDocumentType() ( phplist Code 13% Relevanz )
Rubrik
DOM Functions
Kurzform
DOMImplementation->createDocumentType() -- Creates an empty DOMDocumentType object
Vorschau
... $dom -> encoding = 'UTF-8' ; $dom -> standalone = false ; // Create an empty element $element = $dom -> createElement ( 'graph' ); // Append the element $dom -> appendChild ( $element ); // Retrieve and print the document echo $dom -> saveXML (); ?> Das oben gezeigte Beispiel erzeugt folgendeAusgabe: <?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE graph SYSTEM "graph.dtd"><graph/> ...
PHP Manual
[ DOMImplementation->createDocumentType() php.net ]

PHP Funktion
imap_check ( phplist Code 13% Relevanz )
Rubrik
IMAP POP3 und NNTP Funktionen
Kurzform
imap_check -- Prüft den Status des aktuelle Postfachs
Vorschau
... Nachrichten im Postfach Beispiel 1. imap_check() Beispiel $mbox = imap_open ("{your.imap.host}INBOX", "username", "password") || die ("can't connect: " . imap_last_error()); $check = imap_check ($mbox); if($check) { print "Date: " . $check->Date . "<br>\n" ; print "Driver: " . $check->Driver . "<br>\n" ; print "Mailbox: " . $check->Mailbox . "<br>\n" ; print "Messages: " . $check->Nmsgs . "<br>\n" ; ...
PHP Manual
[ imap_check php.net ]

PHP Funktion
imap_rfc822_parse_adrlist ( phplist Code 13% Relevanz )
Rubrik
IMAP POP3 und NNTP Funktionen
Kurzform
imap_rfc822_parse_adrlist -- Parsen eines Adress-Strings
Vorschau
..."; $address_array = imap_rfc822_parse_adrlist ($address_string, "somedomain.net"); if (! is_array ($address_array)) die ("somethings wrong\n"); reset ($address_array); while (list( $key, $val) = each ($address_array)) { print "mailbox : " . $val->mailbox . "<br>\n"; print "host : " . $val->host . "<br>\n"; print "personal: " . $val->personal . "<br>\n"; print "adl : " . $val->adl . "<p>\n"; } imap_reopen...
PHP Manual
[ imap_rfc822_parse_adrlist php.net ]

PHP Funktion
mysqli_character_set_name ( phplist Code 13% Relevanz )
Rubrik
Verbesserte MySQL Erweiterung
Kurzform
mysqli_character_set_name (no version information might be only in CVS)mysqli->character_set_name -- Returns the default character set for the database connection
Vorschau
...() . Beispiele Beispiel 1. Object oriented style <?php /* Open a connection */ $mysqli = new mysqli ( "localhost" , "my_user" , "my_password" , "world" ); /* check connection */ if ( mysqli_connect_errno ()) { printf ( "Connect failed: %s\n" , mysqli_connect_error ()); exit(); } /* Print current character set */ $charset = $mysqli -> character_set_name (); printf ( "Current character set is %s\n" , $charset ); $mysqli -> close...
PHP Manual
[ mysqli_character_set_name php.net ]

PHP Funktion
mysqli_get_server_version ( phplist Code 13% Relevanz )
Rubrik
Verbesserte MySQL Erweiterung
Kurzform
mysqli_get_server_version -- Returns the version of the MySQL server as an integer
Vorschau
...() und mysqli_get_server_info() . Beispiele Beispiel 1. Object oriented style <?php $mysqli = new mysqli ( "localhost" , "my_user" , "my_password" ); /* check connection */ if ( mysqli_connect_errno ()) { printf ( "Connect failed: %s\n" , mysqli_connect_error ()); exit(); } /* print server version */ printf ( "Server version: %d\n" , $mysqli -> server_version ); /* close connection */ $mysqli -> close (); ?> Beispiel 2...
PHP Manual
[ mysqli_get_server_version php.net ]

PHP Funktion
Handling of global variables ( phplist Code 12% Relevanz )
Rubrik
Migrating from PHP 3 to PHP 4
Kurzform
-----
Vorschau
... most cases. Read more on this subject in the global references section . Beispiel C-1. Migration of global variables <?php $id = 1 ; function test () { global $id ; unset( $id ); } test (); echo( $id ); // This will print out 1 in PHP 4 ?> Cookies Migration von PHP/FI 2.0 zu PHP 3.0...
PHP Manual
[ Handling of global variables php.net ]

PHP Funktion
db2_autocommit ( phplist Code 11% Relevanz )
Rubrik
IBM DB2 Cloudscape and Apache Derby Functions
Kurzform
db2_autocommit -- Returns or sets the AUTOCOMMIT state for a database connection
Vorschau
... with the db2_autocommit() function. <?php $options = array( 'autocommit' => DB2_AUTOCOMMIT_OFF ); $conn = db2_connect ( $database , $user , $password , $options ); $ac = db2_autocommit ( $conn ); if ( $ac == 0 ) { print "$ac -- AUTOCOMMIT is off." ; } else { print "$ac -- AUTOCOMMIT is on." ; } ?> Das oben gezeigte Beispiel erzeugt folgendeAusgabe: 0 -- AUTOCOMMIT is off. Beispiel 2. Setting the AUTOCOMMIT value for a connection In ...
PHP Manual
[ db2_autocommit php.net ]

PHP Funktion
db2_conn_error ( phplist Code 11% Relevanz )
Rubrik
IBM DB2 Cloudscape and Apache Derby Functions
Kurzform
db2_conn_error -- Returns a string containing the SQLSTATE returned by the last connection attempt
Vorschau
... The following example demonstrates how to return an SQLSTATE value after deliberately passing invalid parameters to db2_connect() . <?php $conn = db2_connect ( 'badname' , 'baduser' , 'badpassword' ); if (! $conn ) { print "SQLSTATE value: " . db2_conn_error (); } ?> Das oben gezeigte Beispiel erzeugt folgendeAusgabe: SQLSTATE value: 08001 Siehe auch db2_conn_errormsg() db2_connect() db2_stmt_error() db2_stmt_errormsg() db2_commit ...
PHP Manual
[ db2_conn_error php.net ]

PHP Funktion
db2_fetch_row ( phplist Code 11% Relevanz )
Rubrik
IBM DB2 Cloudscape and Apache Derby Functions
Kurzform
db2_fetch_row -- Sets the result set pointer to the next row or requested row
Vorschau
..., breed FROM animals WHERE weight < ?' ; $stmt = db2_prepare ( $conn , $sql ); db2_execute ( $stmt , array( 10 )); while ( db2_fetch_row ( $stmt )) { $name = db2_result ( $stmt , 0 ); $breed = db2_result ( $stmt , 1 ); print "$name $breed" ; } ?> Das oben gezeigte Beispiel erzeugt folgendeAusgabe: cat Pookgold fish Bubblesbudgerigar Gizmogoat Rickety Ride Beispiel 2. i5/OS recommended alternatives to db2_fetch_row/db2_result On i5/OS it ...
PHP Manual
[ db2_fetch_row php.net ]

PHP Funktion
db2_set_option ( phplist Code 11% Relevanz )
Rubrik
IBM DB2 Cloudscape and Apache Derby Functions
Kurzform
db2_set_option -- Set options for connection or statement resources
Vorschau
... resource, options array, and type values */ $option_result = db2_set_option ( $stmt , $options , 2 ); $result = db2_execute ( $stmt , array( '000130' , '000140' )); /* Get Row 2 before Row 1 since Scrollable Cursor */ print_r ( db2_fetch_assoc ( $stmt , 2 )); print '<br /><br />' ; print_r ( db2_fetch_assoc ( $stmt , 1 )); ?> Das oben gezeigte Beispiel erzeugt folgendeAusgabe: Array( [empno] => 000140 [firstnme] => ...
PHP Manual
[ db2_set_option php.net ]

PHP Funktion
Konstruktoren und Destruktoren ( phplist Code 11% Relevanz )
Rubrik
Klassen und Objekte (PHP 5)
Kurzform
-----
Vorschau
... zu benutzen ist ein Aufruf von parent::__construct() innerhalb des Kindkonstruktors notwendig. Beispiel 19-8. Die neuen, vereinheitlichten Konstruktoren verwenden <?php class BaseClass { function __construct () { print "Im BaseClass Konstruktor\n" ; } } class SubClass extends BaseClass { function __construct () { parent :: __construct (); print "Im SubClass Konstruktor\n" ; } } $obj = new BaseClass (); $obj = new SubClass (); ?> Für...
PHP Manual
[ Konstruktoren und Destruktoren php.net ]

PHP Funktion
dbase_numfields ( phplist Code 10% Relevanz )
Rubrik
dBase Funktionen
Kurzform
dbase_numfields -- Stellt fest wieviele Felder eine dBase-Datenbank hat
Vorschau
...1, wogegen die Datensatz-Werte zwischen 1 und dbase_numrecords($db) sein können. Beispiel 1. Gebrauch von dbase_numfields() $rec = dbase_get_record($db, $recno); $nf = dbase_numfields($db); for ($i=0; $i < $nf; $i++) { print $rec[$i]."<br>\n"; } dbase_get_record dbase_numrecords...
PHP Manual
[ dbase_numfields php.net ]

PHP Funktion
sesam_fetch_row ( phplist Code 10% Relevanz )
Rubrik
SESAM Datenbankfunktionen
Kurzform
sesam_fetch_row -- Lesen einer Zeile als Array
Vorschau
...verfügabr sind. Beispiel 1. SESAM fetch rows <?php $result = sesam_query ( "SELECT * FROM phone\n" . " WHERE LASTNAME='" . strtoupper ( $name ). "'\n" . " ORDER BY FIRSTNAME" , 1 ); if (! $result ) { ... error ... } // print the table in backward order print "<TABLE BORDER>\n" ; $row = sesam_fetch_row ( $result , SESAM_SEEK_LAST ); while ( is_array ( $row )) { print " <TR>\n" ; for( $col = 0 ; $col < $row [ "count" ]; ++ $col...
PHP Manual
[ sesam_fetch_row php.net ]

PHP Funktion
tidy_get_opt_doc ( phplist Code 10% Relevanz )
Rubrik
Tidy Functions
Kurzform
tidy_get_opt_doc -- Returns the documentation for the given option name
Vorschau
... this function be available. Parameter Liste object A tidy object optname The option name Rückgabewerte Returns a string if the option exists and has documentation available, or FALSE otherwise. Beispiele Beispiel 1. Print all options along with their documentation and default value <?php $tidy = new tidy ; $config = $tidy -> getConfig (); ksort ( $config ); foreach ( $config as $opt => $val ) { if (! $doc = $tidy -> getOptDoc...
PHP Manual
[ tidy_get_opt_doc php.net ]

PHP Funktion
Objektiteration ( phplist Code 10% Relevanz )
Rubrik
Klassen und Objekte (PHP 5)
Kurzform
-----
Vorschau
... = 'Wert 2' ; public $var3 = 'Wert 3' ; protected $protected = 'protected var' ; private $private = 'private var' ; function iterateVisible () { echo "MyClass::iterateVisible:\n" ; foreach( $this as $key => $value ) { print "$key => $value \n " ; } } } $class = new MyClass (); foreach( $class as $key => $value ) { print "$key => $value \n " ; } echo "\n" ; $class -> iterateVisible (); ?> Das oben gezeigte Beispiel erzeugt ...
PHP Manual
[ Objektiteration php.net ]

PHP Funktion
Data (RFC 2397) ( phplist Code 10% Relevanz )
Rubrik
List of Supported Protocols/Wrappers
Kurzform
-----
Vorschau
...Data (RFC 2397) PHP Handbuch Anhang M. List of Supported Protocols/Wrappers Data (RFC 2397) The data: ( RFC 2397 ) stream wrapper is available since PHP 5.2.0. Beispiel M-4. Print data:// contents <?php // prints "I love PHP" echo file_get_contents ( 'data://text/plain;base64,SSBsb3ZlIFBIUAo=' ); ?> Beispiel M-5. Fetch the media type <?php $fp = fopen ( 'data://text/plain;base64,' , 'r' ); $meta = stream_get_meta_data ( $fp...
PHP Manual
[ Data (RFC 2397) php.net ]

PHP Funktion
db2_conn_errormsg ( phplist Code 9% Relevanz )
Rubrik
IBM DB2 Cloudscape and Apache Derby Functions
Kurzform
db2_conn_errormsg -- Returns the last connection error message and SQLCODE value
Vorschau
... demonstrates how to return an error message and SQLCODE value after deliberately passing invalid parameters to db2_connect() . <?php $conn = db2_connect ( 'badname' , 'baduser' , 'badpassword' ); if (! $conn ) { print db2_conn_errormsg (); } ?> Das oben gezeigte Beispiel erzeugt folgendeAusgabe: [IBM][CLI Driver] SQL1013N The database alias nameor database name "BADNAME" could not be found. SQLSTATE=42705 SQLCODE=-1013 Siehe auch ...
PHP Manual
[ db2_conn_errormsg php.net ]

PHP Funktion
kadm5_get_policies ( phplist Code 9% Relevanz )
Rubrik
KADM5
Kurzform
kadm5_get_policies -- Gets all policies from the Kerberos database
Vorschau
... Returns array of policies on success, or FALSE on failure. Beispiele Beispiel 1. kadm5_get_policies() example <?php $handle = kadm5_init_with_password ( "afs-1" , "GONICUS.LOCAL" , "admin/admin" , "password" ); print "<h1>get_policies</h1>\n" ; foreach ( kadm5_get_policies ( $handle ) as $policy ) { echo "$policy<br /> \n " ; } kadm5_destroy ( $handle ); ?> kadm5_flush kadm5_get_principal...
PHP Manual
[ kadm5_get_policies php.net ]

PHP Funktion
maxdb_multi_query ( phplist Code 9% Relevanz )
Rubrik
MaxDB PHP Extension
Kurzform
maxdb_multi_query (no version information might be only in CVS)maxdb->multi_query -- Performs a query on the database
Vorschau
...() , maxdb_next_result() , maxdb_more_results() Example Beispiel 1. Object oriented style <?php $maxdb = new maxdb ( "localhost" , "MONA" , "RED" , "DEMODB" ); /* check connection */ if ( maxdb_connect_errno ()) { printf ( "Connect failed: %s\n" , maxdb_connect_error ()); exit(); } $query = "SELECT * FROM dual" ; /* execute multi query */ if ( $maxdb -> multi_query ( $query )) { do { /* store first result set */ if ( $result = $maxdb...
PHP Manual
[ maxdb_multi_query php.net ]

PHP Funktion
mysql_field_flags ( phplist Code 9% Relevanz )
Rubrik
MySQL Funktionen
Kurzform
mysql_field_flags -- Liefert die Flags eines Feldes in einem Anfrageergebnis
Vorschau
... <?php $result = mysql_query ( "SELECT id,email FROM people WHERE id = '42'" ); if (! $result ) { echo 'Abfrage konnte nicht ausgeführt werden: ' . mysql_error (); exit; } $flags = mysql_field_flags ( $result , 'id' ); print $flags ; print_r ( explode ( ' ' , $flags )); /* Die Ausgabe wird so ähnlich aussehen: not_null primary_key auto_increment Array ( [0] => not_null [1] => primary_key [2] => auto_increment ) */ ?> Für Abwä...
PHP Manual
[ mysql_field_flags php.net ]

PHP Funktion
SDO_Model_ReflectionDataObject::export ( phplist Code 9% Relevanz )
Rubrik
SDO Functions
Kurzform
SDO_Model_ReflectionDataObject::export -- Get a string describing the SDO_DataObject.
Vorschau
... ist, kann sich in zukünftigen PHP-Versionen ohneAnkündigung ändern. Seien Sie gewarnt und verwenden Sie diese Funktion aufeigenes Risiko. Get a string describing the SDO_DataObject. The default behaviour is to print the output, but if TRUE is specified for return, it is returned as a string. Parameter Liste rdo An SDO_Model_ReflectionDataObject. return If TRUE , return the output as a string, otherwise print it. Rückgabewerte ...
PHP Manual
[ SDO_Model_ReflectionDataObject::export php.net ]

PHP Funktion
sesam_fetch_array ( phplist Code 9% Relevanz )
Rubrik
SESAM Datenbankfunktionen
Kurzform
sesam_fetch_array -- Liefert eine Zeile als assoziatives Array
Vorschau
...verfügabr sind. Beispiel 1. SESAM fetch rows <?php $result = sesam_query ( "SELECT * FROM phone\n" . " WHERE LASTNAME='" . strtoupper ( $name ). "'\n" . " ORDER BY FIRSTNAME" , 1 ); if (! $result ) { ... error ... } // print the table: print "<TABLE BORDER>\n" ; while (( $row = sesam_fetch_array ( $result )) && count ( $row ) > 0 ) { print " <TR>\n" ; print " <TD>" . htmlspecialchars ( $row [ "firstname" ]). "<...
PHP Manual
[ sesam_fetch_array php.net ]

PHP Funktion
mhash_get_hash_name ( phplist Code 8% Relevanz )
Rubrik
Hash Funktionen
Kurzform
mhash_get_hash_name -- Gibt den Namen eines Hashs zurück
Vorschau
... Hashes zu erfahren. mhash_get_hash_name() nimmt die Hash Id als Argument und gibt den Namen des Hashs oder FALSE , wenn der Hash nicht existiert. Beispiel 1. Mhash_get_hash_name Beispiel <?php $hash = MHASH_MD5 ; print mhash_get_hash_name ( $hash ); ?> Das Beispiel oben gibt aus: MD5 mhash_get_block_size mhash_keygen_s2k...
PHP Manual
[ mhash_get_hash_name php.net ]

PHP Funktion
sesam_affected_rows ( phplist Code 8% Relevanz )
Rubrik
SESAM Datenbankfunktionen
Kurzform
sesam_affected_rows -- Anzahl der von einer sofortigen (???) Abfrage betroffenen Zeilen
Vorschau
... Wert ist die Anzahl der betroffenen Zeilen. Siehe auch: sesam_query() und sesam_execimm() $result = sesam_execimm ("DELETE FROM PHONE WHERE LASTNAME = '".strtoupper($name)."'"); if (! $result) { ... error ... } print sesam_affected_rows($result). " entries with last name ".$name." deleted.\n" SESAM Datenbankfunktionen sesam_commit...
PHP Manual
[ sesam_affected_rows php.net ]

PHP Funktion
Static Schlüsselwort ( phplist Code 8% Relevanz )
Rubrik
Klassen und Objekte (PHP 5)
Kurzform
-----
Vorschau
... Member <?php class Foo { public static $my_static = 'foo' ; public function staticValue () { return self :: $my_static ; } } class Bar extends Foo { public function fooStatic () { return parent :: $my_static ; } } print Foo :: $my_static . "\n" ; $foo = new Foo (); print $foo -> staticValue () . "\n" ; print $foo -> my_static . "\n" ; // Undefinierte "Eigenschaft" my_static // $foo::my_static ist nicht möglich print Bar :: $...
PHP Manual
[ Static Schlüsselwort php.net ]

PHP Funktion
Advanced PHP debugger ( phplist Code 8% Relevanz )
Rubrik
Funktionsreferenz
Kurzform
-----
Vorschau
...Advanced PHP debugger IV. Advanced PHP debugger Einführung APD is the Advanced PHP Debugger. It was written to provide profiling and debugging capabilities for PHP code, as well as to provide the ability to print out a full stack backtrace. APD supports interactive debugging, but by default it writes data to trace files. It also offers event based logging so that varying levels of information (including function calls, arguments ...
PHP Manual
[ Advanced PHP debugger php.net ]

PHP Funktion
Tokenizer Functions ( phplist Code 8% Relevanz )
Rubrik
Funktionsreferenz
Kurzform
-----
Vorschau
... loaded at runtime, the tokens listed in Anhang Q are defined as constants. Beispiele Here is a simple example PHP scripts using the tokenizer that will read in a PHP file, strip all comments from the source and print the pure code only. Beispiel 1. Strip comments with the tokenizer <?php /* * T_ML_COMMENT does not exist in PHP 5. * The following three lines define it in order to * preserve backwards compatibility. * * The next two ...
PHP Manual
[ Tokenizer Functions php.net ]

PHP Funktion
maxdb_get_server_version ( phplist Code 7% Relevanz )
Rubrik
MaxDB PHP Extension
Kurzform
maxdb_get_server_version -- Returns the version of the MaxDB server as an integer
Vorschau
...maxdb_get_client_version() , maxdb_get_server_info() Example Beispiel 1. Object oriented style <?php $maxdb = new maxdb ( "localhost" , "MONA" , "RED" , "DEMODB" ); /* check connection */ if ( maxdb_connect_errno ()) { printf ( "Connect failed: %s\n" , maxdb_connect_error ()); exit(); } /* print server version */ printf ( "Server version: %d\n" , $maxdb -> server_version ); /* close connection */ $maxdb -> close (); ?> Beispiel 2. ...
PHP Manual
[ maxdb_get_server_version php.net ]

PHP Funktion
Memcache::setServerParams ( phplist Code 7% Relevanz )
Rubrik
Memcache Functions
Kurzform
Memcache::setServerParams -- Changes server parameters and status at runtime
Vorschau
... and port of the failed server. Rückgabewerte Gibt bei Erfolg TRUE , im Fehlerfall FALSE . Beispiele Beispiel 1. Memcache::setServerParams() example <?php function _callback_memcache_failure ( $host , $port ) { print "memcache '$host:$port' failed" ; } /* OO API */ $memcache = new Memcache ; // Add the server in offline mode $memcache -> addServer ( 'memcache_host' , 11211 , false , 1 , 1 , - 1 , false ); // Bring the server back ...
PHP Manual
[ Memcache::setServerParams php.net ]

PHP Funktion
Steuerung von Dateiuploads ( phplist Code 6% Relevanz )
Rubrik
Features
Kurzform
-----
Vorschau
... PHP kleiner als 4.1.0 sollten Sie $HTTP_POST_FILES anstatt $_FILES verwenden. // In PHP kleiner als 4.0.3 verwenden Sie copy() und is_uploaded_file() anstatt von // move_uploaded_file() $uploaddir = '/var/www/uploads/' ; print "<pre>" ; if ( move_uploaded_file ( $_FILES [ 'userfile' ][ 'tmp_name' ], $uploaddir . $_FILES [ 'userfile' ][ 'name' ])) { print "File is valid, and was successfully uploaded. Here's some more debugging info:\n" ; ...
PHP Manual
[ Steuerung von Dateiuploads php.net ]

PHP Funktion
SDO XML Data Access Service Functions ( phplist Code 5% Relevanz )
Rubrik
Funktionsreferenz
Kurzform
-----
Vorschau
...; date = "September 03, 2004" ; $root_data_object -> firstName = "Anantoju" ; $root_data_object -> lastName = "Madhu" ; $xmldas -> saveFile ( $document , "letter-out.xml" ); echo "New file has been written:\n" ; print file_get_contents ( "letter-out.xml" ); } catch ( SDO_Exception $e ) { print( $e -> getMessage ()); } ?> An instance of the XML DAS is first obtained from the SDO_DAS_XML::create() method, which is a static method ...
PHP Manual
[ SDO XML Data Access Service Functions php.net ]

PHP Funktion
Object Aggregation/Composition Functions ( phplist Code 4% Relevanz )
Rubrik
Funktionsreferenz
Kurzform
-----
Vorschau
...; data ); mysql_query ( "insert into vars ('$serdata',now())" , $dbh ); mysql_close ( $dbh ); } } ?> We then instantiate a couple of objects from the defined classes, and perform some aggregations and deaggregations, printing some object information along the way: Beispiel 4. test_aggregation.php <?php include "storageclasses.inc" ; // some utilty functions function p_arr ( $arr ) { foreach ( $arr as $k => $v ) $out [] = " \t $k =>...
PHP Manual
[ Object Aggregation/Composition Functions php.net ]

PHP Funktion
com ( phplist Code 0% Relevanz )
Rubrik
COM Support Funktionen für Windows
Kurzform
com -- COM Klasse
Vorschau
... Werte sind CP_ACP , CP_MACCP , CP_OEMCP , CP_SYMBOL , CP_THREAD_ACP , CP_UTF7 und CP_UTF8 . Beispiel 1. COM Beispiel (1) // Word starten $word = new COM("word.application") or die("Konnte Word nicht instantiieren"); print "Word geladen, Version {$word->Version}\n"; //Fenster anzeigen $word->Visible = 1; //ein leeres Dokument öffnen $word->Documents->Add(); //irgendetwas tun $word->Selection->TypeText("Dies ist ein Test...
PHP Manual
[ com php.net ]

PHP Funktion
else ( phplist Code 0% Relevanz )
Rubrik
Kontroll-Strukturen
Kurzform
-----
Vorschau
..., sobald der Ausdruck der if -Anweisung als FALSE ausgewertet wird. Der folgende Code wird z.B. a ist größer als b ausgeben, wenn $a größer als $b ist, anderenfalls a ist NICHT größer als b : <?php if ( $a > $b ) { print "a ist größer als b" ; } else { print "a ist NICHT größer als b" ; } ?> Die else -Anweisung wird nur ausgeführt, wenn der if -Ausdruck als FALSE ausgewertet wurde und wenn bei vorhandenen elseif -Ausdrücken diese ...
PHP Manual
[ else php.net ]

PHP Funktion
db2_exec ( phplist Code 0% Relevanz )
Rubrik
IBM DB2 Cloudscape and Apache Derby Functions
Kurzform
db2_exec -- Executes an SQL statement directly
Vorschau
... ( $database , $user , $password ); // Create the test table $create = 'CREATE TABLE animals (id INTEGER, breed VARCHAR(32), name CHAR(16), weight DECIMAL(7,2))' ; $result = db2_exec ( $conn , $create ); if ( $result ) { print "Successfully created the table.\n" ; } // Populate the test table $animals = array( array( 0 , 'cat' , 'Pook' , 3.2 ), array( 1 , 'dog' , 'Peaches' , 12.3 ), array( 2 , 'horse' , 'Smarty' , 350.0 ), array( 3 , 'gold fish...
PHP Manual
[ db2_exec php.net ]

PHP Funktion
echo ( phplist Code 0% Relevanz )
Rubrik
String-Funktionen
Kurzform
echo -- Gibt einen oder mehrere Strings aus
Vorschau
...stehen muss! END; // Da echo sich nicht wie eine Funktion verhält, ist der folgende Code ungültig. ( $eine_variable ) ? echo( 'true' ): echo( 'false' ); // Folgende Beispiele funktionieren hingegen: ( $eine_variable ) ? print( 'true' ): print( 'false' ); // print ist ebenfalls ein // Konstrukt, aber es verhält sich wie eine Funktion, // so dass es in diesem Kontext verwendet werden kann echo $eine_variable ? 'true' : 'false' ; // Das Statement...
PHP Manual
[ echo php.net ]

PHP Funktion
fbsql_close ( phplist Code 0% Relevanz )
Rubrik
FrontBase Funktionen
Kurzform
fbsql_close -- Beendet eine FrontBase-Verbindung
Vorschau
... geöffneten Verbindungen automatisch am Ende der Scriptausführung geschlossen werden. Beispiel 1. fbsql_close() example <?php $link = fbsql_connect ( "localhost" , "_SYSTEM" , "secret" ) or die ( "Could not connect" ); print ( "Connected successfully" ); fbsql_close ( $link ); ?> Siehe auch: fbsql_connect() und fbsql_pconnect() . fbsql_clob_size fbsql_commit...
PHP Manual
[ fbsql_close php.net ]

PHP Funktion
Java ( phplist Code 0% Relevanz )
Rubrik
Funktionsreferenz
Kurzform
-----
Vorschau
.../ext/java/README . Beispiel 1. Zugriff auf Java Klassen aus PHP heraus <?php // In PHP Instanz der Java Klasse java.lang.System erzeugen $system = new Java ( 'java.lang.System' ); // Zugriff auf die Objekteigenschaften print 'Java version=' . $system -> getProperty ( 'java.version' ). ' <br>' ; print 'Java vendor=' . $system -> getProperty ( 'java.vendor' ). ' <br>' ; print 'OS=' . $system -> getProperty ( 'os.name...
PHP Manual
[ Java php.net ]

PHP Funktion
KADM5 ( phplist Code 0% Relevanz )
Rubrik
Funktionsreferenz
Kurzform
-----
Vorschau
... long Generates a random password for the principal. The parameter password will be ignored. KADM5_ATTRIBUTES long A bitfield of attributes for use by the KDC. Beispiele This simple example shows how to connect, query, print resulting principals and disconnect from a KADM5 database. Beispiel 1. KADM5 extension overview example <?php $handle = kadm5_init_with_password ( "afs-1" , "GONICUS.LOCAL" , "admin/admin" , "password" ); print "<h1...
PHP Manual
[ KADM5 php.net ]