Rasmus chose to release the source code for PHP / FI for everybody to see, so that anybody can use it, as well as fix bugs in it and improve the code. 	 PHP / FI נכתבה ע" י רסמוס לרדרוף (Rasmus Lerdrof) בשנת 1995 כערכה של סקריפטי פרל (PERL) כדי לעקוב אחרי כניסות לעמוד קורות החיים המקוון שלו. הוא קרא לערכת הסקריפטים 'Personal Home Page Tools '. כשהדרישה ליעילות גברה, רסמוס כתב מחדש את המנוע בשפת C, המנוע החדש היה מסוגל לתקשר עם מסדי נתונים ואפשר למשתמשים לפתח ישומי ם דינמיים מקוונים פשוטים. רסמוס החליט לשחרר את קוד המקור על מנת שכולם יוכלו לראות אותו וגם לתקן באגים ולשפר אותו.


Since PHP 4.3.0 the CLI SAPI is no longer experimental and the option --enable-cli is on by default. 	 The CLI SAPI was released for the first time with PHP 4.2.0, but was still experimental back then and had to be explicitely enabled with --enable-cli when running. / configure.


Thus in PHP 4, the class B would have no constructor function of its own and the constructor of the base class would have been called, printing 'I am the constructor of A. br'. 	 גם עניין זה תוקן ב PHP 4 על ידי יצירת החוק הבא: 'הפונקציה הנבאית A היא פונקציה בעלת אות שם של המחלקה שהיא מוגדרת בתוכה. 'לכן ב PHP 4, המחלקה B שאין לה את הבנאית של עצמה תשתמש בפונקציה הבנאית של מחלקת הבסיס, ולפיכך יודפס על המסך 'I am the constructor of A. br'.


session_unregister() unregisters the global variable named name from the current session. 	 session_unregister() unregisters (forgets) the global variable named name from the current session.


So, to handle such a request you have to first tell your web server that you want a certain PHP script to handle the request. 	 בדרך כלל זה יציין שהלקוח רוצה לשמור את התוכן שבא אחרי, כמו: / path / filename.html בעץ הרשת שלך. מובן מאליו שזה לא רעיון טוב עבור Apache או PHP לאשר לכולם באופן אוטומטי לכתוב על קבצים קיימים בעץ הרשת שלך. כדי לטפל בבקשות כאלה, צריך להגיד לשרת שברצונך להפנות בקשות כאלה לסקריפט PHP. על Apache הדבר נעשה על ידי ספריית Script. אפשר לשים את זה כמעט בכל מקום בקובץ הקונפיגורציה של Apache. מקום נפוץ הוא בתוך הבלוק Directory או אולי בתוך הבלוק Virtualhost. שורה כזו תעשה את הטריק:


Example 1. ingres_connect() example 	 דוגמה 1. ingres_connect() example


Support for ASP-style tags was added in 3.0.4. 	 הערה: תמיכה בתגיות בסיגנון ASP אפשרית רק מגרסה 3.0.4 ומעלה.


Host may either be the IP address in dotted-quad notation or the host name. 	 A, MX, NS, SOA, PTR, CNAME, or ANY.


Example 1. unpack() format string 	 דוגמה 1. unpack() format string


PUT requests are much simpler than a file upload and they look something like this: 	 PHP מספקת תמיכה בשיטת HTTP PUT שבה משתמשים netscape composer ו-W3C Amaya. בקשת PUT פשוטות יותר מהעלאת קבצים, והן נראות בערך ככה:


Example 1. php_sapi_name() Example 	 דוגמה 1. php_sapi_name() Example


This happens when you use the echo() or print() This happens when you use the echo() or print() functions, or when you compare a variable value to a string. 	 9 / p '* / $num = 9; $str = "p Number: $num / p"; / * This one will be' p Number: $num / p '* / $num = 9; $str =' p Number: $num / p '; / * Get the first character of a string * / $str = 'This is a test .'; $first = $str{0}; / * Get the last character of a string. * / $str = 'This is still a test .'; $last = $str{strlen($str)-1};?


0 through 23 	 G - hour, 24-hour format without leading zeros; i.e. "0 "to "23"


How to find more information about PHP 	 כיצד לקבל מידע נוסף אודות PHP


Example 1. mysql_get_proto_info Example 	 דוגמה 1. mysql_get_proto_info Example


Example 2. parsemoldb.php - parses moldb.xml into and array of molecular objects 	 דוגמה 2. parsemoldb.php - parses moldb.xml into and array of molecular objects


imagegd 	 imagegif


?php if( $_COOKIE['username']) {/ / can only come from a cookie, forged or otherwise $good_login = 1; fpassthru (" / highly / sensitive / data / index.html");}? 	 ?php if( $HTTP_COOKIE_VARS['username']) {/ / can only come from a cookie, forged or otherwise $good_login = 1; fpassthru (" / highly / sensitive / data / index.html");}?


DIR is the Adabas base install directory, defaults to / usr / local. 	 DIR is the mSQL base install directory, defaults to / usr / local / Hughes.


?php / / remove a file from the user' s home directory $username = $_POST['user_submitted_name']; $homedir = "/ home / $username"; $file_to_delete = "$userfile"; unlink ("$homedir / $userfile"); echo "$file_to_delete has been deleted !";? 	 ?php / / remove a file from the user' s home directory $username = $HTTP_POST_VARS['user_submitted_name']; $homedir = "/ home / $username"; $file_to_delete = "$userfile"; unlink ($homedir / $userfile); echo "$file_to_delete has been deleted !";?


Example 1. pg_update 	 דוגמה 1. pg_update


Example 1. split() Example 	 דוגמה 1. split() Example


Note to Win32 Users: 	 In this case, you should install libiconv library.


Example 1. fscanf() Example 	 דוגמה 1. fscanf() Example


If the optional url parameter is supplied then the CURLOPT_URL option will be set to the value of the parameter. 	 הפונקציה curl_init() מאתחלת session חדש ומחזירה מצביע CURL לשימוש עם curl_setopt(), curl_exec() ,ו curl_close() functions. אם המשתנה האופציונלי url יסופק לפונקציה אזי האופציה CURLOPT_URL תקבל את ערך המשתנה באופן אוטומטי. ניתן לקבוע בצורה ידנית את ערכו של המשתנה על ידי שימוש בפונקצית curl_setopt().


ftp_get_option 	 ftp_fput


If the array that array_walk() is applied to is changed, the behavior of this function is undefined, and unpredictable. 	 If the array is changed, the behavior of this function is undefined.


See also ftp_get(). 	 Returns TRUE on success, FALSE on error.


call_user_method_array 	 Class / Object Functions


Include CyberCash support. 	 Enable FTP support.


This function is binary-safe. 	 This function was introduced in PHP 4.3.0.


The extension allows you to operate on an XML document with the DOM API. 	 The extension still contains many old functions, but they should not be used anymore.


NULL object( stdClass)(0) {} 	 function Test() {static $a = 0; echo $a; $a++;}


SWFMorph 	 SWFMovie


Some are available in older versions of PHP 4, some even in PHP 3, some only in PHP 4.1.0. 	 DIR is the fribidi installation directory - default / usr / local /.


Example 1. convmap example 	 דוגמה 1. convmap example


Example 1. socket_strerror() example 	 דוגמה 1. socket_strerror() example


See also setlocale(). 	 See also: setlocale().


If you need to handle bigger numbers, take a look at the arbitrary precision math functions. 	 These math functions will only handle values within the range of the integer and float types on your computer. (this corresponds currently to the C types long resp. double) If you need to handle bigger numbers, take a look at the arbitrary precision math functions.


Returns TRUE on success or FALSE on failure. 	 מחזיר TRUE במקרה של הצלחה או FALSE במקרה של כישלון.


openssl_x509_export_to_file 	 openssl_x509_export


Thus, if you use mnoGoSearch with MySQL, during PHP configuration you have to indicate the directory of your MySQL installation, that was used during mnoGoSearch configuration, i.e. for example: --with-mnogosearch --with-mysql= / usr. 	 Thus, if you use mnoGoSearch with mysql, during php configuration you have to indicate directory of mysql installation, that was used during mnoGoSearch configuration, i.e. for example: --with-mnogosearch --with-mysql= / usr.


Example 1. ncurses_getmouse() example 	 דוגמה 1. ncurses_getmouse() example


swf_ortho2 	 swf_ortho


zval *new_array, *new_element; int key = 2; MAKE_STD_ZVAL(new_array); MAKE_STD_ZVAL(new_element); array_init(new_array); ZVAL_LONG(new_element, 10); if(zend_hash_index_update(new_array - value.ht, key, (void *) new_element, sizeof(zval *), NULL) == FAILURE) {/ / do error handling here} 	 zval *new_array, *new_element; int key = 2; MAKE_STD_ZVAL(new_array); MAKE_STD_ZVAL(new_element); if(array_init(new_array) == FAILURE) {/ / do error handling here} ZVAL_LONG(new_element, 10); if(zend_hash_index_update(new_array - value.ht, key, (void *) new_element, sizeof(zval *), NULL) == FAILURE) {/ / do error handling here}


Example 1. mysql_fetch_object() example 	 דוגמה 1. mysql_fetch_object() example


Back - tracking past it to previous items, however, works as normal. 	 Back - tracking past it to previous items, however, works as nor - mal.


Stream functions 	 String functions


These are the differences between constants and variables: 	 קבועים יכולים להיות מוגדרים ללא התחשבות scoping rulesבחוקי טווחי משתנים


Example 1. pspell_check() 	 דוגמה 1. pspell_check()


SWFFill 	 SWFFont


Sets the file position indicator for handle to the beginning of the file stream. 	 Sets the file position indicator for fp to the beginning of the file stream.


mb_ereg_search 	 mb_eregi


You can set this parameter to TIMECOND_IFMODSINCE or TIMECOND_ISUNMODSINCE. 	 CURLOPT_TIMECONDITION: העבר ערך מסוג long כפרמטר הקובע כיצד יש להתיחס ל CURLOPT_TIMEVALUE. ניתן לקבוע את הערך ל TIMECOND_IFMODSINCE או ל TIMECOND_ISUNMODSINCE. זהו HTTP-only feature.


imagerotate 	 imagesetbrush


See also domnode_append_child(), domdocument_create_element(), domdocument_create_comment(), domdocument_create_text(), domdocument_create_attribute(), domdocument_create_processing_instruction(), domdocument_create_entity_reference(), and domnode_insert_before(). 	 See also DomNode_append_child(), DomDocument_create_element(), DomDocument_create_comment(), DomDocument_create_text(), DomDocument_create_attribute(), DomDocument_create_processing_instruction(), DomDocument_create_entity_reference(), DomNode_insert_before().


Pass an array of FTP commands to perform on the server prior to the FTP request. 	 CURLOPT_QUOTE: העבר מערך של פקודות FTP שיש לצע על השרת המרוחק לפני ביצוע בקשת ה FTP.


break ends execution of the current for, foreach while, do..while or switch structure. 	 פקודת break תגרום לעצירת הריצה של מבנה הבקרה הנוכחי מסוג for, foreach while, do..while או switch.


Returns TRUE on success or FALSE on failure. 	 The file pointed to by fp is closed.


mailparse_msg_get_part 	 mailparse_msg_get_structure


Ora_Fetch 	 Ora_Fetch_Into


Include DBMaker support. 	 GD:


mSQL functions 	 msql


pg_fetch_result() returns values from a result resource returned by pg_query(). row is integer. field is field name (string) or field index (integer). 	 pg_fetch_result() returns values from a result resource returned by pg_query(). row is integer. field is field name(string) or field index (integer).


It 's important that you do not copy the IMAP source files directly into the system include directory as there may be conflicts. 	 To get these functions to work, you have to compile PHP with --with-imap.


array_merge_recursive 	 array_map


Home 	 Security


For more details, including notes on browser bugs, see the setcookie() function. 	 לעוד פרטים, כולל הערות על באגים בדפדפנים, ניתן לגשת לפונקציית setcookie().


fbsql_database 	 fbsql_database_password


fbsql_database_password 	 fbsql_data_seek


Example 1. readline() 	 דוגמה 1. readline()


After a succcessfull compiling run you will find the php.exe in either the directory Release_TS\cli\ or Debug_TS\cli\. 	 For command line users, make sure that you either have the C+ + environment variables registered, or have run vcvars.bat, and then execute one of the following:


See also while, for, and if for further examples. 	 לדוגמאות נוספות, ראה גם בפרקים על while, for, ו - if.


You may or may not find any of the following elements in $_SERVER. 	 שם הקובץ של התסריט שרץ כרגע, יחסי לשורש המסמכים. לדוגמה, $_SERVER[ 'PHP_SELF'] בתסריט בכתובת http: / /example.com / test.php / foo.bar יהיה / test.php / foo.bar.


fdf_open_string 	 fdf_open


Name 	 Directive


Example 1. fbsql_fetch_assoc() example 	 דוגמה 1. fbsql_fetch_assoc() example


