[PHP] PHP extension is not installed?

2003-06-04 Thread David Busby
/include \ --enable-sockets \ --enable-shared \ --enable-static \ --disable-short-tags \ --with-config-file-path=/etc How do I get my 'xml' PHP extension so I can use pear? David Busby Systems Engineer [EMAIL PROTECTED] David Busby Systems Engineer [EMAIL PROTECTED] -- PHP General

[PHP] xmlDoValidityCheckingDefaultValue undefined?

2002-10-10 Thread David Busby
List, I was installing PHP 4.2.3 with the latest zlib and latest libxml2 onto my RH73 box. When loading the libphp4.so Apache reports that 'xmlDoValidityCheckingDefaultValue' is undefined, there is no error in the compile of Apache (2.0.43) or PHP. I have tried recompiling Apache

[PHP] echo writes number of chars written

2002-09-30 Thread David Busby
List, On my php.4.2.3, Apache 4.0.42 install my echo statements all output the number of characters written (in hex). So this code: echo addrone$id-addrone/addrone; echo addrtwo$id-addrtwo/addrtwo; echo city$id-city/city; Makes this XML: 1d addronePO BOX 698/addrone 13 addrtwo/addrtwo

[PHP] Strange output using PHP 4.2.3/Apache 2.0.42 with domxml

2002-09-30 Thread David Busby
List, When using echo or print to output data to the response buffer, these functions also put the number of bytes in the buffer into the output stream. This only happens when I use this code in my script: $doc = domxml_open_mem($HTTP_RAW_POST_DATA); After that script echo and

[PHP] echo writes number of chars written

2002-09-27 Thread David Busby
List, On my php.4.2.3, Apache 4.0.42 install my echo statements all output the number of characters written (in hex). So this code: echo addrone$id-addrone/addrone; echo addrtwo$id-addrtwo/addrtwo; echo city$id-city/city; Makes this XML: 1d addronePO BOX 698/addrone 13 addrtwo/addrtwo

Re: [PHP] PHP POST arrar is dropping 4 characters - Bug Info

