php-install Digest 19 Nov 2002 21:42:17 -0000 Issue 1124

Topics (messages 9179 through 9188):

4.2.3 mail and safe mode problem
        9179 by: Sven Meiborg Sørensen

problem with snmp on php
        9180 by: Girish

Have fun! 3 Days for free!  or for one month! every day 24 hours!
        9181 by: hotstuff.jonnycam.zapto.org

Re: IIS and PHP 4
        9182 by: Stephen Edmonds

Re: Help, getting nothing from $_GET
        9183 by: Stephen Edmonds

Re: Lost connection to MySQL server during query
        9184 by: John Thorne

Problem with mail module on Win32
        9185 by: Jessica Gaskins
        9186 by: Rich Gray

PHP_CONFIG_FILE_PATH ignored?
        9187 by: Dave Pfister

Configure freezing on pthreads_cflags?
        9188 by: Dan Lowe

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
The optional fifth parameter to mail() is unconditionally disabled with safe
mode turned on in php 4.2.3.
A number of (semi-)trusted websites on my servers rely heavily on this
parameter which worked fine with safe mode turned on in 4.2.2, so I'm
prevented from upgrading to 4.2.3.

Can the php developers be persuaded to make re-enabling the fifth mail()
parameter in safe mode a configuration option in coming versions?

Best regards,
Sven M. Sorensen
University of Southern Denmark
--- End Message ---
--- Begin Message ---
Dear sir,

   I have installed php-4.0.6 on solaris-7.8 machine.I am using Apache web server.

I have successfully installed snmp in php using the command -with-snmp in configure 
command.

Now the PROBLEM is that when i give a command say
$get=snmpget("localhost:7878","democommunity",".1.3.6.1.4.1.32.1.0",6000,3);

print "the get values is $get";


I get the value as  =====>the get values is "all"

Earlier when i had installed --i used to get value like ===> enterprises.32.1.0=all 

I have not set the set_quick_print ,it is set as default.

My whole front end is based on the enterprises.32.1.0=all  value and now i am getting 
only

"all"...........

This is causing me a lot of problems......
Kindly let me know what the problem is ..I would be very thankful



Girish Pai
Cellcloud Technologies

Girish Pai
Cellcloud Technologies

--- End Message ---
--- Begin Message ---
Show this line!

http://www.tgpfriendly2.com/members/switzerland/pussyline/

it\'s  an switzerline 

Have fun!  Days for free!

http://www.tgpfriendly2.com/members/switzerland/pussyline/


--- End Message ---
--- Begin Message ---
My mail() works fine on XP. However, this is because my server has a
seperately run mail system installed. I also have the sutible entries in my
DNS (MX Records) to allow mail to be recieved by others. It was fairly easy
to set up, and if anyone is interested I will try my best to help you out

Stephen

----- Original Message -----
From: "Mike Franklin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 18, 2002 10:13 PM
Subject: [PHP-INST] IIS and PHP 4


I am using php 4.2.2 and IIS 5 and everything works except sending mail
using the mail() command.  I understand this is probably not a bug with your
server, but it seems a lot of people have had this problems with mail() not
working on a windows machines.  Is there any suggestions on this one?

Thanks
Mike

**********************************************
Mike Franklin                ph:(805)893-2102
Computer Services            fax:(805)893-8373
Instructional Resources, UCSB :):):):):):):);)
**********************************************




--- End Message ---
--- Begin Message ---
Also, try calling phpinfo(32);

The 32 settings makes it show all the variables and how to access them
EG _SERVER["NAME"] mysever
Just add on the $ and you have the variable to use

Stephen

----- Original Message ----- 
From: "Robert Duran" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 18, 2002 9:22 PM
Subject: [PHP-INST] Help, getting nothing from $_GET


   I've installed PHP and it is working except for parameters in the 