hw_api - objectbyanchor 	 hw_api_object - assign


Example 1. imap_createmailbox() example 	 דוגמה 1. imap_createmailbox() example


swf_ortho 	 swf_perspective


SWFSprite - add 	 SWFShape - addFill


Example 1. imap_getmailboxes() example 	 דוגמה 1. imap_getmailboxes() example


After every document is referenced by its corresponding URL, meta-data is collected by the indexer for later use in a search process. 	 mnoGoSearch is a full-featured search engine software for intranet and internet servers, distributed under the GNU license. mnoGoSearch has number of unique features, which makes it appropriate for a wide range of application from search within your site to a specialized search system such as cooking recipes or newspaper search, ftp archive search, news articles search, etc.


Example 1. fbsql_connect() example 	 דוגמה 1. fbsql_connect() example


Example 1. printer_select_brush() example 	 דוגמה 1. printer_select_brush() example


This is most likely not implemented on your operating system. 	 This is one of SOCK_STREAM, SOCK_DGRAM, SOCK_SEQPACKET, SOCK_RAW, SOCK_RDM, or SOCK_PACKET.


Initializing a new CURL session and fetching a webpage 	 דוגמה 1. אתחול של CURL session והבאת דף הבית


NTLM', FALSE);? 	 NTLM' ,false);


function debug( $var, $val) echo "***DEBUGGING\nVARIABLE: $var\nVALUE :"; if (is_array($val) _BAR_ _BAR_ is_object($val) _BAR_ _BAR_ is_resource($val)) print_r($val); else echo "\n$val\n"; echo "***\n";} $c = mysql_connect(); $host = $_SERVER["SERVER_NAME"]; call_user_func_array ('debug', array("host", $host)); call_user_func_array ('debug', array("c", $c)); call_user_func_array ('debug', array("_POST", $_POST)); 	 function debug( $var, $val) echo "***DEBUGGING\nVARIABLE: $var\nVALUE :"; if (is_array($val) _BAR_ _BAR_ is_object($val) _BAR_ _BAR_ is_resource($val)) print_r($val); else echo "\n$val\n"; echo "***\n";} $c = mysql_connect(); $host = $HTTP_SERVER_VARS["SERVER_NAME"]; call_user_func_array ('debug', array("host", $host)); call_user_func_array ('debug', array("c", $c)); call_user_func_array ('debug', array("HTTP_POST_VARS", $HTTP_POST_VARS));


Example 1. addcslashes() example 	 דוגמה 1. addcslashes() example


socket_connect 	 socket_create


However, do not rely on this behaviour, as it can change without notice. 	 However, do not relay on this behaviour, as it can change without notice.


Returns TRUE on success or FALSE on failure. 	 Returns TRUE on success and FALSE on failure.


Example 1. str_replace() example 	 דוגמה 1. str_replace() example


pdf_close 	 pdf_closepath


cpdf_set_font 	 cpdf_set_font_map_file


?php $error_descriptions[ 1] = "A fatal error has occured"; $error_descriptions[2] = "PHP issued a warning"; $error_descriptions[8] = "This is just an informal notice";? 	 For example, you already cannot use the words empty and default this way, since they are special keywords.


OCI8 	 Satellite


output_encoding 	 דוגמה 1. iconv_set_encoding() example:


For example: $_SESSION[ 'var'] = 'ABC'; 	 If $_SESSION (or $HTTP_SESSION_VARS for PHP 4.0.6 or less) is used, assign variable to $_SESSION. i.e. $_SESSION['var'] = 'ABC';


The main difference from regular while loops is that the first iteration of a do..while loop is guaranteed to run (the truth expression is only checked at the end of the iteration), whereas it's may not necessarily run with a regular while loop (the truth expression is checked at the beginning of each iteration, if it evaluates to FALSE right from the beginning, the loop execution would end immediately). 	 לולאות do..while זהות במידה רבה ללולאות while, למעט בדיקת הביטוי בסוף כל איטרציה במקום ביצוע הבדיקה בהתחלה. ההבדל העיקרי בהתנהגות של לולאות אלו הוא שבלולאת do..while, קוד הלולאה ירוץ לפחות פעם אחת (כי התנאי נבדק בסוף הריצה) בעוד שבלולאת while רגילה (שבה התנאי נבדק בתחילת הלולאה), יתכן מצב בו הקוד לא יורץ בכלל. (אם ערכו ההתחלתי של הביטוי שווה ל - FALSE, הלולאה תיפסק מיד.)


When track_vars is on, it creates some associative arrays, the most important here is: $_POST (this used to be called $HTTP_POST_VARS in PHP versions prior 4.1.0). 	 When track_vars is on, it creates some associative arrays, the most important here is: $HTTP_POST_VARS.


?php mysql_connect( "localhost", "mysql_user", "mysql_password") or die("Could not connect: ". mysql_error()); printf ("MySQL protocol version: %s\n", mysql_get_proto_info());? 	 ?php mysql_connect( "localhost", "mysql_user", "mysql_password") or die("could not connect"); printf ("MySQL protocol version: %s\n", mysql_get_proto_info());?


Example 1. ftp_set_option() example 	 דוגמה 1. ftp_set_option() example


What does PHP stand for? 	 2. מה PHP מסמלת?


$b = array( 1,1,2,3,5,8); $arr = get_defined_vars(); / / print $b print_r($arr["b"]); / / print path to the PHP interpreter (if used as a CGI) / / e.g. / usr / local / bin / php echo $arr["_"]; / / print the command-line paramaters if any print_r($arr["argv"]); / / print all the server vars print_r($arr["_SERVER"]); / / print all the available keys for the arrays of variables print_r(array_keys(get_defined_vars())); 	 $b = array( 1,1,2,3,5,8); $arr = get_defined_vars(); / / print $b print_r($arr["b"]); / / print path to the PHP interpreter (if used as a CGI) / / e.g. / usr / local / bin / php echo $arr["_"]; / / print the command-line paramaters if any print_r($arr["argv"]); / / print all the server vars print_r($arr["HTTP_SERVER_VARS"]); / / print all the available keys for the arrays of variables print_r(array_keys(get_defined_vars()));


This can be done via the short_tags() function (PHP 3 only), by enabling the short_open_tag configuration setting in the PHP config file, or by compiling PHP with the --enable-short-tags option to configure. 	 ושוב יש לציין כי הדרך השנייה מועדפת מאחר ואינה גורמת להתנגשות עם מסמכים מסוג XML כדוגמת XHTML.


See also pg_field_prtlen() and pg_field_type(). 	 See also pg_field_len() and pg_field_type().


Analogous to the old $HTTP_ENV_VARS array (which is still available, but deprecated). 	 מערך אסוציאטיבי של המשתנים המועברים לסקריפט הנוכחי דרך שיטת HTTP GET. משתנה זה מוגדר בכל טווח משתנים כלשהו. נוסף ל-PHP החל מגרסה 4.1.0.


pdf_closepath_fill_stroke 	 pdf_close_image


array_intersect_assoc 	 array_intersect


We use Microsoft HTML Help Workshop to generate the Windows HTML Help format of the manual, and of course PHP itself to do some additional conversions and formatting. 	 השימוש ב XML כפורמט מקור מאפשר לנו לחולל פלט בגרסאות רבות מקבצי המקור, תוך ניהול מסמך מקור אחד עבור כל הגרסאות. הכלים לעיצוב גרסאות ה - HTML וה - TeX הם Jade, שנכתב ע" י ג'יימס קלארק ו The Modular DocBook Stylesheets שנכתבו ע "י נורמן וולש. אנו משתמשים ב סדנת עזרת HTML של מיקרוסופט כדי לחולל את גרסאות עזרת ה-HTML לחלונות של המדריך, וכמובן PHP עצמו בשביל מספר המרות ועיצובים אחרים.


See also addslashes(), stripslashes(), get_magic_quotes_runtime(), and ini_get(). 	 See also get_magic_quotes_runtime() and set_magic_quotes_runtime().


In addition, URLs can be used with the include(), include_once(), require() and require_once() statements. 	 אם אפשרות ה" URL fopen wrapper "פעילה (היא פעילה כברירת מחדל אלא אם ציינת מפורשות את דגל ה --disable-url-fopen-wrapper לסקריפט ה - configure (עד גרסה 4.0.3) או שקבעת את פרמטר ה - allow_url_fopen ל-off בקובץ php.ini (בגרסאות חדשות יותר)), ניתן להשתמש בקישורי HTTP ו-FTP כפרמטר לרוב הפונקציות שמקבלות שם קובץ כפרמטר, כולל הפקודות require() ו - include().


If you find you do not want to create some of these modules, use the no_* FLAVOR. 	 There are pre-compiled packages available for your release of OpenBSD.


Instead of repeating this string in every example, it will be put into a file which will be included by each example. 	 Instead of repeating this string in any example it will be put into a file and be included by each example.


This directive is NOT affected by whether Safe Mode is turned On or Off. 	 move_uploaded_file()


Example 1. crypt() examples 	 דוגמה 1. crypt() examples


ircg_fetch_error_msg() returns the error from a failed connection. 	 ircg_fetch_error_msg() returns the error from the last called ircg function.


See also include(), require(), require_once(), get_required_files(), get_included_files(), readfile(), and virtual(). 	 מידע נוסף ניתן למצוא בפרקים: include(), require(), require_once(), get_required_files(), get_included_files(), readfile(), ו - virtual().


trim 	 substr_count


ifx_query() sends a query to the currently active database on the server that's associated with the specified link identifier. 	 If the link identifier isn 't specified, the last opened link is assumed.


Example 1. fbsql_list_fields() example 	 דוגמה 1. fbsql_list_fields() example


hw_api - copy 	 hw_api_content - mimetype


Default 	 Default value


imap_mail 	 imap_mail_move


From PHP 4.2.0, trans-sid feature is always compiled. 	 session.save_handler session.save_handler defines the name of the handler which is used for storing and retrieving data associated with a session.


pdf_set_value 	 pdf_set_text_matrix


When a pattern contains an unlimited repeat inside a subpattern that can itself be repeated an unlimited number of times, the use of a once-only subpattern is the only way to avoid some failing matches taking a very long time indeed. 	 When a pattern contains an unlimited repeat inside a subpat - tern that can itself be repeated an unlimited number of times, the use of a once-only subpattern is the only way to avoid some failing matches taking a very long time indeed.


If there is no next sibling it returns FALSE (4.3) or null (= 4.3). 	 If there is no next sibling it returns false.


yaz_schema 	 yaz_scan_result


?php $conn = pg_pconnect ("dbname=publisher"); if (!$conn) {echo "An error occured.\n"; exit;} $result = pg_query ($conn, "SELECT * FROM authors"); if (!$result) {echo "An error occured.\n"; exit;} while ($row = pg_fetch_row($result, $i)) {for ($j=0; $j count($row); $j++) {echo "$row[$j] nbsp ;";} echo "BR";}? 	 ?php $conn = pg_pconnect ("dbname=publisher"); if (!$conn) {echo "An error occured.\n"; exit;} $result = pg_query ($conn, "SELECT * FROM authors"); if (!$result) {echo "An error occured.\n"; exit;} $num = pg_num_rows($result); for ($i=0; $i $num; $i++) {$r = pg_fetch_row($result, $i); for ($j=0; $j count($r); $j++) {echo "$r[$j] nbsp ;";} echo "BR";}?


Example 2. rawurlencode() example 2 	 דוגמה 2. rawurlencode() example 2


pdf_open_image_file 	 pdf_open_image


continue is used within looping structures to skip the rest of the current loop iteration and continue execution at the beginning of the next iteration. 	 פקודת continue משמשת במבנים של לולאות כדי לדלג על יתר האיטרציה הנוכחית בלולאה ולהתחיל בהרצת האיטרציה הבאה.


Although not every standard OOP feature is realized in the current version of PHP, many code libraries and large applications (including the PEAR library) are written only using OOP code. 	 ב-PHP יש לכם את החופש לבחור את מערכת ההפעלה שלכם ואת שרת האינטרנט שלכם. בנוסף, ניתן לבחור אם לתכנת באופן פרוצדורלי או ב-OPP (תכנות מונחה עצמים), או תערובת של שניהם. למרות שלא כל מאפיניי OOP קיימים ב PHP, קיים מספר רב של ספריות ואפליקציות (כולל ספריית PEAR) שכתובות ב OOP בלבד.


mb_encode_numericentity 	 mb_ereg


fwrite() returns the number of bytes written, or FALSE on error. 	 fwrite() returns the number of bytes written, or -1 on error.


Similarly, you can also have an array index or an object property parsed. 	 $beer = 'Heineken'; echo "$beer's taste is great"; / / works, "'"is an invalid character for varnames echo "He drunk some $beers"; / / won't work, 's' is a valid character for varnames echo "He drunk some ${beer}s"; / / works


Array Operators 	 String Operators


See also domnode_insert_before(), domnode_clone_node(). 	 See also DomNode_insert_before().


