Re: PHP3 files on Apache 1.3.26 and PHP4

2002-09-17 Thread Charles Baker


--- Charles Baker <[EMAIL PROTECTED]> wrote:
> I'm running apache 1.3.26 and php4. I've never tried
> to do anything w/ php on my server. I installed an
> app
> that has php3 files. When I try to browse the app, I
> get a mime-type error. Galeon doesn't seem to know
> what to do...I think the following are all the
> relevant line from my httpd.conf:
> 
> LoadModule php4_module
> /usr/lib/apache/1.3/libphp4.so
> 
> 
> DirectoryIndex index.html index.php index.htm
> index.shtml index.cgi index.ph
> p3
> 
> 
> # For example, the PHP 3.x module (not part of
> the
> Apache
> # distribution - see http://www.php.net) will
> typically use:
> #
> AddType application/x-httpd-php3 .php3
> #AddType application/x-httpd-php3-source .phps
> #
> # And for PHP 4.x, use:
> #
> AddType application/x-httpd-php .php
> #AddType application/x-httpd-php-source .phps
> 
> Clues anyone? A further test in my public_html/php
> directory of a simple index.php works. However
> mv'ing
> the same file to php3 does not work. What gives?

{{SNIP}}

I continued on my google search and found this page:

http://www.opendeveloper.org/PHP/HowTo/Upgrading_From_PHP3_to_PHP4/

Which indicated that the line:

AddType application/x-httpd-php3 .php3

should be commented out and instead use a line like
so:

AddType application/x-httpd-php .php .php4 .php3

This works. Once again, google and the web prove
themselves to be my friends.

=
[EMAIL PROTECTED]
http://www.charleshbaker.com/~chb/
Hacking is a "Good Thing!"
See http://www.tuxedo.org/~esr/faqs/hacker-howto.html

__
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




PHP3 files on Apache 1.3.26 and PHP4

2002-09-17 Thread Charles Baker

I'm running apache 1.3.26 and php4. I've never tried
to do anything w/ php on my server. I installed an app
that has php3 files. When I try to browse the app, I
get a mime-type error. Galeon doesn't seem to know
what to do...I think the following are all the
relevant line from my httpd.conf:

LoadModule php4_module /usr/lib/apache/1.3/libphp4.so


DirectoryIndex index.html index.php index.htm
index.shtml index.cgi index.ph
p3


# For example, the PHP 3.x module (not part of the
Apache
# distribution - see http://www.php.net) will
typically use:
#
AddType application/x-httpd-php3 .php3
#AddType application/x-httpd-php3-source .phps
#
# And for PHP 4.x, use:
#
AddType application/x-httpd-php .php
#AddType application/x-httpd-php-source .phps

Clues anyone? A further test in my public_html/php
directory of a simple index.php works. However mv'ing
the same file to php3 does not work. What gives?

=
[EMAIL PROTECTED]
http://www.charleshbaker.com/~chb/
Hacking is a "Good Thing!"
See http://www.tuxedo.org/~esr/faqs/hacker-howto.html

__
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: SOLVED: getting apache/php4 to load .php, .php3, .php4

2002-09-02 Thread webmaster

