XWare Поиск по информационным ресурсам МГУ English Russian
       
       Точная форма слов   О проекте   Сайты   Помощь
Поиск по:old.master.cmc.msu.ru   - Поискать по всем серверам
На этой странице приведены все страницы сервера old.master.cmc.msu.ru ,которые мы индексируем. Показаны документы 3161 - 3180 из 3519.

В начало ] Пред. | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | След.В конец ]

Упорядочить по: URL  |  дате изменения
3161. Persistent Database Connections
PHP Manual . ... Persistent connections are SQL links that do not close when the execution of your script ends. ... People who aren't thoroughly familiar with the way web servers work and distribute the load may mistake persistent connects for what they're not. ... For example, if you had 20 different child processes that ran a script that made a persistent connection to your SQL server, you'd have 20 different connections to the SQL server, one from each child. ... Connection handling . ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/features.persistent-connections.html -- 11.0 Кб -- 03.02.2002
Похожие документы

3162. Connection handling
PHP Manual . ... If the remote client disconnects the ABORTED state flag is turned on. ... With a shutdown function, when the remote user hits his STOP button, the next time your script tries to output something PHP will detect that the connection has been aborted and the shutdown function is called. This shutdown function will also get called at the end of your script terminating normally, so to do something different in case of a client diconnect you can use the connection_aborted() function. ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/features.connection-handling.html -- 7.1 Кб -- 03.02.2002
Похожие документы

3163. Using remote files
... For example, you can use this to open a file on a remote web server, parse the output for the data you want, and then use that data in a database query, or simply to output it in a style matching the rest of your website. ... Getting the title of a remote page . ... php $file = fopen ("ftp://ftp.php.net/incoming/outputfile", "w"); if (!$file) { echo "<p>Unable to open remote file for writing.\n"; exit; } /* Write the data here. */ fputs ($file, "$HTTP_USER_AGENT\n"); fclose ($file); ?> ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/features.remote-files.html -- 6.4 Кб -- 03.02.2002
Похожие документы

3164. Common Pitfalls
... Handling file uploads . ... The MAX_FILE_SIZE item cannot specify a file size greater than the file size that has been set in the upload_max_filesize ini-setting. ... If memory limit is enabled, larger memory_limit may be needed. Make sure to set memory_limit large enough. ... Make sure to set max_execution_time large enough. If post_max_size is set too small, large file cannot be uploaded. Make sure to set post_max_size large enough. ... Uploading multiple files ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/features.file-upload.common-pitfalls.html -- 4.3 Кб -- 03.02.2002
Похожие документы

3165. Handling file uploads
... POST method uploads . ... Uploading multiple files . ... File Upload Form . ... php // PHP 4.1.0 or later, $_FILES may be used instead of $HTTP_POST_FILES if (is_uploaded_file($HTTP_POST_FILES['userfile'])) { copy($HTTP_POST_FILES['userfile']['tmp_name'], "/place/to/put/uploaded/file"); } else { echo "Possible file upload attack: filename '".$ HTTP_POST_FILES['userfile']['name']."."; } /* ...or... */ move_uploaded_file($HTTP_POST_FILES['userfile'], "/place/to/put/uploaded/file"); ?> ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/features.file-upload.html -- 11.9 Кб -- 03.02.2002
Похожие документы

3166. Uploading multiple files
... Handling file uploads . ... Multiple files can be uploaded using different name for input . ... form action="file-upload.php" method="post" enctype="multipart/form-data"> Send these files:<br> <input name="userfile[]" type="file"><br> <input name="userfile[]" type="file"><br> <input type="submit" value="Send files"> </form> . ... In this case, $HTTP_POST_FILES['userfile']['name'][0] would contain the value review.html , and $HTTP_POST_FILES['userfile']['name'][1] would contain the value xwp.out . ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/features.file-upload.multiple.html -- 5.8 Кб -- 03.02.2002
Похожие документы

