Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Install Php 5 To Work With Mysql
magiccode9
post 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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Complete Login System(57)
  2. How To Host Ur Own Site In 2 Mins Php+mysql Needed(34)
  3. Complete Login And Registration System(9)
  4. How To Install Php-nuke(12)
  5. How To: Install Scripts And Create Database(2)
  6. Php Dynamic Signatures(9)
  7. How To: Create And Install Your Own Cursor(14)
  8. Mysql Database Setup(1)
  9. How To Install A Favicon(40)
  10. A Nice Mysql Server Check(4)
  11. Searching With Php And Mysql(2)
  12. How To Install S9y Weblog Software(0)
  13. Installing Php + Mysql + Apache + Phpmyadmin On Windows Part 2(0)
  14. Quiz With Php, But Without Mysql(3)
  15. How To Install An Openoffice Dictionary Manually(3)
  1. Check Referrer To Prevent Linking Yours From Other Sites(8)
  2. Starting Or Stopping Apache And Mysql Server Via Batch File(0)
  3. Install A Simple Machines Forum(11)
  4. Cpanel Mysql Database Management(6)
  5. Simple Shoutbox(34)
  6. Simple User System(19)
  7. Adding Data To A Database And Displaying It Later(1)
  8. How To Install Phpbb?(8)
  9. How To Install Php Scripts(0)
  10. Install An Aef Forum Onto The Trap17(11)
  11. [linux] How To Manually Install Flock System Wide(0)
  12. Getting Started With Mysql(2)
  13. How To Install Opengeu In Ubuntu(0)


 



- Lo-Fi Version Time is now: 5th September 2008 - 06:52 AM