Priti's Technical Corner

October 30, 2012

ZendFramework session problem

I was writing a breadcrumb class file for my application in Zendframework. While unit testing I noticed a strange problem I was having difficult time to manage my session in Chrome !. I never imagine this situation that my session will get impacted by browser types !.

I did a googling for this problem and found there are people who are facing the same problem. And, this was already been in issue log with ZF. Been in open source is bless :). I found many article which will help you to understand this particular behavior. For me I took following steps and I was able to resolve the problem

1. create favicon.ico

2. place favicon.ico in webroot

3. In layout.php I placed following line

<link rel=”shortcut icon” href=”; />

delete the browser cache and refresh the page. I am done !.  To understand the problem I suggest user to go through following link

It will give more interesting insight of the problem.

October 22, 2012

Zend PHP 5.3 certification practice question 5

Question 1: array_to_iterator is a php inbuilt function to convert array from iterator.
A. True
B. False

Question 2: SplFixedArray function toArray()  returns a PHP array from the fixed array.
A. True
B. False

Question 3: glob() will work on remote files too?.
A. True
B. False

Question 4: tmpfile() will creates a file with a unique filename in specified directory?.
A. True
B. False

Question 5: what will be the output of

echo basename(“/abc/php.d”, “.d”).PHP_EOL;

A. php
B. d
C. Notice
D. Notice + php.d

Question 6: identify the security concern

$offset = $argv[0];
$query = “SELECT id, name FROM products ORDER BY name LIMIT 20 OFFSET $offset;”;
$result = pg_query($conn, $query);

B. SQL Injection
C. Session hijacking
D. None

Create a free website or blog at

%d bloggers like this: