php-install Digest 28 May 2002 13:05:27 -0000 Issue 857

Topics (messages 7128 through 7135):

Re: PHP with apache 1.3
        7128 by: Peter
        7130 by: Peter
        7131 by: Phil Dibowitz
        7135 by: Peter

Re: what is bizon ?
        7129 by: Jim Thome

Compiling Oracle support, error messages
        7132 by: Herbert Groot Jebbink
        7134 by: Herbert Groot Jebbink

Problem..
        7133 by: PROGRAMACION

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 ---
My problem is slightly different,

Scripts which only have php in and end in .php do not display , but a
transient window comes up which disappears so quickly I cannot see what it
says.

The same script ending in .htm presents a blank screen , while the source
can be correctly displayed.

Similar behaviour is found with scripts containing embedded php. If the
script ends in .htm it displays the non php sections and the source can be
correctly displayed.

If it ends in .php a transient window is displayed which disappears very
quickly. I believe it asks if I want to load or save the file but I cannot
be sure.
The apache error file during testing showed only:
[Tue May 28 11:44:54 2002] [info] Parent: Created child process -1576979
[Tue May 28 11:44:54 2002] [info] Parent: Duplicating socket 104 and sending
it to child process -1576979
[Tue May 28 11:44:55 2002] [info] BytesRead = 372 WSAProtocolInfo = 020
[Tue May 28 11:54:08 2002] [info] master_main: Restart event signaled. Doing
a graceful restart.
[Tue May 28 11:54:08 2002] [info] Parent: Created child process -1647419
[Tue May 28 11:54:08 2002] [info] Parent: Duplicating socket 104 and sending
it to child process -1647419
[Tue May 28 11:54:09 2002] [info] BytesRead = 372 WSAProtocolInfo = 020
[Tue May 28 12:05:33 2002] [info] master_main: Shutdown event signaled.
Shutting the server down.
[Tue May 28 12:05:35 2002] [info] removed PID file
c:/usr/local/apache/logs/httpd.pid (pid=-1888187)

I have tried the test script in the mail message from Ryugen but this
exhibits the same behaviour as my scripts. It is as though the php parsing
is being ignored.


Regards

Peter Goggin
----- Original Message -----
From: "Ryugen Fisher" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Julie Meloni" <[EMAIL PROTECTED]>
Sent: Tuesday, May 28, 2002 3:13 AM
Subject: Re: Re[2]: [PHP-INST] PHP with apache 1.3


> At 09:35 AM 5/27/2002, Peter Goggin wrote:
> >I have checked file extensions at dos level and they are correct, e.g.
> >x.htm. y.php etc
> >
> >I have used sample php files sent to me and they still do not work,
> >displaying only the parts of the file that are not tagged at php code.
The
> >php code appears not to be parsed by the php parser, but is skipped over
y
> >the web browser.
> >
> >Regards
> >
> >Peter Goggin
>
> I am having a similar problem... specifically...
>
> Files with .php3 and .php work perfectly
>
> however .. EMBEDDED php .. that is php embedded into standard .html
> (i.e.   <?php print("this is a test\n"); ?>  )
>
>   does NOT work
>
> anyone have any clues or suggestions?
>
>
> >o unsubscribe, visit: http://www.php.net/unsub.php
>
> Ryugen C. Fisher
> Palaver Consulting Group
> http://www.palaver.org
> *Serving our clients since 1984*
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.363 / Virus Database: 201 - Release Date: 21/05/02

--- End Message ---
--- Begin Message ---
I have spent a lot of time trying to get php and apache to work on a win 98
machine.

Eventually, in disgust I replaced a called file in my web site (activated by
clicking on a button) with an html file containing php. This worked.   In
effect I went through an index.html which has two frames. The upper frame
has buttons which when clicked place a html page in the lower frame.   If
this page contains php then it works , as does a pure html page.


When I try to call the same php page directly from the browser IT DOES NOT
WORK. I don't know why.

However since the way that works is the way my site is designed ......

Regards

Peter Goggin
----- Original Message -----
From: "Ryugen Fisher" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Julie Meloni" <[EMAIL PROTECTED]>
Sent: Tuesday, May 28, 2002 3:13 AM
Subject: Re: Re[2]: [PHP-INST] PHP with apache 1.3


