php-install Digest 1 Sep 2002 22:37:58 -0000 Issue 1004

Topics (messages 8291 through 8298):

help! trouble with forms
        8291 by: user.domain.invalid

Re: Apache doesn't seem to send scripts to the interpreter
        8292 by: John
        8295 by: John
        8296 by: John

Compiling php 4.2.2 with Visual Studio .Net (VC++ 7)
        8293 by: David Comeau
        8297 by: David Comeau

PHP 4.2.2 its a bug or its me ??
        8294 by: www.techbull.com

Bug?
        8298 by: Ken Kyler

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 ---
I  am wondering if anybody has any idea what I shoul do. When I post 
data from a form, the variables does not make it through to my php 
script. When I use GET. I do see the NAME/VALUE pair being appended to 
the url yet I am not able to access the variables. And no, I am not 
using the wrong variable names.  Can anybody help?

--- End Message ---
--- Begin Message ---
I have the same symptoms.    I've also run /usr/bin/php -i > output.html and
it looks reasonable and proves php does work but not through the web server.
I deleted out the <IFDEFINES> to ensure httpd is including the libphp4.so
file.    What else can we do to try and solve it?

I'm running Apache/1.3.22 (RedHat 7.2) and php 4.1.2.   php.ini is in the
/etc/directory.

John Mulkerin

"Thomas Deschamps" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi
>
> After looking an the archives, FAQ, etc... I am coming to you to find an
> answer:
>
> My browser displays the context of the php files instead of anything
> else.
> I cannot obtain the server to send them to the php interpreter.
> My configuration is:
>
> -> RedHat 7.2, including php-4.0.6-15, and apache-1.3.22-2
>
> I did NOT install any of these programs, I just took them as they were
> part of the linux distribution
> I looked into httpd.conf and found
>
> <IfDefine HAVE_PERL>
> LoadModule perl_module        modules/libperl.so
> </IfDefine>
> <IfDefine HAVE_PHP>
> LoadModule php_module         modules/mod_php.so
> </IfDefine>
> <IfDefine HAVE_PHP3>
> LoadModule php3_module        modules/libphp3.so
> </IfDefine>
> <IfDefine HAVE_PHP4>
> LoadModule php4_module        modules/libphp4.so
> </IfDefine>
>
> ....
>
> <IfDefine HAVE_PERL>
> AddModule mod_perl.c
> </IfDefine>
> <IfDefine HAVE_PHP>
> AddModule mod_php.c
> </IfDefine>
> <IfDefine HAVE_PHP3>
> AddModule mod_php3.c
> </IfDefine>
> <IfDefine HAVE_PHP4>
> AddModule mod_php4.c
> </IfDefine>
>
> ...
>
> IfModule mod_php4.c>
>   AddType application/x-httpd-php .php4 .php3 .phtml .php
>   AddType application/x-httpd-php-source .phps
> </IfModule>
>
> # The following is for PHP3:
> <IfModule mod_php3.c>
>   AddType application/x-httpd-php3 .php3
>   AddType application/x-httpd-php3-source .phps
> </IfModule>
>
> # The following is for PHP/FI (PHP2):
> <IfModule mod_php.c>
>   AddType application/x-httpd-php .phtml
> </IfModule>
>
> -------------------------------------------------------------
>
> Anyway, the browser displays the content of the php script. ANd I did
> not find how to check if HAVE_PHP macro is working
> Is there anything I can do to prevent this?
>
> Thomas ([EMAIL PROTECTED])
>


--- End Message ---
--- Begin Message ---
I've changed so much that I'm not sure what I did but it now works.   I've
got to reverse everything to figure out where the issue was fixed.  I'll
post it if I can figure it out.

