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: Thu Oct 31 2002 - 00:15:29 CST

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

    php-general Digest 31 Oct 2002 06:15:29 -0000 Issue 1676

    Topics (messages 122077 through 122197):

    Dazed and Confused
            122077 by: PHP List
            122079 by: Rasmus Lerdorf
            122080 by: . Edwin
            122083 by: PHP List
            122086 by: Rasmus Lerdorf
            122088 by: Philip Hallstrom
            122089 by: Rasmus Lerdorf
            122092 by: PHP List
            122104 by: Paul Nicholson
            122109 by: Paul Nicholson

    Re: XML and XLS Sablotron
            122078 by: Geoff Hankerson
            122082 by: Daniele Baroncelli

    Re: HTML Post
            122081 by: Drew Kime
            122118 by: Rick Emery

    Php web hosting
            122084 by: Steve Jackson
            122085 by: Liam.Gibbs.dfait-maeci.gc.ca
            122130 by: Rick Emery
            122132 by: Edward Peloke
            122192 by: John Nichel

    Re: session vs. header
            122087 by: Jonathan Sharp

    Re: Problem about pear]
            122090 by: EdwardSPL.ita.org.mo
            122093 by: Jonathan Sharp
            122184 by: EdwardSPL.ita.org.mo
            122189 by: EdwardSPL.ita.org.mo

    Looking for good ZIP Code / Latitude / Longitude table
            122091 by: Michael Zornek
            122099 by: Manuel Lemos
            122119 by: Jimmy Brake
            122123 by: Manuel Lemos
            122137 by: Michael Zornek
            122187 by: Peter J. Schoenster

    parse error
            122094 by: Andres, Cyrille
            122095 by: Jonathan Sharp
            122096 by: Andres, Cyrille
            122097 by: Marek Kilimajer
            122098 by: 1LT John W. Holmes
            122106 by: Andres, Cyrille

    Secure PHP Form
            122100 by: Pushpinder Singh Garcha
            122101 by: 1LT John W. Holmes
            122144 by: Nick Eby

    Variable over url
            122102 by: Manuel Jenne
            122103 by: Sascha Cunz
            122125 by: CJ
            122133 by: Philip Olson
            122170 by: Chris Shiflett
            122172 by: Leif K-Brooks

    Multiple Addresses Mailer
            122105 by: Pushpinder Singh Garcha
            122124 by: Manuel Lemos
            122129 by: Rick Emery
            122191 by: olinux
            122194 by: Manuel Lemos

    Capitalizing names etc. part II - found a solution
            122107 by: -<[ Rene Brehmer ]>-
            122108 by: 1LT John W. Holmes

    Strange intermittant errors
            122110 by: Peter Gordon
            122114 by: 1LT John W. Holmes
            122116 by: Peter Gordon
            122120 by: Peter Gordon
            122121 by: 1LT John W. Holmes
            122126 by: Peter Gordon
            122136 by: Jason Wong

    Include: Warning: Failed opening
            122111 by: Tim Kucejko
            122113 by: 1LT John W. Holmes

    Re: How to prevent failure email from being sent?
            122112 by: Jason Wong

    CSS pulls me back in
            122115 by: Liam.Gibbs.dfait-maeci.gc.ca
            122143 by: Nick Eby

    mysql question
            122117 by: scott
            122128 by: 1LT John W. Holmes

    How to find future date?
            122122 by: ppf
            122127 by: 1LT John W. Holmes
            122134 by: Jason Wong
            122139 by: ppf
            122140 by: scott
            122158 by: 1LT John W. Holmes

    Re: File Upload Problem
            122131 by: David Freeman

    File Upload - Dwindling connection
            122135 by: Andre Dubuc

    convert int to string
            122138 by: Jef
            122141 by: Philip Olson

    Re: Free compiler for Win
            122142 by: R B
            122159 by: Stuart
            122160 by: R B

    Re: POST-ing or GET-ing an array
            122145 by: rija

    Re: Looking for good ZIP Code / Latitude / Longitude
            122146 by: Manuel Lemos

    newbie question: need a script
            122147 by: Ikke

    geting date after x number of days
            122148 by: Peter Houchin
            122157 by: 1LT John W. Holmes
            122161 by: Peter Houchin

    Re: Yet another question
            122149 by: Trasca Ion-Catalin
            122150 by: Peter Houchin

    Processing current file
            122151 by: Charles Wiltgen

    infinate loops
            122152 by: Chris Knipe
            122154 by: Chris Knipe

    Jump Menu
            122153 by: Trasca Ion-Catalin

    paper size print problem
            122155 by: R B

    Re: headers and cookies
            122156 by: rolf vreijdenberger

    Re: Decimal Places
            122162 by: dwalker

    Re: Displaying one of three functions.
            122163 by: dwalker

    Re: Mutiple header statements?
            122164 by: dwalker
            122165 by: dwalker

    Comma Delimited File and see results in PHP
            122166 by: benc.cox.net
            122167 by: Timothy Hitchens (HiTCHO)

    XML to MS Word
            122168 by: Maxim Maletsky
            122169 by: Justin French
            122171 by: Manuel Lemos
            122173 by: incoming
            122174 by: Maxim Maletsky
            122176 by: Maxim Maletsky
            122179 by: Maxim Maletsky
            122182 by: 1LT John W. Holmes
            122183 by: 1LT John W. Holmes
            122185 by: Manuel Lemos

    stupid me!!
            122175 by: Peter Houchin
            122177 by: Chris Kay
            122178 by: Leif K-Brooks
            122180 by: Timothy Hitchens (HiTCHO)
            122181 by: Peter Houchin

    Re: File Random Access
            122186 by: David Robley
            122190 by: Mark Charette

    About IMP 3.1 under Redhat 7.2
            122188 by: EdwardSPL.ita.org.mo

    Plug-in strategies?
            122193 by: Charles Wiltgen
            122195 by: Manuel Lemos

    a new XML Parser!
            122196 by: Khalid El-Kary
            122197 by: Manuel Lemos

    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:


    For some reason my brain is not operating within normal parameters this week.

    $myarray["test"] = "sd";
    echo $myarray[0];

    Why will nothing echo? Do I somehow have to initialize indexing on the array $myarray?
    php says that $myarray is an array, but I can't access it with numeric indexes.

    I know if I do this:
    $myarray = array("test"=>"sd");
    that I can now echo $myarray[0] and get the value of sd returned.
     

    attached mail follows:


    Because you haven't put anything in array index 0. The only array index
    that has anything is "test". There is no difference between numeric and
    string indices. You seem to be assuming that somehow the first element in
    an array can always be accessed as index 0 which is not the case and never
    has been.

    -Rasmus

    On Wed, 30 Oct 2002, PHP List wrote:

    > For some reason my brain is not operating within normal parameters this week.
    >
    > $myarray["test"] = "sd";
    > echo $myarray[0];
    >
    > Why will nothing echo? Do I somehow have to initialize indexing on the array $myarray?
    > php says that $myarray is an array, but I can't access it with numeric indexes.
    >
    > I know if I do this:
    > $myarray = array("test"=>"sd");
    > that I can now echo $myarray[0] and get the value of sd returned.
    >
    >

    attached mail follows:


    Hello,

    "PHP List" <php_listibcnetwork.net> wrote:

    > For some reason my brain is not operating within normal parameters
    > this week.
    >
    > $myarray["test"] = "sd";
    > echo $myarray[0];
    >
    > Why will nothing echo? Do I somehow have to initialize indexing on
    > the array $myarray?
    > php says that $myarray is an array, but I can't access it with numeric
    > indexes.

    That's because your $myarray was set using strings...

    > I know if I do this:
    > $myarray = array("test"=>"sd");
    > that I can now echo $myarray[0] and get the value of sd returned.
     
    Are you sure? Try it :)

    - E

    attached mail follows:


    So are you saying there really is no array pointer?
    Lets say I have an array with several different values like:
    $myarray["a"] = "s";
    $myarray[3] = "d";
    $myarray["sdf"] = "y";
    There is no way of saying give me the value in the array at position 2?
    Since the size of the array is returned as 3, should there not be a way of
    doing this?

    Like I said, I seem to be blanking on arrays.

    > Because you haven't put anything in array index 0. The only array index
    > that has anything is "test". There is no difference between numeric and
    > string indices. You seem to be assuming that somehow the first element in
    > an array can always be accessed as index 0 which is not the case and never
    > has been.
    >
    > -Rasmus
    >
    > On Wed, 30 Oct 2002, PHP List wrote:
    >
    > > For some reason my brain is not operating within normal parameters this
    week.
    > >
    > > $myarray["test"] = "sd";
    > > echo $myarray[0];
    > >
    > > Why will nothing echo? Do I somehow have to initialize indexing on the
    array $myarray?
    > > php says that $myarray is an array, but I can't access it with numeric
    indexes.
    > >
    > > I know if I do this:
    > > $myarray = array("test"=>"sd");
    > > that I can now echo $myarray[0] and get the value of sd returned.
    > >
    > >
    >

    attached mail follows:


    On Wed, 30 Oct 2002, PHP List wrote:

    > So are you saying there really is no array pointer?
    > Lets say I have an array with several different values like:
    > $myarray["a"] = "s";
    > $myarray[3] = "d";
    > $myarray["sdf"] = "y";
    > There is no way of saying give me the value in the array at position 2?
    > Since the size of the array is returned as 3, should there not be a way of
    > doing this?

    There is an array pointer. It is manipulated using the various iteration
    functions. reset($myarray); echo next($myarray); would give you the value
    at the second position.

    -Rasmus

    attached mail follows:


    Yes... for the most part... think about it this way... (and please correct
    me if I'm wrong :)

    An associative array isn't ordered. It's key based. Think of it like a
    dictionary, but one whose first and last several pages have been removed.
    You wouldn't have any way of telling me the definition for the 100th word
    since you don't know. But you can tell me the definition of "foo" is by
    looking it up directly.

    And you're not guaranteed anything about their order since, well, they
    don't have any order :) I know that in PHP you can do:

    $ary["y"] = "two";
    $ary["x"] = "one";
    print_r($ary);

    and you'll get back:

    Array
    (
        [y] => two
        [x] => one
    )

    but you're not *guaranteed* to get it back in the same order you supplied
    it. It just happens that you do in PHP. Back when I used Perl you
    wouldn't necessarily get the same order repeatedly.

    hope this helps.

    On Wed, 30 Oct 2002, PHP List wrote:

    > So are you saying there really is no array pointer?
    > Lets say I have an array with several different values like:
    > $myarray["a"] = "s";
    > $myarray[3] = "d";
    > $myarray["sdf"] = "y";
    > There is no way of saying give me the value in the array at position 2?
    > Since the size of the array is returned as 3, should there not be a way of
    > doing this?
    >
    > Like I said, I seem to be blanking on arrays.
    >
    > > Because you haven't put anything in array index 0. The only array index
    > > that has anything is "test". There is no difference between numeric and
    > > string indices. You seem to be assuming that somehow the first element in
    > > an array can always be accessed as index 0 which is not the case and never
    > > has been.
    > >
    > > -Rasmus
    > >
    > > On Wed, 30 Oct 2002, PHP List wrote:
    > >
    > > > For some reason my brain is not operating within normal parameters this
    > week.
    > > >
    > > > $myarray["test"] = "sd";
    > > > echo $myarray[0];
    > > >
    > > > Why will nothing echo? Do I somehow have to initialize indexing on the
    > array $myarray?
    > > > php says that $myarray is an array, but I can't access it with numeric
    > indexes.
    > > >
    > > > I know if I do this:
    > > > $myarray = array("test"=>"sd");
    > > > that I can now echo $myarray[0] and get the value of sd returned.
    > > >
    > > >
    > >
    >
    >
    > --
    > PHP General Mailing List (http://www.php.net/)
    > To unsubscribe, visit: http://www.php.net/unsub.php
    >

    attached mail follows:


    While that is a good way to approach arrays, you are actually guaranteed
    to get the array back in the order you added the elements in PHP.

    -Rasmus

    On Wed, 30 Oct 2002, Philip Hallstrom wrote:

    > Yes... for the most part... think about it this way... (and please correct
    > me if I'm wrong :)
    >
    > An associative array isn't ordered. It's key based. Think of it like a
    > dictionary, but one whose first and last several pages have been removed.
    > You wouldn't have any way of telling me the definition for the 100th word
    > since you don't know. But you can tell me the definition of "foo" is by
    > looking it up directly.
    >
    > And you're not guaranteed anything about their order since, well, they
    > don't have any order :) I know that in PHP you can do:
    >
    > $ary["y"] = "two";
    > $ary["x"] = "one";
    > print_r($ary);
    >
    > and you'll get back:
    >
    > Array
    > (
    > [y] => two
    > [x] => one
    > )
    >
    > but you're not *guaranteed* to get it back in the same order you supplied
    > it. It just happens that you do in PHP. Back when I used Perl you
    > wouldn't necessarily get the same order repeatedly.
    >
    > hope this helps.
    >
    > On Wed, 30 Oct 2002, PHP List wrote:
    >
    > > So are you saying there really is no array pointer?
    > > Lets say I have an array with several different values like:
    > > $myarray["a"] = "s";
    > > $myarray[3] = "d";
    > > $myarray["sdf"] = "y";
    > > There is no way of saying give me the value in the array at position 2?
    > > Since the size of the array is returned as 3, should there not be a way of
    > > doing this?
    > >
    > > Like I said, I seem to be blanking on arrays.
    > >
    > > > Because you haven't put anything in array index 0. The only array index
    > > > that has anything is "test". There is no difference between numeric and
    > > > string indices. You seem to be assuming that somehow the first element in
    > > > an array can always be accessed as index 0 which is not the case and never
    > > > has been.
    > > >
    > > > -Rasmus
    > > >
    > > > On Wed, 30 Oct 2002, PHP List wrote:
    > > >
    > > > > For some reason my brain is not operating within normal parameters this
    > > week.
    > > > >
    > > > > $myarray["test"] = "sd";
    > > > > echo $myarray[0];
    > > > >
    > > > > Why will nothing echo? Do I somehow have to initialize indexing on the
    > > array $myarray?
    > > > > php says that $myarray is an array, but I can't access it with numeric
    > > indexes.
    > > > >
    > > > > I know if I do this:
    > > > > $myarray = array("test"=>"sd");
    > > > > that I can now echo $myarray[0] and get the value of sd returned.
    > > > >
    > > > >
    > > >
    > >
    > >
    > > --
    > > PHP General Mailing List (http://www.php.net/)
    > > To unsubscribe, visit: http://www.php.net/unsub.php
    > >
    >

    attached mail follows:


    I think the fog is starting to clear, thanks for the help.

    I do have one more question:
    If I want to use array_walk in a class, how do I refer to a function in that
    class?

    Class MyClass
    {
        .
        .
        .
        function DoArrayStuff(&$item1, $key, $nMode)
        {
                echo $item1;
        }
        function SomeOtherFunction
        {
            .
            .
            $myarray already filled with, say, 5 items;
            array_walk($myarray,'DoArrayStuff',1); <--- PHP error:
    DoArrayStuff() - function does not exist in . . .

            I have tried 'MyClass::DoArrayStuff', 'this->DoArrayStuff',
    '$this->DoArrayStuff' but none work.
            The only way I can seem to use DoArraySuff is to define the funcion
    seperate(outside) from the class, which seems kind of odd since the only
    time the function is needed is internally by this class.
        }

    }

    attached mail follows:


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

    try(untested): array_walk($myarray, array($this, 'DoArrayStuff'),1);
    HTH!
    ~Paul

    On Wednesday 30 October 2002 02:08 pm, PHP List wrote:
    > I think the fog is starting to clear, thanks for the help.
    >
    > I do have one more question:
    > If I want to use array_walk in a class, how do I refer to a function in
    > that class?
    >
    > Class MyClass
    > {
    > .
    > .
    > .
    > function DoArrayStuff(&$item1, $key, $nMode)
    > {
    > echo $item1;
    > }
    > function SomeOtherFunction
    > {
    > .
    > .
    > $myarray already filled with, say, 5 items;
    > array_walk($myarray,'DoArrayStuff',1); <--- PHP error:
    > DoArrayStuff() - function does not exist in . . .
    >
    > I have tried 'MyClass::DoArrayStuff', 'this->DoArrayStuff',
    > '$this->DoArrayStuff' but none work.
    > The only way I can seem to use DoArraySuff is to define the funcion
    > seperate(outside) from the class, which seems kind of odd since the only
    > time the function is needed is internally by this class.
    > }
    >
    > }

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

    "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

    iD8DBQE9wDVJDyXNIUN3+UQRAhsMAJwMSyZKC6wFXRNskGuFyFlBQmLTiACglapX
    ALnKP+nU3K6P51VcHC0egAI=
    =MGMU
    -----END PGP SIGNATURE-----

    attached mail follows:


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

    oops....forgot the &.
    array_walk($myarray, array(&$this, 'DoArrayStuff'),1);

    On Wednesday 30 October 2002 02:38 pm, Paul Nicholson wrote:
    > try(untested): array_walk($myarray, array($this, 'DoArrayStuff'),1);
    > HTH!
    > ~Paul
    >
    > On Wednesday 30 October 2002 02:08 pm, PHP List wrote:
    > > I think the fog is starting to clear, thanks for the help.
    > >
    > > I do have one more question:
    > > If I want to use array_walk in a class, how do I refer to a function in
    > > that class?
    > >
    > > Class MyClass
    > > {
    > > .
    > > .
    > > .
    > > function DoArrayStuff(&$item1, $key, $nMode)
    > > {
    > > echo $item1;
    > > }
    > > function SomeOtherFunction
    > > {
    > > .
    > > .
    > > $myarray already filled with, say, 5 items;
    > > array_walk($myarray,'DoArrayStuff',1); <--- PHP error:
    > > DoArrayStuff() - function does not exist in . . .
    > >
    > > I have tried 'MyClass::DoArrayStuff', 'this->DoArrayStuff',
    > > '$this->DoArrayStuff' but none work.
    > > The only way I can seem to use DoArraySuff is to define the
    > > funcion seperate(outside) from the class, which seems kind of odd since
    > > the only time the function is needed is internally by this class.
    > > }
    > >
    > > }

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

    "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

    iD8DBQE9wDlTDyXNIUN3+UQRAtztAJsEDcpul5+59W4SBkix48bjjPQ/dQCgmtnk
    rt2kPQqufaW1yoFDrizoHeQ=
    =cBGo
    -----END PGP SIGNATURE-----

    attached mail follows:


    Basically SAX and DOM are for parsing xml and xslt is for transforming
    xml into html, svg, wml, pdf and the like. So it sounds like you want to
    use xslt.

    Daniele Baroncelli wrote:

    >Dear all,
    >
    >I am just approaching to XML and I would need some explanation, which most
    >of you will probably consider very trivial.
    >
    >I have read about the XLS Sablotron functions, which are able to apply XLS
    >stylesheets to an XML document.
    >
    >My question is: if my aim is to apply to an XML document an XLS stylesheet
    >server-side (being able in this way to avoid browsers incompatibilies) with
    >PHP, which could it be my need to use SAX or DOM parsers?
    >
    >Could XLS Sablotron be seen as an alternative to SAX or DOM, or does in some
    >ways rely on these technologies?
    >
    >Really thanks to whom will be able to clarify me on this.
    >
    >Daniele
    >
    >
    >

    attached mail follows:


    > You'll need the SAX or DOM functions if you will be /generating/ your
    > XML.

    I suppose, you mean, generating XML from another XML document, am I right?

    > The Sablotron extension (and other XSLT processors) take XML and
    > XSLT and output whatever your XSLT tells it to. The XSLT processor
    > depends on getting well-formed XML and XSLT and that's where the DOM
    > functions come in.
    >
    > Technically, you could use the DOM functions to build an XML document,
    > use them to build an XSLT stylesheet and then send those two generated
    > items through the XSLT processor to build HTML.

    So, if I well understood, in case you simply want to manually write XML
    documents and XSLT stylesheets, and then have the PHP (Sablotron in the
    specific) to make the produce your HTML from it, you don't need SAX or DOM.
    Is this correct, or am I missing something?

    Does this mean that you only need SAX or DOM if you want to convert an XML
    format to another XML format?

    Really thanks

    Daniele

    attached mail follows:


    I used a similar script and had the same problem I'm having with yours.
      The first few lines returned in the '$response' variable are the
    headers from the POST operation. When I get to the 'print' command at
    the end I get the headers generated by my server, then the headers
    retrieved from the POST operation are displayed on the page.

    Is this because of how I have my server configured? Or is there some
    run-tim way to tell the server to *not* generate headers, but simply
    send the specified text (including the headers) to the browser?

    Drew Kime

    attached mail follows:


    On return, just cut out the part you don't need; PHP's string functions take care of this
    nicely

    ----- Original Message -----
    From: "Drew Kime" <drewk98yahoo.com>
    To: <php-generallists.php.net>
    Sent: Wednesday, October 30, 2002 12:22 PM
    Subject: Re: [PHP] HTML Post

    I used a similar script and had the same problem I'm having with yours.
      The first few lines returned in the '$response' variable are the
    headers from the POST operation. When I get to the 'print' command at
    the end I get the headers generated by my server, then the headers
    retrieved from the POST operation are displayed on the page.

    Is this because of how I have my server configured? Or is there some
    run-tim way to tell the server to *not* generate headers, but simply
    send the specified text (including the headers) to the browser?

    Drew Kime

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

    attached mail follows:


    Anyone like to recommend a good host with good uptime for a high traffic site? The host would need excellent technical support as well as be feature rich (Multiple MySQL database support/listserver/SSL support etc.)

    I have been trying out phpwebhosting.com and they seem very good but I am not happy with their technical support which is very slow response time. We are based in Europe and they are in the US which might lead to problems as they haven't answered any of our queries. Saying that they have a good automated process in place which is easy to use.

    Anyone out there have high volume sites with a feature rich hosting solution?

    Any examples of Phpwebhosting welcomed as well.

    regards steve.

    attached mail follows:


    >Anyone out there have high volume sites with a feature rich hosting solution?

    I'd be interested, too, but especially in the free ones.

    attached mail follows:


    www.nomonthlyfees.com 600 megs space 6 gig bandwidth 5 mysql databases unlimited email addresses ssl ssh $200 for first year; $70 per year thereafter. Fee includes domain registration

    Fast tech support turnaround

    ----- Original Message ----- From: "Steve Jackson" <stevewebpage.co.uk> To: "Php-General" <php-generallists.php.net> Sent: Wednesday, October 30, 2002 12:36 PM Subject: [PHP] Php web hosting

    Anyone like to recommend a good host with good uptime for a high traffic site? The host would need excellent technical support as well as be feature rich (Multiple MySQL database support/listserver/SSL support etc.)

    I have been trying out phpwebhosting.com and they seem very good but I am not happy with their technical support which is very slow response time. We are based in Europe and they are in the US which might lead to problems as they haven't answered any of our queries. Saying that they have a good automated process in place which is easy to use.

    Anyone out there have high volume sites with a feature rich hosting solution?

    Any examples of Phpwebhosting welcomed as well.

    regards steve.

    attached mail follows:


    I am using

    www.ht-tech.net for my php/mysql site.

    Great guy and very knowledgeable, he offers a lot of monitoring services.

    Eddie

    -----Original Message----- From: Rick Emery [mailto:remeryemeryloftus.com] Sent: Wednesday, October 30, 2002 3:51 PM To: Php-General Subject: Re: [PHP] Php web hosting

    www.nomonthlyfees.com 600 megs space 6 gig bandwidth 5 mysql databases unlimited email addresses ssl ssh $200 for first year; $70 per year thereafter. Fee includes domain registration

    Fast tech support turnaround

    ----- Original Message ----- From: "Steve Jackson" <stevewebpage.co.uk> To: "Php-General" <php-generallists.php.net> Sent: Wednesday, October 30, 2002 12:36 PM Subject: [PHP] Php web hosting

    Anyone like to recommend a good host with good uptime for a high traffic site? The host would need excellent technical support as well as be feature rich (Multiple MySQL database support/listserver/SSL support etc.)

    I have been trying out phpwebhosting.com and they seem very good but I am not happy with their technical support which is very slow response time. We are based in Europe and they are in the US which might lead to problems as they haven't answered any of our queries. Saying that they have a good automated process in place which is easy to use.

    Anyone out there have high volume sites with a feature rich hosting solution?

    Any examples of Phpwebhosting welcomed as well.

    regards steve.

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

    attached mail follows:


    Wow, that's not bad. About half of what I pay (the $200 for the first year part). Do you use them? I'm with www.jtlnet.com right now, and am satisfied with their service, but for that kind of money, I'd switch if I didn't have to sacrifice service. Their site claims that they're using PHP 4.04, do you know if this is correct? JTL is using 4.2.2, so I'd have to check if anything I'm using wouldn't work properly on 4.04. If you're using them, do you have a phpinfo link I can look at?

    http://www.by-tor.com/phpinfo.php

    Rick Emery wrote: > www.nomonthlyfees.com > 600 megs space > 6 gig bandwidth > 5 mysql databases > unlimited email addresses > ssl > ssh > $200 for first year; $70 per year thereafter. Fee includes domain registration > > Fast tech support turnaround > > ----- Original Message ----- > From: "Steve Jackson" <stevewebpage.co.uk> > To: "Php-General" <php-generallists.php.net> > Sent: Wednesday, October 30, 2002 12:36 PM > Subject: [PHP] Php web hosting > > > Anyone like to recommend a good host with good uptime for a high traffic > site? > The host would need excellent technical support as well as be feature rich > (Multiple MySQL database support/listserver/SSL support etc.) > > I have been trying out phpwebhosting.com and they seem very good but I am > not happy with their technical support which is very slow response time. We > are based in Europe and they are in the US which might lead to problems as > they haven't answered any of our queries. Saying that they have a good > automated process in place which is easy to use. > > Anyone out there have high volume sites with a feature rich hosting > solution? > > Any examples of Phpwebhosting welcomed as well. > > regards > steve. > > >

    attached mail follows:


    huge junk mail wrote: > Can someone tell me why I can't have > > $_SESSION['foo'] = 'content of foo'; > > following by > > header('Location: http://www.mysite.com'); > > Someone from www.php.net told me that it can confuse > browser (http://bugs.php.net/19991). But, still I > can't the idea why it can happen. Does register > session means sending a 'header: location' too?

    no, sessions never send location headers, they may send cookies but not location.

    -js

    > > Thanks. > > ===== > Regards, > > mahara > > __________________________________________________ > Do you Yahoo!? > Y! Web Hosting - Let the expert host your web site > http://webhosting.yahoo.com/ >

    attached mail follows:


    attached mail follows:


    Hello,

    My System is Redhat Linux 7.2... I can't to find where is the path of pear under the system... So, can you help me ?

    Thank a lots.

    Edward.

    attached mail follows:


    try: 'locate PEAR' if it doesn't show up do 'updatedb' then 'locate PEAR'

    mine is /usr/lib/php/PEAR (Gentoo)

    -js

    EdwardSPLita.org.mo wrote: > > ------------------------------------------------------------------------ > > Subject: > Problem about pear > From: > EdwardSPLita.org.mo > Date: > Thu, 31 Oct 2002 02:02:45 +0800 > To: > implists.horde.org > > > Hello, > > My System is Redhat Linux 7.2... > I can't to find where is the path of pear under the system... > So, can you help me ? > > Thank a lots. > > Edward. > > > > > > >

    attached mail follows:


    Hello,

    I just check my system... I found there is no "/usr/lib/php/PEAR"... So, what can I do about the problem ?

    BTW, are you using imp ( Webmail ) under Redhat 7.2 ?

    Thank a lots.

    Edward.

    Jonathan Sharp wrote:

    > try: > 'locate PEAR' if it doesn't show up do 'updatedb' then 'locate PEAR' > > mine is /usr/lib/php/PEAR (Gentoo) > > -js > > EdwardSPLita.org.mo wrote: > > > > ------------------------------------------------------------------------ > > > > Subject: > > Problem about pear > > From: > > EdwardSPLita.org.mo > > Date: > > Thu, 31 Oct 2002 02:02:45 +0800 > > To: > > implists.horde.org > > > > > > Hello, > > > > My System is Redhat Linux 7.2... > > I can't to find where is the path of pear under the system... > > So, can you help me ? > > > > Thank a lots. > > > > Edward. > > > > > > > > > > > > > >

    attached mail follows:


    Hello,

    After I do"'updatedb' then 'locate PEAR', I found there is "/usr/share/pear/PEAR"... BUT I found /etc/php.ini :

    ;;;;;;;;;;;;;;;;;;;;;;;;; ; Paths and Directories ; ;;;;;;;;;;;;;;;;;;;;;;;;;

    ; UNIX: "/path1:/path2" include_path = ".:/php/includes:/usr/share/php" ;

    I want to know why there is the mistake about the "php.ini" ? So, can you help me more ?

    Thank a lots.

    Edward.

    Jonathan Sharp wrote:

    > try: > 'locate PEAR' if it doesn't show up do 'updatedb' then 'locate PEAR' > > mine is /usr/lib/php/PEAR (Gentoo) > > -js > > EdwardSPLita.org.mo wrote: > > > > ------------------------------------------------------------------------ > > > > Subject: > > Problem about pear > > From: > > EdwardSPLita.org.mo > > Date: > > Thu, 31 Oct 2002 02:02:45 +0800 > > To: > > implists.horde.org > > > > > > Hello, > > > > My System is Redhat Linux 7.2... > > I can't to find where is the path of pear under the system... > > So, can you help me ? > > > > Thank a lots. > > > > Edward.

    attached mail follows:


    I've written a nice php/mysql site that let's you search for hospitals and community colleges by zip code. The search is built upon some math that figures out distances by a zip's lat and lon cords.

    My problem is that my current ZIP table (bout 42,000 rows) seems to be flawed. There are a ton of zip codes round california that have all the same lat and lons. There are other dups as well. So I'm looking for some new data.

    Does anyone know a good source for this type of info?

    Thanks, ~ Mike

    -- 
    http://www.mikezornek.com
    

    attached mail follows:


    Hello,

    On 10/30/2002 04:03 PM, Michael Zornek wrote: > I've written a nice php/mysql site that let's you search for hospitals and > community colleges by zip code. The search is built upon some math that > figures out distances by a zip's lat and lon cords. > > My problem is that my current ZIP table (bout 42,000 rows) seems to be > flawed. There are a ton of zip codes round california that have all the same > lat and lons. There are other dups as well. So I'm looking for some new > data. > > Does anyone know a good source for this type of info?

    This class may be used to figure the coordinates of a location given the IP address of a computer (the user computer):

    http://www.phpclasses.org/netgeoclass

    -- 
    

    Regards, Manuel Lemos

    attached mail follows:


    how much does the service cost?

    or am misunderstanding the class?

    why do you have to enter a password?

    On Wed, 2002-10-30 at 11:31, Manuel Lemos wrote: > Hello, > > On 10/30/2002 04:03 PM, Michael Zornek wrote: > > I've written a nice php/mysql site that let's you search for hospitals and > > community colleges by zip code. The search is built upon some math that > > figures out distances by a zip's lat and lon cords. > > > > My problem is that my current ZIP table (bout 42,000 rows) seems to be > > flawed. There are a ton of zip codes round california that have all the same > > lat and lons. There are other dups as well. So I'm looking for some new > > data. > > > > Does anyone know a good source for this type of info? > > This class may be used to figure the coordinates of a location given the > IP address of a computer (the user computer): > > http://www.phpclasses.org/netgeoclass > > > -- > > Regards, > Manuel Lemos > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

    attached mail follows:


    Hello,

    On 10/30/2002 05:49 PM, Jimmy Brake wrote: > how much does the service cost? > > or am misunderstanding the class? > > why do you have to enter a password?

    The access to the site is free. The authentication is necessary to acurately account the downloads and also to keep you upto date to the changes that are made to the class files (if you want of course).

    The class interfaces to the NetGeo service which is also free.

    There is nothing to worry you about any charges.

    -- 
    

    Regards, Manuel Lemos

    > On Wed, 2002-10-30 at 11:31, Manuel Lemos wrote: > >>Hello, >> >>On 10/30/2002 04:03 PM, Michael Zornek wrote: >> >>>I've written a nice php/mysql site that let's you search for hospitals and >>>community colleges by zip code. The search is built upon some math that >>>figures out distances by a zip's lat and lon cords. >>> >>>My problem is that my current ZIP table (bout 42,000 rows) seems to be >>>flawed. There are a ton of zip codes round california that have all the same >>>lat and lons. There are other dups as well. So I'm looking for some new >>>data. >>> >>>Does anyone know a good source for this type of info? >> >>This class may be used to figure the coordinates of a location given the >>IP address of a computer (the user computer): >> >>http://www.phpclasses.org/netgeoclass

    attached mail follows:


    On 10/30/02 2:31 PM, Manuel Lemos said:

    > On 10/30/2002 04:03 PM, Michael Zornek wrote: >> I've written a nice php/mysql site that let's you search for hospitals and >> community colleges by zip code. The search is built upon some math that >> figures out distances by a zip's lat and lon cords. >> >> My problem is that my current ZIP table (bout 42,000 rows) seems to be >> flawed. There are a ton of zip codes round california that have all the same >> lat and lons. There are other dups as well. So I'm looking for some new >> data. >> >> Does anyone know a good source for this type of info? > > This class may be used to figure the coordinates of a location given the > IP address of a computer (the user computer): > > http://www.phpclasses.org/netgeoclass

    I can't really use that class. I'm looking for a table of zip codes, with relating lat and lon cords. I already wrote the calculation code. That PHP class is reliant on a web service which I'm not interested in.

    Thanks anyways,

    ~ Mike

    -- 
    http://www.mikezornek.com
    

    attached mail follows:


    On 30 Oct 2002 at 17:11, Michael Zornek wrote:

    > I can't really use that class. I'm looking for a table of zip codes, > with relating lat and lon cords. I already wrote the calculation code. > That PHP class is reliant on a web service which I'm not interested in.

    Umm .. I bought such a database for a project I did.

    These people have what you want:

    http://zipinfo.com/products/products.htm

    Just an interesting link:

    http://www.census.gov/geo/www/gazetteer/places.html

    I was just trying to find something that I read had been done with Perl. I think maybe it was just for log analysis, anyhow, while searching I found this:

    http://greatcircle.locallink.net/

    kind of hokey site but how knows. They say they have a database for US$ 9.95. I used the people above about 3 years ago and they are still in business, I like that.

    Lots of stuff out there. Here is an interesting company:

    http://www.mailerssoftware.com/zipcodesolutions/index.htm

    Peter

    attached mail follows:


    Hello everybody,

    maybe I am dumb , I dunnow, I have a parse error here and I don't understand why :

    $fp=fopen("temp/$userfile_name[$i-1]","w+");

    the error I get is : Parse error: parse error, expecting `']'' in D:\Data\WebSSL\tm\RFP\upload2.php on line 61

    THANX !!! :((( ==============================================

    Cyrille ANDRES IT-Tools Technician

    Siemens Shared Services, LLC Travel Management 1650 Technology Drive,m/s 243 San Jose, CA 95110

    phone: (408) 764-9250 fax: (408) 764-9258

    attached mail follows:


    try: $fp = fopen('temp/'.$userfile_name[($i-1)], "w+");

    -js

    Andres, Cyrille wrote: > > Hello everybody, > > maybe I am dumb , I dunnow, I have a parse error here and I don't understand > why : > > $fp=fopen("temp/$userfile_name[$i-1]","w+"); > > the error I get is : Parse error: parse error, expecting `']'' in > D:\Data\WebSSL\tm\RFP\upload2.php on line 61 > > > THANX !!! :((( > ============================================== > > Cyrille ANDRES > IT-Tools Technician > > Siemens Shared Services, LLC > Travel Management > 1650 Technology Drive,m/s 243 > San Jose, CA 95110 > > phone: (408) 764-9250 > fax: (408) 764-9258 > > >

    attached mail follows:


    thx, but I still have the same error I think I have a poltergheist in my computer !!!

    -----Original Message----- From: Jonathan Sharp [mailto:js-listssharpmedia.net] Sent: Wednesday, October 30, 2002 11:13 AM To: Andres, Cyrille Cc: PHP List; php Subject: Re: [PHP] parse error

    try: $fp = fopen('temp/'.$userfile_name[($i-1)], "w+");

    -js

    Andres, Cyrille wrote: > > Hello everybody, > > maybe I am dumb , I dunnow, I have a parse error here and I don't understand > why : > > $fp=fopen("temp/$userfile_name[$i-1]","w+"); > > the error I get is : Parse error: parse error, expecting `']'' in > D:\Data\WebSSL\tm\RFP\upload2.php on line 61 > > > THANX !!! :((( > ============================================== > > Cyrille ANDRES > IT-Tools Technician > > Siemens Shared Services, LLC > Travel Management > 1650 Technology Drive,m/s 243 > San Jose, CA 95110 > > phone: (408) 764-9250 > fax: (408) 764-9258 > > >

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

    attached mail follows:


    You forgot ] somewhere before line 61, and maybe even something else.

    Andres, Cyrille wrote:

    >thx, but I still have the same error >I think I have a poltergheist in my computer !!! > >-----Original Message----- >From: Jonathan Sharp [mailto:js-listssharpmedia.net] >Sent: Wednesday, October 30, 2002 11:13 AM >To: Andres, Cyrille >Cc: PHP List; php >Subject: Re: [PHP] parse error > > >try: >$fp = fopen('temp/'.$userfile_name[($i-1)], "w+"); > >-js > > >Andres, Cyrille wrote: > > >>Hello everybody, >> >>maybe I am dumb , I dunnow, I have a parse error here and I don't >> >> >understand > > >>why : >> >>$fp=fopen("temp/$userfile_name[$i-1]","w+"); >> >>the error I get is : Parse error: parse error, expecting `']'' in >>D:\Data\WebSSL\tm\RFP\upload2.php on line 61 >> >> >>THANX !!! :((( >>============================================== >> >>Cyrille ANDRES >>IT-Tools Technician >> >>Siemens Shared Services, LLC >>Travel Management >>1650 Technology Drive,m/s 243 >>San Jose, CA 95110 >> >>phone: (408) 764-9250 >>fax: (408) 764-9258 >> >> >> >> >> > > > > > >

    attached mail follows:


    Show us a few lines of code before the line that the error message reports.

    Remember, the line in the error message is just where PHP figured out something was wrong. The cause could be anywhere before that line.

    ---John Holmes...

    ----- Original Message ----- From: "Andres, Cyrille" <Cyrille.Andresicn.siemens.com> To: "Jonathan Sharp" <js-listssharpmedia.net> Cc: "PHP List" <php_listibcnetwork.net>; "php" <php-generallists.php.net> Sent: Wednesday, October 30, 2002 2:21 PM Subject: RE: [PHP] parse error

    > thx, but I still have the same error > I think I have a poltergheist in my computer !!! > > -----Original Message----- > From: Jonathan Sharp [mailto:js-listssharpmedia.net] > Sent: Wednesday, October 30, 2002 11:13 AM > To: Andres, Cyrille > Cc: PHP List; php > Subject: Re: [PHP] parse error > > > try: > $fp = fopen('temp/'.$userfile_name[($i-1)], "w+"); > > -js > > > Andres, Cyrille wrote: > > > > Hello everybody, > > > > maybe I am dumb , I dunnow, I have a parse error here and I don't > understand > > why : > > > > $fp=fopen("temp/$userfile_name[$i-1]","w+"); > > > > the error I get is : Parse error: parse error, expecting `']'' in > > D:\Data\WebSSL\tm\RFP\upload2.php on line 61 > > > > > > THANX !!! :((( > > ============================================== > > > > Cyrille ANDRES > > IT-Tools Technician > > > > Siemens Shared Services, LLC > > Travel Management > > 1650 Technology Drive,m/s 243 > > San Jose, CA 95110 > > > > phone: (408) 764-9250 > > fax: (408) 764-9258 > > > > > > > > > > > -- > 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:


    here is my code :

    // for each file to upload :.... $j=0; echo "$hotelNr[$j] et $j"; while($hotelNr[$j] != "") { //display the caracteristics of each file to download echo"<br>HOotelNr[$j]=$hotelNr[$j]<br>";?> <table border="1"> <tr><td><?php printf("<b>Name</b> :</td><td> %s",$userfile_name[$hotelNr[$j]-1]);// $HTTP_POST_FILES["userfile"]["name"]);?></td></tr> <tr><td><?printf("<b>Temporary Name :</b></td> <td>%s", $userfile[$hotelNr[$j]-1] );//$HTTP_POST_FILES["userfile"]["tmp_name"]);?></td></tr> <tr><td><?printf("<b>Size :</b></td><td>%s", $userfile_size[$hotelNr[$j]-1] );//$HTTP_POST_FILES["userfile"]["size"]);?></td></tr> <tr><td><?printf("<b>Type :</b></td><td>%s", $userfile_type[$hotelNr[$j]-1]);//$HTTP_POST_FILES["userfile"]["type"]);?></ td></tr>

    <tr><td> <? //copy the file on the server $i=$hotelNr[$j]; echo "temp/$userfile_name[$i-1]"; $fp=fopen("temp/$userfile_name[0]","w+"); if (copy ($HTTP_POST_FILES["userfile"]["tmp_name"][$hotelNr[$j]-1],"temp/".$HTTP_POST _FILES["userfile"]["name"][$hotelNr[$j]-1])) printf("<h4>File successfully copied !</h4>"); else printf("<h4>Error: failed to copy file !</h4>"); $j++; echo "</td></tr> </table><br>"; } ?>

    -----Original Message----- From: Stuart Dallas [mailto:stuartstut.net] Sent: Wednesday, October 30, 2002 11:29 AM To: Andres, Cyrille Cc: Jonathan Sharp; PHP List; php Subject: Re: [PHP] parse error

    On Wednesday, Oct 30, 2002, at 19:21 Europe/London, Andres, Cyrille wrote: > thx, but I still have the same error > I think I have a poltergheist in my computer !!!

    Show us a couple of lines before this.

    -- 
    Stuart
    

    attached mail follows:


    hi all

    I am using a php form to collect credit card information from clients and so have hosted the page on a secure server i.e. https After filing out the form ...the browser displays a "confirmation page".

    I am using IE 5.2 on MAC OS Jaguar,,,, when I point IE to the secure site and submit the form I get this error

    "Security Failure Data Decryption Failure"

    When I used Mozilla browser...things worked fine and I got no such error Please help me

    thanks Pushpinder

    attached mail follows:


    Look for IE bugs...It's not related to PHP.

    ---John Holmes...

    ----- Original Message ----- From: "Pushpinder Singh Garcha" <pgarchamasterstream.com> To: <php-generallists.php.net> Sent: Wednesday, October 30, 2002 2:34 PM Subject: [PHP] Secure PHP Form

    > hi all > > I am using a php form to collect credit card information from clients > and so have hosted the page on a secure server i.e. https > After filing out the form ...the browser displays a "confirmation page". > > I am using IE 5.2 on MAC OS Jaguar,,,, when I point IE to the secure > site and submit the form I get this error > > "Security Failure Data Decryption Failure" > > When I used Mozilla browser...things worked fine and I got no such error > Please help me > > thanks > Pushpinder > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    be wary of IE on a macintosh, i seem to remember that IE5 on a mac has the same nuts and bolts as IE4 on windows. can anyone back me up on that?

    "Pushpinder Singh Garcha" <pgarchamasterstream.com> wrote in message news:9787EE5E-EC3E-11D6-A12B-003065DBDE68masterstream.com... > hi all > > I am using a php form to collect credit card information from clients > and so have hosted the page on a secure server i.e. https > After filing out the form ...the browser displays a "confirmation page". > > I am using IE 5.2 on MAC OS Jaguar,,,, when I point IE to the secure > site and submit the form I get this error > > "Security Failure Data Decryption Failure" > > When I used Mozilla browser...things worked fine and I got no such error > Please help me > > thanks > Pushpinder >

    attached mail follows:


    Hi, I've just installed php 4.2.3 and wonder why I can't submit an variable over url. Example: My Script: Test.php <? echo $tmp; ?> My URL: www.some.domain/test.php?tmp=5 My result: NOTHING !!! Where is the error? P.S. phpmyadmin run ok. Thanx Manuel

    attached mail follows:


    Hi,

    try <?php echo $_GET['tmp']; ?>

    or turn off register_globals in your php.ini file.

    - Sascha

    Am Mittwoch, 30. Oktober 2002 20:49 schrieb Manuel Jenne: > Hi, > > I've just installed php 4.2.3 and wonder why I can't submit an variable > over url. > > Example: > > My Script: > Test.php > > <? > echo $tmp; > ?> > > My URL: > www.some.domain/test.php?tmp=5 > > My result: > > NOTHING !!! > > Where is the error? > > P.S. phpmyadmin run ok. > > > Thanx > > Manuel

    attached mail follows:


    Read the docs first plz, or search for it....

    thank you...

    Manuel jenne wrote:

    > Hi, > > I've just installed php 4.2.3 and wonder why I can't submit an variable > over url. > > Example: > > My Script: > Test.php > > > > My URL: > www.some.domain/test.php?tmp=5 > > My result: > > NOTHING !!! > > Where is the error? > > P.S. phpmyadmin run ok. > > > Thanx > > Manuel >

    attached mail follows:


    Read this:

    Variables from outside PHP: http://www.php.net/manual/en/language.variables.external.php

    Some notes:

    a) Know your register_globals directive. b) register_globals defaults to off as of PHP 4.2.0. c) It's preferred not to rely on register_globals being on. d) Autoglobals, such as $_GET, became available in PHP 4.1.0. e) register_globals can be changed in php.ini or .htaccess but not ini_set(). f) Many older scripts assume register_globals = on. g) This change is huge in the PHP world. h) register_globals affects web server vars too, so for example, $DOCUMENT_ROOT won't exist if it's off, $_SERVER['DOCUMENT_ROOT']. Same for PHP_SELF, etc. i) $_REQUEST can be useful, import_request_variables() too.

    See also:

    http://www.php.net/globals http://www.php.net/variables.predefined

    Regards, Philip Olson

    On Wed, 30 Oct 2002, Manuel Jenne wrote:

    > Hi, > > I've just installed php 4.2.3 and wonder why I can't submit an variable > over url. > > Example: > > My Script: > Test.php > > <? > echo $tmp; > ?> > > My URL: > www.some.domain/test.php?tmp=5 > > My result: > > NOTHING !!! > > Where is the error? > > P.S. phpmyadmin run ok. > > > Thanx > > Manuel >

    attached mail follows:


    I think you mean turn on register_globals. :-)

    Sascha Cunz wrote:

    >try ><?php > echo $_GET['tmp']; >?> > >or turn off register_globals in your php.ini file. > >Am Mittwoch, 30. Oktober 2002 20:49 schrieb Manuel Jenne: > > >>My Script: >>Test.php >> >><? >>echo $tmp; >>?> >> >>My URL: >>www.some.domain/test.php?tmp=5 >> >>My result: >> >>NOTHING !!! >>

    attached mail follows:


    X.x No. It's turned off for a reason: security.

    Chris Shiflett wrote:

    > I think you mean turn on register_globals. :-) > > Sascha Cunz wrote: > >> try >> <?php >> echo $_GET['tmp']; >> ?> >> >> or turn off register_globals in your php.ini file. >> >> Am Mittwoch, 30. Oktober 2002 20:49 schrieb Manuel Jenne: >> >> >>> My Script: >>> Test.php >>> >>> <? >>> echo $tmp; >>> ?> >>> >>> My URL: >>> www.some.domain/test.php?tmp=5 >>> >>> My result: >>> >>> NOTHING !!! >>> > >

    -- 
    The above message is encrypted with double rot13 encoding.  Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.
    

    attached mail follows:


    Hi All

    I am creating a mailing list system in which I should be able to broadcast a message to multiple recipients I am using the mail() function and putting all the recipients names in the "to" argument separated by commas. When I do this the mail goes to all the people but they come to know that it was sent to others as well.

    I want to be able to send mail so that each recipient thinks that this mail was ONLY sent to him/her.

    Thanks --pS

    Pushpinder Singh Garcha

    attached mail follows:


    Hello,

    On 10/30/2002 04:47 PM, Pushpinder Singh Garcha wrote: > Hi All > > I am creating a mailing list system in which I should be able to > broadcast a message to multiple recipients > I am using the mail() function and putting all the recipients names in > the "to" argument separated by commas. When I do this the mail goes to > all the people but they come to know that it was sent to others as well. > > I want to be able to send mail so that each recipient thinks that this > mail was ONLY sent to him/her.

    Put all recipients in the Bcc: instead of To: header.

    -- 
    

    Regards, Manuel Lemos

    attached mail follows:


    Put all addressees in the BCC??

    ----- Original Message ----- From: "Pushpinder Singh Garcha" <pgarchamasterstream.com> To: <php-generallists.php.net> Sent: Wednesday, October 30, 2002 1:47 PM Subject: [PHP] Multiple Addresses Mailer

    Hi All

    I am creating a mailing list system in which I should be able to broadcast a message to multiple recipients I am using the mail() function and putting all the recipients names in the "to" argument separated by commas. When I do this the mail goes to all the people but they come to know that it was sent to others as well.

    I want to be able to send mail so that each recipient thinks that this mail was ONLY sent to him/her.

    Thanks --pS

    Pushpinder Singh Garcha

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

    attached mail follows:


    The best solution would probably be to send each email by itself or do the actual sending thru a mailing list program.

    BCC works great, but a lot of spam filters will catch it - plus some shared servers have a limit on the number of BCC's on a single mail piece.

    olinux

    --- Rick Emery <remeryemeryloftus.com> wrote: > Put all addressees in the BCC?? > > ----- Original Message ----- > From: "Pushpinder Singh Garcha" > <pgarchamasterstream.com> > To: <php-generallists.php.net> > Sent: Wednesday, October 30, 2002 1:47 PM > Subject: [PHP] Multiple Addresses Mailer > > > Hi All > > I am creating a mailing list system in which I > should be able to > broadcast a message to multiple recipients > I am using the mail() function and putting all the > recipients names in > the "to" argument separated by commas. When I do > this the mail goes to > all the people but they come to know that it was > sent to others as well. > > I want to be able to send mail so that each > recipient thinks that this > mail was ONLY sent to him/her. > > Thanks > --pS > > Pushpinder Singh Garcha > > > -- > 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 >

    __________________________________________________ Do you Yahoo!? HotJobs - Search new jobs daily now http://hotjobs.yahoo.com/

    attached mail follows:


    Hello,

    On 10/31/2002 01:30 AM, Olinux wrote: > The best solution would probably be to send each email > by itself or do the actual sending thru a mailing list > program. > > BCC works great, but a lot of spam filters will catch > it - plus some shared servers have a limit on the > number of BCC's on a single mail piece.

    You are contradicting yourself. Most mailing list programs put all recipients in Bcc: and queue only on message, so it is the same thing that you are recommending against and for it.

    Spam filters that discard messages which the recipients are in Bcc: are wrong, just like everybody that filters messages with general criteria like that. Anyway, it is their problem if they discard messages arbitrarily.

    Some ISP of shared servers disallow messages sent to many recipients regardless if you send them with recipients in Bcc or in separate messages. Sending in separate messages gives more load to the server and takes much longer to queue so it may annoy your ISP than just sending all in Bcc.

    You need to check with the ISP if sending to many recipients respects the acceptable use policy. If they don't accept bulk mailing, it doesn't matter the method you use.

    -- 
    

    Regards, Manuel Lemos

    attached mail follows:


    Hi y'all

    A while back I requested help for properly capitalizing names out of passed string values, as ucwords() and tokenizing didn't do the trick.

    Some kind soul gave me this scripple to work with:

    > $text = "What?No delimiters,shit happens here.this solves all problems."; > preg_match_all("/(\w+[,. ?])+/U", $text, $words); > foreach($words[0] as $part) $uwords[] = ucfirst($part); > $text = implode("", $uwords); > echo $text;

    Which didn't work at all (even changing the variables to match my own), but only got me several errors for each line...

    My task was to make it take a string like "firstname_middlename_firstlastname-lastlastname" and properly capitalize it. Also wanted it to do it correctly with names like O'Connor, MacEnroe, McCarthy and such... The scribble above would be able to do it with the O'Connors and name-name formats, but useless with Mac/Mc names ... plus the above script part didn't work at all on my system (PHP 4.2.3 on Apache 2.0.40 on WinXP Pro).

    OK ... so I wanted a compact structure that could do this easily, and correctly, on ANY name I threw at it...so I've spent a couple of hours finding useful functions in PHP that would do the trickery easiest ... and ended up with this:

    $name = $HTTP_GET_VARS['name'];

    // pull real name out of $name $realname = ""; // okay, let's get the names cap'ed correctly... $startat = 0; // these vars are used for substring pulling $stoplen = 0; // parse 1, find funny chars and cap after them for ($i = 0; $i < strlen($name); $i++) { $ltr = substr($name, $i, 1); // pull out letter i of name $stoplen = $i - $startat; // set the stop point for substring // if current letter is a marker if ($ltr == "_" | $ltr == "-" | $ltr == "'") { // add substring $realname .= ucfirst(substr($name, $startat, $stoplen)); $startat = $i + 1; // set new start point for substring } if ($ltr == "_") { // if space, add space $realname .= " "; } elseif ($ltr == "-") { // if dash, add dash $realname .= "-"; } elseif ($ltr == "'") { $realname .= "'"; } } // the last name won't be added in parse 1, // this piece adds the last name AFTER checking and capping for Mac/Mc // so this is essentially pass 2 $lastname = substr($name, $startat, $stoplen + 1); // find Mac/Mc $maclen = 0; // we set this to zero to make it easier to check for found if (strstr($lastname, "mc") != false) { // if Mc is found... $maclen = 2; } elseif (strstr($lastname, "mac") != false) { // if Mac is found $maclen = 3; } if ($maclen > 0) { // add the MacSomething with proper capitalization $realname .= ucfirst(substr($lastname, 0, $maclen)); $realname .= ucfirst(substr($lastname, $maclen, strlen($lastname))); } else { // if we can't find Mac/Mc, just add the last name... $realname .= ucfirst($lastname); } // end namegame

    The curious thing is that this actually runs faster than the strtok() + ucwords() combo I had before, plus it does the trick correctly, everytime. If anyone can see a more efficient way of doing this, I'm all for it.

    Do note that I've intentionally made it so that the last word of all names won't be added to the $realname, until it's determined whether or not it starts with Mac/Mc. The point to this is simple: It's a lot more complicated to scan for the Mac/Mc after the full name is assembled, than it is while it's being built. My structure also ensure that if someone's called something like Mackenzie for first name, it will not be incorrectly cap'ed, as it only does the scotch-check on the last names...

    If you can do this simpler, or have any comments for this way of doing it, please let me know. You may freely copy and dsitribute this as you wish.

    Rene

    -- 
    Rene Brehmer
    System developer in the making...
    

    This message was written on 100% recycled spam.

    Come see! My brand new site is now online! http://www.metalbunny.net

    attached mail follows:


    So if I have a last name like Macon, will it make it MacOn, or leave it alone? How do you tell?

    ---John Holmes... ----- Original Message ----- From: "-<[ Rene Brehmer ]>-" <metalbunnymetalbunny.net> To: <php-generallists.php.net> Sent: Wednesday, October 30, 2002 2:53 PM Subject: [PHP] Capitalizing names etc. part II - found a solution

    > Hi y'all > > A while back I requested help for properly capitalizing names out of > passed string values, as ucwords() and tokenizing didn't do the trick. > > Some kind soul gave me this scripple to work with: > > > $text = "What?No delimiters,shit happens here.this solves all problems."; > > preg_match_all("/(\w+[,. ?])+/U", $text, $words); > > foreach($words[0] as $part) $uwords[] = ucfirst($part); > > $text = implode("", $uwords); > > echo $text; > > Which didn't work at all (even changing the variables to match my own), > but only got me several errors for each line... > > My task was to make it take a string like > "firstname_middlename_firstlastname-lastlastname" and properly capitalize > it. Also wanted it to do it correctly with names like O'Connor, MacEnroe, > McCarthy and such... The scribble above would be able to do it with the > O'Connors and name-name formats, but useless with Mac/Mc names ... plus > the above script part didn't work at all on my system (PHP 4.2.3 on Apache > 2.0.40 on WinXP Pro). > > OK ... so I wanted a compact structure that could do this easily, and > correctly, on ANY name I threw at it...so I've spent a couple of hours > finding useful functions in PHP that would do the trickery easiest ... and > ended up with this: > > $name = $HTTP_GET_VARS['name']; > > // pull real name out of $name > $realname = ""; > // okay, let's get the names cap'ed correctly... > $startat = 0; // these vars are used for substring pulling > $stoplen = 0; > // parse 1, find funny chars and cap after them > for ($i = 0; $i < strlen($name); $i++) { > $ltr = substr($name, $i, 1); // pull out letter i of name > $stoplen = $i - $startat; // set the stop point for substring > // if current letter is a marker > if ($ltr == "_" | $ltr == "-" | $ltr == "'") { > // add substring > $realname .= ucfirst(substr($name, $startat, $stoplen)); > $startat = $i + 1; // set new start point for substring > } > if ($ltr == "_") { // if space, add space > $realname .= " "; > } > elseif ($ltr == "-") { // if dash, add dash > $realname .= "-"; > } > elseif ($ltr == "'") { > $realname .= "'"; > } > } > // the last name won't be added in parse 1, > // this piece adds the last name AFTER checking and capping for Mac/Mc > // so this is essentially pass 2 > $lastname = substr($name, $startat, $stoplen + 1); > // find Mac/Mc > $maclen = 0; // we set this to zero to make it easier to check for found > if (strstr($lastname, "mc") != false) { // if Mc is found... > $maclen = 2; > } > elseif (strstr($lastname, "mac") != false) { // if Mac is found > $maclen = 3; > } > if ($maclen > 0) { // add the MacSomething with proper capitalization > $realname .= ucfirst(substr($lastname, 0, $maclen)); > $realname .= ucfirst(substr($lastname, $maclen, strlen($lastname))); > } > else { // if we can't find Mac/Mc, just add the last name... > $realname .= ucfirst($lastname); > } > // end namegame > > The curious thing is that this actually runs faster than the strtok() + > ucwords() combo I had before, plus it does the trick correctly, everytime. > If anyone can see a more efficient way of doing this, I'm all for it. > > Do note that I've intentionally made it so that the last word of all names > won't be added to the $realname, until it's determined whether or not it > starts with Mac/Mc. The point to this is simple: It's a lot more > complicated to scan for the Mac/Mc after the full name is assembled, than > it is while it's being built. My structure also ensure that if someone's > called something like Mackenzie for first name, it will not be incorrectly > cap'ed, as it only does the scotch-check on the last names... > > If you can do this simpler, or have any comments for this way of doing it, > please let me know. You may freely copy and dsitribute this as you wish. > > Rene > -- > Rene Brehmer > System developer in the making... > > This message was written on 100% recycled spam. > > Come see! My brand new site is now online! > http://www.metalbunny.net > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    Hi,

    I am developing a website in PHP that stores all its information in a MySQL database. The webserver is a FreeBSD box running Apache with pretty much all extensions installed (its owned by a friend of mine who works for an ISP. He is competant at setting this sort of box up, so I am confident its all installed correctly).

    Now, the site works fine 100% of the time when I visit it from home (Amiga 4000, with any of these browsers: AWeb, IBrowse and Voyager), but when I visit from my work computer (IE 6, Windows 98 SE, going through an NT4 server with Microsoft Web Proxy 2.0), lots of MySQL errors appear, that go away after a refresh or two! They happen on pretty much ANY page that accesses MySQL, and its an intermittant problem.

    It even occurs on pages where the mysql query is a hardcoded string, so it is not related to realtime-generated queries.

    Now, 2 or 3 friends have visited the site with linux boxes and windows, using Opera, Mozilla and IE, and don't get any MySQL errors, so it only seems to be when I visit from work! I also tried from a couple of my colleagues machines today (same web proxy, some IE 5.5, some IE6), and they didn't get any, so they only seem to occur when i visit from this one machine!

    This is confusing the hell out of me because PHP and MySQL is all server side, and surely the final HTML served should be the same no matter where I visit from!

    This is the type of error that I get from my work machine:

    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/httpd/www.videobrewery.com/shownews.php on line 40

    So it appears the original mysql_query() is failing. What could be causing that from the client end?!

    Cheers, Pete

    attached mail follows:


    Well, the only thing that comes from the client side is GET, POST, or COOKIE data. All the browsers should handle GET and POST data the same, so I doubt that's it. Is the work computer your on accepting cookies? Are values from cookies or sessions used anywhere in the SQL in question?

    ---John Holmes...

    ----- Original Message ----- From: "Peter Gordon" <peteshagged.org> To: <php-generallists.php.net> Sent: Wednesday, October 30, 2002 3:20 PM Subject: [PHP] Strange intermittant errors

    > Hi, > > I am developing a website in PHP that stores all its information in a MySQL > database. The webserver is a FreeBSD box running Apache with pretty much all > extensions installed (its owned by a friend of mine who works for an ISP. He > is competant at setting this sort of box up, so I am confident its all > installed correctly). > > Now, the site works fine 100% of the time when I visit it from home (Amiga > 4000, with any of these browsers: AWeb, IBrowse and Voyager), but when I > visit from my work computer (IE 6, Windows 98 SE, going through an NT4 server > with Microsoft Web Proxy 2.0), lots of MySQL errors appear, that go away > after a refresh or two! They happen on pretty much ANY page that accesses > MySQL, and its an intermittant problem. > > It even occurs on pages where the mysql query is a hardcoded string, so it is > not related to realtime-generated queries. > > Now, 2 or 3 friends have visited the site with linux boxes and windows, using > Opera, Mozilla and IE, and don't get any MySQL errors, so it only seems to be > when I visit from work! I also tried from a couple of my colleagues machines > today (same web proxy, some IE 5.5, some IE6), and they didn't get any, so > they only seem to occur when i visit from this one machine! > > This is confusing the hell out of me because PHP and MySQL is all server side, > and surely the final HTML served should be the same no matter where I visit > from! > > This is the type of error that I get from my work machine: > > Warning: mysql_num_rows(): supplied argument is not a valid MySQL result > resource in /home/httpd/www.videobrewery.com/shownews.php on line 40 > > So it appears the original mysql_query() is failing. What could be causing > that from the client end?! > > Cheers, > Pete > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    Hi 1LT John W. Holmes, on the subject of Re: [PHP] Strange intermittant errors, you said:

    > Well, the only thing that comes from the client side is GET, POST, or COOKIE > data. All the browsers should handle GET and POST data the same, so I doubt > that's it. Is the work computer your on accepting cookies? Are values from > cookies or sessions used anywhere in the SQL in question?

    Thats just the thing, even on pages when the query involves NO external inputs like GET, POST or COOKIE, e.g:

    $res = mysql_query( "select * from news order by date limit 10"); $num_rows = mysql_num_rows( $res );

    it'll work fine from all but this one machine. Also, other PHP powered sites work fine from it! I just don't understand it...

    Cheers, Pete

    attached mail follows:


    Hi,

    > it'll work fine from all but this one machine. Also, other PHP powered sites > work fine from it! I just don't understand it...

    Ooooh... now thats odd... for the first time ever it just happened from home! Now i'm confused... in the process of creating the site, i've loaded up the pages several hundred times, and its just not happened from home, and now out of the blue it just happened. So... it seems that the problem is just FAR more likely to happen from that one machine than any other... !

    Cheers, Pete

    attached mail follows:


    > > it'll work fine from all but this one machine. Also, other PHP powered sites > > work fine from it! I just don't understand it... > > Ooooh... now thats odd... for the first time ever it just happened from home! > Now i'm confused... in the process of creating the site, i've loaded up the > pages several hundred times, and its just not happened from home, and now out > of the blue it just happened. So... it seems that the problem is just FAR > more likely to happen from that one machine than any other... !

    Well, that would make a lot more sense. :)

    Is it alway the same error? Is it always a problem related to MySQL? If it's intermittent like this and on simple queries, I'd say you have a problem with MySQL, or the tranfer of data between MySQL and PHP. Are you checking for a mysql_error() in these queries?

    ---John Holmes...

    attached mail follows:


    Hi 1LT John W. Holmes, on the subject of Re: [PHP] Re: Strange intermittant errors, you said:

    > Is it alway the same error? Is it always a problem related to MySQL? If it's > intermittent like this and on simple queries, I'd say you have a problem > with MySQL, or the tranfer of data between MySQL and PHP. Are you checking > for a mysql_error() in these queries?

    Well, I've just chucked a load of debug in the page where it cropped up, printing out mysql error at every mysql call... but in accordance with sods law its just not happening again :) I'll keep trying...

    Cheers, Pete

    attached mail follows:


    On Thursday 31 October 2002 05:02, Peter Gordon wrote: > Hi 1LT John W. Holmes, on the subject of Re: [PHP] Re: Strange intermittant > > errors, you said: > > Is it alway the same error? Is it always a problem related to MySQL? If > > it's intermittent like this and on simple queries, I'd say you have a > > problem with MySQL, or the tranfer of data between MySQL and PHP. Are you > > checking for a mysql_error() in these queries? > > Well, I've just chucked a load of debug in the page where it cropped up, > printing out mysql error at every mysql call... but in accordance with sods > law its just not happening again :) I'll keep trying...

    Use error_log() to log any useful debugging info into a file. Then, if and when the error occurs all the pertinent info is ready and waiting for you in a file.

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

    /* I want to be the white man's brother, not his brother-in-law. -- Martin Luther King, Jr. */

    attached mail follows:


    I am trying to use include statements, but am having no luck. I set the include path in php.ini to include directories of the files, I tried CHMOD 777 on both files, and I restarted the server.

    I can't get any include files working. I got this message:

    Warning: Failed opening '/common.php' for inclusion (include_path='.:/www/htdocs/php:/www/htdocs') in /www/htdocs/php/includetest.php on line 3

    Please help!

    _________________________________________________________________ Broadband? Dial-up? Get reliable MSN Internet Access. http://resourcecenter.msn.com/access/plans/default.asp

    attached mail follows:


    > Warning: Failed opening '/common.php' for inclusion > (include_path='.:/www/htdocs/php:/www/htdocs') in > /www/htdocs/php/includetest.php on line 3

    Take out the forward slash in your include. '/common.php' means to look in the root directory for the file, while if you just put 'common.php' or './common.php' it'll look in the same directory as includetest.php. Or, provide a full path to the file '/www/htdocs/php/common.php'.

    ---John Holmes...

    attached mail follows:


    On Monday 28 October 2002 01:24, Noah Spitzer-Williams wrote: > Hey guys, > > My service sends out emails every few days to members who wish to have > stats sent to them. The problem is once an email becomes inactive, I the > webmaster gets a failure email sent to me. This is starting to add up and I > can get upwards of 20 of these a day. It just seems likea waste of space > and bandwidth... is there anyway I can prevent this? > > If i delete the webmaster email key in php.ini will my emails not have > a reply address?

    Why don't you just remove those people whose email address has become invalid?

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

    /* Xerox your lunch and file it under "sex offenders"! */

    attached mail follows:


    Still having trouble with CSSs. Now it's a different error. Below is my CSS code. For some reason, I can't get the CSS to access my Constants.inc file to grab my constants. Any ideas? The line by which I get my CSS is: print(" <LINK REL = \"STYLESHEET\" HREF = \"Stylesheet.php\" TYPE = \"TEXT/CSS\">\n");

    <?PHP require("Constants.inc");

    print(".regular { Text-Align: Justify; }\n"); print(".title { Color: #FFFFFF; Background-Color: Transparent; Text-Align: Center; Font: Bold; Padding-Bottom: .5em; }\n"); print(".header { Color: #FFFFFF; Background-Color: Transparent; Font: Bold; }\n"); print(".bulletin { Color: #FFFFFF; Background-Color: Transparent; Color: #0000FF; }\n"); print(".fineprint { Color: #FFFFFF; Background-Color: Transparent; Font-Size: X-Small; }\n"); print(".error { Color: #FF0000; Background-Color: #000000; Text-Align: Center; }\n"); print(".confirmation { Color: #FFFFFF; Background-Color: #000000; Text-Align: Center; Font: Bold; }\n"); print(".footer { Color: #FFFFFF; Background-Color: Transparent; Font-Size: X-Small; }\n"); print(".buttons { Color: #FFFFFF; Background-Color: Transparent; Text-Align: Center; Padding-Top: .5em; }\n"); print(".menulink { Color: #B52100; Text-decoration: None; Font: Bold 10pt \"Comic Sans MS\"; Width: " . $menuwidth . "px }\n"); ?>

    attached mail follows:


    is Constants.inc in the same directory as Stylesheet.php?

    "Liam Gibbs" <Liam.Gibbsdfait-maeci.gc.ca> wrote in message news:D64360C926B9F34F8B35F78D07B8E7A2716E23postman.dfait-maeci.gc.ca... > Still having trouble with CSSs. Now it's a different error. Below is my CSS > code. For some reason, I can't get the CSS to access my Constants.inc file > to grab my constants. Any ideas? The line by which I get my CSS is: > print(" <LINK REL = \"STYLESHEET\" HREF = \"Stylesheet.php\" > TYPE = \"TEXT/CSS\">\n"); > > <?PHP > require("Constants.inc");

    attached mail follows:


    Very slightly OT but great minds here

    I have a table with two columns and I need to get all the items that are not in the shop number I select, with the exception of items that are in the shop number I select.

    Table

    Shopnumber item 1 orange 1 banana 1 apple 1 pear 2 grape 2 coca cola 2 pepsi 3 orange 4 orange 4 pepsi 4 7 up 4 sunny delite

    I need to be able to work out all the items that are in the other shops. For example if a customer picks orange from shopnumber 1 I need to get a result that has all items in all shops except shop1 The problem is my query still picks items that are in shop1 if they are in another shop as well, which is not what I need

    My current query is select * from table where shopnumber!=$shoprvar. As an example if I use select * from table where shopnumber!=1 I would get grape, coca-cola,pepsi (x2),7 up, sunny delite and orange (x2). I don't want orange because it is in shop1!!!!!

    Help and BIG THANKS for the ANSWER? Scott

    attached mail follows:


    Yes...off topic...

    Join the table with itself.

    untested...

    SELECT t1.shopnumber, t1.item from table t1, table t2 where t1.shopnumber = 1 and t1.shopnumber = t2.shopnumber and t1.item != t2.item

    Something like that?? Play around with it...

    ---John Holmes...

    ----- Original Message ----- From: "scott" <scottscottincz.com> To: <php-generallists.php.net> Sent: Wednesday, October 30, 2002 3:43 PM Subject: [PHP] mysql question

    > Very slightly OT but great minds here > > I have a table with two columns and I need to get all the items that are > not in the shop number I select, with the exception of items that are in > the shop number I select. > > Table > > Shopnumber item > 1 orange > 1 banana > 1 apple > 1 pear > 2 grape > 2 coca cola > 2 pepsi > 3 orange > 4 orange > 4 pepsi > 4 7 up > 4 sunny delite > > > I need to be able to work out all the items that are in the other shops. > For example if a customer picks orange from shopnumber 1 I need to get a > result that has all items in all shops except shop1 > The problem is my query still picks items that are in shop1 if they are > in another shop as well, which is not what I need > > My current query is select * from table where shopnumber!=$shoprvar. > As an example if I use select * from table where shopnumber!=1 I would > get grape, coca-cola,pepsi (x2),7 up, sunny delite and orange (x2). I > don't want orange because it is in shop1!!!!! > > > Help and BIG THANKS for the ANSWER? > Scott > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    Hi All: I like to know is there any metrhod to find future date ( for example 15 days from the today [sys date]). Basically i am looking for a method equivalent to datediff or dateadd in asp. I hope PHP will have some thing corresponding to this, I will really appricate u r help, thanks in advance Prad

    __________________________________________________ Do you Yahoo!? HotJobs - Search new jobs daily now http://hotjobs.yahoo.com/

    attached mail follows:


    Take a look at mktime()

    www.php.net/mktime

    ---John Holmes...

    ----- Original Message ----- From: "ppf" <ppf2uyahoo.com> To: <php-generallists.php.net> Sent: Wednesday, October 30, 2002 4:01 PM Subject: [PHP] How to find future date?

    > > Hi All: > I like to know is there any metrhod to find future > date ( for example 15 days from the today [sys date]). > Basically i am looking for a method equivalent to > datediff or dateadd in asp. I hope PHP will have some > thing corresponding to this, I will really appricate u > r help, thanks in advance > Prad > > __________________________________________________ > Do you Yahoo!? > HotJobs - Search new jobs daily now > http://hotjobs.yahoo.com/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    On Thursday 31 October 2002 05:01, ppf wrote: > Hi All: > I like to know is there any metrhod to find future > date ( for example 15 days from the today [sys date]). > Basically i am looking for a method equivalent to > datediff or dateadd in asp. I hope PHP will have some > thing corresponding to this, I will really appricate u > r help, thanks in advance > Prad

    strtotime()

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

    /* You are a fluke of the universe; you have no right to be here. */

    attached mail follows:


    Thank you all both mktime and strtotime () will achive the goal, thank again Prad

    --- "1LT John W. Holmes" <holmes072000charter.net> wrote: > Take a look at mktime() > > www.php.net/mktime > > ---John Holmes... > > ----- Original Message ----- > From: "ppf" <ppf2uyahoo.com> > To: <php-generallists.php.net> > Sent: Wednesday, October 30, 2002 4:01 PM > Subject: [PHP] How to find future date? > > > > > > Hi All: > > I like to know is there any metrhod to find future > > date ( for example 15 days from the today [sys > date]). > > Basically i am looking for a method equivalent to > > datediff or dateadd in asp. I hope PHP will have > some > > thing corresponding to this, I will really > appricate u > > r help, thanks in advance > > Prad > > > > __________________________________________________ > > Do you Yahoo!? > > HotJobs - Search new jobs daily now > > http://hotjobs.yahoo.com/ > > > > -- > > 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 >

    __________________________________________________ Do you Yahoo!? HotJobs - Search new jobs daily now http://hotjobs.yahoo.com/

    attached mail follows:


    Thanks

    Can't get it to work, so open to other suggestions. Thanks anyway.

    -----Original Message----- From: 1LT John W. Holmes [mailto:holmes072000charter.net] Sent: 30 October 2002 21:16 To: ppf; php-generallists.php.net Subject: Re: [PHP] How to find future date?

    Take a look at mktime()

    www.php.net/mktime

    ---John Holmes...

    ----- Original Message ----- From: "ppf" <ppf2uyahoo.com> To: <php-generallists.php.net> Sent: Wednesday, October 30, 2002 4:01 PM Subject: [PHP] How to find future date?

    > > Hi All: > I like to know is there any metrhod to find future > date ( for example 15 days from the today [sys date]). Basically i am > looking for a method equivalent to datediff or dateadd in asp. I hope > PHP will have some thing corresponding to this, I will really > appricate u r help, thanks in advance > Prad > > __________________________________________________ > Do you Yahoo!? > HotJobs - Search new jobs daily now > http://hotjobs.yahoo.com/ > > -- > 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:


    Use strtotime() like someone else suggested. It's easier, but mktime does work. If you read the whole manual page and comments, I'm sure you'll see an example.

    $date = strtotime("now + X days");

    ---John Holmes...

    > -----Original Message----- > From: scott [mailto:scottscottincz.com] > Sent: Wednesday, October 30, 2002 5:25 PM > To: php-generallists.php.net > Subject: RE: [PHP] How to find future date? > > > Thanks > > Can't get it to work, so open to other suggestions. > Thanks anyway. > > -----Original Message----- > From: 1LT John W. Holmes [mailto:holmes072000charter.net] > Sent: 30 October 2002 21:16 > To: ppf; php-generallists.php.net > Subject: Re: [PHP] How to find future date? > > > Take a look at mktime() > > www.php.net/mktime > > ---John Holmes... > > ----- Original Message ----- > From: "ppf" <ppf2uyahoo.com> > To: <php-generallists.php.net> > Sent: Wednesday, October 30, 2002 4:01 PM > Subject: [PHP] How to find future date? > > > > > > Hi All: > > I like to know is there any metrhod to find future > > date ( for example 15 days from the today [sys date]). Basically i am > > looking for a method equivalent to datediff or dateadd in asp. I hope > > PHP will have some thing corresponding to this, I will really > > appricate u r help, thanks in advance > > Prad > > > > __________________________________________________ > > Do you Yahoo!? > > HotJobs - Search new jobs daily now > > http://hotjobs.yahoo.com/ > > > > -- > > 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:


    G'day David

    > > My problem is that files uploaded through a form are > > increasing in size.

    > Doesn't that look like the EOL characters are being > translated after the fashion of ftp ascii transfers?

    > Maybe have a look at the two versions in a > hex viewer and see if that is the case?

    Yes, I'd considered that. That was what I'd gone looking for in config files etc. I'd hoped to find a switch for ftp transfer mode. Didn't find one though.

    However, partly because of your email and partly because I noted that the file size increase was the same every time (27 bytes) I decided to load it into a hex editor.

    What I found was that at the top of the file, the following had been added:

    -----8<----- Content-Type: image/gif

    -----8<-----

    I also found that if I remove these two lines the image will display perfectly.

    So, my next question is, why does my linux box add this to an uploaded image and my windows box not do so? Can someone make a suggestion on where I should be looking? Is the addition of this information a server (Apache) thing? Or is it a php thing?

    CYA, Dave

    attached mail follows:


    I'm having big problems with uploading jpeg pictures from a calling form. What happens is that the htpps connection begins (usaully at a very low transfer rate -- somewhere around 900 b/s, and then dwindles rapidly to 200 - 20 -10 b/s). The file doesn't appear in the upload or temp directory (file size was in the test case 500 bytes).

    I've properly encoded the page:

    <form action="pix-upload.php" method="post" enctype="multipart/form-data">

    The actual upload code is placed almost at the beginning of the page (just after calling session_start).

    The code:

    <?php if ($_FILES['pix']['size'] > 0) {

    if ($_FILES['pix']['type'] == "image/jpeg") {

    $pix_file = $_FILES['pix'][name]; $pix_temp_file = $_FILES['pix']['temp_name'];

    $new_pix_file = "{$_SESSION['rid']}-{$_SESSION['sid']}.jpg";

    if(is_uploaded_file($pix_temp_file)) { move_uploaded_file($pix_temp_file, "pix_holding/$new_pix_file");

    copy("pix_holding/$new_pix_file", "pix/$new_pix_file"); } } } ?>

    Any ideas what what might cause a connection to dwindle and die like this? I can upload/download anywhere else except with this code. I'm using a Unix box, as well s my IP. Directory/file permissions are OK and set to 755.

    Tia, Andre

    attached mail follows:


    How can I convert an integer variable to a string variable? I have checked PHP's website and I must not be looking for the right function. Any help please.

    Jef

    attached mail follows:


    I would approach this by first going here:

    http://www.php.net/manual/

    And go to the section on types:

    http://www.php.net/manual/en/language.types.php

    In there is a section for type juggling:

    http://www.php.net/manual/en/language.types.type-juggling.php

    From these places you'll see various options, such as:

    $int = (string) $int;

    settype($int, 'string');

    On a related note, all variables passed through HTTP are strings. See also is_numeric().

    Regards, Philip

    On Wed, 30 Oct 2002, Jef wrote:

    > How can I convert an integer variable to a string variable? I have checked > PHP's website and I must not be looking for the right function. Any help > please. > > > > > Jef > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    I need to know how to compile php code with ms visual studio 6.0.

    Thanks,

    RB.

    >PHP is ANSI compliant, thus, theoretically, any compiler should be able >to build it. Though, MS Visual Studio 6 is the one used for PHP windows >version. That's not free.

    _________________________________________________________________ Únete al mayor servicio mundial de correo electrónico: http://www.hotmail.com

    attached mail follows:


    On Wednesday, Oct 30, 2002, at 23:02 Europe/London, R B wrote: > I need to know how to compile php code with ms visual studio 6.0.

    Do you want to compile PHP or PHP code? If you want to compile PHP itself full instructions are included in the source distribution. If you want to compile PHP code then I believe there are a couple about - Google should be able to find them for you - but I'm pretty sure none of them work within Visual Studio. If you are looking for a speed increase for a web site your best bet is the Zend accelerator: http://www.zend.com/store/products/zend-accelerator.php

    I hope that helps.

    -- 
    Stuart
    

    attached mail follows:


    I want a php code compiler. I wrote above visual studio 6.0 because i read in the mailking list archieve that it was posible with that software, but i want a good free compiler because i don't want to distribute my php code.

    Thanks

    RB

    >From: Stuart <listssharedserver.net> >To: "R B" <rbphphotmail.com> >CC: php-generallists.php.net >Subject: Re: [PHP] Free compiler for Win Date: Thu, 31 Oct 2002 00:40:05 >+0000 > >On Wednesday, Oct 30, 2002, at 23:02 Europe/London, R B wrote: >>I need to know how to compile php code with ms visual studio 6.0. > >Do you want to compile PHP or PHP code? If you want to compile PHP itself >full instructions are included in the source distribution. If you want to >compile PHP code then I believe there are a couple about - Google should be >able to find them for you - but I'm pretty sure none of them work within >Visual Studio. If you are looking for a speed increase for a web site your >best bet is the Zend accelerator: >http://www.zend.com/store/products/zend-accelerator.php > >I hope that helps. > >-- >Stuart > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php

    _________________________________________________________________ MSN Fotos: la forma más fácil de compartir e imprimir fotos. http://photos.msn.es/support/worldwide.aspx

    attached mail follows:


    Why don't you launch your script once you are in the next page? like: "<a href=next_page.php>next</a>"

    So you don't have to get or post anything?

    $sql = "select stuff from my_table"; $result = mysql_query($sql); $count = 0; while ($myrow = mysql_fetch_assoc($result)) { $id = $myrow["id"]; $my_array[] = $id; }

    ----- Original Message ----- From: "Petre Agenbag" <internetvsa.co.za> To: <php-generallists.php.net> Sent: Wednesday, October 30, 2002 4:40 AM Subject: [PHP] POST-ing or GET-ing an array

    > Hi > I KNOW I'm gonna get flamed, but I can't find this anywhere in my books > or in the manual, yet I know I've read it somewhere. > > I created an array in a loop as such: > > $sql = "select stuff from my_table"; > $result = mysql_query($sql); > $count = 0; > > while ($myrow = mysql_fetch_assoc($result)) { > $id = $myrow["id"]; > $my_array[$count] = $id; > } > > > Now, I want to send that array to another page with a normal: > > <a href="next_page.php?array=$my_array">Next</a> > > BUT, that obviously doesn't work... > > Please just help me out, I'm suffering... > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

    attached mail follows:


    Hello,

    On 10/30/2002 07:11 PM, Michael Zornek wrote: >>>I've written a nice php/mysql site that let's you search for hospitals and >>>community colleges by zip code. The search is built upon some math that >>>figures out distances by a zip's lat and lon cords. >>> >>>My problem is that my current ZIP table (bout 42,000 rows) seems to be >>>flawed. There are a ton of zip codes round california that have all the same >>>lat and lons. There are other dups as well. So I'm looking for some new >>>data. >>> >>>Does anyone know a good source for this type of info? >> >>This class may be used to figure the coordinates of a location given the >>IP address of a computer (the user computer): >> >>http://www.phpclasses.org/netgeoclass > > > I can't really use that class. I'm looking for a table of zip codes, with > relating lat and lon cords. I already wrote the calculation code. That PHP > class is reliant on a web service which I'm not interested in.

    Maybe this other class is more like what you want.

    http://ww.phpclasses.org/phpziplocator

    -- 
    

    Regards, Manuel Lemos

    attached mail follows:


    hi all,

    I got a html page, on which I put a form, with quit a lot of questions (all kinds: textboxes, dropdowns, check, radiobuttons, ...). Its for an online survey Im doing.

    Now Im looking for a php script that puts all the data in a textfile, the moment someone clicks on Submit. It should write all data (also the values of the radiobuttons and stuff) in one line in a textfile, the fields seperated by ; eg. If there is a field left blank, there should also be a blank field in the txtfile. (reason: i want to be able to import it in some other programs). The next time someone fills in the form, id like the script to open the file again and simply add a line, with the answers of this next person.

    Ive been looking everywhere, but didnt find nething that was of much use; mainly there are a lot of scritps out there to mail the results to an emailadress, but I want it in a txtfile.

    I dont know how to write php, so perhaps someone could help me by telling me where to find it... (Cant even read php, so configuration should be very easy and clear)

    Thanks a lot Tharkis

    attached mail follows:


    howdy,

    I was wondering if someone could point me to a place where i can find out how to or give me some pointers on getting the day & date after x number of days.. I'm also using getting the current date by

    $date = date("D M d, Y ");

    TIA

    Cheers

    Peter "the only dumb question is the one that wasn't asked"

    attached mail follows:


    > I was wondering if someone could point me to a place where i can find out > how to or give me some pointers on getting the day & date after x number > of > days.. I'm also using getting the current date by > > $date = date("D M d, Y ");

    This question was already asked today... do a little searching.

    $date = strtotime("now + X days");

    ---John Holmes...

    attached mail follows:


    apologies to all 4 my laziness, I should have looked around 1st. I'm still 1/2 asleep .. but that's no excuse.. so sorry all :)

    attached mail follows:


    Yes, this works, but only if I include the file before the use of the variable, but, what if I use the include() after the use of the variable?

    --
    Trasca Ion-Catalin
    "Tjoumaidis" <ttjoumlistsfreemail.gr> wrote in message
    news:3DBF8DE6.70701freemail.gr...
    > Yes if you include the file
    >
    > include ("file");
    >
    > then you can refer to any of the variables the file contains
    >
    >
    > Trasca Ion-Catalin wrote:
    > > It's posible to call a variable from another file?
    > >
    > > --
    > > Trasca Ion-Catalin
    > >
    > >
    >
    >
    

    attached mail follows:


    try it and see .. though I am pretty sure that it won't work unless you define the variable else where in the file b4 calling it. other wise the variable will either be blank or give you an error saying undefined variable if it's used before the include.

    > -----Original Message----- > From: Trasca Ion-Catalin [mailto:tic2000home.ro] > Sent: Thursday, 31 October 2002 10:56 AM > To: php-generallists.php.net > Subject: [PHP] Re: Yet another question > > > Yes, this works, but only if I include the file before the use of the > variable, but, what if I use the include() after the use of the variable? > > -- > Trasca Ion-Catalin > "Tjoumaidis" <ttjoumlistsfreemail.gr> wrote in message > news:3DBF8DE6.70701freemail.gr... > > Yes if you include the file > > > > include ("file"); > > > > then you can refer to any of the variables the file contains > > > > > > Trasca Ion-Catalin wrote: > > > It's posible to call a variable from another file? > > > > > > -- > > > Trasca Ion-Catalin > > > > > > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

    attached mail follows:


    Hello,

    I'm a PHP newbie who needs to serve a custom file format and turn it into valid XHTML. I can imagine someone using a similar technique to remove all comments from HTML files as they're being served, etc.

    I've configured Apache so that it assigns the file extension to PHP and prepends PHP code to create a pageServer object and cal