Example 1. pspell_new() 	 דוגמה 1. pspell_new()


each() is typically used in conjunction with list() to traverse an array; for instance, $_POST: 	 each() is typically used in conjunction with list() to traverse an array; for instance, $HTTP_POST_VARS:


Example 12-8. require_once() is case sensitive 	 דוגמה לשימוש ב - require_once() ו - include_once() ניתן למצוא בקוד של PEAR שמצורף לגרסת PHP האחרונה.


Example 1. array_fill() example 	 דוגמה 1. array_fill() example


mb_eregi 	 mb_eregi_replace


SWFShape 	 SWFSprite


(PHP 3, PHP 4) 	 Returns an array containing the names of the mailboxes.


Example 1. dbx_sort() example 	 דוגמה 1. dbx_sort() example


Returns record at position pos or empty string if no record exists at given position. 	 Returns record at position or empty string if no record exists at given position.


Character encoding may be specified for mbstring functions' encoding parameter. 	 דוגמה 6. php.ini setting for SJIS users


SWFGradient 	 SWFMorph


Example 1. touch() example 	 דוגמה 1. touch() example


The enclosure parameter was added in PHP 4.3.0. 	 Delimiter and enclosure cannot be null and only first character is used when they are specified.


The maximum number of captured substrings is 99, and the maximum number of all subpatterns, both capturing and non-capturing, is 200. 	 The maximum number of captured sub - strings is 99, and the maximum number of all subpatterns, both capturing and non-capturing, is 200.


It is not possible to use echo() in a variable function context. 	 It is not possible to use echo() in a variable function context, but you can use print() instead.


fdf_set_version 	 FriBiDi functions


Example 1. fbsql_read_clob() example 	 דוגמה 1. fbsql_read_clob() example


SWFFill - skewYTo 	 SWFDisplayItem - skewYTo


Under UNIX, pass --enable-trans-sid to configure. 	 Defaults to /.


These functions interface the CCVS API, allowing you to work directly with CCVS from your PHP scripts. 	 These functions interface the CCVS API, allowing you to directly work with CCVS from your PHP scripts.


Pass a long as a parameter that contains the offset, in bytes, that you want the transfer to start from. 	 CURLOPT_RESUME_FROM: העבר ערך מסוג long כפרמטר שמכיל את ה offset, בבתים, שההעברה תתחיל ממנה.


socket_create_listen 	 socket_create


Please read the apache_request_headers() documentation for more information on how this function works. 	 You can also get at the value of the common CGI variables by reading them from the environment, which works whether or not you are using PHP as an Apache module.


Returns the position of the file pointer referenced by handle; i.e., its offset into the file stream. 	 Returns the position of the file pointer referenced by fp; i.e., its offset into the file stream.


Table 1. setcookie() parameters explained 	 You may also replace any argument with an empty string ("") in order to skip that argument.


If there is more than one setting of the same option at top level, the rightmost setting is used. 	 If there is more than one set - ting of the same option at top level, the rightmost setting is used.


This is because "new" does not return a reference by default, instead it returns a copy. 	 נראה שאין כל הבדל, אבל למעשה יש הבדל משמעותי מאוש אחד: $bar1 ו $globalref[ 0] הם לא מיוחסים, הם לא אותו משתנה. זאת בגלל ש "new "לא מחזיר יחוס בברירת מחדל, במקום זאת הוא מחזיר עותק.


Example 1. wddx_serialize_vars() example 	 דוגמה 1. wddx_serialize_vars() example


array 	 array_walk


Example 1. strtoupper() example 	 דוגמה 1. strtoupper() example


mkdir phpdir / ext / ming cp php_ext / * phpdir / ext / ming cd phpdir. / buildconf. / configure --with-ming other config options 	 SWFShape - drawCurve - - Draws a curve (relative).


mhash_count 	 mhash


