Instead of simply printing out PHP_AUTH_USER and PHP_AUTH_PW, as done in the above example, you may want to check the username and password for validity. 	 Instead of simply printing out the $PHP_AUTH_USER and $PHP_AUTH_PW, you would probably want to check the username and password for validity.


This simply gives an easy way to iterate over arrays. foreach works only on arrays, and will issue an error when you try to use it on a variable with a different data type or an uninitialized variables. 	 PHP כוללת את פקודת foreach מגרסה 4 בלבד. בדומה לפרל ושפות אחרות, ניתן בעזרת פקודה זו לבצע בפשטות איטרציות על מערך. קיימים לפקודה שני סוגי תחביר. השני מהווה הרחבה חשובה לראשון:


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


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


DomXsltStylesheet - process 	 domxml_new_doc


If you want to override the installation of the CGI binary, use make install-cli after make install. 	 The are certain php.ini directives which are overriden by the CLI SAPI because the do not make sense in shell environments:


See fopen() for more details on how to specify the filename and Appendix I for a list of supported URL protocols. 	 If filename begins with "ftp: / /" (not case sensitive), an ftp connection to the specified server is opened and the requested file is written to standard output.


This function caches information about specific filenames, so you only need to call clearstatcache() if you are performing multiple operations on the same filename and require the information about that particular file to not be cached. 	 This value is only cached for the lifetime of a single request.


Note, autoglobals such as $_COOKIE became available in PHP 4.1.0. $HTTP_COOKIE_VARS has existed since PHP 3. 	 setcookie ("TestCookie", $value); setcookie ("TestCookie", $value,time()+3600); / * expire in 1 hour * / setcookie ("TestCookie", $value,time()+3600, "/ ~rasmus /", ".utoronto.ca", 1);


Mon through Sun 	 D - day of the week, textual, 3 letters; e.g. "Fri "


pg_lo_read_all 	 pg_lo_read


(PHP 4 = 4.3.0) 	 (PHP 4 CVS only)


Also note, that many Linux distributions come with PHP built in these days. 	 אנחנו מפיצים גירסאות בינריות-מקומפלות רק למערכות Windows, משום שאנחנו לא יכולים לקמפל את PHP לכל מערכות לינוקס / יוניקס העיקריות שקיימות עם כל שילובי הסיומות. כמו כן, רוב גירסאות לינוקס כיום באות עם PHP כבר בתוכן. את גירסאות Windows ניתן להוריד בעמוד ה הורדות. לגירסאות הבינריות של לינוקס ניתן לבדוק את אתר האינטרנט של חברת ההפצה שברשותך.


Setting it to On performs the relaxed GID checking, setting it to Off (the default) performs UID checking. 	 In addition, you cannot set the SUID, SGID and sticky bits


openssl_csr_export_to_file 	 OpenSSL functions


Returns TRUE on success or FALSE on failure. 	 This function returns TRUE on success and FALSE on failure.


This way, you don 't need to set up anything on your own, only write your PHP scripts, upload it to the server you rent, and see the results in your browser. 	 You can find a list of hosting companies at http: / /hosts.php.net /.


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


Instead of int( 4) (intended use: integers up to '9999'), SESAM requires simply int Instead of int(4) (intended use: integers up to '9999'), SESAM requires simply int for an implied size of 31 bits. 	 Instead of int( 4) (intended use: integers up to '9999'), SESAM requires simply int for an implied size of 31 bits.


The behaviour of these functions is affected by settings in php.ini. 	 If shared object module is available, PostgreSQL module may be loaded using extension directive in php.ini or dl() If shared object module is available, PostgreSQL module may be loaded using extension directive in php.ini or dl() function.


?php $array = array( 'lastname', 'email', 'phone'); $comma_separated = implode(" ,", $array); print $comma_separated; / / lastname,email,phone? 	 $colon_separated = implode( ":", $array);


html head title Example / title / head body ?php echo "Hi, I'm a PHP script !";? / body / html 	 html dir=" rtl "head title דוגמא / title / head body ?php echo "שלום, אני סקריפט של PHP !";? / body / html


ftp_get_option 	 ftp_get


Also see the session.cache_limiter configuration directive. 	 ?php # set the cache limiter to 'private' session_cache_limiter('private'); $cache_limiter = session_cache_limiter(); echo "The cache limiter is now set to $cache_limiter p ";?


Users may not change the array itself from the callback function. e.g. 	 In PHP 4 reset() needs to be called as necessary since array_walk() does not reset the array by default.


Like every shell application, the PHP binary accepts a number of arguments but your PHP script can also receive arguments. 	 Like every shell application not only the PHP binary accepts a number of arguments but also your PHP script can receive them.


cpdf_setrgbcolor_stroke 	 cpdf_setmiterlimit


cpdf_finalize_page 	 cpdf_fill_stroke


Example 4. date() Formatting 	 דוגמה 4. date() Formatting


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


If called from within a function, the return() statement immediately ends execution of the current function, and returns its argument as the value of the function call. return() will also end the execution of an eval() statement or script file. 	 אם מתבצעת קריאה לפקודה זו מתוך פונקציה, פקודת ה - return() תעצור מייד את הרצת הפונקציה הנוכחית ותחזיר את הערך שהועבר לה כערך התוצאה של הפונקציה. פקודת return() תעצור גם ביצוע של פקודת eval() בסקריפט.


To use PHP' s OpenSSL support you must also compile PHP --with-openssl[=DIR]. 	 PHP-4.0.4pl1 requires OpenSSL = 0.9.6, but PHP-4.0.5 and greater with also work with OpenSSL = 0.9.5.


The name of this function is key_exists() in PHP version 4.0.6. 	 This name of this function is key_exists() in PHP version 4.0.6.


imap_listscan 	 imap_listsubscribed


See also opendir(), readdir() and closedir(), fnmatch(). 	 See also opendir(), readdir() and closedir().


Since PHP (for historical reasons) supports indexing into strings via offsets using the same syntax as array indexing, the example above leads to a problem: should $a become an array with its first element being "f", or should "f "become the first character of the string $a? 	 $a = "1"; / / $a is a string $a[0] = "f"; / / What about string offsets?


The extension still contains many old functions, but they should no longer be used. 	 The domxml extension has been overhauled in PHP Version 4.3.0 in favour of a better compliance of the DOM standard.


PHP has also support for most of the web servers today. 	 PHP עובדת על כל הסוגים העיקריים של מערכות ההפעלה, כולל לינוקס, רבות ממערכות Unix (כולל HP-UX, Solaris ו OpenBSD), מיקרוסופט וינדוס, Mac OS X, RISC OS, וכנראה עוד רבות אחרות.


The configuration file (called php3.ini in PHP 3.0, and simply php.ini as of PHP 4.0) is read when PHP starts up. 	 With PHP 4.0, there are several Apache directives that allow you to change the PHP configuration from within the Apache configuration file itself.


