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 26 2001 - 12:58:56 CST

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

    php-general Digest 26 Mar 2001 18:58:56 -0000 Issue 590

    Topics (messages 45583 through 45631):

    Re: oracle last inserted
            45583 by: Thies C. Arntzen

    Re: Email validation
            45584 by: Manuel Lemos

    PHP Authentication
            45585 by: Jon
            45586 by: Jack Dempsey
            45589 by: Patrick

    Re: set_error_handler and parse errors
            45587 by: Neil Kimber

    Problem with mail function
            45588 by: Sonya Davey / QDCEL
            45593 by: Carsten Gehling
            45597 by: Ankur Verma

    get the domain to display on my page
            45590 by: Jacky
            45591 by: Renze Munnik

    Re: about:home
            45592 by: Renze Munnik

    Re: array in cookie . . .
            45594 by: Christian Reiniger
            45595 by: Christian Reiniger

    MySQL locks, will PHP wait?
            45596 by: Jeroen Geusebroek

    Prob with sending a php variable in an email
            45598 by: Sonya Davey / QDCEL
            45600 by: Rudolf Visagie
            45601 by: Ankur Verma
            45602 by: Ankur Verma

    Re: Prob with sendin'php-generallists.php.net'g a php vari able in an email
            45599 by: Rudolf Visagie

    Problem with curl
            45603 by: Hans-Peter Straub

    .doc to .txt
            45604 by: Siim Einfeldt aka Itpunk
            45606 by: Ankur Verma
            45617 by: Max Pyziur

    php3, files and Apache
            45605 by: xxx

    php sessions and classes
            45607 by: Steve Brett
            45626 by: Chris Lee

    ignore_user_abort
            45608 by: Plamen Slavov

    Re: php 4.04pl 1-3 for red hat 7
            45609 by: Larry Hotchkiss

    test
            45610 by: TV Karthick Kumar
            45611 by: TV Karthick Kumar

    reading a URL...
            45612 by: Tristan.Pretty.risk.sungard.com
            45613 by: Renze Munnik

    Help, I can't understand the 'arg_separator' directive
            45614 by: loic-info.netcourrier.com

    Header Problem...
            45615 by: E K L
            45618 by: Renze Munnik

    stil problems with fopen and URL
            45616 by: marco trevisani

    New PHP Coder - needs advice
            45619 by: Rob McMahan, Jr.
            45625 by: Chris Lee

    Get info to a perl script and then continue without going to that perl script.
            45620 by: Brandon Orther
            45624 by: Chris Lee

    Getting Javascript variable into PHP
            45621 by: Michael Champagne

    Re: I don't understand HTTP_SESSION_VARS
            45622 by: Michael Champagne

    oci8 and primary key & its speed
            45623 by: almir

    Re: imap_open() dosen't work :(
            45627 by: Chris Lee

    Re: Cookie problem
            45628 by: Chris Lee

    Another problem installing PHP under Solaris 8.0
            45629 by: Emiliano Marmonti
            45631 by: Joe Rice

    offline reader for php generated websites
            45630 by: Andre

    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:


    On Mon, Mar 26, 2001 at 10:19:28AM +0800, Chien-pin Wang wrote:
    >
    > If you use sequence to generate your last_inserted_id, then you can always
    > get that ID by calling
    >
    > SELECT sequence_name.CURRVAL
    > FROM DUAL;
    >
    > within the same session.

        <?php
     
            $data = array("larry","bill","steve");
     
            $db = OCILogon("scott","tiger");
            $stmt = OCIParse($db,"insert into names values (myid.nextval,:name) returning id into :id");
            OCIBindByName($stmt,":ID",$id,32);
            OCIBindByName($stmt,":NAME",$name,32);
     
            while (list(,$name) = each($data)) {
                OCIExecute($stmt);
                echo "$name got id:$id\n";
            }
        ?>

        re,
        tc
    >
    > Chien-pin
    >
    > On Sun, 25 Mar 2001, almir wrote:
    >
    > > is there a way to get last inserted id from oracle as
    > > mysql_inerted_id() or
    > > SELECT IDENTITY AS LastId
    > > in mssql server
    > >
    > > i have a function that does only that, takes insert statement and returns
    > > last id, but this function have to work for all tables (different triggers
    > > in oracle) , right now the only thing i can imagine is to give this function
    > > the name of ID column and read name of table with regex and then do
    > > select max(parametar_id) from regex_table
    > > and then to do commit ,
    > > this way is somehow realy stupid but is my only solution in this moment so
    > > if you have any better ideas plese help
    > >
    > > almir
    > >
    > >
    > >
    > >
    >
    >
    > --
    > 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:


    Hello Mike,

    On 21-Mar-01 01:21:13, you wrote:

    >Hello Again,

    >Can anyone tell me what the best form of Email validation there is? It needs
    >to be quick & as open to - and . as possible.

    Look here for a complete email validation class:

    http://phpclasses.UpperDesign.com/browse.html/package/13

    Regards,
    Manuel Lemos

    Web Programming Components using PHP Classes.
    Look at: acm.org">http://phpclasses.UpperDesign.com/?user=mlemosacm.org

    --
    E-mail: mlemosacm.org
    URL: http://www.mlemos.e-na.net/
    PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
    --
    

    attached mail follows:


    Hi,

    I have read that for using PHP authentication I must be able to user variables such as $PHP_AUTH_USER that are only avaible when PHP is installed as a module. On the other hand I am using APACHE 1.3.17 with PHP 4.04 and I have configured Apache with the following lines:

    ScriptAlias /php4/ "C:/php/" Action application/x-httpd-php4 "/php4/php.exe" AddType application/x-httpd-php4 .php

    As I think it could be interesting to use this kind of authentication, I need some help for configuring PHP as a module discarding the CGI version of PHP that I think I am using with the lines of code above, so I would be very grateful if anyone could give some help about configuring PHP this way.

    Thank everybody,

    attached mail follows:


    Hi Jon,

    just to let you know, you don't "need" $PHP_AUTH_USER to do authentication...i just finished up a little auth system (which works and i'm psyched) and i only used some session variables.....that having been said, if you want to configure it as a module, check out www.php.net if you got it up and running once, getting it to work as a module shouldn't be too bad

    -jack

    -----Original Message----- From: Jon [mailto:jzuazoanexo.es] Sent: Monday, March 26, 2001 2:38 AM To: php-generallists.php.net Subject: [PHP] PHP Authentication

    Hi,

    I have read that for using PHP authentication I must be able to user variables such as $PHP_AUTH_USER that are only avaible when PHP is installed as a module. On the other hand I am using APACHE 1.3.17 with PHP 4.04 and I have configured Apache with the following lines:

    ScriptAlias /php4/ "C:/php/" Action application/x-httpd-php4 "/php4/php.exe" AddType application/x-httpd-php4 .php

    As I think it could be interesting to use this kind of authentication, I need some help for configuring PHP as a module discarding the CGI version of PHP that I think I am using with the lines of code above, so I would be very grateful if anyone could give some help about configuring PHP this way.

    Thank everybody,

    --
    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:


    ----- Original Message ----- From: "Jon" <jzuazoanexo.es> To: <php-generallists.php.net> Sent: Monday, March 26, 2001 1:38 AM Subject: [PHP] PHP Authentication

    > Hi, > > I have read that for using PHP authentication I must be able to user > variables such as $PHP_AUTH_USER that are only avaible when PHP is > installed as a module. On the other hand I am using APACHE 1.3.17 with PHP > 4.04 and I have configured Apache with the following lines: > > ScriptAlias /php4/ "C:/php/" > Action application/x-httpd-php4 "/php4/php.exe" > AddType application/x-httpd-php4 .php > > As I think it could be interesting to use this kind of authentication, I > need some help for configuring PHP as a module discarding the CGI version of > PHP that I think I am using with the lines of code above, so I would be very > grateful if anyone could give some help about configuring PHP this way. > > Thank everybody, > This is all I did added this to the module airea LoadModule php4_module d:/php/sapi/php4apache.dll and just uncomented this AddType application/x-httpd-php .php hope this helps

    attached mail follows:


    Yep, you're right. But this actually makes sense. Parse errors mean that your code is just plain wrong and cannot/will not run with any level of error-reporting.

    From a technical stand-point it also makes a lot of sense. Imagine if the parser fails 1/2 way through parsing code before it gets to the error-handling function - it cannot call the registered function as it does not know where it is. I've never seen a hacked version of PHP where this behaviour is different.

    -----Original Message----- From: Dean Hall [mailto:hallapt7.com] Sent: 25 March 2001 19:35 To: php-generallists.php.net Subject: [PHP] set_error_handler and parse errors

    Is it just me, or do parse errors get reported by the engine even if you use your own error handler?

    I've registered my own error handler with "set_error_handler()", but it doesn't get called on parse errors -- the manual seems to hint that this is the case (without actually saying it), and I searched the list archives and came across someone who hacked the PHP source to make parse errors get passed to the error handler. Anyone know for sure?

    Dean.

    --
    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:


    Hi, Can anyone help me the mail function.

    I am using PHP 4.04, on Windows 98,with PWS.

    1.What must I configure thse settings in my php.ini file to? SMTP = localhost sendmail_from = melocalhost.com 2.Why does this code give me the following error? Warning: Failed to Connect Code:

    $to = 'supporthere.co.za'; $from = 'sonyadpqafrica.co.za'; $body = $MainAgentCode; $headers = "From: $from"; $success = mail($to, "Inpro Web site", $body, $headers); if ($success) {//begin echo "<B><CENTER>Thank you for your input</CENTER></B>\n"; }//end else{ echo "Error \n"; }

    Thanks to anyone who can help. Sonya

    attached mail follows:


    From: "Sonya Davey / QDCEL" <SonyaDPQAfrica.co.za> Sent: Monday, March 26, 2001 10:55 AM

    > 1.What must I configure thse settings in my php.ini file to? > SMTP = localhost > sendmail_from = melocalhost.com

    SMTP must be set to the address of a SMTP-server (Simple Mail Transfer Protocol) - that is a server through which you can send mail. If this Windows98 machine of yours is your personal and you connect to the internet through a dialup connection, try to use the same server which is specified in your mail-program.

    It is because of this setting that your code fails to execute. It tries to connect to a SMTP service on "localhost" which is your own machine. Windows98 doesn't have a SMTP-service installed per default.

    - Carsten

    attached mail follows:


    The mail function uses the specified SMTP mail server to send out the mail.

    you will need to set the php.ini variables as follows

    SMTP = localhost ; The name or IP address of the machine which is running the SMTP Server. for ex ; mail.flashmail.com

    sendmail_from = melocalhost.com ; The address that you want to appear in the From Field of the mail.

    The error you are getting is most probably because of the fact that there is no SMTP server running on the machine specified in the above SMTP setting.

    take a look at the following link for more info on the mail function -

    http://www.php.net/manual/en/function.mail.php

    hope that helps

    regards

    Ankur Verma HCL Technologies Noida Uttar Pradesh India

    -----Original Message----- From: Sonya Davey / QDCEL [mailto:SonyaDPQAfrica.co.za] Sent: Monday, March 26, 2001 2:25 PM To: 'php-generallists.php.net' Subject: [PHP] Problem with mail function

    Hi, Can anyone help me the mail function.

    I am using PHP 4.04, on Windows 98,with PWS.

    1.What must I configure thse settings in my php.ini file to? SMTP = localhost sendmail_from = melocalhost.com 2.Why does this code give me the following error? Warning: Failed to Connect Code:

    $to = 'supporthere.co.za'; $from = 'sonyadpqafrica.co.za'; $body = $MainAgentCode; $headers = "From: $from"; $success = mail($to, "Inpro Web site", $body, $headers); if ($success) {//begin echo "<B><CENTER>Thank you for your input</CENTER></B>\n"; }//end

    e{ echo "Error \n"; }

    Thanks to anyone who can help. Sonya

    -- 
    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:


    Hi all Is there anyway I can get the domain name where the viwer came from and write it out on my page? Jack jackyactivelifestyle.com "There is nothing more rewarding than reaching the goal you set for yourself"

    attached mail follows:


    Well, you can use the $HTTP_REFERER, but it's not all to reliable.

    On Mon, Mar 26, 2001 at 04:13:17PM -0600, Jacky wrote: > Hi all > Is there anyway I can get the domain name where the viwer came from and write it out on my page? > Jack > jackyactivelifestyle.com > "There is nothing more rewarding than reaching the goal you set for yourself"

    attached mail follows:


    The JavaScript solution to this:

    window.home();

    Don't know how to do this in PHP. Don't this that's possible...

    RenzE

    attached mail follows:


    On Monday 26 March 2001 05:15, you wrote: > Im trying to get an array saved in a cookie, I have this snippet so > far.. > > <? > if (newuser == yes) { > $user_reg[0]= $username; > $user_reg[1]= $password; > $user_reg[2]= $fullname; > $user_reg[3]= $email; > $user_reg[4]= $age; > setcookie ("user_reg" , $user_reg, time() + 360 * 86400);

    use serialize($user_reg). You can only save strings in cookies.

    > is there a limit to how much I can save in the array ?

    IIRC 8192 bytes

    -- 
    Christian Reiniger
    LGDC Webmaster (http://sunsite.dk/lgdc/)
    

    Google results 1-10 of about 142,000,000 for e. Search took 0.18 seconds.

    - http://www.google.com/search?q=e

    attached mail follows:


    On Monday 26 March 2001 05:15, you wrote: > Im trying to get an array saved in a cookie, I have this snippet so > far.. > > <? > if (newuser == yes) { > $user_reg[0]= $username; > $user_reg[1]= $password; > $user_reg[2]= $fullname; > $user_reg[3]= $email; > $user_reg[4]= $age; > setcookie ("user_reg" , $user_reg, time() + 360 * 86400);

    Almost forgot it: do *not* store passwords and personal info in a cookie. Store it in the database with some unique ID as key and transmit only this ID.

    -- 
    Christian Reiniger
    LGDC Webmaster (http://sunsite.dk/lgdc/)
    

    Google results 1-10 of about 142,000,000 for e. Search took 0.18 seconds.

    - http://www.google.com/search?q=e

    attached mail follows:


    Hi Guys,

    I have a question; if i lock a mysql table, will a PHP script wait untill there is no lock anymore and then execute the script?

    Thanks,

    Jeroen

    attached mail follows:


    I have a problem sending a php variable ie $Username in a simple email form, example as follows: <body> <? Username="Sysdba"; ?>

    <a href="Mailto:Supporthere.co.za? subject= Web site &body=User name: <? $Username; ?> Main Agent Code:"> Support Desk</a>

    </body>

    Thanks in advance! Sonya

    attached mail follows:


    Hi Sonya,

    Looks like you need a $ before the variable name in the first instance:

    <? $Username = "Sysdba"; ?>

    Rudolf Visagie rudolfqedi.co.za

    -----Original Message----- From: Sonya Davey / QDCEL [mailto:SonyaDPQAfrica.co.za] Sent: 26 March 2001 12:39 To: 'php-generallists.php.net' Subject: [PHP] Prob with sendin'php-generallists.php.net'g a php variable in an email

    I have a problem sending a php variable ie $Username in a simple email form, example as follows: <body> <? Username="Sysdba"; ?>

    <a href="Mailto:Supporthere.co.za? subject= Web site &body=User name: <? $Username; ?> Main Agent Code:"> Support Desk</a>

    </body>

    Thanks in advance! Sonya

    -- 
    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:


    try with

    <body> <? $Username="Sysdba"; ?>

    <a href="Mailto:Supporthere.co.za? subject= Web site &body=User name: <? $Username; ?> Main Agent Code:"> Support Desk</a>

    </body>

    hope that helps

    regards

    Ankur Verma

    -----Original Message----- From: Sonya Davey / QDCEL [mailto:SonyaDPQAfrica.co.za] Sent: Monday, March 26, 2001 4:09 PM To: 'php-generallists.php.net' Subject: [PHP] Prob with sending a php variable in an email

    I have a problem sending a php variable ie $Username in a simple email form, example as follows: <body> <? Username="Sysdba"; ?>

    <a href="Mailto:Supporthere.co.za? subject= Web site &body=User name: <? $Username; ?> Main Agent Code:"> Support Desk</a>

    </body>

    Thanks in advance! Sonya

    --
    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:


    sorry for the last mail!

    try with

    <body> <? $Username="Sysdba"; ?>

    <a href="Mailto:Supporthere.co.za? subject= Web site &body=User name: <? echo $Username; ?> Main Agent Code:"> Support Desk</a> </body>

    hope that helps

    Ankur Verma HCL Technologies Noida

    -----Original Message----- From: Sonya Davey / QDCEL [mailto:SonyaDPQAfrica.co.za] Sent: Monday, March 26, 2001 4:09 PM To: 'php-generallists.php.net' Subject: [PHP] Prob with sending a php variable in an email

    I have a problem sending a php variable ie $Username in a simple email form, example as follows: <body> <? Username="Sysdba"; ?>

    <a href="Mailto:Supporthere.co.za? subject= Web site &body=User name: <? $Username; ?> Main Agent Code:"> Support Desk</a>

    </body>

    Thanks in advance! Sonya

    --
    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:


    Hi Sonya,

    Looks like you need a $ before the variable name in the first instance:

    <? $Username = "Sysdba"; ?>

    Rudolf Visagie rudolfqedi.co.za

    -----Original Message----- From: Sonya Davey / QDCEL [mailto:SonyaDPQAfrica.co.za] Sent: 26 March 2001 12:39 To: 'php-generallists.php.net' Subject: [PHP] Prob with sendin'php-generallists.php.net'g a php variable in an email

    I have a problem sending a php variable ie $Username in a simple email form, example as follows: <body> <? Username="Sysdba"; ?>

    <a href="Mailto:Supporthere.co.za? subject= Web site &body=User name: <? $Username; ?> Main Agent Code:"> Support Desk</a>

    </body>

    Thanks in advance! Sonya

    -- 
    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:


    Hello all,

    i have some problems with curl-7.7 in php-4.0.4.

    When i post to a https- Server through curl the returned data is corrupted. I post to a transaction-server. The servers response is encrypted data. I actually post all variables through the URL. When i try to post the vars through the "CURLOPT_POST" and "CURLOPT_POSTFIELDS" directives the server couldn't get the values.

    What's wrong ??

    Here is my script

    ###########################

    $user_agent="Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" ;

    $URL="https://www.netkauf.de/paygate/direct.asp" ; $Send_Opts="HaendlerID=".$HaendlerID."&Len=".$Len."&Data=".$Data ;

    $URL=$URL."?".$Send_Opts ; function post_data($URL) { $ch=curl_init(); curl_setopt($ch, CURLOPT_URL,"$URL"); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_HEADER,0); curl_setopt($ch, CURLOPT_FAILONERROR, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 120); //times out after 120s curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); //curl_setopt($ch, CURLOPT_POST, 1); //curl_setopt($ch, CURLOPT_POSTFIELDS, "HaendlerID=$HaendlerID&Len=$Len&Data=$Data"); $result=curl_exec($ch); curl_close ($ch); return $result ; }

    $result=post_data($URL) ; /* Redirect zur naechten Page um Status u ändern */ header ("Location: http://paygate.mydomain.de/change_stat.php?HaendlerID=$HaendlerID&$result"); exit ;

    -- 
    -------------------------------*
    I-NetPartner GmbH
    Hans-Peter Straub
    Seewiesenstrasse 12
    D-73054 Eislingen
    --
    Phone: +49 7161 9849955
    Fax: +49 7161 9849956
    --
    eMail: straubI-NetPartner.de
    Web: http://www.I-NetPartner.de
    -------------------------------*
    ********************************
    **  Informieren Sie Sich über
    **   -->> GigaLan <<--
    **  das Funknetz im Filstal
    **  http://www.GigaLan.de
    ********************************
    -------------------------------*
    

    attached mail follows:


    Hi all,

    I need to convert .doc files into text. I know it`s possible to do it by converting it in word, but I need to give the people of the site opportunity to upload a .doc file and then I need to display it (and not in another window, but rather 'in the site' like you would normally display some text).

    All the info, code examples, urls you can provide me conserning this one, I would appreciate it. And when answering, please send it to my private email as well, itpunkitpunk.com

    Thank you in advance, Siim EInfeldt itpunkitpunk.com

    attached mail follows:


    check out the microsoft word parser at www.wvware.com

    you can call this program ysing the exec() or system() function.

    also, search the mail archives for discussion on this topic in the very recent past.

    hope that helps

    regards

    Ankur verma HCL Technologies Noida India

    -----Original Message----- From: Siim Einfeldt aka Itpunk [mailto:siim_epshg.edu.ee] Sent: Monday, March 26, 2001 5:41 PM To: php-generallists.php.net Subject: [PHP] .doc to .txt

    Hi all,

    I need to convert .doc files into text. I know it`s possible to do it by converting it in word, but I need to give the people of the site opportunity to upload a .doc file and then I need to display it (and not in another window, but rather 'in the site' like you would normally display some text).

    All the info, code examples, urls you can provide me conserning this one, I would appreciate it. And when answering, please send it to my private email as well, itpunkitpunk.com

    Thank you in advance, Siim EInfeldt itpunkitpunk.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:


    On Mon, 26 Mar 2001, Ankur Verma wrote:

    > check out the microsoft word parser at www.wvware.com > > you can call this program ysing the exec() or system() function. > > also, search the mail archives for discussion on this topic in the very > recent past.

    There is one utility which I find very helpful - 'catdoc'. It's homepage is: http://www.ice.ru/~vitus/catdoc/

    > hope that helps > > regards > > Ankur verma > HCL Technologies > Noida > India

    Max Pyziur BRAMA - Gateway Ukraine pyzbrama.com http://www.brama.com/

    > -----Original Message----- > From: Siim Einfeldt aka Itpunk [mailto:siim_epshg.edu.ee] > Sent: Monday, March 26, 2001 5:41 PM > To: php-generallists.php.net > Subject: [PHP] .doc to .txt > > > > Hi all, > > I need to convert .doc files into text. I know it`s possible to do it by > converting it in word, but I need to give the people of the site > opportunity to upload a .doc file and then I need to display it (and not > in another window, but rather 'in the site' like you would normally > display some text). > > All the info, code examples, urls you can provide me conserning this one, > I would appreciate it. And when answering, please send it to my private > email as well, itpunkitpunk.com > > Thank you in advance, > Siim EInfeldt > itpunkitpunk.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 > > > -- > 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:


    Hello Guys, Anybody can help to write script in php3 that will send to browser chosen file from server's directory to which Apache does not have access. It is important that klient's browser, depending on file type, could save it to disk or display (eg. text or graphics). Will be gratefull fo rany help. Regards

    attached mail follows:


    hi,

    i'm busily rewriting an exisitng calendar system that is in use at work.

    we're using UML as a design tool and hope to have an OO version of the system we have at the minute that wil 'fit in' with future devs.

    our system at the moment makes heavy use of postgresql and i am hoping to populate various object from the data in the db.

    our system also relies on session for passing data between pages and the site as a whole.

    what i need to know is this in a kind of yes or no fashion:

    will php allow me to create a class and then have access to the class from other pages and scripts ?

    Steve

    attached mail follows:


    yes this will work, are you passing the class as a session ? remember to declare the class BEFORE you call session_start()

    ie.

    <?php class test { //-note- ... }

    session_start(); ?>

    do not have session_start before the class declaration.

    how do you like postgres? what version? speed/reliability/stability ? In some benchmarks I did I found postgres lightning fast when it came to multiple table joins, but I have yet to run it in production, so I dont know about stability/reliability.

    -- 
    

    Chris Lee leemediawaveonline.com

    ""Steve Brett"" <sbrette-mis.com> wrote in message news:99nf2e$vq0$1toye.p.sourceforge.net... hi,

    i'm busily rewriting an exisitng calendar system that is in use at work.

    we're using UML as a design tool and hope to have an OO version of the system we have at the minute that wil 'fit in' with future devs.

    our system at the moment makes heavy use of postgresql and i am hoping to populate various object from the data in the db.

    our system also relies on session for passing data between pages and the site as a whole.

    what i need to know is this in a kind of yes or no fashion:

    will php allow me to create a class and then have access to the class from other pages and scripts ?

    Steve

    -- 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:


    Hi all, i have PHP 3.0.12 running on Linux/Apache 1.3.9 platform My problem is ignore_user_abort function. As described in documentatuion if i put in the beginning of my script set_time_limit(0); //no time limit ignore_user_abort(0); the script should terminate when user hits Stop button or leaves the page, but this does not happen, instead the script keeps on working. Anyone has any ideas?

    Plamen Slavov

    attached mail follows:


    I treid running configure with all the current config options. First time through it puked at apxs so, after a little research, installed the apache devel rpm to get apxs. Configure was chugging right along but failed. It got pased system checks, started "configuring extensions" and then failed. It reported "cannot find necessary header files". I am sure I just need some devel software installed or have an incorrect path, but what is the best way to figure out which header is missing or not pathed?

    Larry Hotchkiss wrote: > > Thanks. I just grabbed the source and am looking over it. The way the > red hat RPM is configed is perfect for me except for the exclusion of > enable-trans-sid. Am I correct in assuming in addition to using > --enable-trans-sid that I should also use the current config options > displayed by phpinfo() ? > > Larry H. > > "..s.c.o.t.t.. [gts]" wrote: > snip.............. > > (replace php..... with whatever the PHP > > tarball is named) > > > > at the prompt (you dont need to be root) type: > > tar xvfz php.....tar.gz > > cd php..... > > ./configure --enable-trans-sid > > make > > make test > > > > if you didnt get any errors, then (as root) type: > > make install > snip...................

    attached mail follows:


    Is the list alive ?

    ~ K

    attached mail follows:


    ----- Original Message ----- From: "TV Karthick Kumar" <tvkarthickmyrealbox.com> To: <php-generallists.php.net> Sent: Monday, March 26, 2001 3:16 PM Subject: test

    > Is the list alive ? > > ~ K > >

    attached mail follows:


    'ello,

    Is it Possible, in PHP to read a URL?

    What I am trying to do is this... I have many news stories in a database, and a single static news page, that calls the story, and the corresponding headline. I have looked about on-line, and seen a common URL,...

    http://www.arandomsite.com/news_story.php?id=123

    I have adopted this method, and it only displays the top most story in my database, no matter what news ID I use.

    Can I get the ID number from the URL?, and then pass that to the SQL statement?

    I cannot find a tutorial or similar on-line anywhere.

    Hope you can help, Tris...

    P.S, after getting this all set up, my boss asked me to turn everything into .jsp pages. SO, I am off to buy a "JSP in 20 seconds" Type books, any ideas?

    ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager.

    This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses.

    **********************************************************************

    attached mail follows:


    Just use $id in your code. That should do the job. Variables that are passed using GET or POST you can just use in your code. Ofcourse you have to add the $-sign. So if you use the URI:

    http://www.arandomsite.com/news_story.php?id=123

    You can just use:

    "SELECT xxx FROM yyy WHERE id=$id"

    RenzE.

    On Mon, Mar 26, 2001 at 02:26:27PM +0000, Tristan.Prettyrisk.sungard.com wrote: > > > 'ello, > > Is it Possible, in PHP to read a URL? > > What I am trying to do is this... > I have many news stories in a database, and a single static news page, that > calls the story, and the corresponding headline. > I have looked about on-line, and seen a common URL,... > > http://www.arandomsite.com/news_story.php?id=123 > > I have adopted this method, and it only displays the top most story in my > database, no matter what news ID I use. > > Can I get the ID number from the URL?, and then pass that to the SQL statement? > > I cannot find a tutorial or similar on-line anywhere. > > Hope you can help, > Tris... > > P.S, after getting this all set up, my boss asked me to turn everything into > .jsp pages. > SO, I am off to buy a "JSP in 20 seconds" Type books, any ideas? > > > > > > > ********************************************************************** > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are addressed. If you have received this email in error please notify > the system manager. > > This footnote also confirms that this email message has been swept by > MIMEsweeper for the presence of computer viruses. > > > ********************************************************************** > > -- > 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

    -- 
    

    Mvg,

    Renze Munnik Manager Business Development DataLink BV

    E-mail : renzedatalink.nl Telefoon: 023-532.61.62 Fax : 023-532.21.44 Mobiel : 06-218.111.43

    attached mail follows:


    Hi!

    My system : win 98SE, Apache 1.3.19 & the latest php4.0.5-RC1 binaries from www.php4win.de

    My problem is that I can't understand how the 'arg_separtor' directive works. Here is my test script : <?php // grabs the sent variables names and values while(list($name, $value) = each($HTTP_GET_VARS)) echo($name . ' = ' . $value . '<br />'); ?> <p> <a href="test_amp.php?var1=1&var2=2&var3=3">test with simple '&'</a><br /><br /> <a href="test_amp.php?var1=1&amp;var2=2&amp;var3=3">test with '& amp;'</a> </p> Note that the second link contains '& amp;' to separate variables (I don't how this will be displayed on the list).

    If the 'arg_separator' directive is set to '&amp;' I always (whatever is the link I've clicked on among the two previous ones) get the results: r1 = 1 r2 = 2 r3 = 3

    What's matter? I must have done something wrong but what?

    Thanks in advance,

    --------------------------------------- Loïc (aka lolo) for the phpHeaven-team. Please reply to: lolophpHeaven.net ---------------------------------------

    ----- La messagerie itinérante sans abonnement NetCourrier ----- Web : www.netcourrier.com - Minitel : 3615 NETCOURRIER Téléphone : 08 36 69 00 21

    attached mail follows:


    Hi all,

    could any one tell me that how do I go to a specific URL using php command.At the same time, I would like to pass the variable to the page. I used header to do it but failed, with the error message:-

    Warning: Cannot add header information - headers already sent by (output started at /usr/local/apache/htdocs/traName_use.php:2) in /usr/local/apache/htdocs/traName_use.php on line 3

    Warning: Cannot add header information - headers already sent by (output started at /usr/local/apache/htdocs/traName_use.php:2) in /usr/local/apache/htdocs/traName_use.php on line 4

    Warning: Cannot add header information - headers already sent by (output started at /usr/local/apache/htdocs/traName_use.php:2) in /usr/local/apache/htdocs/traName_use.php on line 26

    And our code is as below:-

    <?php header("Pragma : no-cache "); header("Cache-Control :no-cache,must-revalidate");

    $db=mysql_connect("localhost","root","123456"); mysql_select_db("test",$db); $query="select trade_name_c from confirm_member_info where trade_name_c = '$tradeName'"; $result=mysql_query($query,$db); $row=mysql_fetch_row($result);

    if($row[0]==$tradeName) { //echo "Sorry, the Trade Name <b>$tradeName</b> has been used<Br>"; //echo "Please Choose other Trade Name<BR>"; //echo "Click <a href='mysignup_1.php'here</a> to back."; header("Location: http://192.168.0.1/mysignup_1.php"); } else { //echo "Your Trade Name and password has been acceptted<br>"; //echo "Click to proceed."; //<input type='hidden' name='introducer' value='$introducer'> header("Location: http://www.hotmail.com"); } ?> <input type="hidden" name="tradeName" value="<?$tradeName?>"> <input type="hidden" name="password" value="<?$password?>"> <input type="hidden" name="MotherName" value="<?$MotherName?>">

    I tried to use hidden input type to pass the value, but can it work without form and submit button??

    I would appreaciate if you could give me suggestions and advice.

    thanks

    _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

    attached mail follows:


    There may not be any headers before you use the 'header' statement. The header("Location:...") should be the first output you send. You might want to consider moving the two 'anti-cache' headers after the header("Location;...") statement.

    RenzE.

    On Mon, Mar 26, 2001 at 11:06:11PM +0800, E K L wrote: > Hi all, > > could any one tell me that how do I go to a specific URL using php > command.At the same time, I would like to pass the variable to the page. > I used header to do it but failed, with the error message:- > > Warning: Cannot add header information - headers already sent by (output > started at /usr/local/apache/htdocs/traName_use.php:2) in > /usr/local/apache/htdocs/traName_use.php on line 3 > > Warning: Cannot add header information - headers already sent by (output > started at /usr/local/apache/htdocs/traName_use.php:2) in > /usr/local/apache/htdocs/traName_use.php on line 4 > > Warning: Cannot add header information - headers already sent by (output > started at /usr/local/apache/htdocs/traName_use.php:2) in > /usr/local/apache/htdocs/traName_use.php on line 26 > > > > > And our code is as below:- > > <?php > header("Pragma : no-cache "); > header("Cache-Control :no-cache,must-revalidate"); > > $db=mysql_connect("localhost","root","123456"); > mysql_select_db("test",$db); > $query="select trade_name_c > from confirm_member_info > where trade_name_c = '$tradeName'"; > $result=mysql_query($query,$db); > $row=mysql_fetch_row($result); > > if($row[0]==$tradeName) > { > //echo "Sorry, the Trade Name <b>$tradeName</b> has been used<Br>"; > //echo "Please Choose other Trade Name<BR>"; > //echo "Click <a href='mysignup_1.php'here</a> to back."; > header("Location: http://192.168.0.1/mysignup_1.php"); > } > else > { > //echo "Your Trade Name and password has been acceptted<br>"; > //echo "Click to proceed."; > //<input type='hidden' name='introducer' value='$introducer'> > header("Location: http://www.hotmail.com"); > } > ?> > <input type="hidden" name="tradeName" value="<?$tradeName?>"> > <input type="hidden" name="password" value="<?$password?>"> > <input type="hidden" name="MotherName" value="<?$MotherName?>"> > > > I tried to use hidden input type to pass the value, but can it work without > form and submit button?? > > I would appreaciate if you could give me suggestions and advice. > > thanks > > > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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:


    Sorry for re posting this problem, but after spending a bunch of hours still there is something "misterious" to me: can you find anything broken in this code? (Again it works fine with 3.3.0.15 and 3.3.0.16 but is broken with 3.3.0.18, on Debian, apache).

    $noaa = "http://weather.noaa.gov/cgi-bin/mgetmetar.pl?cccc=MUHA" ; $wfile = fopen ($noaa, "r");

    $weathcont = fread ($wfile , 1024);

    ereg (" ([0-9][0-9])/([0-9][0-9]) " , $weathcont, $reg);

    $far = 32 + ( $reg[1] / (5.0 / 9.0)); $data = date("d F"); $ora = (date("H")-6);

    echo "<font size=\"-1\" color=\"SteelBlue\"><b> Temperature in Habana, on $data, at "; if ($ora < 0){ $timezone = ($ora + 24); echo $timezone; }else{ echo $ora ; } echo " is:</b></font><br> <font color=\"SteelBlue\"><b>$reg[1] C ($far F)</b></font>"; fclose($wfile);

    attached mail follows:


    All,

    I am new coder of PHP and I love it. I have completed all the tutorials for PHP 101 on Devshed.com . I have PHP and MYSql up and running. I have a problem that I'm sure is is a very simple problem to solve for many of you. I am looking at the best way to write this simple PHP script and I'm hoping as an experienced coder out there can point me in the right direction.

    I am experienced programmer in other languages such as C, ASP and VB. So if you could just help me get started on my problem with some high level comments it would certainly be appreciated. Also, don't about worry security I can handle that part of it.

    Here is what I want to solve: I have a HTML page with categories and dates, the categories will remain stagnate. Only date field will change. I need a PHP script that will: 1. Read in the HTML page. 2. Provide all the dates in editable format. 3. Allow the user to change the date. 4. Save the date change. 5. Write out the page with changed dates in HTML format.

    If you could provide me some high level guidance on this or point to some code snippets performing this type of task it would be wonderful. Thank you in advance for you help. I'm new to the open source community and looking forward to getting involved in PHP.

    Rob McMahan, Jr. Interlink Group Inc. rob.mcmahanilg.com (Ph) 480-894-6008 (Cell) 602-284-2385

    attached mail follows:


    Im not quite sure what kind of advise your looking for... you want to know how todo this? use a form, save the contents in the db. echo the contents to the screen to view them.

    table category field category_id field category_date field category_name

    I like to store dates as a unix time stamp , time(), you can play with them using getdate() and mktime() those two functions will provide all the date verification you need.

    -- 
    

    Chris Lee leemediawaveonline.com

    ""Rob McMahan, Jr."" <rob.mcmahanilg.com> wrote in message news:D1D178FE21D7D2118F4E00805FBBDAB802AB04F2denexc1.ilg.com... All,

    I am new coder of PHP and I love it. I have completed all the tutorials for PHP 101 on Devshed.com . I have PHP and MYSql up and running. I have a problem that I'm sure is is a very simple problem to solve for many of you. I am looking at the best way to write this simple PHP script and I'm hoping as an experienced coder out there can point me in the right direction.

    I am experienced programmer in other languages such as C, ASP and VB. So if you could just help me get started on my problem with some high level comments it would certainly be appreciated. Also, don't about worry security I can handle that part of it.

    Here is what I want to solve: I have a HTML page with categories and dates, the categories will remain stagnate. Only date field will change. I need a PHP script that will: 1. Read in the HTML page. 2. Provide all the dates in editable format. 3. Allow the user to change the date. 4. Save the date change. 5. Write out the page with changed dates in HTML format.

    If you could provide me some high level guidance on this or point to some code snippets performing this type of task it would be wonderful. Thank you in advance for you help. I'm new to the open source community and looking forward to getting involved in PHP.

    Rob McMahan, Jr. Interlink Group Inc. rob.mcmahanilg.com (Ph) 480-894-6008 (Cell) 602-284-2385

    -- 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:


    Hello,

    I have a script that takes information and sends it to a cgi script using the header("location: http://www.domain.com/script.cgi?var1=VAR1&var2=VAR2"). Is there a way for my script to send info to a cgi script but then keep the person connected to the php script and not get the results of the cgi script?

    Thank you,

    -------------------------------------------- Brandon Orther WebIntellects Design/Development Manager brandonwebintellects.com 800-994-6364 www.webintellects.com --------------------------------------------

    attached mail follows:


    you want to just execute the perl script? use

    http://php.net/manual/en/function.exec.php

    $return = exec("/pathtocgi/script.cgi VAR1 VAR2 &");

    if you want the data returned, its in $return.

    -- 
    

    Chris Lee leemediawaveonline.com

    ""Brandon Orther"" <ortherwebintellects.com> wrote in message news:OMEBIHJGKOODOFLBFDJFEECLCAAA.ortherwebintellects.com... Hello,

    I have a script that takes information and sends it to a cgi script using the header("location: http://www.domain.com/script.cgi?var1=VAR1&var2=VAR2"). Is there a way for my script to send info to a cgi script but then keep the person connected to the php script and not get the results of the cgi script?

    Thank you,

    -------------------------------------------- Brandon Orther WebIntellects Design/Development Manager brandonwebintellects.com 800-994-6364 www.webintellects.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:


    Has anyone had to get a javascript variable into your PHP script? I'm trying to have a javascript popup box come up whenever a user clicks to revoke a user's privilege. How do I know what was clicked on the javascript box in order to know whether to revoke the user's privilege or not? If there's a better way to do this please let me know. Thanks in advance for any replies.

    -- 
    Michael Champagne, Software Engineer
    Capital Institutional Services, Inc.
    wk: mchampagnecapis.com
    hm: mchamptexas.net
    

    ****************************************************************** This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction, unless specifically agreed otherwise. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect the views or opinions of Capital Institutional Services, Inc. Capital Institutional Services, Inc. accepts no liability for any errors or omissions arising as a result of transmission. Use of this communication by other than intended recipients is prohibited. ******************************************************************

    attached mail follows:


    Hi Kirk, I'm not sure that's how it is supposed to work. I really think that this is a PHP bug. I had to turn register globals back on in order to get my code working again. I thought you're supposed to be able to simply declare a variable, do a session_register on it, and then access it on subsequent pages using $HTTP_SESSION_VARS. I'm going to keep register globals on for now I think. Thanks for your help!

    Mike

    > Mike, my experiments suggest you can also get rid of the session_register() > statement. Seems that simply assigning to $HTTP_SESSION_VARS[my_session_var] > is enough. > > Kirk > > > > -----Original Message----- > > From: Michael Champagne [mailto:mchampagnecapis.com] > > Subject: RE: [PHP] I don't understand HTTP_SESSION_VARS > > > > > > YES! That's what it was. You rule man. Why would > > session_start need to come > > before the global variable declaration? You'd think > > session_start would need > > $HTTP_SESSION_VARS declared beforehand to load the session > > variables into? > > > > Thanks, > > Mike > > > > > OK, try this. The session_start() has to come before the > > global statement: > > > > > > <?php > > > function write_session() > > > { > > > session_start(); > > > global $HTTP_SESSION_VARS; > > > $HTTP_SESSION_VARS[my_session_var] = "Boogedy Boogedy"; > > > session_register($HTTP_SESSION_VARS["my_session_var"]); > > > } > > > > > > write_session(); > > > echo $HTTP_SESSION_VARS['my_session_var']; > > > ?> > >

    -- 
    Michael Champagne, Software Engineer
    Capital Institutional Services, Inc.
    wk: mchampagnecapis.com
    hm: mchamptexas.net
    

    ****************************************************************** This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction, unless specifically agreed otherwise. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect the views or opinions of Capital Institutional Services, Inc. Capital Institutional Services, Inc. accepts no liability for any errors or omissions arising as a result of transmission. Use of this communication by other than intended recipients is prohibited. ******************************************************************

    attached mail follows:


    first of all thank all of you who helpd me up to now, to make this work now when i make

    SELECT c.column_name, c.position

    FROM user_cons_columns, c, user_constraints t

    WHERE t.table_name='YOURTABLENAME'

    AND t.constraint_type='P'

    AND t.constraint_name=c.constraint_name

    AND t.table_name=c.table_name

    ORDER BY c.position

    it is ok and i have it

    but what i realy need to know is the name of trigger that was fired , so i made this but this one needs minutes why ??

    SELECT c.column_name, c.position, tc.trigger_name FROM user_cons_columns c, user_constraints t, all_trigger_cols tc WHERE t.table_name='TR_LOG' AND t.constraint_name=c.constraint_name AND t.table_name=c.table_name and tc.column_name=c.column_name and tc.table_name=t.table_name ORDER BY c.position;

    now i make one query to find out the name of column , then another one to get the name of trigger( this is fast) but i would like to write a single statement to get the name of trigger because that is the only thing i need actualy but it is to slow

    attached mail follows:


    have you edited your php.ini file ? you have to uncomment the imap dll.

    extension=php_imap4r2.dll

    if you dont have this dll, you'll have to find it, cant help you there.

    -- 
    

    Chris Lee leemediawaveonline.com

    ""Nilesh Parmar"" <np_wroxindiasatyam.net.in> wrote in message news:001b01c0b54e$fa191c00$9600a8c0wroxindia.com... Hi Gurus :)

    I have installed php4.0.4 on my windows 98 machine with apache .I am having a problem while calling te imap_open() function.I get the following error.I get this error also with Linux.(Redhat 7.0). ********************************************** Call to undefined function: imap_open() in c:\Program Files\apache group\apache\htdocs\imap.php

    *********************************************** Do I require to configure any file or change any settings ? Can anyone figure out what is the problem.I can however telnet successfully to my imap server. Thanx in advance Nilesh Parmar

    -- 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:


    I have to agree Nuno, sessions are alot easier/simpler.

    -- 
    

    Chris Lee leemediawaveonline.com

    "Nuno Silva" <nuno_silvawebsolut.net> wrote in message news:3ABE9E01.1070902websolut.net...

    Hello,

    short: try removing the third parameter to setcookie and if the errors go away you know it's a cookie problem :)

    long: you're setting auth based in the (server's) time + 600sec. If the client (or even the server) has a clock skew... well.... bad luck :) removing the third parameter makes php create a "session cookie" that will stay there until the browser is closed (alll the windows). If this is not a problem, let it be. I love session cookies!! :) Anyway, the best method to get decent auth are sessions. Try php4's sessions or phplib or something.

    Regards, Nuno

    Martin Skjöldebrand wrote:

    > I'm experiencing all kinds of problems with, what we suppose is the cookie > setting. This is the code: > > if (isset($authentication)) { > setcookie("status", $status, time()+600); > setcookie("user", $user, time()+600); > setcookie("group", $group, time()+600); > setcookie("authentication", $authentication, time()+600); > setcookie("laston", $laston, time()+600); > } > else { > setcookie("status", "Logged In", time()+600); > setcookie("user", $txtUsername, time()+600); > setcookie("group", $row[4], time()+600); > setcookie("authentication", "YES", time()+600); > setcookie("laston", $row[6], time()+600); > } > > (I have not coded this). > > What seems to happen is that - with alarming regularity - people are > getting logged off when choosing item from a menu. Either they are thrown > out into the log on-screen or (as has happened to me recently) the app > simply states I'm not logged on even if I am in the middle of using it (and > must have logged on). > > I'm not at all familiar with cookies (yet) but suspect that the timing of > the critters could be a culprit. IS this correct? > How do I solve the problem? > > M.

    -- 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:


    Dear Friends:

    I have had another problem, after succesfully find flex package installed in this machine and make a link to a folder that is included in PATH. After ./configure, after the message that PHP was configured OK, following the instructions I write: make.

    This is the error that appears

    Making all in Zend make[1]: Entering directory '/usr/local/php-4.0.4pl1/Zend' /bin/sh../libtool --silent --mode=link gcc -g -02 -o libZend_c.la zend_language_scanner.lo zend_ini_scanner.lo ../libtool: ar: not found make[1]: *** [libZend_c.la] Error 1 leaving directory make[1]: *** [all- recursive] Error 1

    I have looked at /php folder and exists a file called libtool. Anybody knows what is the problem?

    Thank you very much Emiliano.

    attached mail follows:


    you need ar. my solaris 8 install has it in /usr/ccs/bin if you have it there, make sure /usr/ccs/bin is in your PATH.

    if you need to know what package ar is part of let me know.

    joe

    Emiliano Marmonti(emarmontisiu.edu.ar)Mon, Mar 26, 2001 at 03:12:00PM -0300: > > Dear Friends: > > I have had another problem, after succesfully find flex package > installed > in this machine and make a link to a folder that is included in PATH. > After ./configure, after the message that PHP was configured OK, following > the instructions I write: make. > > This is the error that appears > > Making all in Zend > make[1]: Entering directory '/usr/local/php-4.0.4pl1/Zend' > /bin/sh../libtool --silent --mode=link gcc -g -02 -o libZend_c.la > zend_language_scanner.lo zend_ini_scanner.lo > ../libtool: ar: not found > make[1]: *** [libZend_c.la] Error 1 > leaving directory > make[1]: *** [all- recursive] Error 1 > > I have looked at /php folder and exists a file called libtool. Anybody > knows what is the problem? > > Thank you very much > Emiliano. > > > > > > -- > 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:


    Hello List, knows anybody an offline reader which can download not only static websites but also dynamic websites especially dynamic generated links? Like websites which are only generated over one file over variables like

    "dynamic.php?siteID=3001"

    Thanks Andre!