Include OpenLink ODBC support. 	 Include GD support (DIR is GD's install dir).


foreach ($_POST as $var = $value) {echo "$var = $value br \n";} 	 foreach ($HTTP_POST_VARS as $var = $value) {echo "$var = $value br \n";}


Figure 32-2 shows the output. 	 You can find a demonstration of the behavior in cross_conversion.php on the accompanying CD-ROM. תרשים 33-2 shows the output.


Variables provided to the script via HTTP POST. 	 אם אופציית register_globals מאופשרת, יהיו משתנים אלו זמינים גם כן בטווח המשתנים הגלובלים בנפרד ממערכי ה - $HTTP_*_VARS הו - $_*. למידע נוסף, יש לעיין בפרק אבטחת המידע שכותרתו אופן השימוש ברישום גלובלים.


There is just one syntax for do..while loops: 	 ללולאות do..while יש צורת תחביר אחת בלבד:


iconv 	 ob_iconv_handler


pdf_new 	 pdf_open


Therefore you will need at least a second rewriting rule to exclude certain URLs like all e.g. starting with http: / /host / Hyperwave This is basically sharing of a namespace by the web and Hyperwave server. 	 This is basically sharing of a namespace by the web and Hyperwave server.


The expire header is never sent to the client in this mode. 	 Expire header is never sent to the client in this mode.


Returns TRUE on success or FALSE on failure. socket_getpeername() may also return FALSE if the socket type is not any of AF_INET or AF_UNIX, in which case the last socket error code is not updated. 	 מחזיר TRUE במקרה של הצלחה או FALSE במקרה של כישלון. socket_getpeername() may also return FALSE if the socket type is not any of AF_INET or AF_UNIX, in which case the last socket error code is not updated.


For example, you cannot create a connection to a database and store the connection id as a session variable and expect the connection to still be valid the next time the session is restored. 	 For example, you can not create a connection to a database and store the connection id as a session variable and expect the connection to still be valid the next time the session is restored.


hebrev 	 get_meta_tags


mt_srand 	 number_format


fdf_save_string 	 fdf_open


There are many ways to access this information, for example: 	 כאשר נשלח טופס לסקריפט PHP, כל המשתנים מטופס זה יהיו זמינים בסקריפט. אם ההגדרה של track_vars מאופשרת, משתנים אלו ימוקמו במערכים האסוציאטיבים $HTTP_POST_VARS, $HTTP_GET_VARS, ו\או $HTTP_POST_FILES, בהתאמה למקור המשתנים.


Example 1. opendir() example 	 דוגמה 1. opendir() דוגמא


If you want to be able to unserialize this on page2.php, recreating $a of class A, the definition of class A must be present in page2.php. 	 על מנת להשתמש ב unserialize() על אובייקט, המחלקה של אותו אובייקט צריכה להיות ממומשת. ולפיכך, אם יש את האובייקט $a של המחלקה A שבדף page1.php ובוצע serialize עליה, תתקבל מחרוזת שתייחס למחלקה A ואשר תכיל את כל הערכים של המשתנים הקיימים $a. כשיש צורך להשתמש ב unserialize שב page2.php, יצירה מחדש של הובייקט $a של המחלקה A, ההגדקה של המחלקה A חייבת להיות מיוצגת ב - page2.php. זה יכול להעשות לדוגמא על ידי איכסון של הגדרת המחלקה A בתוך קובץ מוכלל והכללת קובץ זה גם ב page1.php וגם ב page2.php.


PHP and HTML 	 PHP ו-HTML


Reading stops when length bytes have been read or EOF (end of file) reached, whichever comes first. 	 Reading stops when length bytes have been read or EOF is reached, whichever comes first.


If you leave this set to a world-readable directory, such as / tmp (the default), other users on the server may be able to hijack sessions by getting the list of files in that directory. 	 If you enable register_globals, session_unregister() should be used since session variables are registered as global variables when session data is deserialized.


Furthermore, if the current script file was include() ed, then the value given to return() will be returned as the value of the include() Furthermore, if the current script file was include() ed, then the value given to return() will be returned as the value of the include() call. 	 אם מתבצעת קריאה לפונקציה זו מתוך המבנה הראשי של הסקריפט, הרצת הסקריפט תסתיים. אם הקריפט הנוכחי הופעל על-ידי פקודת include() או require(), ריצת הסקריפט הנוכחי תסתיים והסקריפט המקורי ימשיך מהנקודה בה הפסיק. בנוסף, ערך ה - return() יוחזר כערכה של פונקציית ה - include(). אם הקריאה ל - return() התבצעה מהסקריפט הראשי, ביצועו יפסק. אם הסקריפט הנוכחי הוגדר באופציית auto_prepend_file או auto_append_file ב קובץ ההגדרות, ריצת הסקריפט תיעצר.


Use this extension at your own risk. 	 In order to have these functions available, you must compile php with Ingres support by using the --with-ingres option.


The documentation is stored in the phpdoc module. 	 ניתן למצוא מידע נוסף אודות הורדת קוד המקור ב XML של תיעוד זה ב http: / /cvs.php.net /. התיעוד מאוחסן במודול phpdoc.


The following is an if structure with elseif and else in the alternative format: 	 בתחביר האלטרנטיבי מתאים ל - else ול - elseif גם כן. בדוגמה הבאה מופיע משפט if עם elseif ועם else בתחביר אלטרנטיבי:


The flags which you can set are "\\Seen", "\\Answered", "\\Flagged", "\\Deleted", and "\\Draft" (as defined by RFC2060). 	 The flags which you can set are "\\Seen", "\\Answered", "\\Flagged", "\\Deleted", "\\Draft", and "\\Recent" (as defined by RFC2060).


Handling of binary data. 	 This extension does not define any resource types.


Example 1. pdf_findfont() example 	 דוגמה 1. pdf_findfont() example


The resulting FDF will be written to filename. 	 The FDF Toolkit provides a way to output the document to stdout if the parameter filename is '. '.


pg_lo_read 	 pg_lo_read_all


Example 1. fbsql_fetch_array() example 	 דוגמה 1. fbsql_fetch_array() example


The page contains the text "Times Roman outlined" in an outlined, 30pt font. 	 The following example should help to get started.


Function ircg_get_username() returns the username for the specified connection connection. 	 Function ircg_get_username() returns the username for specified connection connection.


pdf_set_parameter 	 pdf_set_text_rise


If the optional options is specified, writes the options to that mailbox also. 	 If the optional flags is specified, writes the flags to that mailbox also.


If you just want to dump the contents of a file to the output buffer, without first modifying it or seeking to a particular offset, you may want to use the readfile(), which saves you the fopen() call. 	 If you just want to dump the contents of a file to stdout you may want to use the readfile(), which saves you the fopen() call.


SWFTextField 	 Miscellaneous functions


This is not strictly speaking the same thing as including the file and having it inherit the parent file' s variable scope; the script is actually being run on the remote server and the result is then being included into the local script. 	 אם מאופשרת אופציית "URL fopen wrappers" (שהיא ברירת מחדל בהגדרות), יש באפשרותינו לציין קישור HTTP במקום שם קובץ מקומי. אם שרת המטרה מפרש קבצי PHP, תיתכן העברת משתנים לקישור בשיטת HTTP GET. זה שונה במקצת מסיפוח של קובץ מקומי היורש את המשתנים מהסקריפט הראשי. הסקריפט המרוחק בעצם מורץ ותוצאתו מסופחת לסקריפט המקומי.


Persistent link to DBA database 	 Persistent link to DBA base


This is also the default case for array_change_key_case(). 	 There is no installation needed to use these functions, they are part of the PHP core.


Depending on the type of the object the script has to react accordingly. 	 First of all you need a PHP script which evaluates the PATH_INFO variable and treats its value as the name of a Hyperwave object.


The syntax must be specified as an OID (Object Identifier) in a raw dot-notation (like 1.2.840.10003.5.10) or as one of the known registered record syntaxes (sutrs, usmarc, grs1, xml, etc.). 	 The syntax is specified as an OID (Object Identifier) in a raw dot-notation (like 1.2.840.10003.5.10) or as one of the known registered record syntaxes (sutrs, usmarc, grs1, xml, etc.).


If an error occurs, FALSE is returned and unless the function was called as @readfile, an error message is printed. 	 If filename begins with "http: / /" (not case sensitive), an HTTP 1.0 connection is opened to the specified server and the text of the response is written to standard output.


hw_api_attribute - values 	 Hyperwave API functions


ezmlm_hash() calculates the hash value needed when keeping EZMLM mailing lists in a MySQL database. 	 הפונקציה ezmlm_hash() מחשבת את ערך ה-hash הדרוש כששומרים רשימות דואר EZMLM במאגר נתונים מסוג MySql.


This list describes how to set up the PHP CGI binary to work with Xitami on Windows. 	 חלק זה מכיל רישומים ספציפיים לXitami.


The string may be a plain IP address, a hostname, a network interface name (under UNIX), or just a plain '-' to use the systems default IP address. 	 CURLOPT_FTPPORT: העבר ערך מסוג מחרוזת המציין כיצד יש להשיג את כתובת ה IP שתשמש את ה ftp עבור "POST". ההוראה POST מציינת לשרת המרוחק להתחבר לכתובת ה IP המצוינת. הערך יכול להיות כתובת IP רגילה, שם מחשב מארח, a network interface name (under UNIX), או '-' כדי לציין את כתובת ה IP שהיא ברירת המחדל של המערכת.


cpdf_close 	 cpdf_closepath


Returns TRUE on success or FALSE on failure. 	 Storing the session data in a local database. מחזיר TRUE במקרה של הצלחה או FALSE במקרה של כישלון.


print() is not actually a real function (it is a language construct) so you are not required to use parentheses with it. 	 But print(), opposed to echo(), can be called using a variable function.


$conn = Ora_Logon( "user@TNSNAME", "pass"); 	 $conn = Ora_Logon( "user emphasis @TNSNAME / emphasis ", "pass");


A properly installed Cygwin environment provides the mandatory files bison.simple and bison.exe. 	 On Windows 95 / 98 setting an environment variable can be done by placing a line in your autoexec.bat.


DomElement - get_attribute 	 DomElement - get_elements_by_tagname


The members of this group are listed on the front page of this manual. 	 הזכויות על מדריך זה © Copyright 1997, 1998, 1999, 2000, 2001, 2002 שמורות לקבוצת התיעוד של PHP. חברי הקבוצה רשומים בראש עמוד זה.


Also note that using ini.zlib.output_compression is preferred over ob_gzhandler(). 	 דוגמה 1. ob_gzhandler() Example


In private mode, the Expire header sent to the client may cause confusion for some browsers, including Mozilla. 	 In private mode, Expire header sent to the client, may cause confusion for some browser including Mozilla.


Beginning with PHP 4.3, bits and channels are present for other image types, too. 	 With JPG images, two extras index are returned: channel and bits. channel will be 3 for RGB pictures, and 4 for CMYK pictures. bits is the number of bits for each color.


Otherwise you can use \r, \n, or \0 to end reading (depending on the type parameter, see below). 	 Otherwise you can use \r, \n or \0 to end reading (depending on the type parameter, see below).


magenta - supported when terminal is in color mod 	 טבלה 2. ncurses key constants


Pseudo-types used in this documentation 	 NULL


Example 1. swfdisplayitem - multcolor() example 	 דוגמה 1. swfdisplayitem - multcolor() example


Support for multiple directories was added in 3.0.7. 	 You can only execute executables within the safe_mode_exec_dir.


For compatibility reasons, this binding for PDFlib still supports the old functions, but they should be replaced by their new versions. 	 For compatibility reasons this binding for PDFlib still supports the old functions, but they should be replaced by their new versions.


Returns TRUE on success or FALSE on failure. 	 If the new user and password authorization fails, the current connected user stays active. מחזיר TRUE במקרה של הצלחה או FALSE במקרה של כישלון.


The value is no longer used in the current toolkit version 5.0. 	 The last parameter determines if the field value is to be converted to a PDF Name (isName = 1) or set to a PDF String (isName = 0).


UCS-4, UCS-4BE, UCS-4LE, UCS-2, UCS-2BE, UCS-2LE, UTF-32, UTF-32BE, UTF-32LE, UCS-2LE, UTF-16, UTF-16BE, UTF-16LE, UTF-8, UTF-7, ASCII, EUC-JP, SJIS, eucJP-win, SJIS-win, ISO-2022-JP, JIS, ISO-8859-1, ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5, ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10, ISO-8859-13, ISO-8859-14, ISO-8859-15, byte2be, byte2le, byte4be, byte4le, BASE64, 7bit, 8bit and UTF7-IMAP. 	 ;; Enable Output Buffering output_buffering = On;; Set mb_output_handler to enable output conversion output_handler = mb_output_handler;; Set HTTP header charset default_charset = Shift_JIS;; Set http input encoding conversion to auto mbstring.http_input = auto;; Convert to SJIS mbstring.http_output = SJIS;; Set internal encoding to EUC-JP mbstring.internal_encoding = EUC-JP;; Do not print invalid characters mbstring.substitute_character = none


Next you may want to build the CLI version which is designed to use PHP from the command line. 	 For GUI users, launch VC++, and then select File = Open Workspace and select php4ts.


The option parameter is the option you want to set, and the value is the value of the option given by the option. 	 הפונקציה curl_setopt() מאפשרת לקבוע את האפשרויות של CURL session המזוהה על ידי הפרמטר ch. option היא האופציה אותה ניתן לקבוע, וה value הוא הערך של האופציה שניתנה על ידי option.


DIR is the CyberCash MCK install directory. 	 DIR is the gettext install directory, defaults to / usr / local.


?php / / A function that records the time when it is called function profile ($dump = FALSE) {static $profile; / / Return the times stored in profile, then erase it if ($dump) {$temp = $profile; unset ($profile); return ($temp);} $profile[] = microtime ();} / / Set up a tick handler register_tick_function("profile"); / / Initialize the function before the declare block profile (); / / Run a block of code, throw a tick every 2nd statement declare (ticks=2) {for ($x = 1; $x 50; ++$x) {echo similar_text (md5($x), md5($x*$x)), "br / ;";}} / / Display the data stored in the profiler print_r (profile (TRUE));? 	 pre ?php / / A function that records the time when it is called function profile ($dump = FALSE) {static $profile; / / Return the times stored in profile, then erase it if ($dump) {$temp = $profile; unset ($profile); return ($temp);} $profile[] = microtime ();} / / Set up a tick handler register_tick_function("profile"); / / Initialize the function before the declare block profile (); / / Run a block of code, throw a tick every 2nd statement declare (ticks=2) {for ($x = 1; $x 50; ++$x) {echo similar_text (md5($x), md5($x*$x)), "lt;br gt ;";}} / / Display the data stored in the profiler print_r (profile (TRUE));? / pre


Example 2. array_flip() example: collision 	 דוגמה 2. array_flip() example: collision


This extension has no configuration directives defined in php.ini. 	 This extension does not define any resource types.


The documentation would also need to be done and James Moore came in to help with that. 	 כשהרגשתי ש-PHP-GTK יהיה פרוייקט נרחב, הקמתי רשימת תפוצה ומאגרי CVS במיוחד בשבילו. בעזרת קולין ויברוק (Colin viebrock) הוקם גם אתר אינטרנט - gtk.php.net. גם התיעוד היה צריך להיכתב וג'יימס מור (James Moore) הגיע על מנת לעזור בזה.


Pass a string containing the password required to use the CURLOPT_SSLCERT certificate. 	 CURLOPT_SSLCERTPASSWD: העבר ערך מסוג מחרוזת המכיל את הסיסמה הנדרשת כדי להשתמש ב CURLOPT_SSLCERT certificate.


As of PHP 4.3.0, in order to prevent someone from writing a script which reveals the password for a page that was authenticated through a traditional external mechanism, the PHP_AUTH variables will not be set if external authentication is enabled for that particular page and safe mode is enabled. 	 In order to prevent someone from writing a script which reveals the password for a page that was authenticated through a traditional external mechanism, the PHP_AUTH variables will not be set if external authentication is enabled for that particular page.


ovrimos_result_all 	 ovrimos_prepare


Returns TRUE on success or FALSE on failure. 	 Outputs arg. מחזיר TRUE במקרה של הצלחה או FALSE במקרה של כישלון.


For example, the pat - tern cat( aract_BAR_erpillar_BAR_) matches one of the words "cat", "cataract", or "caterpillar ". 	 For example, the pat - tern cat( aract_BAR_erpillar_BAR_) matches one of the words "cat", "cataract", or "caterpil-For example, the pat - tern cat(aract_BAR_erpillar_BAR_) matches one of the words "cat", "cataract", or "caterpil - lar ".


Currently, the following character encoding is supported by the mbstring Currently, the following character encoding is supported by the mbstring module. 	 ;; Disable Output Buffering output_buffering = Off;; Set HTTP header charset default_charset = EUC-JP;; Set HTTP input encoding conversion to auto mbstring.http_input = auto;; Convert HTTP output to EUC-JP mbstring.http_output = EUC-JP;; Set internal encoding to EUC-JP mbstring.internal_encoding = EUC-JP;; Do not print invalid characters mbstring.substitute_character = none


pdf_open_image_file 	 pdf_open_gif


?php / / Available since PHP 4.1.0 print $_POST[ 'username']; print $_REQUEST['username']; import_request_variables('p', 'p_'); print $p_username; / / Available since PHP 3. print $HTTP_POST_VARS['username']; / / Available if the PHP directive register_globals = on. 	 כאר הטופס הנ" ל נשלח, הערך שמכיל שדה הטקסט בטופס יהיה זמין במשתנה $HTTP_POST_VARS['username']. אם אופציית register_globals מאופשרת, המשתנה יוגדר גם כמשתנה $username שמוגדר בטווח המשתנים הגלובלי.


Hyperwave API functions 	 hw_api_attribute


Example 1. mcrypt_module_open() Example 	 דוגמה 1. mcrypt_module_open() Example


Path to the ircg-config script. 	 Include iconv support.


While using PHP in the ecommerce field, you 'll find the Cybercash payment, CyberMUT, VeriSign Payflow Pro and CCVS functions useful for your online payment programs. 	 לשימושי עיסקיים בתחון ה-ecommerce, ניתן למצוא מערכות שימושיות כמו Cybercash payment, CyberMUT, Verysign Payflow Pro ו CCVS לצורך תוכנית לתשלום מקוון.


PHP 3 only! 	 GD:


The manuals are updated automatically as the text is updated. 	 ניתן להוריד את המדריך בשפות וגרסאות שונות, בין השאר בטקסט פשוט, HTML פשוט, PDF, PalmPilot DOC, PalmPilot iSilo ועזרת HTML לחלונות, מ http: / /www.php.net / docs.php. המדריכים מעודכנים באופן אוטומטי כשהטקסט מתעדכן.


Prior to PHP 4.2.0, Uninitialized class variables will not be reported by get_class_vars(). 	 Uninitialized class variables will not be reported by get_class_vars().


The path property is set to path the directory that was opened. 	 מנגנון pseudo-object oriented לקריאה מתוך ספריה. המשתנה directory נפתח. שני מאפיינים הינם זמינים לאחר שהספריה נפתחה. ניתן להשתמש במאפיין handle עם פומקציות ספריה נוספות כגון readdir(), rewinddir() and closedir(). המאפיין path מקבל את ערך מיקום הספרייה שנפתחה. ישנן שלושה שיטות אפשריות: read, rewind ו close.


session.encode_sources 	 extname.global_string


The CLI SAPI does not change the current directory to the directory of the executed script! 	 The list of command line options provided by the PHP binary can be queryied anytime by running PHP with the -h switch:


ldap_connect() / / establish connection to server _BAR_ ldap_bind() / / anonymous or authenticated "login "_BAR_ do something like search or update the directory and display the results _BAR_ ldap_close() / / "logout" 	 The Netscape SDK contains a helpful Programmer 's Guide in .html format.


mcrypt_module_is_block_algorithm_mode 	 mcrypt_module_is_block_algorithm


Whether to allow persistent connections to MySQL. 	 Wether to allow persistent connections to MySQL.


If you don 't already have an unzip utility, you can get a free version from InfoZip. 	 This will provide you most of the popular GNU utilities used by the build process.


(4.1.0 - 4.2.3 only) 	 (4.1.0 - 4.2.1 only)


For more information see the appendix on Debugging PHP. 	 The debugger is still under development.


Example 1. array_reverse() example 	 דוגמה 1. array_reverse() example


Note that the disable_functions directive can not be used outside of the php.ini file which means that you cannot disable functions on a per-virtualhost or per-directory basis in your httpd.conf file. 	 In safe mode, the uid of the script is added to the realm part of the WWW-Authenticate header if you set this header (used for HTTP Authentication).


Support for character sequences and decrementing arrays was added in 4.1.0. 	 # array_reverse can be used to flip the order of a range foreach( array_reverse(range(0,9)) as $number) {echo $number;} # array_map() can be used to turn integers into characters using chr() foreach(array_map('chr', range(ord('a'),ord('z'))) as $character) {echo $character;}


Example 1. bzcompress() Example 	 דוגמה 1. bzcompress() Example


Bakken, and is dedicated to his first-born daughter, Malin Bakken. 	 Bakken) והוקדש לבתו הבכורה, מלין באקן (Malin Bakken).


?php $foo = True; / / assign the value TRUE to $foo? 	 $foo = True; / / assign the value TRUE to $foo


The time is returned as a Unix timestamp, which is suitable for the date() function. 	 The time is returned as a Unix timestamp.


C:\WINNT\SYSTEM32 or C:\WINDOWS\SYSTEM32). 	 הערה: תמיכה מלאה ב InterBase 6 הוספה ב PHP 4.0.


If you use this option without specifying the path to MySQL, PHP will use the built-in MySQL client libraries. 	 By using the --with-mysql By using the --with-mysql configuration option you enable PHP to access MySQL databases.