PHP supports three scalar value types: integer values, floating point values and string values (scalar values are values that you can't'break 'into smaller pieces, unlike arrays, for instance). 	 PHP תומכת בשלושה ערכים סקאלריים (הסבר בהמשך): מספרים שלמים, ערכי נקודה צפה (מספרים לא שלמים) וערכי מחרוזת (ערכים סקלריים-scalar - הם ערכים שלא ניתן ל"שבור "לחקלים קטנים יותר, להבדיל למשל ממערכים).


You can find information about attributes at the Z39.50 Maintenance Agency site. 	 Another more complex one:


Returns TRUE on success or FALSE on failure. 	 That final NULL-character is added automatically. מחזיר TRUE במקרה של הצלחה או FALSE במקרה של כישלון.


strtr 	 substr


When you want to restrict access to only the specified directory, end with a slash. 	 You can only execute executables within the safe_mode_exec_dir.


See also session_get_cookie_params() and session_set_cookie_params(). 	 To continue, A HREF=" nextpage.php? ?php echo SID? "click here / A


classa.inc: class A {var $one = 1; function show_one() {echo $this - one;}} page1.php: include("classa.inc"); $a = new A; $s = serialize($a); / / store $s somewhere where page2.php can find it. $fp = fopen("store", "w"); fputs($fp, $s); fclose($fp); page2.php: / / this is needed for the unserialize to work properly. include("classa.inc"); $s = implode("", @file("store")); $a = unserialize($s); / / now use the function show_one() of the $a object. $a - show_one(); 	 classa.inc: class A {var $one = 1; function show_one() {echo $this - one;}} page1.php: include("classa.inc"); $a = new A; $s = serialize($a); / / איכסון $s במקום כשלהו כש page2.php יכול למצוא אותו. $fp = fopen("store", "w"); fputs($fp, $s); fclose($fp); page2.php: / / זה נדרש על מנת לבצע unserialize בצורה הנכונה. include("classa.inc"); $s = implode("", @file("store")); $a = unserialize($s); / / עכשיו הפונקציה show_one() בשימוש של האובייקט $a. $a - show_one();


This is done by first decoding the comment using the specified characterset. 	 You will also have to compile PHP with --with-jpeg-dir= / path / to / jpeg-6b.


This does not matter in Unix environments, yet. 	 הערה: הסימון * אומר שהספריה אינה בטוחה בכל המקרים, והיא אינה אמורה להיות בשימוש של PHP כמודול שרת בישום למשתמשים מרובים (multi-thread) על שרתי חלונות (IIS, Netscape). בסביבות יוניקס הדבר לא עקרוני ולא משנה, עדיין.


?php $result = mysql_query( "SELECT my_col FROM my_tbl") or die("Invalid query: ". mysql_error());? 	 ?php $result = mysql_query( "SELECT my_col FROM my_tbl") or die ("Invalid query");?


Whereas applications written for the web are often executed very quickly, shell application tend to have a much longer execution time. 	 The global PHP variables $argc (number of arguments passed to the application) and $argv (array of the actual arguments) are always registered and filled in with the appropriate values when using the CLI SAPI.


Go in the Ming directory. make. make install. 	 SWFMovie - save - - Saves your movie in a file.


?php if (!session_is_registered('count')) {session_register('count'); $count = 1;} else {$count++;}? 	 session.use_trans_sid whether transparent sid support is enabled or not if enabled by compiling with --enable-trans-sid.


For example, let 's post a form to itself and upon submission display the data: 	 כאשר המשתמש ישלח את הטופס, משתני הטופס יועברו אל השרת ובנוסף יועברו משתנים המציינים את מיקום הלחיצה של העכבר בתמונה ויוגדרו כ - $sub_x ו - $sub_y. יש לציין ששם המשתנה המקורי מכיל נקודה שמומרת ל קו-תחתי על-ידי PHP באופן אוטומטי.


SWFSprite 	 SWFText


This extension has no configuration directives defined in php.ini. 	 לפונקציות נוספות בנושא כגון: dirname(), is_dir(), mkdir(), ו rmdir() ,ראה את מודול Filesystem.


To make a useful counting function which will not lose track of the current count, the $a variable is declared static: 	 המערך $GLOBALS הוא מערך אסוציאטיבי באופן ששם המשתנה הגלובלי הוא המפתח לערך וערך המשתנה הגלובלי הוא הערך של תא זה במערך.


Functions restricted / disabled by safe mode 	 Safe Mode


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


pg_clientencoding 	 orbit_load_idl


cpdf_set_font_map_file 	 cpdf_set_current_page


Please note that this documentation has been changed to use $_SESSION everywhere. 	 session.name specifies the name of the session which is used as cookie name.


To use the readline functions, you need to install libreadline. 	 To use the readline functions, you need to install libreadline and compile PHP with support for readline.


There is no installation needed to use these functions; they are part of the PHP core. 	 There is no installation needed to use these functions, they are part of the PHP core.


pdf_set_horiz_scaling 	 pdf_set_info


A back reference matches whatever actually matched the capturing subpattern in the current subject string, rather thanA back reference matches whatever actually matched the capturing subpattern in the current subject string, rather than anything matching the subpattern itself. 	 A back reference matches whatever actually matched the cap - turing subpattern in the current subject string, rather thanA back reference matches whatever actually matched the cap - turing subpattern in the current subject string, rather than anything matching the subpattern itself.


/ / Works in PHP 3 and PHP 4. class Auto_Cart extends Cart {function Auto_Cart() {$this - add_item ("10", 1);}} 	 / / עובד ב PHP 3 וגם ב PHP 4. class Auto_Cart extends Cart {function Auto_Cart() {$this - add_item ("10", 1);}}


In PHP 4, eval() returns NULL unless return() is called in the evaluated code, in which case the value passed to return() In PHP 4, eval() returns NULL unless return() is called in the evaluated code, in which case the value passed to return() is returned. 	 In PHP 4, eval() returns FALSE unless return() is called in the evaluated code, in which case the value passed to return() In PHP 4, eval() returns FALSE unless return() is called in the evaluated code, in which case the value passed to return() is returned.


This entry identifier is then supplied to ldap_next_entry() routine to get successive entries from the result. 	 This entry identifier is then supplied to lap_next_entry() routine to get successive entries from the result.


Any number of alternatives may appear, and an empty alternative is permittedAny number of alternatives may appear, and an empty alternative is permitted (matching the empty string). 	 Any number of alter - natives may appear, and an empty alternative is permittedAny number of alter - natives may appear, and an empty alternative is permitted (matching the empty string).


Passing FDF data to a second form 	 In a web environment it is a URL (e.g. http: / testfdf / resultlabel.pdf).


The default value for the PHP directive register_globals changed from on to off in PHP 4.2.0. 	 This sets the maximum time in seconds a script is allowed to run before it is terminated by the parser.


mssql_free_statement 	 mssql_free_result


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


In order to have these functions available, you must compile PHP with mnoGosearch support by using the --with-mnogosearch option. 	 After every document is referenced by its corresponding URL, meta-data collected by indexer is used later in a search process.


imagerotate 	 imagerectangle


To use DOM XSLT features you can use the libxslt library and EXSLT enhancements from http: / /www.exslt.org /. 	 Currently this tree should be considered read-only - you can modify it but this would not make any sense since DomDocument_dump_mem() cannot be applied to it.


Note: 	 PHP 4 only.


The classes below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime. 	 SWFShape - setRightFill - - Sets right rasterizing color.


ob_iconv_handler 	 iconv_get_encoding


If length is given and is positive, the string returned will contain at most length characters beginning from start (depending on the length of string). 	 If length is given and is positive, the string returned will contain at most length characters beginning from start (depending on the length of string.


ovrimos_result_all 	 ovrimos_result


Extended API module 	 מודול API מורחב


Both pre-increment and post-increment essentially increment the variable, and the effect on the variable is idential. 	 Pre-increment, שנכתב כ '++$variable', מגדיל את הערך המוגדל (PHP מגדילה את הערך לפני שהיא קוראת את הערך לכן המונח 'pre-increment' או בתרגום צולע משהו: "מוגדל מראש").


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


Constructors are functions in a class that are automatically called when you create a new instance of a class with new. 	 ב PHP 3 ו PHP 4 לפונקציות הבנאיות מתנהגות בצורה שונה. הסמנטיקה של PHP 4 עדיפה בהרבה.


?php header( "Location: http: / /".$_SERVER['HTTP_HOST'] .dirname($_SERVER['PHP_SELF']) ." / ".$relative_url);? 	 header( "Location: http: / /".$_SERVER['HTTP_HOST'] .dirname($_SERVER['PHP_SELF']) ." / ".$relative_url);


Returns TRUE on success or FALSE on failure. 	 flock() returns TRUE on success and FALSE on error (e.g. when a lock could not be acquired).


The use of the DIO functions should be considered only when direct control of a device is needed. 	 PHP supports the direct io functions as described in the Posix Standard (Section 6) for performing I / O functions at a lower level than the C-Language stream I / O functions (fopen, fread,..).


The "ping" command (present in most modern operating systems) is an example application of ICMP. 	 Returns a socket resource on success, or FALSE on error.


See also: call_user_func(), call_user_method(), call_user_method_array(). 	 This function was added to the CVS code after release of PHP 4.0.4pl1


You must NOT use the apxs version that is in the apache sources but the one that is actually installed on your system. 	 User nobody Group "#-1" Unless you change that to "Group nogroup "or something like that ("Group daemon" is also very common) PHP will not be able to open files.


See also empty(), unset(), defined(), array_key_exists() and the error control @ operator. 	 See also empty(), unset(), and array_key_exists().


Example 3. odbc_fetch_into() 4.2.0 example 	 דוגמה 3. odbc_fetch_into() 4.2.0 example


imap_get_quotaroot 	 imap_getmailboxes


swfmovie_output() 	 satellite_exception_id()


There is no restriction on the appearance of non-printing characters, apart from the binary zero that terminates a pattern, but when a pattern is being prepared by text editing, it is usually easier to use one of the following escape sequences than the binary character it represents: 	 There is no restriction on the appearance of non-printing charac - ters, apart from the binary zero that terminates a pattern, but when a pattern is being prepared by text editing, it is usually easier to use one of the following escape sequences than the binary character it represents:


pdf_setgray 	 pdf_setgray_stroke


pdf_close_image 	 pdf_close


If accessing the filename image is impossible, or if it isn' t a valid picture, getimagesize() will return FALSE and generate a warning. 	 A very common one in to embed IPTC http: / /www.iptc.org / A very common one in to embed IPTC http: / /www.iptc.org / information in the APP13 marker.


The BS2000 PLAM library must be set ACCESS=READ,SHARE=YES because it must be readable by the apache server 's user id. 	 Now there is a PHP3 SESAM interface available which allows database operations via PHP-scripts.


Using backreferences followed by numeric literals. 	 Every parameter to preg_replace() can be an array.


PHP 3 is the successor to PHP / FI 2.0 and is a lot nicer. 	 PHP / FI 2.0 היא גירסה קודמת שלא נתמכת כיום של PHP.


As discussed earlier in this chapter (see the description of the Zend module descriptor block), there are module, and request startup and shutdown events. 	 The global startup functions are called once when PHP starts up; similarly, the global shutdown functions are called once when PHP shuts down.


Provides a sequenced, reliable, two-way connection-based data transmission path for datagrams of fixed maximum length; a consumer is required to read an entire packet with each read call. 	 AF_UNIX uses pathnames to identify sockets and can therefore only be used for local communication (which is faster, on the other hand).


If it is omitted or set to zero, then the default FTP port, 21, will be used. 	 If it is omitted or zero, then the default FTP port, 21, will be used.


$num_hosts = count ($host); if (empty($term) _BAR_ _BAR_ count($host) == 0) {echo 'form method="get "input type="checkbox" name="host[] "value="bagel.indexdata.dk / gils" GILS test input type="checkbox "name="host[]" value="localhost:9999 / Default "local test input type="checkbox" checked="1 "name="host[]" value="z3950.loc.gov:7090 / voyager "Library of Congress br RPN Query: input type="text" size="30 "name="term" input type="submit "name="action" value="Search "';} else {echo'You searced for '. htmlspecialchars($term).' br '; for ($i = 0; $i $num_hosts; $i++) {$id[] = yaz_connect($host[$i]); yaz_range($id[$i], 1, 10); yaz_search($id[$i] ,"rpn",$term);} yaz_wait(); for ($i = 0; $i $num_hosts; $i++) {echo' hr '. $host[$i]." :"; $error = yaz_error($id[$i]); if (!empty($error)) {echo "Error: $error";} else {$hits = yaz_hits($id[$i]); echo "Result Count $hits";} echo' dl '; for ($p = 1; $p = 10; $p++) {$rec = yaz_record($id[$i],$p ,"string"); if (empty($rec)) continue; echo "dt b $p / b / dt dd"; echo ereg_replace("\n", "br \n",$rec); echo" / dd ";} echo' / dl ';}} 	 $num_hosts = count ($host); if (empty($term) _BAR_ _BAR_ count($host) == 0) {echo 'form method="get "input type="checkbox" name="host[] "value="bagel.indexdata.dk / gils" GILS test input type="checkbox "name="host[]" value="localhost:9999 / Default "local test input type="checkbox" checked="1 "name="host[]" value="z3950.bell-labs.com / books "BELL Labs Library br RPN Query: input type="text" size="30 "name="term" input type="submit "name="action" value="Search "';} else {echo 'You searced for '. htmlspecialchars($term).' br '; for ($i = 0; $i $num_hosts; $i++) {$id[] = yaz_connect($host[$i]); yaz_syntax($id[$i] ,"sutrs"); yaz_search($id[$i] ,"rpn",$term);} yaz_wait(); for ($i = 0; $i $num_hosts; $i++) {echo' hr '. $host[$i]." :"; $error = yaz_error($id[$i]); if (!empty($error)) {echo "Error: $error";} else {$hits = yaz_hits($id[$i]); echo "Result Count $hits";} echo' dl '; for ($p = 1; $p = 10; $p++) {$rec = yaz_record($id[$i],$p ,"string"); if (empty($rec)) continue; echo "dt b $p / b / dt dd"; echo ereg_replace("\n", "br \n",$rec); echo" / dd ";} echo' / dl ';}}


mb_ereg_search_setpos 	 mb_ereg_replace


Of course, values in PHP don' t have to be integers, and very often they aren't. 	 כמבון, ערכים ב PHP לא חייבים להיות integers (מספרים שלמים), ולעיתים קרובות הם לא.


bcpowmod 	 bcscale


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


So don 't count on it that the browser obeys your wish! 	 So don 't count on it that the browser obeys you wish!


?php $filename = "c:\\files\\somepic.gif"; $handle = fopen ($filename, "rb"); $contents = fread ($handle, filesize ($filename)); fclose ($handle);? 	 $filename = "c:\\files\\somepic.gif"; $fd = fopen ($filename, "rb"); $contents = fread ($fd, filesize ($filename)); fclose ($fd);


html_entity_decode 	 hebrevc


Type is one of PHP (default) or GNU. 	 Include OpenSSL support (requires OpenSSL = 0.9.5).


pg_meta_data 	 pg_metadata


As of PHP version 4.3, the function more properly reflects the functionality as dictated by the RFC 2087. 	 imap_stream should be the value returned from an imap_status() call.


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


While the short-form tags and ASP-style tags may be convenient, they are not as portable as the longer versions. 	 דוגמה 5-1. דרכים לעבור ממצב HTML למצב PHP


Table 1. 	 Compile YAZ and install it.


Assuming that you have a string $data, which contains the string you want to pass on in a non-encoded way, these are the relevant stages: 	 ישנם כמה שלבים בהם הקידוד חשוב. בהנחה שנתונה מחרוזת $data, שמכילה את המחרוזת שברצונך להעביר הלאה בצורה לא מקודדת (ללא קודי HTML), אלה השלבים הנחוצים:


Basic realm=" My Realm"'); header('HTTP / 1.0 401 Unauthorized'); echo'Text to send if user hits Cancel button'; exit;} else {echo "p Hello {$_SERVER['PHP_AUTH_USER']}. / p"; echo "p You entered {$_SERVER['PHP_AUTH_PW']} as your password. / p";}? 	 Basic realm=\" My Realm\""); header("HTTP / 1.0 401 Unauthorized"); echo "Text to send if user hits Cancel button\n"; exit;} else {echo "p Hello $PHP_AUTH_USER. / p"; echo "p You entered $PHP_AUTH_PW as your password. / p";}?


Example 2. pdfclock example from pdflib 2.0 distribution 	 דוגמה 2. pdfclock example from pdflib 2.0 distribution


imagegd2 	 imagegd


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


vpopmail_add_domain 	 vpopmail_add_user


Security and Safe Mode Configuration Directives 	 Configuration directives controlling safe mode are:


cpdf_setmiterlimit 	 cpdf_setrgbcolor


Table 1. possible values for pid 	 טבלה 1. possible values for pid


/ / fill an array with all items from a directory $handle = opendir( '.'); while ($file = readdir($handle)) {$files[] = $file;} closedir($handle);? 	 / / fill an array with all items from a directory $handle = opendir( '.'); while ($file = readdir($handle)) {$files[] = $file;} closedir($handle);


Example 1. 	 מחזיר TRUE במקרה של הצלחה או FALSE במקרה של כישלון.


The given directory is opened. 	 string read();


See the section entitled "Backslash" above for further details of the handling of digits following a backslash. 	 See the section entitled "Backslash" above for further details of the han - dling of digits following a backslash.


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


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


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


The presence and order of variable inclusion in this array is defined according to the variables_order configuration directive. 	 מערך אסוציאטיבי של המשתנים המועברים לסקריפט הנוכחי דרך שיטת HTTP POST. משתנה זה מוגדר בכל טווח משתנים כלשהו. נוסף ל-PHP החל מגרסה 4.1.0.


This function returns TRUE when all of the variables are successfully registered with the session. 	 If session_start() was not called before this function is called, an implicit call to session_start() with no parameters will be made.


Then select Build= Set Active Configuration and select the desired configuration. 	 c:\php-win32build\include


Appendix D. 	 נספח D.


The elseif statement is only executed if the preceding if expression and any preceding elseif expressions evaluated to FALSE, and the current elseif expression evaluated to TRUE. 	 פקודת ה - elseif תבוצע רק אם ערכי הביטויים במשפטי ה - if וה - elseif שקדמו לה שוים בערכם ל - FALSE וערכו של ביטוי ה - elseif הנוכחי שווה ל - TRUE.


See also bcpowmod(), and bcsqrt(). 	 See also bcsqrt().


Hypertext Preprocessor") is a widely-used Open Source general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. 	 Hypertext Preprocessor") היא שפת סקריפט בעלת קוד פתוח לשימוש כללי ומותאמת במיוחד לפיתוח באינטרנט ויכולה להשתלב בעמודי HTML.


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


You can also set this option when initializing a session with the curl_init() function. 	 CURLOPT_URL: זהו ה URL שברצונך ש PHP תביא. ניתן לקבוע את הערך גם בזמן אתחול session עם פונקציית curl_init().


PUT method support 	 תמיכה בשיטת PUT


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


ftp_ssl_connect 	 ftp_systype


As shown, before PHP 4.2.0 the default value for register_globals was on. 	 form action=" array.php "method="post" Name: input type="text "name="personal[name]" br Email: input type="text "name="personal[email]" br Beer: br select multiple name="beer[] "option value="warthog" Warthog option value="guinness "Guinness option value="stuttgarter" Stuttgarter Schwabenbr auml;u / select input type="submit "/ form


For instance, in the default "C" locale characters such as umlaut-a (ä) will not be converted. 	 For instance, in the default "C" locale characters such as umlaut-a (ה) will not be converted.


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


PHP = 4.3 supports all the mentioned header elements and is no longer case-sensitive. 	 הערה: אתה חייב להשתמש בתווים \r\n כדי להפריד כותרות, למרות שסוכני העברת דואר מסויימים של Unix יכולים לעבוד רק עם שורה חדשה (\n). הכותרת Cc: היא רגישה להבדל בין אותיות קטנות לגדולות (-באנגלית) וחייב להכתב במערכות Win32 כך:


The script below demonstrates the parallel searching feature of the API. 	 When invoked with no arguments it prints a query form; else (arguments are supplied) it searches the targets as given in in array host.


As of PHP 4.3.0, the option --enable-mbstring will be enabled by default and replaced with --with-mbstring[ =LANG] to support Chinese, Korean and Russian language support. 	 The following configure options are related to mbstring module.


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


ldap_get_values_len 	 ldap_get_values


The keys of this array are the names of the global variables. $GLOBALS has existed since PHP 3. 	 נתיב מבוסס לפי מערכת הקבצים של הסקריפט הנוכחי (זה לא document root של הסקריפט) לאחר שבוצע מיפוי וירטואלי לריאלי.


Ming provides some insulation from the mundane details of the SWF file format, wrapping the movie elements in PHP objects. 	 SWFDisplayItem - multColor - - Multiplies the item 's color transform.


Each key value then contains an another array with the usage and limit values within it. 	 This stream is required to be opened as the mail admin user for the quota function to work. quota_root should normally be in the form of user.name where name is the mailbox you wish to retrieve information about.


getopt 	 getmyuid


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


mcrypt_generic 	 mcrypt_generic_init


To build the c-client library with SSL or / and Kerberos support read the docs supplied with the package. 	 This extension does not define any configuration directives.


Pay close attention to what register_globals means to you too. 	 PHP יוצרת HTML, ול-HTML יש מידע שישלח ל-PHP וישמש אותה.


Variables provided to the script via any user input mechanism, and which therefore cannot be trusted. 	 מערך אסוציאטיבי של המשתנים המועברים לסקריפט הנוכחי דרך שיטת HTTP POST.


This simply means that it is available in all scopes throughout a script. 	 $HTTP_SERVER_VARS מכיל את אותו המידע, אך אינו גלובאלי אוטומטי.


Orders results so that $matches[ 0] is an array of full pattern matches, $matches[1] is an array of strings matched by the first parenthesized subpattern, and so on. 	 order can be one of two things:


The default behavior is to return the page normally, ignoring the code. 	 CURLOPT_FAILONERROR: קבע את הערך לערך השונה מאפס אם ברצונך ש PHP תכשל באופן שקט,ללא הודעות שגיאה, אם הקוד המוחזר על ידי ה HTTP גדול מ300. ברירת המחדל היא להחזיר את הדף באופן רגיל תוך כדי התעלמות מן הקוד.


OpenBSD Package Install Example 	 Below is an example of how to do this.


As of version 4.3.0, PHP supports a new SAPI type (Server Application Programming Interface) named CLI which means Command Line Interface. 	 Since version 4.3, PHP supports a new SAPI type (Server Application Programming Interface) named CLI which means Command Line Interface.


dio_tcsetattr 	 dio_stat


swf_shapecurveto3 	 swf_shapecurveto


See also call_user_func(), variable variables and function_exists(). 	 See also variable variables and function_exists().


Windows versions of PHP prior to PHP 4.3 do not support accessing remote files via this function, even if allow_url_fopen is enabled. 	 דוגמה 11-5. שימוש ב - include() דרך HTTP


Note: 	 SIGHUP


shm_remove_var 	 shm_put_var


This extension allows you to process credit cards transactions using Crédit Mutuel CyberMUT system (http: / /www.creditmutuel.fr / centre_commercial / vendez_sur_internet.html). 	 This extension allows you to process credit cards transactions using Crיdit Mutuel CyberMUT system (http: / /www.creditmutuel.fr / centre_commercial / vendez_sur_internet.html).


With $_SESSION, there is no need to use the session_register(), session_unregister(), session_is_registered() functions. 	 session.cookie_lifetime session.cookie_lifetime specifies the lifetime of the cookie in seconds which is sent to the browser.


mb_convert_case 	 mb_convert_encoding


readline_add_history 	 readline


Ming was added in PHP 4.0.5. 	 SWFDisplayItem - setDepth


These functions allow you to get the date and time from the server where your PHP scripts are running. 	 This functions allow you to get date and time from the server where PHP is running on.


Array ([one] = 1 [five] = 5 [animal] = Dodo bird [path] = / usr / local / bin [URL] = http: / /www.example.com / ~username) Array ([first_section] = Array ([one] = 1 [five] = 5 [animal] = Dodo bird) [second_section] = Array ([path] = / usr / local / bin [URL] = http: / /www.example.com / ~username)) 	 Array ([one] = 1 [five] = 5 [path] = / usr / local / bin) Array ([first_section] = Array ([one] = 1 [five] = 5) [second_section] = Array ([path] = / usr / local / bin))


hw_api - content 	 hw_api_content - read


The current line number of the file. 	 מציין שגיאה אחרת משגיאת parsing שממנה לא ניתן להתאושש.


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


Changing it to $_SERVER[ 'REQUEST_METHOD'] will make the parser happy and greatly improve the style and security of your code. 	 Changing it to $HTTP_SERVER_VARS[ 'REQUEST_METHOD'] will make the parser happy and greatly improve the style and security of your code.


pg_unescape_bytea 	 pg_tty


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


If you are a first-time, or even just a beginning, programmer, you may find it difficult to learn how to program in PHP using just this manual. 	 מדריך זה לא מנסה לספק הסברים אודות תרגולי תכנות כלליים. אם אתה מתכנת בפעם הראשונה, או אפילו רק מתכנת מתחיל, אולי תמצא שללמוד תכנות ב-PHP באמצעות מדריך זה יהיה קשה. כדאי שתחפש טקסט שמכוון יותר למתחילים. אתה יכול למצוא רשימה של ספרים הקשורים ל-PHP ב http: / /www.php.net / books.php.


Set this option to a non-zero value and PHP will append to the remote file instead of overwriting it. 	 CURLOPT_FTPAPPEND: קבע את הערך לערך השונה מאפס אם ברצונך ש PHP תוסיף את תוכן הקובץ לקובץ הקיים במקום להחליפו.


GNU Readline 	 readline


The optional restart_syscalls parameter became available in PHP 4.3.0. 	 pcntl_signal() returns TRUE on success or FALSE on failure.


require() includes and evaluates a specific file. 	 פקודת require() מספחת ומריצה או מעריכה קובץ מסויים.


socket_create_pair 	 socket_connect


Table D-2. 	 טבלה D-2.


PHP has already a long history behind him: 	 ל-PHP כבר יש הסטוריה ארוכה מאחוריה:


You cannot specify additional output handlers if zlib.output_compression is activated here. 	 Opens a temporary file and writes a test string to it, then it prints out the content of this file twice.


mb_strtoupper 	 mb_strrpos


There are a lot of useful functions for string modification. 	 For backwards compatibility, you can still use the array-braces.


Limit the files that can be opened by PHP to the specified directory-tree, including the file itself. 	 Obeys the safe_mode_protected_env_vars and safe_mode_allowed_env_vars ini-directives.


The type parameter selects the type of communication to be used by the socket. 	 The domain parameter sets the domain (protocol family) to be used for communication.


Constructors can take arguments and these arguments can be optional, which makes them much more useful. 	 בודגמא הוגדרה מחלקה Auto_Cart שהיא Cart ובנוסף לה בנאי שמאתחל את העגלה עם ריט אחד של מוצר שמספרו "10" בכל פעם שיוצרים מופע חדש של Auto_Cart בעזרת "new ". הפנקציה הבנאית יכולה לקחת ארגומנטים שהם אופציונליים, מה שגורם להם להיות שימושיים במיוחד. על מנת שאפשר יהיה להשתמש בפונקציה בלי פרמטרים, כל הפרמטרים שמועברים לבנאי צריכם להקבע אופציונלית על ידי אספקת ערכי ברירת מחדל.


Heredoc support was added in PHP 4. 	 Here doc support was added in PHP 4.


?php header( "Expires: 	 header( "Expires:


Returns TRUE on success or FALSE on error. 	 Returns TRUE on success, FALSE on error.


References are not stored statically: 	 עכשיו, בכל קריאה לפונקציה Test, יודפס ערכו של המשתנה $a ואחר-כך יוגדל ערכו.


Starting with PHP 4.2.3 the name changed to libintl-1.dll 	 This extension does not define any configuration directives.


DomComment is derived from DomCData. 	 DomComment is derived from DomCData


There are three main fields where PHP scripts are used. 	 PHP שימושית בשלושה תחומים עיקריים.


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


It may not be obvious exactly what will happen when casting between certain types. 	 When casting or forcing a conversion from object to string, the result will be the word Object.


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


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


In PHP 3, the return may not appear inside a block unless it' s a function block, in which case the return() applies to that function and not the whole file. 	 הערה: בגרסה 3 של PHP לא תיתכן קריאה ל - return() אלא מתוך פונקציה בלבד ולא מתיוך קובץ ראשי או קובץ מסופח.


See also include(), require_once(), include_once(), eval(), file(), readfile(), virtual() and include_path. 	 למידע נוסף,יש לעיין גם בתיעוד של include(), require_once(), include_once(), eval(), file(), readfile(), virtual() u - include_path.


?php $link = mysql_pconnect( "localhost", "mysql_user", "mysql_password") or die("Could not connect: ". mysql_error()); if (mysql_create_db("my_db")) {print ("Database created successfully\n");} else {printf ("Error creating database: %s\n", mysql_error());}? 	 ?php $link = mysql_pconnect( "localhost", "mysql_user", "mysql_password") or exit("Could not connect"); if (mysql_create_db("my_db")) {print ("Database created successfully\n");} else {printf ("Error creating database: %s\n", mysql_error ());}?


mcrypt_get_block_size 	 mcrypt_generic_deinit


The PHP4 port is split into three sub-directories: core, extensions and pear. 	 $cd / usr / ports / www / php4 $make show VARNAME=FLAVORS (choose which flavors you want from the list) $env FLAVOR="imap gettext ldap mysql gd "make install $/ usr / local / sbin / php4-enable


..the win32 buildtools from the PHP site at http: / /www.php.net / extra / win32build.zip. 	 Download the rest of the build tools you will need from the PHP site at http: / /www.php.net / extra / win32build.zip.


XSLT (Extensible Stylesheet Language (XSL) Transformations) is a language for transforming XML documents into other XML documents. 	 It is a standard defined by The World Wide Web consortium (W3C).


dbase_get_record 	 dbase_get_record_with_names


ereg_replace 	 Regular Expression Functions (POSIX Extended)


In order to enable the bundled dbase library and to use these functions, you must compile PHP with the --enable-dbase option. 	 In order to use these functions, you must compile PHP with the --enable-dbase option.


Unlike with variables, you should not prepend a constant with a $. 	 הערה: קבועים ומשתנים (גלובליים) נמצאים בתחום שם אחר. זה רומז למשל ש TRUE ו $TRUE שונים.


Build shared Apache module. 	 Disable user-space object overloading support.


The error code is equivalent to IRC reply codes as defined by RFC 2812. 	 Errorcode is stored in first array element, errortext in second.


If the optional userdata parameter is supplied, it will be passed as the third parameter to the callback function. 	 If userdata is supplied, it will be passed as the third parameter to the user function. func must be a user-defined function, and can 't be a native PHP function.


DomElement - tagname 	 DomElement - set_attribute_node


The value for N is specified using ticks= N within the declare blocks' s directive section. 	 ארוע ה-ticks מתרחש כל N פעמים שרצה פקודה ברמה הנמוכה (low-level) על-ידי המפרש בבלוק שהוגדר לכך בפקודת declare. הערך של N הוא פרמטר שמועבר לפקודת ה - declare על-ידי הוראה בצורת ticks= N.


Extract the downloaded PHP source code into your working directory (c:\work). 	 Follow the instructions for installing the unzip utility of your choosing.


These functions are enabled by default, using the bundled expat library. 	 You may need to set CPPFLAGS and LDFLAGS in your environment before running configure if you have installed expat somewhere exotic.


Assuming the name is' cookiename', this value is retrieved through $_COOKIE['cookiename'] 	 The expire argument is a regular Unix time integer as returned by the time() or mktime() functions.


At the end of each iteration, expr3 is evaluated (executed). 	 בתחילת כל איטרציה מורץ הביטוי expr3.


PostgreSQL configuration options 	 Supported ini directives are described in php.ini-dist which comes with source distribution.


Example 1. swf_addbuttonrecord() function example 	 דוגמה 1. swf_addbuttonrecord() function example


?php echo "test1.jpg: br / \n"; $exif = exif_read_data ('tests / test1.jpg' ,'IFD0'); echo $exif===false? "No header data found. br / \n": "Image contains headers br / "; $exif = exif_read_data ('tests / test2.jpg',0,true); echo "test2.jpg: br / \n"; foreach($exif as $key= $section) {foreach($section as $name= $val) {echo "$key.$name: $val br / \n";}}? 	 ?php echo "test1.jpg: br \n"; $exif = exif_read_data ('tests / test1.jpg' ,'IFD0'); echo $exif===false? "No header data found. br \n": "Image contains headers br "; $exif = exif_read_data ('tests / test2.jpg',0,true); echo "test2.jpg: br \n"; foreach($exif as $key= $section) {foreach($section as $name= $val) {echo "$key.$name: $val br \n";}}?


Example returned values 	 The following characters are recognized in the format string:


Ora_Fetch_Into 	 Ora_Fetch


If you would like to use a more friendly notation, use the CCL parser - functions yaz_ccl_conf() and yaz_ccl_parse(). 	 @attrset gils @and @attr 1=4 art @attr 1=1003 "donald knuth"


Disable unified ODBC support. 	 GD:


?php $arr1 = array( 2, 3); $arr2 = $arr1; $arr2[] = 4; / / $arr2 is changed, / / $arr1 is still array(2,3) $arr3 = $arr1; $arr3[] = 4; / / now $arr1 and $arr3 are the same? 	 $fruits = array ("fruits "= array ("a" = "orange ", "b" = "banana ", "c" = "apple "), "numbers" = array (1, 2, 3, 4, 5, 6), "holes "= array ("first", 5 = "second ", "third"));


xmlrpc_decode_request 	 xmlrpc_decode


cpdf_setgray 	 cpdf_setgray_stroke


Superglobals cannot be used as variable variables. 	 כתובת ה - IP שממנה המשתמש צופה בעמוד הנוכחי.


arsort 	 array_change_key_case


They behave like their C counterparts. 	 לולאות for הן הלולאות הכי מורכבות ב-PHP. הן דומות למקבילותיהן בשפת C. התחביר של לולאת for הוא:


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


If enclosure is more than one character, only the first character is used. 	 The enclosure character is double quote, unless it is specified.


Table J-1. 	 טבלה I-1.


domxml_xslt_stylesheet_doc 	 xpath_eval


?php echo "$a ${$a}";? 	 echo "$a ${$a}";


The input containers default to a filename 'containing' the document to be processed. 	 It allows you to perform an XSLT transformation using almost any type of input source.


By default, the value of HTTP_USER_AGENT is used; however, you can alter this (i.e., look up another browser's info) by passing the optional user_agent parameter to get_browser(). 	 By default, the value of $HTTP_USER_AGENT is used; however, you can alter this (i.e., look up another browser's info) by passing the optional user_agent parameter to get_browser().


Servers-Sambar 	 Servers-Oreilly Website Pro


For reliability and performance reasons, the TCP implementation itself decides the appropriate octet boundaries of the underlying datagram communication layer. 	 For more information on the usage of socket_create(), as well as on the meanings of the various parameters, see the Unix man page socket (2).


See also: ifx_prepare(). 	 There is a example.


Automatically determine resume position and start position for GET and PUT requests (only works if FTP_AUTOSEEK is enabled) 	 These constants are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.


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


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


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


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


See also filectime(), stat(), touch(), and getlastmod(). 	 See also filectime() and touch().


In this case the return value is FALSE but width and height are set. 	 Both parameters width and height are available since PHP 4.3 and return the size of the thumbnail.


Directory / docroot php_admin_value open_basedir / docroot / Directory 	 בודק האם הקבצים\ספריות שאתה מתכוון לבצע עליהם פעולות, הם בעלי הרשאת משתמש (UID) הזהה לזו של התוכנית המורצת. בודק האם הספרייה שבה אתה רוצה לבצע פעולה, היא בעלת הרשאת משתמש (UID) הזהה לזו של התוכנית המורצת. (note: only the target is checked)


muscat_setup_net 	 muscat_give


Following this you can place normal PHP code included within the PHP starting and end tags. 	 You can write a script which 's first line starts with #! / usr / bin / php and then following the normal PHP code included within the PHP starting and end tags and set the execution attributes of the file appropriately.


DomElement - get_attribute 	 DomElement - get_attribute_node


Working with register_globals=on 	 Working without register_globals=off


WDDX is only available, if PHP is compiled with WDDX support. 	 If user use session_register() to register session variable, $HTTP_SESSION_VARS / $_SESSION will not have these variable in array until it is loaded from session storage. (i.e. until next request)


Identical to file(), except that file_get_contents() returns the file in a string. 	 Identical to readfile(), except that file_get_contents() returns the file in a string.


fdf_set_version 	 fdf_set_value


pspell_save_wordlist 	 pspell_new_config


fread() reads up to length bytes from the file pointer referenced by handle. 	 fread() reads up to length bytes from the file pointer referenced by fp.


proc_close() is similar to pclose() except that it only works on processes opened by proc_open(). proc_close() waits for the process to terminate, and returns it's exit code. 	 proc_close() is similar to popen() except that it only works on processes opened by proc_open(). proc_close() proc_close() is similar to popen() except that it only works on processes opened by proc_open(). proc_close() waits for the process to terminate, and returns it 's exit code.


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


26 [5] = Flush tables: 	 26 Flush tables:


list() assigns the values starting with the right-most parameter. 	 דוגמה 1. list() examples


It is somewhat optimized for HTML documents but may be used for any format. 	 It is somewhat optimised for HTML documents but may be used for any format.


See also sprintf() and vprintf() 	 See also: sprintf(), vsprintf(), vprintf()


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


Users who run other applications that use MySQL (for example, running PHP 3 and PHP 4 as concurrent apache modules, or auth-mysql) should always specify the path to MySQL: --with-mysql= / path / to / mysql. 	 With PHP4 MySQL support is always enabled; if you don 't specify the configure option, the bundled libraries are used.


This function is an alias to imap_list() and is identical to it in every way. 	 דוגמה 1. imap_listmailbox() example


You can still use the old stable ports trees if you wish, but they are unsupported by the OpenBSD team. 	 However, since there are a large number of options (called flavors) available for this port, you may find it easier to compile it from source using the ports tree.


This can be an interface name, an IP address or a host name. 	 CURLOPT_INTERFACE: ציין את שם ה network interface היוצא שיש להשתמש בו. הערך יכול להיות שם interface ,כתובת IP או שם מחשב מארח.


?php mysql_connect( "localhost", "mysql_user", "mysql_password") or die("Could not connect: ". mysql_error()); mysql_select_db("mydb"); $result = mysql_query("SELECT id, name FROM mytable"); while ($row = mysql_fetch_array($result, MYSQL_NUM)) {printf ("ID: %s Name: %s", $row[0], $row[1]);} mysql_free_result($result);? 	 ?php mysql_connect( "localhost", "mysql_user", "mysql_password") or die("could not connect"); mysql_select_db("mydb"); $result = mysql_query("SELECT id, name FROM mytable"); while ($row = mysql_fetch_array($result, MYSQL_NUM)) {printf ("ID: %s Name: %s", $row[0], $row[1]);} mysql_free_result($result);?


Call a user defined function given by function, with the parameters in paramarr. 	 Call a user defined function given by function_name, with the parameters in paramarr.


After witnessing PyGtk and GTK-Perl implementations, I decided to see if PHP could be made to interface with Gtk+, even minimally. 	 תכנות ממשקי משתמש גרפיים תמיד היה אחד מתחומי ההתעניינות שלי. גיליתי ש-Gtk + היא ערכת כלים נחמדה, אך תכנות ב-C עלול להיות מעייף. אחרי שראיתי את ממשקי PyGtk ו-GTK-Perl, החלטתי לבדוק האם PHP יכולה להתממשק עם Gtk+, אפילו בצורה מינימלית. באוגוסט 2000 כששעות הפנאי שלי התרחבו, התחלתי לנסות דברים. נועצתי רבות ב-PyGtk, מאחר וזהו ממשק מונחה עצמים עם הרבה אפשרויות. ג' יימס הנסטרידג '(James Henstridge), מי שכתב את PyGtk, סיפק לי עצות רבות במהלך השלבים הראשוניים.


pg_fetch_all 	 pg_escape_string


See the example below for more details. 	 הפעולות שיתבצעו בעקבות כל ארוע tick יקבעו על-ידי הפונקציה register_tick_function(). קראו בדוגמה הבאה למידע נוסף. שימו לב לכך שאפשר לבצע יותר מאירוע אחד לכל tick.


Hyperwave object with name my_object is mapped to http: / /host / my_object disregarding where it resides in the Hyperwave hierarchy. 	 Hyperwave object with name 'my_object' is mapped to 'http: / /host / my_object 'disregarding where it resides in the Hyperwave hierarchy.


Returns an array of filenames from the specified directory on success or FALSE on error. 	 Returns an array of filenames from the specified directory on success, FALSE on error.


Ming introduces 13 new objects in PHP, all with matching methods and attributes. 	 SWFTextField - setLeftMargin - - Sets the left margin width of the text field.


The zlib extension offers the option to transparently compress your pages on-the-fly, if the requesting browser supports this. 	 This module contains versions of most of the filesystem functions which work with gzip-compressed files (and uncompressed files, too, but not with sockets).


mb_ereg_search 	 mb_encode_numericentity


The value of type can be: 	 It changes the value of type to charset and returns TRUE in success or FALSE in failure.


Unfortunately that would not work because the fopen() call will fail if the remote file already exists. 	 הערה: יתכן שהדוגמה הזו נראית כמו יצירת קובץ log בשרת מרוחק אך כמו שצויין קודם לכן, הכתיבה יכולה להתבצע רק אם הקובץ שאליו כותבים לא קיים. כדי לבצע פעולה דומה, עיינו ב - syslog().


See also explode(), and split(). 	 See also explode(), join(), and split().


aspell_check_raw 	 aspell_check


More complicatedMore complicated assertions are coded as subpatterns. 	 More compli-More compli - cated assertions are coded as subpatterns.


We have our own documentation team, the manual keeps improving, people start writing extensions for PHP-GTK, and more and more exciting applications with it. 	 מאז שחרור PHP-GTK, הפרוייקט צבר פופולריות, יש לו צוות תיעוד משלו, המדריך ממשיך להשתפר, אנשים מתחילים לכתוב הרחבות ל-PHP-GTK ויותר ויותר יישומים נכתבים בעזרת הממשק.


You can use a URL as a filename with this function if the fopen wrappers have been enabled. 	 Because of this, directories must include trailing slashes.


Example 2. array_unique() and types 	 דוגמה 2. array_unique() and types


hw_api_object - assign 	 hw_api - object


imagecolorallocatealpha 	 imagecolorat


pdf_open_pdi_page 	 pdf_open_pdi


?php $bool = TRUE; / / a boolean $str = "foo"; / / a string $int = 12; / / an integer echo gettype($bool); / / prints out "boolean "echo gettype($str); / / prints out "string" / / If this is an integer, increment it by four if (is_int($int)) {$int += 4;} / / If $bool is a string, print it out / / (does not print out anything) if (is_string($bool)) {echo "String: $bool";}? 	 על מנת לקבל את סוג המשתנה בפורמט קריא, למטרות ניפוי באגים, יש להשתמש בפונקציה gettype(). כדי לבדוק אם משתנה הוא מסוג מסויים, אין להשתמש בפונקציה gettype() אלא בפונקציות is_ type.


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


The URL http: / /host / my_object will not call any PHP script unless you tell your web server to rewrite it to e.g. http: / /host / php_script / my_object and the script php_script evaluates the $PATH_INFO variable and retrieves the object with name my_object The URL http: / /host / my_object will not call any PHP script unless you tell your web server to rewrite it to e.g. http: / /host / php_script / my_object and the script php_script evaluates the $PATH_INFO variable and retrieves the object with name my_object from the Hyperwave server. 	 The URL http: / /host / my_object will not call any PHP script unless you tell your web server to rewrite it to e.g. 'http: / /host / php3_script / my_object' and the script 'php3_script 'evaluates the $PATH_INFO variable and retrieves the object with name 'my_object' from the Hyperwave server.


This extension has no configuration directives defined in php.ini. 	 SWFShape - movePen - - Moves the shape' s pen (relative).


"a=href,area=href,frame=src,form=fakeentry" 	 "a=href


Index 2 is a flag indicating the type of the image: 	 Index 2 a flag indicating the type of the image.


Entry can be set in php.ini, .htaccess or httpd.conf 	 Entry can be set in .htaccess


The above example would have printed 'I am the constructor of A. br' in PHP 4. 	 עניין זהב תוקן ב PHP 4 על ידי הכללת חוק חדש: אם למחלקה אין פונקציה בנאית, הפונקציה בנאית של מחלקת הבסיס נקראת, אם היא קיימת. בדוגמא מעל, ב PHP4 בעת יצירת האוייבקט יודפס הפלט: 'I am the constructor of A. br'.


The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime. 	 You need to compile PHP with the --with-mcrypt parameter to enable this extension.


vpopmail_del_domain_ex 	 vpopmail_auth_user


ini_get_all 	 ini_get


call_user_func_array 	 call_user_func


The suggested replacement is MCAL. 	 MCAL_RECUR_WEEKLY


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


When you are uploading a file to a remote site, this option should be used to tell PHP what the expected size of the infile will be. 	 CURLOPT_INFILESIZE: כאשר מעלים קובץ לאתר מרוחק, יש להשתמש באופציה זו על מנת להגיד ל PHP מהו הגודל המצופה מן הקובץ המועלה להיות.


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


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


In earlier versions, use $HTTP_SERVER_VARS. 	 הערה: הוצג ב-4.1.0. בגרסאות קודמות, השתמש ב $HTTP_SERVER_VARS.


As of PHP 4.2.0, you could use $_FILES[ 'userfile']['error'] and plan your logic according to the error codes. 	 סקריפט ה-PHP שמקבל את הקובץ המועלה צריך ליישם כל לוגיקה הכרחית כדי לקבוע מה צריך לעשות עם הקובץ שהועלה. ניתן, לדוגמה, להשתמש במשתנה $file_size כדי למחוק כל קובץ, קטן או גדול מידי. אפשר להשתמש במשתנה $file_type כדי לזרוק כל קובץ שלא תואם לקריטריון של סוג מסויים. תהיה הלוגיקה אשר תהיה, צריך למחוק את הקובץ מהספרייה הזמנית, או להעביר אותו למקום אחר.


The behaviour of these functions is affected by settings in php.ini. 	 ?php $key = "this is a very secret key"; $input = "Let us meet at 9 o'clock at the secret place ."; $td = mcrypt_module_open ('tripledes', '', 'ecb', ''); $iv = mcrypt_create_iv (mcrypt_enc_get_iv_size ($td), MCRYPT_RAND); mcrypt_generic_init ($td, $key, $iv); $encrypted_data = mcrypt_generic ($td, $input); mcrypt_generic_end ($td);?


December 29 2002 22:16:23. $filename = 'somefile.txt'; if (file_exists($filename)) {echo "$filename was last modified: ". date ("F d Y H:i:s .", filemtime($filename));}? 	 Use date() on the result of this function to get a printable modification date for use in page footers.


As of Windows 2000 though, enabling the php_shmop.dll in your php.ini will enable this functionality though. 	 The functions will not work on windows, as it does not support shared memory.


As integers can be negative, this is also true for negative indices. 	 A value can be anything.


Variables provided to the script via HTTP GET. 	 משתני סביבה אחדים יכללו את משתני ה-CGI הממוקמים שם כאשר PHP רצה כמודול שרת וגם כאשר PHP רצה כמעבד CGI.


PHP provides a large number of predefined variables to any script which it runs. 	 למרות גורמים אלה, לפניכם רשימה של משתנים מוגדרים מראש הזמינים בהתקנה רגילה של PHP בגרסה 3 כמודול של שרת Apache 1.3.6.


The fourth way is only available if ASP-style tags have been enabled using the asp_tags configuration setting. 	 הדרך הרביעית תפעל רק אם סגנון תגיות ה ASP מאופשר על-ידי ההגדרה asp_tags בקובץ ההגדרות.


?php $pdf = pdf_new(); pdf_open_file($pdf, "test.pdf"); pdf_set_info($pdf, "Author", "Uwe Steinmann"); pdf_set_info($pdf, "Title", "Test for PHP wrapper of PDFlib 2.0"); pdf_set_info($pdf, "Creator", "See Author"); pdf_set_info($pdf, "Subject", "Testing"); pdf_begin_page($pdf, 595, 842); pdf_add_outline($pdf, "Page 1"); $font = pdf_findfont($pdf, "Times New Roman", "winansi", 1); pdf_setfont($pdf, $font, 10); pdf_set_value($pdf, "textrendering", 1); pdf_show_xy($pdf, "Times Roman outlined", 50, 750); pdf_moveto($pdf, 50, 740); pdf_lineto($pdf, 330, 740); pdf_stroke($pdf); pdf_end_page($pdf); pdf_close($pdf); pdf_delete($pdf); echo "A HREF=getpdf.php finished / A";? 	 ?php $pdf = pdf_new(); pdf_open_file($pdf, "test.pdf"); pdf_set_info($pdf, "Author", "Uwe Steinmann"); pdf_set_info($pdf, "Title", "Test for PHP wrapper of PDFlib 2.0"); pdf_set_info($pdf, "Creator", "See Author"); pdf_set_info($pdf, "Subject", "Testing"); pdf_begin_page($pdf, 595, 842); pdf_add_outline($pdf, "Page 1"); pdf_set_font($pdf, "Times-Roman", 30, "host"); pdf_set_value($pdf, "textrendering", 1); pdf_show_xy($pdf, "Times Roman outlined", 50, 750); pdf_moveto($pdf, 50, 740); pdf_lineto($pdf, 330, 740); pdf_stroke($pdf); pdf_end_page($pdf); pdf_close($pdf); pdf_delete($pdf); echo "A HREF=getpdf.php finished / A";?


If you don 't and an object is being unserialized without its class definition being present, it will lose its class association and become an object of class stdClass without any functions available at all, that is, it will become quite useless. 	 מאוד מומלץ להכליל את הגדרת המחלקה של כל האובייקטים המוזמנים של כל אותם דפים, גם אם אתה לא באמת משתמש באותם מחלקות בכל אותם דפים. אם אתה לא משתמש באובייקט הוא unserialized ללא הגדרת המחלקה הנוכחית, הוא יאבד את השיוך למחלקה ויהפוך לאובייקט של המחלקה stdClass ללא פונקציה כשלהי שמתקיימת בכלל, לפיכך, הוא יהפך ללא שימושי כלל.


No external libraries are needed to build this extension. 	 These functions are available as part of the standard module, which is always available.


Builtin support for ctype is available with PHP 4.3.0. 	 This extension does not define any configuration directives.


From our example above, you would use --with-imap= / usr / local / imap-2000b. 	 These constants are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.


However, the internal pointer of the original array is advanced with the processing of the array. 	 הערה: לולאת foreach לא תומכת בהשקטת הוראות שגיאה בעזרת '@'.


The example was converted to PHP from the PDFlib example. (The same example is available in the CLibPDF documentation.) 	 The example, converted to PHP from the PDFlib example, is as follows: (The same example is available in the CLibPDF documentation.)


Second, the custom headers like From:, Cc:, Bcc: and Date: are not interpreted by the MTA in the first place, but are parsed by PHP. 	 אם משתנה רביעי מסוג מחרוזת נשלח בנוסף, מחרוזת זו מוכנסת בסוף הכותרת (header). השימוש במשתנה זה הוא לרוב בשביל להוסיף עוד כותרות (headers). בכדי להוסיף כמה כותרות, יש להפרידם בעזרת החזרת הסמן להתחלת השורה (/ r) ושורה חדשה (/ n).


call_user_method 	 call_user_method_array


Example 1. fopen() example 	 You can use the optional third parameter and set it to "1", if you want to search for the file in the include_path, too.


?php error_reporting( E_ALL); / * Add redirection so we can get stderr. * / $handle = popen(' / path / to / spooge 2 1', 'r'); echo "'$handle'; ". gettype($handle). "\n"; $read = fread($handle, 2096); echo $read; pclose($handle);? 	 ?php error_reporting( E_ALL); / * Add redirection so we can get stderr. * / $fp = popen(' / path / to / spooge 2 1', 'r'); echo "'$fp'; ". gettype($fp). "\n"; $read = fread($fp, 2096); echo $read; pclose($fp);?


$php -v PHP 4.3.0 (cli), Copyright (c) 1997-2002 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies 	 $php -v PHP 4.3.0-dev (cli), Copyright (c) 1997-2002 The PHP Group Zend Engine v1.2.1, Copyright (c) 1998-2002 Zend Technologies


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


socket_create 	 socket_get_option


Returns the group ID of the file, or FALSE in case of an error. 	 Returns the group ID of the owner of the file, or FALSE in case of an error.


Example 1. iconv() example: 	 דוגמה 1. iconv() example:


ENIGMA (crypt), PANAMA, RC4 and WAKE. 	 ?php $key = "this is a very secret key"; $input = "Let us meet at 9 o'clock at the secret place ."; $encrypted_data = mcrypt_ecb (MCRYPT_3DES, $key, $input, MCRYPT_ENCRYPT);?


@c:\php\cli\php.exe script.php %1 %2 %3 %4 	 @c:\php\php.exe script.php %1 %2 %3 %4


Use this function at your own risk. 	 Description void java_last_exception_clear (void)


Mhash Functions 	 mhash


Some of these libraries are detected automatically when you run the 'configure' script of PHP (such as the GD library), and others you will have to enable using '--with-EXTENSION' options to 'configure'. 	 להפעלת הסיפריות צריך לפעול לפי ההסברים שמסופקים עם הסיפריה. חלק מסיפריות אלו מאותרות בצורה אוטומטית כאשר קוד 'configure' מורץ (כדוגמה בספרית GD), לאחרים חובה לאפשר שימוש באופציית '--with-EXTENSION' כדי לעשות 'configure'. ניתן להריץ את 'configure --help' כדי לקבל רשימה של אלו.


For now, we 'll simply use the default files. 	 To include them into the PHP build process, simply copy the source directories to your PHP ext directory, run buildconf, and then include the sample modules you want by using the appropriate --enable-* directives with configure.


It was created by Stig S. 	 פרוייקט PEAR נולד בשיחות שהתקיימו במפגש מפתחי PHP (PDM) בינואר 2000 בתל אביב. הוא נוצר על ידי סטיג ס. באקן (Stig S.


See String conversion to numbers 	 See String conversion


Avoid locking (might break parallel builds). 	 Do not include Perl Compatible Regular Expressions support.


echo "Values submitted via POST method: br / \n"; reset ($_POST); while (list ($key, $val) = each ($_POST)) {echo "$key = $val br / \n";} 	 echo "Values submitted via POST method: br"; reset ($HTTP_POST_VARS); while (list ($key, $val) = each ($HTTP_POST_VARS)) {echo "$key = $val br ";}


$email = 'user@example.com'; $domain = strstr($email, '@'); print $domain; / / prints @example.com 	 דוגמה 1. strstr() example


Restrict access to php scripts which must administer the database by using password control and / or SSL security. 	 Migration from other SQL databases:


To work around this, you have to use a set of API functions to force a type conversion on every argument that' s being passed (see Table 32-1). 	 To work around this, you have to use a set of API functions to force a type conversion on every argument that' s being passed (see טבלה 33-1).


openssl_x509_export 	 openssl_x509_free


Example 1. imap_delete() Beispiel 	 דוגמה 1. imap_delete() Beispiel


1 / 3/2003 - %V,%G,%Y = 1,2003,2003 print "1 / 3/2003 - %V,%G,%Y =". strftime("%V,%G,%Y",strtotime("1 / 3/2003")). "\n"; / / Outputs: 	 This means that %T and %D will not work on Windows.


sybct.hostname 	 tokenizer.global_value


ftp_nb_continue 	 ftp_nlist


To use Ming with PHP, you first need to build and install the Ming library. 	 SWFDisplayItem - skewXTo - - Sets the X-skew.


SWFBitmap - getWidth 	 SWFAction


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


Also put this in the lib / directory but rename it as libc-client.a. 	 Depending how the c-client was configured, you might also need to add --with-imap-ssl= / path / to / openssl / and / or --with-kerberos into the PHP configure line.


See also get_extension_funcs(), extension_loaded(), dl() and phpinfo(). 	 See also: get_extension_funcs().


dbx_escape_string 	 dbx_query


That is to say, if you assign a string value to variable $var, $var becomes a string. 	 That is to say, if you assign a string value to variable var, var becomes a string.


?php function cube( $n) {return $n*$n*$n;} $a = array(1, 2, 3, 4, 5); $b = array_map("cube", $a); print_r($b);? 	 function cube( $n) {return $n*$n*$n;} $a = array(1, 2, 3, 4, 5); $b = array_map("cube", $a); print_r($b);


With libmcal, central calendar servers can be accessed, removing the need for any specific database or local file programming. 	 That requires the mcal library to be installed.


php4 / ext 	 php-4


With PHP 's authentication and file manipulation functions, you have full control over who is allowed to upload and what is to be done with the file once it has been uploaded. 	 PHP גם תומכת בשיטת העלאת הקבצים PUT ש-netscape composer והקליינט של W3C, Amaya, משתמשים בה. עוד פרטים על תמיכה בשיטת PUT.


Example 1. 	 foreach (glob("*.txt") as $filename) {echo "$filename size ". filesize($filename). "\n";}


ncurses_inch 	 ncurses_init


This is a behavior similar to the require() This is a behavior similar to the require() statement, with the only difference being that if the code from a file has already been included, it will not be included again. 	 פקודת require_once() מספחת ומריצה או מעריכה קובץ מסויים. היתנהגותה זהה לפקודת require() עם הבדל יחיד שמתבטא בכך שאם קוד מקובץ מסויים כבר סופח במהלך הריצה של הסקריפט, הוא לא יסופח פעם נוספת. יש לעיין בתיעוד של פקודת require() למידע נוסף על אופן הפעולה של פקודה זו.


Only the superuser may change the owner of a file. 	 מחזיר TRUE במקרה של הצלחה או FALSE במקרה של כישלון.


ncurses_init 	 ncurses_insch


Location of the Zend Engine files; here you'll find all of Zend's API definitions, macros, etc. (important). 	 Location of Zend' s file; here you'll find all of Zend's API definitions, macros, etc. (important).


Are there any PHP mailing lists? 	 1. האם יש ל-PHP רשימות תפוצה?


Example 4. xmltest.xml 	 דוגמה 4. xmltest.xml


SWFDisplayItem - skewYTo 	 SWFbutton - setUp


ovrimos_result 	 ovrimos_result_all


session_start() creates a session or resumes the current one based on the current session id that's being passed via a request, such as GET, POST, or a cookie. 	 session_start() creates a session (or resumes the current one based on the session id being passed via a GET variable or a cookie).


Returns a FTP stream on success or FALSE on error. 	 Returns a FTP stream on success, FALSE on error.


javier argonaut pe hiroshi sculptor jp robert slacker us luigi florist it 	 דוגמה 2. users.txt


The PHP community is encouraging all to not rely on this directive as it' s preferred to assume it's off and code accordingly. 	 ב - PHP 3 קיימת הגבלה למימד אחד בלבד במערכי הטפסים. ב - PHP 4 לא קיימת הגבלה כזו.


See also printf(), sprintf(), vsprintf() 	 See also: printf(), sprintf(), vsprintf()


See also is_readable(), is_writable(), is_file() and file(). 	 On windows use "/ /computername / share / filename" or "\\\\computername\share\filename "to check files on network shares.


Returns TRUE on success or FALSE on failure.. 	 משנה את ספריית ה root של התהליך הנוכחי ל directory. מחזירה FALSE אם לא ניתן לשנות את ספריית ה root, TRUE אחרת.


fnmatch 	 fopen


?php / / set up basic connection $conn_id = ftp_connect( $ftp_server); / / login with username and password $login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); / / check connection if ((!$conn_id) _BAR_ _BAR_ (!$login_result)) {echo "FTP connection has failed !"; echo "Attempted to connect to $ftp_server for user $ftp_user_name"; exit;} else {echo "Connected to $ftp_server, for user $ftp_user_name";} / / upload the file $upload = ftp_put($conn_id, $destination_file, $source_file, FTP_BINARY); / / check upload status if (!$upload) {echo "FTP upload has failed !";} else {echo "Uploaded $source_file to $ftp_server as $destination_file";} / / close the FTP stream ftp_close($conn_id);? 	 ?php / / set up basic connection $conn_id = ftp_connect( $ftp_server); / / login with username and password $login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); / / check connection if ((!$conn_id) _BAR_ _BAR_ (!$login_result)) {echo "FTP connection has failed !"; echo "Attempted to connect to $ftp_server for user $ftp_user_name"; die;} else {echo "Connected to $ftp_server, for user $ftp_user_name";} / / upload the file $upload = ftp_put($conn_id, $destination_file, $source_file, FTP_BINARY); / / check upload status if (!$upload) {echo "FTP upload has failed !";} else {echo "Uploaded $source_file to $ftp_server as $destination_file";} / / close the FTP stream ftp_close($conn_id);?


You can also compile up PHP from source using the ports tree. 	 OpenBSD Ports Install Example


Beginning with version 4.0.5, this function returns the number of variables extracted. 	 Since version 4.0.5 this function returns the number of variables extracted.


But on the other hand it might break your code in a rather subtle way, leading to misbehavior that is hard to track down if you do not know about what to look for. 	 But on the other had it might break your code in a rather subtle way, leading to misbehavior that is hard to track down if you do not know about what to look for.


Pass that array as user_settings. 	 user_settings


See also fdf_save_string(), fdf_create() and fdf_close(). 	 See also fdf_close() and example for fdf_create().


01 through 12 	 h - hour, 12-hour format; i.e. "01 "to "12"


If options is specified, pg_convert() is applied to data with specified options. 	 pg_update() updates records that matches condition with data If options is specified, pg_convert() is applied to assoc_array with specified options.


readline 	 readline_write_history


As with books, this was the first in a series of many articles published about PHP in various prominent magazines. 	 לפי מה שאנו יודעים, המאמר הראשון על PHP בכתב עת הופיע במגזין הצרפתי Informatiques Magazine לקראת סוף שנת 1998, וכיסה את PHP 3.0. בעקבות מאמר זה פורסמו עוד מאמרים רבים על PHP בכתבי עת אחרים.


Export only required symbols. 	 DIR is the readline install directory.


yaz_scan_result 	 yaz_record


Example 2. php.ini setting for EUC-JP users 	 mbstring.detect_order defines default character code detection order.


Sunday through Saturday 	 l (lowercase 'L') - day of the week, textual, long; e.g. "Friday "


Example 1. 	 Meta Tags Example


Without a filename fdf_save() will write the FDF to the default PHP output stream. 	 In such a case one will have to write to a file and use e.g. fpassthru() to output it.


We are explicitly testing whether the return value is identical to (equal to and of the same type as--see Comparison Operators for more information) FALSE since otherwise, any directory entry whose name evaluates to FALSE will stop the loop (e.g. a directory named "0"). 	 שים לב לדרך שבה הערך שמחזירה הפונקציה readdir() 's נבדק בדוגמא מתחת. אנו בודקים בפירוש האם הערך המוחזר זהה(שווה ל וגם מאותו type ,ראה Comparison Operators למידע נוסף) FALSE כי אחרת, כל ערך המוחזר מהספרייה השווה ל FALSE יעצור את הלולאה.


assert 	 assert_options


ircg_disconnect() will close a connection to a server previously established with ircg_pconnect(). 	 ircg_disconnect() will close a connection to a server previously established with ircg-pconnect().


For example, after / (a_BAR_(b))+ / matches "aba "the value of the second captured substring is "b". 	 For exam - ple, after / (a_BAR_(b))+ / matches "aba "the value of the second captured substring is "b".


md5 	 md5_file


See also file_get_contents(). $html = implode ('', file ('http: / /www.example.com / '));? 	 ?php / / get a web page into an array and print it out $fcontents = file ('http: / /www.example.com / '); while (list ($line_num, $line) = each ($fcontents)) {echo "b Line $line_num: / b;", htmlspecialchars ($line), "br \n";} / / get a web page into a string $fcontents = implode ('', file ('http: / /www.example.com / '));?


pdf_set_info_title 	 pdf_set_horiz_scaling


description 	 MYSQL_STORE_RESULT


Read and print the entire contents of a CSV file 	 enclosure is added from PHP 4.3.0.


This section has details about PHP download locations, and OS issues. 	 מדור זה מכיל פרטים על אתרים להורדת PHP, וסוגיות על מערכות ההפעלה השונות.


?php / / This is WRONG and will not work as desired. if ($condition) include $file; else include $other; / / This is CORRECT. if ($condition) {include $file;} else {include $other;}? 	 דוגמה 11-6. התנייה של פקודת include()


Consider the following pattern, which contains non-significant white space to make it more readable (assume the PCRE_EXTENDED option) and to divide it into three parts for ease of discussion: (\ ()? [^()] + (?(1)\)) The first part matches an optional opening parenthesis, and if that character is present, sets it as the first capturedConsider the following pattern, which contains non-significant white space to make it more readable (assume the PCRE_EXTENDED option) and to divide it into three parts for ease of discussion: (\ ()? [^()] + (?(1)\)) The first part matches an optional opening parenthesis, and if that character is present, sets it as the first captured substring. 	 Consider the following pat - tern, which contains non-significant white space to make it more readable (assume the PCRE_EXTENDED option) and to divide it into three parts for ease of discussion: (\ ()? [^()] + (?(1)\)) The first part matches an optional opening parenthesis, and if that character is present, sets it as the first capturedConsider the following pat - tern, which contains non-significant white space to make it more readable (assume the PCRE_EXTENDED option) and to divide it into three parts for ease of discussion: (\ ()? [^()] + (?(1)\)) The first part matches an optional opening parenthesis, and if that character is present, sets it as the first captured substring.


muscat_setup 	 Network Functions


pdf_clip 	 pdf_close


SWFMovie - streammp3 	 SWFMorph - getshape2


ftp_fput() uploads the data from the file pointer fp until the end of the file is reached. 	 ftp_fput() uploads the data from the file pointer fp until end of file.


Returns FALSE on error, or TRUE on success. 	 Returns FALSE on error, or TRUE on succes.


Once you have set the execution attributes of the file appropriately (e.g. chmod +x test) your script can be executed like a normal shell or perl script: 	 This way it can be executed like a normal shell or perl script:


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


shm_remove 	 shm_remove_var


You can use the output buffering functions to delay the script output until you have decided whether or not to set any cookies or send any headers. 	 PHP תומכת בעוגיות HTML בצורה ברורה. עוגיות הן שיטה מכנית לאיחסון מידע בדפדפן המרוחק וכך לעקוב או לזהות משתמשים חוזרים. אפשר להגדיר עוגיות על ידי שימוש בפונקציה setcookie(). עוגיות הן חלק מכותרי ה-HTTP, ולכן setcookie() חייבת להיקרא לפני לפני שפלט מסויים נשלח לדפדפן. זו אותה ההגבלה שיש ל header() .ניתן להשתמש ב output buffering functions להשהיית פלט הסקריפט עד שיוחלט אם להגדיר עוגיות או לשלוח כותרי HTTP כלשהם.


hw_api - children 	 hw_api - content


If you have any comments about this, the current maintainer for the port is Anil Madhavapeddy. 	 Read the packages( 7) manual page for more information in what packages are available.


Home 	 Zlib Compression Functions


The maximum number of bytes read is specified by the length parameter. 	 The function socket_read() reads from socket socket created by the socket_accept() function the maximum number of bytes set by length.


preg_replace_callback 	 preg_quote


The files you need can be found on your OpenBSD CD or on the FTP site. 	 This is the recommended method of installing PHP on OpenBSD, as it will have the latest patches and security fixes applied to it by the maintainers.


Returns TRUE on success or FALSE on failure. 	 See also chown() and chmod().


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


mcrypt_generic_deinit 	 mcrypt_generic


Thus, output from debugging statements in the "write" handler will never be seen in the browser. 	 You must set the configuration option session.save_handler to user in your php.ini file for session_set_save_handler() to take effect.


vpopmail_add_alias_domain_ex 	 vpopmail_add_alias_domain


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


The parsing stops at / head. 	 Opens filename and parses it line by line for meta tags of the form


These expressions are most commonly used inside conditional execution, such as if statements. 	 PHP תומכת ב (גדול מ), = (גדול או שווה ל), == (שווה), != (לא שווה), (קטן מ) and = (קטן או שווה ל). השימוש בביטויים אלו נפוך בעיקר בביצוע משפטי תנאי, מהסוג של if לדוגמא.


ftp_nb_put 	 ftp_mkdir


Ncurses configuration options 	 טבלה 1. ncurses color constants


PHP 4 introduced the new curly bracket syntax to access characters in string, use this syntax instead of the one presented above: 	 For this reason, as of PHP 3.0.12 and PHP 4.0b3-RC4, the result of this automatic conversion is considered to be undefined.


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


Enhance the capabilities of GD to deal with different fonts by specifying the --with-XXXX configure switch to your PHP configure line. 	 In order to read and write images in jpeg format, you will need to obtain and install jpeg-6b (available at ftp: / /ftp.uu.net / graphics / jpeg /), and then recompile GD to make use of jpeg-6b.


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


This extension has no resource types defined. 	 To use it, download libmcrypt-x.x.tar.gz from here To use it, download libmcrypt-x.x.tar.gz from here and follow the included installation instructions.


At each iteration of the subpattern, the back reference matches the character string corresponding to the previous iteration. 	 At each iteration of the subpattern, the back reference matches the character string corresponding to the previous itera-At each iteration of the subpattern, the back reference matches the character string corresponding to the previous itera - tion.


array 	 arsort


Include dbplus support. 	 DIR is the Ingres base directory (default / II / ingres).


@attrset gils @and @attr 1=4 art @attr 1=2000 company 	 @attr 1=4 art


The meaning of dollar can be changed so that it matches only at the very end of the string, by setting the PCRE_DOLLAR_ENDONLY The meaning of dollar can be changed so that it matches only at the very end of the string, by setting the PCRE_DOLLAR_ENDONLY option at compile or matching time. 	 The meaning of dollar can be changed so that it matches only at the very end of the string, by setting the PCRE_DOLLAR_ENDONLY option at compile or matching time.


(4.1.0 - 4.2.3 only) 	 (PHP 4 = 4.1.0)


the boolean FALSE itself 	 הערך ה בוליאני FALSE


Example 1. imap_get_quota() example 	 This function is currently only available to users of the c-client2000 library.


DomNode - add_namespace 	 DomElement - tagname


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


pdf_add_bookmark() 	 satellite_get_repository_id()


An out-of-band data transmission mechanism may be supported. 	 Currently, AF_INET and AF_UNIX Currently, AF_INET and AF_UNIX are understood.


mb_substr_count 	 mb_substitute_character


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


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


hw_api_content - read 	 hw_api - children


Example 1. swfshape - addfill() example 	 דוגמה 1. swfshape - addfill() example


?php $foo = 10; / / $foo is an integer $bar = (boolean) $foo; / / $bar is a boolean? 	 $foo = 10; / / $foo is an integer $bar = (float) $foo; / / $bar is a float


Books about PHP 	 ספרים בנושא PHP


SWFTextField - addstring 	 SWFText - addString


pg_fetch_assoc 	 pg_fetch_array


Detailed installation instructions can be found here. 	 To install and use IRCG you need the following software:


pdf_open_pdi_page 	 pdf_open_memory_image


break 	 break;


?php / / == is an operator which test / / equality and returns a boolean if ($action == "show_version") {echo "The version is 1.23";} / / this is not necessary... if ($show_separators == TRUE) {echo "hr \n";} / / ...because you can simply type if ($show_separators) {echo" hr \n";}? 	 / / == is an operator which returns a boolean if ($action == "show_version") {echo "The version is 1.23";} / / this is not necessary: if ($show_separators == TRUE) {echo "hr \n";} / / because you can simply type this: if ($show_separators) {echo" hr \n";}


What can PHP do? 	 מה PHP יודעת לעשות?


Depending on which version of the GD library that PHP is using, when fontfile does not begin with a leading '/', '.ttf 'will be appended to the filename and the library will attempt to search for that filename along a library-defined font path. 	 Depending on which version of the GD library that PHP is using, when fontfile does not begin with a leading '/', '.ttf 'will be appended to the filename and the the library will attempt to search for that filename along a library-defined font path.


$HTTP_SERVER_VARS contains the same initial information, but is not an autoglobal. (Note that $HTTP_SERVER_VARS and $_SERVER are different variables and that PHP handles them as such) 	 אם ההנחיה register_globals מוגדרת, משתנים אלה יהיו זמינים גם בתחום הגלובאלי של התכנית; משמע, בנפרד מהמערכים $_SERVER ו - $HTTP_SERVER_VARS. למידע רלוונטי, ראה פרק האבטחה ששמו שימוש ב-Register Globals. גלובאלים בודדים אלו אינם גלובאלים אוטומטיים.


Table 31-2 shows a list of all the macros that you can use to define functions. 	 טבלה 32-2 shows a list of all the macros that you can use to define functions.


The function will return an error if the uncompressed data is more than 32768 times the length of the compressed input data or more than the optional parameter length. 	 The function will return an error if the uncompressed data is more than 256 times the length of the compressed input data or more than the optional parameter length.


Returns TRUE on success or FALSE on failure. 	 It issues COPY command internally to insert records. מחזיר TRUE במקרה של הצלחה או FALSE במקרה של כישלון.


gmp_div 	 gmp_divexact


It can clean up the object and is supposed to return an array with the names of all variables of that object that should be serialized. 	 serialize() בודק אם למחלקה יש פונקציה עם "מילת הקסם "__sleep. אם זה המצב, פונקציה זו מתחילה לרוץ לפני כל serialization. היא יכולה לנקות את האובייקט והיא אמורה להחזיר מערך עם שמות של המשתנים של אותו אובייקט שיכול להיות serialized.


xml_parser_create 	 xml_parser_create_ns


end of subject( independent of multiline mode) 	 end of subject (independent of multiline mode)


gmp_div 	 gmp_div_r


session.entropy_length specifies the number of bytes which will be read from the file specified above. 	 If you enable this option, relative URIs will be changed to contain the session id automatically.


vpopmail_alias_get 	 vpopmail_alias_get_all


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


It converts the string str encoded in in_charset to the string encoded in out_charset. 	 It converts the string string encoded in in_charset to the string encoded in out_charset.


Let us check out if there is a difference between $bar1 which has been created using the copy = operator and $bar2 which has been created using the reference = operator... 	 בדיקה אם יש הבדל בין $bar1 שיוצר תוך שימוש בעותק של האופרטור = ושל $bar2 שנוצר תוך שימוש באופרטור הייחוס =...


Press the 'Save' icon. 	 לחץ על הייקון 'Save'.


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


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


?php $var = ''; / / This will evaluate to true; so the text will be printed. if (isset($var)) {print "This var is set set so I will print .";} / / In the next examples we'll use var_dump to output / / the return value of isset(). $a = "test"; $b = "anothertest"; var_dump (isset($a)); / / TRUE var_dump (isset ($a, $b)); / / TRUE unset ($a); var_dump (isset ($a)); / / FALSE var_dump (isset ($a, $b)); / / FALSE $foo = NULL; var_dump (isset ($foo)); / / FALSE? 	 ?php $a = "test"; $b = "anothertest"; echo isset ($a); / / TRUE echo isset ($a, $b); / /TRUE unset ($a); echo isset ($a); / / FALSE echo isset ($a, $b); / /FALSE $foo = NULL; print isset ($foo); / / FALSE?


Internally, zend_function_entry is defined as shown in Example 31-1. 	 Internally, zend_function_entry is defined as shown in דוגמה 32-1.


Servers-Xitami 	 שרתים-Xitami


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


Note that the iconv() function on some systems may not work as well as you expect. 	 Iconv library function converts files between various encoded character sets.


msql 	 msql_tablename


Core Predefined Constants 	 sockets Predefined Constants


Table 1. syslog() Priorities (in descending order) 	 טבלה 1. syslog() Priorities (in descending order)


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


SWFDisplayItem - addColor 	 swfbutton_keypress


Mode flags are set or cleared by specifying a mode character and prepending it with a plus or minus character, respectively. 	 Mode flags are set or cleared by specifind a mode character and prepending it with a plus or minus character respectively.


(4.0.5 - 4.2.3 only) 	 (4.0.5 - 4.2.1 only)


Create the directory bindlib_w32 under your working directory (c:\work) and unzip bindlib_w32.zip into it. 	 Place the Zend and TSRM directories inside the php4 directory in order for the projects to be found during the build process.


get_class_vars 	 class_exists


dba_handlers 	 dba_firstkey


See also htmlspecialchars(), htmlentities(), strtr(), and array_flip(). 	 See also: htmlspecialchars(), htmlentities(), strtr(), and array_flip().


1 if it is a leap year, 0 otherwise. 	 L - boolean for whether it is a leap year; i.e. "0 "or "1"


sections a comma separated list of sections that need to be present in file to produce a result array. 	 sections a comma separated lsit of sections that need to be present in file to produce a result array.


1 THUMBNAIL.Thumbnail.Height: 	 Comment #3end


eregi_replace 	 ereg_replace


In order to enable this module on a Windows environment, you must copy libeay32.dll and ssleay32.dll from the DLL folder of the PHP / Win32 binary package to the SYSTEM32 folder of your windows machine. (Ex: 	 כדי להשתמש ב PHP' s CURL support עליך לקמפל את PHP --with-curl[=DIR] כאשר DIR הוא המיקום של הספריה המכילה את ספריית ה lib וספריית ה include. בספריית "include "צריך להיות ספרייה בשם "curl" שצריכה להכיל את הקבצים easy.h ו curl.h. קובץ בשם "libcurl.a "צריך להמצא תחת ספריית "lib".


muscat_setup_net 	 muscat_setup


For example, the value of __LINE__ depends on the line that it 's used on in your script. 	 גרסת הphp שנעשה בה שימוש כרגע למשל '4.1.0'.


Include Cybercash MCK support. 	 Include SNMP support.


Before reading these faqs, it 's important you learn how to retrieve variables from outside of PHP. 	 PHP ו-HTML פועלות בצורה הדדית אחת עם השניה:


fnmatch 	 flock


/ / Note that !== did not exist until 4.0.0-RC2 ?php if ($handle = opendir(' / path / to / files')) {echo "Directory handle: $handle\n"; echo "Files:\n"; / * This is the correct way to loop over the directory. * / while (false !== ($file = readdir($handle))) {echo "$file\n";} / * This is the WRONG way to loop over the directory. * / while ($file = readdir($handle)) {echo "$file\n";} closedir($handle);}? 	 / / Note that !== did not exist until 4.0.0-RC2 ?php $handle=opendir( '/ path / to / files'); echo "Directory handle: $handle\n"; echo "Files:\n"; / * This is the correct way to loop over the directory. * / while (false !== ($file = readdir($handle))) {echo "$file\n";} / * This is the WRONG way to loop over the directory. * / while ($file = readdir($handle)) {echo "$file\n";} closedir($handle);?


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


If you prefer to receive the content of BLOB columns in a file, use "ifx_blobinfile(1) ;", and "ifx_get_blob($blob_id);" will get you the filename. 	 It will set the "HAVE_IFX_IUS" conditional compilation variable if your Informix version = 9.00.


See also: base64_decode(), chunk_split(), RFC 2045 section 6.8. 	 See also: base64_decode(), chunk_split(), RFC2045 section 6.8.


The team now consists of a core group of developers with a good understanding of the PHP code base. 	 יוזמת בקרת האיכות של PHP (PHP Quality Assurance Initiative) הוקמה בקיץ 2000 כתגובה לביקורת שהוטחה ב-PHP על כך שלא בודקים אותה מספיק לפני השחרור. הצוות מורכב מגרעין מפתחים בעלי הבנה טובה בליבת PHP. מפתחים אלו מבלים זמן ר ב במציאת וניפוי באגים ב-PHP. בנוסף, ישנם חברי צוות שבודקים את המערכת ומחזירים משוב על תיקוני הבאגים על מגוון פלטפורמות.


The basic idea behind the CURL functions is that you initialize a CURL session using the curl_init(), then you can set all your options for the transfer via the curl_setopt(), then you can execute the session with the curl_exec() and then you finish off your session using the curl_close(). 	 לאחר ש PHP קומפל עם CURL support, ניתן להתחיל להשתמש בפונקציות CURL. הרעיון הבסיסי העומד מאחורי פונקציות CURL הוא שמאותחל CURL session בעזרת curl_init(), ואז ניתן לקבוע את כל האופציות להעברת המידע דרך curl_exec() ,לאחר מכן נסגר ה session תוך כדי שימוש ב curl_close(). לפנינו דוגמה העושה שימוש בפונקציות CURL על מנת להביא את עמוד הבית של PHP לתוך קובץ:


SWFShape - setRightFill 	 SWFMovie - streammp3


pfpro_process_raw 	 pfpro_init


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


Example 1. strtolower() example 	 㥢1. strtolower() example


This fifth parameter was added in PHP 4.0.5. 	 הערה: הפרמטר החמישי הוסף בגירסה PHP 4.0.5.


This extension has no constants defined. 	 These functions do not work on Windows systems.


Inside a character class, or if the decimal number is greater than 9 and there have not been that many capturing subpatterns, PCRE re-reads up to three octal digits following the backslash, and generates a single byte from the least significant 8 bits of the value. 	 Inside a character class, or if the decimal number is greater than 9 and there have not been that many capturing subpatterns, PCRE re-reads up to three octal digits follow - ing the backslash, and generates a single byte from the least significant 8 bits of the value.


That said, a large number of these variables are accounted for in the CGI 1.1 specification, so you should be able to expect those. 	 זהו משתנה 'סופר-גלובאלי', או גלובאלי אוטומטי. משמע, הוא זמין בכל תחום שהוא בתוך תכנית. אין צורך לעשות global $_SERVER; כדי לגשת אליו בתוך פונקציות או שיטות, כמו ב - $HTTP_SERVER_VARS.


DomElement - set_attribute 	 DomElement - set_attribute_node


hw_api_object - value 	 hw_api_content


continue accepts an optional numeric argument which tells it how many levels of enclosing loops it should skip to the end of. 	 פקודת continue מקבלת נתון מספרי אופציונלי שמציין את מספר הרמות של לולאות מקוננות שצריך לדלג לסופן.


DomElement - get_attribute_node 	 DomElement - get_attribute


The following two examples are two different ways to write the same thing, one using a series of if statements, and the other using the switch statement: 	 בשתי הדוגמאות הבאות מוצגות שתי דרכים לביצוע משימה זהה. הראשונה תוך שימוש בסדרת משפטי if והשנייה תוך שימוש בפקודת switch:


This function is an alias of stream_set_write_buffer(). 	 The function returns 0 on success, or EOF if the request cannot be honored.


To use PostgreSQL support, you need PostgreSQL 6.5 or later, PostgreSQL 7.0 or later to enable all PostgreSQL module features. 	 To use PostgreSQL support, you need PostgreSQL 6.5 or later.


You can use Ming anywhere you can compile the code, whereas libswf is closed-source and only available for a few platforms, Windows not one of them. 	 SWFDisplayItem - move - - Moves object in relative coordinates.


$fruits[ 0]: apples $fruits[1]: grapes $fruits[2]: lemons 	 דוגמה 3. usort() example using a member function of an object


(PHP 4 = 4.2.3) 	 (PHP 4)


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


Expressions 	 Expressions - ביטויים


HTTP authentication with PHP 	 Error Handling


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


octdec 	 number_format


DomXsltStylesheet - result_dump_mem 	 DomProcessingInstruction - target


You can suppress the error output of opendir() by prepending `@ 'to the front of the function name. 	 אם path אינו מצביע על ספריה חוקית או שלא ניתן לפתוח את הספריה בגלל הגבלות שימוש או שגיאות במערכת הקבצים, opendir() תחזיר FALSE ו תייצר שגיאת PHP. ניתן להסתיר את פלט השגיאה opendir() על ידי הוספת `@ 'לפני שם הפונקציה.


Simply doing --with-imagick is only supported in PHP 3 unless you follow the instructions found on the PEAR site. 	 PDFLIB: define libtiff install directory.


cpdf_show_xy 	 cpdf_setrgbcolor_stroke


C:\WINNT\SYSTEM32 or C:\WINDOWS\SYSTEM32) 	 In order to have these functions available, you must compile php with msql support by using the --with-msql[ =dir] option.


PHP_FOO=BAR). 	 sql_safe_mode restrictions, (!= safe mode)


