| Su | Mo | Tu | We | Th | Fr | Sa |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 |
PHP & Flash
MIDlet-Install-Notify - the PHP Catch
Don't know how to handle or read the POST? Try this:
ImageMagick, PHP, and Windows 2003
If you wanna call ImageMagick exe's from PHP on Windows 2003, you have to install ImageMagick 5.5.7 Q8
I tried the latest versions but they all fail to work.
Remove CRE Loaded Standard Google Ad
If you want to remove the Google Ads that CRE Loaded adds to the footer, and ahem.. hides them so well.. edit this file:
/includes/javascript/cart_links.js.php
Comment out or delete the last four lines before the end php tag (?>). I won’t write out the entire code, as my blogging software (WordPress) is a little funky with the code I wanted to paste.
Comment out the lines (pseudo-code):
//echo 'table...'
//echo 'td...'
//echo include('http://creloaded.com/cre_google.js');
//echo '/td
You’ll see the include statement getting the Google Ads from creloaded.com.
OSCommerce register_globals Fix
Installing PHP4 on IIS6.0
Download PHP from www.php.net, unzip it to c:\php.
Rename php.ini-recommended to php.ini and move it to C:\WINDOWS.
Move php4ts.dll to C:\WINDOWS\System32
GOTO Control Panel » Administrative Tools
Double click Internet Information Services (IIS) Manager
1)Click Web Service Extensions and select Add a New Web service extension
Uploading/Posting large files through PHP
To upload/post large files through PHP, there are 2 methods. One is by setting the directives in php.ini file or using ini_set or set in .htaccess, and the other one is to use PHP's built-in FTP functionality.
1. Set in php.ini or through ini_set:
upload_max_filesize = 30M
post_max_filesize = 32M
max_input_time = 1800
max_execution_time = 1800
Someone said that you also need to set:
memory_limit = 96M
In .htaccess, set
php_value max_execution_time 600
php_value upload_max_filesize 501M
php_value post_max_size 501M
A better way to export Excel data from PHP in multilanguage situation
Special characters from MySQL 4.0 => PHP => Flash
If you are using MySQL 4.0, you would probably notice that your special characters such as å Â are converted to a form like "ऩ."
In order to pass these characters using PHP into Flash, you need to use the following function to convert them back to UTF-8:
function unichr($dec) {
if ($dec < 128) {
$utf = chr($dec);
} else if ($dec < 2048) {
$utf = chr(192 + (($dec - ($dec % 64)) / 64));
$utf .= chr(128 + ($dec % 64));
} else {
$utf = chr(224 + (($dec - ($dec % 4096)) / 4096));
$utf .= chr(128 + ((($dec % 4096) - ($dec % 64)) / 64));
$utf .= chr(128 + ($dec % 64));
}
return $utf;
}
PHP Multilanguage Mail Header
If you have written a PHP application involving sending multilanguage headers, such as subject in Chinese, from in Japanese, etc.
You will probably notice that some mail clients such as Outlook does not translate these headers correctly.
The problem is that if these header fields are in different languages, proper encoding strings have to be prepended to it for mail clients to read them correctly. Furthermore, the string itself has to be base64 encoded. The following function will do the trick for you. BTW, you should only encode the "name" part of from and "subject" lines, do not encode anything else such as <email> fields.
Solving Flash multilanguage character encoding problem
the flash reads the output from php as Unicode encoding, and thus GB2312 characters were displayed as weird codes. to
solve this problem i found the following articles from the macromedia website:
Working with Multiple Languages
trick to use:
1. include system.useCodepage = true; in the first frame of the movie.
Condition: in order for this to work, the client’s operating system must use GB2312 encoding, otherwise the
string will still mess up. basically this statement tells flash player to use client’s operating system’s font encoding
instead of the default Unicode in flash player.

Recent comments