Monday, October 3, 2011

How to Force download multiple files in a zip archive using PHP

In this post, I’ll show you how can you download the multiples files in a zip archive using PHP. I’ve made a function in PHP where you’ve to pass the parameters the array of files to be zipped, the second parameter is file name as which zip archive file has to be downloaded and finally the path of files where files to be zipped are located.(assuming that they are all in same folder) PHP function to download mutiple files in a zip archive //function to zip and force download the files using PHP function zipFilesAndDownload($file_names,$archive_file_name,$file_path) { //create the object $zip = new ZipArchive(); //create the file and throw the error if unsuccessful if ($zip->open($archive_file_name, ZIPARCHIVE::CREATE )!==TRUE) { exit("cannot open <$archive_file_name>\n"); ...

How to Change textbox value from dropdown list using Ajax and PHP

Yesterday Tarquin macey asked me how can we change the value of the textbox based using Ajax and PHP based on the changing value of the dropdown list.Today, I’ve come up with a solution from him.In this post, you’ll see how to get the currency code of a country from PHP using Ajax and this currency code will replace the value of textbox each time the dropdown list changes. View Live Demo Writing Code for changing textbox value from dropdown list using Ajax and PHP After looking at the above demo, let’s start writing code for the changing the currency code value in the textbox form Ajax using PHP when you changes the country from the dropdown list. HTML Code Select Country USA UK Nepal As you can in the above code, there are two main components one dropdown...

how to Solve Floating point number precision lost problem in PHP

The problem of precision lost in floating point number in PHP haunted me for about 10 minutes yesterday but I quickly figured out the problem and solved it as I was aware of this problem. But, I would like to post here it here so that many others PHP programmers, who are not aware with this kind of problem ,get solution easily and don’t get stuck with it. Calculation problem floating Point number in PHP First of all, let me show you a small piece of example of the PHP code which I was working on. $no_of_time=(0.60-0.55)*100; var_dump($no_of_time); //displays float(5) for($i=1;$i<=$no_of_time;$i++) { echo $i; } In the above code, the line var_dump($no_of_time); displays float(5). Ok, this is a expected result. But what about the loop, which runs just for 4 time. The above loop runs...

How did I reduce CPU overhead problem caused by MySql

From last day, We were having problem with a project which was shut down in the middle due to heavy traffic. As a technical manager, I was the person who to take charge over the project bring it down to the track. After doing few benchmark test, I came to know that the MySql access from a PHP file was creating the overhead to the CPU of the server. Problem of CPU Overhead with MySql Let me explain the problem clearly first, We’re working on a website which was similar to http://www.swoopo.co.uk/ and as you can see clearly in that website the most recent data should be fetched form MySql database in each second. in the PHP page, which was being called from Ajax every second, had around 5 SQL queries to retrieve data from server. First of all, I optimized that page reducing the 5 queries...

Saturday, October 1, 2011

"SYSBIZ TECHNOLOGIES" Recruits FRESHERS : BE/BTech : Trainee Programmer

Sysbiz Technologies is a subsidiary of BPI Technologies Inc., USA. a diversified offshore Business Solutions and IT Services provider. Our competencies lie in setting up dedicated offshore software development teams for product development, Application Maintenance and Testing, for Life sciences, Financial Services, Retail, Distribution, Manufacturing, Tele-communication and High Tech Industries. Our enterprise solutions are running in corporations around the world. Our team is committed to quality and is made up of highly skilled professionals encompassing a broad range of technology disciplines. Using our proven Project Management and mature development methodology we help emerging software leaders bring superior products to market. Our Technology services range from complete design and development...

"AVRIO INFOTECH" Recruits FRESHERS : BE/BTech/BCA Freshers

Avrio Infotech Private Limited B.E Freshers Job Description : Job Description: Candidate should have basic knowledge in .Net Should have minimum 50% marks in academics. Local Chennai candidates only need to apply Desired Profile: Must be able to effectively work with a team Self motivated with competitive spirit Self-starter with good interpersonal and communication skills Strong problem analysis, problem-solving, analytical skills required Maximum Experience: 0 - 1 years Location: Chennai. Education: B.Tech/B.E. - Computers; BCA - Comput...

"SANKAR SEALINGS" Recruitment : Junior Engineer - Hardware

Sankar Sealings Systems Pvt.Ltd Sankar is one of the leading Automobile gasket manufacturers in the country and developing critical sealing solutions to the prestigious vehicle and engine manufacturers in the country. Sankar has JV with market leader in Japan and collaboration with German manufacturer for sealing materials. Sankar has one of the most advanced Gasket Research and development centre with state of art testing facilities which include engine testing facilites etc. Junior Engineer - Hardware Industry Type: Auto/Auto Ancillary Role: System Admin Functional Area: Systems, EDP, MIS Job Description : Take care of all desktop support operations, maintain troubleshoot and resolve all desktop related issues. Installation of Hardware, software etc. Contact Details : Name: Smitha...

