OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: php-general-digest-helplists.php.net
Date: Mon Mar 05 2001 - 15:48:18 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    php-general Digest 5 Mar 2001 21:48:18 -0000 Issue 549

    Topics (messages 42593 through 42676):

    Re: function questions
            42593 by: Tim Ward

    Is it possible to get call stack information?
            42594 by: Neil Kimber

    Re: Get remote IP ot Host
            42595 by: Michael Meinl

    Re: help gurus: multi-dimensional array problem.
            42596 by: Robert Vetter
            42608 by: Tim Ward
            42615 by: Robert Vetter

    PHP & Apache 2.0
            42597 by: Benoit

    Re: dealing with no record
            42598 by: Robert Vetter

    Re: Function to compare an array with another array
            42599 by: Tim Ward

    subscribe my mail-id for PHP mailing lists
            42600 by: B Satish , Gurgaon

    Re: how to redirect to other page?
            42601 by: Batonik

    apache does not understand php3
            42602 by: Marcos
            42607 by: Martín Cabrera Diaubalick

    Is PHP ready for XML?
            42603 by: Erick Papadakis

    Inserting DATE in mySQL!!
            42604 by: Thomas Edison Jr.
            42605 by: Miles Thompson
            42609 by: CC Zona
            42610 by: Hardy Merrill
            42612 by: CC Zona

    help functions
            42606 by: Montgomery-Recht, Evan
            42611 by: CC Zona

    Re: HREFs that can't be
            42613 by: Boget, Chris

    Re: Problem getting PostgreSQL to compile
            42614 by: The Hermit Hacker

    Re: undefined symbol: xmlXPtrNewContext
            42616 by: Sebastien Roy

    Re: Help Please: Php configuration
            42617 by: archana sharma

    Re: max array size question..
            42618 by: Paul K Egell-Johnsen

    delete an element from an array
            42619 by: kaab kaoutar
            42621 by: Hardy Merrill
            42622 by: kaab kaoutar
            42623 by: Hardy Merrill
            42625 by: kaab kaoutar
            42630 by: Hardy Merrill
            42641 by: Christian Cresante

    input textfield value cat!
            42620 by: kaab kaoutar
            42628 by: kaab kaoutar
            42633 by: Christian Reiniger
            42635 by: Batonik

    Match Records
            42624 by: Website4S.aol.com

    MySQL - Problem with multiple INSERTs?
            42626 by: Chris

    Re: stumped on mailing a complete page
            42627 by: Chris Adams

    Re: NETSCAPE Screws QUERY STRING!!!!!!
            42629 by: Chris Adams

    passing variable via url
            42631 by: Kansas Territory
            42634 by: Christian Reiniger

    Re: [PHP-WIN] Re: IE 5.5,authentication,PHP sessions: IE never stops
            42632 by: John Henckel
            42652 by: Chris Poirier

    imap problems.
            42636 by: Chris Lee

    Re: IE 5.5,authentication,PHP sessions: IE never stops
            42637 by: Ken
            42673 by: Ken

    Verify session in function
            42638 by: Tobias Talltorp
            42643 by: kaab kaoutar

    Start you php script over??
            42639 by: Brandon Orther
            42642 by: Boget, Chris
            42644 by: Chris Lee

    Supress error message to apache log?
            42640 by: Michael A. Peters
            42645 by: Michael A. Peters

    HELP!!! FTP!!!!
            42646 by: Bruno Freire

    getting info.. help!
            42647 by: Brandon Orther
            42648 by: Chris Lee
            42649 by: Henrik Hansen
            42650 by: Larry Jeannette

    Pam Auth 0.2 released
            42651 by: Chad Cunningham

    Regular Expression Help
            42653 by: Jeff Oien
            42654 by: Henrik Hansen

    RPMs for PHP accessing PostgreSQL via ODBC over RedHat
            42655 by: Paulo Parola

    get current events from mysql query by date?
            42656 by: Matthew Delmarter
            42658 by: Henrik Hansen
            42660 by: Jeff Oien
            42676 by: php3.developersdesk.com

    Document Contains No Data in Netscape?
            42657 by: Robert Cooper
            42674 by: Chris Lee

    Re: Hide Include-Files from the Web
            42659 by: Richard Kitamura - Media Net Link, Inc.
            42669 by: mailing_list.gmx.at

    Is it odd or even???
            42661 by: Brandon Orther
            42662 by: Boget, Chris
            42663 by: Jon Rosenberg
            42664 by: Larry Jeannette
            42665 by: Boget, Chris
            42666 by: Brian V Bonini
            42667 by: John Guynn
            42670 by: Boget, Chris

    Re: Is it odd or even??? Optimize!!!
            42668 by: Nathan Cassano
            42675 by: Julian Wood

    carriage return in multipart/form-data form post
            42671 by: Jeff Schwartz
            42672 by: Chris Lee

    Administrivia:

    To subscribe to the digest, e-mail:
            php-general-digest-subscribelists.php.net

    To unsubscribe from the digest, e-mail:
            php-general-digest-unsubscribelists.php.net

    To post to the list, e-mail:
            php-generallists.php.net

    ----------------------------------------------------------------------

    attached mail follows:


    why are you using this construct instead of echo()?

    e.g. echo("Hey there " . foo::bar($baz) . " how are you doing?");

            Tim Ward
            Senior Systems Engineer

    Please refer to the following disclaimer in respect of this message:
    http://www.stivesdirect.com/e-mail-disclaimer.html

    > -----Original Message-----
    > From: kevin1 [mailto:kevin1outcomemail.com]
    > Sent: 02 March 2001 09:57
    > To: php-general
    > Subject: function questions
    >
    >
    > I have a here doc:
    >
    > print <<<END
    > Hey there foo::bar($baz) how are you doing?
    > END;
    >
    > foo::bar is a method that returns the name of $baz. I can't
    > seem to get
    > that to interpolate properly. It would make my life cleaner
    > and easier
    > if this could work. Is this at all possible?
    >
    >
    >

    attached mail follows:


    Is there anyway within PHP to get a complete dump of the call-stack? I can't
    use the Zend debugger for technical reasons (awaiting bug fix before it will
    work in our environment). I'd love to have a call that would return an array
    of call stack info. to the current line.

    Thanks,
            Neil

    attached mail follows:


    > I have problem with "REMOTE_ADDR" or "REMOTE_DOST".
    >
    > "REMOTE_ADDR" always return me 127.0.0.1 (localhost) !!!
    > The php program is on remote server ( not locally ) - www.f2s.com.
    >
    > How can I get IP or HOST of the visitor ?

    The problem might be, there is a proxy / redirection on the same server.

    You might try HTTP_X_FORWARDED_FOR. ( or so... try test.php3 for exact
    info... )

    -- 
    Krankenhaus Martha-Maria Nuernberg
    EDV-Organisation
    Michael Meinl
    Tel: 0911/959-1493 -1493
    Fax: 0911/959-1412 -1422
    ---
    Linux - The choice of the GNU generation
    

    attached mail follows:


    andrew wrote: > > Because I want to display it like this: > > category1 (href anchor to category1 below) > category2 > category3 > > category1 > link1 > link2 > link3 > > category2 > link1 > etc... >

    Hello,

    Ever heard of mysql_data_seek()? Have a look in the PHP Docs.

    Robert

    attached mail follows:


    Get a list of unique categories then get a list of each one would do it.

    $link_id = mysql_connect($host, $usr, $pass) or die (mysql_error()); mysql_select_db($database, $link_id); $sql="select distinct category from links"; $result = mysql_query($sql, $link_id) or die ("no results"); $cat_list = new Array(); while ($row=mysql_fetch_array($result)) { $cat_list[] = $row["category"]; echo("<a href=\"$PHP_SELF?#$category\">$category</font></a><br>"); }; foreach ($cat_list as $this_Cat) { echo("<a name=\"$category\">$this_Cat</font></a><br>"); $sql="select name, url from links where category = '$this_Cat'"; $result = mysql_query($sql, $link_id); while ($row=mysql_fetch_array($result)) { echo ("<a href='" . $row[url] . "'>" . $row["name"] . "</a><br>"); }; }

    haven't tested this but the principal should be okay and do what you're after

    Tim Ward Senior Systems Engineer

    Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html

    > -----Original Message----- > From: andrew [mailto:andrewsalamander.net] > Sent: 03 March 2001 19:59 > To: php3developersdesk.com; php-generallists.php.net > Subject: Re: [PHP] help gurus: multi-dimensional array problem. > > > Because I want to display it like this: > > > category1 (href anchor to category1 below) > category2 > category3 > > > category1 > link1 > link2 > link3 > > category2 > link1 > etc... > > > > On 3/3/01 2:49 PM, "php3developersdesk.com" <php3developersdesk.com> > wrote: > > > Addressed to: andrew <andrewsalamander.net> > > php-generallists.php.net > > > > ** Reply to note from andrew <andrewsalamander.net> Sat, > 03 Mar 2001 14:26:30 > > -0500 > >> > >> help! :)> > >> > >> I'm trying to return a list of links under associated > categories from a > >> database table that has the fields: "linkID, category, name, url". > >> > >> I'm selecting the fields and then trying to construct a > multi-dimensional > >> array so that the correct items get put into it (and then > printed out): > >> > > > > Why build an array, and store ANOTHER copy of all the data in memory > > while the script runs? That is just a waste of memory... > > > > > > SELECT Category, Name, URL FROM Links ORDER BY Category, Name; > > > > > > > > To display them: > > > > $OldCategory = ''; > > > > while( list( $Category, $Name, $URL ) = mysql_fetch_row( > $Result )) { > > > > if( $OldCategory != $Category ) { > > print "Category Header $Category<BR>\n"; > > > > $OldCategory = $Category; > > } > > > > print "<A href=\"$URL\">$Name</a><BR>\n"; > > } > > > > > > > > > > > > Rick Widmer > > Internet Marketing Specialists > > http://www.developersdesk.com > >

    attached mail follows:


    Tim Ward wrote: > > Get a list of unique categories then get a list of each one would do it. > > $link_id = mysql_connect($host, $usr, $pass) or die (mysql_error()); > mysql_select_db($database, $link_id); > $sql="select distinct category from links"; > $result = mysql_query($sql, $link_id) or die ("no results"); > $cat_list = new Array(); > while ($row=mysql_fetch_array($result)) > { $cat_list[] = $row["category"]; > echo("<a > href=\"$PHP_SELF?#$category\">$category</font></a><br>"); > }; > > foreach ($cat_list as $this_Cat) > { echo("<a name=\"$category\">$this_Cat</font></a><br>"); > $sql="select name, url from links where category = > '$this_Cat'"; > $result = mysql_query($sql, $link_id); > while ($row=mysql_fetch_array($result)) > { echo ("<a href='" . $row[url] . "'>" . $row["name"] > . "</a><br>"); > }; > } > > haven't tested this but the principal should be okay and do what you're > after > > Tim Ward > Senior Systems Engineer >

    Hello,

    This sulution is not very good: too many SELECTs, too much memory usage...

    Why not just use 2 Tables: Category and Links, and work with a LEFT JOIN? Then you could get all data needed with a single SQL statment, no additional arrays would be needed, either. Don't forget: MySQL is a RELATIONAL database - Why not make usage of it?

    Robert

    attached mail follows:


    Do someone know when PHP will work as apixs under Apache 2.0 ?

    attached mail follows:


    "Jackylilst" wrote: > > People > If I run a sniplet like this: > > ********************** > $query="select name from foo"; > $result= mysql_query($query); > while($row = mysql_fetch_row($result)) > stuffssss.......to display record found.... > ... > *********************** > what am I suppose to do if I also want the code to be able to deal with the case that no record found and redirect user to other page?

    Hello,

    In the PHP Manual, section MySQL, there is a description of a function called mysql_num_rows()...

    Robert

    attached mail follows:


    function ArrayCompare($array1, $array2) { $answer = new Array() foreach ($array1 as $element) { if (($key = array_search($element, $array2)) === false) { $answer[$key] = $array2[$key]; } } return $answer; }

    this will return an array that is a copy of the first array with only those elements that are not in array2. If you only want the first one either just use the first one( foreach(){ ... break;}) or put a break in the if.

    Tim Ward Senior Systems Engineer

    Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html

    > -----Original Message----- > From: Jimmy Bäckström [mailto:broder_bchello.se] > Sent: 05 March 2001 06:38 > To: PHP General List > Subject: Function to compare an array with another array > > > Shu! > I need some help here. > I have a script where I want to compare two arrays with > eachother, and return one value from that does not exists in > both arrays. I have an array of pictures id number created > from a database query. I use sessions to save id numbers of > pictures into an array. I want the first array to be compared > to the second and return the first key/value-pair that are > not found in the session array... > Is there a way I can do this? > > Thankful for any help! > /Broder B >

    attached mail follows:


    dear sir

    can you please subscribe my mail-id for PHP mailing group lists

    Thanks in advance

    satish

    attached mail follows:


    On Mon, 5 Mar 2001, JW wrote:

    > i have used header to redirect to other page. [cut] > if ($result == false) > { > header ("HTTP/1.0 404 Not Found"); > exit; > } > else > { > header ("../Form/first.html"); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ According to RFC, you should use: header('302 Moved'); header('Location: http://new.location.com');

    Greets, Batonik

    attached mail follows:


    hi,

    i have installed php4. from my browser i can read php .. but not php3. what should i do?

    regards,

    marcos marcosival.es

    attached mail follows:


    Hello Marcos,

    In your httpd.conf file there's a line that looks similar to:

    AddType application/x-httpd-php4 .php4 .phtml

    Just add the php3 extension. It should be something like this:

    AddType application/x-httpd-php4 .php4 .phtml .php3

    HTH

    Regards

    attached mail follows:


    I am beginning on how to work with xml, but i need some prelim help. let us say i have an XML file as follows:

    --------------- <Book> <Author>Jonathan Swift</Author> <Name>Gulliver's Travels</Name> </Book>

    <Book> <Author>Agatha Christie</Author> <Name>Murder on 57</Name> </Book> ---------------

    I want to know if PHP supports the following to do with the above file:

    - How to list the above information on a HTML page (I mean using PHP of course) - in tables.Which functions should I use, EXPAT functions or DOM functions? (Whats the difference?)

    - What if I need to search through a XML file? How would I go about doing it - recommended way?

    - What if I needed to add a new tag to all the BOOKS in the XML file. For instance,

    <Isbn>2390737-380973</Isbn>

    How would I do this for all the books in my XML file?

    I'd appreciate any help! Thanks!

    Erick.

    ---
    Outgoing mail is certified Virus Free.
    Checked by AVG anti-virus system (http://www.grisoft.com).
    Version: 6.0.230 / Virus Database: 111 - Release Date: 25-Jan-01
    

    attached mail follows:


    I'm using the following code to insert date into my mySQL table named "Booking". I've created variables that store the date with dashes "-" seperating them. But it's not working. It's giving me an error on the $SQl line.

    following is the code :

    <?php $db = mysql_connect("localhost","root"); mysql_select_db("motorola",$db); $realsdate="$syear"."-"."$smonth"."-"."$stdate"; $realedate="$eyear"."-"."$emonth"."-"."$endate"; $realstime="$shh".":"."$smm"."-"."$sttime"; $realetime="$ehh".":"."$emm"."-"."$entime"; $sql = INSERT INTO booking (room,sdate,edate,stime,etime,purpose,reserved) VALUES ('$rooms','$realsdate','$realedate','$realstime','$realetime','$purpose','$res'); $result = mysql_query($sql) or Die ("An unexpected error occured. Please go back and book again."); ?>

    ?? Cheers, T. Edison jr.

    ===== Rahul S. Johari (Director) ****************************************** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : abraxastechyahoo.com Tel : 91-4546512/4522124 *******************************************

    __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/

    attached mail follows:


    What field type are you using to store time? Echo your $sql and compare it to MySQL's documentation on the time column and how you have defined the field. Miles

    At 03:51 AM 3/5/01 -0800, Thomas Edison Jr. wrote: >I'm using the following code to insert date into my >mySQL table named "Booking". I've created variables >that store the date with dashes "-" seperating them. >But it's not working. It's giving me an error on the >$SQl line. > >following is the code : > ><?php > $db = mysql_connect("localhost","root"); > mysql_select_db("motorola",$db); > $realsdate="$syear"."-"."$smonth"."-"."$stdate"; > $realedate="$eyear"."-"."$emonth"."-"."$endate"; > $realstime="$shh".":"."$smm"."-"."$sttime"; > $realetime="$ehh".":"."$emm"."-"."$entime"; > $sql = INSERT INTO booking >(room,sdate,edate,stime,etime,purpose,reserved) VALUES >('$rooms','$realsdate','$realedate','$realstime','$realetime','$purpose','$res'); > $result = mysql_query($sql) or Die ("An unexpected >error occured. Please go back and book again."); >?> > >?? >Cheers, >T. Edison jr. > > >===== >Rahul S. Johari (Director) >****************************************** >Abraxas Technologies Inc. >Homepage : http://www.abraxastech.com >Email : abraxastechyahoo.com >Tel : 91-4546512/4522124 >******************************************* > >__________________________________________________ >Do You Yahoo!? >Get email at your own domain with Yahoo! Mail. >http://personal.mail.yahoo.com/ > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribelists.php.net >For additional commands, e-mail: php-general-helplists.php.net >To contact the list administrators, e-mail: php-list-adminlists.php.net

    attached mail follows:


    In article <20010305115110.4426.qmailweb3701.mail.yahoo.com>, thomasedisonjryahoo.com ("Thomas Edison Jr.") wrote:

    > I'm using the following code to insert date into my > mySQL table named "Booking". I've created variables > that store the date with dashes "-" seperating them. > But it's not working. It's giving me an error on the > $SQl line. > > following is the code : > > <?php > $db = mysql_connect("localhost","root"); > mysql_select_db("motorola",$db); > $realsdate="$syear"."-"."$smonth"."-"."$stdate"; > $realedate="$eyear"."-"."$emonth"."-"."$endate"; > $realstime="$shh".":"."$smm"."-"."$sttime"; > $realetime="$ehh".":"."$emm"."-"."$entime"; > $sql = INSERT INTO booking > (room,sdate,edate,stime,etime,purpose,reserved) VALUES > ('$rooms','$realsdate','$realedate','$realstime','$realetime','$purpose','$res > '); > $result = mysql_query($sql) or Die ("An unexpected > error occured. Please go back and book again."); > ?>

    Your value for the variable "sql" isn't enclosed in quotes. BTW, tracking down problems with a sql query gets easier when you give yourself a more informative die() message, such as:

    or die ("MySQL says: " . mysql_errorno() . " " . mysql_error() . "\nPHP says: $errormsg");

    -- 
    CC
    

    attached mail follows:


    CC Zona [cczonanospam.invalid] wrote: > In article <20010305115110.4426.qmailweb3701.mail.yahoo.com>, > thomasedisonjryahoo.com ("Thomas Edison Jr.") wrote: > > > I'm using the following code to insert date into my > > mySQL table named "Booking". I've created variables > > that store the date with dashes "-" seperating them. > > But it's not working. It's giving me an error on the > > $SQl line. > > > > following is the code : > > > > <?php > > $db = mysql_connect("localhost","root"); > > mysql_select_db("motorola",$db); > > $realsdate="$syear"."-"."$smonth"."-"."$stdate"; > > $realedate="$eyear"."-"."$emonth"."-"."$endate"; > > $realstime="$shh".":"."$smm"."-"."$sttime"; > > $realetime="$ehh".":"."$emm"."-"."$entime"; > > $sql = INSERT INTO booking > > (room,sdate,edate,stime,etime,purpose,reserved) VALUES > > ('$rooms','$realsdate','$realedate','$realstime','$realetime','$purpose','$res > > '); > > $result = mysql_query($sql) or Die ("An unexpected > > error occured. Please go back and book again."); > > ?> > > Your value for the variable "sql" isn't enclosed in quotes. BTW, tracking > down problems with a sql query gets easier when you give yourself a more > informative die() message, such as: > > or die ("MySQL says: " . mysql_errorno() . " " . mysql_error() . "\nPHP ^^^^^^^^^

    Just a technicality, but I think I remember this to be mysql_errno(). But CC is right - in your "die", give yourself as much info about the error as possible.

    -- 
    Hardy Merrill
    Mission Critical Linux, Inc.
    http://www.missioncriticallinux.com
    

    > says: $errormsg"); > > -- > CC > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net

    attached mail follows:


    In article <20010305074816.A5436merrill.lowell.mclinux.com>, merrillmissioncriticallinux.com (Hardy Merrill) wrote:

    > > or die ("MySQL says: " . mysql_errorno() . " " . mysql_error() . "\nPHP > ^^^^^^^^^ > > Just a technicality, but I think I remember this to be > mysql_errno(). But CC is right - in your "die", give yourself > as much info about the error as possible.

    Oops, you're right about the typo. Sorry about that. It's *very late at night here. <g>

    -- 
    CC
    

    attached mail follows:


    Has anyone spent any time and thought into including help within the library, ie. so you could do a.

    mysql.connect().help() or something like that so as a developer addeds a new function we as end users might be able to understand the function. Most likely by creating a help file to return to the browser because right now I'm finding a lot of undocumentented features.

    thanks,

    evan

    attached mail follows:


    In article <079B626B05A0D3118B1000508B0EA5E906633E74emss04m05.ems.lmco.com>, evan.montgomery-rechtlmco.com ("Montgomery-Recht, Evan") wrote:

    > Has anyone spent any time and thought into including help within the > library, ie. so you could do a. > > mysql.connect().help() or something like that so as a developer addeds a new > function we as end users might be able to understand the function. Most > likely by creating a help file to return to the browser because right now > I'm finding a lot of undocumentented features.

    But at the point where a function would be sufficently documented to have this built-in help file, wouldn't the same information be readily available in the online manual?

    -- 
    CC
    

    attached mail follows:


    > > How is 3 different from 1? > 1: http://www.somedomain.com/program.php?parm1=value1 > 3: http://www.somedomain.com/program.php/value1 > $PATF_INFO now contains '/value1'

    Ahh.

    > This is pretty much acceptable to search engines. Even better add: > <Location /program> > ForceType application/x-httpd-php > </Location> > to httpd.conf. Then the following url will work: > http://www.somedomain.com/program/value1/value2/command.php > program _is_ the program. $PATH_INFO containls: > '/value1/value2/command.php'

    I've tried setting this up, but for the life of me, I could not get it to work. I've just settled with including the ".php" after the program name and that works just as well...

    http://www.somedomain.com/program.php/value1/value2/command.php ----------------------------------^^^^^^^^^^

    > Which you can: $Params = explode( '/', $PATH_INFO ); and > get an array: > $Params[0] : value1 > $Params[1] : value2 > $Params[2] : command.php

    Yup. I do this, but using the above. > > > Why do you want to eliminate all get params and cookies? > > > That might > > > have a lot of control as to what the best approach will be. > > GET because they can be modified and > So can these URL based param passing schemes. Even POST > params are not all that secure from a determined hacker. All it > takes is a little work with a program to fake POST values. The > only advantage they have is taking a little more work.

    Yes, I know. But that little extra work is enough. Plus, we are going to try a few things (including encrypting; not one way) the hidden variables. That and trying to make sure that the form submission request originated from our server. I'm still trying to find the answer as to when HTTP_REFERER is available and when it isn't... still haven't heard anything back on that one... > > Cookies because not all users will have them turned on. > Good reason. > If you don't care about serach engines, you can just use PHP4 sessions, > and append the session ID, or compile with --enable-trans-sid and let > php use cookies when available or place the session ID in the URN if > they are not.

    As I've mentioned in another post, this is *not* working. We have that directive turned on/compiled in and it still does not append the session ID to URLs if the user's browser does not accept cookies. I submitted a few code samples last week that I set up to demonstrated this. Everything looks ok in the php.ini and everything that needed to be was turned on when PHP4 (we are using 4.0.3pl1) was compiled, but still the session ID is not being appended to the URL. I wish I knew what was wrong.

    Chris

    attached mail follows:


    On Mon, 5 Mar 2001, K Old wrote:

    > Yes, I've checked phpinfo() and not it is not compiled in. That is the > problem. I have recompiled PHP with pgsql support and there is some > problem. I'm not sure why it isn't compiling it in. I've tried everything > I know....the installation goes fine...no error messages, everything seems > ok. > > Any ideas?

    when you run configure, the status messages that are output, do they list pgsql as being found? even with --with-pgsql enabled, if it can't find the libraries or header files, it will re-disable it again ...

    > > > >From: The Hermit Hacker <scrappyhub.org> > >To: K Old <kevsurfhotmail.com> > >CC: <php-dblists.php.net>, <php-generallists.php.net> > >Subject: Re: [PHP] Problem getting PostgreSQL to compile > >Date: Fri, 2 Mar 2001 22:30:11 -0400 (AST) > > > > > >have you checked phpinfo() to make sure that pgsql support is actually > >compiled in? if so, any errors on connection, or just silently fails? > > > >On Fri, 2 Mar 2001, K Old wrote: > > > > > Hello, > > > > > > I'm running RH 7 and Apache. I have the latest version of PostgreSQL > >and it > > > is installed and running correctly. I have installed PHP with the > > > --with-pgsql and it seems to install everything needed, but when I try > >to > > > use pg_connect() it fails to connect. Any ideas what I can do? > > > > > > Thanks, > > > Kevin > > > kevsurfhotmail.com > > > _________________________________________________________________ > > > Get your FREE download of MSN Explorer at http://explorer.msn.com > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > > > For additional commands, e-mail: php-general-helplists.php.net > > > To contact the list administrators, e-mail: php-list-adminlists.php.net > > > > > > > > > >Marc G. Fournier ICQ#7615664 IRC Nick: > >Scrappy > >Systems Administrator hub.org > >primary: scrappyhub.org secondary: > >scrappy{freebsd|postgresql}.org > > > > > >-- > >PHP General Mailing List (http://www.php.net/) > >To unsubscribe, e-mail: php-general-unsubscribelists.php.net > >For additional commands, e-mail: php-general-helplists.php.net > >To contact the list administrators, e-mail: php-list-adminlists.php.net > > > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com > >

    Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy Systems Administrator hub.org primary: scrappyhub.org secondary: scrappy{freebsd|postgresql}.org

    attached mail follows:


    I'm having the exact same problem, did someone find a way to correct that problem???? Evething looks good when compiling, the error occured when I try to start Apache.

    I am using sablotron 0.51 with libxmlparse and libxmltok that came from the Sablotron RPM version 0.44 (because I could not find them anywhere else).

    Regards,

    Sebastien Roy PHP programmer sroygaleasec.com

    Jack Lauman wrote:

    > I get the following error when I attempt to start Apache 1.3.19 > (RedHad 7.0): > > apachectl start > > Syntax error on line 230 of /etc/httpd/conf/httpd.conf: > Cannot load /usr/lib/apache/libphp4.so into server: > /usr/lib/apache/libphp4.so: > undefined symbol: xmlXPtrNewContext > /usr/sbin/apachectl start: httpd could not be started > > I'm using libxml 2.3.3, and I assume the error is from the ./configure > statement --xith-dom > > I'd appreciate any suggestions on how to resolve it. > > TIA > > Jack > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net

    attached mail follows:


    Thanks a lot!!!

    Yes it is working now with both cgi as well as php4isapi.dll. I removed php4isapi.dll from filter, which was crashing my web server.

    From: "Phil Driscoll" <phildialsolutions.co.uk> To: "archana sharma" <arch1234hotmail.com>, <php-generallists.php.net> Subject: Re: [PHP] Help Please: Php configuration Date: Sun, 4 Mar 2001 14:33:36 -0000 MIME-Version: 1.0 Received: from [194.217.242.88] by hotmail.com (3.2) with ESMTP id MHotMailBC6B9E89006440043213C2D9F2580DFB0; Sun Mar 04 06:39:06 2001 Received: from dialsolutions3.demon.co.uk ([194.222.141.102] helo=philsntserver)by anchor-post-30.mail.demon.net with smtp (Exim 2.12 #1)id 14ZZdR-000FX1-0U; Sun, 4 Mar 2001 14:37:21 +0000