An error occurred while executing the program today. undefined class constant 'mysql _ attr_init_command'
I checked the bug 5.3.0 on the Internet.
Upgrade to 5.3.3 if you cannot.
First download the latest package
To http://windows.php.net/download/
RememberDownlaod vc6 x86 thread safe (20:06:17)
Decompress the package
Change php5ts. dll php5nsapi. DLL to the latest one.
Directory under bin Apache
Then, change the configuration to PhP. ini and CONF/HTTP. conf.
One is the ext path and the other is to start php5_apache_2_2.dll.
Now, enjoy is finished.
////////////////////////////////
Environment Introduction: Wamp PHP version 5.3.0 vc6, upgraded to 5.3.3 vc6
Step 0. Stop the Wamp service copy and decompress php5.3.3 to E:/Wamp/bin/PHP
1. Replace php5nsapi. dll and php5ts. dll in the directory e:/Wamp/bin/Apache/apache2.2.11/bin with the latest version.
2. Replace extension_dir = "E:/Wamp/bin/Apache/apache2.2.11/bin/PHP. ini with E:/Wamp/bin/PHP/php5.3.3/EXT /'
Copy memcache. DLL to the ext directory of php.5.3.3 (this will support memcache) to add the loading path.
Extension = php_memcache.dll
Extension = php_exif.dll
Copy the file from the above, and the exif file will be loaded after the mbstring file; otherwise, the system will prompt that the file cannot be loaded.
3. Modify E:/Wamp/bin/Apache/apache2.2.11/CONF/httpd. conf
Loadmodule php5_module "E:/Wamp/bin/PHP/php5.3.3/php5apache2_2.dll"
4. Check the PHP info to see if the upgrade is successful, and check whether your program can run.