php |
These notes are my personal online notebook of useful commands and "how-to's". You are welcome to make use of them if you find them helpful. They obviously don't come with any warranty! Click on one of the category tags above for the notes in any category. |
|||
By default Ubuntu 16.04 (Xenial) now comes with php 7.0 You can install php 5.6 in parallel and switch between them using the following instructions: add-apt-repository ppa:ondrej/php apt update apt install php5.6 libapache2-mod-php5.6 php5.6-curl php5.6-gd php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml php5.6-xmlrpc a2dismod php7.0 a2enmod php5.6 systemctl restart apache2
|
|||
Note that it is the .conf file that controls which version of php is used. For some reason this does not seem to be available for php55. |
|||
yum list installed | grep php | cut -d' ' -f1 typical result: php.x86_64 php-cli.x86_64 php-common.x86_64 php-devel.x86_64 php-gd.x86_64 php-imap.x86_64 php-ldap.x86_64 php-mbstring.x86_64 php-mcrypt.x86_64 php-mhash.x86_64 php-mysql.x86_64 php-odbc.x86_64 php-pdo.x86_64 php-pear.noarch php-xml.x86_64 php-xmlrpc.x86_64
yum remove php php-* |
|||
In a Red Hat or CentOS server installation, XMLwriter may not be enabled by default. To enable it, follow these steps: # If you are using the base 5.1.6 php, then yum -y install php-xml #if you are using php 5.2 (from the centos 5 testing repo) yum -y --enablerepo=c5-testing install php-xml #restart apache service httpd restart |
|||
There are some problems with running Drupal on php 5.3. There are five kinds of solutions:
Drupal 62. Modify Drupal's error reporting --already done for Drupal 63. Find patches |
|||
This are probably not of general interest, just some example queries from a particular database that I wanted to save here as snippets. --view all category titles from node: n & d, category node: c --get the body of the category definition c from a given node n & d |
|||
Single node output: Sony use Drupal Get many items using an object |
|||
pre{border:none;background-color:#f4f3d7;padding:1em;-moz-border-radius:10px} <?php |
|||