hw_api_attribute 	 hw_api_attribute - values


Optimize for fast installation [default=yes]. 	 Include mnoGoSearch support.


array_intersect_assoc 	 array_flip


pdf_set_info_author 	 pdf_set_info


This is done using zend_hash_update( )() for associative arrays (see Example 33-3) and zend_hash_index_update() for indexed arrays (see Example 33-4): 	 This is done using zend_hash_update( )() for associative arrays (see דוגמה 34-3) and zend_hash_index_update() for indexed arrays (see דוגמה 34-4):


The file is closed when fpassthru() is done reading it (leaving handle useless). 	 The file is closed when fpassthru() is done reading it (leaving fp useless).


Returns a UNIX timestamp on success, or -1 on error. 	 Note that not all servers support this feature.


Call this function before yaz_search(). 	 Use this function together with yaz_search() or yaz_present().


See also get_html_translation_table(), htmlentities() and nl2br(). 	 See also htmlentities() and nl2br().


pg_ping 	 pg_port


As an example, GIF always uses 3 channels per pixel, but the number of bits per pixel cannot be calculated for an animated GIF with a global color table. 	 If accessing the filename image is impossible, or if it isn' t a valid picture, getimagesize() will return NULL and generate a warning.


The error_reporting() function sets the error_reporting directive at runtime. 	 Sets PHP 's error reporting level and returns the old level.


