OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
php-general-digest-help_at_lists.php.net
Date: Wed Jan 08 2003 - 05:13:55 CST

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

    php-general Digest 8 Jan 2003 11:13:55 -0000 Issue 1810

    Topics (messages 130639 through 130752):

    graph libs
            130639 by: Larry Brown

    anyway to do a 'whos online' from session variable?
            130640 by: Jeff Bluemel
            130641 by: Timothy Hitchens \(HiTCHO\)
            130667 by: Jeff Bluemel
            130668 by: Timothy Hitchens \(HiTCHO\)
            130669 by: Jeff Bluemel
            130686 by: ed.home.homes2see.com
            130687 by: Timothy Hitchens \(HiTCHO\)

    restrictions
            130642 by: Bruce Levick
            130643 by: Marco Tabini
            130644 by: Timothy Hitchens \(HiTCHO\)
            130645 by: Bruce Levick
            130646 by: Marco Tabini
            130647 by: Larry Brown
            130648 by: Timothy Hitchens \(HiTCHO\)
            130650 by: Bruce Levick
            130651 by: Bruce Levick
            130655 by: Marco Tabini
            130656 by: Sean Malloy
            130657 by: Timothy Hitchens \(HiTCHO\)
            130658 by: Bruce Levick
            130659 by: Bruce Levick
            130660 by: Bruce Levick
            130662 by: Timothy Hitchens \(HiTCHO\)
            130664 by: Bruce Levick
            130665 by: Bruce Levick
            130666 by: Timothy Hitchens \(HiTCHO\)

    Random array element
            130649 by: Øystein Håland
            130654 by: Sean Malloy

    Upgrading to 4.3.0
            130652 by: PHP List

    ~E_NOTICE, why not ?
            130653 by: Pupeno
            130711 by: Jean-Christian Imbeault
            130712 by: Jean-Christian Imbeault

    Re: Zend IDE vs. PhpEd
            130661 by: Jason Wong
            130663 by: Pupeno

    Upgrade help!
            130670 by: PHP List

    Sessions error
            130671 by: Mike Tuller
            130752 by: Ford, Mike [LSS]

    help - WHILE in FOREACH
            130672 by: James Brennan
            130678 by: Matt
            130682 by: Rick Emery
            130683 by: James Brennan
            130684 by: Chris Wesley
            130713 by: James Brennan

    Img src
            130673 by: Ezequiel Sapoznik
            130675 by: Rick Emery

    HTTP_WEFERER
            130674 by: bill
            130676 by: Sean Malloy
            130681 by: Matt

    Re: PHP Editors
            130677 by: Pierre-Luc Soucy
            130680 by: Timothy Hitchens \(HiTCHO\)
            130729 by: Krzysztof Dziekiewicz

    Re: Forwarding POST info from a PHP script
            130679 by: Tom Rogers

    htmlspecialchars() or htmlentities without destroying tags?
            130685 by: Justin French
            130696 by: Greg Beaver
            130698 by: Timothy Hitchens \(HiTCHO\)
            130700 by: Justin French

    How to detect a PHP script time-out?
            130688 by: Jean-Christian Imbeault
            130689 by: Timothy Hitchens \(HiTCHO\)
            130690 by: Jean-Christian Imbeault
            130691 by: Timothy Hitchens \(HiTCHO\)
            130697 by: Greg Beaver
            130702 by: Jean-Christian Imbeault
            130703 by: Timothy Hitchens \(HiTCHO\)
            130704 by: Greg Beaver
            130707 by: Jean-Christian Imbeault
            130714 by: Timothy Hitchens \(HiTCHO\)
            130715 by: Jean-Christian Imbeault
            130718 by: Timothy Hitchens \(HiTCHO\)
            130721 by: Jean-Christian Imbeault

    Re: Double entry into MySQL..
            130692 by: Altug Sahin
            130695 by: Timothy Hitchens \(HiTCHO\)
            130731 by: Marek Kilimajer
            130733 by: Timothy Hitchens \(HiTCHO\)

    mkdir(blah,0777)
            130693 by: rw.xend.net
            130694 by: Jason Wong
            130699 by: rw.xend.net

    unlink ($files);
            130701 by: rw.xend.net
            130716 by: Paul Nicholson

    scheduling / timetables
            130705 by: M.E. Suliman

    Need a suggestion on developing a php-related system
            130706 by: Kelvin Poon
            130708 by: Peter Houchin
            130709 by: Peter Houchin
            130710 by: Manuel Lemos
            130722 by: Larry Brown

    Re: PHP vs. ASP
            130717 by: See kok Boon
            130719 by: Sean Malloy
            130720 by: Sean Malloy

    Re: PHP and MySQL bug
            130723 by: Nuno Lopes
            130724 by: Nuno Lopes

    Re: how to generate one in a string
            130725 by: Jean-Christian Imbeault
            130727 by: Benjamin Niemann
            130730 by: Marek Kilimajer
            130732 by: Jean-Christian Imbeault
            130737 by: Jean-Christian Imbeault
            130738 by: Marek Kilimajer
            130739 by: Jean-Christian Imbeault
            130740 by: Jean-Christian Imbeault
            130741 by: Timothy Hitchens \(HiTCHO\)
            130743 by: Jason Wong
            130748 by: Jean-Christian Imbeault

    Re: MySQL vs PostgreSQL
            130726 by: Krzysztof Dziekiewicz

    Re: Directory Listing with php on unix boxes
            130728 by: Krzysztof Dziekiewicz

    uid checked by file_exists()
            130734 by: Emmanuel.Leguy
            130736 by: Timothy Hitchens \(HiTCHO\)
            130744 by: Emmanuel.Leguy

    Build errors: php 4.3.0 on FreeBSD 5.0 RC2
            130735 by: Alexander Rijnbeek

    $_SERVER content
            130742 by: Fritzek
            130745 by: Marek Kilimajer
            130746 by: Jason Wong
            130747 by: Fritzek
            130749 by: Fritzek
            130750 by: Marek Kilimajer
            130751 by: Rick Widmer

    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:


    Can anyone give any suggestions on the best/most intuitive tools or
    libraries for generating graphs with PHP?

    Larry S. Brown
    Dimension Networks, Inc.
    (727) 723-8388

    attached mail follows:


    when a user logs into my system I set a variable $_SESSION['username'].
    now, every page somebody pulls up it revalidates their login so somebody
    cannot get into the backend of the system.

    now - is there a way I can make a utility that will show me the session
    username's that are in use? it would be useful to be able to know who's
    currently online. this is a website that will not be published, and is used
    for a VERY limited number of people.

    Jeff

    attached mail follows:


    Simple create a database table for logins and have a status that you
    set to online / offline and last seen could also be added.

    Then it is just a simple SELECT statement.

    If you don't want to use a database you could flock (not perfect) a file
    then read in a serialised array and update then write out and unlock.

    HiTCHO has Spoken!
    Timothy Hitchens (HiTCHO)
    timhitcho.com.au

    > -----Original Message-----
    > From: Jeff Bluemel [mailto:jeffdomintcom.com]
    > Sent: Wednesday, 8 January 2003 9:08 AM
    > To: php-generallists.php.net
    > Subject: [PHP] anyway to do a 'whos online' from session variable?
    >
    >
    > when a user logs into my system I set a variable
    > $_SESSION['username']. now, every page somebody pulls up it
    > revalidates their login so somebody cannot get into the
    > backend of the system.
    >
    > now - is there a way I can make a utility that will show me
    > the session username's that are in use? it would be useful
    > to be able to know who's currently online. this is a website
    > that will not be published, and is used for a VERY limited
    > number of people.
    >
    > Jeff
    >
    >
    >
    > --
    > PHP General Mailing List (http://www.php.net/)
    > To unsubscribe, visit: http://www.php.net/unsub.php
    >

    attached mail follows:


    yea, that will work. however, I was thinking of something a little more
    dramatic like parsing the /tmp directly, associating ID's, and killing dead
    sessions etc.

    "Timothy Hitchens )" <phplistshitcho.com.au> wrote in message
    news:004701c2b6a2$2dfeb6a0$0500a8c0bambino...
    > Simple create a database table for logins and have a status that you
    > set to online / offline and last seen could also be added.
    >
    > Then it is just a simple SELECT statement.
    >
    > If you don't want to use a database you could flock (not perfect) a file
    > then read in a serialised array and update then write out and unlock.
    >
    >
    >
    > HiTCHO has Spoken!
    > Timothy Hitchens (HiTCHO)
    > timhitcho.com.au
    >
    > > -----Original Message-----
    > > From: Jeff Bluemel [mailto:jeffdomintcom.com]
    > > Sent: Wednesday, 8 January 2003 9:08 AM
    > > To: php-generallists.php.net
    > > Subject: [PHP] anyway to do a 'whos online' from session variable?
    > >
    > >
    > > when a user logs into my system I set a variable
    > > $_SESSION['username']. now, every page somebody pulls up it
    > > revalidates their login so somebody cannot get into the
    > > backend of the system.
    > >
    > > now - is there a way I can make a utility that will show me
    > > the session username's that are in use? it would be useful
    > > to be able to know who's currently online. this is a website
    > > that will not be published, and is used for a VERY limited
    > > number of people.
    > >
    > > Jeff
    > >
    > >
    > >
    > > --
    > > PHP General Mailing List (http://www.php.net/)
    > > To unsubscribe, visit: http://www.php.net/unsub.php
    > >
    >

    attached mail follows:


    Hmm... yes you could create an array of the files then check the last
    mod stamp using stat (remember to reset stat).

    Sessions are also cleaned up via the garbage collection system
    controlled via php.ini

    HiTCHO has Spoken!
    Timothy Hitchens (HiTCHO)
    timhitcho.com.au

    > -----Original Message-----
    > From: Jeff Bluemel [mailto:jeffdomintcom.com]
    > Sent: Wednesday, 8 January 2003 10:04 AM
    > To: php-generallists.php.net
    > Subject: Re: [PHP] anyway to do a 'whos online' from session variable?
    >
    >
    > yea, that will work. however, I was thinking of something a
    > little more dramatic like parsing the /tmp directly,
    > associating ID's, and killing dead sessions etc.
    >
    > "Timothy Hitchens )" <phplistshitcho.com.au> wrote in
    > message news:004701c2b6a2$2dfeb6a0$0500a8c0bambino...
    > > Simple create a database table for logins and have a status
    > that you
    > > set to online / offline and last seen could also be added.
    > >
    > > Then it is just a simple SELECT statement.
    > >
    > > If you don't want to use a database you could flock (not perfect) a
    > > file then read in a serialised array and update then write out and
    > > unlock.
    > >
    > >
    > >
    > > HiTCHO has Spoken!
    > > Timothy Hitchens (HiTCHO)
    > > timhitcho.com.au
    > >
    > > > -----Original Message-----
    > > > From: Jeff Bluemel [mailto:jeffdomintcom.com]
    > > > Sent: Wednesday, 8 January 2003 9:08 AM
    > > > To: php-generallists.php.net
    > > > Subject: [PHP] anyway to do a 'whos online' from session variable?
    > > >
    > > >
    > > > when a user logs into my system I set a variable
    > > > $_SESSION['username']. now, every page somebody pulls up it
    > > > revalidates their login so somebody cannot get into the
    > backend of
    > > > the system.
    > > >
    > > > now - is there a way I can make a utility that will show me the
    > > > session username's that are in use? it would be useful
    > to be able
    > > > to know who's currently online. this is a website that
    > will not be
    > > > published, and is used for a VERY limited number of people.
    > > >
    > > > Jeff
    > > >
    > > >
    > > >
    > > > --
    > > > PHP General Mailing List (http://www.php.net/)
    > > > To unsubscribe, visit: http://www.php.net/unsub.php
    > > >
    > >
    >
    >
    >
    > --
    > PHP General Mailing List (http://www.php.net/)
    > To unsubscribe, visit: http://www.php.net/unsub.php
    >

    attached mail follows:


    thanks... I'm almost done with this project, and I think I will implement
    this in the next phase. doesn't sound terribly difficult, but I think I
    will hold off. definitely something I will be doing in the future, and
    probably not too distance future.

    "Timothy Hitchens )" <phplistshitcho.com.au> wrote in message
    news:007301c2b6aa$2fbaebf0$0500a8c0bambino...
    > Hmm... yes you could create an array of the files then check the last
    > mod stamp using stat (remember to reset stat).
    >
    > Sessions are also cleaned up via the garbage collection system
    > controlled via php.ini
    >
    >
    >
    > HiTCHO has Spoken!
    > Timothy Hitchens (HiTCHO)
    > timhitcho.com.au
    >
    > > -----Original Message-----
    > > From: Jeff Bluemel [mailto:jeffdomintcom.com]
    > > Sent: Wednesday, 8 January 2003 10:04 AM
    > > To: php-generallists.php.net
    > > Subject: Re: [PHP] anyway to do a 'whos online' from session variable?
    > >
    > >
    > > yea, that will work. however, I was thinking of something a
    > > little more dramatic like parsing the /tmp directly,
    > > associating ID's, and killing dead sessions etc.
    > >
    > > "Timothy Hitchens )" <phplistshitcho.com.au> wrote in
    > > message news:004701c2b6a2$2dfeb6a0$0500a8c0bambino...
    > > > Simple create a database table for logins and have a status
    > > that you
    > > > set to online / offline and last seen could also be added.
    > > >
    > > > Then it is just a simple SELECT statement.
    > > >
    > > > If you don't want to use a database you could flock (not perfect) a
    > > > file then read in a serialised array and update then write out and
    > > > unlock.
    > > >
    > > >
    > > >
    > > > HiTCHO has Spoken!
    > > > Timothy Hitchens (HiTCHO)
    > > > timhitcho.com.au
    > > >
    > > > > -----Original Message-----
    > > > > From: Jeff Bluemel [mailto:jeffdomintcom.com]
    > > > > Sent: Wednesday, 8 January 2003 9:08 AM
    > > > > To: php-generallists.php.net
    > > > > Subject: [PHP] anyway to do a 'whos online' from session variable?
    > > > >
    > > > >
    > > > > when a user logs into my system I set a variable
    > > > > $_SESSION['username']. now, every page somebody pulls up it
    > > > > revalidates their login so somebody cannot get into the
    > > backend of
    > > > > the system.
    > > > >
    > > > > now - is there a way I can make a utility that will show me the
    > > > > session username's that are in use? it would be useful
    > > to be able
    > > > > to know who's currently online. this is a website that
    > > will not be
    > > > > published, and is used for a VERY limited number of people.
    > > > >
    > > > > Jeff
    > > > >
    > > > >
    > > > >
    > > > > --
    > > > > PHP General Mailing List (http://www.php.net/)
    > > > > To unsubscribe, visit: http://www.php.net/unsub.php
    > > > >
    > > >
    > >
    > >
    > >
    > > --
    > > PHP General Mailing List (http://www.php.net/)
    > > To unsubscribe, visit: http://www.php.net/unsub.php
    > >
    >

    attached mail follows:


    On Wed, 8 Jan 2003, Timothy Hitchens (HiTCHO) wrote:

    > Hmm... yes you could create an array of the files then check the last
    > mod stamp using stat (remember to reset stat).
    >
    > Sessions are also cleaned up via the garbage collection system
    > controlled via php.ini

     How do you force garbage collection? I've written an application using
    sessions for storage and there's been a session sitting in my /tmp
    directory for 2 days now, well over the 1440 seconds expiration.

    Ed

    attached mail follows:


    Arr the garbage collection is based on a probability
    (session.gc_probability) and therefore it will clean
    up if you get enough hits to the server. Check the documentation for
    config of sessions.

    I use db for sessions with a check to ensure db is available. (you can
    then cleanup whatever you want)

    Timothy Hitchens (HiTCHO)
    Open Platform Consulting
    e-mail: timhitcho.com.au

    > -----Original Message-----
    > From: edhome.homes2see.com [mailto:edhome.homes2see.com]
    > Sent: Wednesday, 8 January 2003 1:11 PM
    > To: Timothy Hitchens (HiTCHO)
    > Cc: 'Jeff Bluemel'; php-generallists.php.net
    > Subject: RE: [PHP] anyway to do a 'whos online' from session variable?
    >
    >
    >
    >
    > On Wed, 8 Jan 2003, Timothy Hitchens (HiTCHO) wrote:
    >
    > > Hmm... yes you could create an array of the files then
    > check the last
    > > mod stamp using stat (remember to reset stat).
    > >
    > > Sessions are also cleaned up via the garbage collection system
    > > controlled via php.ini
    >
    > How do you force garbage collection? I've written an
    > application using sessions for storage and there's been a
    > session sitting in my /tmp directory for 2 days now, well
    > over the 1440 seconds expiration.
    >
    > Ed
    >
    >
    >
    > --
    > PHP General Mailing List (http://www.php.net/)
    > To unsubscribe, visit: http://www.php.net/unsub.php
    >

    attached mail follows:


    I find that my the company that I work for is a little over protective.
    My machine is quite restricted (as in firewall and accessability) when
    it comes to ftp and telnet. Well basically my hands are tied in that
    sense.
     
    I am testing my database build on my local machine which runs fine and
    all. I am curious though as to how these restrictions may affect my
    attempts to send "mail()" I have tried various external SMTP srervers (i
    am running off winxp pro) in my php.ini file and I get nothing. Just the
    error code I have placed in (below).
     
    <?php
     
    if (mail("somebodysomewhere.com", "this title", "testing"))
      echo "Mail Sent!";
     else
      echo "Mail could not be sent...";
     

    ?>
     
    Warning: Failed to connect to mailserver, verify your "SMTP" setting in
    php.ini in c:\inetpub\wwwroot\_tasks\email.php on line 21
    Mail could not be sent...
     
     
    Would my local machines restrictions be stopping the mail function from
    communicating with the SMTP server??
     
    Cheers
     

    attached mail follows:


    Hello Bruce--

    That depends on what restrictions are imposed on your box, of course.
    Does your company use an SMTP-compatible mail server for your internal
    mail? If so, you could use the server your mail client points to to
    perform your tests.

    Cheers,

    Marco

    -- 
    ----------------
    php|architect - The Monthly Magazine for PHP Professionals
    Come check us out on the web at http://www.phparch.com!
    GET YOUR FREE COPY TODAY! Simply register & download!
    

    attached mail follows:


    I find that my the company that I work for is a little over protective. My machine is quite restricted (as in firewall and accessability) when it comes to ftp and telnet. Well basically my hands are tied in that sense. I am testing my database build on my local machine which runs fine and all. I am curious though as to how these restrictions may affect my attempts to send "mail()" I have tried various external SMTP srervers (i am running off winxp pro) in my php.ini file and I get nothing. Just the error code I have placed in (below). <?php if (mail("somebodysomewhere.com", "this title", "testing")) echo "Mail Sent!"; else echo "Mail could not be sent...";

    ?> Warning: Failed to connect to mailserver, verify your "SMTP" setting in php.ini in c:\inetpub\wwwroot\_tasks\email.php on line 21 Mail could not be sent... Would my local machines restrictions be stopping the mail function from communicating with the SMTP server?? Cheers

    --=-mFxJTBUHIgCYum9zUMbk--

    attached mail follows:


    This is outgoing traffic the same as if you where surfing the Internet and as the connection is an established one your machine will allow it.

    I would suggest looking at the (server) as it may not allow relaying etc!!

    HiTCHO has Spoken! Timothy Hitchens (HiTCHO) timhitcho.com.au

    > -----Original Message----- > From: Bruce Levick [mailto:brucelispye.com] > Sent: Wednesday, 8 January 2003 9:19 AM > To: php-generallists.php.net > Subject: [PHP] restrictions > > > I find that my the company that I work for is a little over > protective. My machine is quite restricted (as in firewall > and accessability) when it comes to ftp and telnet. Well > basically my hands are tied in that sense. > > I am testing my database build on my local machine which runs > fine and all. I am curious though as to how these > restrictions may affect my attempts to send "mail()" I have > tried various external SMTP srervers (i am running off winxp > pro) in my php.ini file and I get nothing. Just the error > code I have placed in (below). > > <?php > > if (mail("somebodysomewhere.com", "this title", "testing")) > echo "Mail Sent!"; > else > echo "Mail could not be sent..."; > > > ?> > > Warning: Failed to connect to mailserver, verify your "SMTP" > setting in php.ini in c:\inetpub\wwwroot\_tasks\email.php on > line 21 Mail could not be sent... > > > Would my local machines restrictions be stopping the mail > function from communicating with the SMTP server?? > > Cheers > >

    attached mail follows:


    Well I can't be totally sure but I think all outgoing mail points to an external SMTP server.

    -----Original Message----- From: Marco Tabini [mailto:marcottabini.ca] Sent: Wednesday, January 08, 2003 9:11 AM To: Bruce Levick Cc: php-generallists.php.net Subject: Re: [PHP] restrictions

    Hello Bruce--

    That depends on what restrictions are imposed on your box, of course. Does your company use an SMTP-compatible mail server for your internal mail? If so, you could use the server your mail client points to to perform your tests.

    Cheers,

    Marco

    -- 
    ----------------
    php|architect - The Monthly Magazine for PHP Professionals
    Come check us out on the web at http://www.phparch.com!
    GET YOUR FREE COPY TODAY! Simply register & download!
    

    attached mail follows:


    Couple of suggestions:

    1) Try connection to the SMTP server manually with Telnet, and see if you discover more that way

    2) Simply use the same SMTP server that is configured in your mail client at work

    Cheers,

    Marco

    -- 
    ----------------
    php|architect - The Monthly Magazine for PHP Professionals
    Come check us out on the web at http://www.phparch.com!
    

    attached mail follows:


    Well I can't be totally sure but I think all outgoing mail points to an external SMTP server.

    -----Original Message----- From: Marco Tabini [mailto:marcottabini.ca] Sent: Wednesday, January 08, 2003 9:11 AM To: Bruce Levick Cc: php-generallists.php.net Subject: Re: [PHP] restrictions

    Hello Bruce--

    That depends on what restrictions are imposed on your box, of course. Does your company use an SMTP-compatible mail server for your internal mail? If so, you could use the server your mail client points to to perform your tests.

    Cheers,

    Marco

    -- 
    ----------------
    php|architect - The Monthly Magazine for PHP Professionals
    Come check us out on the web at http://www.phparch.com!
    GET YOUR FREE COPY TODAY! Simply register & download!
    

    attached mail follows:


    Just use the smtp server you use for mail. Oh you might not use smtp for corporate environment? Just use something like outlook express or some other smtp enabled client to send to these various smtp servers you are trying to use for the php scripts first. Then if it works with the mail client then you should reasonably expect the php to work.

    Larry S. Brown Dimension Networks, Inc. (727) 723-8388

    -----Original Message----- From: Bruce Levick [mailto:brucelispye.com] Sent: Tuesday, January 07, 2003 6:19 PM To: php-generallists.php.net Subject: [PHP] restrictions

    I find that my the company that I work for is a little over protective. My machine is quite restricted (as in firewall and accessability) when it comes to ftp and telnet. Well basically my hands are tied in that sense.

    I am testing my database build on my local machine which runs fine and all. I am curious though as to how these restrictions may affect my attempts to send "mail()" I have tried various external SMTP srervers (i am running off winxp pro) in my php.ini file and I get nothing. Just the error code I have placed in (below).

    <?php

    if (mail("somebodysomewhere.com", "this title", "testing")) echo "Mail Sent!"; else echo "Mail could not be sent...";

    ?>

    Warning: Failed to connect to mailserver, verify your "SMTP" setting in php.ini in c:\inetpub\wwwroot\_tasks\email.php on line 21 Mail could not be sent...

    Would my local machines restrictions be stopping the mail function from communicating with the SMTP server??

    Cheers

    attached mail follows:


    In windowsxp do the following:

    Start -> Run

    Open: cmd

    At the shell type:

    telnet x.x.x.x 25 <---- x.x.x.x being the smtp server

    If you get a prompt then you have other issues such as relay etc etc

    HiTCHO has Spoken! Timothy Hitchens (HiTCHO) timhitcho.com.au

    > -----Original Message----- > From: Bruce Levick [mailto:brucelispye.com] > Sent: Wednesday, 8 January 2003 9:25 AM > To: Marco Tabini > Cc: php-generallists.php.net > Subject: RE: [PHP] restrictions > > > Well I can't be totally sure but I think all outgoing mail > points to an external SMTP server. > > -----Original Message----- > From: Marco Tabini [mailto:marcottabini.ca] > Sent: Wednesday, January 08, 2003 9:11 AM > To: Bruce Levick > Cc: php-generallists.php.net > Subject: Re: [PHP] restrictions > > > Hello Bruce-- > > That depends on what restrictions are imposed on your box, of > course. Does your company use an SMTP-compatible mail server > for your internal mail? If so, you could use the server your > mail client points to to perform your tests. > > Cheers, > > > Marco > -- > ---------------- > php|architect - The Monthly Magazine for PHP Professionals > Come check us out on the web at http://www.phparch.com! > GET YOUR FREE COPY TODAY! Simply register & download! > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    I can't connect to anything via telnet whether its my works SMTP server or another external server.

    My works SMTP mail server was the first one I tried (this would be logical). I have tried my own personal website mail server and that fails too.

    This is why I am thinking that its my computer restrictions.

    -----Original Message----- From: Marco Tabini [mailto:marcottabini.ca] Sent: Wednesday, January 08, 2003 9:16 AM To: Bruce Levick Cc: php-generallists.php.net Subject: RE: [PHP] restrictions

    Couple of suggestions:

    1) Try connection to the SMTP server manually with Telnet, and see if you discover more that way

    2) Simply use the same SMTP server that is configured in your mail client at work

    Cheers,

    Marco

    -- 
    ----------------
    php|architect - The Monthly Magazine for PHP Professionals
    Come check us out on the web at http://www.phparch.com!
    

    attached mail follows:


    Thanks, Tried this and I get.

    "Cannot opeen connection to host on port 23"

    -----Original Message----- From: Timothy Hitchens (HiTCHO) [mailto:phplistshitcho.com.au] Sent: Wednesday, January 08, 2003 9:32 AM To: Bruce Levick; 'Marco Tabini' Cc: php-generallists.php.net Subject: RE: [PHP] restrictions

    In windowsxp do the following:

    Start -> Run

    Open: cmd

    At the shell type:

    telnet x.x.x.x 25 <---- x.x.x.x being the smtp server

    If you get a prompt then you have other issues such as relay etc etc

    HiTCHO has Spoken! Timothy Hitchens (HiTCHO) timhitcho.com.au

    > -----Original Message----- > From: Bruce Levick [mailto:brucelispye.com] > Sent: Wednesday, 8 January 2003 9:25 AM > To: Marco Tabini > Cc: php-generallists.php.net > Subject: RE: [PHP] restrictions > > > Well I can't be totally sure but I think all outgoing mail > points to an external SMTP server. > > -----Original Message----- > From: Marco Tabini [mailto:marcottabini.ca] > Sent: Wednesday, January 08, 2003 9:11 AM > To: Bruce Levick > Cc: php-generallists.php.net > Subject: Re: [PHP] restrictions > > > Hello Bruce-- > > That depends on what restrictions are imposed on your box, of > course. Does your company use an SMTP-compatible mail server > for your internal mail? If so, you could use the server your > mail client points to to perform your tests. > > Cheers, > > > Marco > -- > ---------------- > php|architect - The Monthly Magazine for PHP Professionals > Come check us out on the web at http://www.phparch.com! > GET YOUR FREE COPY TODAY! Simply register & download! > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    It should say "port 25". If it's just a typo in your message, then it could either be the restrictions or a general network problem--I know this sounds stupid, but can you connect *at all* to anything else--ie. a website?

    Cheers,

    Marco

    -- 
    ----------------
    php|architect - The Monthly Magazine for PHP Professionals
    Come check us out on the web at http://www.phparch.com!
    

    attached mail follows:


    Thanks, Tried this and I get.

    "Cannot opeen connection to host on port 23"

    -----Original Message----- From: Timothy Hitchens (HiTCHO) [mailto:phplistshitcho.com.au] Sent: Wednesday, January 08, 2003 9:32 AM To: Bruce Levick; 'Marco Tabini' Cc: php-generallists.php.net Subject: RE: [PHP] restrictions

    In windowsxp do the following:

    Start -> Run

    Open: cmd

    At the shell type:

    telnet x.x.x.x 25 <---- x.x.x.x being the smtp server

    If you get a prompt then you have other issues such as relay etc etc

    HiTCHO has Spoken! Timothy Hitchens (HiTCHO) timhitcho.com.au

    > -----Original Message----- > From: Bruce Levick [mailto:brucelispye.com] > Sent: Wednesday, 8 January 2003 9:25 AM > To: Marco Tabini > Cc: php-generallists.php.net > Subject: RE: [PHP] restrictions > > > Well I can't be totally sure but I think all outgoing mail > points to an external SMTP server. > > -----Original Message----- > From: Marco Tabini [mailto:marcottabini.ca] > Sent: Wednesday, January 08, 2003 9:11 AM > To: Bruce Levick > Cc: php-generallists.php.net > Subject: Re: [PHP] restrictions > > > Hello Bruce-- > > That depends on what restrictions are imposed on your box, of > course. Does your company use an SMTP-compatible mail server > for your internal mail? If so, you could use the server your > mail client points to to perform your tests. > > Cheers, > > > Marco > -- > ---------------- > php|architect - The Monthly Magazine for PHP Professionals > Come check us out on the web at http://www.phparch.com! > GET YOUR FREE COPY TODAY! Simply register & download! > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

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

    attached mail follows:


    SMTP = port 25

    telnet <mailserver> 25

    should do the trick

    -----Original Message----- From: Bruce Levick [mailto:brucelispye.com] Sent: Wednesday, 8 January 2003 10:35 AM To: Timothy Hitchens (HiTCHO) Cc: php-generallists.php.net Subject: RE: [PHP] restrictions

    Thanks, Tried this and I get.

    "Cannot opeen connection to host on port 23"

    -----Original Message----- From: Timothy Hitchens (HiTCHO) [mailto:phplistshitcho.com.au] Sent: Wednesday, January 08, 2003 9:32 AM To: Bruce Levick; 'Marco Tabini' Cc: php-generallists.php.net Subject: RE: [PHP] restrictions

    In windowsxp do the following:

    Start -> Run

    Open: cmd

    At the shell type:

    telnet x.x.x.x 25 <---- x.x.x.x being the smtp server

    If you get a prompt then you have other issues such as relay etc etc

    HiTCHO has Spoken! Timothy Hitchens (HiTCHO) timhitcho.com.au

    > -----Original Message----- > From: Bruce Levick [mailto:brucelispye.com] > Sent: Wednesday, 8 January 2003 9:25 AM > To: Marco Tabini > Cc: php-generallists.php.net > Subject: RE: [PHP] restrictions > > > Well I can't be totally sure but I think all outgoing mail > points to an external SMTP server. > > -----Original Message----- > From: Marco Tabini [mailto:marcottabini.ca] > Sent: Wednesday, January 08, 2003 9:11 AM > To: Bruce Levick > Cc: php-generallists.php.net > Subject: Re: [PHP] restrictions > > > Hello Bruce-- > > That depends on what restrictions are imposed on your box, of > course. Does your company use an SMTP-compatible mail server > for your internal mail? If so, you could use the server your > mail client points to to perform your tests. > > Cheers, > > > Marco > -- > ---------------- > php|architect - The Monthly Magazine for PHP Professionals > Come check us out on the web at http://www.phparch.com! > GET YOUR FREE COPY TODAY! Simply register & download! > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

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

    attached mail follows:


    You need to follow my instructions and do "telnet x.x.x.x 25" notice the 25 after the IP ??

    HiTCHO has Spoken! Timothy Hitchens (HiTCHO) timhitcho.com.au

    > -----Original Message----- > From: Bruce Levick [mailto:brucelispye.com] > Sent: Wednesday, 8 January 2003 9:35 AM > To: Timothy Hitchens (HiTCHO) > Cc: php-generallists.php.net > Subject: RE: [PHP] restrictions > > > Thanks, > Tried this and I get. > > "Cannot opeen connection to host on port 23" > > > > -----Original Message----- > From: Timothy Hitchens (HiTCHO) [mailto:phplistshitcho.com.au] > Sent: Wednesday, January 08, 2003 9:32 AM > To: Bruce Levick; 'Marco Tabini' > Cc: php-generallists.php.net > Subject: RE: [PHP] restrictions > > > In windowsxp do the following: > > Start -> Run > > Open: cmd > > At the shell type: > > telnet x.x.x.x 25 <---- x.x.x.x being the smtp server > > If you get a prompt then you have other issues such as relay etc etc > > > > HiTCHO has Spoken! > Timothy Hitchens (HiTCHO) > timhitcho.com.au > > > -----Original Message----- > > From: Bruce Levick [mailto:brucelispye.com] > > Sent: Wednesday, 8 January 2003 9:25 AM > > To: Marco Tabini > > Cc: php-generallists.php.net > > Subject: RE: [PHP] restrictions > > > > > > Well I can't be totally sure but I think all outgoing mail > points to > > an external SMTP server. > > > > -----Original Message----- > > From: Marco Tabini [mailto:marcottabini.ca] > > Sent: Wednesday, January 08, 2003 9:11 AM > > To: Bruce Levick > > Cc: php-generallists.php.net > > Subject: Re: [PHP] restrictions > > > > > > Hello Bruce-- > > > > That depends on what restrictions are imposed on your box, > of course. > > Does your company use an SMTP-compatible mail server for > your internal > > mail? If so, you could use the server your mail client points to to > > perform your tests. > > > > Cheers, > > > > > > Marco > > -- > > ---------------- > > php|architect - The Monthly Magazine for PHP Professionals > > Come check us out on the web at http://www.phparch.com! > > GET YOUR FREE COPY TODAY! Simply register & download! > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > >

    attached mail follows:


    It definitely says port 23. And I can't connect to anything at all. I even tried my own my local machine IP address and that doesn't work either. Weird.

    -----Original Message----- From: Marco Tabini [mailto:marcottabini.ca] Sent: Wednesday, January 08, 2003 9:29 AM To: Bruce Levick Cc: Timothy "Hitchens (HiTCHO); php-generallists.php.net Subject: RE: [PHP] restrictions

    It should say "port 25". If it's just a typo in your message, then it could either be the restrictions or a general network problem--I know this sounds stupid, but can you connect *at all* to anything else--ie. a website?

    Cheers,

    Marco

    -- 
    ----------------
    php|architect - The Monthly Magazine for PHP Professionals
    Come check us out on the web at http://www.phparch.com!
    

    attached mail follows:


    Connection failed on port 25 as well.

    -----Original Message----- From: Sean Malloy [mailto:seanelement.net.au] Sent: Wednesday, January 08, 2003 9:41 AM To: php-generallists.php.net; Bruce Levick Subject: RE: [PHP] restrictions

    SMTP = port 25

    telnet <mailserver> 25

    should do the trick

    -----Original Message----- From: Bruce Levick [mailto:brucelispye.com] Sent: Wednesday, 8 January 2003 10:35 AM To: Timothy Hitchens (HiTCHO) Cc: php-generallists.php.net Subject: RE: [PHP] restrictions

    Thanks, Tried this and I get.

    "Cannot opeen connection to host on port 23"

    -----Original Message----- From: Timothy Hitchens (HiTCHO) [mailto:phplistshitcho.com.au] Sent: Wednesday, January 08, 2003 9:32 AM To: Bruce Levick; 'Marco Tabini' Cc: php-generallists.php.net Subject: RE: [PHP] restrictions

    In windowsxp do the following:

    Start -> Run

    Open: cmd

    At the shell type:

    telnet x.x.x.x 25 <---- x.x.x.x being the smtp server

    If you get a prompt then you have other issues such as relay etc etc

    HiTCHO has Spoken! Timothy Hitchens (HiTCHO) timhitcho.com.au

    > -----Original Message----- > From: Bruce Levick [mailto:brucelispye.com] > Sent: Wednesday, 8 January 2003 9:25 AM > To: Marco Tabini > Cc: php-generallists.php.net > Subject: RE: [PHP] restrictions > > > Well I can't be totally sure but I think all outgoing mail points to > an external SMTP server. > > -----Original Message----- > From: Marco Tabini [mailto:marcottabini.ca] > Sent: Wednesday, January 08, 2003 9:11 AM > To: Bruce Levick > Cc: php-generallists.php.net > Subject: Re: [PHP] restrictions > > > Hello Bruce-- > > That depends on what restrictions are imposed on your box, of course. > Does your company use an SMTP-compatible mail server for your internal

    > mail? If so, you could use the server your mail client points to to > perform your tests. > > Cheers, > > > Marco > -- > ---------------- > php|architect - The Monthly Magazine for PHP Professionals > Come check us out on the web at http://www.phparch.com! > GET YOUR FREE COPY TODAY! Simply register & download! > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

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

    attached mail follows:


    Sorry, I tried this as well and it failed to connect on port 25.

    -----Original Message----- From: Timothy Hitchens (HiTCHO) [mailto:phplistshitcho.com.au] Sent: Wednesday, January 08, 2003 9:39 AM To: Bruce Levick Cc: php-generallists.php.net Subject: RE: [PHP] restrictions

    You need to follow my instructions and do "telnet x.x.x.x 25" notice the 25 after the IP ??

    HiTCHO has Spoken! Timothy Hitchens (HiTCHO) timhitcho.com.au

    > -----Original Message----- > From: Bruce Levick [mailto:brucelispye.com] > Sent: Wednesday, 8 January 2003 9:35 AM > To: Timothy Hitchens (HiTCHO) > Cc: php-generallists.php.net > Subject: RE: [PHP] restrictions > > > Thanks, > Tried this and I get. > > "Cannot opeen connection to host on port 23" > > > > -----Original Message----- > From: Timothy Hitchens (HiTCHO) [mailto:phplistshitcho.com.au] > Sent: Wednesday, January 08, 2003 9:32 AM > To: Bruce Levick; 'Marco Tabini' > Cc: php-generallists.php.net > Subject: RE: [PHP] restrictions > > > In windowsxp do the following: > > Start -> Run > > Open: cmd > > At the shell type: > > telnet x.x.x.x 25 <---- x.x.x.x being the smtp server > > If you get a prompt then you have other issues such as relay etc etc > > > > HiTCHO has Spoken! > Timothy Hitchens (HiTCHO) > timhitcho.com.au > > > -----Original Message----- > > From: Bruce Levick [mailto:brucelispye.com] > > Sent: Wednesday, 8 January 2003 9:25 AM > > To: Marco Tabini > > Cc: php-generallists.php.net > > Subject: RE: [PHP] restrictions > > > > > > Well I can't be totally sure but I think all outgoing mail > points to > > an external SMTP server. > > > > -----Original Message----- > > From: Marco Tabini [mailto:marcottabini.ca] > > Sent: Wednesday, January 08, 2003 9:11 AM > > To: Bruce Levick > > Cc: php-generallists.php.net > > Subject: Re: [PHP] restrictions > > > > > > Hello Bruce-- > > > > That depends on what restrictions are imposed on your box, > of course. > > Does your company use an SMTP-compatible mail server for > your internal > > mail? If so, you could use the server your mail client points to to > > perform your tests. > > > > Cheers, > > > > > > Marco > > -- > > ---------------- > > php|architect - The Monthly Magazine for PHP Professionals > > Come check us out on the web at http://www.phparch.com! > > GET YOUR FREE COPY TODAY! Simply register & download! > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > >

    attached mail follows:


    Are you surfing and emailing from this box right now?? (strange if you are)

    HiTCHO has Spoken! Timothy Hitchens (HiTCHO) timhitcho.com.au

    > -----Original Message----- > From: Bruce Levick [mailto:brucelispye.com] > Sent: Wednesday, 8 January 2003 9:47 AM > To: Timothy Hitchens (HiTCHO) > Cc: php-generallists.php.net > Subject: RE: [PHP] restrictions > > > Sorry, I tried this as well and it failed to connect on port 25. > > -----Original Message----- > From: Timothy Hitchens (HiTCHO) [mailto:phplistshitcho.com.au] > Sent: Wednesday, January 08, 2003 9:39 AM > To: Bruce Levick > Cc: php-generallists.php.net > Subject: RE: [PHP] restrictions > > > You need to follow my instructions and do "telnet x.x.x.x 25" > notice the 25 after the IP ?? > > > HiTCHO has Spoken! > Timothy Hitchens (HiTCHO) > timhitcho.com.au > > > -----Original Message----- > > From: Bruce Levick [mailto:brucelispye.com] > > Sent: Wednesday, 8 January 2003 9:35 AM > > To: Timothy Hitchens (HiTCHO) > > Cc: php-generallists.php.net > > Subject: RE: [PHP] restrictions > > > > > > Thanks, > > Tried this and I get. > > > > "Cannot opeen connection to host on port 23" > > > > > > > > -----Original Message----- > > From: Timothy Hitchens (HiTCHO) [mailto:phplistshitcho.com.au] > > Sent: Wednesday, January 08, 2003 9:32 AM > > To: Bruce Levick; 'Marco Tabini' > > Cc: php-generallists.php.net > > Subject: RE: [PHP] restrictions > > > > > > In windowsxp do the following: > > > > Start -> Run > > > > Open: cmd > > > > At the shell type: > > > > telnet x.x.x.x 25 <---- x.x.x.x being the smtp server > > > > If you get a prompt then you have other issues such as relay etc etc > > > > > > > > HiTCHO has Spoken! > > Timothy Hitchens (HiTCHO) > > timhitcho.com.au > > > > > -----Original Message----- > > > From: Bruce Levick [mailto:brucelispye.com] > > > Sent: Wednesday, 8 January 2003 9:25 AM > > > To: Marco Tabini > > > Cc: php-generallists.php.net > > > Subject: RE: [PHP] restrictions > > > > > > > > > Well I can't be totally sure but I think all outgoing mail > > points to > > > an external SMTP server. > > > > > > -----Original Message----- > > > From: Marco Tabini [mailto:marcottabini.ca] > > > Sent: Wednesday, January 08, 2003 9:11 AM > > > To: Bruce Levick > > > Cc: php-generallists.php.net > > > Subject: Re: [PHP] restrictions > > > > > > > > > Hello Bruce-- > > > > > > That depends on what restrictions are imposed on your box, > > of course. > > > Does your company use an SMTP-compatible mail server for > > your internal > > > mail? If so, you could use the server your mail client > points to to > > > perform your tests. > > > > > > Cheers, > > > > > > > > > Marco > > > -- > > > ---------------- > > > php|architect - The Monthly Magazine for PHP Professionals > > > Come check us out on the web at http://www.phparch.com! > > > GET YOUR FREE COPY TODAY! Simply register & download! > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    Yes I am and its very strange. I can't even ftp to my own website to test it from there.

    -----Original Message----- From: Timothy Hitchens (HiTCHO) [mailto:phplistshitcho.com.au] Sent: Wednesday, January 08, 2003 9:48 AM To: Bruce Levick Cc: php-generallists.php.net Subject: RE: [PHP] restrictions

    Are you surfing and emailing from this box right now?? (strange if you are)

    HiTCHO has Spoken! Timothy Hitchens (HiTCHO) timhitcho.com.au

    > -----Original Message----- > From: Bruce Levick [mailto:brucelispye.com] > Sent: Wednesday, 8 January 2003 9:47 AM > To: Timothy Hitchens (HiTCHO) > Cc: php-generallists.php.net > Subject: RE: [PHP] restrictions > > > Sorry, I tried this as well and it failed to connect on port 25. > > -----Original Message----- > From: Timothy Hitchens (HiTCHO) [mailto:phplistshitcho.com.au] > Sent: Wednesday, January 08, 2003 9:39 AM > To: Bruce Levick > Cc: php-generallists.php.net > Subject: RE: [PHP] restrictions > > > You need to follow my instructions and do "telnet x.x.x.x 25" > notice the 25 after the IP ?? > > > HiTCHO has Spoken! > Timothy Hitchens (HiTCHO) > timhitcho.com.au > > > -----Original Message----- > > From: Bruce Levick [mailto:brucelispye.com] > > Sent: Wednesday, 8 January 2003 9:35 AM > > To: Timothy Hitchens (HiTCHO) > > Cc: php-generallists.php.net > > Subject: RE: [PHP] restrictions > > > > > > Thanks, > > Tried this and I get. > > > > "Cannot opeen connection to host on port 23" > > > > > > > > -----Original Message----- > > From: Timothy Hitchens (HiTCHO) [mailto:phplistshitcho.com.au] > > Sent: Wednesday, January 08, 2003 9:32 AM > > To: Bruce Levick; 'Marco Tabini' > > Cc: php-generallists.php.net > > Subject: RE: [PHP] restrictions > > > > > > In windowsxp do the following: > > > > Start -> Run > > > > Open: cmd > > > > At the shell type: > > > > telnet x.x.x.x 25 <---- x.x.x.x being the smtp server > > > > If you get a prompt then you have other issues such as relay etc etc > > > > > > > > HiTCHO has Spoken! > > Timothy Hitchens (HiTCHO) > > timhitcho.com.au > > > > > -----Original Message----- > > > From: Bruce Levick [mailto:brucelispye.com] > > > Sent: Wednesday, 8 January 2003 9:25 AM > > > To: Marco Tabini > > > Cc: php-generallists.php.net > > > Subject: RE: [PHP] restrictions > > > > > > > > > Well I can't be totally sure but I think all outgoing mail > > points to > > > an external SMTP server. > > > > > > -----Original Message----- > > > From: Marco Tabini [mailto:marcottabini.ca] > > > Sent: Wednesday, January 08, 2003 9:11 AM > > > To: Bruce Levick > > > Cc: php-generallists.php.net > > > Subject: Re: [PHP] restrictions > > > > > > > > > Hello Bruce-- > > > > > > That depends on what restrictions are imposed on your box, > > of course. > > > Does your company use an SMTP-compatible mail server for > > your internal > > > mail? If so, you could use the server your mail client > points to to > > > perform your tests. > > > > > > Cheers, > > > > > > > > > Marco > > > -- > > > ---------------- > > > php|architect - The Monthly Magazine for PHP Professionals > > > Come check us out on the web at http://www.phparch.com! GET YOUR > > > FREE COPY TODAY! Simply register & download! > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    It is using a microsoft exchange server.

    -----Original Message----- From: Larry Brown [mailto:larry.browndimensionnetworks.com] Sent: Wednesday, January 08, 2003 9:53 AM To: Bruce Levick Subject: RE: [PHP] restrictions

    In order to send mail on your mail client you must be able to connect to port 25 on what is listed as your smtp server, otherwise you couldn't send mail. Is your system set up to use an IMAP server of some kind like exchange or the like. That may be what your system uses as a mail transport.

    Larry S. Brown Dimension Networks, Inc. (727) 723-8388

    -----Original Message----- From: Bruce Levick [mailto:brucelispye.com] Sent: Tuesday, January 07, 2003 6:47 PM To: Timothy Hitchens (HiTCHO) Cc: php-generallists.php.net Subject: RE: [PHP] restrictions

    Sorry, I tried this as well and it failed to connect on port 25.

    -----Original Message----- From: Timothy Hitchens (HiTCHO) [mailto:phplistshitcho.com.au] Sent: Wednesday, January 08, 2003 9:39 AM To: Bruce Levick Cc: php-generallists.php.net Subject: RE: [PHP] restrictions

    You need to follow my instructions and do "telnet x.x.x.x 25" notice the 25 after the IP ??

    HiTCHO has Spoken! Timothy Hitchens (HiTCHO) timhitcho.com.au

    > -----Original Message----- > From: Bruce Levick [mailto:brucelispye.com] > Sent: Wednesday, 8 January 2003 9:35 AM > To: Timothy Hitchens (HiTCHO) > Cc: php-generallists.php.net > Subject: RE: [PHP] restrictions > > > Thanks, > Tried this and I get. > > "Cannot opeen connection to host on port 23" > > > > -----Original Message----- > From: Timothy Hitchens (HiTCHO) [mailto:phplistshitcho.com.au] > Sent: Wednesday, January 08, 2003 9:32 AM > To: Bruce Levick; 'Marco Tabini' > Cc: php-generallists.php.net > Subject: RE: [PHP] restrictions > > > In windowsxp do the following: > > Start -> Run > > Open: cmd > > At the shell type: > > telnet x.x.x.x 25 <---- x.x.x.x being the smtp server > > If you get a prompt then you have other issues such as relay etc etc > > > > HiTCHO has Spoken! > Timothy Hitchens (HiTCHO) > timhitcho.com.au > > > -----Original Message----- > > From: Bruce Levick [mailto:brucelispye.com] > > Sent: Wednesday, 8 January 2003 9:25 AM > > To: Marco Tabini > > Cc: php-generallists.php.net > > Subject: RE: [PHP] restrictions > > > > > > Well I can't be totally sure but I think all outgoing mail > points to > > an external SMTP server. > > > > -----Original Message----- > > From: Marco Tabini [mailto:marcottabini.ca] > > Sent: Wednesday, January 08, 2003 9:11 AM > > To: Bruce Levick > > Cc: php-generallists.php.net > > Subject: Re: [PHP] restrictions > > > > > > Hello Bruce-- > > > > That depends on what restrictions are imposed on your box, > of course. > > Does your company use an SMTP-compatible mail server for > your internal > > mail? If so, you could use the server your mail client points to to > > perform your tests. > > > > Cheers, > > > > > > Marco > > -- > > ---------------- > > php|architect - The Monthly Magazine for PHP Professionals > > Come check us out on the web at http://www.phparch.com! > > GET YOUR FREE COPY TODAY! Simply register & download! > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > >

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

    attached mail follows:


    This is now getting to off list issues I would suggest!!

    HiTCHO has Spoken! Timothy Hitchens (HiTCHO) timhitcho.com.au

    > -----Original Message----- > From: Bruce Levick [mailto:brucelispye.com] > Sent: Wednesday, 8 January 2003 9:55 AM > To: Timothy Hitchens (HiTCHO) > Cc: php-generallists.php.net > Subject: RE: [PHP] restrictions > > > Yes I am and its very strange. I can't even ftp to my own website to > test it from there. > > -----Original Message----- > From: Timothy Hitchens (HiTCHO) [mailto:phplistshitcho.com.au] > Sent: Wednesday, January 08, 2003 9:48 AM > To: Bruce Levick > Cc: php-generallists.php.net > Subject: RE: [PHP] restrictions > > > Are you surfing and emailing from this box right now?? (strange if you > are) > > HiTCHO has Spoken! > Timothy Hitchens (HiTCHO) > timhitcho.com.au > > > -----Original Message----- > > From: Bruce Levick [mailto:brucelispye.com] > > Sent: Wednesday, 8 January 2003 9:47 AM > > To: Timothy Hitchens (HiTCHO) > > Cc: php-generallists.php.net > > Subject: RE: [PHP] restrictions > > > > > > Sorry, I tried this as well and it failed to connect on port 25. > > > > -----Original Message----- > > From: Timothy Hitchens (HiTCHO) [mailto:phplistshitcho.com.au] > > Sent: Wednesday, January 08, 2003 9:39 AM > > To: Bruce Levick > > Cc: php-generallists.php.net > > Subject: RE: [PHP] restrictions > > > > > > You need to follow my instructions and do "telnet x.x.x.x > 25" notice > > the 25 after the IP ?? > > > > > > HiTCHO has Spoken! > > Timothy Hitchens (HiTCHO) > > timhitcho.com.au > > > > > -----Original Message----- > > > From: Bruce Levick [mailto:brucelispye.com] > > > Sent: Wednesday, 8 January 2003 9:35 AM > > > To: Timothy Hitchens (HiTCHO) > > > Cc: php-generallists.php.net > > > Subject: RE: [PHP] restrictions > > > > > > > > > Thanks, > > > Tried this and I get. > > > > > > "Cannot opeen connection to host on port 23" > > > > > > > > > > > > -----Original Message----- > > > From: Timothy Hitchens (HiTCHO) [mailto:phplistshitcho.com.au] > > > Sent: Wednesday, January 08, 2003 9:32 AM > > > To: Bruce Levick; 'Marco Tabini' > > > Cc: php-generallists.php.net > > > Subject: RE: [PHP] restrictions > > > > > > > > > In windowsxp do the following: > > > > > > Start -> Run > > > > > > Open: cmd > > > > > > At the shell type: > > > > > > telnet x.x.x.x 25 <---- x.x.x.x being the smtp server > > > > > > If you get a prompt then you have other issues such as > relay etc etc > > > > > > > > > > > > HiTCHO has Spoken! > > > Timothy Hitchens (HiTCHO) > > > timhitcho.com.au > > > > > > > -----Original Message----- > > > > From: Bruce Levick [mailto:brucelispye.com] > > > > Sent: Wednesday, 8 January 2003 9:25 AM > > > > To: Marco Tabini > > > > Cc: php-generallists.php.net > > > > Subject: RE: [PHP] restrictions > > > > > > > > > > > > Well I can't be totally sure but I think all outgoing mail > > > points to > > > > an external SMTP server. > > > > > > > > -----Original Message----- > > > > From: Marco Tabini [mailto:marcottabini.ca] > > > > Sent: Wednesday, January 08, 2003 9:11 AM > > > > To: Bruce Levick > > > > Cc: php-generallists.php.net > > > > Subject: Re: [PHP] restrictions > > > > > > > > > > > > Hello Bruce-- > > > > > > > > That depends on what restrictions are imposed on your box, > > > of course. > > > > Does your company use an SMTP-compatible mail server for > > > your internal > > > > mail? If so, you could use the server your mail client > > points to to > > > > perform your tests. > > > > > > > > Cheers, > > > > > > > > > > > > Marco > > > > -- > > > > ---------------- > > > > php|architect - The Monthly Magazine for PHP Professionals > > > > Come check us out on the web at http://www.phparch.com! GET YOUR > > > > FREE COPY TODAY! Simply register & download! > > > > > > > > -- > > > > PHP General Mailing List (http://www.php.net/) > > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    This is how I do in javascript: randNumber = new Array(); for (p = 0; p < 10; p++) { randNumber[p] = Math.floor(Math.random()*7); } weekday = new Array("monday","tuesday","wednesday","thursday","friday","saturday","sunday" ) randDay1 = weekday[randNumber[0]] randDay2 = weekday[randNumber[1]] ....

    I would like to achieve the same goal using php but I cannot get it to work.

    attached mail follows:


    // seed code list($usec, $sec) = explode(' ', microtime()); $microtime = ((float)$usec + (float)$sec); srand((double) $microtime * 1000000); //~ seed code

    $randNumber = array(); $weekday = array("monday","tuesday","wednesday","thursday","friday","saturday","sunday" ); for ($p = 0; $p < 10; $p++) { randNumber[] = rand(0, 6); // rand(int minnumber, int maxnumber); } $randDay1 = weekday[randNumber[0]]; $randDay2 = weekday[randNumber[1]];

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

    attached mail follows:


    Hi, According to the docs, 4.3.0 comes with gd bundled in. Do I still have to use libpng and jpg and free type seperately? Do I still need --with-png-dir= in the configuration of php or is it part of the built in gd library?

    Thanks for any help.

    attached mail follows:


    -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

    I'm using error reporting E_ALL that helps me debugging, but Smarty generates some E_NOTICEs because of not defined variables, so, I want to disable E_NOTICE before displaying. I'm doing this: $oer = error_reporting(E_ALL & ~E_NOTICE); $tpl->display("index.html"); error_reporting($oer); but it still reports notices, any idea ? Thanks. - -- Pupeno: pupenopupeno.com http://www.pupeno.com - --- Help the hungry children of Argentina, please go to (and make it your homepage): http://www.porloschicos.com/servlet/PorLosChicos?comando=donar -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux)

    iD8DBQE+G2P3Lr8z5XzmSDQRAl8LAJ9jzLHmNuarcsG6M7JKjwKM313w1gCg2Dq1 79u/+bnOLvaNWCTxxdNVZXo= =qM1i -----END PGP SIGNATURE-----

    attached mail follows:


    Pupeno wrote: > > $oer = error_reporting(E_ALL & ~E_NOTICE); > $tpl->display("index.html"); > error_reporting($oer); > but it still reports notices, any idea ?

    Should be error_reporting (E_ALL ^ E_NOTICE);

    See:

    http://www.php.net/manual/en/function.error-reporting.php

    Jc

    attached mail follows:


    Pupeno wrote: > > $oer = error_reporting(E_ALL & ~E_NOTICE); > $tpl->display("index.html"); > error_reporting($oer); > but it still reports notices, any idea ?

    Should be error_reporting (E_ALL ^ E_NOTICE);

    See:

    http://www.php.net/manual/en/function.error-reporting.php

    Jc

    attached mail follows:


    On Wednesday 08 January 2003 02:45, Maxim Maletsky wrote:

    > Isn't it a little bit too much of paranoia for autocompletion? In > programming schools they make you writing the programs on paper so you > understand it better :)

    > I, personally, only care about the code highlighting. Autocompleting > often exposes you to make silly mistakes (not always, of course) and > these are the hardest ones to debug. Copying, pasting and replacing is > much "safer", IMHO.

    I thought autocompletion would help you _avoid_ silly mistakes. For example, defining $varName then trying to use $varname when you really meant to use $varName.

    -- 
    Jason Wong -> Gremlins Associates -> www.gremlins.biz
    Open Source Software Systems Integrators
    * Web Design & Hosting * Internet & Intranet Applications Development *
    

    /* There is nothing more silly than a silly laugh. -- Gaius Valerius Catullus */

    attached mail follows:


    -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

    On Tuesday 07 January 2003 18:48, Jason Wong wrote: > On Wednesday 08 January 2003 02:45, Maxim Maletsky wrote: > > Isn't it a little bit too much of paranoia for autocompletion? In > > programming schools they make you writing the programs on paper so you > > understand it better :) > > > > I, personally, only care about the code highlighting. Autocompleting > > often exposes you to make silly mistakes (not always, of course) and > > these are the hardest ones to debug. Copying, pasting and replacing is > > much "safer", IMHO. > > I thought autocompletion would help you _avoid_ silly mistakes. For > example, defining $varName then trying to use $varname when you really > meant to use $varName. Configuring error reporting to E_ALL will help you with that and some other things as well, all my scripts run in E_ALL. But I still think that autocompletation is very useful. Have fun. - -- Pupeno: pupenopupeno.com http://www.pupeno.com - --- Help the hungry children of Argentina, please go to (and make it your homepage): http://www.porloschicos.com/servlet/PorLosChicos?comando=donar -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux)

    iD8DBQE+G2eYLr8z5XzmSDQRAsH+AKCPrW2nGliNZu8kGOaAeaO8AC+9AgCg4q1D 0Ki998HRDqC2ER6eDYTby9s= =Bp+V -----END PGP SIGNATURE-----

    attached mail follows:


    Hi, I am trying to upgrade to php4.3.0, everything works, but when I try to use any gd image functions I get the following error:

    libpng warning: Application was compiled with png.h from libpng-1.2.1 libpng warning: Application is running with png.c from libpng-1.0.12 gd-png: fatal libpng error: Incompatible libpng version in application and library [Tue Jan 7 16:30:21 2003] [notice] child pid 14014 exit signal Segmentation fault (11)

    I downloaded and installed libpng-1.2.1 I configured php with: ./configure' '--with-jpeg-dir=../jpeg-6b' '--with-mysql=/usr/' '--with-apxs=/usr/local/apache/bin/apxs' '--with-gd' '--with-mcrypt=../libmcrypt-2.4.22' '--with-png-dir=../libpng-1.2.1' '--with-zlib-dir=../zlib-1.1.3' '--enable-exif' '--with-freetype-dir=../freetype-2.1.3'

    Where is is getting the libpng-1.0.12 from? I can't find it anywhere on the server. I am using apache 1.3.27 on redhat 7

    Thanks for any help.

    attached mail follows:


    I am working with sessions, and following an example in a book and am getting an error that I am not sure of. I have an html doc that has the fields for username and password and the information entered goes to this script.

    <? session_start();

    // set variables needed $username = $_POST['username']; $password = $_POST['password'];

    $connection = mysql_connect( 'localhost', 'username', 'password' ) or die (mysql_error()); $db = mysql_select_db( "database", $connection) or die (mysql_error());

    $query = "select * from users where username='$username' and password=('$password')"; $result = mysql_query($query); $num = mysql_num_rows($result); if ($num > 0 ) { $valid_user = $_POST[username]; session_register("valid_user"); }

    // PHP script to create the html for the login page if (session_is_registered("valid_user")) { echo "You are logged in as: $valid_user <br>"; echo "<a href=\"logout.php\">Log out</a><br>"; } else { if (isset($username)) { // if they have tried and failed to login echo "Could not login with the username $username."; } else { // They have not tried to login yet or have logged out echo "You are not logged in. Please click on the link below to go back to the login form.<br>"; } } ?> <br> <a href="login.html">Back to Login Form</a> </body> </html>

    Everything works except for when I login correctly, it shows that I am logged in, but at the bottom I get this message.

    Warning : Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0

    What does this mean, and what am I doing wrong?

    Thanks, Mike

    attached mail follows:


    > -----Original Message----- > From: Mike Tuller [mailto:phpce.anoka.k12.mn.us] > Sent: 08 January 2003 01:23 > > I am working with sessions, and following an example in a book and am > getting an error that I am not sure of. I have an html doc > that has the > fields for username and password and the information entered goes to > this script. > > <? > session_start(); [...] > if ($num > 0 ) > { > $valid_user = $_POST[username]; > session_register("valid_user"); > } > > // PHP script to create the html for the login page > if (session_is_registered("valid_user")) [...] > > Warning : Unknown(): Your script possibly relies on a session > side-effect which existed until PHP 4.2.3. Please be advised that the > session extension does not consider global variables as a source of > data, unless register_globals is enabled. You can disable this > functionality and this warning by setting session.bug_compat_42 or > session.bug_compat_warn to off, respectively. in Unknown on line 0 > > What does this mean, and what am I doing wrong?

    Well, you're not necessarily doing anything wrong -- as the warning says, your script *possibly* relies on...

    What's happened is that in version 4.3.0, a bug in session variable handling was fixed -- but the fix changes the way session variables behave in certain situations, and PHP has detected that you *may* have coded in a way that is sensitive to those changes. If you understand the issues (and I'm not 100% sure I do!) and are *sure* you're not relying on them, then you can set the session.bug_compat_* values in php.ini as specified.

    The best way of avoiding this error, however, is to drop the use of session_register() and friends, and switch to using the $_SESSION[] array -- so the fragment of code I've left in above would become:

    if ($num > 0 ) { $_SESSION['valid_user'] = $_POST['username']; }

    // PHP script to create the html for the login page if (isset($_SESSION["valid_user"]))

    Cheers!

    Mike

    --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: m.fordlmu.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

    attached mail follows:


    The while statement is only executing correctly for the first run through the foreach loop. Why?

    Thanks, loop

    foreach($desc as $key=>$value) { printf("Show %s Description <select name='show%sDesc'>", $key, $key); echo "<option value = ''></option>";

    while($row = mysql_fetch_row($show_names)) { printf("<option value='%s'>%s</option>", $row[0], $row[1]); } echo "</select><br>"; }

    _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus

    attached mail follows:


    > From: "James Brennan" <loopjunkiehotmail.com> > Sent: Tuesday, January 07, 2003 8:29 PM > Subject: [PHP] help - WHILE in FOREACH

    > The while statement is only executing correctly for the first run through > the foreach loop. Why? > > Thanks, > loop > > foreach($desc as $key=>$value) { > printf("Show %s Description <select name='show%sDesc'>", $key, $key); > echo "<option value = ''></option>"; > > while($row = mysql_fetch_row($show_names)) { > printf("<option value='%s'>%s</option>", $row[0], $row[1]); > } > echo "</select><br>"; > }

    You didn't really explain the problem well, but I think this is what you're looking for http://www.php.net/manual/en/function.mysql-data-seek.php Reset the pointer before the while loop and the names should list of all of the select boxes.

    attached mail follows:


    Is this your exact code? I ask, because the following should generate a parse error: echo "<option value = ''></option>";

    You have 3 double-quotes (").

    ----- Original Message ----- From: "James Brennan" <loopjunkiehotmail.com> To: <php-generallists.php.net> Sent: Tuesday, January 07, 2003 7:29 PM Subject: [PHP] help - WHILE in FOREACH

    The while statement is only executing correctly for the first run through the foreach loop. Why?

    Thanks, loop

    foreach($desc as $key=>$value) { printf("Show %s Description <select name='show%sDesc'>", $key, $key); echo "<option value = ''></option>";

    while($row = mysql_fetch_row($show_names)) { printf("<option value='%s'>%s</option>", $row[0], $row[1]); } echo "</select><br>"; }

    _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus

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

    attached mail follows:


    The second set of quotes is actualy two single quotes with nothing in-between.

    .loop

    >From: "Rick Emery" <remeryemeryloftus.com> >Reply-To: "Rick Emery" <remeryemeryloftus.com> >To: "James Brennan" <loopjunkiehotmail.com>,<php-generallists.php.net> >Subject: Re: [PHP] help - WHILE in FOREACH >Date: Tue, 7 Jan 2003 20:18:08 -0600 > >Is this your exact code? I ask, because the following should generate a >parse error: >echo "<option value = ''></option>"; > >You have 3 double-quotes ("). > >----- Original Message ----- >From: "James Brennan" <loopjunkiehotmail.com> >To: <php-generallists.php.net> >Sent: Tuesday, January 07, 2003 7:29 PM >Subject: [PHP] help - WHILE in FOREACH > > >The while statement is only executing correctly for the first run through >the foreach loop. Why? > >Thanks, >loop > >foreach($desc as $key=>$value) { >printf("Show %s Description <select name='show%sDesc'>", $key, $key); >echo "<option value = ''></option>"; > >while($row = mysql_fetch_row($show_names)) { >printf("<option value='%s'>%s</option>", $row[0], $row[1]); >} >echo "</select><br>"; >} > >_________________________________________________________________ >MSN 8 with e-mail virus protection service: 2 months FREE* >http://join.msn.com/?page=features/virus > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php > > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php

    _________________________________________________________________ MSN 8: advanced junk mail protection and 2 months FREE*. http://join.msn.com/?page=features/junkmail

    attached mail follows:


    On Tue, 7 Jan 2003, James Brennan wrote:

    > The while statement is only executing correctly for the first run through > the foreach loop. Why?

    It's /real/ hard to tell when you don't give any context or otherwise explain what it is you want to achieve. Since the code in fact executes correctly, we can only explain what's going on in your code, not why it doesn't work for your needs ...

    You while() loop runs through a mysql result set in its entirety the first time through the foreach() loop and leaves the result pointer at the end of the result set. All subsequent runs of the while() loop will start fetching results from the end of $show_names ... and get /nothing/.

    If you want to use all the results out of $show_names again, you have to reset the result pointer to the beginning of $show_names. Use mysql_data_seek(). http://php.net/mysql_data_seek, and see below.

    > foreach($desc as $key=>$value) { > printf("Show %s Description <select name='show%sDesc'>", $key, $key); > echo "<option value = ''></option>"; > while($row = mysql_fetch_row($show_names)) { > printf("<option value='%s'>%s</option>", $row[0], $row[1]); > } if( mysql_num_rows( $show_names ) > 0 ){ mysql_data_seek( $show_names, 0 ); } > echo "</select><br>"; > }

    g.luck, ~Chris

    attached mail follows:


    My appologies for the lack of explicit information. Thank you for taking the time to write a reply. That is exactly what I needed to know.

    Thanks again, James

    >From: Chris Wesley <cwwesleyudlug.org> >To: php-generallists.php.net >Subject: Re: [PHP] help - WHILE in FOREACH >Date: Tue, 7 Jan 2003 18:49:53 -0800 (PST) > >On Tue, 7 Jan 2003, James Brennan wrote: > > > The while statement is only executing correctly for the first run >through > > the foreach loop. Why? > >It's /real/ hard to tell when you don't give any context or otherwise >explain what it is you want to achieve. Since the code in fact executes >correctly, we can only explain what's going on in your code, not why it >doesn't work for your needs ... > >You while() loop runs through a mysql result set in its entirety the >first time through the foreach() loop and leaves the result pointer at the >end of the result set. All subsequent runs of the while() loop will start >fetching results from the end of $show_names ... and get /nothing/. > >If you want to use all the results out of $show_names again, you have to >reset the result pointer to the beginning of $show_names. Use >mysql_data_seek(). http://php.net/mysql_data_seek, and see below. > > > foreach($desc as $key=>$value) { > > printf("Show %s Description <select name='show%sDesc'>", $key, $key); > > echo "<option value = ''></option>"; > > while($row = mysql_fetch_row($show_names)) { > > printf("<option value='%s'>%s</option>", $row[0], $row[1]); > > } > if( mysql_num_rows( $show_names ) > 0 ){ > mysql_data_seek( $show_names, 0 ); > } > > echo "</select><br>"; > > } > > g.luck, > ~Chris > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php

    _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail

    attached mail follows:


    I am having a parse error in the following sentence:

    print "<img src=\"" . $row["foto"] . "" width='104' height='137'\">";

    Thanks!

    Ezequiel

    attached mail follows:


    the problem is the "" before the width word it should be "\" ----- Original Message ----- From: "Ezequiel Sapoznik" <ezequielmibbva.com.ar> To: <> Sent: Tuesday, January 07, 2003 7:30 PM Subject: [PHP] Img src

    I am having a parse error in the following sentence:

    print "<img src=\"" . $row["foto"] . "" width='104' height='137'\">";

    Thanks!

    Ezequiel

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

    attached mail follows:


    A script started acting wonky with no changes to it. Doing a bit of debug at the time, I uncovered an odd variable called

    HTTP_WEFERER

    What is that? I check of the php.net website yielded no results.

    I'm guessing it is a variable set on the server. My first thought was a mangled HTTP_REFERER variable, which was missing, but the value was some long string.

    Any ideas?

    thanks,

    bill

    attached mail follows:


    Elmer Fudd been coding your PHP for you?

    I dount it ever worked ;)

    -----Original Message----- From: bill [mailto:billbilltron.com] Sent: Wednesday, 8 January 2003 12:41 PM To: php-generallists.php.net Subject: [PHP] HTTP_WEFERER

    A script started acting wonky with no changes to it. Doing a bit of debug at the time, I uncovered an odd variable called

    HTTP_WEFERER

    What is that? I check of the php.net website yielded no results.

    I'm guessing it is a variable set on the server. My first thought was a mangled HTTP_REFERER variable, which was missing, but the value was some long string.

    Any ideas?

    thanks,

    bill

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

    attached mail follows:


    > ----- Original Message ----- > From: "bill" <billbilltron.com> > Sent: Tuesday, January 07, 2003 8:40 PM > Subject: [PHP] HTTP_WEFERER

    > A script started acting wonky with no changes to it. Doing a bit of debug at > the time, I uncovered an odd variable called > > HTTP_WEFERER > > Any ideas?

    Seems to have something to do with Norton Personal Firewall. See: http://marc.theaimsgroup.com/?l=php-general&m=102058512832435&w=2

    attached mail follows:


    Do you know any good equivalent with similar features for Linux?

    Thanks,

    Pierre-Luc Soucy

    > PHPEdit i use it personally www.phpedit.net

    attached mail follows:


    That is the advantage of Zend Studio is that it is Java and will run on Win, Mac OSX and Linux.

    That is one of the reasons we use Zend Studio is that we can get our designers on OSX, geeks on linux/unix and executive types mostly Windows all using the same application for code writing, maintenance and soon management with the introduction of CVS integration (2.6) just announced on zend.com

    Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: timhitcho.com.au

    > -----Original Message----- > From: Pierre-Luc Soucy [mailto:phpcrealabs.com] > Sent: Wednesday, 8 January 2003 12:07 PM > To: php-generallists.php.net > Subject: Re: [PHP] PHP Editors > > > Do you know any good equivalent with similar features for Linux? > > Thanks, > > Pierre-Luc Soucy > > > PHPEdit i use it personally www.phpedit.net > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    > I'm running Apache 2.0 as a service and PHP (like a > module) onto a Windows Advanced Server. IŽm looking > for a good and free Editor to use with PHP (With > debugging features). Can anyone with experience guide > me?

    Look up archives. You will get full list of PHP editors.

    -- 
    Krzysztof Dziekiewicz
    

    attached mail follows:


    Hi,

    Wednesday, January 8, 2003, 12:29:50 AM, you wrote: DB> I want to be able to retrieve POST variable in one PHP script (which is DB> straight-forward) and then send these from the script to another one DB> returning the processed input.

    DB> I have written a script that will parse a frames-based page and render it as DB> a flat page (i.e. all frames displayed as a table in one HTML file) - this DB> is so that I can create a website using frames, and still let browsers that DB> don't support frames to access it without my having to create a separate DB> version of the site.

    DB> e.g.: DB> http://www.redradish.co.uk/rr/index.htm (frames based site) DB> http://www.redradish.co.uk/php/framesprocessor.php?Frameset=http://www.redra DB> dish.net/rr/index.htm&RenderMethod=1&MainFrame=main&AllHead=1 DB> (the same site DB> rendered as single page).

    DB> The problem is that if in the frames-based site one of the frames is a form DB> submission, I need to be able to send this data to the original form and DB> retrieve the output to display in the rendered page.

    DB> e.g. DB> http://www.redradish.co.uk/php/framesprocessor.php?Frameset=http://www.redra DB> dish.net/rr/index.htm&TargetName=main&Target=http://www.redradish.net/rr/con DB> tact/contactF.htm&MainFrame=main&RenderMethod=1&LinkSearch=1&AllHead=1&Debug DB> =1 DB> (this is a page that has a contact form).

    DB> I can't find any information on how to forward such a request.

    DB> The script in question is located at: DB> http://www.redradish.co.uk/php/framesprocessor.php

    DB> It uses these variables (passed using GET or POST): DB> Frameset frameset page. This needs to be parsed and a static HTML page DB> created. DB> Target (optional) full URL of page to be displayed in frmae named DB> TargetName. DB> TargetName (optional) name of the frame that $Target should appear in. DB> MainFrame (optional) is the frame from which header info, etc. is DB> taken. DB> Default is first frame. DB> AllHead (optional) If set (is 1 or more), copies <HEAD> content from all DB> frames. DB> RenderMethod (optional) defines how the frameset is to be represented: DB> 1 - All frames dumped into new page in order they appear in DB> frameset. DB> 2 - tables are used to attempt to recreate original format DB> Default is 1. DB> LinkSearch (optional) how links are replaced: DB> 1 - Only specific tags are replaced DB> 2 - Anything within quotes (' or ") that contains document path is DB> replaced DB> Default is 1. DB> Debug If set (greater than 0), debug info is added in comments.

    DB> It works to a good degree on most frames-based sites, but does have a couple DB> of failings (such as the one mentioned) that I would like to overcome.

    DB> The other problem is handling JavaScript in e.g. <frame DB> src="JavaScript:openpage(xx)">. There is no way to process JavaScript in DB> PHP that I am aware of - does anyone have a workaround for this? i.e. so DB> that my script can process the JavaScript function and retrieve the relevant DB> page for inclusion in the rendered page.

    DB> Hope someone can help!

    DB> Thanks.

    DB> Dave

    I would do it like this:

    $posted = base64_encode(serialize($_POST))); echo '<input type="hidden" name="posted" value="'.$posted.'">';

    on the receiving end you need:

    $posted = unserialize(base64_decode($_POST['posted']));

    -- 
    regards,
    Tom
    

    attached mail follows:


    Hi all,

    Has anyone got a function or regexp floating around that will convert behave like htmlspecialchars() or htmlentities() (eg converting & to &amp;, " to &quote;, etc etc) BUT NOT DESTROY HTML TAGS?

    Eg:

    "hello" said <a href="fred.php">Fred</a> & Judy

    should become:

    &quot;hello&quot; said <a href="fred.php">Fred &amp; Judy

    NOT: &quot;hello&quot; said &lt;a href=&quot;fred.php&quot;&gt;Fred &amp; Judy

    ????

    I guess it's stripped down or limited version of htmlspecialchars() or htmlentities().

    Justin

    attached mail follows:


    Hi Justin,

    You have to specify the list of tags you want preserved in an array, but this function from phpDocumentor will do it:

    /** * smart htmlentities, doesn't entity the allowed tags list * Since version 1.1, this function uses htmlspecialchars instead of htmlentities, for international support * param string $s * return string browser-displayable page */ function adv_htmlentities($s,$html_allowed) { $___htmltemp = array_flip($html_allowed); $___html1 = array(); foreach($___htmltemp as $tag => $trans) { $___html1['<'.$tag.'>'] = htmlentities('<'.$tag.'>'); $___html1['</'.$tag.'>'] = htmlentities('</'.$tag.'>'); } $_html = array_flip($___html1); } $result = htmlspecialchars($s); $entities = array_flip(get_html_translation_table(HTML_SPECIALCHARS)); $result = strtr($result,$_html); $matches = array(); preg_match_all('/(&lt;img.*&gt;)/U',$result,$matches); for($i=0;$i<count($matches[1]);$i++) { $result = str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(get_html_transl ation_table(HTML_SPECIALCHARS))),$result); } preg_match_all('/(&lt;font.*&gt;)/U',$result,$matches); for($i=0;$i<count($matches[1]);$i++) { $result = str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(get_html_transl ation_table(HTML_SPECIALCHARS))),$result); } preg_match_all('/(&lt;ol.*&gt;)/U',$result,$matches); for($i=0;$i<count($matches[1]);$i++) { $result = str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(get_html_transl ation_table(HTML_SPECIALCHARS))),$result); } preg_match_all('/(&lt;ul.*&gt;)/U',$result,$matches); for($i=0;$i<count($matches[1]);$i++) { $result = str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(get_html_transl ation_table(HTML_SPECIALCHARS))),$result); } preg_match_all('/(&lt;li.*&gt;)/U',$result,$matches); for($i=0;$i<count($matches[1]);$i++) { $result = str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(get_html_transl ation_table(HTML_SPECIALCHARS))),$result); } preg_match_all('/(&lt;a .*&gt;)/U',$result,$matches); for($i=0;$i<count($matches[1]);$i++) { $result = str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(get_html_transl ation_table(HTML_SPECIALCHARS))),$result); } return $result; }

    Regards, Greg

    --
    phpDocumentor
    http://www.phpdoc.org
    "Justin French" <justinindent.com.au> wrote in message
    news:BA41E11F.1BC59%justinindent.com.au...
    > Hi all,
    >
    > Has anyone got a function or regexp floating around that will convert
    behave
    > like htmlspecialchars() or htmlentities() (eg converting & to &amp;, " to
    > &quote;, etc etc) BUT NOT DESTROY HTML TAGS?
    >
    > Eg:
    >
    > "hello" said <a href="fred.php">Fred</a> & Judy
    >
    > should become:
    >
    > &quot;hello&quot; said <a href="fred.php">Fred &amp; Judy
    >
    > NOT:
    > &quot;hello&quot; said &lt;a href=&quot;fred.php&quot;&gt;Fred &amp; Judy
    >
    > ????
    >
    > I guess it's stripped down or limited version of htmlspecialchars() or
    > htmlentities().
    >
    >
    > Justin
    >
    

    attached mail follows:


    Is that going to take care of Nested Tags??

    Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: timhitcho.com.au

    > -----Original Message----- > From: Greg Beaver [mailto:gregchiaraquartet.net] > Sent: Wednesday, 8 January 2003 3:06 PM > To: php-generallists.php.net > Subject: [PHP] Re: htmlspecialchars() or htmlentities without > destroying tags? > > > Hi Justin, > > You have to specify the list of tags you want preserved in an > array, but this function from phpDocumentor will do it: > > /** > * smart htmlentities, doesn't entity the allowed tags list > * Since version 1.1, this function uses htmlspecialchars > instead of htmlentities, for international support > * param string $s > * return string browser-displayable page > */ > function adv_htmlentities($s,$html_allowed) > { > $___htmltemp = array_flip($html_allowed); > $___html1 = array(); > foreach($___htmltemp as $tag => $trans) > { > $___html1['<'.$tag.'>'] = htmlentities('<'.$tag.'>'); > $___html1['</'.$tag.'>'] = htmlentities('</'.$tag.'>'); > } > $_html = array_flip($___html1); > } > $result = htmlspecialchars($s); > $entities = > array_flip(get_html_translation_table(HTML_SPECIALCHARS)); > $result = strtr($result,$_html); > $matches = array(); > preg_match_all('/(&lt;img.*&gt;)/U',$result,$matches); > for($i=0;$i<count($matches[1]);$i++) > { > $result = > str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(g > et_html_transl > ation_table(HTML_SPECIALCHARS))),$result); > } > preg_match_all('/(&lt;font.*&gt;)/U',$result,$matches); > for($i=0;$i<count($matches[1]);$i++) > { > $result = > str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(g > et_html_transl > ation_table(HTML_SPECIALCHARS))),$result); > } > preg_match_all('/(&lt;ol.*&gt;)/U',$result,$matches); > for($i=0;$i<count($matches[1]);$i++) > { > $result = > str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(g > et_html_transl > ation_table(HTML_SPECIALCHARS))),$result); > } > preg_match_all('/(&lt;ul.*&gt;)/U',$result,$matches); > for($i=0;$i<count($matches[1]);$i++) > { > $result = > str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(g > et_html_transl > ation_table(HTML_SPECIALCHARS))),$result); > } > preg_match_all('/(&lt;li.*&gt;)/U',$result,$matches); > for($i=0;$i<count($matches[1]);$i++) > { > $result = > str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(g > et_html_transl > ation_table(HTML_SPECIALCHARS))),$result); > } > preg_match_all('/(&lt;a .*&gt;)/U',$result,$matches); > for($i=0;$i<count($matches[1]);$i++) > { > $result = > str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(g > et_html_transl > ation_table(HTML_SPECIALCHARS))),$result); > } > return $result; > } > > Regards, > Greg > -- > phpDocumentor > http://www.phpdoc.org > "Justin French" <justinindent.com.au> wrote in message news:BA41E11F.1BC59%justinindent.com.au... > Hi all, > > Has anyone got a function or regexp floating around that will convert behave > like htmlspecialchars() or htmlentities() (eg converting & to &amp;, "

    > to &quote;, etc etc) BUT NOT DESTROY HTML TAGS? > > Eg: > > "hello" said <a href="fred.php">Fred</a> & Judy > > should become: > > &quot;hello&quot; said <a href="fred.php">Fred &amp; Judy > > NOT: > &quot;hello&quot; said &lt;a href=&quot;fred.php&quot;&gt;Fred &amp; > Judy > > ???? > > I guess it's stripped down or limited version of htmlspecialchars() or

    > htmlentities(). > > > Justin >

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

    attached mail follows:


    Thanks,

    I'll give it a whrrrl :)

    Justin

    on 08/01/03 4:05 PM, Greg Beaver (gregchiaraquartet.net) wrote:

    > Hi Justin, > > You have to specify the list of tags you want preserved in an array, but > this function from phpDocumentor will do it: > > /** > * smart htmlentities, doesn't entity the allowed tags list > * Since version 1.1, this function uses htmlspecialchars instead of > htmlentities, for international support > * param string $s > * return string browser-displayable page > */ > function adv_htmlentities($s,$html_allowed) > { > $___htmltemp = array_flip($html_allowed); > $___html1 = array(); > foreach($___htmltemp as $tag => $trans) > { > $___html1['<'.$tag.'>'] = htmlentities('<'.$tag.'>'); > $___html1['</'.$tag.'>'] = htmlentities('</'.$tag.'>'); > } > $_html = array_flip($___html1); > } > $result = htmlspecialchars($s); > $entities = array_flip(get_html_translation_table(HTML_SPECIALCHARS)); > $result = strtr($result,$_html); > $matches = array(); > preg_match_all('/(&lt;img.*&gt;)/U',$result,$matches); > for($i=0;$i<count($matches[1]);$i++) > { > $result = > str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(get_html_transl > ation_table(HTML_SPECIALCHARS))),$result); > } > preg_match_all('/(&lt;font.*&gt;)/U',$result,$matches); > for($i=0;$i<count($matches[1]);$i++) > { > $result = > str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(get_html_transl > ation_table(HTML_SPECIALCHARS))),$result); > } > preg_match_all('/(&lt;ol.*&gt;)/U',$result,$matches); > for($i=0;$i<count($matches[1]);$i++) > { > $result = > str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(get_html_transl > ation_table(HTML_SPECIALCHARS))),$result); > } > preg_match_all('/(&lt;ul.*&gt;)/U',$result,$matches); > for($i=0;$i<count($matches[1]);$i++) > { > $result = > str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(get_html_transl > ation_table(HTML_SPECIALCHARS))),$result); > } > preg_match_all('/(&lt;li.*&gt;)/U',$result,$matches); > for($i=0;$i<count($matches[1]);$i++) > { > $result = > str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(get_html_transl > ation_table(HTML_SPECIALCHARS))),$result); > } > preg_match_all('/(&lt;a .*&gt;)/U',$result,$matches); > for($i=0;$i<count($matches[1]);$i++) > { > $result = > str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(get_html_transl > ation_table(HTML_SPECIALCHARS))),$result); > } > return $result; > } > > Regards, > Greg > -- > phpDocumentor > http://www.phpdoc.org > "Justin French" <justinindent.com.au> wrote in message > news:BA41E11F.1BC59%justinindent.com.au... >> Hi all, >> >> Has anyone got a function or regexp floating around that will convert > behave >> like htmlspecialchars() or htmlentities() (eg converting & to &amp;, " to >> &quote;, etc etc) BUT NOT DESTROY HTML TAGS? >> >> Eg: >> >> "hello" said <a href="fred.php">Fred</a> & Judy >> >> should become: >> >> &quot;hello&quot; said <a href="fred.php">Fred &amp; Judy >> >> NOT: >> &quot;hello&quot; said &lt;a href=&quot;fred.php&quot;&gt;Fred &amp; Judy >> >> ???? >> >> I guess it's stripped down or limited version of htmlspecialchars() or >> htmlentities(). >> >> >> Justin >> > >

    attached mail follows:


    How can I detect if my PHP script is about to time-out?

    I would like to be able to detect a time-out and display a page with an appropriate error message "i.e. the server is busy now, please try again later".

    Jc

    attached mail follows:


    This is a fairly simple one if both the server and browser obey the specs:

    Set up output buffering on your page then if the page times out the buffer should be sent to the browser and that is loaded with your message.

    PSEUDO CODE:

    start output buffering put into buffer the required message start building actual page in a string behind the scenes fork--> page times out the buffer is sent out --> page ends properly ... clear the buffer and output the string you built

    Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: timhitcho.com.au

    > -----Original Message----- > From: Jean-Christian Imbeault [mailto:jcmega-bucks.co.jp] > Sent: Wednesday, 8 January 2003 1:25 PM > To: php-generallists.php.net > Subject: [PHP] How to detect a PHP script time-out? > > > How can I detect if my PHP script is about to time-out? > > I would like to be able to detect a time-out and display a > page with an > appropriate error message "i.e. the server is busy now, > please try again > later". > > Jc > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    Timothy Hitchens ) wrote: > > Set up output buffering on your page then if the page times out the > buffer > should be sent to the browser and that is loaded with your message.

    Ok. Is there another solution?

    The reason I ask is that in order to use your solution I would need to redesign my pages (quite a few of them).

    I was hoping to be able to do something like this:

    if (timeout()) include("try_again.html");

    Thanks,

    Jc

    attached mail follows:


    You want a call back method for timeout none avail.

    - auto append won't work - register shutdown won't work

    I don't know of another solution right now.

    Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: timhitcho.com.au

    > -----Original Message----- > From: Jean-Christian Imbeault [mailto:jcmega-bucks.co.jp] > Sent: Wednesday, 8 January 2003 1:43 PM > To: php-generallists.php.net > Subject: Re: [PHP] How to detect a PHP script time-out? > > > Timothy Hitchens ) wrote: > > > > Set up output buffering on your page then if the page times out the > > buffer should be sent to the browser and that is loaded with your > > message. > > Ok. Is there another solution? > > The reason I ask is that in order to use your solution I > would need to > redesign my pages (quite a few of them). > > I was hoping to be able to do something like this: > > if (timeout()) include("try_again.html"); > > Thanks, > > Jc > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    Hi Jean-Christian,

    see:

    http://www.php.net/manual/en/features.connection-handling.php

    Take care, Greg

    --
    phpDocumentor
    http://www.phpdoc.org
    

    "Jean-Christian Imbeault" <jcmega-bucks.co.jp> wrote in message news:3E1B9E4B.7000904mega-bucks.co.jp... > Timothy Hitchens ) wrote: > > > > Set up output buffering on your page then if the page times out the > > buffer > > should be sent to the browser and that is loaded with your message. > > Ok. Is there another solution? > > The reason I ask is that in order to use your solution I would need to > redesign my pages (quite a few of them). > > I was hoping to be able to do something like this: > > if (timeout()) include("try_again.html"); > > Thanks, > > Jc >

    attached mail follows:


    Greg Beaver wrote: > > http://www.php.net/manual/en/features.connection-handling.php

    Nice!

    So if I understand correctly I need to:

    1- register a shutdown function 2- have this function check if it was called b/c of a conection_timeout() 3- And if so have the function print out my timeout error message

    So in my script I could put something like this:

    <?php function timeout_message() { if ( connection_timeout() ) { echo "server busy, try again later"; } }

    register_shutdown_function('timeout_message');

    [rest of my script goes here ...]

    ?>

    If the script timesout then my error function is called. Is that about right?

    Jc

    attached mail follows:


    Issue... as I said before the register shutdown won't work because:

    - output from the shutdown is not visible nor do you have access to some variables

    Result: no message as you wanted to show to the client.

    Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: timhitcho.com.au

    > -----Original Message----- > From: Jean-Christian Imbeault [mailto:jcmega-bucks.co.jp] > Sent: Wednesday, 8 January 2003 3:29 PM > To: php-generallists.php.net > Subject: Re: [PHP] How to detect a PHP script time-out? > > > Greg Beaver wrote: > > > > http://www.php.net/manual/en/features.connection-handling.php > > Nice! > > So if I understand correctly I need to: > > 1- register a shutdown function > 2- have this function check if it was called b/c of a > conection_timeout() > 3- And if so have the function print out my timeout error message > > So in my script I could put something like this: > > <?php > function timeout_message() { > if ( connection_timeout() ) { > echo "server busy, try again later"; > } > } > > register_shutdown_function('timeout_message'); > > [rest of my script goes here ...] > > ?> > > If the script timesout then my error function is called. Is > that about > right? > > Jc > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    You can try that code. It looks like connection_timeout() is deprecated, however. You should probably use connection_aborted() and connection_status()

    http://www.php.net/manual/en/function.connection-status.php http://www.php.net/manual/en/function.connection-aborted.php

    Read the user notes in connection_aborted, there appear to be issues to take into account.

    Take care, Greg

    --
    phpDocumentor
    http://www.phpdoc.org
    

    "Jean-Christian Imbeault" <jcmega-bucks.co.jp> wrote in message news:3E1BB730.2030101mega-bucks.co.jp... > Greg Beaver wrote: > > > > http://www.php.net/manual/en/features.connection-handling.php > > Nice! > > So if I understand correctly I need to: > > 1- register a shutdown function > 2- have this function check if it was called b/c of a conection_timeout() > 3- And if so have the function print out my timeout error message > > So in my script I could put something like this: > > <?php > function timeout_message() { > if ( connection_timeout() ) { > echo "server busy, try again later"; > } > } > > register_shutdown_function('timeout_message'); > > [rest of my script goes here ...] > > ?> > > If the script timesout then my error function is called. Is that about > right? > > Jc >

    attached mail follows:


    Timothy Hitchens ) wrote: > Issue... as I said before the register shutdown won't work because: > > - output from the shutdown is not visible nor do you have access to some > variables

    You are right. From the manual:

    http://www.php.net/manual/en/function.register-shutdown-function.php

    " The registered shutdown functions are called after the request has been completed (including sending any output buffers), so it is not possible to send output to the browser using echo() or print(), or retrieve the contents of any output buffers using ob_get_contents()."

    That's no good ...

    There definitely should be a function that gets called (or can be registered) when a script times out ... A time-out indicates an error on my end (the server) and I would like to be able to detect it and take action ...

    If the is no way to do this then PHP is lacking. I'd definitely ask for this to be implemented ;)

    Jc

    attached mail follows:


    There is one last option ... register an output buffer as I suggested before suggested but this time do the reverse and you don't have to rewrite your scripts:

    <?php

    ob_start('scriptTimeout');

    // set to 1 this should show the error below set to 2 and above you should get the normal output!! set_time_limit(1);

    function scriptTimeout($buffer) { if (eregi('Maximum execution', $buffer)) { $buffer = 'Server Overloaded!!'; }

    return $buffer; }

    // // content area //

    for ($i = 0; $i < 1000000; $i++) { $output = $i; }

    echo 'We are upto a final count of: '.$output;

    ?>

    Please be aware that this will add _some_ load but will solve your issues. You can then add in things like error checking etc etc

    Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: timhitcho.com.au

    > -----Original Message----- > From: Jean-Christian Imbeault [mailto:jcmega-bucks.co.jp] > Sent: Wednesday, 8 January 2003 3:43 PM > To: php-generallists.php.net > Subject: Re: [PHP] How to detect a PHP script time-out? > > > Timothy Hitchens ) wrote: > > Issue... as I said before the register shutdown won't work because: > > > > - output from the shutdown is not visible nor do you have access to > > some variables > > You are right. From the manual: > http://www.php.net/manual/en/function.register-shutdown-function.php

    " The registered shutdown functions are called after the request has been completed (including sending any output buffers), so it is not possible to send output to the browser using echo() or print(), or retrieve the contents of any output buffers using ob_get_contents()."

    That's no good ...

    There definitely should be a function that gets called (or can be registered) when a script times out ... A time-out indicates an error on

    my end (the server) and I would like to be able to detect it and take action ...

    If the is no way to do this then PHP is lacking. I'd definitely ask for this to be implemented ;)

    Jc

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

    attached mail follows:


    Timothy Hitchens ) wrote: > There is one last option ... register an output buffer as I suggested > before suggested but this time do the reverse and you > don't have to rewrite your scripts:

    Ok I think I understand what you are proposing. I just have one question about your example code.

    Where does the string "Maximum execution" come from? Is this output automatically by PHP when a script times out?

    Would it be possible to use:

    if (connection_status == 2) {}

    Jc

    > <?php > > ob_start('scriptTimeout'); > > // set to 1 this should show the error below set to 2 and above you > should get the normal output!! > set_time_limit(1); > > function scriptTimeout($buffer) > { > if (eregi('Maximum execution', $buffer)) > { > $buffer = 'Server Overloaded!!'; > } > > return $buffer; > } > > // > // content area > // > > for ($i = 0; $i < 1000000; $i++) > { > $output = $i; > } > > echo 'We are upto a final count of: '.$output; > > ?> >

    attached mail follows:


    No you can't.. the issue with this is that you need to have error reporting turned on.. so you will need to have more error collecting or removing.

    The error is something like: "Fatal error: Maximum execution......" so we are checking for just this in the regex.

    This isn't the best for a production env but this is the best I can see considering you don't want to rewrite!!

    Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: timhitcho.com.au

    > -----Original Message----- > From: Jean-Christian Imbeault [mailto:jcmega-bucks.co.jp] > Sent: Wednesday, 8 January 2003 5:17 PM > To: php-generallists.php.net > Subject: Re: [PHP] How to detect a PHP script time-out? > > > Timothy Hitchens ) wrote: > > There is one last option ... register an output buffer as I > suggested > > before suggested but this time do the reverse and you don't have to > > rewrite your scripts: > > Ok I think I understand what you are proposing. I just have > one question > about your example code. > > Where does the string "Maximum execution" come from? Is this output > automatically by PHP when a script times out? > > Would it be possible to use: > > if (connection_status == 2) {} > > Jc > > > <?php > > > > ob_start('scriptTimeout'); > > > > // set to 1 this should show the error below set to 2 and above you > > should get the normal output!! set_time_limit(1); > > > > function scriptTimeout($buffer) > > { > > if (eregi('Maximum execution', $buffer)) > > { > > $buffer = 'Server Overloaded!!'; > > } > > > > return $buffer; > > } > > > > // > > // content area > > // > > > > for ($i = 0; $i < 1000000; $i++) > > { > > $output = $i; > > } > > > > echo 'We are upto a final count of: '.$output; > > > > ?> > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    Timothy Hitchens ) wrote: > > No you can't.. the issue with this is that you need to have error > reporting turned on.. so you will need to have > more error collecting or removing. [..] > This isn't the best for a production env but this is the best I can see > considering you don't want to rewrite!!

    Ouch. Having error reproting on is definitely not a good thing. But the again it can be set on a page by page basis so I could turn it off in the php.ini file, and turn it on only in those pages where I need to check for a time out.

    And it's not that I won't do a re-write it's just that I was hoping for something easy to implement. If a re-write is the only answer then I'll do it of course.

    I also posted a feature request asking for a shutdown() type function that can be used to send output back to the browser in the case of a timeout. Hope they'll implement it ;)

    Jc

    attached mail follows:


    Another strange behaviour... When I send the name of the file to be downloaded to this script, it works (still makes a double entry into MySQL though) with GET method but it doesn't work if the file's name is sent with the POST method.

    Why? I am pulling my hair out here!!!

    Please help...

    Thanks again

    "Altug Sahin" <altugbonsai-apart.com> wrote in message news:20030107000217.7493.qmailpb1.pair.com... > Hi here, > > I am sending a file to user's browser and logging the downloaded file into > MySQL but everytime this script works, I see double entry in the MySQL > table... Why is this happening? > > Any ideas? > > Thanks > > <? > $today = date("Y-m-d"); > > $conn = db_connect(); > > if(!$conn) > echo "Can't connect to database..."; > > $query = "INSERT INTO track_dl (dldate, email, file) > VALUES ('$today', 'useremail.com', 'file.ext')"; > > $result = mysql_query($query); > > if(!$result) > echo "Can't execute query: " . mysql_error(); > > header("Content-type: application/pdf"); > readfile("file.pdf"); > exit(); > ?> > >

    attached mail follows:


    When they first click on the file their browser will make a request for type, size etc then when it display's the dialog box on the screen of the client it will make another request to start the download.

    I get around this by putting the session id into the database and if it is double requested within 5 seconds to discard. So you will need to do a select, num_rows then if below 1 insert.

    Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: timhitcho.com.au

    > -----Original Message----- > From: Altug Sahin [mailto:altugbonsai-apart.com] > Sent: Wednesday, 8 January 2003 2:07 PM > To: php-generallists.php.net > Subject: [PHP] Re: Double entry into MySQL.. > > > Another strange behaviour... When I send the name of the file > to be downloaded to this script, it works (still makes a > double entry into MySQL > though) with GET method but it doesn't work if the file's > name is sent with the POST method. > > Why? I am pulling my hair out here!!! > > Please help... > > Thanks again > > "Altug Sahin" <altugbonsai-apart.com> wrote in message > news:20030107000217.7493.qmailpb1.pair.com... > > Hi here, > > > > > I am sending a file to user's browser and logging the downloaded file > > into MySQL but everytime this script works, I see double > entry in the > > MySQL table... Why is this happening? > > > > Any ideas? > > > > Thanks > > > > <? > > $today = date("Y-m-d"); > > > > $conn = db_connect(); > > > > if(!$conn) > > echo "Can't connect to database..."; > > > > $query = "INSERT INTO track_dl (dldate, email, file) > > VALUES ('$today', 'useremail.com', 'file.ext')"; > > > > $result = mysql_query($query); > > > > if(!$result) > > echo "Can't execute query: " . mysql_error(); > > > > header("Content-type: application/pdf"); readfile("file.pdf"); > > exit(); > > ?> > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    You should be able to get around it also by checking if $_SERVER[REQUEST_METHOD]=='HEAD'

    Timothy Hitchens (HiTCHO) wrote:

    >When they first click on the file their browser will make a request for >type, size etc >then when it display's the dialog box on the screen of the client it >will make another >request to start the download. > >I get around this by putting the session id into the database and if it >is double requested within >5 seconds to discard. So you will need to do a select, num_rows then if >below 1 insert. > > >Timothy Hitchens (HiTCHO) >Open Platform Consulting >e-mail: timhitcho.com.au > > > >>-----Original Message----- >>From: Altug Sahin [mailto:altugbonsai-apart.com] >>Sent: Wednesday, 8 January 2003 2:07 PM >>To: php-generallists.php.net >>Subject: [PHP] Re: Double entry into MySQL.. >> >> >>Another strange behaviour... When I send the name of the file >>to be downloaded to this script, it works (still makes a >>double entry into MySQL >>though) with GET method but it doesn't work if the file's >>name is sent with the POST method. >> >>Why? I am pulling my hair out here!!! >> >>Please help... >> >>Thanks again >> >>"Altug Sahin" <altugbonsai-apart.com> wrote in message >>news:20030107000217.7493.qmailpb1.pair.com... >> >> >>>Hi here, >>> >>> >>> >>> >>I am sending a file to user's browser and logging the downloaded file >> >> >>>into MySQL but everytime this script works, I see double >>> >>> >>entry in the >> >> >>>MySQL table... Why is this happening? >>> >>>Any ideas? >>> >>>Thanks >>> >>><? >>> $today = date("Y-m-d"); >>> >>> $conn = db_connect(); >>> >>> if(!$conn) >>> echo "Can't connect to database..."; >>> >>> $query = "INSERT INTO track_dl (dldate, email, file) >>> VALUES ('$today', 'useremail.com', 'file.ext')"; >>> >>> $result = mysql_query($query); >>> >>> if(!$result) >>> echo "Can't execute query: " . mysql_error(); >>> >>>header("Content-type: application/pdf"); readfile("file.pdf"); >>>exit(); >>>?> >>> >>> >>> >>> >> >>-- >>PHP General Mailing List (http://www.php.net/) >>To unsubscribe, visit: http://www.php.net/unsub.php >> >> >> > > > >

    attached mail follows:


    I wish it was as simple as that but in the past it just hasn't always worked!!

    Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: timhitcho.com.au

    > -----Original Message----- > From: Marek Kilimajer [mailto:kilimajerwebglobe.sk] > Sent: Wednesday, 8 January 2003 7:29 PM > To: Timothy Hitchens (HiTCHO) > Cc: 'Altug Sahin'; php-generallists.php.net > Subject: Re: [PHP] Re: Double entry into MySQL.. > > > You should be able to get around it also by checking > if $_SERVER[REQUEST_METHOD]=='HEAD' > > Timothy Hitchens (HiTCHO) wrote: > > >When they first click on the file their browser will make a > request for > >type, size etc then when it display's the dialog box on the > screen of > >the client it will make another > >request to start the download. > > > >I get around this by putting the session id into the > database and if it > >is double requested within 5 seconds to discard. So you will > need to do > >a select, num_rows then if below 1 insert. > > > > > >Timothy Hitchens (HiTCHO) > >Open Platform Consulting > >e-mail: timhitcho.com.au > > > > > > > >>-----Original Message----- > >>From: Altug Sahin [mailto:altugbonsai-apart.com] > >>Sent: Wednesday, 8 January 2003 2:07 PM > >>To: php-generallists.php.net > >>Subject: [PHP] Re: Double entry into MySQL.. > >> > >> > >>Another strange behaviour... When I send the name of the file > >>to be downloaded to this script, it works (still makes a > >>double entry into MySQL > >>though) with GET method but it doesn't work if the file's > >>name is sent with the POST method. > >> > >>Why? I am pulling my hair out here!!! > >> > >>Please help... > >> > >>Thanks again > >> > >>"Altug Sahin" <altugbonsai-apart.com> wrote in message > >>news:20030107000217.7493.qmailpb1.pair.com... > >> > >> > >>>Hi here, > >>> > >>> > >>> > >>> > >>I am sending a file to user's browser and logging the > downloaded file > >> > >> > >>>into MySQL but everytime this script works, I see double > >>> > >>> > >>entry in the > >> > >> > >>>MySQL table... Why is this happening? > >>> > >>>Any ideas? > >>> > >>>Thanks > >>> > >>><? > >>> $today = date("Y-m-d"); > >>> > >>> $conn = db_connect(); > >>> > >>> if(!$conn) > >>> echo "Can't connect to database..."; > >>> > >>> $query = "INSERT INTO track_dl (dldate, email, file) > >>> VALUES ('$today', 'useremail.com', 'file.ext')"; > >>> > >>> $result = mysql_query($query); > >>> > >>> if(!$result) > >>> echo "Can't execute query: " . mysql_error(); > >>> > >>>header("Content-type: application/pdf"); readfile("file.pdf"); > >>>exit(); ?> > >>> > >>> > >>> > >>> > >> > >>-- > >>PHP General Mailing List (http://www.php.net/) > >>To unsubscribe, visit: http://www.php.net/unsub.php > >> > >> > >> > > > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    I have an interesting situation!

    I get a dir to be made - no problem, but I want it to have the permissions 0777. When I look in the directory that was just created (blah drwxr-x---) are the permissions.

    This is not acceptable!

    Lucy, you got some splainin to do!

    Thanks for your help

    RW

    attached mail follows:


    On Wednesday 08 January 2003 12:05, rwxend.net wrote: > I have an interesting situation! > > I get a dir to be made - no problem, but I want it to have the permissions > 0777. When I look in the directory that was just created (blah drwxr-x---) > are the permissions.

    Look at umask().

    -- 
    Jason Wong -> Gremlins Associates -> www.gremlins.biz
    Open Source Software Systems Integrators
    * Web Design & Hosting * Internet & Intranet Applications Development *
    

    /* An age is called Dark not because the light fails to shine, but because people refuse to see it. -- James Michener, "Space" */

    attached mail follows:


    Thank you, Jason!

    Quoting Jason Wong <php-generalgremlins.biz>:

    ### On Wednesday 08 January 2003 12:05, rwxend.net wrote: ### > I have an interesting situation! ### > ### > I get a dir to be made - no problem, but I want it to have the ### permissions ### > 0777. When I look in the directory that was just created (blah ### drwxr-x---) ### > are the permissions. ### ### Look at umask(). ### ### -- ### Jason Wong -> Gremlins Associates -> www.gremlins.biz ### Open Source Software Systems Integrators ### * Web Design & Hosting * Internet & Intranet Applications Development * ### ### /* ### An age is called Dark not because the light fails to shine, but because ### people refuse to see it. ### -- James Michener, "Space" ### */ ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ###

    attached mail follows:


    Ok, Jason, here's another one!

    I think I've read how to delete a file. I need to delete 25 files, then do a rmdir(blah);

    Line 16: $directory = "path/*.*"; Warning: Unlink failed (No such file or directory) in /mnt/ls6/17/169/00000000/htdocs/2003/_admin/del_listing_action.php on line 16

    Warning: RmDir failed (File exists) in /mnt/ls6/17/169/00000000/htdocs/2003/_admin/del_listing_action.php on line 17

    Thanks

    attached mail follows:


    -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

    Hey, You can't delete the files all at once....you have to delete them one by one or use this function that will remove full directories. - ----- function force_rmdirs($dir) { $dh = opendir($dir); while(false !== ($file = readdir($dh))) { if($file != '.' && $file != '..') { $path = $dir .'/'. $file; if(is_dir($path)) { force_rmdirs($path); } else { unlink($path); } } } closedir($dh ); return rmdir($dir); } - ----- HTH! ~Paul

    On Wednesday 08 January 2003 12:29 am, rwxend.net wrote: > Ok, Jason, here's another one! > > I think I've read how to delete a file. > I need to delete 25 files, then do a rmdir(blah); > > Line 16: $directory = "path/*.*"; > Warning: Unlink failed (No such file or directory) in > /mnt/ls6/17/169/00000000/htdocs/2003/_admin/del_listing_action.php on line > 16 > > Warning: RmDir failed (File exists) in > /mnt/ls6/17/169/00000000/htdocs/2003/_admin/del_listing_action.php on line > 17 > > Thanks

    - -- ~Paul Nicholson Design Specialist WebPower Design paulwebpowerdesign.net www.webpowerdesign.net "The web....the way you want it!"

    "It said uses Windows 98 or better, so I loaded Linux!" Registered Linux User #183202 using Register Linux System # 81891 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org

    iD8DBQE+G8/JDyXNIUN3+UQRAmd/AJ42CW5HDYEQ1dvf/m5CLynoqGekwgCdE5T2 rxlRjVBaFNIhQGFQc38ylks= =mJq1 -----END PGP SIGNATURE-----

    attached mail follows:


    Hi

    I need to create a scheduling application for a school that would help them generate timetables and schedules. I would appreciate your ideas or any code that i could look at that could give a start.

    Thanks

    Mohamed

    attached mail follows:


    HI, I am new to PHP and I am just wondering if anyone could give me some help.

    I am currently working for infomart.ca, it is basically a company that sells articles (news/business). MY employer require me to develop a system using Perl and PHP, and the assignment is as follow:

    To develop a system that collects, stores, processes and disseminates internally the updating status of our databases.

    We currently have over 200 databases from various daily newspapers, magazines, TV transcripts and other periodicals. Most of them are updated every weekday between 4a.m. and 7a.m.. Others are updated on a weekly or monthly basis. THe update schedule Tv. the actual status need to be captured and made available to internal staff. This is similar to the flight departure/arrival information in an airport.

    Basically I was just wondering if anyone could give me any kind of suggestions. Thanks a lot, any type of suggestions would be great!

    Kelvin

    _________________________________________________________________ MSN 8: advanced junk mail protection and 2 months FREE*. http://join.msn.com/?page=features/junkmail

    attached mail follows:


    check out php nuke or post nuke

    > -----Original Message----- > From: Kelvin Poon [mailto:spideyyyhotmail.com] > Sent: Wednesday, 8 January 2003 4:41 PM > To: php-generallists.php.net > Subject: [PHP] Need a suggestion on developing a php-related system > > > > HI, I am new to PHP and I am just wondering if anyone could give me some > help. > > I am currently working for infomart.ca, it is basically a company > that sells > articles (news/business). MY employer require me to develop a > system using > Perl and PHP, and the assignment is as follow: > > To develop a system that collects, stores, processes and disseminates > internally the updating status of our databases. > > We currently have over 200 databases from various daily newspapers, > magazines, TV transcripts and other periodicals. Most of them > are updated > every weekday between 4a.m. and 7a.m.. Others are updated on a weekly or > monthly basis. THe update schedule Tv. the actual status need to be > captured and made available to internal staff. This is similar to the > flight departure/arrival information in an airport. > > Basically I was just wondering if anyone could give me any kind of > suggestions. Thanks a lot, any type of suggestions would be great! > > Kelvin > > > > > _________________________________________________________________ > MSN 8: advanced junk mail protection and 2 months FREE*. > http://join.msn.com/?page=features/junkmail > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

    attached mail follows:


    keep to the list pls kelvin :) but to answer ur q.. php nuke is a new portal system... check out http://phpnuke.org for info ( and to dl it )

    > -----Original Message----- > From: Kelvin Poon [mailto:spideyyyhotmail.com] > Sent: Wednesday, 8 January 2003 4:50 PM > To: phpvfsa.com.au > Subject: RE: [PHP] Need a suggestion on developing a php-related system > > > > > > > THanks a lot Peter, would you mind explaining what is PHP nuke? > > > >From: "Peter Houchin" <phpvfsa.com.au> > >To: "Kelvin Poon" <spideyyyhotmail.com>, <php-generallists.php.net> > >Subject: RE: [PHP] Need a suggestion on developing a php-related system > >Date: Wed, 8 Jan 2003 16:57:53 +1100 > > > >check out php nuke or post nuke > > > > > -----Original Message----- > > > From: Kelvin Poon [mailto:spideyyyhotmail.com] > > > Sent: Wednesday, 8 January 2003 4:41 PM > > > To: php-generallists.php.net > > > Subject: [PHP] Need a suggestion on developing a php-related system > > > > > > > > > > > > HI, I am new to PHP and I am just wondering if anyone could > give me some > > > help. > > > > > > I am currently working for infomart.ca, it is basically a company > > > that sells > > > articles (news/business). MY employer require me to develop a > > > system using > > > Perl and PHP, and the assignment is as follow: > > > > > > To develop a system that collects, stores, processes and disseminates > > > internally the updating status of our databases. > > > > > > We currently have over 200 databases from various daily newspapers, > > > magazines, TV transcripts and other periodicals. Most of them > > > are updated > > > every weekday between 4a.m. and 7a.m.. Others are updated on > a weekly > >or > > > monthly basis. THe update schedule Tv. the actual status need to be > > > captured and made available to internal staff. This is similar to the > > > flight departure/arrival information in an airport. > > > > > > Basically I was just wondering if anyone could give me any kind of > > > suggestions. Thanks a lot, any type of suggestions would be great! > > > > > > Kelvin > > > > > > > > > > > > > > > _________________________________________________________________ > > > MSN 8: advanced junk mail protection and 2 months FREE*. > > > http://join.msn.com/?page=features/junkmail > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > > >-- > >PHP General Mailing List (http://www.php.net/) > >To unsubscribe, visit: http://www.php.net/unsub.php > > > _________________________________________________________________ > MSN 8 with e-mail virus protection service: 2 months FREE* > http://join.msn.com/?page=features/virus > >

    attached mail follows:


    Hello,

    On 01/08/2003 03:40 AM, Kelvin Poon wrote: > HI, I am new to PHP and I am just wondering if anyone could give me some > help. > > I am currently working for infomart.ca, it is basically a company that > sells articles (news/business). MY employer require me to develop a > system using Perl and PHP, and the assignment is as follow: > > To develop a system that collects, stores, processes and disseminates > internally the updating status of our databases. > > We currently have over 200 databases from various daily newspapers, > magazines, TV transcripts and other periodicals. Most of them are > updated every weekday between 4a.m. and 7a.m.. Others are updated on a > weekly or monthly basis. THe update schedule Tv. the actual status need > to be captured and made available to internal staff. This is similar to > the flight departure/arrival information in an airport.

    This is vague. What do you mean exactly by captured and made available to internal staff? Do you mean aggregate from somewhere to a central place?

    Anyway, news feed compilation and aggregation leads to XML-RDF-RSS.

    -- 
    

    Regards, Manuel Lemos

    attached mail follows:


    From the remark about the arrival and departure time scenario, it sounds like you want to show whether the updates occurred and when they began/ended. If this is accurate, you should find out whether the scripts used to populate those databases record that information for the database it is updating. If so you need to create a script that opens each database and queries that data. If they do not record these things you could either modify them to do so or you could have them also connect to a central db that you create to store this collection of data to show beginning and ending of the scripts. I think either way you should store this in your own db. Is this along the lines of what you had in mind?

    Larry S. Brown Dimension Networks, Inc. (727) 723-8388

    On 01/08/2003 03:40 AM, Kelvin Poon wrote: > HI, I am new to PHP and I am just wondering if anyone could give me some > help. > > I am currently working for infomart.ca, it is basically a company that > sells articles (news/business). MY employer require me to develop a > system using Perl and PHP, and the assignment is as follow: > > To develop a system that collects, stores, processes and disseminates > internally the updating status of our databases. > > We currently have over 200 databases from various daily newspapers, > magazines, TV transcripts and other periodicals. Most of them are > updated every weekday between 4a.m. and 7a.m.. Others are updated on a > weekly or monthly basis. THe update schedule Tv. the actual status need > to be captured and made available to internal staff. This is similar to > the flight departure/arrival information in an airport.

    attached mail follows:


    There is one minor difference that caused a major change in structure of the two scripting language.

    PHP offers the isset() function but ASP don't. in a way there are the pros and cons.

    For PHP, you can create the whole site in one page, even though that would not be advisable. Because of isset(), you can get input and display output using the same page. However, this would result in security loop holes.

    Whereas for ASP, without the isset() keyword, ASP structures are usually made up of at least 2 pages. One for receiving input and the other for display the result, output. This of cos patches the security holes.

    In a way, PHP provides a simpler way for programmer. Also, one can chose not to use isset() !!

    But ASP only supported on win platforms... =(

    -----Original Message----- From: Anthony Rodriguez [mailto:sbwibellatlantic.net] Sent: 04 January 2003 10:50 To: php-generallists.php.net Subject: [PHP] PHP vs. ASP

    Hi! How does PHP differs from ASP?

    Are there any advantages in using PHP over ASP? Or the other way around?

    Thanks!

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

    attached mail follows:


    I'm not really sure what you mean in terms of ASP needing two or more pages?

    <% dim pageAction pageAction = Request("action")

    select case pageAction case "postit": InsertFormData() case else : ShowForm() end select

    sub InsertFormData() end sub

    sub ShowForm() Response.Write("<html><head></head><body>TheForm</body></html>") end sub %>

    or whatever.

    as far as isset goes?

    function isset(byval checkVar) dim ret if (len(checkVar) > 0) then ret = true else ret = false end if end function

    The ONLY thing I can think of that ASP misses that can be done easily in PHP, is dynamic includes, ie:

    $code = _GET['code']; include($code.'.php');

    the asp inlude equivelent is <!--#include file="whatever.asp"-->

    and thats handled by the SSI engine before it gets passed over to the ASP engine. So no dynamic includes for ASP.

    Ofcourse there are other features that PHP has that ASP does not, and vice versa. Right tool for the job, right tool for the job.

    -----Original Message----- From: See kok Boon [mailto:kokboonshinningstudios.com] Sent: Wednesday, 8 January 2003 6:29 PM To: php-generallists.php.net Subject: RE: [PHP] PHP vs. ASP

    There is one minor difference that caused a major change in structure of the two scripting language.

    PHP offers the isset() function but ASP don't. in a way there are the pros and cons.

    For PHP, you can create the whole site in one page, even though that would not be advisable. Because of isset(), you can get input and display output using the same page. However, this would result in security loop holes.

    Whereas for ASP, without the isset() keyword, ASP structures are usually made up of at least 2 pages. One for receiving input and the other for display the result, output. This of cos patches the security holes.

    In a way, PHP provides a simpler way for programmer. Also, one can chose not to use isset() !!

    But ASP only supported on win platforms... =(

    -----Original Message----- From: Anthony Rodriguez [mailto:sbwibellatlantic.net] Sent: 04 January 2003 10:50 To: php-generallists.php.net Subject: [PHP] PHP vs. ASP

    Hi! How does PHP differs from ASP?

    Are there any advantages in using PHP over ASP? Or the other way around?

    Thanks!

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

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

    attached mail follows:


    oops

    function isset(byval checkVar) dim ret if (len(checkVar) > 0) then ret = true else ret = false end if isset = ret end function

    meh

    -----Original Message----- From: Sean Malloy [mailto:seanelement.net.au] Sent: Wednesday, 8 January 2003 6:42 PM To: php-generallists.php.net Subject: RE: [PHP] PHP vs. ASP

    I'm not really sure what you mean in terms of ASP needing two or more pages?

    <% dim pageAction pageAction = Request("action")

    select case pageAction case "postit": InsertFormData() case else : ShowForm() end select

    sub InsertFormData() end sub

    sub ShowForm() Response.Write("<html><head></head><body>TheForm</body></html>") end sub %>

    or whatever.

    as far as isset goes?

    function isset(byval checkVar) dim ret if (len(checkVar) > 0) then ret = true else ret = false end if end function

    attached mail follows:


    mysql_select_db("be"); // this doesn't fail, because only the second (UPDATE) query fails. The first query (SELECT) is done!

    ----- Original Message ----- From: "Marek Kilimajer" <kilimajerwebglobe.sk> To: "Nuno Lopes" <nunoplopesclix.pt> Cc: "MySQL List" <mysqllists.mysql.com>; <php-generallists.php.net> Sent: Tuesday, January 07, 2003 5:06 PM Subject: Re: [PHP] Re: PHP and MySQL bug

    > mysql_select_db("be"); -- this failed > do echo mysql_error(); to see what went wrong > > > > Nuno Lopes wrote: > > >I done a echo of Mysql_error and it returned: > >'Nenhum banco de dados foi selecionado' > > > >(I have the mysql server in portuguese, but the translation is something > >like 'no db was selected') > > > > > >----- Original Message ----- > >From: "David Freeman" <dfreemanoutbackqld.net.au> > >To: <php-generallists.php.net> > >Sent: Sunday, January 05, 2003 10:29 PM > >Subject: RE: [PHP] Re: PHP and MySQL bug > > > > > > > > > >> > MYSQL_QUERY("UPDATE d SET h='$h' WHERE id='$id'"); // this > >> > query doesn't work!!!! > >> > >>Personally, I'd call it bad programming practice to do a database update > >>and not check to see if it worked or not. In this case, how are you > >>determining that the query did not work? Are you manually checking the > >>database? You don't have anything in your code to check the status of > >>this query. > >> > >>Perhaps this might get you somewhere: > >> > >>$qid = mysql_query("UPDATE d SET h = '$h' WHERE id = '$id'"); > >> > >>if (isset($qid) && mysql_affected_rows() == 1) > >>{ > >> echo "query executed"; > >>} else { > >> echo "query failed: " . mysql_error(); > >>} > >> > >>At least this way you might get some indication of where the problem is. > >> > >>CYA, Dave

    attached mail follows:


    Doesn't you have any simpler answer??

    Maybe installing the new version of mysql server - I have version 3.23.49 - should do the trick

    ----- Original Message ----- From: "Larry Brown" <larry.browndimensionnetworks.com> To: "Nuno Lopes" <nunoplopesclix.pt>; "MySQL List" <mysqllists.mysql.com> Sent: Tuesday, January 07, 2003 4:12 PM Subject: RE: [PHP] Re: PHP and MySQL bug

    > Since nobody is jumping in to say it is some simple configuration/setting > personally my next step would be to shut down all services on the box that > aren't absolutely necessary and stop everything in the registry under run > and stop anything in the start folder of the start menu and run the same > tests. If no positive results I would uninstall php completely and clean > any reference in the registry of it and then install with everything still > shut down. Retest, if no progress do the same with mysql. These are > radical and time-consuming methods, but it seems as though it is broken. If > you absolutely need this fixed fast you might resort to paying the > developers to give you a solution, although it may end up being what I just > listed, or it could be some simple fix that we aren't aware of. > > Larry S. Brown > Dimension Networks, Inc. > (727) 723-8388 > > -----Original Message----- > From: Nuno Lopes [mailto:nunoplopesclix.pt] > Sent: Tuesday, January 07, 2003 4:31 AM > To: php-generallists.php.net; mysqllists.mysql.com > Subject: Re: [PHP] Re: PHP and MySQL bug > > I have the latest version of PHP (4.3.0) as module in apache 2.0.43 and > mysql 3.23.49. > Everything is working fine, except this. > With pconnect the error is the same! > > > ----- Original Message ----- > From: "Larry Brown" <larry.browndimensionnetworks.com> > To: "MySQL List" <mysqllists.mysql.com> > Sent: Monday, January 06, 2003 6:28 PM > Subject: RE: [PHP] Re: PHP and MySQL bug > > > > This definitely sounds like a buggy installation or there may be some > > problem with the communication between the web server and the mysqld. Is > > the db on a different machine? Try using mysql_pconnect instead of > connect > > just to see what result you get. I have read some unfavorable statements > > about using pconnect with a large number of hits so if it works you should > > read the comments about it on php.net. Do a search for mysql_pconnect. > > > > Larry S. Brown > > Dimension Networks, Inc. > > (727) 723-8388 > > > > -----Original Message----- > > From: Nuno Lopes [mailto:nunoplopesclix.pt] > > Sent: Monday, January 06, 2003 1:09 PM > > To: MySQL List; php-generallists.php.net > > Subject: [PHP] Re: PHP and MySQL bug > > > > The problem is if I close the connection and reopen it the query is done, > > but if I remain with the same connection has the previous query, mysql > > returns an error. > > > > > > ----- Original Message ----- > > From: "Larry Brown" <larry.browndimensionnetworks.com> > > To: "MySQL List" <mysqllists.mysql.com> > > Sent: Sunday, January 05, 2003 4:16 PM > > Subject: Re:PHP and MySQL bug > > > > > > > Try replacing the following line... > > > > > > MYSQL_QUERY("UPDATE d SET h='$h' WHERE id='$id'"); // this query > doesn't > > > work!!!! > > > > > > With... > > > > > > $query = "UPDATE d SET h='$h' WERE id='$id'"; > > > $queryr = mysql_query($query) or die("The sql statement does not > > execute"); > > > > > > if(mysql_affected_rows() !== 1) > > > { > > > die("The sql statement is successfully run however either h did not > > > change or there is an internal error. Try executing the sql from the > > > command line to make sure it otherwise works."); > > > } > > > > > > and see which is coming back. > > > > > > > > > Larry S. Brown > > > Dimension Networks, Inc. > > > (727) 723-8388

    attached mail follows:


    I am trying to use a command line program in Linux using this form:

    $result = `/path/prog $arg`;

    But this doesn't work as the program is expecting and EOF that never comes.

    If I use the program on the command line when I am finished entering all the data I need to hit return and then CTRL-D to give an EOF.

    How can I simulate this using the backticks?

    Thanks!

    Jc

    attached mail follows:


    ----- Original Message ----- From: "Jean-Christian Imbeault" <jcmega-bucks.co.jp> To: <php-generallists.php.net> Sent: Wednesday, January 08, 2003 9:52 AM Subject: [PHP] EOF: how to generate one in a string

    > I am trying to use a command line program in Linux using this form: > > $result = `/path/prog $arg`; > > But this doesn't work as the program is expecting and EOF that never comes. > > If I use the program on the command line when I am finished entering all > the data I need to hit return and then CTRL-D to give an EOF. > > How can I simulate this using the backticks? If $arg is, what you would enter in the command line, you need to pass it to prog's stdin. You could use `echo "$arg" | /path/prog` for example. If $arg is more that just a single line w/o special characters, you should probably use popen for more control (is it popen in php?...)

    attached mail follows:


    $result = `echo | /path/prog $arg`;

    should work

    Jean-Christian Imbeault wrote:

    > I am trying to use a command line program in Linux using this form: > > $result = `/path/prog $arg`; > > But this doesn't work as the program is expecting and EOF that never > comes. > > If I use the program on the command line when I am finished entering > all the data I need to hit return and then CTRL-D to give an EOF. > > How can I simulate this using the backticks? > > Thanks! > > Jc > >

    attached mail follows:


    Marek Kilimajer wrote: > $result = `echo | /path/prog $arg`; > > should work

    That didn' work ... don't know why.

    Isn't there a way to say echo "EOF"?

    There must be a way to specify the ascii or hex value for EOF in an echo statement no?

    Jc

    attached mail follows:


    I also tried tried with popen with no success.

    $fp = popen('/usr/src/bsfmdk/CCCallServer 2>&1', 'r'); fwrite($fp, $query); $result = fread($fp, 8096); echo "result is <BR>"; echo "$result <BR>";

    I get back and empty result string ...

    Any more hints?

    Jc

    attached mail follows:


    No, there is no such value as far as I know, you may try `/path/prog $arg < somefile`, but I doubt it will be different. What prog is it anyway. If it is passwd, I know this behaves somewhat different, but I think there is still some workaround, you should as at a linux list.

    Jean-Christian Imbeault wrote:

    > > Marek Kilimajer wrote: > >> $result = `echo | /path/prog $arg`; >> >> should work > > > That didn' work ... don't know why. > > Isn't there a way to say echo "EOF"? > > There must be a way to specify the ascii or hex value for EOF in an > echo statement no? > > Jc > >

    attached mail follows:


    Marek Kilimajer wrote: > > What prog is it anyway.

    It is a credit card processing program. It is interactive. You can it, type values in hit return, then ctrl-D and it spits out a status code.

    If I put all the values in a file I can get the prog to work by doing:

    #./prog < filename

    It does not take any command line arguments. So I cannot just do "exec prog $args" since the "args" have to be typed in, one value per line (i.e hit return between values) and then on the last line ctrl-D ...

    Can anyone think of a way I can get PHP to do this short of writing to a file and the doing "exec 'prog < file_I_wrote'"??

    Jc

    attached mail follows:


    I'm at wits end ... I've tried everything from system(), shell_exec(), bacticks, popen() and still no go ...

    I even tried writing the data to file first and then doing a system("./prog 2>&1 < ./datafile") and that didn't work either.

    I know that it shoudl work b/c if from the command line I issue the same command (using the file created by PHP) it works fine.

    Can anyone offer advice on why I can't get PHP to execute this external program?

    Thanks!

    Jc

    attached mail follows:


    I would suggest you have a look at:

    http://expect.nist.gov/

    Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: timhitcho.com.au

    > -----Original Message----- > From: Jean-Christian Imbeault [mailto:jcmega-bucks.co.jp] > Sent: Wednesday, 8 January 2003 8:24 PM > To: php-generallists.php.net > Subject: [PHP] Re: EOF: how to generate one in a string > > > I'm at wits end ... I've tried everything from system(), > shell_exec(), > bacticks, popen() and still no go ... > > I even tried writing the data to file first and then doing a > system("./prog 2>&1 < ./datafile") and that didn't work either. > > I know that it shoudl work b/c if from the command line I > issue the same > command (using the file created by PHP) it works fine. > > Can anyone offer advice on why I can't get PHP to execute > this external > program? > > Thanks! > > Jc > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    On Wednesday 08 January 2003 17:28, Jean-Christian Imbeault wrote: > Marek Kilimajer wrote: > > $result = `echo | /path/prog $arg`; > > > > should work > > That didn' work ... don't know why. > > Isn't there a way to say echo "EOF"? > > There must be a way to specify the ascii or hex value for EOF in an echo > statement no?

    Yes. man echo.

    -- 
    Jason Wong -> Gremlins Associates -> www.gremlins.biz
    Open Source Software Systems Integrators
    * Web Design & Hosting * Internet & Intranet Applications Development *
    

    /* Patches benefit all mankind. Products benefit the vendor.

    - Richard Gooch on linux-kernel */

    attached mail follows:


    Ok, found the problem. The external program I was trying to run is only happy is it is called from the same directory as the one it resides in. I guess it needs to access files in it's directory and by calling from php somehow it gets confused as to where to files are.

    Thanks to everyone for their patience and help!

    Jc

    attached mail follows:


    What about transactions ? In all the discussion noone points that PostgreSQL uses them. Maybe noone uses transactions so they have no matter.

    -- 
    Krzysztof Dziekiewicz
    

    attached mail follows:


    > Here is where I'm running into some problems. I need the file listing to be > sorted as if I were performing an 'ls -lt' listing on the server itself.

    I do not think opendir() or readdir() quarantees any sort. You where lucky rather you got dirs in the time order. You should use filemtime() or something like this to sort dirs.

    -- 
    Krzysztof Dziekiewicz
    

    attached mail follows:


    Hello,

    I've just installed PHP 4.3.0. The 4.0.6 was installed before. With the new version, in safe mode, the 'file_exists' function produce this warning:

    Warning: file_exists() [function.file-exists]: SAFE MODE Restriction in effect. The script whose uid is 302 is not allowed to access /full/path/to/file.gif owned by uid 301 in /full/path/to/script.php on line 12

    I did not have this problem with version 4.0.6.

    Please help me!

    Thank you,

    Emmanuel.

    attached mail follows:


    Have you checked your php.ini for a safe mode setting to true/on ??

    Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: timhitcho.com.au

    > -----Original Message----- > From: Emmanuel.Leguy [mailto:Emmanuel.Leguylifl.fr] > Sent: Wednesday, 8 January 2003 7:49 PM > To: php-generallists.php.net > Subject: [PHP] uid checked by file_exists() > > > Hello, > > I've just installed PHP 4.3.0. The 4.0.6 was installed > before. With the > new version, in safe mode, the 'file_exists' function produce > this warning: > > Warning: file_exists() [function.file-exists]: SAFE MODE > Restriction in > effect. The script whose uid is 302 is not allowed to access > /full/path/to/file.gif owned by uid 301 in > /full/path/to/script.php on > line 12 > > I did not have this problem with version 4.0.6. > > Please help me! > > Thank you, > > > Emmanuel. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    Timothy Hitchens ) wrote: > Have you checked your php.ini for a safe mode setting to true/on ?? > >

    Of course yes. I tried to use the safe_mode_gid directive too. Without any effect.

    Thanx,

    Emmanuel.

    attached mail follows:


    Hello

    I try to install php 4.3.0 on FreeBSD 5.0 RC2

    Please help

    Alexander Rijnbeek

    -su-2.05b# make /bin/sh libtool --silent --mode=compile gcc -Iext/zlib/ -I/usr/local/src/php4/php-4.3.0/ext/zlib/ -DPHP_ATOM_INC -I /usr/local/src/php4/php-4.3.0/include -I/usr/local/src/php4/php-4.3.0/main - I/usr/local/src/php4/php-4.3.0 -I/usr/local/src/php4/php-4.3.0/Zend -I/usr/l ocal/include -I/usr/local/include/libxml2 -I/usr/local/include/mysql -I/usr/ local/include/pspell -DMOD_SSL=208112 -DMOD_PERL -DUSE_PERL_SSI -DAPPLLIB_E XP="/usr/local/lib/perl5/5.6.1/BSDPAN" -DEAPI -DAPPLLIB_EXP=/usr/local/lib/p erl5/5.6.1/BSDPAN -I/usr/local/src/php4/php-4.3.0/TSRM -g -O2 -prefer-pic -c /usr/local/src/php4/php-4.3.0/ext/zlib/zlib.c -o ext/zlib/zlib.lo In file included from /usr/local/src/php4/php-4.3.0/main/php.h:360, from /usr/local/src/php4/php-4.3.0/ext/zlib/zlib.c:28: /usr/local/src/php4/php-4.3.0/TSRM/tsrm_virtual_cwd.h:159: warning: `struct utimbuf' declared inside parameter list /usr/local/src/php4/php-4.3.0/TSRM/tsrm_virtual_cwd.h:159: warning: its scope is only this definition or declaration, which is probably not what you want In file included from /usr/local/src/php4/php-4.3.0/ext/standard/php_standard.h:23, from /usr/local/src/php4/php-4.3.0/ext/zlib/zlib.c:48: /usr/local/src/php4/php-4.3.0/ext/standard/php_string.h: In function `php_memnstr': /usr/local/src/php4/php-4.3.0/ext/standard/php_string.h:142: warning: assignment makes pointer from integer without a cast In file included from /usr/local/src/php4/php-4.3.0/ext/standard/fsock.h:38, from /usr/local/src/php4/php-4.3.0/ext/standard/php_standard.h:44, from /usr/local/src/php4/php-4.3.0/ext/zlib/zlib.c:48: /usr/local/src/php4/php-4.3.0/main/php_network.h: At top level: /usr/local/src/php4/php-4.3.0/main/php_network.h:113: syntax error before "socklen_t" /usr/local/src/php4/php-4.3.0/main/php_network.h:113: warning: `struct sockaddr' declared inside parameter list In file included from /usr/local/src/php4/php-4.3.0/ext/standard/php_standard.h:44, from /usr/local/src/php4/php-4.3.0/ext/zlib/zlib.c:48: /usr/local/src/php4/php-4.3.0/ext/standard/fsock.h:43: warning: `struct in_addr' declared inside parameter list *** Error code 1

    Stop in /usr/local/src/php4/php-4.3.0.

    attached mail follows:


    Hi folks,

    I've seen a lot phpinfo() on different platforms, different PHP versions with different web servers. Always the content of $_SERVER is different. i.e PHP4.3.0 on win32 with Apache2 doesn't show PATH_TRANSLATED and HTTP_REFERER. someone knows how to get a consitent content of $_SERVER? Or where and how can I configure my system to see the above?

    thanks in advance

    Fritz

    attached mail follows:


    You did not see HTTP_REFERER likely because there was none

    Fritzek wrote:

    >Hi folks, > >I've seen a lot phpinfo() on different platforms, different PHP versions >with different web servers. >Always the content of $_SERVER is different. i.e PHP4.3.0 on win32 with >Apache2 doesn't >show PATH_TRANSLATED and HTTP_REFERER. >someone knows how to get a consitent content of $_SERVER? Or where and how >can I configure my >system to see the above? > >thanks in advance > >Fritz > > > > >

    attached mail follows:


    On Wednesday 08 January 2003 19:00, Fritzek wrote: > Hi folks, > > I've seen a lot phpinfo() on different platforms, different PHP versions > with different web servers. > Always the content of $_SERVER is different. i.e PHP4.3.0 on win32 with > Apache2 doesn't > show PATH_TRANSLATED and HTTP_REFERER. > someone knows how to get a consitent content of $_SERVER? Or where and how > can I configure my > system to see the above?

    The contents of $_SERVER is provided by the webserver and hence the differences between versions and platforms. There's nothing that you can do about it.

    -- 
    Jason Wong -> Gremlins Associates -> www.gremlins.biz
    Open Source Software Systems Integrators
    * Web Design & Hosting * Internet & Intranet Applications Development *
    

    /* Pardon me, but do you know what it means to be TRULY ONE with your BOOTH! */

    attached mail follows:


    Hmmm. What does it mean? Is PHP deciding at runtime which variable in $_SERVER have to be filled? PATH_TRANSLATED should always be filled because you always have a path where your script is located. Also HTTP_REFERER because in easiest case you refering on the same script at localhost (I guess).

    "Marek Kilimajer" <kilimajerwebglobe.sk> schrieb im Newsbeitrag news:3E1C0093.1010100webglobe.sk... > You did not see HTTP_REFERER likely because there was none > > > Fritzek wrote: > > >Hi folks, > > > >I've seen a lot phpinfo() on different platforms, different PHP versions > >with different web servers. > >Always the content of $_SERVER is different. i.e PHP4.3.0 on win32 with > >Apache2 doesn't > >show PATH_TRANSLATED and HTTP_REFERER. > >someone knows how to get a consitent content of $_SERVER? Or where and how > >can I configure my > >system to see the above? > > > >thanks in advance > > > >Fritz > > > > > > > > > > >

    attached mail follows:


    but there must be a way which causes differences. I've searched the net and found a page which shows phpinfo(); and this was the same versions of php, webserver and os and the PATH_TRANSLATED was setted, but not on my server.

    "Jason Wong" <php-generalgremlins.biz> schrieb im Newsbeitrag news:200301081848.21692.php-generalgremlins.biz... > On Wednesday 08 January 2003 19:00, Fritzek wrote: > > Hi folks, > > > > I've seen a lot phpinfo() on different platforms, different PHP versions > > with different web servers. > > Always the content of $_SERVER is different. i.e PHP4.3.0 on win32 with > > Apache2 doesn't > > show PATH_TRANSLATED and HTTP_REFERER. > > someone knows how to get a consitent content of $_SERVER? Or where and how > > can I configure my > > system to see the above? > > The contents of $_SERVER is provided by the webserver and hence the > differences between versions and platforms. There's nothing that you can do > about it. > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.biz > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > > /* > Pardon me, but do you know what it means to be TRULY ONE with your BOOTH! > */ >

    attached mail follows:


    Fritzek wrote:

    >Hmmm. What does it mean? Is PHP deciding at runtime which variable in >$_SERVER have to be filled? >PATH_TRANSLATED should always be filled because you always have a path where >your script is located. >Also HTTP_REFERER because in easiest case you refering on the same script at >localhost (I guess). > > referer is set only if you get to the page by clicking a link or submiting a form (if the browser is not set up to do different). so it is not set if you select the page from a bookmark or write it directly to location bar.

    > > > > > > >

    attached mail follows:


    At 12:00 PM 1/8/03 +0100, Fritzek wrote: >Hi folks, > >I've seen a lot phpinfo() on different platforms, different PHP versions >with different web servers. Always the content of $_SERVER is different. >i.e PHP4.3.0 on win32 with Apache2 doesn't show PATH_TRANSLATED and >HTTP_REFERER. >someone knows how to get a consitent content of $_SERVER? Or where and how >can I configure my system to see the above?

    There isn't anything PHP can do about this, all it can do is return what the server sends. Browsers, firewalls and proxies can all decide to hide information from you.

    Rick