[PHP] Possible Bug in 4.3.0

2003-01-23 Thread Bob Horton
I've got a site running PHP w/ MySQL  DBF extensions on Apache with
mod_ssl/openssl.

Yesterday, following upgrading to 4.3.0 (and upgrading mod_ssl/apache as
well) the site stopped working.  I quickly figured out there was a change in
session processing and that I needed to no longer use global variables to
transfer information from my $_POST array into $_SESSION but that I needed
to transfer the information directly.

After making this change I was able to get rid of the warning messages and
things started looking like they were working correctly but the results of
the queries didn't respond consistently.  In fact, if I run the same query
10 times I'm likely to get 3 different kinds of results.  No records found
(which is false), a Page Not Found error (also false), and about 15% of
the time I'll get the correct results.

I've tried setting the PHP.INI settings for the compatibility and warning in
all 4 different combinations and I've even turned register_globals back on
to see if that would solve it ...

This was a live e-commerce site until I upgraded and now my client, his
customers and my rep are going down the tubes ...

Help please someone!

Bob.

P.S. Please respond directly to my e-mail as well as the list as I get the
digest and wont see responses for a while otherwise.  Thanks.

Bob Horton
PSD Services Inc.
Web Hosting  Development
Phone: (306) 522-4638 (522-INET)
[EMAIL PROTECTED]



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




RE: [PHP] ODBC Function equivalent to MySql_Fetch_Array

2001-07-11 Thread Bob Horton

odbc_fetch_into gives me an array but it doesn't give the column names.
While many might consider that a small point I find that it helps
substantially in making my code self documenting.

$row[2] is much less readable than $row[Name]

 -Original Message-
 Bob,

 Why doesn't odbc_fetch_into give you what you want?

 Best regards,
 Andrew Hill
 Director of Technology Evangelism
 OpenLink Software  http://www.openlinksw.com
 Universal Data Access  Data Integration Technology Providers

  -Original Message-
  Hi,
 
  I'm trying to write a function (see below) that will provide equivalent
  functionality between ODBC and MySQL for mysql_fetch_array based upon a
  preset variable.  I've written something that works but A) I'm afraid it
  might be quite slow; and B) I'm hoping that there is an existing
  function to
  do it that I just didn't see!
 
  If there isn't an existing function ... how do I go about
  requesting it for
  a future release?  One of the key things I was looking for was the field
  names in the associative array (Note: I already had ... and
 commented out
  ... the odbc_fetch_into function ... nice but not quite what I
  was wanting)
 
  Thanks.
 
  -
 
  function db_fetch_array($result) {
  global $db_type, $db_connection;
  if ($db_type == 1) :
return mysql_fetch_array($result);
  else:
$i = 0;
$fCount = odbc_num_fields($result);
 
$result_array = array();
if (odbc_fetch_row($result)) :
  while ($i  $fCount)
 
 
$i++;
$fName = odbc_field_name($result, $i);
$result_array[$fName] = odbc_result($result, $i);
  }
//  odbc_fetch_into ($result, $result_array);
  return $result_array;
else:
  return false;
endif;
  endif;
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] ODBC Function equivalent to MySql_Fetch_Array

2001-07-11 Thread Bob Horton

Well, if you noticed the function I wrote and included as part of my
original post ... it already uses odbc_field_name but I'm not sure how I
would use it in connection with odbc_fetch_into.

My 2 key questions were:

1) Is there some function that I missed that does the equivalent of
mysql_fetch_array?

and