PHP can autogenerate these files, and save them in the file system, instead of printing it out, forming a server-side cache for your dynamic content. 	 PHP יכולה גם לשמור את כל הקבצים והפורמטים האלה כקבצים במערכת ההפעלה במקום להדפיס אותם ובכך ליצור מידע מטמון (cache) לתוכן הדינאמי שלך.


yaz_scan_result() returns terms and associated information as received from the target in the last performed yaz_scan(). 	 Given a target ID this function returns and array with terms as received from the target in the last Scan Response.


It is preferable to use mysql_query() to issue a SQL DROP DATABASE statement instead. 	 It is prefarable to use mysql_query() to issue a SQL DROP DATABASE statement instead.


An empty string resets the encoding to the default PDFDocEncoding / Unicode scheme. 	 The fdf_set_encoding() is available in PHP 4.1.0 or later.


This function returns a connection resource on success; zero on failure. 	 This function returns a positive ID on success; zero on failure.


Closes connection given by id. 	 Closes the Z-association given by id.


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


SWFbutton 	 SWFDisplayItem


SORT_ASC is used with array_multisort() to sort in ascending order. 	 This extension does not define any resource types.


Since PHP 4 is basically a rewrite of the entire PHP engine there was very few functions that were altered and only then some of the more exotic ones. 	 מאחר ש-PHP 4 היא בבסיסה כתיבה מחדש של כל מנוע PHP, היו מעט מאוד פונקציות ששונו ובעיקרן הפונקציות היותר זרות למשתמש.