John
"John" <[EMAIL PROTECTED]> wrote in message news:...
> I have the same symptoms.    I've also run /usr/bin/php -i > output.html
and
> it looks reasonable and proves php does work but not through the web
server.
> I deleted out the <IFDEFINES> to ensure httpd is including the libphp4.so
> file.    What else can we do to try and solve it?
>
> I'm running Apache/1.3.22 (RedHat 7.2) and php 4.1.2.   php.ini is in the
> /etc/directory.
>
> John Mulkerin
>
> "Thomas Deschamps" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi
> >
> > After looking an the archives, FAQ, etc... I am coming to you to find an
> > answer:
> >
> > My browser displays the context of the php files instead of anything
> > else.
> > I cannot obtain the server to send them to the php interpreter.
> > My configuration is:
> >
> > -> RedHat 7.2, including php-4.0.6-15, and apache-1.3.22-2
> >
> > I did NOT install any of these programs, I just took them as they were
> > part of the linux distribution
> > I looked into httpd.conf and found
> >
> > <IfDefine HAVE_PERL>
> > LoadModule perl_module        modules/libperl.so
> > </IfDefine>
> > <IfDefine HAVE_PHP>
> > LoadModule php_module         modules/mod_php.so
> > </IfDefine>
> > <IfDefine HAVE_PHP3>
> > LoadModule php3_module        modules/libphp3.so
> > </IfDefine>
> > <IfDefine HAVE_PHP4>
> > LoadModule php4_module        modules/libphp4.so
> > </IfDefine>
> >
> > ....
> >
> > <IfDefine HAVE_PERL>
> > AddModule mod_perl.c
> > </IfDefine>
> > <IfDefine HAVE_PHP>
> > AddModule mod_php.c
> > </IfDefine>
> > <IfDefine HAVE_PHP3>
> > AddModule mod_php3.c
> > </IfDefine>
> > <IfDefine HAVE_PHP4>
> > AddModule mod_php4.c
> > </IfDefine>
> >
> > ...
> >
> > IfModule mod_php4.c>
> >   AddType application/x-httpd-php .php4 .php3 .phtml .php
> >   AddType application/x-httpd-php-source .phps
> > </IfModule>
> >
> > # The following is for PHP3:
> > <IfModule mod_php3.c>
> >   AddType application/x-httpd-php3 .php3
> >   AddType application/x-httpd-php3-source .phps
> > </IfModule>
> >
> > # The following is for PHP/FI (PHP2):
> > <IfModule mod_php.c>
> >   AddType application/x-httpd-php .phtml
> > </IfModule>
> >
> > -------------------------------------------------------------
> >
> > Anyway, the browser displays the content of the php script. ANd I did
> > not find how to check if HAVE_PHP macro is working
> > Is there anything I can do to prevent this?
> >
> > Thomas ([EMAIL PROTECTED])
> >
>
>


--- End Message ---
--- Begin Message ---
I'm no expert but here are a few steps to try to isolate your Redhat php and
apache problems based on what I struggled with.   First try a correct syntax
for your test(A).  Try to access hello.php by goint to
http://localhost/hello.php.  If this fails then try to run php directly from
the command prompt (B).   If that fails, start researching php issues on the
php.net. If php (B) passes and browser test (A) fails go research apache
config

A) Make php classic test file called hello.php.  Here is the text that goes
in it:
<html> <head>  <title>PHP Test</title>  </head> <body> <?php echo "Hello
World<p>"; ?><?php phpinfo(); ?> </body> </html>
B) Find php by doing "which php <enter>".   Mine says /usr/bin/php.  Now run
"/usr/bin/php -i >output.html <enter>". If need be, move the output.html to
your default web directory and try and read that from a browser.


"John" <[EMAIL PROTECTED]> wrote in message news:...
> I've changed so much that I'm not sure what I did but it now works.   I've
> got to reverse everything to figure out where the issue was fixed.  I'll
> post it if I can figure it out.
>
> John
> "John" <[EMAIL PROTECTED]> wrote in message news:...
> > I have the same symptoms.    I've also run /usr/bin/php -i > output.html
> and
> > it looks reasonable and proves php does work but not through the web
> server.
> > I deleted out the <IFDEFINES> to ensure httpd is including the
libphp4.so
> > file.    What else can we do to try and solve it?
> >
> > I'm running Apache/1.3.22 (RedHat 7.2) and php 4.1.2.   php.ini is in
the
> > /etc/directory.
> >
> > John Mulkerin
> >
> > "Thomas Deschamps" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > Hi
> > >
> > > After looking an the archives, FAQ, etc... I am coming to you to find
an
> > > answer:
> > >
> > > My browser displays the context of the php files instead of anything
> > > else.
> > > I cannot obtain the server to send them to the php interpreter.
> > > My configuration is:
> > >
> > > -> RedHat 7.2, including php-4.0.6-15, and apache-1.3.22-2
> > >
> > > I did NOT install any of these programs, I just took them as they were
> > > part of the linux distribution
> > > I looked into httpd.conf and found
> > >
> > > <IfDefine HAVE_PERL>
> > > LoadModule perl_module        modules/libperl.so
> > > </IfDefine>
> > > <IfDefine HAVE_PHP>
> > > LoadModule php_module         modules/mod_php.so
> > > </IfDefine>
> > > <IfDefine HAVE_PHP3>
> > > LoadModule php3_module        modules/libphp3.so
> > > </IfDefine>
> > > <IfDefine HAVE_PHP4>
> > > LoadModule php4_module        modules/libphp4.so
> > > </IfDefine>
> > >
> > > ....
> > >
> > > <IfDefine HAVE_PERL>
> > > AddModule mod_perl.c
> > > </IfDefine>
> > > <IfDefine HAVE_PHP>
> > > AddModule mod_php.c
> > > </IfDefine>
> > > <IfDefine HAVE_PHP3>
> > > AddModule mod_php3.c
> > > </IfDefine>
> > > <IfDefine HAVE_PHP4>
> > > AddModule mod_php4.c
> > > </IfDefine>
> > >
> > > ...
> > >
> > > IfModule mod_php4.c>
> > >   AddType application/x-httpd-php .php4 .php3 .phtml .php
> > >   AddType application/x-httpd-php-source .phps
> > > </IfModule>
> > >
> > > # The following is for PHP3:
> > > <IfModule mod_php3.c>
> > >   AddType application/x-httpd-php3 .php3
> > >   AddType application/x-httpd-php3-source .phps
> > > </IfModule>
> > >
> > > # The following is for PHP/FI (PHP2):
> > > <IfModule mod_php.c>
> > >   AddType application/x-httpd-php .phtml
> > > </IfModule>
> > >
> > > -------------------------------------------------------------
> > >
> > > Anyway, the browser displays the content of the php script. ANd I did
> > > not find how to check if HAVE_PHP macro is working
> > > Is there anything I can do to prevent this?
> > >
> > > Thomas ([EMAIL PROTECTED])
> > >
> >
> >
>
>