> At 09:35 AM 5/27/2002, Peter Goggin wrote:
> >I have checked file extensions at dos level and they are correct, e.g.
> >x.htm. y.php etc
> >
> >I have used sample php files sent to me and they still do not work,
> >displaying only the parts of the file that are not tagged at php code.
The
> >php code appears not to be parsed by the php parser, but is skipped over
y
> >the web browser.
> >
> >Regards
> >
> >Peter Goggin
>
> I am having a similar problem... specifically...
>
> Files with .php3 and .php work perfectly
>
> however .. EMBEDDED php .. that is php embedded into standard .html
> (i.e.   <?php print("this is a test\n"); ?>  )
>
>   does NOT work
>
> anyone have any clues or suggestions?
>
>
> >o unsubscribe, visit: http://www.php.net/unsub.php
>
> Ryugen C. Fisher
> Palaver Consulting Group
> http://www.palaver.org
> *Serving our clients since 1984*
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.363 / Virus Database: 201 - Release Date: 21/05/02


--- End Message ---
--- Begin Message ---
>>I am having a similar problem... specifically...
>>
>>Files with .php3 and .php work perfectly
>>
>>however .. EMBEDDED php .. that is php embedded into standard .html
>>(i.e.   <?php print("this is a test\n"); ?>  )
>>
>>  does NOT work
>>
>>anyone have any clues or suggestions?
>>

I'm not quite sure what you mean by embedded PHP. AFAIK If you have an HTML 
file with PHP in it somewhere you must name that file with .php3 or .php so 
that it gets processed accordingly...

Phil
-- 
"They that can give up essential liberty to obtain a little temporary safety 
deserve neither liberty nor safety."
-Benjamin Franklin, 1759

--- End Message ---
--- Begin Message ---
This file works:
<?php
$browser = getenv("HTTP_USER_AGENT");
?>
<P>You are using the <?php echo($browser);?> web browser.
</P>

It is called php_test.htm and is called as the action on a button from a
plain html page.

Regards

Peter Goggin
----- Original Message -----
From: "Phil Dibowitz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 28, 2002 4:49 PM
Subject: Re: [PHP-INST] PHP with apache 1.3


> >>I am having a similar problem... specifically...
> >>
> >>Files with .php3 and .php work perfectly
> >>
> >>however .. EMBEDDED php .. that is php embedded into standard .html
> >>(i.e.   <?php print("this is a test\n"); ?>  )
> >>
> >>  does NOT work
> >>
> >>anyone have any clues or suggestions?
> >>
>
> I'm not quite sure what you mean by embedded PHP. AFAIK If you have an
HTML
> file with PHP in it somewhere you must name that file with .php3 or .php
so
> that it gets processed accordingly...
>
> Phil
> --
> "They that can give up essential liberty to obtain a little temporary
safety
> deserve neither liberty nor safety."
> -Benjamin Franklin, 1759
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.363 / Virus Database: 201 - Release Date: 21/05/02

--- End Message ---
--- Begin Message ---
http://www.gnu.org/software/bison/bison.html

>>> Erik <[EMAIL PROTECTED]> 05/27/02 19:00 PM >>>
hi,

gd is up and running i found a way around my counters wich uses gd are 
working so i am pleased.every time i compile php it says warning you wil 
need bizon if you want to generate the php parsers again.it says the same 
for zend parsers 
what is bizon ?

regards Erik

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


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

I'm porting a PHP application from Windows to Linux, the PHP script
uses a Oracle server on a HP unix system and PHP.ini is configured
to use the module php_oracle.dll (not phpoci8.dll)

I can't get it to compile on Linux, the configure command works fine, 
the make command gives the next errors.

   In file included from internal_functions.c:34:
   /www/src/php-4.2.1/ext/oracle/php_oracle.h:23: ocidfn.h: No such file 
or directory
   /www/src/php-4.2.1/ext/oracle/php_oracle.h:24: ociapr.h: No such file 
or directory

The files ocidfn.h and ociapr.h are indeed not on my system, I have 
installed Oracle Client 9.0.1 runtime (at installation there was
a note that you need that installation if you want to develop Oracle 
applications).

I think I need --with-oracle and not --with-oci8 because the Oracle
server is 7.3.4, if I replace --with-oracle with --with-oci8 then
I get the error message:
   In file included from internal_functions.c:34:
   /www/src/php-4.2.1/ext/oci8/php_oci8.h:52: oci.h: No such file or 
directory

If someone has a Linux PHP module for Oracle (orcale.so not oci8.so)
that would be great to :-)

The complete build script that I use is:
#/bin/sh

