php-install Digest 8 Feb 2002 19:51:36 -0000 Issue 690

Topics (messages 5962 through 5968):

Re: MM save hanlder problem
        5962 by: Rick Morris
        5963 by: Yasuo Ohgaki

compilation error in a conectiva 6 - php-4.0.6 and 4.1.1 with oracle support
        5964 by: Julio Sardella

error: cannot find output from lex
        5965 by: Johannes Tyra [BrainData]

Verisign...  Need help with V3.0 of SDK
        5966 by: Dan Kim

Re: PHP 4.0.6 + VeriSign PayFlow Pro libpfpro 304
        5967 by: Dan Kim

Re: Calling a php function from html file.
        5968 by: Philip Snyder

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 ---
----- Original Message -----
From: "Yasuo Ohgaki" <[EMAIL PROTECTED]>
To: "Rick Morris" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, February 07, 2002 5:15 AM
Subject: [PHP-INST] MM save hanlder problem


> Rick Morris wrote:
> >>>*** Error code 1
> >>>
> >>
> >>Hi, patch is not applied correctly.
> >>
> >>Change directory to php4 source root. then
> >>
> >>patch -p0 < session.diff
> >>
> >>(Since file path in the patch is "ext/session/<some_file_name_here>")
> >>Then you should be able to compile w/o any warnings and errors.
> >>You need to change directory and use appropriate -p option depends
> >>on patch.
> >>
> >
> > No, I was in the correct location, but session.diff was accidentally
mangled
> > somewhere between my mail prog and text editor. Tried it again and this
time
> > it compiled fine ;-).
> >
> > But, I am still not able to run Apache. Here is my configure statement:
> >
./configure --prefix=/usr/local --with-mysql=/usr/local --with-pgsql --with-
> >
pxs=/usr/local/apache/bin/apxs --enable-shmop --with-zlib --enable-wddx  --
> >
enable-inline-optimization --x-includes=/usr/X11R6/ --x-libraries=/usr/X11R6
> >
/ --with-gd=/usr/local/ --enable-gd-native-ttf --with-jpeg-dir=/usr/local --
> >
with-png-dir=/usr/local --with-xpm-dir=/usr/local --with-freetype-dir=/usr/l
> >
ocal --with-ttf --with-zlib-dir=shared --with-curl=/usr/local --with-xml --e
> >
nable-ftp --enable-sockets --enable-sysvsem --enable-sysvshm --with-mm --wit
> > h-pear
> >
> > Whenever I try to run Apache, I get the response "httpd could not be
> > started", and when I tail the error_log, I see this:
> > PHP Fatal error:  Unable to start session mm module in Unknown on line 0
> >
> > If I do exactly the same config statement without the 'mm' directive,
Apache
> > runs fine.
> >
> > Maybe it's a FreeBSD problem. As I said before, I will also try this on
my
> > Slackware box. Any other suggestions?
> >
> > Thanks for the help,
> >
>
> Hmm.
>
> What is your session.save_path? MM files are now created
> under session.save_path. If it is invalid, mm save handler
> does not work. (UID of httpd process should be able to write)
>

I had session_save_path set to /var/php_session, which was writable by
Apache UID.

Now, when I try to recompile PHP with mm again, I get

