search
top

DW File Management Component

Download the component :. Commercial version (with customizable features) : Visit . DW File Management Component and Plugin for uploading to, downloading and deleting files from Website based on Joomla 3 Framework. With the help of this plugin, by mentioning the file name or alias in the article, it will be replaced with its appropriate link. And it will be downloaded by simply clicking on the filename...
read more

File Upload in Magento

As you already might have noticed, there are many modules in Magento which has file uploading facility in admin end. I had to make a custom form for file uploading in Magento in frontend, I am explaining here the way to upload a file. Magento has a class (Varien_File_Uploader) defined for this purpose. The class file path is lib/Varien/File/Uploader.php. Below is a sample form Note: The file field...
read more

Encode Decode image using PHP

Hello, I am describing here the way to 1) Encode image to generate a string 2) Decode image from a given encoded string 1) Here you need to specifiy the path of your image in variable ‘$image_path’ <?php $image_path = 'test_image.gif'; //this will be the physical path of your image $img_binary = fread(fopen($image_path, "r"), filesize($image_path)); ...
read more

Copy Directory

I am listing here the method to copy full Directories with all sub-directories and files. <?php $source = 'f1'; //folder name $target = 'f2'; //folder name , if target folder does not exists, it will be created //echo 'src->'.$source.'<br/>'; //echo 'tar->'.$target.'<br/>'; if(is_dir($source)) { full_copy($source,$target); echo 'Folder copied'; } else { echo...
read more

top