2002-09-26 Thread David Busby
Holmes... -Original Message- From: David Busby [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 7:29 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP POST arrar is dropping 4 characters List, I'm using PHP on my RH73 box and when I post it drops 4 characters out

[PHP] Error during complie of 4.2.3

2002-09-24 Thread David Busby
List, I'm trying to insstall PHP 4.2.3 on my RH73 box with Apache 2.0.40. My Configure script and my results are posted below, the error I'm getting that I can't figure out is: libtool: link: warning: library `/usr/lib/libxml2.la' was moved. stub.lo: file not recognized: File

[PHP] PHP error starting Apache 2.0.40

2002-09-24 Thread David Busby
List, Cannot load /opt/httpd/modules/libphp4.so into server: /opt/httpd/modules/libphp4.so: undefined symbol: mbstr_treat_data I'm getting this trying to start Apache 2.0.40 with PHP 4.2.3, can anyone point to where I should start looking? I looked at google but only found a few results.

[PHP] Trouble Making 4.2.2

2002-07-30 Thread David Busby
List, I get this after make installis this thing trying to make sapi? I want to run on Apache/RH7.3 so I don't know if I need it...couldn't find how to turn in with ./configure. Please help TIA /B make[1]: Leaving directory `/usr/src/php-4.2.2/regex' Making install in .

[PHP] Download not available

2002-07-25 Thread David Busby
Downloads for the Windows binaries are broken. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] pgSQL Functions with results set to php?

2002-07-12 Thread David Busby
List, I'm creating a PHP/pgSQL web site...I need to execute queries with a cursor and get their result set into my PHP script. How can I make a pgSQL procedure with logic that also returns a result set? I've searched and searched but cannot find the answer. Does anyone got it? /B

[PHP] Warning Message using pg_***

2002-07-11 Thread David Busby
List, I'm using PG functions like below and I'm wondering how to get rid of that dang Warning message? PHP.ini setting? or can I turn on/off error checking? $rs is the result from pg_exec() (inside the other function) [PHP Code] $rs = get_database_stuff(list); $irow = 0; while ($ec =

[PHP] pgSQL Stored Procedures

2002-07-11 Thread David Busby
List, Has anyone built Functions (or Stored Procedures) in PostgreSQL that can return a dataset? I would like to contain my login in PostgreSQL (like I did on M$-SQL) and call it from my PHP script (like I did with ASP). Ex: $rs = pg_exec($db, someprocname) while ($rec =

[PHP] setcookie then redirect

2002-07-10 Thread David Busby
List, I'm trying to set a cookie like this: ?php function redirect() { if ($_SERVER['HTTP_HOST'] == $_SERVER['SERVER_NAME']) { $to = func_get_arg(0); header(HTTP/1.1 301\n); header(Location:http://.$_SERVER['SERVER_NAME'].$to.\n);

Re: [PHP] setcookie then redirect + Answer

2002-07-10 Thread David Busby
Read your data from $_COOKIE not $_COOKIES. David Busby wrote: List, I'm trying to set a cookie like this: ?php function redirect() { if ($_SERVER['HTTP_HOST'] == $_SERVER['SERVER_NAME']) { $to = func_get_arg(0); header(HTTP/1.1 301\n); header

Re: [PHP] Stored Procedures + Answer

2002-07-05 Thread David Busby
; z ALIAS FOR $3; BEGIN INSERT INTO tableA (colX, colY, colZ) VALUES (x, y, z); RETURN 1; END ' LANGUAGE 'plpgsql'; Good Luck David Busby wrote: List, I'm using a postgres datbase for my PHP project, how do I make stored

[PHP] Warning: Undefined Index?

2002-07-03 Thread David Busby
List, I'm getting this error and I don't know why...can someone please help out? // Message on my web page Warning: Undefined index: mode in /var/www/html/inc/header.php on line 3 // My Script Here 1: ?php 2: // These are globals on every page 3: $mode = $_GET['mode']; 4: $si_uuid =

[PHP] odbc_**** failing?

2002-07-03 Thread David Busby
List, The following code is erroring for me and I can't figure out why $db = odbc_connect(something, something, passwd); printf(%s, $db); // Prints ID 1 // Hangs here it looks like $rs = odbc_exec($db, spGetItems); // Never gets here while(odbc_fetch_row($rs)) { printf(%s,

[PHP] Using PHP to access a Microsoft SQL server

2002-07-03 Thread David Busby
List, Has anyone done this before? I got it to work for my root account on my computer but I cannot get access from my PHP scripts when I run under the apache user? What the dilly yo? Setup: RH7.3 PHP4 unixODBC freeTDS -- PHP General Mailing List (http://www.php.net/) To

[PHP] New emalloc() error?

2002-07-03 Thread David Busby
List, I think I saw this one on here before...when reading/writing the database I get this when executing odbc_exec(...); What was the fix? FATAL: emalloc(): Unable to allocate 1073784417 bytes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] New emalloc() error?

2002-07-03 Thread David Busby
Wow, Thats what that means? There must be some error. The procedure I'm trying to run doesn't return that much data and it will run via 'isql'. Anything else I should check? /B Lazor, Ed wrote: wow, 107megs of ram in one process is impressive. Have you checked your php.ini max memory

[PHP] RegEx question

2002-07-02 Thread David Busby
List, How can I regex to compare the last three chars of a string to php? /B -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Make strict?

2002-07-02 Thread David Busby
List, How do you make you PHP scripts require explicit variable declaration? Like Java/SQL/C/C++ or 'use strict;' in PERL or 'Option Explicit' in VB/VBScript /B -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] M$-SQL Access from RH7.3

2002-07-01 Thread David Busby
List, I've a RH7.3 machine (just installed) and want to get PHP to access my M$ SQL database. I'm on a small time crunch here too. My M$ web server died and it's so hosed that I had to call support (ouch!). Anyways...they haven't fixed it yet and I thought it would be funny to get

[PHP] Where do I specify a DSN?

2002-07-01 Thread David Busby
List, I'm getting this error message...where does it come from? /B Warning: SQL error: [unixODBC][Driver Manager]Data source name not found, and no default driver specified, SQL state IM002 in SQLConnect in /var/www/html/index.php on line 4 -- PHP General Mailing List

[PHP] Where do I specify a DSN? v0.2

2002-07-01 Thread David Busby
List, Guess I should be more specific: Heres line four: $db = odbc_connect(somedsn,sa, ); My System: RedHat 7.3/Apache/PHP 4.1.2-7 I'm getting this error message...I think I just need to define the DSN...is that done in /etc/odbc.ini? Or what? /B Warning: SQL

[PHP] ODBC Failures

2002-07-01 Thread David Busby
List, My ODBC connection is failing it seems...I can run this code just fine...odbc_connect and odbc_pconnect seem to work...the odbc_prepare even works just fine...but as soon as I execute (with odbc_execute, odbc_exec, or odbc_do it fails...any ideas? ?php $db =