Difference between revisions of "PHP"

From Wikicliki
Jump to: navigation, search
(yiturwii)
 
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Great .Now i can say thank you!
+
== What version of PHP am i using? ==
http://www.ieeeusa.org/careers/entrepreneurs/forum/member.php?u=360 xanax, http://forum.ispsystem.com/en/member.php?u=4064 cialis, http://www.dvxuser.com/V6/member.php?u=50021 viagra, http://jahshaka.org/forum/member.php?u=14918 xanax, http://www.ieeeusa.org/careers/entrepreneurs/forum/member.php?u=358 phentermine,
+
 
 +
<pre><?php phpinfo() ?></pre>
 +
 
 +
== Why is my mediawiki broken with PHP 5.3 ==
 +
 
 +
Because there is something called Namespace so it breaks the Namespace class. You'll have to rename it something like MWNamespace or go back to 5.2 like i have here.
 +
 
 +
== See also ==
 +
 
 +
http://foundationphp.com/tutorials/php_leopard.php
 +
 
 +
 
 +
== Snippets ==
 +
 
 +
 
 +
<pre>
 +
  <?php
 +
  date_default_timezone_set('Asia/Singapore');
 +
  $filename = __FILE__;
 +
  if (file_exists($filename)) {
 +
      echo "$filename was last modified: " . date ("d F Y H:i:s.", filemtime($filename));
 +
  }
 +
  ?></pre>
 +
 
 +
result:
 +
xxx.php was last modified: 21 August 2016 09:32:15.
 +
 
 +
[[Category:Programming]]

Latest revision as of 01:36, 21 August 2016

What version of PHP am i using?

<?php phpinfo() ?>

Why is my mediawiki broken with PHP 5.3

Because there is something called Namespace so it breaks the Namespace class. You'll have to rename it something like MWNamespace or go back to 5.2 like i have here.

See also

http://foundationphp.com/tutorials/php_leopard.php


Snippets

  <?php
  date_default_timezone_set('Asia/Singapore');
  $filename = __FILE__;
  if (file_exists($filename)) {
      echo "$filename was last modified: " . date ("d F Y H:i:s.", filemtime($filename));
  }
  ?>

result: xxx.php was last modified: 21 August 2016 09:32:15.