-
2013-12-17
gangely
in present (Binky) wiki:syntax page, there are still two references to "php_logo_guid()"; this PHP function has been withdrawn since PHP 5.5
how it shows up: the page is blank with the following message: "A logo generated by PHP:"
condition: PHP >= 5.5 and PHP enable ("$conf['phpok'] = 1;" in local.php)
correction: replace refs to "php_logo_guid()" by refs to "http://de3.php.net/images/php.gif"
=== diff with a corrected syntax2 page ===
# diff syntax.txt syntax2.txt
443,444c443,444
< echo '<img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP Logo !" />';
< echo '(inline HTML)';
---
> echo '<img src="http://de3.php.net/images/php.gif" alt="PHP Logo !" />';
> echo '(generated inline HTML)';
445a446
>
448c449
< echo '<td><img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP Logo !" /></td>';
---
> echo '<td><img src="http://de3.php.net/images/php.gif" alt="PHP Logo !" /></td>';
450a452
>
=== end diff ===
-
2013-12-17
ach
As php_logo_guid() is used here as an example how to embed PHP, it should *not* be changed to be "http://de3.php.net/images/php.gif" instead. We should think of something else, e.g. echoing the date or something simple like that.
-
2013-12-17
gangely
Right, you understand that I tried this quick modification to fix the blank page problem.
I like the idea to have the possibility to embed PHP in the pages, and I look forward for new example(s) working with PHP 5.5.
-
2014-02-02
ach
-
2014-02-02
ach
Although this task was the first, I closed this one as duplicate and not the other, because the other was (wrongly) marked as fixed and had the link to the commit.
-
Related tasks: