[PHP] strange!

2003-12-16 Thread Tom Holton

Hello everyone,
I looked through the FAQs and documentation and I cannot find this
anywhere:

We have a new Redhat server with this kernal: 2.4.20-20.9smp #1 SMP
We used redhat itself to install apache and php (I used to always do it by
hand)
apache: Server version: Apache/2.0.40
PHP Version 4.2.2

I found the PHP version out by making a file containing: ?phpinfo()?

I also can get statements like

print something

and even

$TT =TRUE;
if($TT) print something else;

to work.
But, incredibly to me, I cannot get form variables to be sent and seen.
See the end of the email for the example script.

I can take this very simple script that does not work on this new server
and have it work on my current server which is running PHP Version 4.1.2
and Apache Server version: Apache/1.3.22 (Unix)

I saw that there were incompatibility issues with PHP's prior to version
4.2.3 with Apache 2.0, but, since I can get some statements to work, and
it is only because the form variables are not recognized, I thought it
must be some new directive in httpd.conf of php.ini

Any help or info on this is much appreciated!


?php

$TT=TRUE;
if($TT) print TT worked;

if($dowork) {
  print brThese statements do not print when the dowork button is
pushed;
  print brField 1: $fld1;
  print brField 2: $fld2;
  print brField 3: $fld3;
}


print BRthis statement prints;

?

form name=asd method=POST
brinput name=fld1 size=12
brinput name=fld2 size=12
brinput name=fld3 size=12
brinput type=submit name=dowork value='do work'
/form

?

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



[PHP] PHP and IMAP_SSL

2002-03-05 Thread Tom Holton


I am trying to force php to compile WITHOUT IMAP-SSL because TWIG cannot
communicate with IMAP-SSL on port 993
I upgraded my PHP to 412 to close the security hole just recently
announced
I am assured that the c-clienta lib i am linking to in the configure is
NOT SSL supported, yet the ocnfigure is telling me it is
Perhaps there is some other file that PHP is looking at that is saying
SSL support ?
My apache server is running openssl-096b, but should this have an effect
in the IMAP configuration?

any help is much appreciated!
-tom


-- 
PHP General Mailing List (http://wwwphpnet/)
To unsubscribe, visit: http://wwwphpnet/unsubphp




Re: [PHP] PHP4.1.2

2002-03-02 Thread Tom Holton


Thanks, I redid the configure with BOTH imap and imap-ssl
It now shows up in the phpinfo
I now have another problem when the login is being deneid because of a bad
password, but this is a different problem prob not to do with php
By the way, the system i am on is alpha OSF41
thanks for your help


On Sat, 2 Mar 2002, Rasmus Lerdorf wrote:

  Anyone have any ideas or similar problems?

 I just built a server yesterday for IMP  My PHP configure line was:

 '/configure' \
 '--with-pdflib=/usr/local' \
 '--with-gd=/home/rasmus/gd-201' \
 '--with-jpeg-dir=/usr' \
 '--with-freetype-dir=/usr' \
 '--enable-gd-native-ttf' \
 '--enable-gd-imgstrttf' \
 '--with-jpeg-dir=/usr' \
 '--with-png-dir=/usr' \
 '--with-xpm-dir=/usr/X11R6' \
 '--enable-exif' \
 '--with-config-file-path=/etc' \
 '--enable-debug' \
 '--with-mysql=/usr' \
 '--enable-inline-optimization' \
 '--with-pgsql=/usr' \
 '--with-zlib-dir=/usr' \
 '--with-expat=/usr' \
 '--enable-xslt' \
 '--with-xslt-sablot=/usr' \
 '--with-imap' \
 '--with-gettext' \
 '--with-kerberos' \
 '--with-imap-ssl' \
 '--with-mcrypt=/usr/local' \
 '--with-ldap' \
 '--with-pspell' \
 '--with-apxs=/usr/sbin/apxs'

 It worked fine  So imap-ssl here as well  So it definitely isn't a
 general problem with it not working at all  Must be something subtle
 You did a full rm configcache  make clean?  Or started with a fress
 tarball?  Do you have SSL linked into your Apache server?  If so, is it
 the same version of SSL linked in there?  You might be able to tell with
 'ldd'

 -Rasmus


 --
 PHP General Mailing List (http://wwwphpnet/)
 To unsubscribe, visit: http://wwwphpnet/unsubphp



-- 
PHP General Mailing List (http://wwwphpnet/)
To unsubscribe, visit: http://wwwphpnet/unsubphp




[PHP] XML

2002-02-26 Thread Tom Holton


Hello,
I have come across a strange error when using the XML parsing functions.
Instead of printing the xml to the screen, like the functions do, I
decided to put these into arrays. It all seems to be working normally,
except for the data part (this is the non-xml data).
I can verify that the data is being stored in an array when the XML is
being printed to my browser window.
But when i then print this array out AFTER the xml has been printed, the
array is empty! (yet it contains the same number of array elements as it
should, they are all just blank now)

I cannot find anything related to this nor can I determine why. I am
perfectly willing to send the PHP code to anyone who would like to see
this strange behavior.
you know, i am just trying to put XML into variables rather than printing
to the screen... perhaps someone knows of a better way?
Anyone have any ideaS?
thanks in advance!


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