2) Is there any way to get the function I wrote to be more efficient?

 Bob,

 Perhaps use odbc_field_name or even odbc_specialcolumns with
 odbc_fetch_into?
 I do agree that mysql_fetch_array is quite useful.

 Dan - what do you think?

 Best regards,
 Andrew Hill
 Director of Technology Evangelism
 OpenLink Software  http://www.openlinksw.com
 Universal Data Access  Data Integration Technology Providers
 
   -Original Message-
   From: Bob Horton [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, July 11, 2001 10:39 AM
   To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
   Subject: RE: [PHP] ODBC Function equivalent to MySql_Fetch_Array
  
  
   odbc_fetch_into gives me an array but it doesn't give the
 column names.
   While many might consider that a small point I find that it helps
   substantially in making my code self documenting.
  
   $row[2] is much less readable than $row[Name]
  
-Original Message-
Bob,
   
Why doesn't odbc_fetch_into give you what you want?
   
Best regards,
Andrew Hill
Director of Technology Evangelism
OpenLink Software  http://www.openlinksw.com
Universal Data Access  Data Integration Technology Providers
   
 -Original Message-
 Hi,

 I'm trying to write a function (see below) that will provide
   equivalent
 functionality between ODBC and MySQL for mysql_fetch_array
   based upon a
 preset variable.  I've written something that works but A)
   I'm afraid it
 might be quite slow; and B) I'm hoping that there is an existing
 function to
 do it that I just didn't see!

 If there isn't an existing function ... how do I go about
 requesting it for
 a future release?  One of the key things I was looking for
   was the field
 names in the associative array (Note: I already had ... and
commented out
 ... the odbc_fetch_into function ... nice but not quite what I
 was wanting)

 Thanks.

 -

 function db_fetch_array($result) {
 global $db_type, $db_connection;
 if ($db_type == 1) :
   return mysql_fetch_array($result);
 else:
   $i = 0;
   $fCount = odbc_num_fields($result);

   $result_array = array();
   if (odbc_fetch_row($result)) :
 while ($i  $fCount)


   $i++;
   $fName = odbc_field_name($result, $i);
   $result_array[$fName] = odbc_result($result, $i);
 }
   //  odbc_fetch_into ($result, $result_array);
 return $result_array;
   else:
 return false;
   endif;
 endif;



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail:
   [EMAIL PROTECTED]


   
   
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail:
 [EMAIL PROTECTED]
  
  




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] ODBC Function equivalent to MySql_Fetch_Array

2001-07-10 Thread Bob Horton

Hi,

I'm trying to write a function (see below) that will provide equivalent
functionality between ODBC and MySQL for mysql_fetch_array based upon a
preset variable.  I've written something that works but A) I'm afraid it
might be quite slow; and B) I'm hoping that there is an existing function to
do it that I just didn't see!

If there isn't an existing function ... how do I go about requesting it for
a future release?  One of the key things I was looking for was the field
names in the associative array (Note: I already had ... and commented out
... the odbc_fetch_into function ... nice but not quite what I was wanting)

Thanks.

-

function db_fetch_array($result) {
global $db_type, $db_connection;
if ($db_type == 1) :
  return mysql_fetch_array($result);
else:
  $i = 0;
  $fCount = odbc_num_fields($result);

  $result_array = array();
  if (odbc_fetch_row($result)) :
while ($i  $fCount)


  $i++;
  $fName = odbc_field_name($result, $i);
  $result_array[$fName] = odbc_result($result, $i);
}
  //  odbc_fetch_into ($conn, $result_array);
return $result_array;
  else:
return false;
  endif;
endif;



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Post a form within a running php-script

2001-07-08 Thread Bob Horton