cd /www/src
rm -R php-4.2.1
rm -R apache_1.3.24
tar zxf ../download/apache_1.3.24.tar.gz &&
tar zxf ../download/php-4.2.1.tar.gz &&
cd /www/src/apache_1.3.24 &&
./configure --prefix=/www &&
LIBS=-lpthread ./config.status &&
make &&
make install &&
cd /www/src/php-4.2.1 &&
./configure --prefix=/www --with-oracle --with-apache=../apache_1.3.24 &&
make &&
make install &&
cd /www/src/apache_1.3.24 &&
./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a
LIBS=-lpthread ./config.status
make &&
make install

The complete output of the make command:

Making all in Zend
make[1]: Entering directory `/www/src/php-4.2.1/Zend'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/www/src/php-4.2.1/Zend'
Making all in main
make[1]: Entering directory `/www/src/php-4.2.1/main'
make[2]: Entering directory `/www/src/php-4.2.1/main'
gcc -I. -I/www/src/php-4.2.1/main -I/www/src/php-4.2.1/main 
-I/www/src/php-4.2.1 -I/www/src/apache_1.3.24/src/include 
-I/www/src/apache_1.3.24/src/os/unix -I/www/src/php-4.2.1/Zend 
-I/www/src/php-4.2.1/ext/mysql/libmysql -I/opt/oracle/rdbms/demo 
-I/opt/oracle/plsql/public -I/www/src/php-4.2.1/ext/xml/expat 
-I/www/src/php-4.2.1/TSRM -g -O2  -c internal_functions.c && touch 
internal_functions.lo
In file included from internal_functions.c:34:
/www/src/php-4.2.1/ext/oracle/php_oracle.h:23: ocidfn.h: No such file or 
directory
/www/src/php-4.2.1/ext/oracle/php_oracle.h:24: ociapr.h: No such file or 
directory
make[2]: *** [internal_functions.lo] Error 1
make[2]: Leaving directory `/www/src/php-4.2.1/main'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/www/src/php-4.2.1/main'
make: *** [all-recursive] Error 1

Greetings, Herbert

--- End Message ---
--- Begin Message ---
Herbert Groot Jebbink wrote:

> I think I need --with-oracle and not --with-oci8 because the Oracle
> server is 7.3.4, if I replace --with-oracle with --with-oci8 then
> I get the error message:
>   In file included from internal_functions.c:34:
>   /www/src/php-4.2.1/ext/oci8/php_oci8.h:52: oci.h: No such file or 
> directory

After installing the Administration version of Oracle Client and not
the runtime version I can get OCI8 to compile.

If I change the PHP application to use the OCI8 commands instead of
the Oracle commands, can I still connect with it to a Oracle Server 
running under 7.3.4?

Greetings, Herbert

--- End Message ---
--- Begin Message ---

Hi,

Caldera Linux 3.1.1 (i586)
Apache 1.3.22-4
PHP 4.2.1
mysql-3.23.33-9
Informix SE 7.24 UC5 glibc 2.2
Informix cli SDK  730 UC3


I am getting the following error starting Apache after installing PHP:

Syntax error on line 246 of /etc/httpd/httpd.conf:
Cannot load /usr/lib/apache/libphp4.so into server:
/home/informix7/lib/esql/libifgen.so: undefined symbol: stat
/usr/sbin/apachectl start: httpd could not be started
This is what I get when I do a ldd /usr/lib/apache/libphp4.so:
      libdl.so.2 => /lib/libdl.so.2 (0x40143000)
      libpam.so.0 => /lib/libpam.so.0 (0x40147000)
      libifsql.so => /home/informix7/lib/esql/libifsql.so (0x40150000)
      libifasf.so => /home/informix7/lib/libifasf.so (0x40190000)
      libifgen.so => /home/informix7/lib/esql/libifgen.so (0x401c6000)
      libifos.so => /home/informix7/lib/esql/libifos.so (0x4022c000)
      libifgls.so => /home/informix7/lib/esql/libifgls.so (0x40240000)
      libcrypt.so.1 => /lib/libcrypt.so.1 (0x40297000)
      libifglx.so => /home/informix7/lib/esql/libifglx.so (0x402c4000)
      libresolv.so.2 => /lib/libresolv.so.2 (0x402c6000)
     libm.so.6 => /lib/libm.so.6 (0x402d8000)
     libnsl.so.1 => /lib/libnsl.so.1 (0x402fa000)
     libc.so.6 => /lib/libc.so.6 (0x40310000)
     /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
Can someone shed some light on what I have to do to get this working?
Thanks, Albino
            ,,,
            (o o)
-------oOO---(_)---OOo---------
Albino A. Moreno Martinez
----------------------------------------------------


--- End Message ---

Reply via email to