?php header( "Status: 	 header( "Status:


InterBase functions 	 פונקציות InterBase


By default, PHP uses the libc random number generator with the rand() By default, PHP uses the libc random number generator with the rand() function. 	 By default, PHP uses the libc random number generator with the rand() function. mt_rand() function is a drop-in replacement for this.


The PHP code is enclosed in special start and end tags that allow you to jump into and out of "PHP mode". 	 ניתן לשים לב באיזה אופן שונה קוד זה מקוד שנכתב בשפה אחרת כמו פרל ושפת C - - במקום לכתוב את הקוד עם הרבה פקודות להפקת פלט HTML, כותבים HTML עם קוד משולב לביצוע פעולה מסויימת (במקרה זה, הדפסת טקסט). קוד ה-PHP מוקף ב תגיות פתיחה וסגירה מיוחדות שמאפשרות לך לעבור ל"מצב PHP "וחזרה ממנו.


?php mysql_connect( "localhost", "mysql_user", "mysql_password") or die("Could not connect: ". mysql_error()); printf ("MySQL server version: %s\n", mysql_get_server_info());? 	 ?php mysql_connect( "localhost", "mysql_user", "mysql_password") or die("could not connect"); printf ("MySQL server version: %s\n", mysql_get_server_info());?


However, in certain cases, you may want to clear the cached information. 	 Therefore, the result of the last call to any of the status functions (listed below) is stored for use on the next such call using the same filename.


pdf_setgray_fill 	 pdf_setgray


array_walk 	 Array Functions


pg_fetch_all 	 pg_fetch_array


These functions are listed in the following table. 	 The function DomNode_append_child() has changed its behaviour.


pfpro_process 	 pfpro_version


?php var_dump( 25 / 7); / / float(3.5714285714286) var_dump((int) (25 / 7)); / / int(3) var_dump(round(25 / 7)); / / float(4)? 	 var_dump( 25 / 7); / / output: float(3.5714285714286)


Up to PHP 4.3.0 you are able to add both db2 and db3 handler but only one of them can be used internally. 	 This extension does not define any constants.


C:\WINNT\SYSTEM32 or C:\WINDOWS\SYSTEM32) 	 Please keep in mind that this extension is still considered experimental!


If you have enabled safe_mode, or open_basedir further restrictions may apply. 	 Versions prior to PHP 4.0.5 do not handle HTTP redirects.


?php header ("Content-type: image / jpeg"); $im = imagecreate (100, 100); $w = imagecolorallocate ($im, 255, 255, 255); $red = imagecolorallocate ($im, 255, 0, 0); / * Draw a dashed line, 5 red pixels, 5 white pixels * / $style = array ($red,$red,$red,$red,$red,$w,$w,$w,$w,$w); imagesetstyle ($im, $style); imageline ($im, 0, 0, 100, 100, IMG_COLOR_STYLED); / * Draw a line of happy faces using imagesetbrush() with imagesetstyle * / $style = array ($w,$w,$w,$w,$w,$w,$w,$w,$w,$w,$w,$w,$red); imagesetstyle ($im, $style); $brush = imagecreatefrompng ("http: / /www.libpng.org / pub / png / images / smile.happy.png"); $w2 = imagecolorallocate($brush,255,255,255); imagecolortransparent ($brush, $w2); imagesetbrush ($im, $brush); imageline ($im, 100, 0, 0, 100, IMG_COLOR_STYLEDBRUSHED); imagejpeg ($im); imagedestroy ($im);? 	 ?php header ("Content-type: image / png"); $im = imagecreate (100, 100); $w = imagecolorallocate ($im, 255, 255, 255); $red = imagecolorallocate ($im, 255, 0, 0); / * Draw a dashed line, 5 red pixels, 5 white pixels * / $style = array ($red,$red,$red,$red,$red,$w,$w,$w,$w,$w); imagesetstyle ($im, $style); imageline ($im, 0, 0, 100, 100, IMG_COLOR_STYLED); / * Draw a line of happy faces using imagesetbrush() with imagesetstyle * / $style = array ($w,$w,$w,$w,$w,$w,$w,$w,$w,$w,$w,$w,$red); imagesetstyle ($im, $style); $brush = imagecreatefrompng ("http: / /www.libpng.org / pub / png / images / smile.happy.png"); imagecolortransparent ($brush, $w); imagesetbrush ($im, $brush); imageline ($im, 100, 0, 0, 100, IMG_COLOR_STYLEDBRUSHED); imagepng ($im); imagedestroy ($im);?


Returns the value on success or FALSE if the given option is not supported. 	 Returns the value on success, or FALSE if the given option is not supported.


pdf_set_text_matrix 	 pdf_set_parameter


If the majority of the lines in the file are all larger than 8KB, it is more resource efficient for your script to specify the maximum line length. 	 $fd = fopen ("/ tmp / inputfile.txt", "r"); while (!feof ($fd)) {$buffer = fgets($fd, 4096); echo $buffer;} fclose ($fd);


Example 1. each() examples 	 דוגמה 1. each() examples


log10 	 log


You can process the results of a PDF form POST request by writing the data recieved in $HTTP_FDF_DATA to a file and open it using fdf_open(). 	 Currently, the file has to be created 'manually' by using fopen() and writing the content of HTTP_FDF_DATA with fwrite() into it.


mcrypt_generic_init 	 mcrypt_encrypt


Example 5. removing attribute 	 דוגמה 5. removing attribute


You need to download the zip binary distribution from the downloads page at http: / /www.php.net / downloads.php. 	 You need to download the zip binary distribution from the downloads page at http: / /www.php.net /.


; any text on a line after an unquoted semicolon (;) is ignored [php]; section markers (text within square brackets) are also ignored; Boolean values can be set to either:; true, on, yes; or false, off, no, none register_globals = off magic_quotes_gpc = yes; you can enclose strings in double-quotes include_path = ".: / usr / local / lib / php "; backslashes are treated the same as any other character include_path = ".;c:\php\lib" 	 UID / GID checks are bypassed when including files from this directory and its subdirectories (directory must also be in include_path or full path must including).


Example 1. mysql_get_client_info Example 	 דוגמה 1. mysql_get_client_info Example


?php print_r (get_loaded_extensions());? 	 print_r (get_loaded_extensions());


?php $rest = substr( "abcdef", 0, -1); / / returns "abcde "$rest = substr("abcdef", 2, -1); / / returns "cde" $rest = substr("abcdef", 4, -4); / / returns "" $rest = substr("abcdef", -3, -1); / / returns "de "? 	 $rest = substr( "abcdef", 0, -1); / / returns "abcde "$rest = substr("abcdef", 2, -1); / / returns "cde" $rest = substr("abcdef", 4, -4); / / returns "" $rest = substr("abcdef", -3, -1); / / returns "de "


aspell_check 	 aspell_check_raw


PHP 3 only! 	 Disable session support.


Disable the URL-aware fopen wrapper that allows accessing files via HTTP or FTP. 	 Include libedit readline replacement.


$trans = get_html_translation_table( HTML_ENTITIES); $str = "Hallo Frau Krämer"; $encoded = strtr($str, $trans); 	 $trans = get_html_translation_table( HTML_ENTITIES); $str = "Hallo Frau Krהmer"; $encoded = strtr($str, $trans);


ftp_rename() renames the file or directory that is currently named from to the new name to, using the FTP stream ftp_stream. 	 ftp_rename() renames the file or directory currently named from to the new name to, on the FTP stream ftp_stream.


ldap_get_values 	 ldap_list


In each case, the basic form of the alternate syntax is to change the opening brace to a colon (:) and the closing brace to endif;, endwhile;, endfor;, endforeach;, or endswitch;, respectively. 	 PHP מציעה תחביר חלופי למספר מבני-בקרה כגון if, while, for, foreach, ו - switch. התחביר החלופי מתבטא בפקודה פותחת בשימוש בנקודותיים (:) במקום סוגריים מסולסלים ובפקודה שסוגרת את המבנה כגון: endif;, endwhile;, endfor;, endforeach;, או endswitch;.


Autoglobals, such as $_SERVER, became available in PHP version 4.1.0. $HTTP_SERVER_VARS has been available since PHP 3. 	 An example script fragment which would force client authentication on a page would be the following:


Translations 	 missing stuff


The function causes IRC color / font codes to be encoded in HTML and escapes certain entities. 	 This feature could be usable, e.g. if someone wants to discuss about an html problem.


Only the superuser may change the group of a file arbitrarily; other users may change the group of a file to any group of which that user is a member. 	 מחזיר TRUE במקרה של הצלחה או FALSE במקרה של כישלון.


The handle parameter must be a valid file pointer to a file successfully opened by fopen(), popen(), or fsockopen(). 	 Fp must be a valid file pointer to a file successfully opened by fopen(), popen(), or fsockopen()


When safe mode is enabled, PHP checks whether the directory in which you are about to operate has the same UID (owner) as the script that is being executed. 	 הערה: כאשר מצב safe-mode פעיל, PHP תבדוק האם הספרייה שבה אתה רוצה לבצע פעולה, היא בעלת הרשאת משתמש (UID) הזהה לזו של התוכנית המורצת.


At some point in the future, the PHP team might want to add another constant or keyword, or you may introduce another constant into your application, and then you get in trouble. 	 This is also valid for other deprecated 'features'. (put the line error_reporting(E_ALL); in your script)


If you use this option without specifying the path to fbsql, PHP will search for the fbsql client libraries in the default installation location for the platform. 	 In order to have these functions available, you must compile PHP with fbsql support by using the --with-fbsql option.


vpopmail_del_domain_ex 	 vpopmail_del_domain


To reiterate, inside a double-quoted string, it' s valid to not surround array indexes with quotes so "$foo[bar] "is valid. 	 See variable parsing in strings for more details.


imap_ping 	 imap_popen


ncurses_insch 	 ncurses_init_color


Valid numeric data is an optional sign, followed by one or more digits (optionally containing a decimal point), followed by an optional exponent. 	 When the first expression is a string, the type of the variable will depend on the second expression.


Returns TRUE on success or FALSE on failure. on error. 	 Sets the value of the specified option to be newval. מחזיר TRUE במקרה של הצלחה או FALSE במקרה של כישלון. on error.


pdf_open_CCITT 	 pdf_open


?php define ('BIRD', 'Dodo bird'); / / Parse without sections $ini_array = parse_ini_file("sample.ini"); print_r($ini_array); / / Parse with sections $ini_array = parse_ini_file("sample.ini", TRUE); print_r($ini_array);? 	 ?php / / Parse without sections $ini_array = parse_ini_file( "sample.ini"); print_r($ini_array); / / Parse with sections $ini_array = parse_ini_file("sample.ini", TRUE); print_r($ini_array);?


ldap_get_values_len 	 ldap_get_option


Example 1. ereg_replace() Example 	 דוגמה 1. ereg_replace() Example


The sleep() function delays program execution for the given number of seconds. 	 The sleep function delays program execution for the given number of seconds.


Lookbehinds in conjunction with once-only subpatterns can be particularly useful for matching at the ends of strings; an example is given at the end of the section on once-only subpatterns. 	 Lookbehinds in conjunction with once-only subpatterns can be particularly useful for match - ing at the ends of strings; an example is given at the end of the section on once-only subpatterns.


A file upload screen can be built by creating a special form which looks something like this: 	 form enctype=" multipart / form-data "action="_URL_" method="post "input type="hidden" name="MAX_FILE_SIZE "value="1000" Send this file: input name="userfile "type="file" input type="submit "value="Send File" / form


You may want to view the latest php.ini here from CVS. 	 If magic_quotes_sybase is also on, a single-quote is escaped with a single-quote instead of a backslash.


If you omit a key, the maximum of the integer-indices is taken, and the new key will be that maximum + 1. 	 If a key is the standard representation of a non-negative integer, it will be interpreted as such (i.e. '8 'will be interpreted as 8, while '08' will be interpreted as '08 ').


But the most important feature of double-quoted strings is the fact that variable names will be expanded. 	 But the most important pre of double-quoted strings is the fact that variable names will be expanded.


To refer to a file in a subdirectory on your hard disk, you might use something like: 	 To refer to a file in a subdirectory on your hard disk, you might use something like


Variables which are currently registered to a script 's session. 	 מערך אסוציאטיבי של המשתנים המועברים לסקריפט הנוכחי מהשרת. ערכים אלו מקבילים למשתני שרת Apache המתוארים למעלה. משתנה זה מוגדר בכל טווח משתנים כלשהו. נוסף ל-PHP החל מגרסה 4.1.0.


Example 2. in_array() with strict example 	 דוגמה 2. in_array() with strict example


Example 1. printer_draw_rectangle() example 	 דוגמה 1. printer_draw_rectangle() example