--- End Message ---
--- Begin Message ---
Has anyone had any luck in compiling php 4.2.2 and Apache2 on a Windows
XP with Visual Studio .Net?


Sincerely,
David
[EMAIL PROTECTED]

      _o            /\         ----  __o
   _-< \_          /  \       ----  <  \,
__(_)/_(_)________/    \_______(_) /_(_)__

--- End Message ---
--- Begin Message ---
I appreciate the fact that you responded to my query, but unfortunately,
there was no message. If you sent a reply with content in the body,
could you please resend your repsonse? As well, it would be kind if
you CC'ed to the list as well, so as to inform others of your knowledge.


Sincerely,
David Comeau
IT Consultant
DaviTronique
[EMAIL PROTECTED]

> -----Original Message-----
> From: Shaka PHP [mailto:[EMAIL PROTECTED]] 
> Sent: 1 September, 2002 14:50
> To: 'David Comeau'
> Subject: Lu : [PHP-INST] Compiling php 4.2.2 with Visual 
> Studio .Net (VC++ 7)
> 
> 
> 

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

i have tryed to install PHP4.2.2 on my server (plesk redhat 7.2)

I am able to build the libphp4.so whitout problem whit all modules
whit this string then all look ok no problem seen:

./configure \
--with-apxs=/usr/local/psa/apache/bin/apxs \
--prefix=/usr/local/psa/apache \
--with-system-regex \
--with-config-file-path=/usr/local/psa/apache/conf \
--disable-debug \
--disable-pear \
--enable-sockets \
--enable-track-vars \
--with-gd \
--with-mysql=/usr/local/psa/mysql \
--with-iodbc=/usr/lib \
--with-imap=/usr/src/imap-2002.RC4 \
--without-kerberos \
--with-jpeg-dir=/usr/lib \
--with-png-dir=/usr/lib \
--with-zlib-dir=/usr/include \
--with-mcrypt=/usr/local/lib \

That work fine, i can install the libphp4.so as well then restart apache,
all is fine...


My prob is i have some script acting weird whit 4.2.2

example: i have a script that display a date (that come from mysql database)
the date is supposed to display "16-Juin-2002" but in place is "--20002"

Same result if i use a small script like :

--------------------------------------
<?php 
$date= "2002-12-31"; 

if (ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $date, $regs)) { 
    echo "$regs[3].$regs[2].$regs[1]"; 
} else { 
    echo "Invalid date format: $date"; 
} 

?> 
----------------------------------------
Whats wrong ???

If i put php 4.1.2 all revert back to normal....
How i can fix that, is this a bug ??

Ps: I'M not programmer so if you have a solution plz explain in detail...:-)


Thanks for any Help on this i'm realy stuck whit that !!!

--- End Message ---
--- Begin Message ---
To whom do I report a bug?  I can't get PHP 4.2.2 to run as a CGI on FreeBSD 
4.5-STABLE.  I get...

Parse error: parse error, unexpected T_STRING in /usr/local/bin/php on line <varies 
depending on options selected>

regardless of the compile options I use.

Ken


--- End Message ---

Reply via email to