• PHP ActiveRecord for PHP < 5.3

    up vote 2 down vote favorite I found RoR ActiveRecord very usefull. When I was looking for PHP version, I found this Unfortunately, the use of namespace cause it work only ini PHP > 5.3. Do anyone hav

  • php - Different timestamp on php_error.log

    up vote 0 down vote favorite I'm using MAMP on a MacBook Pro, and whenever I took a look into the php_error.log I get each error with a timestap from Berlin but I'm in South America. [16-Jan-2016 03:0

  • php - PHP7 Constructor class name

    up vote 7 down vote favorite I have a Laravel 4.2 application which works with PHP5 without any problems. Since I installed a new vagrant box running PHP7 an error appears as soon as I run a model whe

  • PHP - Passing PHP functions within TWIG templates

    up vote 0 down vote favorite I'm trying to figure out a way that I can pass PHP code directly within the templates in TWIG without having to create separate extensions for each function. Basically a s

  • php notices Undefined error with php 5.4+

    up vote -5 down vote favorite Possible Duplicate: PHP: “Notice: Undefined variable” and “Notice: Undefined index” I upgrade/install PHP 5.4.4 (xampp 1.8.0) in localhost. now i see many notice error in

  • Wordpress PHP within PHP and shortcode

    up vote 0 down vote favorite I am building a wordpress ecommerce template with Cart66 plugin. Using a Cart66 shortcode inside a php template page, I would like to generate the Post ID inside the short

  • composer php - PHP - preload all classes/functions

    up vote 1 down vote favorite Is there a way to preload (as opposed to autoload) all classes/functions for a PHP project? I'm thinking about a web application that runs with PHPFastCGI (so we can boots

  • PHP echo as condition inside PHP if statement

    up vote 2 down vote favorite I would like to use a PHP echo as a condition inside a PHP if statement. The aim is to have the list of blog articles written by John Doe, displayed on his biography page.

  • PHP inside a PHP if else statement - wordpress

    up vote 0 down vote favorite I basically want to show some php if it's inside the category work, I know how to do the if else statement and the output php on their own but not quite sure how to combin

  • php - PHP5.6 and APC installation

    up vote 5 down vote favorite How to install APC under PHP 5.6? APC is installed apt-get install php-pear php5-dev make libpcre3-dev pecl install apc # locate /usr/lib/php5/20100525/ APC