php

[SOLVED] Code Igniter Route doesn't work

Feb
16

We've installed a new instance of Code Igniter, but no route works except for the default controller.

The main index page works, but nothing else.

We've added the .htaccess file, and it looks goog like this:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

The application/config.config.php file looks good as well.

$config['base_url'] = 'http://'. $_SERVER['HTTP_HOST'].'/screen/';
$config['index_page'] = '';
$config['uri_protocol'] = 'REQUEST_URI';

Posted By admin read more

PHP Performance Tuning with Xdebug and KCacheGrind

Feb
03

One of our Wordpress website was running very slow, so I have been asked to diagnose the application. The website was running in upwards of 6 seconds to load the homepage, and 8+ seconds to load woocommerce product pages. There are several debugging and profiling tools available in PHP realm, and Xdebug is an excellent choice. New Relic (free and premium versions) is another choice for profiling and debugging PHP application.

Posted By admin read more

How to fix blank screen or White Screen of Death?

Apr
17

One of the common symptom being seen during PHP development is White Screen of Death, a blank screen instead of expected page. If you "View Source" on white page, it will often contains no title, no header or body and there are no errors - a simple blank page.

Posted By admin read more

[SOLVED] JumpLoader Bad Server Response error

Feb
25

We have been using a code-signed JumpLoader with PHP upload handler for several years without any issues. For those users with Java 7 update 21 and above, JumpLoader is now throwing Security Exception, Missing required Permissions manifest attribute in main jar: due to additional security mechanism built into Java.

Posted By admin read more

ZF2 Example: Using headScript, inlineScript, headTitle and headMeta Helpers in the view/controller

Aug
27

ZF2 provides HeadScript and InlineScript Helpers to inject <script> elements in the template typically located inside the <head> tag, or at the very bottom of the closing </body> tag. To inject Title, Meta Keywords, Meta Description, headScript, and inlineScript in the view:

Posted By admin read more

[SOLVED] Google has disabled use of the Maps API for this application

Aug
20

With Google API v2 being deprecated, the app that was working perfectly before started to spit errors on the user's screen like the one showing below:

Posted By admin read more

Getting started with Doctrine 2 in ZF2

Aug
03

Using Doctrine as an ORM to persist your data significantly lowers your overhead in managing your database. However, if you're just getting started with Doctrine, you'll have to invest in moderate time to overcome learning curve. Here is some of not so obvious tricks you'll have to learn as a beginner to utilize Doctring.

Q. How do you install ZF2 doctrine modules?

Posted By admin read more

Getting started with composer (composer.phar)

Jul
31

I am kicking off a new PHP project with the Zend Framework 2 (ZF2), and chose to use Doctrine as the persistence layer with ORM capabilities. Knowing that I need two Zend modules for Doctrine support, I've cloned the two modules (DoctrineModule and DoctrineORMModule) from GitHub to enable doctrine support in my ZF2 project. Oops, just installing those two Zend modules from GitHub do not make doctrine work! What am I doing wrong? Do I need a core Doctrine library from doctrine-project.org installed in addition to those two modules in order to make this work in ZF2?

Posted By admin read more

Getting Started with GIT and GITHUB

May
20

I have been involved in software development for over 20 years, and have used various version control software including SCCS, CVS, Perforce, Clearcase, Visual Sourcesafe, and SVN. Over time, SCM trend has changed from file locking mechanism to distributed version control and GIT is gaining popularity with growing users. As a software engineer, SCM is critical part of your daily chores but you don't want to spend much time maintaining it.

Posted By admin read more

ZF2: Configure a layout for each module with EdpModuleLayouts

May
20

I have newly acquainted with ZF2, and played with EdpModuleLayouts to configure different layout for each module. For someone with very limited exposure with ZF2, the instruction provided in EdpModuleLayouts is not quite enough. I've spent about an hour to make this simple thing work, and sharing my experience with others who may run into similar challenge.

Here is what you'll have to do to make EdpModuleLayouts work:

1. Install EdpModuleLayouts module in the "vendor" folder.

Posted By admin read more

Pages

Subscribe to RSS - php