"MILLMORE TECH" Recruits FRESHERS : BE/BTech/MCA/MSc : Software Test Engineer

Right Source Consultancy One of our leading company at Chennai Company Name: Millmore Technology Wanted Software Test Engineer Job Description : Qualification: BE/ MCA/ M.Sc (CS/IT) Mandatory : Finished Software testing course, with Good communication skills. Experience : 0-1 year Post your resume to: aruna(at)millmoretech.com Contact Details : Name: K.Aruna Right Source Consultancy Email : rightsource1(at)rightsourcechennai....

"SILICON HOUSE" Recruitment : Fresh Engineers /MSC Graduates

SiliconHouse.Net pvt Ltd. siliconhouse.net private limited is a leading multinational software company since 1998.Its an ICANN(USA) accredited registrar .siliconhouse is an ISO9001-2000 Company serving clients across 90+ countries and provide excellent support n service. MNC software -Female Fresh Engineers /MSC Graduates apply Experience: 0 - 2 Years Compensation: Rupees 2,00,000 fresh female graduates will be provided highest salary according to their qualifications Job Description : Software Multinational requires female fresh engineers to work as a network engineer n provide technical support for webhosting and domains. B.E(CSE/IT /ECE/EEE/E&I/CIVIL/BIO) n other non IT graduates are preferred. excellent salary will be provided. Desired Profile : 2010/2011-Female fresh engineering...

VLC for Android Devices

Bangalore: VLC is most widely utilized media player for Linux, Windows and Mac computer across the globe and now it's time for android mobile operating system to make full use of it. The player was supposed to launch in early 2011 but due to some technical difficulties, the app got delayed. The developer of VLC said, there are two builds available of VLC for Android, known as NEON and NONEON. The difference is in the processor type. Because VLC for Android makes use of the NDK (Native Development Kit), it is compiling native-level binaries that will only work on the processor class for which they were designed. This means that the same build will not work across all devices. This VLC player is compatible with devices running version 2.1 and abo...

Continuous Monitoring Can Help Avoid Cyber Attacks

BANGALORE: The only realistic way to combat modern cyber fraud methods is continuous monitoring, with comprehensive oversight of user activity, infrastructure events and banking transactions, a senior official at Hewlett Packard's security solutions subsidiary Arcsight said. Although cyber-war and cyber-espionage have been in the headlines in recent years, cyber-crime directed at financial institutions and their clients continues to wreak the real havoc on the Internet, Arcsight Regional Director Loke Yeow Wong said. "Financial fraud cases won't astonish casual observers the same way news of Stuxnet malware infiltrating computer systems to send uranium-enrichment centrifuges spinning out of control does, but financially motivated cyber-crime affects far more people, while enriching immoral...

Indian Navy Installs Anti-Piracy Device

MUMBAI: With piracy in the Gulf of Aden and off the Somali reaching alarming proportions, the Indian Navy, which has been in action against the brigands for the last three years, has begun installing a device on its warships that literally scares the hell out of hostile elements. The Long Range Acoustic Device (LRAD), as it is called, shouts, threatens and warns in a variety of languages. The device has been seen on the destroyer INS Mysore and on INS Satpura, the Navy's second indegenously built stealth frigate that was commissioned recently. Sources told India Strategic defence magazine (www.indiastrategic.in) that the system is being installed on most of the naval ships as it can automatically translate warnings into several languages, depending upon the choice of the captain and the...

IT Companies Jittery on Sluggish U.S. Growth

NEW DELHI: Major IT and BPO companies in the country are jittery amid fears of another economic slump in the U.S. and a debt crisis in Europe, according to industry body Assocham. About 55 percent respondents said that while the sector is unfazed from S&P's downgrade of the U.S. credit rating and that the slowdown is temporary, it would surely hamper the hiring activity across the sector. "Downgrade of U.S. debt rating and debt crisis in Euro zone will impact recruitments in the Indian IT sector and hiring is expected to go down by about 30 percent during the course of next few months," Assocham Secretary General D S Rawat said. The downgrade by credit ratings agency Standard & Poor's in August had triggered concerns that the $ 60 billion software services industry - which gets...

Hazare Turns Blogger; Joins Facebook, Twitter

Mumbai: Anti-corruption crusader Anna Hazare seems set to take the virtual world by storm. He Thursday became a blogger and even joined social networking sites Facebook and Twitter. The blog, with posts in English, Hindi and Marathi, is titled "Anna Hazare Says" and can be accessed on: https://annahazaresays.wordpress.com. Hazare Turns Blogger; Joins Facebook, Twitter In his inaugural post, Hazare wrote: "It is after a long time that I am directly communicating with you. Henceforth, it is from this blog that I will be constantly in touch with you." "We started a movement demanding that Janlokpal Bill be passed in India and slowly the crusade spearheaded into a full-fledged non-violent revolution spilling on to the Ramlila grounds," he added. The activist said he found the support of the...

Pages 101234 »