Archive for the ‘PHP’ Category

Uploading error named “Error creating folder” in Fckeditor

Last few days i was trying to solve a path issue regarding the Fckeditor. I was using the editor with php.It was little bit annoying this time cause it took few hours to find out. The editor was working fine wihtout any problem. For no reason suddenly the editor started showing the error messge while [...]

Continue reading »

Tips while working with strings

Tips while working with strings
string concatenation
echo ‘php’, ‘developer’; // saves overhead time for string concatenation.
echo ‘foo’ . ‘bar’; // slower..
Interpolation
$variable = ‘this is ‘.$another_var.’ with me’; // faster
$variable = “this is $another_var with me”; // slower
Tip:
Simply use the single quote instead [...]

Continue reading »

Copy Method in PHP

Php copy method is like below:
bool copy ( string $source , string $dest [, resource $context ] )
It makes a copy of the file from source to dest.
Now in the following example we will see the codes where copy operation is done.

<?php
$dest   = “/Folder1″ ;
$source = “/Folder2″;

copyr($source, $dest);
function copyr($source, [...]

Continue reading »