<?php // HTTP Headers for ZIP File Downloads // http://perishablepress.com/press/2010/11/17/http-headers-file-downloads/ // set example variables $filename = “test.zip”; $filepath = “c://tmp//zipdir//”;
Category: PHP
Async AJAX and PHP session
Javascript is single threaded. AJAX allows asynchronous calls. From http://stackoverflow.com/questions/6903318/multiple-ajax-requests-delay-each-other/6933294#6933294 If you use sessions in the AJAX handling functions, you will run
PHP 5 File Upload and Unzip
Good file upload example: http://www.w3schools.com/php/php_file_upload.asp Use ZipArchive to unzip uploaded zip file. See this link: http://stackoverflow.com/questions/8889025/unzip-a-file-with-php
PHP ODBC Accessing Foxpro Database
Here are the steps to prepare a development environment that utilize PHP to access Foxpro Database on Windows via Apache
USFM Tags Rendering
A while ago, I’ve ported media wiki plugin rending USFM Tags to Dokuwiki. The source code is HERE. How to
My PHP Cheat Sheet
General Info phpinfo() will give version and extension support info php error log in xampp is in C:\xampp\php\logs\php_error_log or check for