What if someone wanted to reply to a form but the form was expecting the
information to arrive using the POST method (and wasn't explicitly PHP)?

Is there any way to do it if you want to submit to a POST method form?  Or
some way to simulate the entering of the information and clicking of the
submit button?

 -Original Message-
 From: Chris Anderson [mailto:[EMAIL PROTECTED]]
 Sent: Friday, July 06, 2001 5:52 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: [PHP] Post a form within a running php-script


 Yes, replace spaces with + signs
 - Original Message -
 From: SED [EMAIL PROTECTED]
 To: 'Chris Anderson' [EMAIL PROTECTED];
 [EMAIL PROTECTED]
 Sent: Friday, July 06, 2001 7:24 PM
 Subject: RE: [PHP] Post a form within a running php-script


 I thought that at first but I need to post long variables (some
 containing many words) and many, is that okay?

 -Original Message-
 From: Chris Anderson [mailto:[EMAIL PROTECTED]]
 Sent: 6. júlí 2001 23:08
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: [PHP] Post a form within a running php-script


 Put the variables in the url ie:
 script.php?username=joebobpassword=joepassword
 - Original Message -
 From: SED [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, July 06, 2001 6:30 PM
 Subject: [PHP] Post a form within a running php-script


  For a special purpose I want to post a form within a running script,
  is it possible? I don't need the feedback, only post it to a
  http-path. (To clarify, I'm not asking about Submitting a form via
  button.)
 
  Regards,
  Sumarlidi Einar Dadason
 
  SED - Graphic Design
 
  --
  Phone:   (+354) 4615501
  Mobile:  (+354) 8960376
  Fax: (+354) 4615503
  E-mail:  [EMAIL PROTECTED]
  Homepage:www.sed.is
  --
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail:
 [EMAIL PROTECTED]
 


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHPLib conversion?

2001-07-01 Thread Bob Horton

Has anyone ever done or attempted a conversion of PHPLib from PHP3 to PHP4?

There are a number of things that are not making sense in terms of why they
don't work and I was wondering if anyone had done a conversion (and yes I
know that much of the functionality is already in 4)

Thanks.

Bob.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Apache php as a DSO module woes!

2001-02-22 Thread Bob Horton

***
Please reply directly or I'll likely miss the reply in the digest
***

Hello,

I am attempting to compile php 4.0.4pl1 as a dynamic shared module
for Apache 1.3.12 on a Redhat 6.2 box. I followed the detailed
directions, and upon attempting make install it went along fine,
until...

*snip*
Making install in regex
make[1]: Entering directory `/usr/src/php-4.0.4pl1/regex'
make[2]: Entering directory `/usr/src/php-4.0.4pl1/regex'
make[2]: Nothing to be done for `install-p'.
make[2]: Leaving directory `/usr/src/php-4.0.4pl1/regex'
make[1]: Leaving directory `/usr/src/php-4.0.4pl1/regex'
Making install in .
make[1]: Entering directory `/usr/src/php-4.0.4pl1'
/usr/httpsd/bin/apxs -i -a -n php4 libs/libphp4.so
cp libs/libphp4.so /usr/httpsd/libexec/libphp4.so
cp: libs/libphp4.so: No such file or directory
apxs:Break: Command failed with rc=65536
make[1]: *** [install-sapi] Error 1
make[1]: Leaving directory `/usr/src/php-4.0.4pl1'
make: *** [install-recursive] Error 1
[root@server php-4.0.4pl1]#
-

I checked the output from make, and aside from a few warnings, there
was no indication that anything had failed. So I checked the directory,
and surely enough, the shared library had not been compiled.
So I read the manpage for apxs and came up with

[root@server php-4.0.4pl1]# /usr/httpsd/bin/apxs -i -a -c -n php4
libs/libphp4.a
gcc -shared -o libs/libphp4.so libs/libphp4.a
cp libs/libphp4.so /usr/httpsd/libexec/libphp4.so
chmod 755 /usr/httpsd/libexec/libphp4.so
[activating module `php4' in /usr/httpsd/conf/httpsd.conf]
[root@server php-4.0.4pl1]#
-

So now I had the compiled shared library, and reran "make install", so
that
all the steps after where it had failed earlier would be carried out,
everything seemed to go well, until

[root@server conf]# /usr/httpsd/bin/httpsdctl configtest
Syntax error on line 215 of /usr/httpsd/conf/httpd.conf:
Can't locate API module structure `php4_module' in file
/usr/httpsd/libexec/libphp4.so: /usr/httpsd/libexec/libphp4.so:
undefined symbol: php4_module
[root@server conf]#
-

The line in question, reads as...
LoadModule php4_modulelibexec/libphp4.so
-

The above line was automagically inserted for me by the make install
script.


So here I am stuck, out of ideas, and sending a poorly formatted email
to the LOSURS list. Please accept my apologies for any long lines,
I think my email client should wrap them automatically though.
Any ideas or suggestions?

***
Please reply directly or I'll likely miss the reply in the digest
***

* - * - * - * - * - * - * - * - * - * - * -
* Bob Horton - PneumaSoft Inc
* Custom Software Development Services
*
* Phone: (306) 545-SOFT  (545-7638)
* Fax: (306) 924-5326
* [EMAIL PROTECTED]ICQ: 32058710
* - * - * - * - * - * - * - * - * - * - * -

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]