|
|
|
|
![]() ![]() |
Nov 3 2005, 12:31 AM
Post
#1
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 162 Joined: 1-November 05 From: SATA II Member No.: 13,683 |
hi, all
php 5 is new to all people a long time( actually, I forget how long...). it introduced a more object-oriented design to developer. like, access type(public, private, protected), abstract type(classes that can't create objects), interface support, and more. althrought it is widerly available, someone still can't get it running with mysql. every time the php is starting up. a message prompted stated that some xtensions can not be found, and therefore, not loaded. so, I have written this to help other and newbie get it start quickly. note: this is php setup is based-on windows, coz linux based actually complier with source code, so should be no this problem occur 1.) go php web site download it package(a .zip file) and place in a folder on your harddrive 2.) go to the folder in step[1], create a folder on your harddrive, in this case, "c:\php" extract all the files contained in .zip files into the folder you just create(c:\php) 3.) now, if you look at the folder c:\php, you will see there have two files a) php.ini-dist and b) php.ini-recommended. this is php config file. rename the php.ini-recommended to php.ini and copy / move it to you window directory QUOTE win98 / winme / winxp ==> windows winnt / win2000 ==> winnt 4.) use any text editor(e.g. notepad) to open the file renamed above. try find a text string "extension_dir" and set the value of this parameter to the ext folder of your php installation path ( c:\php, c:\php\ext ), QUOTE extension_dir = "c:\php\ext\" 5.) try again found some text ";extension=". you have a list of extensions you can use, but some of which might required addition library to function. always check php mannal for more information. please look at three items, a) php_mysql.dll, b) php_mysqli.dll, c) php_gd2.dll( for create graphics ). delete the left most colon(:), save it and close you editor. 6.) on your keyboard, press "winkey+Pause/Break" key, the system properties dialog open. click on advanced tab, look for envionment variables, in system variables or user variables set an addition path to your php installation path and ext ( c:\php, c:\php\ext ), so click on either one(choose new or edit, depending on whether path variable exists), then QUOTE if path variable exits, use this form c:\php;c:\php\ext;%path% if path variable no found, use this form c:\php;c:\php\ext click ok and ok to close all dialog. cheers, that it, the configuration of php is complete. of course, you have to config you web server too, about the setting, you can refer to php manuual click here to view online or here to download a copy of it. after php and web server are completed , try this code to test it work or not CODE <?php phpinfo(); ?> if you see a lot of items, then you successfull. otherwise, pm me or send me a mail. :) attach:fig01.jpg attach:php.ini - hope this help - Eric This post has been edited by magiccode9: May 8 2006, 10:02 PM |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 5th September 2008 - 06:52 AM |