See also is_array(), explode(), implode(), split(), preg_split(), and join(). 	 See also is_array(), explode(), implode(), split(), and join().


Example 6. sprintf(): formatting currency 	 דוגמה 6. sprintf(): formatting currency


See also pclose(), fopen(), and proc_open(). 	 See also pclose().


At its peak, PHP 3.0 was installed on approximately 10% of the Web servers on the Internet. 	 בחורף 1998, זמן קצר לאחר שחרור PHP 3.0, אנדי גוטמנס וזאב סורסקי החלו לכתוב מחדש את הליבה של PHP, מטרותיהם היו לשפר את הביצועים של PHP בכל הנוגע ליישומים מורכבים ולשפר את יכולות ההרחבה של הליבה.


After this separator has been parsed by PHP, every argument following it is passed untouched to your script. 	 After the argument has been parsed by PHP, every argument following it is passed untoched / unparsed to your script.


This function will only function correct when you run PHP as command line too. (CLI) 	 הערה: אין זה מומלץ להשתמש בפונקציה זו כאשר רצים בסביבת שרת האינטרנט, בגלל שלא ניתן יהיה להחזיר את ספריית ה root ל / לאחר סיום הבקשה. פונקציה זו תתפקד כיאה רק כאשר רצים כ CGI.


Include DAV support through Apache' s mod_dav, DIR is mod_dav's installation directory (Apache module version only!) PHP 3 only! 	 regex library type: system, apache, php.