?php header( 'WWW-Authenticate: 	 header( 'WWW-Authenticate:


pg_lo_read 	 pg_lo_seek


This option is not available for Windows platforms. 	 The restored session variables will only be available in the array $HTTP_SESSION_VARS.


php4 / main / php.h, located in the main PHP directory. 	 php.h, located in the main PHP directory.


Then, any changes made to those elements will be made in the original array itself. 	 These warnings may be suppressed by prepending the '@' sign to the array_walk() call, or by using error_reporting().


FILE is the optional pathname to the Apache apxs tool; defaults to apxs. 	 Include ZIP support (requires zziplib = 0.10.6).


Sets the file position indicator for the file referenced by handle .The new position, measured in bytes from the beginning of the file, is obtained by adding offset to the position specified by whence, whose values are defined as follows: 	 Sets the file position indicator for the file referenced by fp .The new position, measured in bytes from the beginning of the file, is obtained by adding offset to the position specified by whence, whose values are defined as follows:


What happens during make install depends on your configure line. 	 Unlikely the CGI SAPI, no headers are written to the output.


fdf_errno 	 fdf_get_file


session.referer_check contains the substring you want to check each HTTP Referer for. 	 Cookies are optimal, but since they are not reliable (clients are not bound to accept them), we cannot rely on them.


To use shared memory allocation (mm) for session storage configure PHP --with-mm[=DIR]. 	 ?php session_start(); if (isset($HTTP_SESSION_VARS['count'])) {$HTTP_SESSION_VARS['count']++;} else {$HTTP_SESSION_VARS['count'] = 0;}?


Gathers the statistics of the file opened by the file pointer handle. 	 Gathers the statistics of the file opened by the file pointer fp.


ftp_get 	 ftp_get_option


pdf_concat 	 pdf_closepath_fill_stroke


A set of macros was introduced into Zend' s API that simplify access to zval containers (see Table 42-1). 	 A set of macros was introduced into Zend' s API that simplify access to zval containers (see טבלה 43-1).


Reads a file and writes it to the output buffer. 	 Reads a file and writes it to standard output.


(PHP 3, PHP 4) 	 (unknown)


This manual is written in XML using the DocBook XML DTD, using DSSSL (Document Style and Semantics Specification Language) for formatting, and experimentally the XSLT (Extensible Stylesheet Language Transformations) for maintenance and formatting. 	 מדריך זה רשום ב XML ומשתמש ב DocBook XML DTD, המשתמש ב DSSSL (Document Style and Semantics Specification Language) לעיצוב, ובאופן ניסיוני ב XSLT (Extensible Stylesheet Language Transformations) לניהול ועיצוב.


Also, much of the PHP Conference Material is freely available. 	 הקדמה נחמדה ל-PHP מאת Stig Sזther Bakken ניתן למצוא כאן באתר האינטרנט של Zend. כמו-כן, רוב חומר הדיון ב-PHP ניתן בחינם.


fdf_add_doc_javascript 	 fdf_add_template


yaz_scan_result 	 yaz_scan


The statement part of the declare block will be executed - - how it is executed and what side effects occur during execution may depend on the directive set in the directive block. 	 חלק ה - statement בפקודת declare הוא פקודה או בלוק של פקודות שיורצו. פרמטר ה - directive יקבע את אופן ההרצה של הפקודות ותופעות נוספות שמתלוות להרצתו.


This means that "safe_mode_include_dir = / dir / incl" also allows access to "/ dir / include" and "/ dir / incls" if they exist. 	 This is a still probably incomplete and possibly incorrect listing of the functions limited by safe mode.


For example, to access TIGER you use the PHP constant MHASH_TIGER. 	 You need to compile PHP with the --with-mhash parameter to enable this extension.


Example 1. fbsql_create_clob() example 	 דוגמה 1. fbsql_create_clob() example


While browscap.ini contains information on many browsers, it relies on user updates to keep the database current. 	 The information is returned in an object, which will contain various data elements representing, for instance, the browser' s major and minor version numbers and ID string; TRUE / false values for features such as frames, JavaScript, and cookies; and so forth.


The above loop would run one time exactly, since after the first iteration, when truth expression is checked, it evaluates to FALSE ($i is not bigger than 0) and the loop execution ends. 	 לולאה זו תורץ פעם אחת בדיוק, מאחר ומייד אחרי האיטרציה הראשונה, ערכו של הביטוי שווה ל - FALSE (ערכו של $i אינו גדול מ-0) וריצת הלולאה תפסק.


For a description of both structures, see Table 32-2, Table 32-3 and Table 32-4. 	 For a description of both structures, see טבלה 33-2, טבלה 33-3 and טבלה 33-4.


Attributes which are language depended (like the title, keyword, description) will form an associative array with the keys set to the language abbreviations. 	 Attributes which are language depended (like the title, keyword, description) will form an associated array with the key set to the language abbreviation.


Timezone offset in seconds. 	 דוגמה 1. date() example


preg_replace_callback 	 preg_replace


pdf_open_image 	 pdf_open_jpeg


Having register_globals off affects the set of predefined variables available in the global scope. 	 שם וגרסת הפרוטוקול לקבלת הפניות. (בדרך-כלל 'HTTP / 1.0 ')


History of PHP related projects 	 ההיסטוריה של פרוייקטים הקשורים ל-PHP


DomDocument - xinclude 	 DomDocumentType - entities


If register_globals is enabled, then each global variable can be registered as session variable. 	 session.gc_probability session.gc_probability specifies the probability that the gc (garbage collection) routine is started on each request in percent.


?php if (!isset($_SERVER['PHP_AUTH_USER'])) {header( 'WWW-Authenticate: 	 ?php if (!isset($PHP_AUTH_USER)) {header( "WWW-Authenticate:


array_walk() is not affected by the internal array pointer of array. array_walk() will walk through the entire array regardless of pointer position. 	 Modifying the array from inside func may cause unpredictable behavior.


SAFE MODE Restriction in effect. 	 chgrp()


pdf_skew 	 pdf_show_boxed


This applies whether or not the follow - ing character would otherwise be interpreted as a meta - character, so it is always safe to precede a non-alphanumeric with "\" to specify that it stands for itself. 	 This applies whether or not the follow - ing character would otherwise be interpreted as a meta - character, so it is always safe to precede a non-alphameric with "\" to specify that it stands for itself.


getallheaders() is an alias for apache_request_headers(). 	 This function returns an associative array of all the HTTP headers in the current request.


eregi 	 eregi_replace


PHP 4 and the integrated Zend engine have greatly improved PHP 's performance and capabilities, but great care has been taken to break as little existing code as possible. 	 PHP 4 and the integrated Zend engine have greatly improved PHPs performance and capabilities, but great care has been taken to break as little existing code as possible.


while (list ($key, $value) = each ($arr)) {if (!($key% 2)) {/ / skip odd members continue;} do_something_odd ($value);} $i = 0; while ($i+ + 5) {echo "Outer br \n"; while (1) {echo "nbsp; nbsp;Middle br \n"; while (1) {echo" nbsp; nbsp;Inner br \n"; continue 3;} echo "This never gets output. br \n";} echo "Neither does this. br \n";} 	 while (list ($key, $value) = each ($arr)) {if (!($key% 2)) {/ / skip odd members continue;} do_something_odd ($value);} $i = 0; while ($i+ + lt; 5) {echo "Outer br \n"; while (1) {echo "nbsp; nbsp;Middle br \n"; while (1) {echo" nbsp; nbsp;Inner br \n"; continue 3;} echo "This never gets output. br \n";} echo "Neither does this. br \n";}


See also imap_open(), imap_set_quota(), imap_get_quotaroot(). 	 See also imap_open(), imap_set_quota().


This directory contains core PEAR files. 	 At the time of this writing, this is still in the design phase, but it 's being tried to establish something similar to CPAN for Perl here.


You would probably want to perform some checks and / or authenticate the user before performing this file copy. 	 בתוך הקובץ put.php צריך לכתוב משהו כזה:


In this case, you will pass in $HTTP_SERVER_VARS[ 'HTTP_USER_AGENT']. 	 For more information (including locations from which you may obtain a browscap.ini file), check the PHP FAQ at http: / /www.php.net / FAQ.php.


Next 	 List of Resource Types


Variables provided to the script via the environment. 	 מערך אסוציאטיבי של המשתנים המועברים לסקריפט הנוכחי דרך שיטת HTTP GET.


RFC 1896, RFC 2045, RFC 2046, RFC 2047, RFC 2048, and RFC 2049. 	 דואר() מחזירה TRUE אם הדואר נשלח בהצלחה, ו - FALSE אחרת.


pdf_open_pdi 	 pdf_open_pdi_page


It allows for conditional execution of code fragments. 	 מבנה פקודת ה - if הוא אחד המבנים החשובים ביותר בהרבה שפות תכנות לרבות PHP. פקודה זו מאפשרת התנייה של ריצת חלקי קוד. מבנה פקודת if ב - PHP דומה למבנה if בשפת C:


Home 	 References Explained


PHP Manual 	 מדריך PHP


In order to guarantee maximum compatibility with all clients, the keyword "Basic" should be written with an uppercase "B", the realm string must be enclosed in double (not single) quotes, and exactly one space should precede the 401 code in the HTTP / 1.0 401 header line. 	 In order to guarantee maximum compatibility with all clients, the keyword "Basic" should be written with an uppercase "B", the realm string must be enclosed in double (not single) quotes, and exactly one space should precede the "401 "code in the "HTTP / 1.0 401" header line.


?php $code_retour = $_GET[ "code-retour"]; $texte_libre = $_GET["texte-libre"];? 	 ?php $code_retour=$HTTP_GET_VARS[ "code-retour"]; $texte_libre=$HTTP_GET_VARS["texte-libre"];?


Example 1. array_merge_recursive() example 	 דוגמה 1. array_merge_recursive() example


Another way to delimit strings is by using heredoc syntax (""). 	 Another way to delimit strings is by using here doc syntax ("").


PHP 3 does not care if the function is being defined in class B, or if it has been inherited. 	 ב PHP 3, הפונקציה B() שבמחלקה A לפתע תהפוך לבנאית במחלקה B, למרות שלא לזה "התכוון המשורר". החוק ב PHP 3 הוא: 'הבנאי A היא הפונקציה בעלת אותו שם של המחלקה. '.ל PHP 3 לא איכפת אם הפונקציה הוגדרה במחלקה B, או הם היא נגזרה ממחלקה A.


Example 1. msql_tablename() example 	 דוגמה 1. msql_tablename() example


When querying boolean values: 	 Returns the value of the configuration option on success, an empty string on failure.


Include Adabas D support. 	 DIR is the InterBase base install directory, defaults to / usr / interbase.


By default, the quantifiers are "greedy", that is, they match as much as possible (up to the maximum number of permitted times), without causing the rest of the pattern toBy default, the quantifiers are "greedy", that is, they match as much as possible (up to the maximum number of permitted times), without causing the rest of the pattern to fail. 	 By default, the quantifiers are "greedy", that is, they match as much as possible (up to the maximum number of per - mitted times), without causing the rest of the pattern toBy default, the quantifiers are "greedy", that is, they match as much as possible (up to the maximum number of per - mitted times), without causing the rest of the pattern to fail.


In the tradition of PHP, arrays and hashtables may pretty much be used interchangably. 	 sapi / servlet builds upon the mechanism defined by ext / java to enable the entire PHP processor to be run as a servlet.


Example 1. count() example 	 דוגמה 1. count() example


Name of SESAM application configuration file. 	 Configuration notes:


Many examples in this reference require an XML string. 	 Many examples in this reference require a xml string.


There is also support for calendar triggers (alarms) and recurring events. 	 To get these functions to work, you have to compile PHP with --with-mcal.


#! / usr / bin / php ?php var_dump( $argv);? 	 #! / usr / bin / php? var_dump( $argv);?


As of PHP 4.3.0, the name, location and existence of the CLI / CGI binaries will differ depending on how PHP is installed on your system. 	 Since PHP 4.3.0 the CLI SAPI is no longer experimental and is therefore always built and installed as the php (called php.exe on Windows) binary.


See also key(), list(), current(), reset(), next(), prev(), and foreach. 	 See also key(), list(), current(), reset(), next(), prev(), and foreach().


If function function requires more parameters than given to it, an error of level E_WARNING will be generated each time array_walk() calls function. 	 Thus, you can' t use array_walk() straight with str2lower(), you must build a user-defined function with it first, and pass this function as argument.


When enabled, GET or PUT requests with a resumepos or startpos parameter will first seek to the requested position within the file. 	 Parameter value has be to of type int and must be greater than 0.


More information about how this manual is developed can be found in the 'About the manual' appendix. 	 אתם יכולים להוריד מהרשת את המדריך הזה במגוון צורות בכתובת http: / /www.php.net / docs.php. הקבצים להורדה מתעדכנים בו ברגע שינוי התוכן. מידע נוסף בנושא פיתוח המדריך הזה ניתן למצוא בנספח 'על מדריך זה'.


All these stub files are generated automatically, along with .cvsignore, by a little shell script named ext_skel that resides in the ext directory. 	 Both files are generated automatically, along with .cvsignore, by a little shell script named ext_skel that resides in the ext directory.


/ / Set the network timeout to 10 seconds ftp_set_option( $conn_id, FTP_TIMEOUT_SEC, 10); 	 / / Set the network timeout down to 10 seconds ftp_set_option( $conn_id, FTP_TIMEOUT_SEC, 10);


Clearly, this large number of books, written by different authors, published by many publishers, and their availability in so many languages - are a strong testimony for PHP 's world-wide success. 	 המספר הגדול של ספרים על PHP שנכתבו בידי אנשים שונים בשפות רבות והופצו על ידי מו "לים רבים הוא עדות ברורה להצלחתה העולמית של PHP.


pg_lo_read_all 	 pg_lo_open


Users are supposed to convert back to binary format by yourself. 	 When you SELECT bytea type, PostgreSQL returns octal byte value prefixed by\. (e.g. \032) Users are supposed to convert back to binary formant by yourself.


This array has no direct analogue in versions of PHP prior to 4.1.0. 	 מערך אסוציאטיבי של משתנים המכילים מידע על קבצים שהועלו לשרת בשיטת HTTP POST. יש לעיין ב העלאת קבצים בשיטת POST למידע על תכולתו של $_FILES. משתנה זה מוגדר בכל טווח משתנים כלשהו. נוסף ל-PHP החל מגרסה 4.1.0.


The file where the input of your transfer comes from. 	 CURLOPT_INFILE: הקובץ ממנו הקלט של ההעברה מגיע.


See also ftp_fget() and ftp_async_get(). 	 See also ftp_fget().


apache_response_headers 	 apache_note


swfmovie - nextframe() moves to the next frame of the animation. 	 swfmovie - setframes() moves to the next frame of the animation.


Persistent database links are special, they are not destroyed by the garbage collector. 	 Persistent database-links are special, they are not destroyed by the gc.


See also fdf_open_string(), fdf_close(), fdf_create() and fdf_save(). 	 See also fdf_close().


You can for example use the $_FILES[ 'userfile']['size'] variable to throw away any files that are either too small or too big. 	 ?php / * Userland test for uploaded file. * / function is_uploaded_file( $filename) {if (!$tmp_file = get_cfg_var('upload_tmp_dir')) {$tmp_file = dirname(tempnam('', ''));} $tmp_file .= '/'. basename($filename); / * User might have trailing slash in php.ini... * / return (ereg_replace(' / +', '/', $tmp_file) == $filename);} if (is_uploaded_file($userfile)) {copy($userfile, "/ place / to / put / uploaded / file");} else {echo "Possible file upload attack: filename '$userfile' .";}?


The corresponding type value for longs is IS_LONG (see Example 33-2). 	 The corresponding type value for longs is IS_LONG (see דוגמה 34-2).


From version 4.1.0 onward, PHP provides an additional set of predefined arrays containing variables from the web server (if applicable), the environment, and user input. 	 תכולת כותר ה - Accept-Language: בפנייה הנוכחית, אם קיים כותר כזה. לדוגמה: 'en'.


Lookbehind assertions start with (? = for positive assertionsLookbehind assertions start with (? = for positive assertions and (?! for negative assertions. 	 Lookbehind assertions start with (? = for positive asser-Lookbehind assertions start with (? = for positive asser - tions and (?! for negative assertions.


imagecolorallocatealpha 	 imagecolorallocate


In an URL 	 דוגמה 51-3. העברה לצורת URL


You may use register_shutdown_function() instead to simulate most effects of destructors. 	 הערה: אין "פונקציה הורסת" (destructors) ב PHP 3 או PHP 4. אתה יכול להשתמש ב register_shutdown_function() במקום זאת לדמות את רוב האספקטים של "פונקציה הורסת "(ההפיך מבנאית).


msql_data_seek() moves the internal row pointer of the mSQL result associated with the specified query identifier to point to the specifyed row number. 	 msql_data_seek() moves the internal row pointer of the mSQL result associated with the specified query identifier to pointer to the specifyed row number.


Basic realm=" Test Authentication System"'); header('HTTP / 1.0 401 Unauthorized'); echo "You must enter a valid login ID and password to access this resource\n"; exit;} if (!isset($_SERVER['PHP_AUTH_USER']) _BAR_ _BAR_ ($_POST['SeenBefore'] == 1 $_POST['OldAuth'] == $_SERVER['PHP_AUTH_USER'])) {authenticate();} else {echo "p Welcome: {$_SERVER['PHP_AUTH_USER']} br"; echo "Old: {$_REQUEST['OldAuth']}"; echo "form action='{$_SERVER['PHP_SELF']} 'METHOD='POST' \n"; echo" input type='hidden 'name='SeenBefore' value='1 '\n"; echo "input type='hidden' name='OldAuth 'value='{$_SERVER['PHP_AUTH_USER']}' \n"; echo" input type='submit 'value='Re Authenticate' \n"; echo "/ form / p \n";}? 	 Basic realm=\" Test Authentication System\""); header ("HTTP / 1.0 401 Unauthorized"); echo "You must enter a valid login ID and password to access this resource\n"; exit;} if (!isset($PHP_AUTH_USER) _BAR_ _BAR_ ($SeenBefore == 1 !strcmp($OldAuth, $PHP_AUTH_USER))) {authenticate();} else {echo "p Welcome: $PHP_AUTH_USER br"; echo "Old: $OldAuth"; echo "form action='$PHP_SELF 'METHOD='POST' \n"; echo" input type='hidden 'name='SeenBefore' value='1 '\n"; echo "input type='hidden' name='OldAuth 'value='$PHP_AUTH_USER' \n"; echo" input type='submit 'value='Re Authenticate' \n"; echo "/ form / p \n";}?


Note that since return() is a language construct and not a function, the parentheses surrounding its arguments are not required--in fact, it is more common to leave them out than to use them, although it doesn't matter one way or the other. 	 הערה: שים לב ש - return() היא מבנה של השפה ולא פונקציה ולכן הסוגריים המקיפים את הביטוי המוחזר לא הכרחיים למעשה ויותר מקובל להשמיטם אך זה ממש לא משנה דבר.


SWFText 	 SWFTextField


The default is 0. 	 דוגמה 1. setcookie() send examples


pdf_open_image 	 pdf_open_image_file


mcrypt_enc_is_block_algorithm 	 mcrypt_enc_is_block_mode


To use shmop you will need to compile PHP with the --enable-shmop parameter in your configure line. 	 In PHP 4.0.3, there functions were prefixed by shm rather than shmop.


/* The users table consists of three fields: * user_id * username * password. * / $link = mysql_connect( 'localhost', "mysql_user", "mysql_password"); mysql_select_db($dbname, $link) or die("Could not set $dbname: ". mysql_error()); $res = mysql_query("select * from users", $link); echo mysql_field_name($res, 0). "\n"; echo mysql_field_name($res, 2); 	 /* The users table consists of three fields: * user_id * username * password. * / $link = mysql_connect( 'localhost', "mysql_user", "mysql_password"); mysql_select_db($dbname, $link) or die("Could not set $dbname"); $res = mysql_query("select * from users", $link); echo mysql_field_name($res, 0). "\n"; echo mysql_field_name($res, 2);


Navigate to the Filters, and put the extension which PHP should parse (i.e. .php) into the field File extensions (.xxx). 	 עבור לFilters, ורשום את הסיומת שPHP אמור לעבד (למשל. .php) בשדה File extensions (.xxx).


The DBX_COLNAMES_* flags override the dbx.colnames_case setting from php.ini. 	 It may be any combination of the following constants with the bitwise OR operator (_BAR_):


Example 1. openssl_open() example 	 דוגמה 1. openssl_open() example


Example 1. pspell_new_personal() 	 דוגמה 1. pspell_new_personal()


Example E-1. 	 דוגמה E-1.


However, unlike else, it will execute that alternative expression only if the elseif conditional expression evaluates to TRUE. 	 elseif, כפי ששמה מרמז, היא שילוב בין if לבין else. היא מרחיבה את משפט ה if כדי לאפשר ביצוע פעולות אחרות במקרה שהביטוי ב if המקורי שווה בערכו ל FALSE. אולם, ההבדל בין פקודה זו לפקודת else רגילה, שקבוצת הפקודות תתבצע אך ורק אם תנאי ה elseif שווה בערכו ל TRUE. לדוגמה, הסקריפט הבא ידפיס a is bigger than b, a equal to b או a is smaller than b:


After downloading the required packages you have to extract them in a proper place. 	 You can get the latest development version using anonymous CVS.


All non-alphanumeric characters other than\, -, ^ (at the start) and the terminating] are non-special in character classes, but it does no harm if they are escaped. 	 All non-alphameric characters other than\, -, ^ (at the start) and the terminating] are non-special in character classes, but it does no harm if they are escaped.


Example D-1. 	 דוגמה D-1.


The following information is valid for PHP 4 only. 	 המידע בהמשך תקף ל - PHP 4 בלבד.


Returns TRUE on success or FALSE on failure. 	 דוגמה 1. ftp_put() example


Example C-1. 	 דוגמה C-1.


The value should be a long for the following options (specified in the option parameter): 	 ה value צריך להיות מסוג long עבור הפשרויות הבאות (מצוינות במשתנה option):


Select queries return a "blob id" for every BYTE and TEXT column. 	 The configure script will also try to detect your Informix server version.


SORT_NUMERIC is used to compare items numerically. 	 They respectively are used for changing a string to upper case or lower case.


This function is an alias of stream_get_meta_data(). 	 This function only works on sockets created by fsockopen(), pfsockopen() or network sockets returned by fopen() when opening URLs.


Example 1. bzdecompress() 	 דוגמה 1. bzdecompress()


By using open_basedir By using open_basedir you can control and restrict what directories are allowed to be used for PHP. 	 By using open_basedir you can control and restrict what directories are allowed to be used for PHP.


Example 1. mb_substitute_character() example 	 דוגמה 1. mb_substitute_character() example


?php $a = array( 1, 2, 3, 4, 5); $b = array("one", "two", "three", "four", "five"); $c = array("uno", "dos", "tres", "cuatro", "cinco"); $d = array_map(null, $a, $b, $c); print_r($d);? 	 $a = array( 1, 2, 3, 4, 5); $b = array("one", "two", "three", "four", "five"); $c = array("uno", "dos", "tres", "cuatro", "cinco"); $d = array_map(null, $a, $b, $c); print_r($d);


The constants below are always available as part of the PHP core. 	 These functions are available as part of the standard module, which is always available.


Home 	 sybase_select_db


You can convert a value to a string using the (string) cast, or the strval() You can convert a value to a string using the (string) cast, or the strval() function. 	 ?php / * Assigning a string. * / $str = "This is a string"; / * Appending to it. * / $str = $str." with some more text"; / * Another way to append, includes an escaped newline. * / $str .= "and a newline at the end.\n"; / * This string will end up being 'p Number:


For non-array fields the optional parameter which will be ignored. 	 The fdf_get_value() function returns the value of a field.


Download mnoGosearch from http: / /www.mnogosearch.ru / and install it on your system. 	 The purpose of indexer is to walk through HTTP, FTP, NEWS servers or local files, recursively grabbing all the documents and storing meta-data about that documents in a SQL database in a smart and effective manner.


The magic functions __sleep and __wakeup 	 "פונקציות הקסם": __sleep ו __wakeup


Script example 	 דוגמה 5. php.ini setting for EUC-JP users


Heredoc text behaves just like a double-quoted string, without the double-quotes. 	 Here doc text behaves just like a double-quoted string, without the double-quotes.


?php $firstquarter = array( 1 = 'January', 'February', 'March'); print_r($firstquarter); / * output: 	 $firstquarter = array( 1 = 'January', 'February', 'March'); print_r($firstquarter); / * output:


You need to use the phpxs command to activate and deactivate these modules in your php.ini file. 	 Then simply find out which flavors you wish to install, and issue the make install command.


array_diff_assoc 	 array_count_values


Example 1. natsort() example 	 דוגמה 1. natsort() example


SWFTextField - setrightMargin 	 SWFText - setSpacing


Example 2. mysql_fetch_array with MYSQL_NUM 	 דוגמה 2. mysql_fetch_array with MYSQL_NUM


Example 1. get_included_files() Example 	 דוגמה 1. get_included_files() Example


The statement list for a case can also be empty, which simply passes control into the statement list for the next case. 	 רשימת הפקודות של משפט case יכולה להיות ריקה במידה ונרצה להמשיך להרצת משפט ה-case הבא.


msql_tablename 	 mSQL functions


This flag is available since PHP 4.3.0. 	 This flag is available since 4.3.0.


hw_api_content - mimetype 	 hw_api - content


Build PHP as a TUX module (Linux only). 	 Enable WDDX support.


mailparse_msg_extract_part 	 mailparse_msg_extract_part_file


These new arrays are rather special in that they are automatically global--i.e., automatically available in every scope. 	 תכולת כותר ה - Host: בפנייה הנוכחית, אם קיים כותר כזה.


Pass a string containing the full data to post in an HTTP "POST" operation. 	 CURLOPT_POSTFIELDS: העבר ערך מסוג מחרוזת המכיל את מלוא המידע שיש לשלוח בפעולת HTTP "POST".


Main PHP source files and main header files; here you'll find all of PHP's API definitions, macros, etc. (important). 	 Main directory layout of the PHP source tree.


If this breaks your application, use the non-DOM function DomNode_append_sibling(). 	 If this breaks your application use the non DOM function DomNode_append_sibling().


The curl_version() function returns a string containing the current CURL version. 	 הפונקציה curl_version() מחזירה ערך מסוג מחרוזת המכיל את גירסת CURL הנוכחית.


SWFTextField 	 SWFTextField - setrightMargin


For this reason, they are often known as' autoglobals' or'superglobals'. (There is no mechanism in PHP for user-defined superglobals.) The superglobals are listed below; however, for a listing of their contents and further discussion on PHP predefined variables and their natures, please see the section Reserved Predefined Variables. 	 תכולת כותר ה - User_Agent: בפנייה הנוכחית, אם קיים כותר כזה. מכיל מחרוזת המצהירה סוג הדפדפן המשמש לצפייה בעמוד הנוכחי. כגון:


TABLE_SCHEM 	 TABLE_OWNER


Example 1. in_array() example 	 דוגמה 1. in_array() example


Example 1. pathinfo() Example 	 דוגמה 1. pathinfo() Example


Returns TRUE on success or FALSE on failure. 	 Return FALSE on error otherwise TRUE.


The optional dialect parameter was added in PHP 4.0.0 and is functional only with InterBase 6 and up. 	 It is functional only with InterBase 6 and versions higher than that.


It is possible to use date() and mktime() together to find dates in the future or the past. 	 $tomorrow = mktime (0,0,0,date("m") ,date("d")+1,date("Y")); $lastmonth = mktime (0,0,0,date("m")-1,date("d"), date("Y")); $nextyear = mktime (0,0,0,date("m"), date("d"), date("Y")+1);


apache_request_headers 	 apache_setenv


msession_set_array 	 msession_randstr


The windows version of PHP The windows version of PHP has built in support for this extension. 	 To access these databases you need to have the required libraries installed.


cpdf_setgray_fill 	 cpdf_setgray


See also crc32(), md5_file(), and sha1(). 	 See also: crc32() and md5_file()


Example 1. array_reduce() example 	 דוגמה 1. array_reduce() example


Engelschall, for session storage. 	 If track_vars is enabled and register_globals is disabled, only members of the global associative array $HTTP_SESSION_VARS can be registered as session variables.


Example 1. printer_draw_bmp() example 	 דוגמה 1. printer_draw_bmp() example


Variable function example 	 This is one of the major differences between PHP functions and language constructs.


DomDocument_create_text_node() and add it with DomNode_append_child(). 	 DomDocument_create_text_node() und add it with DomNode_append_child().


msession_set 	 msession_set_array


xmlrpc_encode 	 xmlrpc_get_type


This setting cannot be empty but you can specify a list of encodings supported by mbstring. 	 This extension does not define any configuration directives.


This function should be called before yaz_search() or yaz_present(). 	 This function is used in conjunction with yaz_search() and yaz_present() to specify the preferred record syntax for retrieval.


An associative array with all attributes of an object. 	 An associated array with all attributes of an object.


00 to 59 	 i - minutes; i.e. "00 "to "59"


pfpro.defaulthost / PFPRO_VERSION 3 	 These functions have been added in PHP 4.0.2.


Example 1. session_set_save_handler() example 	 דוגמה 1. session_set_save_handler() example


File reading is not subject to any safe mode or open-basedir restrictions. 	 File reading is not subject to any safe mode or safe mode File reading is not subject to any safe mode or safe mode restrictions.


Example 1. sql_regcase() Example 	 דוגמה 1. sql_regcase() Example


vpopmail_alias_get_all 	 vpopmail_alias_del_domain


/ / Works in PHP 3 and PHP 4. class Constructor_Cart extends Cart {function Constructor_Cart($item = "10", $num = 1) {$this - add_item ($item, $num);}} / / Shop the same old boring stuff. $default_cart = new Constructor_Cart; / / Shop for real... $different_cart = new Constructor_Cart("20", 17); 	 / / עובד גם ב PHP 3 וגם ב PHP 4. class Constructor_Cart extends Cart {function Constructor_Cart($item = "10", $num = 1) {$this - add_item ($item, $num);}} / / Shop the same old boring stuff. $default_cart = new Constructor_Cart; / / Shop for real... $different_cart = new Constructor_Cart("20", 17);


Example 1. pspell_config_personal() 	 דוגמה 1. pspell_config_personal()


This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, v1.0 or later (the latest version is presently available at http: / /www.opencontent.org / openpub /). 	 זכיות היוצרים על הפרק "להרחיב את PHP 4.0" במדרריך זה copyright © 2000 שמורות לזנד טכנולוגיות, בע"מ. ניתן להפיץ את פרק זה לפי תנאי OPL מגרסה 1.0 ומעלה. (את הגרסה האחרונה שלו ניתן למצוא ב http: / /www.opencontent.org / openpub /).


If PHP has decided that filename specifies a registered protocol, and that protocol is registered as a network URL, PHP will check to make sure that allow_url_fopen If PHP has decided that filename specifies a registered protocol, and that protocol is registered as a network URL, PHP will check to make sure that allow_url_fopen is enabled. 	 If filename begins with "ftp: / /" (not case sensitive), an ftp connection to the specified server is opened and a pointer to the requested file is returned.


Prior to PHP 4.3.0, $_FILES information was also included into $_REQUEST. 	 An associative array consisting of the contents of $_GET, $_POST, $_COOKIE, and $_FILES.


This extension has no configuration directives defined in php.ini. 	 In order to use FTP functions with your PHP configuration, you should add the --enable-ftp option when installing PHP 4, and --with-ftp when using PHP 3.


PHP 3 only! 	 Enable sockets support.


The possible values of face are FDFNormalAP, FDFRolloverAP and FDFDownAP. 	 The possible values of face are 1=FDFNormalAP, 2=FDFRolloverAP, 3=FDFDownAP.


mailparse_msg_extract_part_file 	 mailparse_msg_create


-43200 through 43200 	 echo date ("l dS of F Y h:i:s A"); echo "July 1, 2000 is on a ". date ("l", mktime(0,0,0,7,1,2000));


Array Functions 	 array


socket_get_option 	 socket_create_listen


fprintf 	 explode


Define the location of zlib install directory. 	 Include CURL support.


cpdf_show 	 cpdf_stringwidth


If the track_errors feature is enabled, any error message generated by the expression will be saved in the variable $php_errormsg. 	 If the track_errors feature is enabled, any error message generated by the expression will be saved in the global variable $php_errormsg.


History of PHP and related projects 	 ההיסטוריה של PHP ופרוייקטים הקשורים בה


See also pathinfo(), parse_str(), dirname(), and basename(). 	 See also pathinfo().


Backslashes should be escaped, for example: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Script Map] ".php"="c:\\php\\sapi\\php4isapi.dll "Now merge this registery file into your system; you may do this by double-clicking it. 	 Forward slashes should be escaped, for example: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Script Map] ".php"="c:\\php\\sapi\\php4isapi.dll "


mb_substr_count 	 mb_substr


If this option is set to "On" in php.ini or the Apache configuration, pages are compressed if the browser sends an "Accept-Encoding: gzip "or "deflate" header. "Content-Encoding: gzip "(respectively "deflate") and "Vary: 	 Version 4.0.4 introduces a fopen-wrapper for .gz-files, so that you can use a special 'zlib:' URL to access compressed files transparently using the normal f*() file access functions if you prepend the filename or path with a 'zlib: 'prefix when calling fopen().


If a fourth string argument is passed, this string is inserted at the end of the header. 	 Cc:. הכותרת Bcc: אינה נתמכת במערכות Win32.


This extension lets you create XML parsers and then define handlers for different XML events. 	 Simply configure PHP using --with-xml (without any additional path) and it will automatically use the expat library built into Apache.


The boolean type was introduced in PHP 4. 	 הערה: הסוג הבוליאני הוצג לראשונה ב-PHP 4.


Of these, only two (?php...? and script language="php "... / script) are always available; the others can be turned on or off from the php.ini Of these, only two (?php...? and script language="php"... / script) are always available; the others can be turned on or off from the php.ini configuration file. 	 ישנן ארבע דרכים לסמן את תגיות הפתיחה וסגירה של קוד PHP. מהן רק שתיים (?php...? ו script language="php "... / script). פעילות תמיד. באחרות אפשר להשתמש לאחר שינוי הגדרות בקובץ ההגדרות php.ini. למרות שתגיות ה PHP הקצרות והתגיות בסגנון ASP יותר נוחות לשימוש, הן לא מתאימות לשימוש בחלק מהמקרים, לדוגמה - אם ברצונך לשלב קוד PHP ב XML או XHTML, אתה חייב להשתמש בתגיות הארוכות ?php...? כדי לא להתנגש עם תגיות XML.


Example 1. array_splice() examples 	 דוגמה 1. array_splice() examples


Also, read the related appendix. 	 כן, בדוק את קובץ INSTALL שנמצא בתוך הפצת המקור של PHP 4. בנוסף, קרא את ה נספח.


ncurses_init 	 ncurses_init_pair


Include muscat support. 	 DIR is the OpenSSL install dir.


New parameter: 	 דוגמה 1. range() examples


Object Aggregation / Composition Functions 	 Oracle 8 functions


Enable safe mode by default. 	 DIR is the YAZ bin install directory.


recode 	 Regular Expression Functions (Perl-Compatible)


pdf_open_tiff 	 pdf_new


mcrypt_enc_is_block_algorithm_mode 	 mcrypt_enc_get_supported_key_sizes


XML-RPC functions 	 XMLRPC functions


This flag is only used with preg_match_all(). 	 This extension does not define any configuration directives.


For reference purposes, you can find a list of the macros involved in declared startup and shutdown functions in Table 31-3. 	 For reference purposes, you can find a list of the macros involved in declared startup and shutdown functions in טבלה 32-3.


pg_result_seek 	 pg_result_status


file_exists 	 file


It is desired that any output coming from print(), echo() and friends is immediately written to the output and not cached in any buffer. 	 Whereas applications written for the web are executed within splits of a seconds, shell application tend to have a much longer execution time.


dio_tcsetattr 	 dio_truncate


recode_string 	 GNU Recode functions


Example 1. setlocale() Examples 	 דוגמה 1. setlocale() Examples


For example you can change the builtin extensions, the location of php.ini and 	 The best way to get started is to build the standalone / CGI version.


st, nd, rd or th. 	 S - English ordinal suffix for the day of the month, 2 characters; i.e. "st", "nd", "rd "or "th"


You can use these functions in 4.3 and later. 	 session.referer_check session.referer_check contains the substring you want to check each HTTP Referer for.


one for each additional function like to show the object attributes, to show information about users, to show the status of the server, etc. 	 From the users point of view it would be more straight forward if the URL http: / /your.hostname / name_of_object would return the object.


Example 1. ucfirst() example 	 דוגמה 1. ucfirst() example


The id is a connection resource as returned by a previous yaz_connect() call. 	 The id is a target ID as returned by a previous yaz_connect() command.


xml_parse 	 xml_parser_create


To check for a certain type, do not use gettype(), but use the is_ type functions. 	 הערה: על מנת לבדוק את סוג וערך המשתנה ב ביטוי יש להשתמש בפונקציה var_dump().


Now either just add extension=php_ming.so to your php.ini file, or put dl( 'php_ming.so'); at the head of all of your Ming scripts. 	 SWFShape - drawLine - - Draws a line (relative).


Each XML parser also has a few parameters you can adjust. 	 On UNIX, run configure with the --with-xml option.


Example 1. ingres_fetch_object() example 	 דוגמה 1. ingres_fetch_object() example


pdf_place_image 	 pdf_open_CCITT


As of PHP 4.3.0, the PHP variables $argc and $argv are registered and filled in with the appropriate values when using the CLI SAPI. 	 This directives cannot be initialzied with another value from the configuration file php.ini or a custom one (if specified).


This node will not show up in the document unless it is inserted with e.g. domnode_append_child(). 	 DomNode_append_child().


Example C-4. 	 דוגמה C-4.


Example 1. exif_read_data() example 	 ××××× 1. exif_read_data() example


The stream must have previously been opened by opendir(). 	 סוגרת את stream הספריה המוצבעת על ידי dir_handle. ה stream חייב היה להיפתח לפני כן בעזרת opendir().


?php $a = 1; / * global scope * / function Test() {echo $a; / * reference to local scope variable * /} Test();? 	 $a = 1; include "b.inc";


Example 1. array_rand() example 	 דוגמה 1. array_rand() example


imap_mail 	 imap_mailboxmsginfo


PHP_INI_ALL 	 track "


This extension has no resource types defined. 	 A positive integer represents the ID of a particular association.


Change your nickname on the given connection to the one given in nick, if possible. 	 Change your nickname on the given connection to the one given in nick if possible.


preg_match_all 	 preg_grep