URL.  I'm aware of the register globals change and am trying to use 
$_GET to read parameters passed in the url (i.e. 
http://localhost/~me/test.php?myvar=2).  I also noticed that if I 
register a session, the session url parameter (PHPSESSID) has a new 
value every time I visit the page.  I only have this problem on my 
laptop, I installed the same software on my server and it works fine 
there.   Here's some info:

Laptop:
PowerBook G4
512 Megs Memory
Mac OS 10.2.2 (Jaguar)
Apache 1.3.26
PHP 4.2.1 (openbase support added)

Server:
Xserve
Dual 1Ghz G4
512 Megs memory
Mac OS 10.2.2
Apache 1.3.26
PHP 4.2.1 (openbase support added)

   Here's a code snippet from inside the body tag of test2.php:

{{

<?php

  $avar = 50;

  $tvar = 60;

  $svar = $_GET[ "svar"];
  echo "$avar";
  echo "test";
  echo "$tvar";
  echo "test";
  echo "$svar";
?>

}}<br><br>

   I call this file with:

http://localhost/~mysite/test2.php?svar=2

   The resulting page displays:

{{ test60test }}

On my server I access the exact same file with:

http://www.mysite.com/test2.php?svar=2

and get:

{{ test60test2 }}

Notice that it saw the svar assignment.   Also note that neither case 
made the assignment to avar.

I've been trying to resolve this for days.  Right now i'm thinking it 
has to do with using localhost for my local web service.  I've tried 
setting ServerName in the apache config to both localhost and 127.0.0.1 
and have had no luck.  I need to have my website function when my 
laptop is not connected to the internet (i.e. no DNS available).

All references to $_GET I find in the archives involve the new register 
globals default.  That isn't the problem i'm having.

I'm quite at a loss now.  Any help would be appreciated.

Thanks (a lot) in advance,

---------------------------------
Robert Duran
[EMAIL PROTECTED]
[EMAIL PROTECTED]
---------------------------------


--- End Message ---
--- Begin Message ---
My fix was to update the following:
glibc-2.3.2.i386.rpm
glibc-common-2.3.2.i386.rpm
nscd-2.3--2.i386.rpm

jrt

"Lukasz Karapuda" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello John.
> I am working with a clean install of Redhat 7.3 / php.4.2.2 / MySQL
3.23.49.
> Everything is installed correctly and verified.
>
> However while trying to connect to the MySQL server from outsite of
> localhost I get the error:
>
> Lost connection to MySQL server during query.
>
> After I tried to upgrade to MySQL 3.23.52, which is not an official RedHat
> 7.3 package everything seemed to be working correctly.
>
> If you find any solution to your problem I would appreciate you getting
back
> to me.
>
> Thanks in advance,
> Lukasz Karapuda
> [EMAIL PROTECTED]
>
> "John Thorne" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Working with new clean install of Redhat 8.0 and
> > Apache 2.0.40 / php 4.2.2 / mySQL 3.23.52
> >
> > I have a phpinfo page and mySQL is setup
> >
> > When ever I try to attach to mySQL
> > thru php (DreamweaverMX/phpmysqladmin)
> > I get the following error:
> >
> > Lost connection to MySQL server during query
> >
> > Is there an article on setting up these new versions of
> > Apache/mySQL/PHP someone could point me to
> >
> > I must be missing something in one of the conf files
> >
> > thanks
> >
> > jrt
> >
> >
>
>


--- End Message ---
--- Begin Message ---
A little background info.  I have php installed on a Windows 200 server.  Everything 
was working fine until our company decided to change out our mail server.  We did have 
a Windows Sendmail Server, we changed to a Red Hat linux Qmail server.  Once that 
happened my mail module quit working.

This is my php.ini

[mail function]
; For Win32 only.
SMTP = mail.compunet1.net ; for Win32 only

; For Win32 only.
sendmail_from = [EMAIL PROTECTED] ; for Win32 only

; For Unix only.  You may supply arguments as well (default: 'sendmail -t -i').
;sendmail_path = 

If anyone has any ideas why this quit working, please let me know.  
--- End Message ---
--- Begin Message ---
Hi Jessica

Some questions...

Does the sendmail_from account need to exist on the new server? If yes then
has such an account been created? What error messages to you see when the
PHP mail function falls over?

Rich
-----Original Message-----
From: Jessica Gaskins [mailto:[EMAIL PROTECTED]]
Sent: 19 November 2002 08:38
To: [EMAIL PROTECTED]
Subject: [PHP-INST] Problem with mail module on Win32


A little background info.  I have php installed on a Windows 200 server.
Everything was working fine until our company decided to change out our mail
server.  We did have a Windows Sendmail Server, we changed to a Red Hat
linux Qmail server.  Once that happened my mail module quit working.

This is my php.ini

[mail function]
; For Win32 only.
SMTP = mail.compunet1.net ; for Win32 only

; For Win32 only.
sendmail_from = [EMAIL PROTECTED] ; for Win32 only

; For Unix only.  You may supply arguments as well (default:
'sendmail -t -i').
;sendmail_path =

If anyone has any ideas why this quit working, please let me know.

--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---
--- Begin Message ---
Hey all,

I've been trying to build PHP that reads a config file from a different
location than the stock "/usr/local/lib/php.ini" location.  According to
the header files, the new INI file path *should* be getting set,
however, after shutting down & restarting the server with the newly
built module loaded, phpinfo() is still reporting that the INI file
being used is the /usr/local/lib version.  System is Solaris 2.8,
building PHP 4.2.0 as a DSO w/ apache 1.3.2x
Here's the config results (configure commmand shortened for brevity):

build-defs.h:#define CONFIGURE_COMMAND " './configure'
'--with-config-file-path=/nol/apache-ach/conf/php.ini'"
build-defs.h:#define PHP_CONFIG_FILE_PATH    "/nol/apache-ach/conf/php.ini"

Any ideas/clues/suggestions would be much appreciated.

-- 
Dave Pfister    | Phone : (402) 471-7893 | Quidquid latine dictum
Nebrask@ Online | e-mail:  [EMAIL PROTECTED]  | sit, altum viditur.


--- End Message ---
--- Begin Message --- I searched the archives and found a couple posts asking a similar question to this, but there never seemed to be a solution.

Trying to build PHP 4.2.3 on a Redhat Linux 6.2 system, as a DSO along with Apache 1.3.27. Built perfectly fine yesterday on an (as far as I know) identical server using the same parameters.

./configure --with-pgsql --with-apxs=/usr/local/apache/bin/apxs

Configure goes through its normal thing, but stops and just hangs forever at this line:

checking for pthreads_cflags...

After a while I killed it and looked at config.log. Here's what was at the end. Any help is appreciated.

configure:2761: checking whether yytext is a pointer
configure:2780: gcc -o conftest -g -O2 conftest.c -lfl 1>&5
configure:2804: checking for working const
configure:2858: gcc -c -g -O2 conftest.c 1>&5
configure:3006: gcc -o conftest -g -O2 conftest.c 1>&5
/tmp/cczmrsba.o: In function `main':
/usr/local/src/php-4.2.3/configure:3001: undefined reference to `pthread_mutexattr_init'
/usr/local/src/php-4.2.3/configure:3002: undefined reference to `pthread_create'
collect2: ld returned 1 exit status
configure: failed program was:
#line 2988 "configure"
#include "confdefs.h"

#include <pthread.h>
#include <stddef.h>

void *thread_routine(void *data) {
return data;
}

int main() {
pthread_t thd;
pthread_mutexattr_t mattr;
int data = 1;
pthread_mutexattr_init(&mattr);
return pthread_create(&thd, NULL, thread_routine, &data);
}
configure:3026: checking for pthreads_cflags
configure:3059: gcc -o conftest -g -O2 -kthread conftest.c 1>&5
gcc: unrecognized option `-kthread'
/tmp/ccWDMtpu.o: In function `main':
/usr/local/src/php-4.2.3/configure:3054: undefined reference to `pthread_mutexattr_init'
/usr/local/src/php-4.2.3/configure:3055: undefined reference to `pthread_create'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3041 "configure"
#include "confdefs.h"

#include <pthread.h>
#include <stddef.h>

void *thread_routine(void *data) {
return data;
}

int main() {
pthread_t thd;
pthread_mutexattr_t mattr;
int data = 1;
pthread_mutexattr_init(&mattr);
return pthread_create(&thd, NULL, thread_routine, &data);
}
configure:3059: gcc -o conftest -g -O2 -pthread conftest.c 1>&5

--- End Message ---

Reply via email to