On Mon, 2 Sep 2002 11:40:58 -0700 Ron Farrer <[EMAIL PROTECTED]> wrote: 8-§  > webmaster 
@ linuxabbestia. homelinux. net ([EMAIL PROTECTED]) wrote:
8-§  > 
8-§  > > Did type next lines in /etc/apache/srn.conf?
8-§  > 
8-§  > srn.conf is blank (it says it's supposed to be.) but...
8-§  > 
8-§  > >  DirectoryIndex index.htm index.html index.shtml index.php index.php3
8-§  > >  DocumentRoot /var/www/  <-- that's default
8-§  > > 
8-§  > >  AddType application/x-httpd-php .phtml .php3 .php
8-§  > >  AddType application/x-httpd-php-source .phps
8-§  > 
8-§  > These lines ARE in my httpd.conf
8-§  > 
8-§  > *sigh* ok, apache is posessed or something.. after restarting it twice
8-§  > in a row (once on purpose, the second on accident) it's now working!
8-§  > What since does that make? none...
8-§  > 
8-§  > Thanks!


It's accidentally that you can discover something you have ever though about it, think 
about the penicillin or the antibiotics!!!

smile you have won!

linuxabbestia


<>

 See "User's Guide": http://www.debian.org/doc/manuals/users-guide/
 See "Debian reference": http://www.debian.org/doc/manuals/debian-reference/
 "Debian reference" Project at: http://qref.sf.net

Please DO NOT send e-mail with any attachment in a "proprietary format", such as 
either .doc or .ppt, BECAUSE: http://www.fsf.org/philosophy/no-word-attachments.html 
(the Italian version is available on the following url: 
http://www.fsf.org/philosophy/no-word-attachments.it.html)
T H A N K S   ;-P


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




SOLVED: getting apache/php4 to load .php, .php3, .php4

2002-09-02 Thread Ron Farrer

webmaster @ linuxabbestia. homelinux. net ([EMAIL PROTECTED]) wrote:

> Did type next lines in /etc/apache/srn.conf?

srn.conf is blank (it says it's supposed to be.) but...

>  DirectoryIndex index.htm index.html index.shtml index.php index.php3
>  DocumentRoot /var/www/  <-- that's default
> 
>  AddType application/x-httpd-php .phtml .php3 .php
>  AddType application/x-httpd-php-source .phps

These lines ARE in my httpd.conf

*sigh* ok, apache is posessed or something.. after restarting it twice
in a row (once on purpose, the second on accident) it's now working!
What since does that make? none...

Thanks!

Ron
-- 
Email: <[EMAIL PROTECTED]> or <[EMAIL PROTECTED]>
Home:  <http://farrer.net/~rbf/>



msg00402/pgp0.pgp
Description: PGP signature


Re: getting apache/php4 to load .php, .php3, .php4

2002-09-02 Thread webmaster

On Mon, 2 Sep 2002 10:57:33 -0700 Ron Farrer <[EMAIL PROTECTED]> wrote: 8-§  > webmaster 
@ linuxabbestia. homelinux. net ([EMAIL PROTECTED]) wrote:
8-§  > 
8-§  > > Did you un-comment the "LoadModule php4_module 
/usr/lib/apache/1.3/libphp4.so" line?
8-§  > 
8-§  > Yes.
8-§  > 
8-§  > > Besides next is mine (and working well!):
8-§  > > 
8-§  > > #AddType application/x-httpd-php3 .php3
8-§  > > #AddType application/x-httpd-php3-source .phps
8-§  > > #
8-§  > > # And for PHP 4.x, use:
8-§  > > #
8-§  > > AddType application/x-httpd-php .php
8-§  > > AddType application/x-httpd-php-source .phps
8-§  > > 
8-§  > > AddType application/x-tar .tgz
8-§  > > AddType image/bmp .bmp
8-§  > 
8-§  > Ok, I changed mine to match yours.. now this is interesting: files in
8-§  > directories under /public_html/ work, but not in /public_html/ itself.
8-§  > It still tries to download the file, but now it says
8-§  > "application/x-trash" (weird!)  if I specifiy a file directly (not
8-§  > index.php) it still says "application/x-httpd-php" but at least index.php 
8-§  > and other .php files in subdirs work...
8-§  > 
8-§  > Any ideas?

Did type next lines in /etc/apache/srn.conf?


 DirectoryIndex index.htm index.html index.shtml index.php index.php3
 DocumentRoot /var/www/  <-- that's default

 AddType application/x-httpd-php .phtml .php3 .php
 AddType application/x-httpd-php-source .phps

linuxabbestia


<>

 See "User's Guide": http://www.debian.org/doc/manuals/users-guide/
 See "Debian reference": http://www.debian.org/doc/manuals/debian-reference/
 "Debian reference" Project at: http://qref.sf.net

Please DO NOT send e-mail with any attachment in a "proprietary format", such as 
either .doc or .ppt, BECAUSE: http://www.fsf.org/philosophy/no-word-attachments.html 
(the Italian version is available on the following url: 
http://www.fsf.org/philosophy/no-word-attachments.it.html)
T H A N K S   ;-P


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: getting apache/php4 to load .php, .php3, .php4

2002-09-02 Thread Ron Farrer

webmaster @ linuxabbestia. homelinux. net ([EMAIL PROTECTED]) wrote:

> Did you un-comment the "LoadModule php4_module /usr/lib/apache/1.3/libphp4.so" line?

Yes.

> Besides next is mine (and working well!):
> 
> #AddType application/x-httpd-php3 .php3
> #AddType application/x-httpd-php3-source .phps
> #
> # And for PHP 4.x, use:
> #
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
> 
> AddType application/x-tar .tgz
> AddType image/bmp .bmp

Ok, I changed mine to match yours.. now this is interesting: files in
directories under /public_html/ work, but not in /public_html/ itself.
It still tries to download the file, but now it says
"application/x-trash" (weird!)  if I specifiy a file directly (not
index.php) it still says "application/x-httpd-php" but at least index.php 
and other .php files in subdirs work...

Any ideas?

TIA,
Ron
-- 
Email: <[EMAIL PROTECTED]> or <[EMAIL PROTECTED]>
Home:  <http://farrer.net/~rbf/>



msg00397/pgp0.pgp
Description: PGP signature


Re: getting apache/php4 to load .php, .php3, .php4

2002-09-02 Thread webmaster

8-§  > After a bit if fiddling around I got
8-§  > apahce/php4 to load files named .php3 as php files, but anything named
8-§  > .php or .php4 gets ignored and is sent to the users browser as
8-§  > "application/x-httpd-php" as if php were not configured. The problem
8-§  > occurs in a users /public_html/ directory. Here is what my
8-§  > php section my my httpd.conf looks like:
8-§  > 
8-§  > ---cut-here---
8-§  > AddType application/x-httpd-php .php
8-§  > AddType application/x-httpd-php .php3
8-§  > AddType application/x-httpd-php .php4
8-§  > AddType application/x-httpd-php-source .phps
8-§  > ---cut-here---

Did you un-comment the "LoadModule php4_module /usr/lib/apache/1.3/libphp4.so" line?

Besides next is mine (and working well!):

#AddType application/x-httpd-php3 .php3
#AddType application/x-httpd-php3-source .phps
#
# And for PHP 4.x, use:
#
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

AddType application/x-tar .tgz
AddType image/bmp .bmp

 
8-§  > I tried replacing the "x-httpd-php" with "x-httpd-php4" but that results
8-§  > in sending the entire file to the user for download. If I place the file
8-§  > in /cgi-bin/ inside /public_html/ it works. So I feel I'm just missing a 
8-§  > very simple solution to the problem... It's been a long time since I've 
8-§  > configured apache, php, perl, and friends so I'm sure I'm just missing 
8-§  > something - but having looked through the documentation, searched this 
8-§  > lists archives, and google, I'm not seeing a solution.
8-§  > 
8-§  > Any help would be greatly appricated!
8-§  > 
8-§  > TIA,
8-§  > Ron
8-§  > -- 
8-§  > Email: <[EMAIL PROTECTED]> or <[EMAIL PROTECTED]>
8-§  > Home:  <http://farrer.net/~rbf/>
8-§  > 



<>

 See "User's Guide": http://www.debian.org/doc/manuals/users-guide/
 See "Debian reference": http://www.debian.org/doc/manuals/debian-reference/
 "Debian reference" Project at: http://qref.sf.net

Please DO NOT send e-mail with any attachment in a "proprietary format", such as 
either .doc or .ppt, BECAUSE: http://www.fsf.org/philosophy/no-word-attachments.html 
(the Italian version is available on the following url: 
http://www.fsf.org/philosophy/no-word-attachments.it.html)
T H A N K S   ;-P


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




getting apache/php4 to load .php, .php3, .php4

2002-09-02 Thread Ron Farrer


Hello,

I have apache (1.3.26-0woody1), apache-perl (1.3.26-1-1.26-0woody1), 
apache-ssl (1.3.26.1+1.48-0woody2), php4 (4:4.1.2-4), and php4-cgi
(4:4.1.2-4) installed on my system (Linux yaveng 2.4.17 #4 Wed Mar 6
08:25:23 PST 2002 ppc unknown). After a bit if fiddling around I got
apahce/php4 to load files named .php3 as php files, but anything named
.php or .php4 gets ignored and is sent to the users browser as
"application/x-httpd-php" as if php were not configured. The problem
occurs in a users /public_html/ directory. Here is what my
php section my my httpd.conf looks like:

---cut-here---
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps
---cut-here---

I tried replacing the "x-httpd-php" with "x-httpd-php4" but that results
in sending the entire file to the user for download. If I place the file
in /cgi-bin/ inside /public_html/ it works. So I feel I'm just missing a 
very simple solution to the problem... It's been a long time since I've 
configured apache, php, perl, and friends so I'm sure I'm just missing 
something - but having looked through the documentation, searched this 
lists archives, and google, I'm not seeing a solution.

Any help would be greatly appricated!

TIA,
Ron
-- 
Email: <[EMAIL PROTECTED]> or <[EMAIL PROTECTED]>
Home:  <http://farrer.net/~rbf/>



msg00383/pgp0.pgp
Description: PGP signature


RE: Php3 Problems

2002-06-09 Thread Steve Barr
Nik,

> > AddType application/x-httpd-php .php .php3 .php4
> > AddType application/x-httpd-php-source .phps

You have just these two lines in you Apache config for PHP?  In your first 
post, you show conflicting entries.  There should only be one "AddType 
application/x-httpd-php" line, and one "AddType application/x-httpd-php-source" 
line.

After you edit your config file, you are stopping and starting Apache?  (or do 
a restart...)

What happens when you create a simple test file and name it test.php (or 
anything .php)?  Does your web server process it correctly?  If so, rename that 
file to test.php3 and try again.  It shold work the same for all of the 
extensions that are included in the PHP line of the config file.  (In my case 
.php .php3 .php4)

> What i want ot do, is to run horde on my php4 server. But all of horde
> (on the debian package ) is php3

I'm not familiar with Horde, but it shouldn't be a problem. 
 
> Can i check any other settings ? 

The only other thing I can think to check is what do you have for the 
DirectoryIndex in Apache?  Mine has "DirectoryIndex index.html index.php3 
index.php index.php4".  This would only make a difference if the file you are 
trying to access is the index page.  

Are you sure that PHP is installed and working?  I'd try the simple test that I 
describe above and verify that PHP is working.

Steve


--
This message has been scanned for viruses and dangerous
content by MailScanner, and is believed to be clean.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Php3 Problems

2002-06-09 Thread Nik Engel
Hi Steve!
> # And for PHP 4.x, use:
> #
> AddType application/x-httpd-php .php .php3 .php4
> AddType application/x-httpd-php-source .phps
DoesnŽt help me at all. Unfortunatly i tried all reasonable
combinations. 
But when i try to open a php3 page my browser always tries to download
the file... 
What i want ot do, is to run horde on my php4 server. But all of horde
(on the debian package ) is php3 
Can i check any other settings ? 

Nik 


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



RE: Php3 Problems

2002-06-09 Thread Steve Barr
> I have apache 1.3 running with php4 on debian woody. 
> Unfortunatly my webserver cannot parse any php3 files. 
> When i want to open files with this ending i get an unknown mime typ. 
> i have added all mime types, as far as i am concerned: 
> 
> 
>   AddType application/x-httpd-php .php
> AddType application/x-httpd-php3 .php .php4 .php3
> AddType application/x-httpd-php-source .phps
> AddType application/x-httpd-php .php4 .php3 .phtml .php .inc
> AddType application/x-httpd-php-source .phps


This is what I have in my Apache config on Woody.

# And for PHP 4.x, use:
#
AddType application/x-httpd-php .php .php3 .php4
AddType application/x-httpd-php-source .phps


Steve

--
This message has been scanned for viruses and dangerous
content by MailScanner, and is believed to be clean.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Php3 Problems

2002-06-09 Thread Nik Engel
Hi ! 
I have apache 1.3 running with php4 on debian woody. 
Unfortunatly my webserver cannot parse any php3 files. 
When i want to open files with this ending i get an unknown mime typ. 
i have added all mime types, as far as i am concerned: 


  AddType application/x-httpd-php .php
AddType application/x-httpd-php3 .php .php4 .php3
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .php4 .php3 .phtml .php .inc
AddType application/x-httpd-php-source .phps

AddType application/x-tar .tgz
AddType image/bmp .bmp


but as my server is using modules, (also the mime typ module) which is
always saying that it is already loaded when i stop/start the apache, i
guess i have to reload that module ? 
how can i unload apache modules ? 
or am i on the wron track ?

thankx 
Nik 



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: php3 + recent security patch debs

2002-03-02 Thread Paul 'Baloo' Johnson
On Sat, 2 Mar 2002, Joseph Maher wrote:

> In case anyone cares, I rebuilt php3 for potato i386, with the recent
> security patch[1] applied.

Thank you!

-- 
Baloo



php3 + recent security patch debs

2002-03-02 Thread Joseph Maher

In case anyone cares, I rebuilt php3 for potato i386, with the recent
security patch[1] applied.

debs available at:

http://www.math.ucsb.edu/~maher/debian

Use at your own risk etc. This is just a stopgap till they get the
official security update out. If they don't work let me know and I'll pull
them.

Joseph

--
[1] http://www.php.net/distributions/mime.c.diff-3.0.gz



Re: configuring php3/apache /apt-get

2002-01-06 Thread Earl F Hampton
On Friday 04 January 2002 14:53, johan30 wrote:
> hi,
>
> I work on debian unstable and there is being installed apache and php3 with
> apt-get.  I wanted to ask if somebody know an explenation (webpage or
> something is ok for me) how to configure httpd.conf in function for php3 ?
>
> Thx a lot
grep php /etc/apache/*

httpd.conf:LoadModule php3_module /usr/lib/apache/1.3/libphp3.so
mime.types:application/x-httpd-php  phtml pht php
mime.types:application/x-httpd-php3 php3
mime.types:application/x-httpd-php3-source  phps
mime.types:application/x-httpd-php3-preprocessedphp3p
srm.conf:AddType application/x-httpd-php3 .phtml
srm.conf:AddType application/x-httpd-php3-source .phps


Hope that helps

Earl F Hampton



configuring php3/apache /apt-get

2002-01-05 Thread johan30
hi,

I work on debian unstable and there is being installed apache and php3 with 
apt-get.  I wanted to ask if somebody know an explenation (webpage or 
something is ok for me) how to configure httpd.conf in function for php3 ?

Thx a lot



RE: woody+php3+php-nuke

2001-05-29 Thread Wayne Sitton

>From all the errors I'm looking at the error is that the php3-mysql module
is not talking to mysql, I can't tell if this is because php3-mysql Doesn't
work with the version of mysql that is in woody, or what.  Should I just
download the php4 source and compile it manually?

Wayne
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Claus Divossen
Sent: Tuesday, May 29, 2001 2:02 PM
To: Wayne Sitton
Cc: debian-user
Subject: Re: woody+php3+php-nuke


Wayne Sitton wrote:
>
> I had php-nuke up and running on Debian stable with php4.
>
> Because of another program I wanted to run, I had to upgrade to woody
>
> first it un-installed my php4, in dselect when I tried to re-install it
> it complains about the version of apache-commons...?(why?)
> so, I installed php3, but when I go to the website I get this error
>
> Fatal error: Call to unsupported or undefined function mysql_connect() in
> mainfile.php on line 33
>
> First I thought it may have to do with something else that upgraded, so I
> un-installed php3, mysql, and php-nuke.  I re-installed the 3 from
scratch,
> but I still get the error
>
> Fatal error: Call to unsupported or undefined function mysql_connect() in
> mainfile.php on line 33
>
> the section of mainfile.php is
>
> $mainfile = 1;
> mysql_connect($dbhost, $dbuname, $dbpass);
> @mysql_select_db("$dbname") or die ("Unable to select database");
>
> I've checked username and password, and those are correct, the ddhost is
set
> to localhost.
>
> please help, before I pull my hair out!
>
> Wayne
>

Hi Wayne,

Did you also install the php3-mysql package? It seems to be required for
this.

Regards
  Claus



RE: woody+php3+php-nuke

2001-05-29 Thread Wayne Sitton
Yes is I installed php3-mysql 3.0.18-12

Wayne

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Claus Divossen
Sent: Tuesday, May 29, 2001 2:02 PM
To: Wayne Sitton
Cc: debian-user
Subject: Re: woody+php3+php-nuke


Wayne Sitton wrote:
>
> I had php-nuke up and running on Debian stable with php4.
>
> Because of another program I wanted to run, I had to upgrade to woody
>
> first it un-installed my php4, in dselect when I tried to re-install it
> it complains about the version of apache-commons...?(why?)
> so, I installed php3, but when I go to the website I get this error
>
> Fatal error: Call to unsupported or undefined function mysql_connect() in
> mainfile.php on line 33
>
> First I thought it may have to do with something else that upgraded, so I
> un-installed php3, mysql, and php-nuke.  I re-installed the 3 from
scratch,
> but I still get the error
>
> Fatal error: Call to unsupported or undefined function mysql_connect() in
> mainfile.php on line 33
>
> the section of mainfile.php is
>
> $mainfile = 1;
> mysql_connect($dbhost, $dbuname, $dbpass);
> @mysql_select_db("$dbname") or die ("Unable to select database");
>
> I've checked username and password, and those are correct, the ddhost is
set
> to localhost.
>
> please help, before I pull my hair out!
>
> Wayne
>

Hi Wayne,

Did you also install the php3-mysql package? It seems to be required for
this.

Regards
  Claus



Re: woody+php3+php-nuke

2001-05-29 Thread Claus Divossen
Wayne Sitton wrote:
> 
> I had php-nuke up and running on Debian stable with php4.
> 
> Because of another program I wanted to run, I had to upgrade to woody
> 
> first it un-installed my php4, in dselect when I tried to re-install it
> it complains about the version of apache-commons...?(why?)
> so, I installed php3, but when I go to the website I get this error
> 
> Fatal error: Call to unsupported or undefined function mysql_connect() in
> mainfile.php on line 33
> 
> First I thought it may have to do with something else that upgraded, so I
> un-installed php3, mysql, and php-nuke.  I re-installed the 3 from scratch,
> but I still get the error
> 
> Fatal error: Call to unsupported or undefined function mysql_connect() in
> mainfile.php on line 33
> 
> the section of mainfile.php is
> 
> $mainfile = 1;
> mysql_connect($dbhost, $dbuname, $dbpass);
> @mysql_select_db("$dbname") or die ("Unable to select database");
> 
> I've checked username and password, and those are correct, the ddhost is set
> to localhost.
> 
> please help, before I pull my hair out!
> 
> Wayne
> 

Hi Wayne, 

Did you also install the php3-mysql package? It seems to be required for
this.

Regards
  Claus



woody+php3+php-nuke

2001-05-29 Thread Wayne Sitton
I had php-nuke up and running on Debian stable with php4.

Because of another program I wanted to run, I had to upgrade to woody

first it un-installed my php4, in dselect when I tried to re-install it
it complains about the version of apache-commons...?(why?)
so, I installed php3, but when I go to the website I get this error

Fatal error: Call to unsupported or undefined function mysql_connect() in
mainfile.php on line 33

First I thought it may have to do with something else that upgraded, so I
un-installed php3, mysql, and php-nuke.  I re-installed the 3 from scratch,
but I still get the error

Fatal error: Call to unsupported or undefined function mysql_connect() in
mainfile.php on line 33

the section of mainfile.php is

$mainfile = 1;
mysql_connect($dbhost, $dbuname, $dbpass);
@mysql_select_db("$dbname") or die ("Unable to select database");


I've checked username and password, and those are correct, the ddhost is set
to localhost.


please help, before I pull my hair out!

Wayne



Re: PHP3 and mysql

2001-05-15 Thread John Griffiths
>wendy:/etc/php3/apache# apt-get install php3-mysql
>Reading Package Lists... Done
>Building Dependency Tree... Done
>Sorry, php3-mysql is already the newest version
>0 packages upgraded, 0 newly installed, 0 to remove and 56 not upgraded.
>
>Any idea?

56 not upgraded?



Re: PHP3 and mysql

2001-05-15 Thread Keneth
it said:
wendy:/etc/php3/apache# apt-get install php3-mysql
Reading Package Lists... Done
Building Dependency Tree... Done
Sorry, php3-mysql is already the newest version
0 packages upgraded, 0 newly installed, 0 to remove and 56 not upgraded.

Any idea?

> >
> >  Fatal error: Call to unsupported or undefined function mysql_connect()
in
> >/var/www/template.inc on line 122
> >  (I can connect to the mysql server locally.)
> >
> >Could anyone tell me how to fix it? Thank in advanced!
> >
>
> #apt-get install php3-mysql
>
> ususally fixes this one for me.
>



Re: PHP3 and mysql

2001-05-15 Thread John Griffiths
>
>  Fatal error: Call to unsupported or undefined function mysql_connect() in
>/var/www/template.inc on line 122
>  (I can connect to the mysql server locally.)
>
>Could anyone tell me how to fix it? Thank in advanced!
>

#apt-get install php3-mysql

ususally fixes this one for me.



PHP3 and mysql

2001-05-15 Thread Keneth
I have just re-install php3, the apache can run php3 well, however, it
doesnt seem to able to connect to the mysql server with PHP, that is
mysql_connect()

  Fatal error: Call to unsupported or undefined function mysql_connect() in
/var/www/template.inc on line 122
  (I can connect to the mysql server locally.)

Could anyone tell me how to fix it? Thank in advanced!

Keneth



OT: PHP3 vs PHP4

2001-04-05 Thread Petr Danek
Hi list,
is it posible to have both PHP3 and PHP4 installed from binary debs on the same 
machine ?

Thanks
Petr


[2]Question about php3+GD

2001-02-05 Thread wen
Hi,
I posted this question and hope to add new information.
I have just found the configure command for php3 have the option
'--without-gd' by phpinfo. Does this mean that I have to recompile
php3 if I want to invoke GD? 

*
Hi,
I am a novice of php. When I call the function of imagecreatefromgif
or imagecreatefrompng, I get "Fatal error: Call to unsupported or 
undefined function imagecreatefromgif()(or imagecreatefrompng()).
Maybe function imagecreatefromgif was removed due to a patent problem
for GIF in version 3.0.16. But how about the function imagecreatefrompng()?
Should I add something in php3.ini? TNX.
The following packages were installed in my potato box,
ii  php3   3.0.16-2potato A server-side, HTML-embedded scripting langu
ii  php3-cgi   3.0.16-2potato A server-side, HTML-embedded scripting langu
ii  php3-doc   3.0.16-2potato Documentation for PHP3
ii  php3-gd3.0.16-2potato GD (graphic creation) module for PHP3 (apach
ii  php3-mysql 3.0.16-2potato Mysql module for PHP3 (apache)

Regards,

--Wen
[EMAIL PROTECTED]



Question about php3+GD

2001-02-05 Thread wen
Hi,
I am a novice of php. When I call the function of imagecreatefromgif
or imagecreatefrompng, I get "Fatal error: Call to unsupported or 
undefined function imagecreatefromgif()(or imagecreatefrompng()).
Maybe function imagecreatefromgif was removed due to a patent problem
for GIF in version 3.0.16. But how about the function imagecreatefrompng()?
Should I add something in php3.ini? TNX.
The following packages were installed in my potato box,
ii  php3   3.0.16-2potato A server-side, HTML-embedded scripting langu
ii  php3-cgi   3.0.16-2potato A server-side, HTML-embedded scripting langu
ii  php3-doc   3.0.16-2potato Documentation for PHP3
ii  php3-gd3.0.16-2potato GD (graphic creation) module for PHP3 (apach
ii  php3-mysql 3.0.16-2potato Mysql module for PHP3 (apache)

Regards,

--Wen
[EMAIL PROTECTED]



Re: php4 will not handle *.php3 files? (potato)

2001-01-23 Thread Arnout Engelen
|> Shouldn't the Debian package  php4_4.0.3pl1-0potato1.deb  
|> handle  *.php3  files?

I solved this by putting the following line in /etc/apache/httpd.conf:

AddType application/x-httpd-php .php3

just above

AddType application/x-httpd-php .php

-- 
  __
 /__|  Arnout Engelen <[EMAIL PROTECTED]> 
|_ /|   |   _ _
|   | |___|_|   |   - =
|   |/__|Debian GNU/Linux: when code 
|__/  matters, not commercials 




Re: php4 will not handle *.php3 files? (potato)

2001-01-19 Thread Ken Weingold
I think the problem is a simple MIME type problem.  Add 'php3' to the
application/x-httpd-php type.


-Ken



On Fri, Jan 19, 2001, Jameson C. Burt wrote:
> Shouldn't the Debian package  php4_4.0.3pl1-0potato1.deb  
> handle  *.php3  files?
> Through netscape  http://localhost/test-jameson.php, 
> I can see php4 working, where test-jameson.php is
>
> This common test properly displays a few pages 
> of PHP configuration information.
> 
> However, testing thru any of netscape/opera/mozilla 
> on the file  http://localhost/test4-jameson.php3,
> I only get a popup window, titled 
>Save As... (type application/x-httpd-php3)
> to download the test4-jameson.php3 file.
> I get this same download-response whether test4-jameson.php3 contains
> the single line
>
> or the single line (recommended test line in Horde Administrator's FAQ)
>
> 
> 
> Here are all lines in /etc/apache/* that contain "php", 
> where all entries have been put there by Debian package installations,
> 1. httpd.conf:
>LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
> 
> 2. srm.conf:
>DirectoryIndex index.html index.php index.php3
> 
> 3. mime.types:
>    application/x-httpd-php     phtml pht php
>application/x-httpd-php3php3
>application/x-httpd-php3-source phps
>application/x-httpd-php3-preprocessed   php3p
> 
> 
> 
> I have installed the following php and apache modules,
>Package   Version
>---   ---
>php4  4.0.3pl1-0potato1
>php4-cgi  4.0.3pl1-0potato1
>php4-gd   4.0.3pl1-0potato1
>php4-imap 4.0.3pl1-0potato1
>php4-ldap 4.0.3pl1-0potato1
>php4-pgsql4.0.3pl1-0potato1
>phplib7.3dev-3.1
> 
>apache1.3.9-13.1
>apache-common 1.3.9-13.1
>libapache-mod-ssl 2.4.10-1.3.9-1
> 
> 
> I presume that the php4 Debian package should handle php3 files.
> I deduce this because I am installing imp, 
> whose description (dpkg -s imp) includes
>Depends: php3 | php4 (>= 4.0.3pl1)
> But the imp package is accessed thru the php3 web page,
>/usr/share/horde/imp/index.php3
> So, while the imp package allows using the package php4 rather 
> than the package php3, web access must be able 
> to interpret *.php3 files---but does not.
> What have I done wrong?
> 



php4 will not handle *.php3 files? (potato)

2001-01-19 Thread Jameson C. Burt
Shouldn't the Debian package  php4_4.0.3pl1-0potato1.deb  
handle  *.php3  files?
Through netscape  http://localhost/test-jameson.php, 
I can see php4 working, where test-jameson.php is
   
This common test properly displays a few pages 
of PHP configuration information.

However, testing thru any of netscape/opera/mozilla 
on the file  http://localhost/test4-jameson.php3,
I only get a popup window, titled 
   Save As... (type application/x-httpd-php3)
to download the test4-jameson.php3 file.
I get this same download-response whether test4-jameson.php3 contains
the single line
   
or the single line (recommended test line in Horde Administrator's FAQ)
   


Here are all lines in /etc/apache/* that contain "php", 
where all entries have been put there by Debian package installations,
1. httpd.conf:
   LoadModule php4_module /usr/lib/apache/1.3/libphp4.so

2. srm.conf:
   DirectoryIndex index.html index.php index.php3

3. mime.types:
   application/x-httpd-php phtml pht php
   application/x-httpd-php3php3
   application/x-httpd-php3-source phps
   application/x-httpd-php3-preprocessed   php3p



I have installed the following php and apache modules,
   Package   Version
   ---   ---
   php4  4.0.3pl1-0potato1
   php4-cgi  4.0.3pl1-0potato1
   php4-gd   4.0.3pl1-0potato1
   php4-imap 4.0.3pl1-0potato1
   php4-ldap 4.0.3pl1-0potato1
   php4-pgsql4.0.3pl1-0potato1
   phplib7.3dev-3.1

   apache1.3.9-13.1
   apache-common 1.3.9-13.1
   libapache-mod-ssl 2.4.10-1.3.9-1


I presume that the php4 Debian package should handle php3 files.
I deduce this because I am installing imp, 
whose description (dpkg -s imp) includes
   Depends: php3 | php4 (>= 4.0.3pl1)
But the imp package is accessed thru the php3 web page,
   /usr/share/horde/imp/index.php3
So, while the imp package allows using the package php4 rather 
than the package php3, web access must be able 
to interpret *.php3 files---but does not.
What have I done wrong?

-- 
Jameson C. Burt, NJ9L   Fairfax, Virginia, USA
[EMAIL PROTECTED]   http://www.coost.com
(202) 690-0380 (work)

You can only find truth with logic if you have already found truth without it.
-- G.K. Chesterton




php4 will not handle *.php3 files? (potato)

2001-01-19 Thread Jameson C. Burt
Shouldn't the Debian package  php4_4.0.3pl1-0potato1.deb  
handle  *.php3  files?
Through netscape  http://localhost/test-jameson.php, 
I can see php4 working, where test-jameson.php is
   
This common test properly displays a few pages 
of PHP configuration information.

However, testing thru any of netscape/opera/mozilla 
on the file  http://localhost/test4-jameson.php3,
I only get a popup window, titled 
   Save As... (type application/x-httpd-php3)
to download the test4-jameson.php3 file.
I get this same download-response whether test4-jameson.php3 contains
the single line
   
or the single line (recommended test line in Horde Administrator's FAQ)
   


Here are all lines in /etc/apache/* that contain "php", 
where all entries have been put there by Debian package installations,
1. httpd.conf:
   LoadModule php4_module /usr/lib/apache/1.3/libphp4.so

2. srm.conf:
   DirectoryIndex index.html index.php index.php3

3. mime.types:
   application/x-httpd-php phtml pht php
   application/x-httpd-php3php3
   application/x-httpd-php3-source phps
   application/x-httpd-php3-preprocessed   php3p



I have installed the following php and apache modules,
   Package   Version
   ---   ---
   php4  4.0.3pl1-0potato1
   php4-cgi  4.0.3pl1-0potato1
   php4-gd   4.0.3pl1-0potato1
   php4-imap 4.0.3pl1-0potato1
   php4-ldap 4.0.3pl1-0potato1
   php4-pgsql4.0.3pl1-0potato1
   phplib7.3dev-3.1

   apache1.3.9-13.1
   apache-common 1.3.9-13.1
   libapache-mod-ssl 2.4.10-1.3.9-1


I presume that the php4 Debian package should handle php3 files.
I deduce this because I am installing imp, 
whose description (dpkg -s imp) includes
   Depends: php3 | php4 (>= 4.0.3pl1)
But the imp package is accessed thru the php3 web page,
   /usr/share/horde/imp/index.php3
So, while the imp package allows using the package php4 rather 
than the package php3, web access must be able 
to interpret *.php3 files---but does not.
What have I done wrong?


-- 
Jameson C. Burt, NJ9L   Fairfax, Virginia, USA
[EMAIL PROTECTED]   http://www.coost.com
(202) 690-0380 (work)

You can only find truth with logic if you have already found truth without it.
-- G.K. Chesterton




php3

2000-12-04 Thread Brian Schramm
I am running debian potato and am trying to get Twig 2.5.1 to run.  For
some reason even after going through and installing all the php3 modualls
that are listed.  The test still says it cannot access the imap and the
pgsql database.  

Can anyone give me a hint on what to do from here?

Thanks

Brian Schramm
[EMAIL PROTECTED]
www.linuxexpert.org

   



Re: no documentation for php3-magick?

2000-09-02 Thread Will Trillich
# apt-get install php3-magick
# dpkg -L php3-magick
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/php3-magick
/usr/lib
/usr/lib/php3
/usr/lib/php3/apache
/usr/lib/php3/apache/magick.so

browsing to localhost/doc/php3-magick shows several
documents, which may or may not help...



Re: no documentation for php3-magick?

2000-09-02 Thread Will Trillich
On Sat, Sep 02, 2000 at 11:25:08PM +0200, trapstep wrote:
> hi list,
> 
> i installed php3-magick Version: 3:3.0.16-4 from woody.
> it installed the magick.so but no other file, no documentation at all.
> then i searched the web, but found nothing but links to this package.
> isn't there any documentation for this?

i had a similar problem with perlmagick. there are some
perlmagick dox, which may give you enough to get started.
(apt-get install perlmagick ; lynx http://localhost/doc/perlmagick)

if you're looking for hints on how to use the imagemagick
syntax such as specifying gradients and so forth, i've
not been too successful at finding anything comprehensive...

but try snooping around here and see what you find:

http://www.imagemagick.org/www/magick-list.html
http://www.imagemagick.org/www/perl.html#exam



no documentation for php3-magick?

2000-09-02 Thread trapstep



hi list,
 
i installed php3-magick Version: 3:3.0.16-4 from 
woody. it installed the magick.so but no other file, no documentation at all. 
then i searched the web, but found nothing but links to this package. isn't 
there any documentation for this?
 
tia
trapstep


Re: Getting apache, PHP3, and PostgreSQL working together.

2000-07-18 Thread Remco Rijnders
In article <[EMAIL PROTECTED]>, Andrew Sullivan wrote:
>On Tue, Jul 18, 2000 at 05:31:15AM +0200, Remco Rijnders wrote:
>
>> So now with the cause pinned down, what can I do to fix this? I'd like
>> to run potato on this machine but really need version 7.* of
>> postgreSQL because of the foreign key support. Would upgrading just
>> the php3-pgsql package work, or would I then also need to upgrade
>> apache and all other things?
>
>The PHP3 packages from woody seem to work fine.  If you upgrade them,
>though, you'll get an upgraded apache, too.  And apache-ssl from woody
>conflicts with ssh, so if you need ssh, you can't have apache-ssl for now.
>
>You could compile the potato version of PHP against postgres 7.  That's what
>I did.  Just add a sources line to your sources.list.

I managed to solve the problem (thanks to your pointer earlier). In
the end I have downloaded php3-pgsql, php3 and apache-common from
woody. All other packages I could keep at the potato version,
including the main apache package.

The program I needed this for now works like a champ :) A thank you to
you and everyone else who attempted to help me. It is very much
appreciated.

Sincerely,

-- 
Remco Rijnders, ICQ: 760542 | Linux adanidas 2.2.14 is up 51 days,  8:52
http://www.starchat.net/| Reporter: Mr Gandhi, what do you think of
Phone:(+31) 70 3467809  |   Western Civilization?
Cellular: (+31) 6 22091723  | Gandhi:   I think it would be a good idea.



Re: Getting apache, PHP3, and PostgreSQL working together.

2000-07-18 Thread Andrew Sullivan
On Tue, Jul 18, 2000 at 05:31:15AM +0200, Remco Rijnders wrote:

> So now with the cause pinned down, what can I do to fix this? I'd like
> to run potato on this machine but really need version 7.* of
> postgreSQL because of the foreign key support. Would upgrading just
> the php3-pgsql package work, or would I then also need to upgrade
> apache and all other things?

The PHP3 packages from woody seem to work fine.  If you upgrade them,
though, you'll get an upgraded apache, too.  And apache-ssl from woody
conflicts with ssh, so if you need ssh, you can't have apache-ssl for now.

You could compile the potato version of PHP against postgres 7.  That's what
I did.  Just add a sources line to your sources.list.

> Last question... If this is a known incompatibilty, shouldn't the
> debian packaging mechanism prevent me from making oopsies like this by
> pointing out the dependencies to me?

I don't know.  I do know that you can install the php3-pgsql package without
having PostgreSQL installed, so apparently there is no dependency.

-- 
Andrew Sullivan  Computer Services
<[EMAIL PROTECTED]>Burlington Public Library
+1 905 639 3611 x158   2331 New Street
   Burlington, Ontario, Canada L7R 1J4



Re: Getting apache, PHP3, and PostgreSQL working together.

2000-07-17 Thread Remco Rijnders
In article <[EMAIL PROTECTED]>, 
Alberto Brealey wrote:
>> > > Fatal error: Call to unsupported or undefined function pg_connect() in
>> > > lib.inc.php on line 90
>
>did you try
>
>dl("pgsql.so");
>
>before using any pgsql functions? (you have to do this 'cuz pgsql is loaded
>as a module, not compiled into php interpreter).

No, I didn't try that. As I understand it that is not required when
you specify in the php3.ini file that this should be auto loaded. The
auto load for mysql support for example works without a flaw on this
same machine.

Thank you for the suggestion though :)

-- 
Remco Rijnders, ICQ: 760542 | Linux adanidas 2.2.14 is up 51 days,  7:45
http://www.starchat.net/| Reporter: Mr Gandhi, what do you think of
Phone:(+31) 70 3467809  |   Western Civilization?
Cellular: (+31) 6 22091723  | Gandhi:   I think it would be a good idea.



Re: Getting apache, PHP3, and PostgreSQL working together.

2000-07-17 Thread Remco Rijnders
On Mon, Jul 17, 2000 at 03:14:05PM -0400, Andrew Sullivan wrote:
> > Yes, it is called php3-pgsql if I am not mistaken. I have also checked
> > to see that the file pgsql.so is in /usr/lib/php3/apache/ as where it
> > should belong if I am not mistaken. I turned it on in php3.ini (see my
> > original post) and have restarted the apache server.
> 
> Are the versions you have compatible?  The Postgres 7.x version from woody
> does not work the the php3-pgsql package from potato.

As I woke up this morning and was still in bed, my mind slipped to
this problem again (Yes, I realise that is pretty sick :) and all at
once it occurred to me that I had installed the PostgreSQL packages
from woody. I wondered if it made a difference. Then when I got online
to check my mail I saw this reply from you.

So now with the cause pinned down, what can I do to fix this? I'd like
to run potato on this machine but really need version 7.* of
postgreSQL because of the foreign key support. Would upgrading just
the php3-pgsql package work, or would I then also need to upgrade
apache and all other things?

Last question... If this is a known incompatibilty, shouldn't the
debian packaging mechanism prevent me from making oopsies like this by
pointing out the dependencies to me?

Thank you for your time and help!

Sincerely,

Remmy

-- 
Remco Rijnders, ICQ: 760542 | Linux adanidas 2.2.14 is up 51 days,  6:56
http://www.starchat.net/| Reporter: Mr Gandhi, what do you think of
Phone:(+31) 70 3467809  |   Western Civilization?
Cellular: (+31) 6 22091723  | Gandhi:   I think it would be a good idea.



Re: Getting apache, PHP3, and PostgreSQL working together.

2000-07-17 Thread Alberto Brealey
On Mon, Jul 17, 2000 at 08:21:05PM +0200, Remco Rijnders wrote:
> On Fri, Jul 14, 2000 at 09:10:47AM -0400, Andrew Sullivan wrote:
> > On Fri, Jul 14, 2000 at 09:15:01AM +0200, Remco Rijnders wrote:
> > 
> > > Fatal error: Call to unsupported or undefined function pg_connect() in
> > > lib.inc.php on line 90
> > 
> > Did you install the PostgreSQL package for PHP?  And did you turn it on in
> > the php[3].ini?
> 
> Yes, it is called php3-pgsql if I am not mistaken. I have also checked
> to see that the file pgsql.so is in /usr/lib/php3/apache/ as where it
> should belong if I am not mistaken. I turned it on in php3.ini (see my
> original post) and have restarted the apache server.

did you try

dl("pgsql.so");

before using any pgsql functions? (you have to do this 'cuz pgsql is loaded
as a module, not compiled into php interpreter).

hope that helps,

Alberto Brealey
[EMAIL PROTECTED]



Re: Getting apache, PHP3, and PostgreSQL working together.

2000-07-17 Thread Remco Rijnders
On Fri, Jul 14, 2000 at 09:10:47AM -0400, Andrew Sullivan wrote:
> On Fri, Jul 14, 2000 at 09:15:01AM +0200, Remco Rijnders wrote:
> 
> > Fatal error: Call to unsupported or undefined function pg_connect() in
> > lib.inc.php on line 90
> 
> Did you install the PostgreSQL package for PHP?  And did you turn it on in
> the php[3].ini?

Yes, it is called php3-pgsql if I am not mistaken. I have also checked
to see that the file pgsql.so is in /usr/lib/php3/apache/ as where it
should belong if I am not mistaken. I turned it on in php3.ini (see my
original post) and have restarted the apache server.

I think I am doing everything by the book and that is why I am getting
a little frustrated by the error that won't go away.

Thank you for your attempt to help though :)

Sincerely,

-- 
Remco Rijnders, ICQ: 760542 | Linux adanidas 2.2.14 is up 50 days, 21:34
http://www.starchat.net/| Reporter: Mr Gandhi, what do you think of
Phone:(+31) 70 3467809  |   Western Civilization?
Cellular: (+31) 6 22091723  | Gandhi:   I think it would be a good idea.



Re: Getting apache, PHP3, and PostgreSQL working together.

2000-07-14 Thread Andrei Ivanov
All apache needs at this point is the php module. I assume you have that.
But you also need php with postgreSQL support, which is not there by
default. apt-get it ( I dont know the name of it, but this was a case for
me when I was getting mysql to work with php), and you should be fine.
Andrei

-
 Andrei S. Ivanov  
 [EMAIL PROTECTED]
 http://arshes.dyndns.org  
 UIN 12402354

 For GPG key, go to above URL/GnuPG
-



Re: Getting apache, PHP3, and PostgreSQL working together.

2000-07-14 Thread Remco Rijnders
In article <[EMAIL PROTECTED]>, John Pearson wrote:
>> I am trying to get apache, PHP3, and PostgreSQL to work together on my
>> Potato machine. I want to use the phpPgAdmin to give me a web
>> accessible interface to the PostgreSQL database. However trying to use
>> it gives me the following error:
>> 
>> Fatal error: Call to unsupported or undefined function pg_connect() in
>> lib.inc.php on line 90
>> 
>> This suggests to me that PHP is unawareof the PostgreSQL database
>> functions. I have read the readme files that come with php3-pgsql and
>> searched the web for solutions to this problem. They all seem to
>> suggest to edit /etc/php3/apache/php3.ini . In that file I have the
>> following snippets:
>> 
>> extension_dir   =   /usr/lib/php3/apache
>> ...
>> extension=pgsql.so
>> 
>> After having edited this file I issued an "apachectl restart" but it
>> still refuses to use the database functions I need. What do I do
>> wrong, and, more importantly, how do I fix this?
>
>You may need to stop Apache and then restart it; you haven't changed
>Apache's configuration you've changed PHP's, so you have to ensure
>that the PHP module is unloaded and then re-loaded to give effect to
>the change.  The simplest way I've found of doing this is to stop
>and restart Apache.

Hi John,

I have tried as suggested:

[EMAIL PROTECTED]:/home/remmy# apachectl stop
/usr/sbin/apachectl stop: httpd stopped
[EMAIL PROTECTED]:/home/remmy# apachectl start
/usr/sbin/apachectl start: httpd started

But I keep getting the same error :( And yes, I have tried to reload
the page in Netscape as well :)

Thank you,

-- 
Remco Rijnders, ICQ: 760542 | Linux adanidas 2.2.14 is up 47 days, 10:19
http://www.starchat.net/| Reporter: Mr Gandhi, what do you think of
Phone:(+31) 70 3467809  |   Western Civilization?
Cellular: (+31) 6 22091723  | Gandhi:   I think it would be a good idea.



Re: Getting apache, PHP3, and PostgreSQL working together.

2000-07-14 Thread John Pearson
On Fri, Jul 14, 2000 at 09:15:01AM +0200, Remco Rijnders wrote
> Hello all,
> 
> I am trying to get apache, PHP3, and PostgreSQL to work together on my
> Potato machine. I want to use the phpPgAdmin to give me a web
> accessible interface to the PostgreSQL database. However trying to use
> it gives me the following error:
> 
> Fatal error: Call to unsupported or undefined function pg_connect() in
> lib.inc.php on line 90
> 
> This suggests to me that PHP is unawareof the PostgreSQL database
> functions. I have read the readme files that come with php3-pgsql and
> searched the web for solutions to this problem. They all seem to
> suggest to edit /etc/php3/apache/php3.ini . In that file I have the
> following snippets:
> 
> extension_dir   =   /usr/lib/php3/apache
> ...
> extension=pgsql.so
> 
> After having edited this file I issued an "apachectl restart" but it
> still refuses to use the database functions I need. What do I do
> wrong, and, more importantly, how do I fix this?
> 
> All help is greatly appreciated.
> 

You may need to stop Apache and then restart it; you haven't changed
Apache's configuration you've changed PHP's, so you have to ensure
that the PHP module is unloaded and then re-loaded to give effect to
the change.  The simplest way I've found of doing this is to stop
and restart Apache.



John P.
-- 
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.mdt.net.au/~john Debian Linux admin & support:technical services



Getting apache, PHP3, and PostgreSQL working together.

2000-07-14 Thread Remco Rijnders
Hello all,

I am trying to get apache, PHP3, and PostgreSQL to work together on my
Potato machine. I want to use the phpPgAdmin to give me a web
accessible interface to the PostgreSQL database. However trying to use
it gives me the following error:

Fatal error: Call to unsupported or undefined function pg_connect() in
lib.inc.php on line 90

This suggests to me that PHP is unawareof the PostgreSQL database
functions. I have read the readme files that come with php3-pgsql and
searched the web for solutions to this problem. They all seem to
suggest to edit /etc/php3/apache/php3.ini . In that file I have the
following snippets:

extension_dir   =   /usr/lib/php3/apache
...
extension=pgsql.so

After having edited this file I issued an "apachectl restart" but it
still refuses to use the database functions I need. What do I do
wrong, and, more importantly, how do I fix this?

All help is greatly appreciated.

Sincerely,

A puzzled Remmy.

-- 
Remco Rijnders, ICQ: 760542 | Linux adanidas 2.2.14 is up 47 days, 10:47
http://www.starchat.net/| Reporter: Mr Gandhi, what do you think of
Phone:(+31) 70 3467809  |   Western Civilization?
Cellular: (+31) 6 22091723  | Gandhi:   I think it would be a good idea.



advice on php3

2000-06-08 Thread Chris Mason
I am developing a site that uses php3. One of the functions I am using is
str_replace() and it works fine on my hosting company's server as they run
the latest php3 version. However, the packaged stable version is 3.0.5 which
doesn't support this function.
I'm interested in your opinions on what my next move is. I need this
function, but the package doesn't support it. The unstable package has
dependancy problems and I am unwilling to risk other problems. I could
compile but I love the package system.
What's a boy to do?

Chris Mason
Box 340, The Valley, Anguilla, British West Indies
Tel: 264 497 5670 Fax: 264 497 8463
USA Fax (561) 382-7771
Take a virtual tour of the island
http://net.ai/ The Anguilla Guide
Find out more about NetConcepts
www.netconcepts.ai
bwz*mq




PHP4 vs PHP3

2000-06-08 Thread Jack Morgan
What is the difference between PHP3 and PHP4. I want to install them
with Mysql .deb's
Thanks 
Jack Morgan




Re: PHP3 cgi/apache

2000-06-01 Thread Viktor Rosenfeld
Andrew McRobert wrote:
> 
> hi
> 
> ...pls excuse the dumb-ness of this qstn, but how do I tell if I'm running
> php3-apache OR php3-cgi? does the former run automatically when apache runs?
> (provided there's a valid php3.ini file). If so, then how does php3-cgi run?

php3-cgi runs like any other cgi script.  Apache hands the php3 file to
php3 and return the output to the HTTP client.  Of course, this only
works, if Apache knows what to do with an php3 file, which it finds out
by looking into httpd.conf (or was it srm.conf?).  As of finding out,
which *is* actually running ...  Dunno.  Maybe the Apache logs can help?

MfG Viktor
-- 
Viktor Rosenfeld
E-Mail: mailto:[EMAIL PROTECTED]
or: mailto:[EMAIL PROTECTED]
HertzSCHLAG:http://www.informatik.hu-berlin.de/~rosenfel/hs/



PHP3 cgi/apache

2000-06-01 Thread Andrew McRobert
hi

...pls excuse the dumb-ness of this qstn, but how do I tell if I'm running
php3-apache OR php3-cgi? does the former run automatically when apache runs?
(provided there's a valid php3.ini file). If so, then how does php3-cgi run?

thanks

Andrew

-
Andrew McRobert LLB B.Sc(Comp. Sci)
IT Officer, School of Law
MURDOCH UNIVERSITY
Ph: 9360 6479
Fax: 9310 6671
e-mail: [EMAIL PROTECTED]




Re: Apache + PHP3 + MySQL = big mess

2000-05-17 Thread John Pearson
On Wed, May 17, 2000 at 03:16:20PM +0100, Oliver Hingst wrote
> Hello,
> I am using Debian "Potato" and I use Apache, PHP3 and every modules
> containing "php3" and "mysql" and MySQL server and client.
> I am going through a tutorial on DevShed (http://www.devshed.com) on
> creating a web database.  I have checked that PHP3 has been installed
> and runs properly.  No problems there.  I checked the MySQL
> configuration and set-up the relevant users and permissions.  No
> problems there, either.  I then had a look at my httpd.conf file, to see
> what modules were being loaded.  I saw that the libphp3.so and a
> mod_auth_mysql.so are uncommented.  I then wrote this PHP3 script:
> 

You need the php3, mysql-server and php3-mysql packages, which
from what you say are probably installed.

Most likely, you didn't check that the line
extension=mysql.so

appears in /etc/php3/{apache,cgi}/php3.ini

HTH,


John P.
-- 
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.mdt.net.au/~john Debian Linux admin & support:technical services



Re: Apache + PHP3 + MySQL = big mess

2000-05-17 Thread Dustin Whitney
You are probably missing the php3-mysql package.  I
had similar problems with getting imap to work until I
installed the php3-imap package.  Give that a shot

Dustin

--- Oliver Hingst <[EMAIL PROTECTED]>
wrote:
> Hello,
> I am using Debian "Potato" and I use Apache, PHP3
> and every modules
> containing "php3" and "mysql" and MySQL server and
> client.
> I am going through a tutorial on DevShed
> (http://www.devshed.com) on
> creating a web database.  I have checked that PHP3
> has been installed
> and runs properly.  No problems there.  I checked
> the MySQL
> configuration and set-up the relevant users and
> permissions.  No
> problems there, either.  I then had a look at my
> httpd.conf file, to see
> what modules were being loaded.  I saw that the
> libphp3.so and a
> mod_auth_mysql.so are uncommented.  I then wrote
> this PHP3 script:
> 
> 
>  Web Database Sample Index
>   
> 
>
>Data from mytable
>  mysql_connect("localhost", "webuser", "");
>  $query = "SELECT name, phone FROM mytable";
>  $result = mysql_db_query("example", $query); 
> 
>  if ($result) {
>echo "Found these entries in the
> database:";
>while ($r = mysql_fetch_array($result)) {
>  $name = $r["name"];
>  $phone = $r["phone"];
>  echo "$name, $phone";
>  }
>echo "";
>  } else {
>echo "No data.";
>   }
>mysql_free_result($result);
>?>
> 
>  Add new entry
> 
> 
> 
> Running this script gives me this error:
> Fatal error: Call to unsupported or undefined
> function mysql_connect()
> in /var/www/example/index.php3 on line 8
> 
> What am I missing ?
> 
> Oliver
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe
> [EMAIL PROTECTED] < /dev/null
> 
> 


__
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/



Apache + PHP3 + MySQL = big mess

2000-05-17 Thread Oliver Hingst
Hello,
I am using Debian "Potato" and I use Apache, PHP3 and every modules
containing "php3" and "mysql" and MySQL server and client.
I am going through a tutorial on DevShed (http://www.devshed.com) on
creating a web database.  I have checked that PHP3 has been installed
and runs properly.  No problems there.  I checked the MySQL
configuration and set-up the relevant users and permissions.  No
problems there, either.  I then had a look at my httpd.conf file, to see
what modules were being loaded.  I saw that the libphp3.so and a
mod_auth_mysql.so are uncommented.  I then wrote this PHP3 script:


 Web Database Sample Index
  

   
   Data from mytable
   ";
   while ($r = mysql_fetch_array($result)) {
 $name = $r["name"];
 $phone = $r["phone"];
 echo "$name, $phone";
 }
   echo "";
 } else {
   echo "No data.";
  }
   mysql_free_result($result);
   ?>

 Add new entry



Running this script gives me this error:
Fatal error: Call to unsupported or undefined function mysql_connect()
in /var/www/example/index.php3 on line 8

What am I missing ?

Oliver



RE: php3 package - how to install mysql into it

2000-05-11 Thread Sean 'Shaleh' Perry

On 11-May-2000 Chris Mason wrote:
> I'm installing apache and php3/mysql using dselect, but there is no mysql
> support present in php after I install the package. Is there a way to
> configure this?
> 

you have to enable the module in /etc/php3 (or some such directory in /etc it
may have moved).



php3 package - how to install mysql into it

2000-05-11 Thread Chris Mason
I'm installing apache and php3/mysql using dselect, but there is no mysql
support present in php after I install the package. Is there a way to
configure this?

Chris Mason
Box 340, The Valley, Anguilla, British West Indies
Tel: 264 497 5670 Fax: 264 497 8463
USA Fax (561) 382-7771
Take a virtual tour of the island
http://net.ai/ The Anguilla Guide
Find out more about NetConcepts
www.netconcepts.ai
bwz*mq




frozen - how to install Apache with php3 and mysql?

2000-05-11 Thread Chris Mason
I have upgraded to frozen and would like to install apache with php and
mysql support, using dselect and apt-get as the method, what do I have to do
to get this configuration installed. My previous attempts left me with
apache without php/mysql.

Chris Mason
Box 340, The Valley, Anguilla, British West Indies
Tel: 264 497 5670 Fax: 264 497 8463
USA Fax (561) 382-7771
Take a virtual tour of the island
http://net.ai/ The Anguilla Guide
Find out more about NetConcepts
www.netconcepts.ai
bwz*mq




Re: php3 supporting MySQL

2000-05-08 Thread Viktor Rosenfeld
Gergely Madarasz wrote:
> 
> On Mon, 8 May 2000, Umum Wijoyo wrote:
> 
> > Hello again...
> >
> > I've installed these following .deb packages:
> >
> > - apache --> works fine!
> > - MySQL  --> works fine!
> > - PHP3   --> why can't it support MySQL?
> >
> > Can anybody help me with this?
> 
> install php3-mysql and add the following line to php3.ini:
> extension=mysql.so

Or, if you just need mysql functionality for one particular script put

dl(mysql.so);

in the script.

(You still have to install php3-mysql, though.)

MfG Viktor
-- 
Viktor Rosenfeld
E-Mail: mailto:[EMAIL PROTECTED]
or: mailto:[EMAIL PROTECTED]
HertzSCHLAG:http://www.informatik.hu-berlin.de/~rosenfel/hs/



Re: php3 supporting MySQL

2000-05-08 Thread Gergely Madarasz
On Mon, 8 May 2000, Umum Wijoyo wrote:

> Hello again...
> 
> I've installed these following .deb packages:
> 
> - apache --> works fine!
> - MySQL  --> works fine!
> - PHP3   --> why can't it support MySQL?
> 
> Can anybody help me with this?

install php3-mysql and add the following line to php3.ini:
extension=mysql.so

-- 
Madarasz Gergely   [EMAIL PROTECTED]   [EMAIL PROTECTED]
 It's practically impossible to look at a penguin and feel angry.
 Egy pingvinre gyakorlatilag lehetetlen haragosan nezni.
   HuLUG: http://mlf.linux.rulez.org/


RE: php3 supporting MySQL

2000-05-08 Thread Dominic Blythe
perhaps the binary wasn't compiled using the --with-mysql option.
You may have to get the source and compile it yourself.


> -Original Message-
> From: Umum Wijoyo [mailto:[EMAIL PROTECTED]
> Sent: 08 May 2000 06:15
> To: debian-user@lists.debian.org
> Subject: php3 supporting MySQL
> 
> 
> Hello again...
> 
> I've installed these following .deb packages:
> 
> - apache --> works fine!
> - MySQL  --> works fine!
> - PHP3   --> why can't it support MySQL?
> 
> Can anybody help me with this?
> 
> Thanks!
> 
> Urip Hudiono
> --
> Bandung, Indonesia
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe 
> [EMAIL PROTECTED] < /dev/null
> 


php3 supporting MySQL

2000-05-08 Thread Umum Wijoyo
Hello again...

I've installed these following .deb packages:

- apache --> works fine!
- MySQL  --> works fine!
- PHP3   --> why can't it support MySQL?

Can anybody help me with this?

Thanks!

Urip Hudiono
--
Bandung, Indonesia


Re: php3-mode for xemacs

2000-05-04 Thread Damon Muller
Quoth martin, 
> short question: does anyone know of a php3 mode for xemacs?
> 
> developing php3 in html-mode is sort of annoying :-)

Short answer -> not that I know of, but I've heard that some of the
various C modes work well.

I personally use gvim. If vi is not your cup-of-tea, so be it, but the
syntax hilighting that it has for php is excelent. It does get a little
confused sometimes tho, and forget what is html and what is php (i jump
between the two a log), but other than that, I have no complaints.

cheers,

damon

-- 
Damon Muller ([EMAIL PROTECTED]) /  It's not a sense of humor.
* Criminologist /  It's a sense of irony
* Webmeister   /  disguised as one.
* Linux Geek  / - Bruce Sterling 

- Running Debian GNU/Linux: Doing my bit for World Domination (tm) -


pgpcL6zzdF5xT.pgp
Description: PGP signature


Re: php3-mode for xemacs

2000-05-04 Thread Arcady Genkin
martin <[EMAIL PROTECTED]> writes:

> short question: does anyone know of a php3 mode for xemacs?
> 
> developing php3 in html-mode is sort of annoying :-)

http://www.cs.huji.ac.il/~baryudin/php3_mode.html
-- 
Arcady Genkin http://www.thpoon.com
Nostalgia isn't what it used to be.


php3-mode for xemacs

2000-05-03 Thread martin
short question: does anyone know of a php3 mode for xemacs?

developing php3 in html-mode is sort of annoying :-)

tnx
-- 
Cynapsis Kommunikationsagentur GmbH
Dipl.-Ing. Martin Lorenz
Application Consultant und Tool Acquisition

Tel: +49 251 48265 24
Fax:   48
Rothenburg 14-16
D-48143 Muenster


Re: php3-pgsql module not loading?

2000-04-13 Thread Oliver Elphick
Andrew Sullivan wrote:
  >Hi,
  >
  >I'm looking to see if anyone has php3-pgsql working against postgresql 7
  >(from the unstable tree).  I had it all working nicely under potato, but I
  >saw that postgresql 7 was out, and I _really_ need foreign keys.  (A lack of
 ...
  >Does the module need to be compiled against the new version of postgres?  If
  >so, I guess I'll just compile php3 and postgres by hand.  Thanks for any
  >tips.
 
I think you will need to recompile php3

-- 
Oliver Elphick[EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
   PGP key from public servers; key ID 32B8FAA1
 
 "I sought the LORD, and he heard me, and delivered me 
  from all my fears."Psalms 34:41 



php3-pgsql module not loading?

2000-04-13 Thread Andrew Sullivan
Hi,

I'm looking to see if anyone has php3-pgsql working against postgresql 7
(from the unstable tree).  I had it all working nicely under potato, but I
saw that postgresql 7 was out, and I _really_ need foreign keys.  (A lack of
referential contraints is what got the old database here in trouble.) I
installed the postgres 7 beta from the unstable tree, and since then the
pgsql module does not seem to load (i.e. I'm not seeing it when I load up an
info.php3 page).  I have the module set to load automatically (here are the
relevant lines from my php3.ini file):

;
; Paths and Directories ;
;
[. . .]
extension_dir   =   /usr/lib/php3/apache; directory in which
;the loadable extensions (modules) reside

[. . .]
;;
; Dynamic Extensions ;
;;
extension=calendar.so
extension=crypt.so  
extension=pgsql.so

The relevant files are there:

blais:/usr/lib/php3/apache$ ls
calendar.so  crypt.so  pgsql.so
blais:/usr/lib/php3/apache$ 

Does the module need to be compiled against the new version of postgres?  If
so, I guess I'll just compile php3 and postgres by hand.  Thanks for any
tips.

A

-- 
Andrew Sullivan  Computer Services
<[EMAIL PROTECTED]>Burlington Public Library
+1 905 639 3611 x158   2331 New Street
   Burlington, Ontario, Canada L7R 1J4


RE: php3 does not support postgres?

2000-03-07 Thread Sean 'Shaleh' Perry

On 06-Mar-2000 Alberto Maurizi wrote:
> 
>   I know the subject is false: php3 DOES support Postgres.
>   But in my (daily upgraded) potato it seems not to.
>   A very simple call to pg_connect returns:
> 
> Fatal error: Call to unsupported or undefined function pg_connect()
> in functions.php3 on line 17
> 
>   In the apache configuration the following line is present:
> LoadModule php3_module /usr/lib/apache/1.3/libphp3.so
>   No other references to PG or PHP modules are present.
> 
>   Does anybody have an idea of what to do to activate
>   postgres functions in php3?
> 

This is discussed in its docs somewhere.  There is also php3 configuration to
do.  You must edit it and tell it which php3 modules you want on.  Look in
/etc/php3 or somesuch.


php3 does not support postgres?

2000-03-07 Thread Alberto Maurizi

I know the subject is false: php3 DOES support Postgres.
But in my (daily upgraded) potato it seems not to.
A very simple call to pg_connect returns:

Fatal error: Call to unsupported or undefined function pg_connect()
in functions.php3 on line 17

In the apache configuration the following line is present:
LoadModule php3_module /usr/lib/apache/1.3/libphp3.so
No other references to PG or PHP modules are present.

Does anybody have an idea of what to do to activate
postgres functions in php3?

Thanks,
Alberto Maurizi


help on PHP3 & MySQL Packages

2000-02-23 Thread bongkoy
hello all,

is the PHP3 package in slink already compiled in to work with MySQL ? 
ive installed php3, php3-msql and mysql-base/server but when i try to
connect to a .php3 script on my web server i get the following :

Fatal error: Call to unsupported or undefined function mysql_connect()
in /var/www/konik.php3 on line 7

any help greatly appreciated,
bongkoy

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


Re: PHP3 and MySQL

2000-02-14 Thread Nate Duehr
Ahh.. that's it!

On Mon, Feb 14, 2000 at 10:51:35AM -, Barry Platt wrote:
> Nate Duehr wrote: 
> > There *is* a way to get apache/php3/mysql to play nicely without having
> > to use the dl() for it in every script... I just can't for the life of
> > me, remember where I made the changes so it would work.  But I *know* I
> > found it in the configs for apache somewhere, and after changing it and
> > restarting apache, all was well... no having to do the dl() at the top
> > of every page.
> 
> You need to add: 
> 
> extension=mysql.so 
> 
> to /etc/php3/apache/php3.ini
> 
> Regards, 
> 
> Barry
> -- 
> Barry Platt ([EMAIL PROTECTED]), Systems Administrator
> Molecular Simulations Inc (www.msi-eu.com)
> 230/250 The Quorum, Barnwell Road, Cambridge CB5 8RE, UK
> tel: +44 1223 507562, fax: +44 1223 413301

-- 
Nate Duehr <[EMAIL PROTECTED]>

GPG Key fingerprint = DCAF 2B9D CC9B 96FA 7A6D AAF4 2D61 77C5 7ECE C1D2
Public Key available upon request, or at wwwkeys.pgp.net and others.


pgpwcy0QB6E0i.pgp
Description: PGP signature


Re: PHP3 and MySQL

2000-02-14 Thread J C Lawrence
On Mon, 14 Feb 2000 01:59:28 -0700 
Nate Duehr <[EMAIL PROTECTED]> wrote:

> There *is* a way to get apache/php3/mysql to play nicely without
> having to use the dl() for it in every script... 

Add "extension=mysql.so" to /etc/php/apache/php.ini

-- 
J C Lawrence Home: [EMAIL PROTECTED]
--(*)  Other: [EMAIL PROTECTED]
--=| A man is as sane as he is dangerous to his environment |=--


RE: PHP3 and MySQL

2000-02-14 Thread Barry Platt
Nate Duehr wrote: 
> There *is* a way to get apache/php3/mysql to play nicely without having
> to use the dl() for it in every script... I just can't for the life of
> me, remember where I made the changes so it would work.  But I *know* I
> found it in the configs for apache somewhere, and after changing it and
> restarting apache, all was well... no having to do the dl() at the top
> of every page.

You need to add: 

extension=mysql.so 

to /etc/php3/apache/php3.ini

Regards, 

Barry
-- 
Barry Platt ([EMAIL PROTECTED]), Systems Administrator
Molecular Simulations Inc (www.msi-eu.com)
230/250 The Quorum, Barnwell Road, Cambridge CB5 8RE, UK
tel: +44 1223 507562, fax: +44 1223 413301


Re: PHP3 and MySQL

2000-02-14 Thread Nate Duehr
I know this sounds vague, but it's late, and I can't find it on my
server box for some reason... but if it's any consolation:

There *is* a way to get apache/php3/mysql to play nicely without having
to use the dl() for it in every script... I just can't for the life of
me, remember where I made the changes so it would work.  But I *know* I
found it in the configs for apache somewhere, and after changing it and
restarting apache, all was well... no having to do the dl() at the top
of every page.

Good luck, if I find it, I'll try to remember to send you a message with
the exact location where I changed things.  (It was frustrating for me
too!)

On Wed, Feb 09, 2000 at 07:02:56PM +, Alisdair McDiarmid wrote:
> I'm trying to get PHP3 and MySQL to play nice, but they refuse. I want
> to load the mysql.so extension, so in the /etc/php3/apache/php3.ini I
> put `extension = mysql.so' and checked that extension_dir was correct.
> 
> This didn't work: php3 scripts without dl('mysql.so') in them fail to
> work:
> 
> Fatal error: Call to unsupported or undefined function mysql_connect()
> in /home/alisdair/public_html/test.php3 on line 4
> 
> Why isn't it working? Do I have to recompile PHP3 with MySQL support
> builtin?
> -- 
> Alisdair McDiarmid[EMAIL PROTECTED]
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
> 

-- 
Nate Duehr <[EMAIL PROTECTED]>

GPG Key fingerprint = DCAF 2B9D CC9B 96FA 7A6D AAF4 2D61 77C5 7ECE C1D2
Public Key available upon request, or at wwwkeys.pgp.net and others.


pgpzjyHN0zoFF.pgp
Description: PGP signature


Re: PHP3 and MySQL

2000-02-10 Thread Alisdair McDiarmid
On Thu, Feb 10, 2000 at 02:05:16PM +, Sven Gaerner wrote:
> Alisdair McDiarmid wrote:
> 
> > On Thu, Feb 10, 2000 at 08:07:11AM +1030, John Pearson wrote:
> > > On Wed, Feb 09, 2000 at 07:02:56PM +, Alisdair McDiarmid wrote
> > > > I'm trying to get PHP3 and MySQL to play nice, but they refuse. I want
> > > > to load the mysql.so extension, so in the /etc/php3/apache/php3.ini I
> > > > put `extension = mysql.so' and checked that extension_dir was correct.
> > > >
> > > > This didn't work: php3 scripts without dl('mysql.so') in them fail to
> > > > work:
  ^^^

> > > >
> > > > Fatal error: Call to unsupported or undefined function mysql_connect()
> > > > in /home/alisdair/public_html/test.php3 on line 4
> > > >
> > > > Why isn't it working? Do I have to recompile PHP3 with MySQL support
> > > > builtin?
> > >
> > > /etc/php3/apache/php3.ini is used by the Apache PHP3 module; if you
> > > are running PHP3 as a stand-alone interpreter you should make the
> > > same
> > > changes to /etc/php3/cgi/php3.ini
> >
> > No, I am using the Apache PHP3 module, but just to be safe I tried
> > that - no difference.
> 
> You can use   dl('../apache/mysql.so')  to load the lib.

I know this already (see above!) but I don't want to do it in the
scripts, I want to do it in the config file.
-- 
Alisdair McDiarmid[EMAIL PROTECTED]


Re: PHP3 and MySQL

2000-02-10 Thread Sven Gaerner
Alisdair McDiarmid wrote:

> On Thu, Feb 10, 2000 at 08:07:11AM +1030, John Pearson wrote:
> > On Wed, Feb 09, 2000 at 07:02:56PM +, Alisdair McDiarmid wrote
> > > I'm trying to get PHP3 and MySQL to play nice, but they refuse. I want
> > > to load the mysql.so extension, so in the /etc/php3/apache/php3.ini I
> > > put `extension = mysql.so' and checked that extension_dir was correct.
> > >
> > > This didn't work: php3 scripts without dl('mysql.so') in them fail to
> > > work:
> > >
> > > Fatal error: Call to unsupported or undefined function mysql_connect()
> > > in /home/alisdair/public_html/test.php3 on line 4
> > >
> > > Why isn't it working? Do I have to recompile PHP3 with MySQL support
> > > builtin?
> >
> > /etc/php3/apache/php3.ini is used by the Apache PHP3 module; if you
> > are running PHP3 as a stand-alone interpreter you should make the
> > same
> > changes to /etc/php3/cgi/php3.ini
>
> No, I am using the Apache PHP3 module, but just to be safe I tried
> that - no difference.
>
> Thanks,
> --
> Alisdair McDiarmid   [EMAIL PROTECTED]
>
> --
> Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] < /dev/null

You can use   dl('../apache/mysql.so')  to load the lib.

Sven

--
++
| Please reply only to [EMAIL PROTECTED]  |
| Other email addresses may no longer be valid...|
++




Re: PHP3 and MySQL

2000-02-09 Thread Alisdair McDiarmid
On Thu, Feb 10, 2000 at 08:07:11AM +1030, John Pearson wrote:
> On Wed, Feb 09, 2000 at 07:02:56PM +, Alisdair McDiarmid wrote
> > I'm trying to get PHP3 and MySQL to play nice, but they refuse. I want
> > to load the mysql.so extension, so in the /etc/php3/apache/php3.ini I
> > put `extension = mysql.so' and checked that extension_dir was correct.
> > 
> > This didn't work: php3 scripts without dl('mysql.so') in them fail to
> > work:
> > 
> > Fatal error: Call to unsupported or undefined function mysql_connect()
> > in /home/alisdair/public_html/test.php3 on line 4
> > 
> > Why isn't it working? Do I have to recompile PHP3 with MySQL support
> > builtin?
> 
> /etc/php3/apache/php3.ini is used by the Apache PHP3 module; if you
> are running PHP3 as a stand-alone interpreter you should make the
> same
> changes to /etc/php3/cgi/php3.ini

No, I am using the Apache PHP3 module, but just to be safe I tried
that - no difference.

Thanks,
-- 
Alisdair McDiarmid   [EMAIL PROTECTED]


Re: PHP3 and MySQL

2000-02-09 Thread John Pearson
On Wed, Feb 09, 2000 at 07:02:56PM +, Alisdair McDiarmid wrote
> I'm trying to get PHP3 and MySQL to play nice, but they refuse. I want
> to load the mysql.so extension, so in the /etc/php3/apache/php3.ini I
> put `extension = mysql.so' and checked that extension_dir was correct.
> 
> This didn't work: php3 scripts without dl('mysql.so') in them fail to
> work:
> 
> Fatal error: Call to unsupported or undefined function mysql_connect()
> in /home/alisdair/public_html/test.php3 on line 4
> 
> Why isn't it working? Do I have to recompile PHP3 with MySQL support
> builtin?

/etc/php3/apache/php3.ini is used by the Apache PHP3 module; if you 
are running PHP3 as a stand-alone interpreter you should make the same
changes to /etc/php3/cgi/php3.ini


HTH,


John P.
-- 
[EMAIL PROTECTED]
[EMAIL PROTECTED]
"Oh - I - you know - my job is to fear everything." - Bill Gates in Denmark


PHP3 and MySQL

2000-02-09 Thread Alisdair McDiarmid
I'm trying to get PHP3 and MySQL to play nice, but they refuse. I want
to load the mysql.so extension, so in the /etc/php3/apache/php3.ini I
put `extension = mysql.so' and checked that extension_dir was correct.

This didn't work: php3 scripts without dl('mysql.so') in them fail to
work:

Fatal error: Call to unsupported or undefined function mysql_connect()
in /home/alisdair/public_html/test.php3 on line 4

Why isn't it working? Do I have to recompile PHP3 with MySQL support
builtin?
-- 
Alisdair McDiarmid[EMAIL PROTECTED]


Re: PHP3 + Mysql -> connecting problems

2000-01-27 Thread Jorge Sousa
BINGO

Its working now,

Thank you very much Shao.

Have fun...


Jorge
- Original Message -
From: Shao Zhang <[EMAIL PROTECTED]>
To: Jorge Sousa <[EMAIL PROTECTED]>
Cc: 
Sent: Thursday, January 27, 2000 4:52 AM
Subject: Re: PHP3 + Mysql -> connecting problems


> Hi,
> I think you will need to load the library. try this in your php
> scripts:
>
> dl("mysql.so");
>
> And make sure you have these lines in your
> /etc/php3/cgi/php3.ini:
>
> extension_dir   =   /usr/lib/php3/cgi
> extension = mysql.so
>
>
> Shao.
>
> Jorge Sousa [EMAIL PROTECTED] wrote:
> > Hi all,
> >
> > I have php3 installed and running, i also installed the php-mysql
packages
> > but whenever I try to access a php3 script with mysql functions the
script
> > will fail with the message:
> >
> > "Fatal error: Call to unsupported or undefined function mysql_connect()
in
> > /home/www/projectoX/teste.php3 on line 11"
> >
> > sure i'm missing something, just don't know what?
> >
> > Any hints??
> >
> >
> > Thanks in advance
> >
> >
> > Jorge Sousa
> >
> >
> >
> > --
> > Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] <
/dev/null
> >
> >
>
> --
>

> Shao Zhang - Running Debian 2.1  ___ _   _
> Department of Communications/ __| |_  __ _ ___  |_  / |_  __ _ _ _  __
_
> University of New South Wales   \__ \ ' \/ _` / _ \  / /| ' \/ _` | ' \/
_` |
> Sydney, Australia   |___/_||_\__,_\___/
/___|_||_\__,_|_||_\__, |
> Email: [EMAIL PROTECTED]
|___/
>

_


Re: PHP3 + Mysql -> connecting problems

2000-01-27 Thread Shao Zhang
Hi,
I think you will need to load the library. try this in your php
scripts:

dl("mysql.so");

And make sure you have these lines in your
    /etc/php3/cgi/php3.ini:

extension_dir   =   /usr/lib/php3/cgi
extension = mysql.so


Shao.

Jorge Sousa [EMAIL PROTECTED] wrote:
> Hi all,
> 
> I have php3 installed and running, i also installed the php-mysql packages
> but whenever I try to access a php3 script with mysql functions the script
> will fail with the message:
> 
> "Fatal error: Call to unsupported or undefined function mysql_connect() in
> /home/www/projectoX/teste.php3 on line 11"
> 
> sure i'm missing something, just don't know what?
> 
> Any hints??
> 
> 
> Thanks in advance
> 
> 
> Jorge Sousa
> 
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
> 
> 

-- 

Shao Zhang - Running Debian 2.1  ___ _   _
Department of Communications/ __| |_  __ _ ___  |_  / |_  __ _ _ _  __ _ 
University of New South Wales   \__ \ ' \/ _` / _ \  / /| ' \/ _` | ' \/ _` |
Sydney, Australia   |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, |
Email: [EMAIL PROTECTED]  |___/ 
_


Re: PHP3 + Mysql -> connecting problems

2000-01-27 Thread Saisanthosh B
> "Fatal error: Call to unsupported or undefined function mysql_connect() in
> /home/www/projectoX/teste.php3 on line 11"

add the following line to your .php3 code: 

dl ("mysql.so"); 

--
saisanthosh


PHP3 + Mysql -> connecting problems

2000-01-27 Thread Jorge Sousa
Hi all,

I have php3 installed and running, i also installed the php-mysql packages
but whenever I try to access a php3 script with mysql functions the script
will fail with the message:

"Fatal error: Call to unsupported or undefined function mysql_connect() in
/home/www/projectoX/teste.php3 on line 11"

sure i'm missing something, just don't know what?

Any hints??


Thanks in advance


Jorge Sousa



Re: PHP3 String functions not available

1999-12-05 Thread Gergely Madarasz
On Sun, 5 Dec 1999, Sven Gaerner wrote:

> I have installed PHP3 as cgi- and apache-module on an slink-based machine. I
> also have installed some PHP-modules (mysql and imap). When I try to call a
> string function (strip_tags) I get an error message in my browser window: call
> to unsupported function...
> It seems to be that this module is not available but in dselect there are only
> PHP3 modules that supports database or graphics functions. How can I use the
> string functions??

The php3.deb package contains (almost) all php modules which need no
special external libraries, so it contains the string functions too.
The problem is that strip_tags was added in version 3.0.8 while slink
contains 3.0.5. There might be some newer versions of php compiled for
slink on http://netgod.net/x


-- 
Madarasz Gergely   [EMAIL PROTECTED]   [EMAIL PROTECTED]
 It's practically impossible to look at a penguin and feel angry.
 Egy pingvinre gyakorlatilag lehetetlen haragosan nezni.
   HuLUG: http://mlf.linux.rulez.org/


PHP3 String functions not available

1999-12-05 Thread Sven Gaerner
Hi!

I have installed PHP3 as cgi- and apache-module on an slink-based machine. I
also have installed some PHP-modules (mysql and imap). When I try to call a
string function (strip_tags) I get an error message in my browser window: call
to unsupported function...
It seems to be that this module is not available but in dselect there are only
PHP3 modules that supports database or graphics functions. How can I use the
string functions??

Thanks for your help...

Bye,

Sven


Re: PHP3-3.0.12-7

1999-09-22 Thread John Pearson
On Tue, Sep 21, 1999 at 06:06:16PM +0200, Alfred Munnikes wrote
> Hello
> 
> When I'm compiling PHP3-3.0.12-7 (potato source) on my Debian Slink
> system (libc6 2.0.7.19981211-6, and the only updated package is
> debhelper 2.0.43 )  I get the next error:
> 
> ld -Bshareable -lc -o libphp3.so ./mod_php3.o libmodphp3-so.a
> -L/usr/local/lib -L/usr/local/lib -lz -ldb pcrelib/libpcre.a -lm -ldl
> -lcrypt -lnsl -lresolv -Lpcrelib -lpcre -lm -lcrypt -ldbm -ldb
> ld: cannot open -ldbm: No such file or directory
> apxs:Break: Command failed with rc=65536
> make[1]: *** [libphp3.so] Error 1
> make[1]: Leaving directory `/var/tmp/php3-3.0.12/apache'
> make: *** [apache-stamp] Error 2 
> 
> With error's like this I normally change the MakeFile by removing the
> "-ldbm", but I think that that isn't the right way.
> 
> Can someone tell me how to solve progblems like this (ld cann't find
> - )
> and what packages must I have to compile PHP3 from potato source on my
> slink system (might it be an idee to make source-dependences ?)
> 
> If someone know a place where I can get a precompiled versie for Slink
> it is good too.
> 

You probably need the libgdbmg1-dev package.

A good place to start is to look at the compiled .deb in potato, and
check its dependencies; if it needs 'libxyz' to run, you probably need
'libxyz-dev' to build it.

After you install libgdbmg1-dev unpack the PHP sources and run debian/rules
from scratch, as the configure script may not recognize that your system
now has the needed library (as it was initially run while it was missing). 

Also, read the INSTALL notes that come in php's source directory; I seem
to recall that it gave pointers to a couple of libraries (freetype-dev?)
you may need but may not have noticed.

Good luck,

John P.
-- 
[EMAIL PROTECTED]
[EMAIL PROTECTED]
"Oh - I - you know - my job is to fear everything." - Bill Gates in Denmark


PHP3-3.0.12-7

1999-09-21 Thread Alfred Munnikes
Hello

When I'm compiling PHP3-3.0.12-7 (potato source) on my Debian Slink
system (libc6 2.0.7.19981211-6, and the only updated package is
debhelper 2.0.43 )  I get the next error:

ld -Bshareable -lc -o libphp3.so ./mod_php3.o libmodphp3-so.a
-L/usr/local/lib -L/usr/local/lib -lz -ldb pcrelib/libpcre.a -lm -ldl
-lcrypt -lnsl -lresolv -Lpcrelib -lpcre -lm -lcrypt -ldbm -ldb
ld: cannot open -ldbm: No such file or directory
apxs:Break: Command failed with rc=65536
make[1]: *** [libphp3.so] Error 1
make[1]: Leaving directory `/var/tmp/php3-3.0.12/apache'
make: *** [apache-stamp] Error 2 

With error's like this I normally change the MakeFile by removing the
"-ldbm", but I think that that isn't the right way.

Can someone tell me how to solve progblems like this (ld cann't find
- )
and what packages must I have to compile PHP3 from potato source on my
slink system (might it be an idee to make source-dependences ?)

If someone know a place where I can get a precompiled versie for Slink
it is good too.

Alfred  

Note: Sorry for the poor English, I'm not very good in that language.
-- 
http://munnikes.op.het.net/?main.shtml
Debian GNU/Linux 2.1, kernel 2.2.12 at  5:45pm  up 18 min


Re: Apache+PHP3

1999-09-17 Thread Marcin Owsiany
On Fri, Sep 17, 1999 at 09:43:50AM -0700, Seth R Arnold wrote:
> Now I am lost. :)


I don't have the original question post handy, but i can remember the
configuration/compilation/installation commands were all OK, but there was a
lacking "make install" in apache directory, only a "make" was issued there.
This might have been a typo, but... also might not.

Marcin

-- 

-
Marcin Owsiany
[EMAIL PROTECTED]
-


Re: Apache+PHP3

1999-09-17 Thread Marcin Owsiany
On Thu, Sep 16, 1999 at 06:02:38PM -0700, Seth R Arnold wrote:
> On Fri, Sep 17, 1999 at 12:47:02AM +0200, Marcin Owsiany wrote:
> > On Thu, Sep 16, 1999 at 04:44:21PM +0700, Usef Saiful Ulum wrote:
> > > # make; make install
> > 
> > err... shouldn't it be make && make install instead?
> 
> The && means "execute the next one only if this one worked". If you really
> trust the source, make ; make install works fine. If you are not so sure it
> will compile, make && make install might save some headaches by preventing
> a not-fully-compiled program from being installed.
> 
> Unfortunatly, it is unlikely to help Usef directly in this case, though it
> *is* good practice. :)

but I'm not saying:
do make && make install   instead of make;make install
but:
do make && make install   instead of just make



Marcin

-- 

-
Marcin Owsiany
[EMAIL PROTECTED]
-


Re: Apache+PHP3

1999-09-17 Thread Seth R Arnold
On Fri, Sep 17, 1999 at 12:47:02AM +0200, Marcin Owsiany wrote:
> On Thu, Sep 16, 1999 at 04:44:21PM +0700, Usef Saiful Ulum wrote:
> > # make; make install
> 
> err... shouldn't it be make && make install instead?

The && means "execute the next one only if this one worked". If you really
trust the source, make ; make install works fine. If you are not so sure it
will compile, make && make install might save some headaches by preventing
a not-fully-compiled program from being installed.

Unfortunatly, it is unlikely to help Usef directly in this case, though it
*is* good practice. :)

-- 
Seth Arnold | http://www.willamette.edu/~sarnold/
Hate spam? See http://maps.vix.com/rbl/ for help
Hi! I'm a .signature virus! Copy me into
your ~/.signature to help me spread!


Re: Apache+PHP3

1999-09-16 Thread Marcin Owsiany
On Thu, Sep 16, 1999 at 04:44:21PM +0700, Usef Saiful Ulum wrote:
> Hi there,
> 
> I have installed Apache 1.3.9 with PHP3:
> 
> # tar xvzf apache_1.3.9.tar.gz
> # tar xvzf php-3.0.12.tar.gz
> # cd apache_1.3.9
> # ./configure --prefix=
> # cd ../php-3.0.12
> # ./configure --with-mysql=
>   --with-apache=../apache_1.3.9 --enable-track-vars
> # make; make install
> # cd ../apache_1.3.9
> # ./configure --prefix=
>   --activate-module=src/modules/php3/libphp3.a
> # make

err... shouldn't it be make && make install instead?

> # cd ../php-3.0.12
> # cp php3.ini-dist /usr/local/lib/php3.ini
> 
> The problem is: I didn't get any files on   ???
> # ls -al 
> total 0
> #
> 
> How this could be, and how to solve the problem?

hope this helps

Marcin

-- 


Marcin Owsiany
[EMAIL PROTECTED]



Apache+PHP3

1999-09-16 Thread Usef Saiful Ulum
Hi there,

I have installed Apache 1.3.9 with PHP3:

# tar xvzf apache_1.3.9.tar.gz
# tar xvzf php-3.0.12.tar.gz
# cd apache_1.3.9
# ./configure --prefix=
# cd ../php-3.0.12
# ./configure --with-mysql=
  --with-apache=../apache_1.3.9 --enable-track-vars
# make; make install
# cd ../apache_1.3.9
# ./configure --prefix=
  --activate-module=src/modules/php3/libphp3.a
# make
# cd ../php-3.0.12
# cp php3.ini-dist /usr/local/lib/php3.ini

The problem is: I didn't get any files on   ???
# ls -al 
total 0
#

How this could be, and how to solve the problem?


Mysql and php3 problem

1999-09-13 Thread Gareth
G'day all,
I am having trouble getting php3 to recognize other librariies
in /usr/lib/php3/apache/ 
there is calendar.so  crypt.so  gd.so  mysql.so
but i get the following error message on trying to use any functions form
them

Fatal error: Call to unsupported or undefined function mysql_connect() in
/home/gwalters/public_html/example/index.php3 on line 8

I had a look /etc/mysql/my.cnf
and everything looks correct 
I am running potato with kernel 2.2.12

any ideas ???


---Gareth


apache-ssl + php3 + libpam

1999-09-09 Thread Marcin Kurc
Apache-ssl 1.3.6-15.2 with php 3.0.12-2 and libpam 0.69-1 fails giving error:

Syntax error on line 105 of /etc/apache-ssl/httpd.conf:
Cannot load /usr/lib/apache/1.3/libphp3.so into server: /lib/libpam.so.0: 
undefined symbol: _pam_get_static_sym

httpd.conf line 105: LoadModule php3_module /usr/lib/apache/1.3/libphp3.so
so no error there, anyone knows what's wrong with it?

-- 
Marcin Kurc
Indiana Institute of Technology
System Administrator
http://me.indtech.edu   http://www.indtech.edu


apache 1.3.9-2 + php3 3.0.12-3

1999-09-02 Thread Marcin Kurc
Does anyone have problem with starting apache 1.3.9-2 with php3 3.0.12-3?

error.log
[Wed Sep  1 19:23:15 1999] [notice] caught SIGTERM, shutting down

-- 
Marcin Kurc
Indiana Institute of Technology
System Administrator
http://me.indtech.edu   http://www.indtech.edu


re: php3

1999-08-29 Thread Michael Fox
I have a php3 html file, and inside it has the mysql_connect blah stuff, ie
which mysql server to use and what username, but what is syntax for putting
in a password..

I can't seem to manage to get my php3 script to logon using a username pass
to the database..

Any help would be appreciated.. I have searched the docs/manuals and still
no luck.

Reply to me directly, since I have not rejoined the list.

Michael


php3 -> mysql.so

1999-07-31 Thread Bob C. Ruddy
On the stable version of debian, I've got php3 module loaded into apache.
That part works fine. I am trying to load modules into php though
specifically the mysql module. But they are not loading. Here is what is
in my /etc/php3/apache/php3.ini file. The two modules listed mysql.so and
calendar.so are located in /usr/lib/php3/apache and have permsisions 644

Thanks for the help.
Bob



extension_dir   =   /usr/lib/php3/apache; directory in which 
the loadable extensions (modules) reside

;;
; Dynamic Extensions ;
;;
; if you wish to have an extension loaded automaticly, use the
; following syntax:  extension=modulename.extension
 extension=mysql.so
 extension=calendar.so



Second PHP3 Re: cold fusion & linux

1999-07-20 Thread Stephen Pitts
On Mon, Jul 19, 1999 at 11:33:55PM -0300, Chris Dion wrote:
> I've heard of a product called 'php' which is supposed to be good, but
> don't have any experience using it.
> 
> FAQ is at http://www.php.net/FAQ.php3

I ported a medium-size web site using IIS4/ASP to Apache/PHP3, and I was very
impressed. Its a fine example of a high-quality Open Source alternative
to commerical products.

Another product I'm trying to get around to looking at is called Zope.
It's a Python-based solution that looks to be a little more complex,
but fairly powerful. I've heard really good things on comp.lang.python,
but I have no personal experience. Check it out at http://www.zope.org.

Also, be leery of PHP-like products on Freshmeat. They pop-up almost
once a week now!

> Chris Dion
> 
> Benjamin E Frame wrote:
> > 
> > I'm a big fan of Linux w/Apache, but at work we use Allaire's Cold Fusion
> > (WinNT) for web-database interaction.  Has anyone found a way to use Cold
> > Fusion with Debian (or another dist.)?  If so, what packages do you use?
> > I've heard about , is it any good?  Allaire's site says that
> > they plan to offer support for linux in the future, but as far as I can
> > tell, they don't yet.

> > 
> > I'd appreciate any information on Cold-Fusion like products for Linux that
> > you might have.  Thanks!!!
> > please send any responses to  [EMAIL PROTECTED]
> > 
> > Ben Frame
> > 
> > --
> > Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
> 

-- 
Stephen Pitts
[EMAIL PROTECTED]
webmaster - http://www.mschess.org


new php3 packages

1999-07-02 Thread Gergely Madarasz
Hello!

I've made some preliminary php3 packages, version 3.0.11. Anyone
interested can download them from ftp://ftp.elte.hu/pub/people/gorgo/php3
These packages fix the long-standing mysql problem which was caused by the
mysql package reorganization and the fact that there wasn't a good mysql
package in potato/main I could link against. The libmysqlclient6 package
the php3-mysql module depends on is currently now in incoming but will be
installed into archive tomorrow. I expect to upload the final 3.0.11
packages by then too. So if you test them now, please notify me of any
success/failure reports.

In the next upload expect some new modules like snmp, imagemagick, pcre,
but first I want to get this package set into the archive as soon as
possible, so no new packages yet.

-- 
Madarasz Gergely   [EMAIL PROTECTED] [EMAIL PROTECTED]
  It's practically impossible to look at a penguin and feel angry.
  Egy pingvinre gyakorlatilag lehetetlen haragosan nezni.
HuLUG: http://mlf.linux.rulez.org/


Re: [PHP3] IMP and folders

1999-06-22 Thread Rene H. Larsen
Mario Jorge Nunes Filipe <[EMAIL PROTECTED]> writes:
>   First of all, we're talking about a 2.1 debian machine. It's running
> imap server version 4.4(-4). PHP version is 3.0.7 amd imp version is
> 2.0.7.
> 
>   My defaults.php3 says the following in the folders section:
> 
> /* Folder configuration */
> $default->folders   = 'mail/';
> $default->use_imap_subscribe= true;
> $default->show_dotfiles = false;
> $default->sent_mail = 'sent-mail';
> $default->save_sent_mail= true;
> $default->postponed = 'postponed-msgs';

Since you're using the Debian supplied imap daemon the folders entry
must be blank:

$default->folders   = '';

Check /usr/doc/imap/README.Debian for an explanation.

HTH.
-- 
   /'"`\  zzzZ  | My PGP Public Key is available at:
  ( - - )   | 
--oooO--(_)--Oooo-- 
 Don't ya just hate it when there's not enough room to fin 


Re: [PHP3] IMP and folders

1999-06-18 Thread Mario Jorge Nunes Filipe
Chuck Hagenbuch wrote:
> 
> Quoting Mario Jorge Nunes Filipe <[EMAIL PROTECTED]>:
> 
> > I'm installing IMP on our mail server. Most users read mail using some
> > POP3 client but some still use pine (don't ask, it's a long story). My
> > problem is that i can't configure imp to read the folders that already
> > exist in the mail directory. Does anyone have a clue on how to fix this!
> 
> Well, you missed the one list you should have mailed: [EMAIL PROTECTED]

You're right!

 
> Now, as to your problem, first see the imp faq: http://faq.horde.org/.

Haven't checked on this one yet (next step)... 

> Then
> mail the list with many more details than you gave above - what imap server,
> what your current settings are, etc - and we should be able to fix it quickly.

First of all, we're talking about a 2.1 debian machine. It's running
imap server version 4.4(-4). PHP version is 3.0.7 amd imp version is
2.0.7.

My defaults.php3 says the following in the folders section:

/* Folder configuration */
$default->folders   = 'mail/';
$default->use_imap_subscribe= true;
$default->show_dotfiles = false;
$default->sent_mail = 'sent-mail';
$default->save_sent_mail= true;
$default->postponed = 'postponed-msgs';


Any other info you need, please tell me and I will provide it ...

Thanks (off to check the faq)

-- 
Mario Filipe 
[EMAIL PROTECTED]
http://neptuno.sc.uevora.pt/~mjnf

smime.p7s
Description: S/MIME Cryptographic Signature


Problems getting mysql functions to work in php3

1999-05-25 Thread Allen B. Riddell


Ok, I install php3 right (well, at least it works) in apache so far as I 
can tell. But I can't get the mysql functions to work,

I installed php3-mysql -- and now I have a line in my php3.ini:
extension=mysql.so

and mysql.so is in (i've checked) my extension_dir.

I don't see any error messages other than when I try to use mysql functions 
(like mysql_connect) -- is there any way to debug this or see what the 
problems are in loading mysql.so into php3?


Thanks,

-abr


Re: PHP3 and Mysql -- Broken Module

1999-05-18 Thread budi w
i've got that problem too and then i recompile  apache,mysql and php3 (all in 
source)
and all works fine
regards
budi wibowo
[EMAIL PROTECTED]


jeb wrote:

> I'm using the latest Debain versions of PHP3 and the PHPMysql module.
> I'm also using the latest version of Mysql. It works fine.
>
> PHP3 seems to work by itself; PHP3 scripts that don't access Mysql
> work.
>
> When I try to run a PHP script, I get a message saying
>
> "Call to unsupported or undefined function mysql_connect()"
>
> I've added the mysql module to the PHP configuration, but it's
> apparent that it can find a library or something that it needs.
>
> Does anyone have this combination working, or are the the PHP module
> for Mysql broken?
>
> Thanks,
>
> JEB
>
> --
> Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] < /dev/null




  1   2   >