1800/TSRM -g -O2 -prefer-pic  -c internal_functions.c
internal_functions.c:67: `phpext_ps_mm_ptr' undeclared here (not in a
function)
internal_functions.c:67: initializer element is not constant
internal_functions.c:67: (near initialization for
`php_builtin_extensions[16]')
gmake[2]: *** [internal_functions.lo] Error 1
gmake[2]: Leaving directory
`/usr/home/rick/snaps.php/php4-200202061800/main'
gmake[1]: *** [all-recursive] Error 1


> --
> Yasuo Ohgaki
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
Could you do

./cvsclean
./buildconf
./configure <options>
make

again?

--
Yasuo Ohgaki


Rick Morris wrote:
> ----- Original Message -----
> From: "Yasuo Ohgaki" <[EMAIL PROTECTED]>
> To: "Rick Morris" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Thursday, February 07, 2002 5:15 AM
> Subject: [PHP-INST] MM save hanlder problem
> 
> 
> 
>>Rick Morris wrote:
>>
>>>>>*** Error code 1
>>>>>
>>>>>
>>>>Hi, patch is not applied correctly.
>>>>
>>>>Change directory to php4 source root. then
>>>>
>>>>patch -p0 < session.diff
>>>>
>>>>(Since file path in the patch is "ext/session/<some_file_name_here>")
>>>>Then you should be able to compile w/o any warnings and errors.
>>>>You need to change directory and use appropriate -p option depends
>>>>on patch.
>>>>
>>>>
>>>No, I was in the correct location, but session.diff was accidentally
>>>
> mangled
> 
>>>somewhere between my mail prog and text editor. Tried it again and this
>>>
> time
> 
>>>it compiled fine ;-).
>>>
>>>But, I am still not able to run Apache. Here is my configure statement:
>>>
>>>
> ./configure --prefix=/usr/local --with-mysql=/usr/local --with-pgsql --with-
> 
> pxs=/usr/local/apache/bin/apxs --enable-shmop --with-zlib --enable-wddx  --
> 
> enable-inline-optimization --x-includes=/usr/X11R6/ --x-libraries=/usr/X11R6
> 
> / --with-gd=/usr/local/ --enable-gd-native-ttf --with-jpeg-dir=/usr/local --
> 
> with-png-dir=/usr/local --with-xpm-dir=/usr/local --with-freetype-dir=/usr/l
> 
> ocal --with-ttf --with-zlib-dir=shared --with-curl=/usr/local --with-xml --e
> 
> nable-ftp --enable-sockets --enable-sysvsem --enable-sysvshm --with-mm --wit
> 
>>>h-pear
>>>
>>>Whenever I try to run Apache, I get the response "httpd could not be
>>>started", and when I tail the error_log, I see this:
>>>PHP Fatal error:  Unable to start session mm module in Unknown on line 0
>>>
>>>If I do exactly the same config statement without the 'mm' directive,
>>>
> Apache
> 
>>>runs fine.
>>>
>>>Maybe it's a FreeBSD problem. As I said before, I will also try this on
>>>
> my
> 
>>>Slackware box. Any other suggestions?
>>>
>>>Thanks for the help,
>>>
>>>
>>Hmm.
>>
>>What is your session.save_path? MM files are now created
>>under session.save_path. If it is invalid, mm save handler
>>does not work. (UID of httpd process should be able to write)
>>
>>
> 
> I had session_save_path set to /var/php_session, which was writable by
> Apache UID.
> 
> Now, when I try to recompile PHP with mm again, I get
> 
> 1800/TSRM -g -O2 -prefer-pic  -c internal_functions.c
> internal_functions.c:67: `phpext_ps_mm_ptr' undeclared here (not in a
> function)
> internal_functions.c:67: initializer element is not constant
> internal_functions.c:67: (near initialization for
> `php_builtin_extensions[16]')
> gmake[2]: *** [internal_functions.lo] Error 1
> gmake[2]: Leaving directory
> `/usr/home/rick/snaps.php/php4-200202061800/main'
> gmake[1]: *** [all-recursive] Error 1
> 
> 
> 
>>--
>>Yasuo Ohgaki
>>
>>
>>_________________________________________________________
>>Do You Yahoo!?
>>Get your free @yahoo.com address at http://mail.yahoo.com
>>
>>
>>--
>>PHP Install Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
> 



-- 
Yasuo Ohgaki


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

--- End Message ---
--- Begin Message ---
i am using a linux conectiva (red hat) 6,  with a 2.2.17-14cl  kernel
and gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
in a pentium box with 64mb of ram.
i am compiling php-4.0.6 and php-4.1.1  (same error occour in both).
the 'configure --with-oracle --with-mysql' runned with no errors.
this error occour in 'make':
make[1]: Entering directory `/php-4.0.6'
/bin/sh /php-4.0.6/libtool --silent --mode=link gcc  -I. -I/php-4.0.6/ -I/php-4.
0.6/main -I/php-4.0.6 -I/php-4.0.6/Zend -I/php-4.0.6/ext/mysql/libmysql -I/oracl
e/rdbms/public -I/oracle/rdbms/demo -I/oracle/network/public -I/php-4.0.6/ext/xm
l/expat/xmltok -I/php-4.0.6/ext/xml/expat/xmlparse -I/php-4.0.6/TSRM  -DSUPPORT_
UTF8 -DXML_BYTE_ORDER=12 -g -O2   -o libphp4.la -rpath /php-4.0.6/libs -L/oracle
/lib  -R /oracle/lib stub.lo  Zend/libZend.la sapi/cgi/libsapi.la main/libmain.l
a regex/libregex.la ext/mysql/libmysql.la ext/oracle/liboracle.la ext/pcre/libpc
re.la ext/posix/libposix.la ext/session/libsession.la ext/standard/libstandard.l
a ext/xml/libxml.la TSRM/libtsrm.la -ldl -lclntsh -lnsl_s -lsocket -lcrypt -lres
olv -lm -ldl -lnsl -lresolv
/bin/sh /php-4.0.6/libtool --silent --mode=link gcc  -I. -I/php-4.0.6/ -I/php-4.
0.6/main -I/php-4.0.6 -I/php-4.0.6/Zend -I/php-4.0.6/ext/mysql/libmysql -I/oracl
e/rdbms/public -I/oracle/rdbms/demo -I/oracle/network/public -I/php-4.0.6/ext/xm
l/expat/xmltok -I/php-4.0.6/ext/xml/expat/xmlparse -I/php-4.0.6/TSRM  -DSUPPORT_
UTF8 -DXML_BYTE_ORDER=12 -g -O2   -o php -export-dynamic         stub.lo libphp4
.la
/usr/bin/ld: cannot find -lnsl_s
collect2: ld returned 1 exit status
make[1]: *** [php] Error 1
make[1]: Leaving directory `/php-4.0.6'
make: *** [all-recursive] Error 1                     
i have tryed to make without the --with-oracle but, the same error occour.
thanks.

--- End Message ---
--- Begin Message ---
Hi List,

with SuSE 7.3 I have an error with ./configure

checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: lex: command not found
configure: error: cannot find output from lex; giving up

Are there any packages missing??
What can I do?


Greetings from Germany...
--
Mit freundlichem Gruß,
Johannes Tyra

--- End Message ---
--- Begin Message ---
Hello,

I'm trying to compile in the V3.0 SDK of PayflowPro into PHP 4.1.1.  I'm
having a hell of a time doing it.  Anyone have experience with this?  I know
there is a lot of help out there for people using the Beta or older SDK's,
but those aren't downloadable from Verisign's (signio) website.

If someone can help me out, I'll write up the biggest and most complete
Apache, PHP, MySQL, OpenSSL, Verisign installation FAQ that there is.

MySQL is running flawlessly.
Apache 1.3.20 / OpenSSL 0.9.6a / PHP 4.1.1 runs like a dream.

I can recompile PHP 4.1.1 with the verisign support and not get any error
messages.
I then recompile apache with the new PHP4 module and it doesn't complain
either.

so when i go to start up apache with ./apachectl startssl....  I get the
message to enter the password, but the prompt never shows up.  it just
hangs.

any help would be greatly appreciated.  and i know that there are more of us
out there that need help with this.  some of which i've talked to and are
going to use PERL or embPERL if they can't get this to work in PHP.  Now we
just can't let that happen!  though embPerl is kind of neat in its own PERL
kind of way...

-danny


--- End Message ---
--- Begin Message ---
I'm in a similar situation.

I'm running redhat 7.1/php4.1.1/mysql/openssl0.9.5a/apache1.3.20....

upon compiling in the verisign support, the module breaks apache on startup.
apache on ./apachectl startssl will not give me the password prompt but just
a hung process.  so i end up killing off apachectl with a kill -9.  any help
would be appreciated.

-danny


"Bob Hayes" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Hi all,
>
> I know the Payflow Pro thing has been done to death, but I've searched
high
> and low for the answer to this last problem and I'm stumped. I know it's a
> simple thing somewhere, but I'm erroring out with the ssl/cert issue. To
> make matters worse, I'm definitely not a Linux expert.
>
> I'm using RH Linux 7.1 + Apache 1.3.19 (stock RPM, not recompiled) + PHP
> 4.0.6 (from Troels Arvin's site at rpms.arvin.dk) with the pfpro option
> compiled in, using version L304 of the pfpro SDK.
>
> My php.ini file has the "extension=pfpro.so" and "extension=libpfpro.so"
> lines added. I have the PFPRO_CERT_PATH environmental variable set and
> exported to all apps and it shows up with an env command. The test cert
that
> came with the SDK is in the directory listed for PFPRO_CERT_PATH, along
with
> a self-signed certificate.
>
> The perl cgi test script that came with the PF Pro SDK works, but our
> transaction.php page which just calls "pfpro_process($parameters, $host)"
> does not. I keep getting this error when processing a test transaction:
>
>
> The Response:
> Array ( [RESULT] => -8 [RESPMSG] => SSL failed to connect to host )
> The Error:
> SSL failed to connect to host
>
>
> I occasionally get this slightly different error:
>
> The Response:
> Array ( [RESULT] => -31 [RESPMSG] => The certificate chain did not
validate,
> no local certificate found )
> The Error:
> The certificate chain did not validate, no local certificate found
>
>
> Any suggestions? I know this is connected to ssl and our cert files in
some
> way--is it because we don't have a real VeriSign issued certificate on
this
> machine yet, just the self-signed cert?
>
>
> Regards,
>
> Bob
>
> --
> Bob Hayes
> Systems Administrator
> Artbeats Digital Film Library
> www.artbeats.com
>


--- End Message ---
--- Begin Message ---
The only way you can do this is to add .html to your list of extensions
parsed by PHP. This will be pretty wasteful because now every static
page will get parsed as well, so I don't recommend it.

-Philip

-----Original Message-----
From: Archer Vallesfin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 9:44 PM
To: php lists
Subject: [PHP-INST] Calling a php function from html file.


Good Day!

     How can I call a function from a PHP file when
the caller of the function is an HTML.

sample:
Myphp.php
[
   - function Add()
    {
        .....
    }
]

Myhtml.html
[
<html>
<title> Sample </title>
<body>
    // I would like to call Add() function here.... How???
</body>
</html>     
]


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

--- End Message ---

Reply via email to