See also require(), require_once(), include_once(), readfile(), virtual(), and include_path. 	 עיין גם בפרקים על require(), require_once(), include_once(), readfile(), virtual() ו - include_path.


1 = GIF, 2 = JPG, 3 = PNG, 4 = SWF, 5 = PSD, 6 = BMP, 7 = TIFF( intel byte order), 8 = TIFF(motorola byte order), 9 = JPC, 10 = JP2, 11 = JPX, 12 = JB2, 13 = SWC, 14 = IFF. 	 1 = GIF, 2 = JPG, 3 = PNG, 4 = SWF, 5 = PSD, 6 = BMP, 7 = TIFF( intel byte order), 8 = TIFF (motorola byte order, 9 = JPC, 10 = JP2, 11 = JPX.


For the server module versions of PHP, this happens only once when the web server is started. 	 You can view the settings of the configuration values in the output of phpinfo().


The ?=SID? is not necessary, if --enable-trans-sid was used to compile PHP. 	 url_rewriter.tags spefifies which html tags are rewritten to include session id if transparent sid support is enabled.


This function is currently only available to users of the c-client2000 or greater library. 	 This function is currently only available to users of the c-client2000 library.


Example 1. built into php (unix) 	 SWFShape - - Creates a new shape object.


Table D-1. 	 טבלה D-1.


Currently, following databases are supported, but others will follow: 	 Currently, following databases are supported, but others will follow (soon, I hope: -):


Using a GET form is similar except you 'll use the appropriate GET predefined variable instead. 	 הערה: כאשר הוראת הקונפיגורציה magic_quotes_gpc מאופשרת, מושפעים ערכי משתנים של GET, POST וערכי עוגיות באופן שערך כמו (It's "PHP !") ישתנה בצורה אוטומטית ל (It\'s \"PHP!\"). תהליך זה נדרש לצורך הכנסת מידע לבסיס נתונים. יש לעיין גם במידע על addslashes(), stripslashes() ו - magic_quotes_sybase.