php-install Digest 5 Jul 2003 13:23:37 -0000 Issue 1449
Topics (messages 11219 through 11223):
Re: new install of PEAR on 2k
11219 by: jsWalter
Re: How do I compiling MySQL Clients on Windows
11220 by: AzN
11221 by: AzN
11222 by: Seung Hwan Kang
11223 by: Marco Tabini
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
"Cybot" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Jswalter wrote:
> onr more, your include-path is worng!
>
> include_path = ".;G:\etc\php\extensions".;G:\etc\php\pear"
>
> would not work!!
>
> correct
>
> include_path = ".;G:\etc\php\extensions;G:\etc\php\pear"
Yes, I see the mistake! and PERIOD in the middle.
OK, thats gone.
I still get...
Fatal error: main(): Failed opening required 'DB.php'
(include_path='.;c:\php4\pear') in
Also, my php.ini is NOT in my WINNT directory.
It is a sibling of php.exe at...
G:\etc\php
Now, there is a pear.ini in my WINNT dir, the install must have put it
there. :(
But it does noty have 'c:\php4\pear' in it.
Thanks for the ideas.
walter
--- End Message ---
--- Begin Message ---
Whats the error? I got PHP5 to work, except I still have a problem with my
configuration. My PHP files that use $PHP_SELF? does not work... along with
other PHP functions.
I have yet to try MySQL on PHP5 because I cant use any of my scripts that
use MySQL!
"Seung Hwan Kang" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Help!!!
>
> I just installed PHP 5.0.0 Beta 1 with Apache on W2K SP4, and I also
> read though the postings. The problem is that we have to use mysql
> clients which comes with mysql to use PHP. I read following mysql docs,
> and I don't have any clue, anyone?
>
> -----------------------------------------------------------------------
> 2.6.2.6 Compiling MySQL Clients on Windows
>
> In your source files, you should include `windows.h' before you include
> `mysql.h':
>
> #if defined(_WIN32) || defined(_WIN64)
> #include <windows.h>
> #endif
> #include <mysql.h>
>
> You can either link your code with the dynamic `libmysql.lib' library,
> which is just a wrapper to load in `libmysql.dll' on demand, or link
> with the static `mysqlclient.lib' library.
>
> Note that as the mysqlclient libraries are compiled as threaded
> libraries, you should also compile your code to be multi-threaded!
> ------------------------------------------------------------------------
>
> PHP 5.0x installation on W2K (apache module)
>
> Here is my prog. and conf.
>
> php-5.0.0b1-Win32.zip
> mysql-4.0.13-win.zip
> apache_20.046-win32-x86-no_src.msi
>
> 1. edit httpd.conf
>
> LoadModule php5_module C:\php\sapi\php4apache2.dll
>
> #
> # To use PHP scripts
> #
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
>
> 2. copy c:\php\php4ts.dll to c:\winnt\system32
>
> 3. edit c:\winnt\php.ini
>
> ; Windows: "\path1;\path2"
> include_path = ".;c:\php\dlls"
>
> ; Directory in which the loadable extensions (modules) reside.
> extension_dir = "c:\php\extensions\"
>
> upload_tmp_dir = c:\tmp
>
> session.save_path = c:\tmp
>
--- End Message ---
--- Begin Message ---
This is what I get when I try to use phpMyAdmin:
cannot load MySQL extension,
please check PHP Configuration.
Documentation
So im guessing your right.
However, I still cannot use fusionphp.com's shoutbox. I cant login and when
I should, it just returns to the page. Anyone know whats wrong with my
config?
"Seung Hwan Kang" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Help!!!
>
> I just installed PHP 5.0.0 Beta 1 with Apache on W2K SP4, and I also
> read though the postings. The problem is that we have to use mysql
> clients which comes with mysql to use PHP. I read following mysql docs,
> and I don't have any clue, anyone?
>
> -----------------------------------------------------------------------
> 2.6.2.6 Compiling MySQL Clients on Windows
>
> In your source files, you should include `windows.h' before you include
> `mysql.h':
>
> #if defined(_WIN32) || defined(_WIN64)
> #include <windows.h>
> #endif
> #include <mysql.h>
>
> You can either link your code with the dynamic `libmysql.lib' library,
> which is just a wrapper to load in `libmysql.dll' on demand, or link
> with the static `mysqlclient.lib' library.
>
> Note that as the mysqlclient libraries are compiled as threaded
> libraries, you should also compile your code to be multi-threaded!
> ------------------------------------------------------------------------
>
> PHP 5.0x installation on W2K (apache module)
>
> Here is my prog. and conf.
>
> php-5.0.0b1-Win32.zip
> mysql-4.0.13-win.zip
> apache_20.046-win32-x86-no_src.msi
>
> 1. edit httpd.conf
>
> LoadModule php5_module C:\php\sapi\php4apache2.dll
>
> #
> # To use PHP scripts
> #
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
>
> 2. copy c:\php\php4ts.dll to c:\winnt\system32
>
> 3. edit c:\winnt\php.ini
>
> ; Windows: "\path1;\path2"
> include_path = ".;c:\php\dlls"
>
> ; Directory in which the loadable extensions (modules) reside.
> extension_dir = "c:\php\extensions\"
>
> upload_tmp_dir = c:\tmp
>
> session.save_path = c:\tmp
>
--- End Message ---
--- Begin Message ---
you may need to change php.ini
register_globals = off
eg. $_SERVER["PHP_SELF"]
to
register_globals = on
eg. $PHP_SELF
by the way, register_globals = on is not recommended.
Azn wrote:
Whats the error? I got PHP5 to work, except I still have a problem with my
configuration. My PHP files that use $PHP_SELF? does not work... along with
other PHP functions.
I have yet to try MySQL on PHP5 because I cant use any of my scripts that
use MySQL!
"Seung Hwan Kang" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Help!!!
I just installed PHP 5.0.0 Beta 1 with Apache on W2K SP4, and I also
read though the postings. The problem is that we have to use mysql
clients which comes with mysql to use PHP. I read following mysql docs,
and I don't have any clue, anyone?
-----------------------------------------------------------------------
2.6.2.6 Compiling MySQL Clients on Windows
In your source files, you should include `windows.h' before you include
`mysql.h':
#if defined(_WIN32) || defined(_WIN64)
#include <windows.h>
#endif
#include <mysql.h>
You can either link your code with the dynamic `libmysql.lib' library,
which is just a wrapper to load in `libmysql.dll' on demand, or link
with the static `mysqlclient.lib' library.
Note that as the mysqlclient libraries are compiled as threaded
libraries, you should also compile your code to be multi-threaded!
------------------------------------------------------------------------
PHP 5.0x installation on W2K (apache module)
Here is my prog. and conf.
php-5.0.0b1-Win32.zip
mysql-4.0.13-win.zip
apache_20.046-win32-x86-no_src.msi
1. edit httpd.conf
LoadModule php5_module C:\php\sapi\php4apache2.dll
#
# To use PHP scripts
#
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
2. copy c:\php\php4ts.dll to c:\winnt\system32
3. edit c:\winnt\php.ini
; Windows: "\path1;\path2"
include_path = ".;c:\php\dlls"
; Directory in which the loadable extensions (modules) reside.
extension_dir = "c:\php\extensions\"
upload_tmp_dir = c:\tmp
session.save_path = c:\tmp
--- End Message ---
--- Begin Message ---
On Fri, 2003-07-04 at 21:19, AzN wrote:
> I have yet to try MySQL on PHP5 because I cant use any of my scripts that
> use MySQL!
Sure you can! The latest snapshots include a MySQL client.
Cheers,
Marco
>
> "Seung Hwan Kang" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Help!!!
> >
> > I just installed PHP 5.0.0 Beta 1 with Apache on W2K SP4, and I also
> > read though the postings. The problem is that we have to use mysql
> > clients which comes with mysql to use PHP. I read following mysql docs,
> > and I don't have any clue, anyone?
> >
> > -----------------------------------------------------------------------
> > 2.6.2.6 Compiling MySQL Clients on Windows
> >
> > In your source files, you should include `windows.h' before you include
> > `mysql.h':
> >
> > #if defined(_WIN32) || defined(_WIN64)
> > #include <windows.h>
> > #endif
> > #include <mysql.h>
> >
> > You can either link your code with the dynamic `libmysql.lib' library,
> > which is just a wrapper to load in `libmysql.dll' on demand, or link
> > with the static `mysqlclient.lib' library.
> >
> > Note that as the mysqlclient libraries are compiled as threaded
> > libraries, you should also compile your code to be multi-threaded!
> > ------------------------------------------------------------------------
> >
> > PHP 5.0x installation on W2K (apache module)
> >
> > Here is my prog. and conf.
> >
> > php-5.0.0b1-Win32.zip
> > mysql-4.0.13-win.zip
> > apache_20.046-win32-x86-no_src.msi
> >
> > 1. edit httpd.conf
> >
> > LoadModule php5_module C:\php\sapi\php4apache2.dll
> >
> > #
> > # To use PHP scripts
> > #
> > AddType application/x-httpd-php .php
> > AddType application/x-httpd-php-source .phps
> >
> > 2. copy c:\php\php4ts.dll to c:\winnt\system32
> >
> > 3. edit c:\winnt\php.ini
> >
> > ; Windows: "\path1;\path2"
> > include_path = ".;c:\php\dlls"
> >
> > ; Directory in which the loadable extensions (modules) reside.
> > extension_dir = "c:\php\extensions\"
> >
> > upload_tmp_dir = c:\tmp
> >
> > session.save_path = c:\tmp
> >
--
Marco Tabini
President
Marco Tabini & Associates, Inc.
28 Bombay Avenue
Toronto, ON M3H 1B7
Canada
Phone: (416) 630-6202
Fax: (416) 630-5057
Web: http://www.tabini.ca
--- End Message ---