Symfony 1.2 File Upload

class mymoduleActions extends sfActions { public function executeUpload($request) { if ($request->hasFiles()) { foreach ($request->getFileNames() as $uploadedFile) { $fileName = $request->getFileName($uploadedFile); $fileSize = $request->getFileSize($uploadedFile); $fileType = $request->getFileType($uploadedFile); $fileError = $request->hasFileError($uploadedFile); $uploadDir = sfConfig::get(‘sf_upload_dir’); $request->moveFile($uploadedFile, $uploadDir.’/’.$fileName); } } }

Unexpected Error Caused while upgrading php 5.3

Unexpected Error in new PHP 5.3

Syntax Error , Unexpected ‘]’ in C:\xampp\php\browscap\browscap.ini on line 297.

What is PHP and its advantages and disadvantages..

Hypertext Preprocessor :: PHP some timeĀ  I used to call Personal Home Page PHP is an open source server side scripting language that mainly used for developing web applications and web services. The PHP is very simple for a beginner, but offers many advanced features for a professional script writer. Three main areas where PHP [...]

Comparison between various programming languages

Today onwards I am willing to write series of articles about various programming languages. As a programmer we should compare all the programming languages, study its advantage and disadvantages . By these we can consult a correct platform for our clients and we can plug in this in appropriate situation. So advantages and disadvantages over [...]

Installing and configuring Asterisk

How to install Asterisk ? How to run Asterisk ? This youtube video help you to install, configure and run your astersisk the open source PBX.

Asterisk Callme Architecture with PHP AGI

Extensions Configuration extensions.conf [callme] exten => s,1,AGI(callme.php|${CNUM}) CNUM is the variable passed to callme AGI Script Callme.php Agi Script #!/usr/bin/php /** * Author Arun Raj R * @package phpAGI_for Call me * @version 1.0 */ set_time_limit(30); require_once(“phpagi/phpagi.php”); $agi = new AGI(); $agi->answer(); $result=$agi->stream_file(“welcome_to_call_me”); $cid = $argv[1]; $agi->exec(“Dial Zap/g0/”.$cid, null); ?> PHP File to run callme [...]

PHP:: How to split a large array in small pieces :: or split array into chunks

Hello All, Yesterday i was searching for a solution to split large array into small pieces. Suddenly i noticed the that php have a built in function to split array into small pieces. It was very surprise to me .. Here it is Function : array array_chunk ( array $input , int $size [, bool [...]

Lenovo Service Problems – Cntd

This problem happened to my friend. So many time it is serviced. But the problem persist . Only the replacement of this laptop will resolve the problem . Please go through video. The problem is It providing a long horrible beep sound on start up. Lenovo Providing products with low quality . The main problem [...]

Videos, Slideshows and Podcasts by Cincopa Wordpress Plugin