3167. PUT method support
... Handling file uploads . ... PHP provides support for the HTTP PUT method used by clients such as Netscape Composer and W3C Amaya. ... It is obviously not a good idea for Apache or PHP to automatically let everybody overwrite any files in your web tree. ... This tells Apache to send all PUT requests for URIs that match the context in which you put this line to the put.php script. ... php copy($PHP_UPLOADED_FILE_NAME,$DOCUMENT_ROOT.$ ... So, your PUT handling PHP script has to copy that file somewhere...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/features.file-upload.put-method.html -- 6.0 Кб -- 03.02.2002
Похожие документы

3168. Cookies
PHP Manual . ... PHP transparently supports HTTP cookies. ... You can set cookies using the setcookie() function. Cookies are part of the HTTP header, so setcookie() must be called before any output is sent to the browser. ... Any cookies sent to you from the client will automatically be turned into a PHP variable just like GET and POST method data, depending on the register_globals and variables_order configuration variables. ... HTTP authentication with PHP . ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/features.cookies.html -- 4.6 Кб -- 03.02.2002
Похожие документы

3169. Error Handling
... There are several types of errors and warnings in PHP. ... PHP error types . ... E_USER_ERROR . ... php // we will do our own error handling error_reporting (0); // user defined error handling function function userErrorHandler ($errno, $errmsg, $filename, $linenum, $vars) { // timestamp for the error entry $dt = date( Y-m-d H:i:s (T) ); // define an assoc array of error string // in reality the only entries we should // consider are 2,8,256,512 and 1024 $errortype = array ( 1 = ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/features.error-handling.html -- 14.0 Кб -- 03.02.2002
Похожие документы

3170. HTTP authentication with PHP
... In an Apache module PHP script, it is possible to use the header() function to send an "Authentication Required" message to the client browser causing it to pop up a Username/Password input window. ... php if (!isset($PHP_AUTH_USER)) { header("WWW-Authenticate: 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>"; } ?> ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/features.http-auth.html -- 8.6 Кб -- 03.02.2002
Похожие документы

3171. Creating and manipulating images
PHP Manual . ... PHP is not limited to creating just HTML output. It can also be used to create and manipulate image files in a variety of different image formats, including gif, png, jpg, wbmp, and xpm. ... PNG creation with PHP . ... This example would be called from a page with a tag like: <img src="button.php?text"> The above button.php script then takes this "text" string an overlays it on top of a base image which in this case is "images/button1.png" and outputs the resulting image. ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/features.images.html -- 4.6 Кб -- 03.02.2002
Похожие документы

3172. Language Reference
. PHP Manual . Prev . Next . Table of Contents . 5. Basic syntax . 6. Types . 7. Variables . 8. Constants . 9. Expressions . 10. Operators . 11. Control Structures . 12. Functions . 13. Classes and Objects . 14. References Explained . Prev . Home . Next . Keeping Current . Basic syntax
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/langref.html -- 3.5 Кб -- 03.02.2002
Похожие документы

3173. References Explained
PHP Manual . Prev . Next . Table of Contents . What References Are . What References Do . What References Are Not . ... References are a means in PHP to access the same variable content by different names. ... Note that in PHP, variable name and variable content are different, so the same content can have different names. The most close analogy is with Unix filenames and files - variable names are directory entries, while variable contents is the file itself. ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/language.references.html -- 4.2 Кб -- 03.02.2002
Похожие документы

3174. Spotting References
... References Explained . Next . Many syntax constructs in PHP are implemented via referencing mechanisms, so everything told above about reference binding also apply to these constructs. ... Other constructs that use references are: . When you declare variable as global $var you are in fact creating reference to a global variable. ... That means, for example, that unsetting $var won't unset global variable. In an object method, $this is always reference to the caller object. ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/language.references.spot.html -- 4.1 Кб -- 03.02.2002
Похожие документы

3175. What References Are Not
... Prev . ... References Explained . ... function foo (&$var) { $var =& $GLOBALS["baz"]; } foo($bar); . What happens is that $var in foo will be bound with $bar in caller, but then it will be re-bound with $GLOBALS["baz"] . There's no way to bind $bar in the calling scope to something else using the reference mechanism, since $bar is not available in the function foo (it is represented by $var , but $var has only variable contents and not name-to-value binding in the calling symbol table). ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/language.references.arent.html -- 4.1 Кб -- 03.02.2002
Похожие документы

3176. Passing by Reference
... References Explained . ... You can pass variable to function by reference, so that function could modify its arguments. ... Note that there's no reference sign on function call - only on function definition. ... function &bar() { $a = 5; return $a; } foo(bar()); . ... Any other expression should not be passed by reference, as the result is undefined. ... function bar() // Note the missing & { $a = 5; return $a; } foo(bar()); foo($a = 5) // Expression, not variable foo(5) // Constant, not variable . ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/language.references.pass.html -- 4.9 Кб -- 03.02.2002
Похожие документы

3177. Returning References
... References Explained . ... Returning by-reference is useful when you want to use a function to find which variable a reference should be bound to. ... function &find_var ($param) { ...code... return $found_var; } $foo =& find_var ($bar); $foo->x = 2; . ... Note: Unlike parameter passing, here you have to use & in both places - to indicate that you return by-reference, not a copy as usual, and to indicate that reference binding, rather than usual assignment, should be done for $foo . ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/language.references.return.html -- 4.1 Кб -- 03.02.2002
Похожие документы

3178. Unsetting References
. PHP Manual . Prev . Chapter 14. References Explained . Next . When you unset the reference, you just break the binding between variable name and variable content. This does not mean that variable content will be destroyed. For example: . $a = 1; $b =& $a; unset ($a); . won't unset $b , just $a . Again, it might be useful to think about this as analogous to Unix unlink call. Prev . Home . Next . Returning References . Up . Spotting References
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/language.references.unset.html -- 3.6 Кб -- 03.02.2002
Похожие документы

3179. What References Do
... References Explained . ... PHP references allow you to make two variables to refer to the same content. ... The same syntax can be used with functions, that return references, and with new operator (in PHP 4.0.4 and later): . bar =& new fooclass(); $foo =& find_var ($bar); . ... This is done by making a local variable in a function and a variable in the calling scope reference to the same content. ... This happens because in the function foo the variable $var refers to the same content as $a . ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/language.references.whatdo.html -- 5.8 Кб -- 03.02.2002
Похожие документы

3180. Classes and Objects
... class . ... Serializing objects - objects in sessions . ... php class Cart { var $items; // Items in our shopping cart // Add $num articles of $artnr to the cart function add_item ($artnr, $num) { $this->items[$artnr] += $num; } // Take $num articles of $artnr out of the cart function remove_item ($artnr, $num) { if ($this->items[$artnr] > $num) { $this->items[$artnr] -= $num; return true; } else { return false; } } } ?> ... This creates the objects $cart and $another_cart, both of the class Cart. ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/language.oop.html -- 9.8 Кб -- 03.02.2002
Похожие документы

В начало ] Пред. | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | След.В конец ]

Rambler's Top100 RFBR Яндекс цитирования