Поиск по:old.master.cmc.msu.ru -
Поискать по всем серверам
На этой странице приведены все страницы сервера old.master.cmc.msu.ru ,которые мы индексируем. Показаны документы 401 - 420 из 3519.
Упорядочить по:
URL
|
дате изменения
401. Migrating from PHP/FI 2 to PHP 3
PHP Manual . ... Next . ... About the incompatibilities in 3.0 . Start/end tags . if..endif syntax . ... Error messages have changed . ... PHP 3.0 is rewritten from the ground up. ... In addition, PHP's developers have tried to clean up both PHP's syntax and semantics in version 3.0, and this has also caused some incompatibilities. ... This chapter will try to guide you through the incompatibilities you might run into when going from PHP/FI 2.0 to PHP 3.0 and help you resolve them. ...
[
Сохраненная копия
]
Ссылки http://old.master.cmc.msu.ru/php/migration.html -- 4.9 Кб -- 03.02.2002
Похожие документы
Похожие документы
402. Function TRUE/FALSE return values
... Most internal functions have been rewritten so they return TRUE when successful and FALSE when failing, as opposed to 0 and -1 in PHP/FI 2.0, respectively. The new behaviour allows for more logical code, like $fp = fopen("/your/file") or fail("darn!" Because PHP/FI 2.0 had no clear rules for what functions should return when they failed, most such scripts will probably have to be checked manually after using the 2.0 to 3.0 convertor. ... Migration from 2.0: return values, old code . ...
[
Сохраненная копия
]
Ссылки http://old.master.cmc.msu.ru/php/migration.truefalse.html -- 4.6 Кб -- 03.02.2002
Похожие документы
Похожие документы
403. Using the Debugger
PHP Manual . Prev . Appendix E. Debugging PHP . ... The debugger works by connecting to a TCP port for every time PHP 3 starts up. ... How to set up the debugger: . Set up a TCP port for the debugger in the configuration file ( debugger.port ) and enable it ( debugger.enabled ). Set up a TCP listener on that port somewhere (for example socket -l -s 1400 on UNIX). In your code, run "debugger_on( host )", where host is the IP number or name of the host running the TCP listener. ...
[
Сохраненная копия
]
Ссылки http://old.master.cmc.msu.ru/php/debugger-using.html -- 4.4 Кб -- 03.02.2002
Похожие документы
Похожие документы
404. Other incompatibilities
PHP Manual . ... The PHP 3.0 Apache module no longer supports Apache versions prior to 1.2. Apache 1.2 or later is required. echo() no longer supports a format string. Use the printf() function instead. ... This is not true for PHP 3.0. Reading arrays with $array[] is no longer supported . ... Use "." instead. ... In PHP 2.0 this would echo 11, in PHP 3.0 it would echo 2. ... This would echo 2 in both PHP 2.0 and 3.0. $a = 1; $b = 1; echo $a.$b; This will echo 11 in PHP 3.0. ...
[
Сохраненная копия
]
Ссылки http://old.master.cmc.msu.ru/php/migration-other.html -- 5.6 Кб -- 03.02.2002
Похожие документы
Похожие документы
405. Short-circuited boolean evaluation
. PHP Manual . Prev . Appendix D. Migrating from PHP/FI 2 to PHP 3 . Next . In PHP 3.0 boolean evaluation is short-circuited. This means that in an expression like (1 || test_me()) , the function test_me() would not be executed since nothing can change the result of the expression after the 1 . This is a minor compatibility issue, but may cause unexpected side-effects. Prev . Home . Next . Error messages have changed . Up . Function TRUE / FALSE return values
[
Сохраненная копия
]
Ссылки http://old.master.cmc.msu.ru/php/migration.booleval.html -- 3.5 Кб -- 03.02.2002
Похожие документы
Похожие документы
406. while syntax
. PHP Manual . Prev . Appendix D. Migrating from PHP/FI 2 to PHP 3 . Next . Just like with if..endif, the syntax of while..endwhile has changed as well: . Example D-7. Migration: old while..endwhile syntax . while ($more_to_come); ... endwhile; . Example D-8. Migration: new while..endwhile syntax . while ($more_to_come): ... endwhile; . Warning . If you use the old while..endwhile syntax in PHP 3.0, you will get a never-ending loop. Prev . Home . Next . if..endif syntax . Up . Expression types
[
Сохраненная копия
]
Ссылки http://old.master.cmc.msu.ru/php/migration-while.html -- 4.1 Кб -- 03.02.2002
Похожие документы
Похожие документы
407. Expression types
PHP Manual . ... Next . PHP/FI 2.0 used the left side of expressions to determine what type the result should be. ... a[0]=5; $a[1]=7; $key = key($a); while ("" != $key) { echo "$keyn"; next($a); } . ... The reason is that in PHP 2.0, because the left argument's type was string, a string comparison was made, and indeed "" does not equal "0" , and the loop went through. In PHP 3.0, when a string is compared with an integer, an integer comparison is made (the string is converted to an integer). ...
[
Сохраненная копия
]
Ссылки http://old.master.cmc.msu.ru/php/migration.expr.html -- 4.5 Кб -- 03.02.2002
Похожие документы
Похожие документы
408. Error messages have changed
. PHP Manual . Prev . Appendix D. Migrating from PHP/FI 2 to PHP 3 . Next . PHP 3.0's error messages are usually more accurate than 2.0's were, but you no longer get to see the code fragment causing the error. You will be supplied with a file name and a line number for the error, though. Prev . Home . Next . Expression types . Up . Short-circuited boolean evaluation
[
Сохраненная копия
]
Ссылки http://old.master.cmc.msu.ru/php/migration.errors.html -- 3.2 Кб -- 03.02.2002
Похожие документы
Похожие документы
409. Start/end tags
PHP Manual . ... Appendix D. Migrating from PHP/FI 2 to PHP 3 . ... The first thing you probably will notice is that PHP's start and end tags have changed. ... Example D-1. Migration: old start/end tags . echo "This is PHP/FI 2.0 code.\n"; ?> ... Migration: first new start/end tags . ... Migration: second new start/end tags . php echo "This is PHP 3.0 code!\n"; ?> ... Migration: third new start/end tags . script language="php"> echo "This is PHP 3.0 code!\n"; </script> . ...
[
Сохраненная копия
]
Ссылки http://old.master.cmc.msu.ru/php/migration.startendtags.html -- 5.4 Кб -- 03.02.2002
Похожие документы
Похожие документы
410. Cookies
PHP Manual . Prev . Appendix C. Migrating from PHP 3 to PHP 4 . Next . PHP 3 had the bad habit of setting cookies in the reverse order of the setcookie() calls in your code. PHP 4 breaks with this habit and creates the cookie header lines in exactly the same order as you set the cookies in the code. ... Migrating from PHP/FI 2 to PHP 3 ...
[
Сохраненная копия
]
Ссылки http://old.master.cmc.msu.ru/php/migration4.cookies.html -- 3.5 Кб -- 03.02.2002
Похожие документы
Похожие документы
411. if..endif syntax
... The `alternative' way to write if/elseif/else statements, using if(); elseif(); else; endif; cannot be efficiently implemented without adding a large amount of complexity to the 3.0 parser. ... if ($foo); echo "yep\n"; elseif ($bar); echo "almost\n"; else; echo "nope\n"; endif; . ... if ($foo): echo "yep\n"; elseif ($bar): echo "almost\n"; else: echo "nope\n"; endif; Notice that the semicolons have been replaced by colons in all statements but the one terminating the expression (endif). ...
[
Сохраненная копия
]
Ссылки http://old.master.cmc.msu.ru/php/migration.if-endif.html -- 4.2 Кб -- 03.02.2002
Похожие документы
Похожие документы
412. Migrating from PHP 3 to PHP 4
PHP Manual . Prev . Next . ... Running PHP 3 and PHP 4 concurrently . Migrating Configuration Files . ... PHP 4 and the integrated Zend engine have greatly improved PHPs performance and capabilities, but great care has been taken to break as little existing code as possible. ... A lot of existing PHP 3 code should be ready to run without changes, but you should still know about the few differences and take care to test your code before switching versions in production environments. ...
[
Сохраненная копия
]
Ссылки http://old.master.cmc.msu.ru/php/migration4.html -- 4.6 Кб -- 03.02.2002
Похожие документы
Похожие документы
413. Variable substitution in strings
PHP Manual . ... Next . PHP 4 adds a new mechanism to variable substitution in strings. You can now finally access object member variables and elements from multidimensional arrays within strings. ... To embed the value of an object member variable into a string you simply write "text {$obj->member} text" while in PHP 3 you had to use something like "text ".$obj->member." text" . This should lead to more readable code, while it may break existing scripts written for PHP 3. ...
[
Сохраненная копия
]
Ссылки http://old.master.cmc.msu.ru/php/migration4.strings.html -- 4.0 Кб -- 03.02.2002
Похожие документы
Похожие документы
414. empty("0")
PHP Manual . Prev . Appendix C. Migrating from PHP 3 to PHP 4 . Next . The perhaps most controversial change in behavior has happened to the behavior of the empty() . A String containing only the character '0' (zero) is now considered empty while it wasn't in PHP 3. This new behavior makes sense in web applications, with all input fields returning strings even if numeric input is requested, and with PHP's capabilities of automatic type conversion. ...
[
Сохраненная копия
]
Ссылки http://old.master.cmc.msu.ru/php/migration4.empty.html -- 3.6 Кб -- 03.02.2002
Похожие документы
Похожие документы
415. Missing functions
... While PHP 4 comes with a lot of new features, functions and extensions, you may still find some functions from version 3 missing. A small number of core functions has vanished because they do not work with the new scheme of splitting parsing and execution as introduced into 4 with the Zend engine. ... As PHP 4 now separates parsing from execution it is no longer possible to change the behavior of the parser (now embedded in the Zend engine) at runtime as parsing already happened by then. ...
[
Сохраненная копия
]
Ссылки http://old.master.cmc.msu.ru/php/migration4.missing.html -- 5.7 Кб -- 03.02.2002
Похожие документы
Похожие документы
416. PHP 3 extension
. PHP Manual . Prev . Appendix C. Migrating from PHP 3 to PHP 4 . Next . Extensions written for PHP 3 will not work with PHP 4, neither as binaries nor at the source level. It is not difficult to port extensions to PHP 4 if you have access to the original source. A detailed description of the actual porting process is not part of this text. Prev . Home . Next . Missing functions . Up . Variable substitution in strings
[
Сохраненная копия
]
Ссылки http://old.master.cmc.msu.ru/php/migration4.extensions.html -- 3.3 Кб -- 03.02.2002
Похожие документы
Похожие документы
417. Parser behavior
PHP Manual . ... Parsing and execution are now two completely separated steps, no execution of a files code will happen until the complete file and everything it requires has completely and successfully been parsed. One of the new requirements introduced with this split is that required and included files now have to be syntactically complete. You can no longer spread the different controlling parts of a control structure across file boundaries. ... Migrating Configuration Files . ...
[
Сохраненная копия
]
Ссылки http://old.master.cmc.msu.ru/php/migration4.parser.html -- 4.6 Кб -- 03.02.2002
Похожие документы
Похожие документы
418. Initializers
PHP Manual . Prev . Appendix C. Migrating from PHP 3 to PHP 4 . Next . Static variable and class member initializers only accept scalar values while in PHP 3 they accepted any valid expression. ... For classes you should use constructors to initialize member variables instead. For static variables anything but a simple static value rarely makes sense anyway. ...
[
Сохраненная копия
]
Ссылки http://old.master.cmc.msu.ru/php/migration4.initializers.html -- 3.5 Кб -- 03.02.2002
Похожие документы
Похожие документы
419. Migrating Configuration Files
... Appendix C. Migrating from PHP 3 to PHP 4 . ... The global configuration file, php3.ini , has changed its name to php.ini . ... In addition, the PHP directive names for Apache have changed. ... To make the transition process easier, PHP 4 is bundled with scripts that automatically convert your Apache configuration and .htaccess files to work with both PHP 3 and PHP 4. ... To convert your Apache configuration files, run the apconf-conv.sh script (available in the scripts/apache/ directory). ...
[
Сохраненная копия
]
Ссылки http://old.master.cmc.msu.ru/php/migration4.configuration.html -- 6.6 Кб -- 03.02.2002
Похожие документы
Похожие документы
420. Error reporting
PHP Manual . ... With PHP 3 the error reporting level was set as a simple numeric value formed by summing up the numbers related to different error levels. ... PHP 4 has a larger set of error and warning levels and comes with a configuration parser that now allows for symbolic constants to be used for setting the intended behavior. ... Well, lets say you want the error reporting system to report all but the simple style warnings that are categorized by the symbolic constant E_NOTICE . ...
[
Сохраненная копия
]
Ссылки http://old.master.cmc.msu.ru/php/migration4.error-reporting.html -- 7.1 Кб -- 03.02.2002
Похожие документы
Похожие документы