Re: php module

From: Date: Thu, 21 Dec 2000 22:53:56 +0000
Subject: Re: php module
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-31484@lists.php.net to get a copy of this message
Hi Stephan, In brazilian discussion list, I received the following message: ------- Download: PHP: Win32 Binaries from http://www.php.net APACHE: Apache for Win32 from http://httpd.apache.org MYSQL: Win32 Binaries from http://www.mysql.com install PHP in folder c:\php install APACHE in folder c:\Programme\Apache Group\Apache install MySQL in folder c:\mysql edit c:\windows\php.ini extension_dir = "c:\php" edit c:\programme\Apache Group\Apache\conf\http.conf DirectoryIndex index.html index.php index.php3 index.php4 index.phtml ScriptAlias /cgi-bin/ "c:/Programme/Apache Group/Apache/cgi-bin/" ScriptAlias /php/ "c:/php/" AddType application/x-httpd-php .php AddType application/x-httpd-php .php3 AddType application/x-httpd-php .php4 AddType application/x-httpd-php .phtml Action application/x-httpd-php "/php/php.exe" restart Windows start APACHE c:\Programme\Apache Group\Apache\Apache.exe start WinMySQLAdmin c:\mysql\bin\winmysqladmin.exe start mysql c:\mysql\bin\mysql.exe write the following statements with notepad.exe: <html> <head><title></title></head> <body> &lt;?php $host="localhost"; $user="*****"; $password="*****"; mysql_connect($host, $user, $password); $db_table = mysql_list_dbs(); for ($i = 0; $i < mysql_num_rows($db_table); $i++) { echo(mysql_tablename($db_table, $i)); echo(" "); } ?> </body> </html> replace the ***** with the username and password you can find in: c:\mysql\bin\winmysqladmin.exe on tab: my.ini Setup (you have to maximize WinMySQLAdmin by double clicking on the traffic light icon in your icon tray) save the file in: c:\programme\Apache Group\Apache\htdocs\test.php open you browser and type http://localhost/test.php if you don't get an error but some names like: mysql sample_db the everything is fine now go and read some good books on MySQL and PHP or rtfm :) note: you may must replace "programme" by "program files" in the directory path above! ---------------- Good luck :) ................................................................................ Guilherme A. Mendes #ICQ: 23662971 guilherme.mendes@mailbr.com.br ................................................................................ ----- Original Message ----- From: Stephan Gruber <gruber@aranex.de> To: <php-general@lists.php.net> Sent: Thursday, December 21, 2000 2:11 PM Subject: [PHP] php module > Hi there, > > I'm trying to find out how to run the module version of PHP4 on apache 1.3.x > under WIN'98. > > Does anybody now, where I get the module and how to install it??? > > Whether I'm blind, or it's just not being discussed in any of the > documentation's. > > Please help. > > Thanks > > > Stephan > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#31484) next »