Looking to Build/Redesign a Website or Blog ?

To speak to Rakshit, call +91 968 704 2303

October 6, 2015

No Comments

PHP

[PHP] Fatal error: Can’t use method return value in write context

Today while working with WordPress project, i got weird error message which is this. Fatal error: Can’t use method return value in write context.. I was working with one of the premium WordPress theme which client gave me and customize it according to client’s requests. It was working fire in local environment and when i completed the work and set up everything on live server, it throws the fatal error.

July 25, 2013

1 Comment

hire-html-css-developer

Input type Image not working in Firefox

I am PHP Developer and my web designer gives me HTML pages in which submit button placed with input type image. Obviously input button needs to show image instead of text and can not be done with CSS as its fancy fonts so web designer makes it in image and put it with input type image.

March 14, 2012

2 Comments

htaccess-tricks-tips

URL file-access is disabled in the server configuration – failed to open stream

I was working with Google Map and I got warning message which says “Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration”. Also it shows me “[function.file-get-contents]: failed to open stream: no suitable wrapper could be found in GoogleMapAPI.class.php class”. If you are facing the same problem than I have couple of solutions for it. I hope one of them will works for you.

February 7, 2011

No Comments

php-issues-bugs-solutions

[PHP] Warning: Cannot modify header information when Create a COOKIE

When you create COOKIE or try to set COOKIE, are you getting error like “Warning: Cannot modify header information – headers already sent” ? This happen if your page starts output on browser. COOKIE is at browser and it will not set if your browser has started output.

November 19, 2010

1 Comment

php-issues-bugs-solutions

SMTP -> ERROR: Failed to connect to server: Connection timed out (110)

SMTP -> ERROR: Failed to connect to server: Connection timed out (110). Connection time-out means the mail server cannot be reached anymore. If the mail server is different from your web server (i.e. not localhost) I had check with your hosting provider whether they enabled some sort of firewall that blocks connections on the SMTP port.

June 23, 2010

4 Comments

javascript-ui-developer

How to include multiple javascript files in Zend Framework

If you are working with javascript files and using Zend Framework than you must be aware with how to include javascript files in view files ? Look at below syntax to include more than one javascript files. If you write individual statement for each file than it will include first file 2 times and so on.

May 20, 2010

15 Comments

php-issues-bugs-solutions

Browse Server & Image Upload Problem in CKEditor Solved

Some days ago, i moved from FCKEditor to CKEditor. CKEditor looks preety good but the problem is with upload image option. In demo application it shows me Browse Server & Upload button for uploading image or media but when i download it and integrate it into my web page, Browser Server and Upload option disappear.

May 11, 2010

No Comments

cakephp-freelancer-developer

CakePHP PaginatorHelper-Sorting problem solved

CakePHP provide its own Pagination helper using which you can easily add paging and sorting functionality in your CakePHP application. Using this PaginatorHelper class for one model, all instruction is given in below link. If you works with more than one model. means using belongsTo or hasMany relation and getting records from more than one table than paging is as simple as one table. But for sorting…

April 9, 2010

2 Comments

php-issues-bugs-solutions

Problem with Insert/Edit image or link in Browse server – FCKEditor

Are you facing problem when Browser Server of Insert/Edit image or Insert/Edit link in FCKEditor ? Yesterday when i was working with FCKEditor and click on Insert/Edit image than click on Upload tab and browser a file from local machine. When i click on "Send it to Server", it shows a message like "Your file has been successfully uploaded". Now if i want to use the same image again than i should go to Browse Server and select the image which was previously uploaded. But it is not showing any uploaded image from "Upload" tab (Which can be said as Quick Upload). This is the problem with Image Path. Image was uploaded in "userfiles" folder instead of "userfile/image" folder. As in Browse Server it will not show any files from userfiles folder so you have to change the default image upload path.

April 8, 2010

2 Comments

php-issues-bugs-solutions

Solved – Error creating folder “redirect:/index.php” (Can’t create redirect: directory)

I was working with FCKEditor and i got the error like "Error creating folder "redirect:/index.php" (Can't create redirect: directory)". First thing i have checked the permissions for userfiles folder and image folder. It was 777 so that was not the problem. Finally i found the problem and came to know that this error came due to .htaccess i was using for frontend. I solved this error and here i will show you what you need to do in order to solve this error.