OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
php-general-digest-help_at_lists.php.net
Date: Wed Nov 20 2002 - 01:09:33 CST

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

    php-general Digest 20 Nov 2002 07:09:33 -0000 Issue 1715

    Topics (messages 125134 through 125199):

    Re: templates
            125134 by: Ernest E Vogelsinger

    Re: new php version
            125135 by: Ford, Mike [LSS]
            125137 by: bbonkosk.tampabay.rr.com

    Re: isapi mod on iis
            125136 by: Ernest E Vogelsinger

    Re: Capturing multiple select with Javascript - nearly ther
            125138 by: Phoebe Bright

    how to read text file one line at a time
            125139 by: Kelly Meeks
            125140 by: Rasmus Lerdorf
            125141 by: Marco Tabini
            125142 by: Jason Wong
            125143 by: Van Andel, Robert
            125145 by: Nick Eby

    Re: PHP SAPI modules
            125144 by: Rasmus Lerdorf
            125166 by: nicos.php.net

    catching a robot or spider - asking too
            125146 by: Vincent Vandemeulebrouck
            125148 by: Steve Vernon
            125152 by: Ernest E Vogelsinger

    this oop-script still doesn't work
            125147 by: Tularis
            125159 by: Jonathan Sharp
            125162 by: Nick Eby

    mailing by SMTP
            125149 by: Siamak
            125154 by: Jonathan Sharp
            125158 by: Ernest E Vogelsinger
            125160 by: Manuel Lemos
            125185 by: Jeff Bluemel

    Header Location not working
            125150 by: Baumann Reto
            125151 by: BigDog
            125153 by: Leif K-Brooks
            125155 by: Ernest E Vogelsinger
            125156 by: Chris Shiflett
            125193 by: Jason Wong

    How can database be exported to Microsoft Access?
            125157 by: Scott Teresi
            125179 by: UberGoober

    plus sign has changed to space after POST
            125161 by: bhkwan.ThoughtWorks.com
            125163 by: John W. Holmes
            125164 by: bhkwan.ThoughtWorks.com
            125165 by: John W. Holmes
            125168 by: bhkwan.ThoughtWorks.com
            125171 by: John W. Holmes
            125188 by: bhkwan.ThoughtWorks.com
            125189 by: John W. Holmes
            125194 by: Chris Shiflett
            125195 by: Bob Eldred
            125199 by: Hugh Danaher

    Seconds to minutes
            125167 by: Bob Irwin
            125170 by: Matt
            125172 by: John W. Holmes
            125173 by: Bob Irwin
            125174 by: Support . Fourthrealm.com
            125176 by: Morgan Hughes
            125178 by: Jonathan Sharp
            125182 by: Bob Irwin

    cURL with PHP Help?
            125169 by: Steve Keller
            125180 by: UberGoober

    Listing a table
            125175 by: Marco Bleeker
            125177 by: Matt
            125181 by: UberGoober

    how to pass multiple $_GET variables
            125183 by: Jeff Bluemel
            125184 by: Leif K-Brooks
            125186 by: BigDog
            125187 by: Jeff Bluemel

    Help with functions()
            125190 by: Beauford 2002
            125192 by: Leif K-Brooks

    exploding strings
            125191 by: Michael P. Carel

    REPLY NEEDED
            125196 by: MICHAEL OSHODI
            125197 by: OrangeHairedBoy
            125198 by: Hugh Danaher

    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:


    At 19:10 19.11.2002, Adam said:
    --------------------[snip]--------------------
    >Thanks, but not sure if this is what i'm looking for....
    >
    >I just want to setup the PHP script so that the variable $filename can be
    >changed via a link such as 'index.php?filename="file.xml"',
    >causing the script to parse the appropriate file.
    --------------------[snip]--------------------

    When you execute the URL
       index.php?filename=file.xml
    (note - no quotes)
    your PHP script will have this value readily accessible as $filename (if
    register_globals is on, as outlined in many threads the last days).

    With the latest PHP versions, register_globals defaults to off, so you
    don't have "$filename" but rather $_GET['filename'] available.

    If your PHP host has register_globals off, but you need parameters as
    globals, you can put this little script at the beginning of your PHP file:

    foreach ($_REQUEST as $varname => $value) {
            $var = '$'.$varname;
            global $$var;
            $$var = $value;
    }

    You will then be able to access parameters as if register_globals would be on.

    -- 
       >O     Ernest E. Vogelsinger
       (\)    ICQ #13394035
        ^     http://www.vogelsinger.at/
    

    attached mail follows:


    > -----Original Message----- > From: Richard Pijnenburg [mailto:richard.mailsofthome.net] > Sent: 19 November 2002 18:48 > > When will there be a new release of php?

    Well, http://www.php.net/ says:

    [14-Nov-2002] PHP 4.3.0RC1 has been released. This is the first release candidate and ....

    So, er, soon...?

    Cheers!

    Mike

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

    attached mail follows:


    I think there is a PHP release mailing list, that should keep you in the loop, or check php.net. The news is usually fresh there. -Brad

    > When will there be a new release of php? > > With kind regards, > > Richard Pijnenburg > Klik-on Internet Solutions > >

    attached mail follows:


    At 19:37 19.11.2002, Chris Edwards said: --------------------[snip]-------------------- >is anyone running the isapi mod on iis? why does it ask for authenitcation >when I run a script? --------------------[snip]--------------------

    From the docs (http://www.php.net/manual/en/features.http-auth.php):

    [...] Also note that this does not work using Microsoft's IIS server and the CGI version of PHP due to a limitation of IIS. [...]

    So said, HTTP authentication cannot be done on IIS. You need to write your own login form.

    -- 
       >O     Ernest E. Vogelsinger
       (\)    ICQ #13394035
        ^     http://www.vogelsinger.at/
    

    attached mail follows:


    Many thanks for your reply, I will add the bugs site to my list of things to search before posting here!

    As I am putting the code onto a number of servers where I can't control the PHP settings, I will need to devise a work around. Good to know it's not my poor coding. Phoebe.

    Mike Ford wrote: >>-----Original Message----- >>From: Phoebe Bright [mailto:phoebebrightspamcop.net] >>Sent: 19 November 2002 14:20 >> >>My remaining problem is that the array that PHP sees only >>has the final >>few characters of the values it should have. >> >>This is the result of print_r after selecting two items >>(analysis1 and >>analysis3): >> >> Array ( [0] => ysis1 [1] => ysis3 ) >> >>expecting: >> >> Array ( [0] => analysis1 [1] => analysis3 ) > > > Known bug. A quick search of http://bugs.php.net/ for "character cut off > form array" reveals half a dozen reports for this, of which this is probably > the most informative: http://bugs.php.net/bug.php?id=19518. > > Basically, you need to configure PHP without --enable-mbstr-enc-trans (or > install 4.3.0RC1, if that's acceptable for you). > > Cheers! > > Mike > > --------------------------------------------------------------------- > Mike Ford, Electronic Information Services Adviser, > Learning Support Services, Learning & Information Services, > JG125, James Graham Building, Leeds Metropolitan University, > Beckett Park, LEEDS, LS6 3QS, United Kingdom > Email: m.fordlmu.ac.uk > Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

    attached mail follows:


    here's an example of a text file I need to read...

    abcd|test1|morevalues|otherstuff efghijklm|a;kd;laskf;alskdjf;alskdf;askldjasldkf|;askd;lakjl;asdf|al;sdjf;alf

    I believe each line is seperated by a carriage return.

    How can I read this in one line at a time in to a variable?

    I'm assuming that I could then explode that variable using the pipe as the seperator text?

    Kelly

    attached mail follows:


    $array = file($filename);

    Each line of the array will have a line of your file.

    Or, if you want to do it line by line:

    $fp = fopen($filename,'r'); while(!feof($fp)) { $line = fgets($fp); } fclose($fp);

    -Rasmus

    On Tue, 19 Nov 2002, Kelly Meeks wrote:

    > here's an example of a text file I need to read... > > abcd|test1|morevalues|otherstuff > efghijklm|a;kd;laskf;alskdjf;alskdf;askldjasldkf|;askd;lakjl;asdf|al;sdjf;alf > > I believe each line is seperated by a carriage return. > > How can I read this in one line at a time in to a variable? > > I'm assuming that I could then explode that variable using the pipe as the seperator text? > > Kelly >

    attached mail follows:


    There are a couple of ways:

    - If the file is small enough, I suppose you could use the http://ca.php.net/manual/en/function.file.php file function, which loads the file in array (one element per line).

    - If the file is bigger, you can use the normal fopen() functionality and then use http://ca.php.net/manual/en/function.fgets.php fgets().

    Hope this helps!

    -- 
    ------------
    php|architect - The magazine for PHP Professionals
    The first monthly worldwide magazine dedicated to PHP programmers
    

    Come visit us at http://www.phparch.com!

    attached mail follows:


    here's an example of a text file I need to read...

    abcd|test1|morevalues|otherstuff efghijklm|a;kd;laskf;alskdjf;alskdf;askldjasldkf|;askd;lakjl;asdf|al;sdjf;alf

    I believe each line is seperated by a carriage return.

    How can I read this in one line at a time in to a variable?

    I'm assuming that I could then explode that variable using the pipe as the seperator text?

    Kelly

    --=-mvDyjW4XKzVw8Mw2AIMP--

    attached mail follows:


    On Wednesday 20 November 2002 03:45, Kelly Meeks wrote: > here's an example of a text file I need to read... > > abcd|test1|morevalues|otherstuff > efghijklm|a;kd;laskf;alskdjf;alskdf;askldjasldkf|;askd;lakjl;asdf|al;sdjf;a >lf > > I believe each line is seperated by a carriage return. > > How can I read this in one line at a time in to a variable? > > I'm assuming that I could then explode that variable using the pipe as the > seperator text?

    file() will read the whole file into an array, then use foreach() to loop through each line.

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

    /* Don't vote -- it only encourages them! */

    attached mail follows:


    This works too.

    $fp = fopen($filename,'r'); while($line=fgets($fp)) { //do what you need to do with $line } fclose($fp);

    Robbert van Andel

    -----Original Message----- From: Rasmus Lerdorf [mailto:rasmusphp.net] Sent: Tuesday, November 19, 2002 11:44 AM To: Kelly Meeks Cc: php-generallists.php.net Subject: Re: [PHP] how to read text file one line at a time

    $array = file($filename);

    Each line of the array will have a line of your file.

    Or, if you want to do it line by line:

    $fp = fopen($filename,'r'); while(!feof($fp)) { $line = fgets($fp); } fclose($fp);

    -Rasmus

    On Tue, 19 Nov 2002, Kelly Meeks wrote:

    > here's an example of a text file I need to read... > > abcd|test1|morevalues|otherstuff > efghijklm|a;kd;laskf;alskdjf;alskdf;askldjasldkf|;askd;lakjl;asdf|al;sdjf;al f > > I believe each line is seperated by a carriage return. > > How can I read this in one line at a time in to a variable? > > I'm assuming that I could then explode that variable using the pipe as the seperator text? > > Kelly >

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

    "The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers."

    attached mail follows:


    even further, instead of using fgets() to get each line and then exploding it, you can use fgetcsv() which reads the line and breaks it into chunks by any delimiter, returning the chunks in an array.

    $fp = fopen($filename, "r"); while (!feof($fp)) { $line = fgetcsv($fp, 99999, "|"); ... } fclose($fp);

    "Rasmus Lerdorf" <rasmusphp.net> wrote in message news:Pine.LNX.4.44.0211191142250.4274-100000www.lerdorf.com... > $array = file($filename); > > Each line of the array will have a line of your file. > > Or, if you want to do it line by line: > > $fp = fopen($filename,'r'); > while(!feof($fp)) { > $line = fgets($fp); > } > fclose($fp); > > -Rasmus > > On Tue, 19 Nov 2002, Kelly Meeks wrote: > > > here's an example of a text file I need to read... > > > > abcd|test1|morevalues|otherstuff > > efghijklm|a;kd;laskf;alskdjf;alskdf;askldjasldkf|;askd;lakjl;asdf|al;sdjf;al f > > > > I believe each line is seperated by a carriage return. > > > > How can I read this in one line at a time in to a variable? > > > > I'm assuming that I could then explode that variable using the pipe as the seperator text? > > > > Kelly > > >

    attached mail follows:


    Some are more stable than others. Which particular SAPI module are you asking about?

    On Tue, 19 Nov 2002, Chris Edwards wrote:

    > Does anyone know if the PHP SAPI modules are better in the newer releases? > Are they currently stable enough for production websites? > > -- > Chris Edwards > Web Application Developer > Outer Banks Internet, Inc. > 252-441-6698 > chris.edwardsobinet.com > http://www.OuterBanksInternet.com > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    Hello,

    Every not EXPERIMENTAL modules are supposed to be stable. There still might have some bugs and bug-fixes too..

    --
    Regards.
    M.CHAILLAN Nicolas
    nicosphp.net
    www.WorldAKT.com Hébergement de sites internets.
    

    "Chris Edwards" <chris.edwardsobinet.com> a écrit dans le message de news: 04dd01c28ff1$cc116ea0$4300a8c0development... > Does anyone know if the PHP SAPI modules are better in the newer releases? > Are they currently stable enough for production websites? > > -- > Chris Edwards > Web Application Developer > Outer Banks Internet, Inc. > 252-441-6698 > chris.edwardsobinet.com > http://www.OuterBanksInternet.com >

    attached mail follows:


    > does anybody know a way to make a distinction > between robots and users? > should I use the user agent? Or is this not a safe method. > If the visitor is a spider/robot I want to include some script > containing extra URL's for the robot.

    I am very interested too in this, as I received visits from a site with a rather strange user agent (well, at least, that I did not expect) on a web site of mine. The user agent was something like

    "SurveyBot/2.2 <a href=\'http://www.whois.sc\'>Whois Source</a>"

    I really don't know how I should generate my pages in this case, what kind of stylesheet I should include to make the page correct (if I even have to).

    Anyway, the real question behind is :

    Is there a good way to handle the user agent info?

    Vincent Vandemeulebrouck http://www.leguerriersorde.com/

    attached mail follows:


    From what I think I heard on another group was that it dosent matter what stylesheet you use, it will just read the file, getting words and following links. Cant remember where I read this, think it was a forum, and they were argueing about robots and whether they follow links specified in JavaScript.

    One person said he was going to do a link to a page which only robots will follow, say do it on a 1*1 pixel so no chance of a user to follow it. And on that page do list of keywords as most robots ignore to many keywords in meta tags. This would mean doing the limit robot meta tags to only the home page and the robot page.

    So you could do a page with your links on, that is linked from the home page but hard to click on! And do the meta tags on other pages to stop robots.

    Could work?!

    Love,

    Steve XX

    > > does anybody know a way to make a distinction > > between robots and users? > > should I use the user agent? Or is this not a safe method. > > If the visitor is a spider/robot I want to include some script > > containing extra URL's for the robot. > > I am very interested too in this, as I received visits from a site with a > rather strange user agent (well, at least, that I did not expect) on a web > site of mine. The user agent was something like > > "SurveyBot/2.2 <a href=\'http://www.whois.sc\'>Whois Source</a>" > > I really don't know how I should generate my pages in this case, what kind > of stylesheet I should include to make the page correct (if I even have to). > > Anyway, the real question behind is : > > Is there a good way to handle the user agent info? > > > Vincent Vandemeulebrouck > http://www.leguerriersorde.com/ > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    At 23:08 19.11.2002, Vincent Vandemeulebrouck said: --------------------[snip]-------------------- >> does anybody know a way to make a distinction >> between robots and users? >> should I use the user agent? Or is this not a safe method. >> If the visitor is a spider/robot I want to include some script >> containing extra URL's for the robot. > >I am very interested too in this, as I received visits from a site with a >rather strange user agent (well, at least, that I did not expect) on a web >site of mine. The user agent was something like > >"SurveyBot/2.2 <a href=\'http://www.whois.sc\'>Whois Source</a>" > >I really don't know how I should generate my pages in this case, what kind >of stylesheet I should include to make the page correct (if I even have to). > >Anyway, the real question behind is : > >Is there a good way to handle the user agent info? --------------------[snip]--------------------

    Any well behaved (!!) robot nowadays identifies itself in the UserAgent line. Googling for "user agent" I found on page 1, pos.6: http://www.icehousedesigns.com/useragents/spiderlist.php

    Might be worth a look...

    -- 
       >O     Ernest E. Vogelsinger
       (\)    ICQ #13394035
        ^     http://www.vogelsinger.at/
    

    attached mail follows:


    ok, I have gotten great help here already, but it still doesn't work, it returns a object not found error (on the $foo->bar() line). I want to change $overall->foo->bar() to $foo->bar... any tips? or help??

    thanx! - Tularis

    <?php

    class overall { var $loaded; function load($class){ eval("global \$$class;"); // This didn't work either //$this->loaded[] = $class; // see the comments with the foreach() eval("\$this->$class = new $class;"); return true; } }

    class foo { var $bar;

    // Constructor function bar(){ if(!isset($this->bar)){ $this->bar = 1; }else{ $this->bar++; } echo $this->bar."<br>"; } }

    // Start actual loading $overall = new overall; $overall->load('foo');

    /* foreach($overall->loaded as $key=>$val){ // didn't work.. I commented this out, because I thought it MIGHT interfere with the other way $val =& $overall->$val; // both don't work though :( } */

    $overall->foo->bar(); $overall->foo->bar(); $overall->foo->bar(); $overall->foo->bar();

    // it doesn't understand this $foo->bar(); ?>

    attached mail follows:


    $overall->foo->bar() works for me. also there's no need for the eval('global...') line

    Apache 1.3.27, PHP 4.2.2

    -js

    Tularis wrote: > ok, I have gotten great help here already, but it still doesn't work, > it returns a object not found error (on the $foo->bar() line). I want to > change $overall->foo->bar() to $foo->bar... any tips? or help?? > > thanx! > - Tularis > > <?php > > class overall { > var $loaded; > > function load($class){ > eval("global \$$class;"); // This didn't work either > //$this->loaded[] = $class; // see the comments with the foreach() > eval("\$this->$class = new $class;"); > return true; > } > } > > class foo { > var $bar; > > // Constructor > function bar(){ > if(!isset($this->bar)){ > $this->bar = 1; > }else{ > $this->bar++; > } > echo $this->bar."<br>"; > } > } > > // Start actual loading > $overall = new overall; > $overall->load('foo'); > > /* > foreach($overall->loaded as $key=>$val){ // didn't work.. I commented > this out, because I thought it MIGHT interfere with the other way > $val =& $overall->$val; // both don't work though :( > } > */ > > $overall->foo->bar(); > $overall->foo->bar(); > $overall->foo->bar(); > $overall->foo->bar(); > > // it doesn't understand this > $foo->bar(); > ?> > >

    attached mail follows:


    seems to me that you're trying to have an object's member behave as if it had global scope. you never say "$foo = new bar()". instead you say "$this->foo = new foo()" where $this is an instance of Overall. you can't instantiate a Foo as a member of an Overall instance, and then expect to talk to that Foo without going thru the instance itself (which Jonathan suggested).

    so, either use $overall->foo to talk to the Foo instance, or you could do this in Overall::load():

    function load($class) { global $$class; $$class = new $class(); $this->$class =& $$class; }

    which i think will create the Foo instance in global scope, and give the Overall instance a member that is a reference to that same object.

    "Tularis" <tularisxmbforum.com> wrote in message news:20021119221514.96610.qmailpb1.pair.com... > ok, I have gotten great help here already, but it still doesn't work, > it returns a object not found error (on the $foo->bar() line). I want to > change $overall->foo->bar() to $foo->bar... any tips? or help?? > > thanx! > - Tularis > > <?php > > class overall { > var $loaded; > > function load($class){ > eval("global \$$class;"); // This didn't work either > //$this->loaded[] = $class; // see the comments with the foreach() > eval("\$this->$class = new $class;"); > return true; > } > } > > class foo { > var $bar; > > // Constructor > function bar(){ > if(!isset($this->bar)){ > $this->bar = 1; > }else{ > $this->bar++; > } > echo $this->bar."<br>"; > } > } > > // Start actual loading > $overall = new overall; > $overall->load('foo'); > > /* > foreach($overall->loaded as $key=>$val){ // didn't work.. I commented > this out, because I thought it MIGHT interfere with the other way > $val =& $overall->$val; // both don't work though :( > } > */ > > $overall->foo->bar(); > $overall->foo->bar(); > $overall->foo->bar(); > $overall->foo->bar(); > > // it doesn't understand this > $foo->bar(); > ?> >

    attached mail follows:


    hi how can i send a mail by a smtp server from a php page? thanks

    attached mail follows:


    phpmailer.sourceforget.net

    -js

    Siamak wrote: > hi > how can i send a mail by a smtp server from a php page? > thanks > > >

    attached mail follows:


    At 11:18 20.11.2002, Siamak said: --------------------[snip]-------------------- >hi >how can i send a mail by a smtp server from a php page? >thanks --------------------[snip]--------------------

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

    -- 
       >O     Ernest E. Vogelsinger
       (\)    ICQ #13394035
        ^     http://www.vogelsinger.at/
    

    attached mail follows:


    Hello,

    On 11/20/2002 08:18 AM, Siamak wrote: > hi > how can i send a mail by a smtp server from a php page?

    If you are using Windows that is is the default method.

    If not, you may want to try these classes:

    http://www.phpclasses.org/smtpclass http://www.phpclasses.org/mimemessage

    -- 
    

    Regards, Manuel Lemos

    attached mail follows:


    I used this link for sendmail on linux, and it works great... you'll have a very hard time beating it.

    Jeff "Manuel Lemos" <mlemosacm.org> wrote in message news:20021119232046.42537.qmailpb1.pair.com... > Hello, > > On 11/20/2002 08:18 AM, Siamak wrote: > > hi > > how can i send a mail by a smtp server from a php page? > > If you are using Windows that is is the default method. > > If not, you may want to try these classes: > > http://www.phpclasses.org/smtpclass > http://www.phpclasses.org/mimemessage > > -- > > Regards, > Manuel Lemos >

    attached mail follows:


    Hi all

    Does somebody know if there is a potential problem with Header("Location: ...."); not working properly?

    I have a redirection, but it seems that on some browser, this doesn't work. Instead of the redirection, the same page is requested again!

    I'm also using sessions and html-post request to get to this page (probably they are messing things up). On most browser, the setup is working very well...

    Thanks for the help reto

    attached mail follows:


    What browsers are having the problems?

    On Tue, 2002-11-19 at 15:36, Baumann Reto wrote: > Hi all > > Does somebody know if there is a potential problem with > Header("Location: ...."); > not working properly? > > I have a redirection, but it seems that on some browser, this doesn't work. > Instead of the redirection, the same page is requested again! > > I'm also using sessions and html-post request to get to this page (probably > they are messing things up). > On most browser, the setup is working very well... > > Thanks for the help > reto

    -- 
    .: B i g D o g :.
    

    attached mail follows:


    Are you using an exact path or a relative url (such as somepage.php)? It should be absolute (such as http://someserver/somepage.php).

    Baumann Reto wrote:

    >Hi all > >Does somebody know if there is a potential problem with > Header("Location: ...."); >not working properly? > >I have a redirection, but it seems that on some browser, this doesn't work. >Instead of the redirection, the same page is requested again! > >I'm also using sessions and html-post request to get to this page (probably >they are messing things up). >On most browser, the setup is working very well... > >Thanks for the help >reto > > > > >

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


    At 23:36 19.11.2002, Baumann Reto said: --------------------[snip]-------------------- >Hi all > >Does somebody know if there is a potential problem with > Header("Location: ...."); >not working properly? > >I have a redirection, but it seems that on some browser, this doesn't work. >Instead of the redirection, the same page is requested again! > >I'm also using sessions and html-post request to get to this page (probably >they are messing things up). >On most browser, the setup is working very well... --------------------[snip]--------------------

    Are you on IIS? I remember that there are problems with header('Location: url'), as far as I can remember I once resorted to explicitly transmit header("HTTP/1.0 302 Moved\nLocation: newurl"); which would result in 2 adjacent headers... but I don't remember exactly, it's already some time ago

    -- 
       >O     Ernest E. Vogelsinger
       (\)    ICQ #13394035
        ^     http://www.vogelsinger.at/
    

    attached mail follows:


    --- Baumann Reto <rbaumibluewin.ch> wrote: > Does somebody know if there is a potential problem with > Header("Location: ...."); > not working properly?

    Try this code:

    <? header("Location: http://www.google.com/"); ?>

    If this does not work, let us know.

    Chris

    attached mail follows:


    On Wednesday 20 November 2002 06:36, Baumann Reto wrote: > Hi all > > Does somebody know if there is a potential problem with > Header("Location: ...."); > not working properly? > > I have a redirection, but it seems that on some browser, this doesn't work. > Instead of the redirection, the same page is requested again!

    Do you have exit() after using header()? You should.

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

    /* U X e dUdX, e dX, cosine, secant, tangent, sine, 3.14159... */

    attached mail follows:


    I'm looking for a PHP library that would allow me to write in the native file format of Microsoft Access (".mdb"). This would allow me to "hand" a copy of a MySQL database to my client. I'm hosted on unix, and I'm not familiar with ODBC, nor do I have access to MS Access running on a server.

    Does something like this exist? I haven't found anything helpful at HotScripts.com or php.net.

    Another possibility might be for me to use PHP's built-in support for .dbf files. However, my hosting company doesn't use the "--enable-dbase" flag on their PHP installation. Also, I've heard that string fields longer than 255 characters can't be exported into a dBase file.

    Besides ODBC, is my only option to write a quick tab-delimited export routine for my data?

    Thanks for any helpful advice!

    Scott Teresi steresimac.com

    attached mail follows:


    Thats a toughy.. Your best bet is going to be dump the database to text, then find an importer into MS Access.. Yes, I know you said you don't have access, but I don't think you'll be able to create the access database without it. Mabey you have a friend or something with it.

    There are a bunch of contributed programs here: http://www.mysql.com/doc/en/Contrib.html that might help you convert the mysql dump into something you can import into access, then you'll have your file. Otherwise an odbc conduit into access would most likely be best.

    sorry bro, I don't know of much else.

    "Scott Teresi" <steresimac.com> wrote in message news:BA0029B5.41DE%steresimac.com... > I'm looking for a PHP library that would allow me to write in the native > file format of Microsoft Access (".mdb"). This would allow me to "hand" a > copy of a MySQL database to my client. I'm hosted on unix, and I'm not > familiar with ODBC, nor do I have access to MS Access running on a server. > > Does something like this exist? I haven't found anything helpful at > HotScripts.com or php.net. > > Another possibility might be for me to use PHP's built-in support for .dbf > files. However, my hosting company doesn't use the "--enable-dbase" flag on > their PHP installation. Also, I've heard that string fields longer than 255 > characters can't be exported into a dBase file. > > Besides ODBC, is my only option to write a quick tab-delimited export > routine for my data? > > Thanks for any helpful advice! > > Scott Teresi > steresimac.com >

    attached mail follows:


    After upgrade to 4.2.3, plus "+" sign has changed to space after POST. I have checked the mailing list but can't find any help to turn this off forever! is this a bug in PHP?

    thanks

    attached mail follows:


    > -----Original Message----- > From: bhkwanThoughtWorks.com [mailto:bhkwanThoughtWorks.com] > Sent: Tuesday, November 19, 2002 6:43 PM > To: php-generallists.php.net > Subject: [PHP] plus sign has changed to space after POST > > After upgrade to 4.2.3, plus "+" sign has changed to space after POST. I > have checked the mailing list but can't find any help to turn this off > forever! is this a bug in PHP? > > thanks

    Spaces are encoded as plus signed or %20 in the URL, depending on the method you use. PHP will automatically urldecode() the values passed in the URL apparently. If you are trying to pass an actual + sign, you need to encode it with urlencode() or rawurlencode().

    ---John Holmes...

    attached mail follows:


    I have tried this but the problem is it change the other special character as well. For example, $ to %24, etc.

    If people pass a string like "abc+def$ghi", I want to save the exact string to the database rather than "abc+def%24ghi". I can't do a translation of %24 to $ before saving the string to the database because user might input a string like "abc+%3423324hello%23ddd"

    "John W. Holmes" <holmes072000charter.net> 11/19/2002 03:52 PM Please respond to holmes072000

    To: <bhkwanThoughtWorks.com>, <php-generallists.php.net> cc: Subject: RE: [PHP] plus sign has changed to space after POST

    > -----Original Message----- > From: bhkwanThoughtWorks.com [mailto:bhkwanThoughtWorks.com] > Sent: Tuesday, November 19, 2002 6:43 PM > To: php-generallists.php.net > Subject: [PHP] plus sign has changed to space after POST > > After upgrade to 4.2.3, plus "+" sign has changed to space after POST. I > have checked the mailing list but can't find any help to turn this off > forever! is this a bug in PHP? > > thanks

    Spaces are encoded as plus signed or %20 in the URL, depending on the method you use. PHP will automatically urldecode() the values passed in the URL apparently. If you are trying to pass an actual + sign, you need to encode it with urlencode() or rawurlencode().

    ---John Holmes...

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

    attached mail follows:


    You have to encode it on one end, and decode it on the other.

    Use

    $url_safe = urlencode($string);

    and pass $url_safe in the URL. Then on the receiving end, use

    $back_to_normal = urldecode($url_safe_string);

    ---John Holmes...

    > -----Original Message----- > From: bhkwanThoughtWorks.com [mailto:bhkwanThoughtWorks.com] > Sent: Tuesday, November 19, 2002 7:06 PM > To: holmes072000charter.net > Cc: bhkwanThoughtWorks.com; php-generallists.php.net > Subject: RE: [PHP] plus sign has changed to space after POST > > I have tried this but the problem is it change the other special character > as well. For example, $ to %24, etc. > > If people pass a string like "abc+def$ghi", I want to save the exact > string to the database rather than "abc+def%24ghi". I can't do a > translation of %24 to $ before saving the string to the database because > user might input a string like "abc+%3423324hello%23ddd" > > > > > > > "John W. Holmes" <holmes072000charter.net> > 11/19/2002 03:52 PM > Please respond to holmes072000 > > > To: <bhkwanThoughtWorks.com>, <php-generallists.php.net> > cc: > Subject: RE: [PHP] plus sign has changed to space after > POST > > > > -----Original Message----- > > From: bhkwanThoughtWorks.com [mailto:bhkwanThoughtWorks.com] > > Sent: Tuesday, November 19, 2002 6:43 PM > > To: php-generallists.php.net > > Subject: [PHP] plus sign has changed to space after POST > > > > After upgrade to 4.2.3, plus "+" sign has changed to space after POST. > I > > have checked the mailing list but can't find any help to turn this off > > forever! is this a bug in PHP? > > > > thanks > > Spaces are encoded as plus signed or %20 in the URL, depending on the > method you use. PHP will automatically urldecode() the values passed in > the URL apparently. If you are trying to pass an actual + sign, you need > to encode it with urlencode() or rawurlencode(). > > ---John Holmes... > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    might be my php code has problem the following code fragment will keep "+" to "+" but "$" to "%24"

    <? echo urlencode($_POST['test']); ?> <form action='testp.php' method=POST> <input type=text value='' name=test> <?php $test=urldecode($test); ?> <input type=submit value='submit'> </form>

    "John W. Holmes" <holmes072000charter.net> 11/19/2002 04:12 PM Please respond to holmes072000

    To: <bhkwanThoughtWorks.com> cc: <php-generallists.php.net> Subject: RE: [PHP] plus sign has changed to space after POST

    You have to encode it on one end, and decode it on the other.

    Use

    $url_safe = urlencode($string);

    and pass $url_safe in the URL. Then on the receiving end, use

    $back_to_normal = urldecode($url_safe_string);

    ---John Holmes...

    > -----Original Message----- > From: bhkwanThoughtWorks.com [mailto:bhkwanThoughtWorks.com] > Sent: Tuesday, November 19, 2002 7:06 PM > To: holmes072000charter.net > Cc: bhkwanThoughtWorks.com; php-generallists.php.net > Subject: RE: [PHP] plus sign has changed to space after POST > > I have tried this but the problem is it change the other special character > as well. For example, $ to %24, etc. > > If people pass a string like "abc+def$ghi", I want to save the exact > string to the database rather than "abc+def%24ghi". I can't do a > translation of %24 to $ before saving the string to the database because > user might input a string like "abc+%3423324hello%23ddd" > > > > > > > "John W. Holmes" <holmes072000charter.net> > 11/19/2002 03:52 PM > Please respond to holmes072000 > > > To: <bhkwanThoughtWorks.com>, <php-generallists.php.net> > cc: > Subject: RE: [PHP] plus sign has changed to space after > POST > > > > -----Original Message----- > > From: bhkwanThoughtWorks.com [mailto:bhkwanThoughtWorks.com] > > Sent: Tuesday, November 19, 2002 6:43 PM > > To: php-generallists.php.net > > Subject: [PHP] plus sign has changed to space after POST > > > > After upgrade to 4.2.3, plus "+" sign has changed to space after POST. > I > > have checked the mailing list but can't find any help to turn this off > > forever! is this a bug in PHP? > > > > thanks > > Spaces are encoded as plus signed or %20 in the URL, depending on the > method you use. PHP will automatically urldecode() the values passed in > the URL apparently. If you are trying to pass an actual + sign, you need > to encode it with urlencode() or rawurlencode(). > > ---John Holmes... > > > > -- > 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:


    > might be my php code has problem the following code fragment will keep "+" > to "+" but "$" to "%24"

    That's what urlencode() is supposed to do.

    ---John Holmes...

    attached mail follows:


    This is the problem that I describe earlier in the thread. I can't save %24 in the database but "$".

    ie a user send a string "abc+def$ghi", I need to get the exact string back but not "abc+def%24ghi".

    so is this a bug in PHP??

    "John W. Holmes" <holmes072000charter.net> 11/19/2002 04:46 PM Please respond to holmes072000 To: <bhkwanThoughtWorks.com> cc: <php-generallists.php.net> Subject: RE: [PHP] plus sign has changed to space after POST

    > might be my php code has problem the following code fragment will keep "+" > to "+" but "$" to "%24"

    That's what urlencode() is supposed to do.

    ---John Holmes...

    attached mail follows:


    Show your code. If I pass a + sign in a form, it comes out as a plus sign in my data... I don't see your problem unless I do something like this:

    $data = "abc+def$ghi"; echo "<a href='link.php?data=$data'>Click Here</a>";

    Which is solved by using urlencode() before you place it in the link.

    ---John Holmes...

    > -----Original Message----- > From: bhkwanThoughtWorks.com [mailto:bhkwanThoughtWorks.com] > Sent: Tuesday, November 19, 2002 10:53 PM > To: holmes072000charter.net > Cc: php-generallists.php.net > Subject: RE: [PHP] plus sign has changed to space after POST > > This is the problem that I describe earlier in the thread. I can't save > %24 in the database but "$". > > ie > a user send a string "abc+def$ghi", I need to get the exact string back > but not "abc+def%24ghi". > > so is this a bug in PHP?? > > > > > > > > "John W. Holmes" <holmes072000charter.net> > 11/19/2002 04:46 PM > Please respond to holmes072000 > > To: <bhkwanThoughtWorks.com> > cc: <php-generallists.php.net> > Subject: RE: [PHP] plus sign has changed to space after > POST > > > > might be my php code has problem the following code fragment will keep > "+" > > to "+" but "$" to "%24" > > That's what urlencode() is supposed to do. > > ---John Holmes... >

    attached mail follows:


    --- bhkwanThoughtWorks.com wrote: > After upgrade to 4.2.3, plus "+" sign has changed to space after > POST. I have checked the mailing list but can't find any help to > turn this off forever! is this a bug in PHP?

    It is possible.

    When you post a form with your browser, the browser will URL encode all of the data and include it in the content section of the HTTP request. When the Web server receives this request and hands it off to PHP, the data is of course URL decoded.

    If I am understanding your comment correctly, it sounds like either: 1. The browser is failing to URL encode the + sign. 2. The form data is being URL decoded twice.

    Both of these scenarios seem unlikely. Try this sample code:

    <form action="test.php" method="post"> <input type="text" name="foo" value="<? echo $_POST["foo"]; ?>"> <input type="submit"> </form> <? phpinfo(); ?>

    This should basically appear to do nothing when you click the submit button. No matter what you enter in the text field, its value should not appear to change. If you can reproduce the errant behavior with this script, I would be interested in trying it out for myself an examining the output of the phpinfo() function.

    As an alternative, it would be helpful if you could show us the HTTP request and HTTP response from a sample transaction involving the sample code I just gave (leave out the phpinfo() call if you take this approach).

    See if that uncovers anything.

    Chris

    attached mail follows:


    I don't believe it has anything to do with PHP, to be honest. I've got scripts that are several versions of PHP old that do that. However, it makes no difference in execution of the script.

    case "show roster": { ... }

    catches submit=show+roster quite nicely.

    Bob

    ----- Original Message ----- From: <bhkwanThoughtWorks.com> To: <php-generallists.php.net> Sent: Tuesday, November 19, 2002 3:42 PM Subject: [PHP] plus sign has changed to space after POST

    > After upgrade to 4.2.3, plus "+" sign has changed to space after POST. I > have checked the mailing list but can't find any help to turn this off > forever! is this a bug in PHP? > > thanks

    attached mail follows:


    Just do ereg_replace(" ","+",$var) on the receiving end and be done with it. ----- Original Message ----- From: "Bob Eldred" <bobathomeaqfl.com> To: <php-generallists.php.net> Sent: Tuesday, November 19, 2002 11:24 PM Subject: Re: [PHP] plus sign has changed to space after POST

    > I don't believe it has anything to do with PHP, to be honest. I've got > scripts that are several versions of PHP old that do that. However, it > makes no difference in execution of the script. > > case "show roster": > { > ... > } > > catches submit=show+roster quite nicely. > > Bob > > ----- Original Message ----- > From: <bhkwanThoughtWorks.com> > To: <php-generallists.php.net> > Sent: Tuesday, November 19, 2002 3:42 PM > Subject: [PHP] plus sign has changed to space after POST > > > > After upgrade to 4.2.3, plus "+" sign has changed to space after POST. I > > have checked the mailing list but can't find any help to turn this off > > forever! is this a bug in PHP? > > > > thanks > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    Hey Guys,

    At the moment, I'm using quite a few lines of code to convert seconds to minutes and hours. I'm thinking, surely I'm missing something really simple! Is there a PHP function that converts seconds to minutes? Or is it a 4 or 5 (and not always that accurate) lines of code?

    Any ideas or input would be appreciated.

    Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom

    Scanned by PeNiCillin http://safe-t-net.pnc.com.au/

    attached mail follows:


    >From: "Bob Irwin" <bobstaff.pnc.com.au> > Sent: Tuesday, November 19, 2002 7:27 PM >Subject: [PHP] Seconds to minutes > At the moment, I'm using quite a few lines of code to convert seconds to > minutes and hours. I'm thinking, surely I'm missing something really > simple! Is there a PHP function that converts seconds to minutes? Or is it > a 4 or 5 (and not always that accurate) lines of code?

    You can do something like this: <?php $seconds = 265; $time = date('i s',$seconds); $minSecs = explode(' ',$time); echo "{$minSecs[0]} minutes and {$minSecs[1]} seconds<br>\n"; ?>

    attached mail follows:


    > You can do something like this: > <?php > $seconds = 265; > $time = date('i s',$seconds); > $minSecs = explode(' ',$time); > echo "{$minSecs[0]} minutes and {$minSecs[1]} seconds<br>\n"; > ?>

    That doesn't work for anything over 3599 seconds, though...

    ---John Holmes...

    attached mail follows:


    Its seems far more reliable than what I am using (dividing by 60 for minutes, 3600 for hours and doing rounding, exploding if its not a round number etc).

    Its only for measuring short times, so Matt's suggestion should work ok. Ideally though, because it will crop up from time to time, it'd be the go to do it right the first time.

    Anyone else know of a better way?

    Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom ----- Original Message ----- From: "John W. Holmes" <holmes072000charter.net> To: "'Matt'" <mschroebelepooch.com>; "'Bob Irwin'" <bobstaff.pnc.com.au>; <php-generallists.php.net> Sent: Wednesday, November 20, 2002 12:09 PM Subject: RE: [PHP] Seconds to minutes

    > > You can do something like this: > > <?php > > $seconds = 265; > > $time = date('i s',$seconds); > > $minSecs = explode(' ',$time); > > echo "{$minSecs[0]} minutes and {$minSecs[1]} seconds<br>\n"; > > ?> > > That doesn't work for anything over 3599 seconds, though... > > ---John Holmes... > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ >

    Scanned by PeNiCillin http://safe-t-net.pnc.com.au/

    attached mail follows:


    Bob, Instead of dividing, use modulus to get the exact number of remaining seconds, and then determine the minutes from that.

    Here is some code that I've quickly adapted from another language I use, to take the total minutes, and convert it to "hours:minutes" display.

    $totalmins = 193; $showmins = $totalmins%60; $showhrs = ($totalmins-$showmins)/60; echo $showhrs.":".$showmins;

    I haven't tested this, but it might give you a start. The same concept would apply to converting seconds to minutes...

    Peter

    At 12:16 PM 11/20/2002 +1100, Bob Irwin wrote: >Its seems far more reliable than what I am using (dividing by 60 for >minutes, 3600 for hours and doing rounding, exploding if its not a round >number etc). > >Its only for measuring short times, so Matt's suggestion should work ok. >Ideally though, because it will crop up from time to time, it'd be the go to >do it right the first time. > >Anyone else know of a better way? > >Best Regards >Bob Irwin >Server Admin & Web Programmer >Planet Netcom >----- Original Message ----- >From: "John W. Holmes" <holmes072000charter.net> >To: "'Matt'" <mschroebelepooch.com>; "'Bob Irwin'" <bobstaff.pnc.com.au>; ><php-generallists.php.net> >Sent: Wednesday, November 20, 2002 12:09 PM >Subject: RE: [PHP] Seconds to minutes > > > > > You can do something like this: > > > <?php > > > $seconds = 265; > > > $time = date('i s',$seconds); > > > $minSecs = explode(' ',$time); > > > echo "{$minSecs[0]} minutes and {$minSecs[1]} seconds<br>\n"; > > > ?> > > > > That doesn't work for anything over 3599 seconds, though... > > > > ---John Holmes... > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > > > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > > > > >Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php

    - - - - - - - - - - - - - - - - - - - - - Fourth Realm Solutions pbechardfourthrealm.com http://www.fourthrealm.com Tel: 519-739-1652 - - - - - - - - - - - - - - - - - - - - -

    attached mail follows:


    On Wed, 20 Nov 2002, Bob Irwin wrote:

    > Its seems far more reliable than what I am using (dividing by 60 for > minutes, 3600 for hours and doing rounding, exploding if its not a round > number etc). > > Its only for measuring short times, so Matt's suggestion should work ok. > Ideally though, because it will crop up from time to time, it'd be the go to > do it right the first time. > > Anyone else know of a better way?

    How about something like this, given $seconds containing the number of seconds?

    $secs = $seconds; $hours = $secs / 3600; $secs %= 3600; $mins = $secs / 60; $mins %= 60; $out = sprintf ("%d hour%s, %d minute%s, %d second%s", $hours, ($hours == 1 ? '' : 's'), $mins, ($mins == 1 ? '' : 's'), $secs, ($secs == 1 ? '' : 's'));

    -- 
       Morgan Hughes
       C programmer and highly caffeinated mammal.
       kyhmkyhm.com
       ICQ: 79293356
    

    attached mail follows:


    i'll just throw my code in here while we're at it...

    $seconds = 3600*5 + (60 * 10) + 45;

    $hours = floor( $seconds / 3600 ); $mins = floor( ($seconds % 3600) / 60 ); $seconds = floor( ($seconds % 60) );

    echo "Hours: $hours\nMins: $mins\nSeconds: $seconds\n";

    -js

    John W. Holmes wrote: >>You can do something like this: >><?php >> $seconds = 265; >> $time = date('i s',$seconds); >> $minSecs = explode(' ',$time); >> echo "{$minSecs[0]} minutes and {$minSecs[1]} seconds<br>\n"; >>?> > > > That doesn't work for anything over 3599 seconds, though... > > ---John Holmes... > > >

    attached mail follows:


    Ahhh - that works a treat! First time I've seen the floor command in action.

    Thanks Jonathon.

    Still more lines of code than I'd like, but obviously its not that easy to do!

    Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom ----- Original Message ----- From: "Jonathan Sharp" <js-listssharpmedia.net> To: <holmes072000charter.net> Cc: "'Matt'" <mschroebelepooch.com>; "'Bob Irwin'" <bobstaff.pnc.com.au>; <php-generallists.php.net> Sent: Wednesday, November 20, 2002 12:41 PM Subject: Re: [PHP] Seconds to minutes

    > i'll just throw my code in here while we're at it... > > $seconds = 3600*5 + (60 * 10) + 45; > > $hours = floor( $seconds / 3600 ); > $mins = floor( ($seconds % 3600) / 60 ); > $seconds = floor( ($seconds % 60) ); > > echo "Hours: $hours\nMins: $mins\nSeconds: $seconds\n"; > > -js > > > John W. Holmes wrote: > >>You can do something like this: > >><?php > >> $seconds = 265; > >> $time = date('i s',$seconds); > >> $minSecs = explode(' ',$time); > >> echo "{$minSecs[0]} minutes and {$minSecs[1]} seconds<br>\n"; > >>?> > > > > > > That doesn't work for anything over 3599 seconds, though... > > > > ---John Holmes... > > > > > > > > > > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ >

    Scanned by PeNiCillin http://safe-t-net.pnc.com.au/

    attached mail follows:


    Ok, I'm going to break down and ask for help.

    I'm trying to post an XML file to NetLedger through HTTPs, but cURL isn't returning any errors when I run through PHP, and the file isn't getting there.

    Can someone point me in the direction of a site with some *good* help on how to do file posting with cURL under PHP? And when I say "good," I mean to say that I've already been to PHP.net and the list of CURLOPT's without explanation of how to use them is not helpful to someone at my skill level. Neither is the example on Sourceforge.

    --
    S. Keller
    UI Engineer
    The Health TV Channel, Inc.
    (a non - profit organization)
    3820 Lake Otis Pkwy.
    Anchorage, AK 99508
    907.770.6200 ext.220
    907.336.6205 (fax)
    Email: skellerhealthtvchannel.org
    Web: www.healthtvchannel.org
    

    attached mail follows:


    Have you tried this: http://curl.haxx.se/libcurl/php/examples/

    Would help if you posted some code, or errors or something. I've used curl in several PHP applications successfully.

    Snoopy is actually a really awesome implementation of curl in php: http://sourceforge.net/projects/snoopy/

    I replaced several of my functions with snoopy classes.

    HTH --Brian

    "Steve Keller" <skellerhealthtvchannel.org> wrote in message news:5.1.1.6.0.20021119153639.00aa50e0207.159.149.141... > Ok, I'm going to break down and ask for help. > > I'm trying to post an XML file to NetLedger through HTTPs, but cURL isn't > returning any errors when I run through PHP, and the file isn't getting there. > > Can someone point me in the direction of a site with some *good* help on > how to do file posting with cURL under PHP? And when I say "good," I mean > to say that I've already been to PHP.net and the list of CURLOPT's without > explanation of how to use them is not helpful to someone at my skill level. > Neither is the example on Sourceforge. > -- > S. Keller > UI Engineer > The Health TV Channel, Inc. > (a non - profit organization) > 3820 Lake Otis Pkwy. > Anchorage, AK 99508 > 907.770.6200 ext.220 > 907.336.6205 (fax) > Email: skellerhealthtvchannel.org > Web: www.healthtvchannel.org >

    attached mail follows:


    Hello, how would I go about listing a portion of a MySQL table, without an overall selection criterium? I have a unique index field, but it's a string and not autoincremented (but manually and with gaps). I just want to go to one particular row (query on that index field) and then list, say, 20 rows before that point and 20 rows after it. So I can create an output of 41 rows in a HTML table. Is there something like the dBase SKIP and GOTO command? Should I do a query for each individual row (and get 41 result sets) or can I somehow walk through 1 result set ?

    Thanks, Marco

    --
    Marco Bleeker, Amsterdam, NL.
    Please do not distribute my email address to a third party
    Refer to www.ecocam.com for an email form (and more)
    

    attached mail follows:


    ----- Original Message ----- From: "Marco Bleeker" <marco_bleekerhetnet.nl> To: <php-generallists.php.net> Sent: Tuesday, November 19, 2002 8:34 PM Subject: [PHP] Listing a table

    > Hello, how would I go about listing a portion of a MySQL table, without an > overall selection criterium? I have a unique index field, but it's a string > and not autoincremented (but manually and with gaps). I just want to go to > one particular row (query on that index field) and then list, say, 20 rows > before that point and 20 rows after it. So I can create an output of 41 > rows in a HTML table. Is there something like the dBase SKIP and GOTO > command? Should I do a query for each individual row (and get 41 result > sets) or can I somehow walk through 1 result set ?

    Use limit. To get first 20 rows: "Select * from mytable order by index_field limit 0,20"

    Next 20 rows: "Select * from mytable order by index_field limit 20,20" etc

    attached mail follows:


    CHeck out ADODB, it makes this a pretty easy task. http://php.weblogs.com/adodb

    "Marco Bleeker" <marco_bleekerhetnet.nl> wrote in message news:4.3.2.7.2.20021120021435.00d0c5d0pop.hetnet.nl... > Hello, how would I go about listing a portion of a MySQL table, without an > overall selection criterium? I have a unique index field, but it's a string > and not autoincremented (but manually and with gaps). I just want to go to > one particular row (query on that index field) and then list, say, 20 rows > before that point and 20 rows after it. So I can create an output of 41 > rows in a HTML table. Is there something like the dBase SKIP and GOTO > command? Should I do a query for each individual row (and get 41 result > sets) or can I somehow walk through 1 result set ? > > Thanks, Marco > -- > Marco Bleeker, Amsterdam, NL. > Please do not distribute my email address to a third party > Refer to www.ecocam.com for an email form (and more) >

    attached mail follows:


    I'm using the following syntax, but evidently it's not correct.

    HREF="action.html?action=deactivate?confirm=yes"

    thanks,

    Jeff

    attached mail follows:


    I don't mind helping, but can you please read the archives next time? This has been asked a lot. Anyway, the correct syntax is:

    HREF="action.html?action=deactivate&confirm=yes"

    Jeff Bluemel wrote:

    >I'm using the following syntax, but evidently it's not correct. > >HREF="action.html?action=deactivate?confirm=yes" > >thanks, > >Jeff > > > > >

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


    HREF="action.html?action=deactivate&confirm=yes"

    Should work...

    On Tue, 2002-11-19 at 20:44, Jeff Bluemel wrote: > I'm using the following syntax, but evidently it's not correct. > > HREF="action.html?action=deactivate?confirm=yes" > > thanks, > > Jeff

    -- 
    

    Ray Hunter email: bigdogventicon.com www: http://venticon.com

    attached mail follows:


    WOW - talk about a quick response. this solved my problem...

    thanks,

    Jeff "Ray Hunter" <bigdogventicon.com> wrote in message news:1037764073.11561.52.camelpclnxrhunter.digitalglobe.com... > HREF="action.html?action=deactivate&confirm=yes" > > Should work... > > > > On Tue, 2002-11-19 at 20:44, Jeff Bluemel wrote: > > I'm using the following syntax, but evidently it's not correct. > > > > HREF="action.html?action=deactivate?confirm=yes" > > > > thanks, > > > > Jeff > -- > > Ray Hunter > email: bigdogventicon.com > www: http://venticon.com >

    attached mail follows:


    Hi,

    I have form that a user would input information and that info is sent to a function, but I need to be able to return a result of this function and is where I am having a problem.

    For example:

    testfunction($var1, $var2, $var3, $var4); //the form fills these values.

    echo $meat;

    function testfunction($a, $b, $c, $d) {

    The $meat of the function goes here;

    Now I need to return the result of $meat;

    return $meat; }

    This does not work. I'm new to funtions and obviously missing something, but I haven't been able to find a good tutorial on this. The PHP manual isn't much help.

    Any help is appreciated.

    attached mail follows:


    echo testfunction($var1, $var2, $var3, $var4);

    Or if you need to do something else with the value before echo()ing it:

    $meat = testfunction($var1, $var2, $var3, $var4); //Do something with $meat

    Beauford 2002 wrote:

    >Hi, > >I have form that a user would input information and that info is sent to >a function, but I need to be able to return a result of this function >and is where I am having a problem. > >For example: > >testfunction($var1, $var2, $var3, $var4); //the form fills these >values. > >echo $meat; > >function testfunction($a, $b, $c, $d) { > > The $meat of the function goes here; > > Now I need to return the result of $meat; > > return $meat; >} > >This does not work. I'm new to funtions and obviously missing something, >but I haven't been able to find a good tutorial on this. The PHP manual >isn't much help. > >Any help is appreciated. > > > > >

    -- 
    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 to all,

    I have a problem regarding exploding string. I want to explode string sepated by "+" sign, but i want it also the first variable in the array be distinc in terms of collor or whatever when viewed in the page.

    ex.

    $no=("1+2+3"); $number=explode("+", $no);

    how could i echo $no with the first no. "1" be in colored.

    Any idea. thanx in advance

    Regards,

    mike

    attached mail follows:


    ASSISTANCE

    WE ARE MEMBERS OF A SPECIAL COMMITTEE FOR BUDGET AND PLANNING OF THE NIGERIA NATIONAL PETROLEUM CORPORATION (NNPC)IN WEST AFRICA. THIS COMMITTEE IS PRINCIPALLY CONCERNED WITH CONTRACT AWARDS AND APPROVAL. WITH OUR POSITIONS, WE HAVE SUCCESSFULLY SECURED FOR OURSELVES THE SUM OF THIRTHY ONE MILLION, FIVE HUNDRED THOUSAND UNITED STATES DOLLARS (US$31.5M). THIS AMOUNT WAS CAREFULLY MANIPULATED BY OVER-INVOICING OF AN OLD CONTRACT.

    BASED ON INFORMATION GATHERED ABOUT YOU, WE BELIEVE YOU WOULD BE IN A POSITION TO HELP US IN TRANSFERING THIS FUND (US$31.5M) INTO A SAFE ACCOUNT. IT HAS BEEN AGREED THAT THE OWNER OF THE ACCOUNT WILL BE COMPENSATED WITH 30% OF THE REMITTED FUNDS, WHILE WE KEEP 60% AS THE INITIATORS AND 10% WILL BE SET ASIDE TO OFFSET EXPENSES AND PAY THE NECESSARY TAXES.WE INTEND TO USE PART OF OUR OWN SHARE TO IMPORT FROM YOUR COUNTRY AGRICULTURAL AND CONSTRUCTION MACHINERY. THIS IS BECAUSE THE PRESENT GOVERNMENT OF MY COUNTRY IS EMPHASISING ON PROVIDING FOOD AND HOUSING FOR ALL ITS CITIZENS BEFORE THE NEXT ELECTION. HENCE, AGRICULTURAL AND CONSTRUCTION EQUIPMENT ARE IN HIGH DEMAND OVER HERE. WE SHALL ALSO NEED YOUR ASSISTANCE IN THIS REGARD ON A COMMISSION TO BE AGREED UPON WHEN WE FINALLY MEET.

    ALL MODALITIES OF THIS TRANSACTION HAVE BEEN CAREFULLY WORKED OUT AND ONCE STARTED WILL NOT TAKE MORE THAN SEVEN (7) WORKING DAYS, WITH YOUR FULL SUPPORT. THIS TRANSACTION IS 100% RISK FREE.

    MOREOVER, WE SHALL NEED THE FOLLOWING FROM YOU TO ENABLE US BEGIN THE TRANSACTION FORMALLY. THEY ARE; YOUR FULL NAME AND ADDRESS OR YOUR COMPANY NAME, ADDRESS AND TELEPHONE/FAX NUMBERS, YOUR BANKERS NAME AND ADDRESS, YOUR ACCOUNT NUMBER AND NAME. THIS INFORMATION WILL BE USED ALONGSIDE OTHER VITAL DOCUMENTS OVER HERE IN PREPARING THE NECESSARY APPLICATION FOR PAYMENT TO THE CONCERNED QUARTERS WHERE PAYMENT APPROVALS WOULD BE SECURED IN FAVOUR OF YOUR COMPANY FOR THE PAYMENT OF OUR FUND(US$31.5M) INTO YOUR NOMINATED ACCOUNT FOR US ALL. BY OUR APPLICATION, IT WILL BE ASSUMED THAT THIS SUM IS BEING REQUESTED AS PAYMENT, WHICH IS LONG-OUTSTANDING, FOR A CONTRACT, WE SHALL CLAIM WITH OUR POSITION, YOU OR YOUR COMPANY EXECUTED FOR (NNPC) SOMETIME IN 1997. HENCE, WE SHALL FOLLOW ALL THE LEGAL OFFICIAL PROTOCOLS USUALLY OBSERVED BY FOREIGN CONTRACTORS WHENEVER THEY ARE DEMANDING PAYMENT FOR CONTRACTS EXECUTED FOR THE GOVERNMENT OF MY COUNTRY.

    FURTHERMORE, IMMEDIATELY THE FINAL APPROVAL IS GRANTED, THE FUND WILL BE TRANSFERRED INTO YOUR ACCOUNT WITHIN 72 HOURS, BY WHICH TIME MY PARTNERS AND I WILL BE IN YOUR COUNTRY FOR THE FINAL DISBURSEMENT IN THE RATIO ALREADY SPELT OUT TO YOU.

    PLEASE, YOU SHOULD ENDEAVOUR TO GIVE US AN ACCOUNT WHICH YOU HAVE ABSOLUTE CONTROL OVER. THIS IS VERY IMPORTANT BECAUSE WE WOULD NOT WANT A SITUATION WHEN THE MONEY IS IN THE ACCOUNT, YOU NOW TELL US YOU WOULD NEED TO BE AUTHORISED BY ANOTHER PERSON BEFORE WE CAN HAVE OUR OWN SHARE.

    YOU WILL NOT BE REQUIRED TO TRAVEL OUT OF YOUR COUNTRY, ME AND MY PARTNERS, WE TRAVEL DOWN TO YOUR COUNTRY FOR THE DISBURSEMENT OF THE FUND, AFTER THE FINAL TRANSACTION. WE WILL ALSO DISCUSS ABOUT OIL BUSINEES IN MY COUNTRY WHEN WE COME DOWN OVER THERE. BECAUSE WE WOULD LIKE TO ESTABLISH A JOINT BUSINESS WITH YOU. THAT IS WE WILL USE YOUR NAME TO REGISTER AND INCORPORATE AN OIL COMPANY IN MY COUNTRY.

    BESIDES, ON THE COMPLETION OF THIS TRANSFER, ALL DOCUMENTS USED FOR THE PURPOSE WILL BE WITHDRAWN FROM THE QUARTERS THEY ARE SUBMITTED BY OUR CONTACTS IN THESE OFFICES AND DESTROYED, THEREAFTER. SO, THERE WILL NOT BE ANY PROBLEM ARISING FROM THIS TRANSACTION NOW OR IN THE FUTURE. IF THIS PROPOSAL SATISFIES YOU, PLEASE REACH US ONLY BY EMAIL FOR MORE INFORMATION.

    PLEASE, TREAT AS URGENT AND VERY IMPORTANT.

    YOURS FAITHFULLY,

    CHIEF MICHAEL OSHODI

    attached mail follows:


    I think I'd rather go with the 126M USD being offered by Desmond West (see email entitled "STRICTLY CONFIDENCIAL") instead of this measly 31.5M USD.

    If anyone wants to contact the people who own ecplaza.net (for fun), here's the info from whois:

    Registrant: EC Plaza Network Inc. 1F, Shinho Villart, 452-3 Sungnae2dong, Kangdong ku Seoul, Korea

    Domain Name: ECPLAZA.NET Registrar: HANGANG Systems,Inc. dba doregi.com

    Administrative, Technical, Billing Contact: Kim jieum domadminecplaza.net 82-2-476-1144 82-2-482-0339

    "Michael Oshodi" <moshodiecplaza.net> wrote in message news:php.general-125196news.php.net...

    ASSISTANCE

    WE ARE MEMBERS OF A SPECIAL COMMITTEE FOR BUDGET AND PLANNING OF THE NIGERIA NATIONAL PETROLEUM CORPORATION (NNPC)IN WEST AFRICA. THIS COMMITTEE IS PRINCIPALLY CONCERNED WITH CONTRACT AWARDS AND APPROVAL. WITH OUR POSITIONS, WE HAVE SUCCESSFULLY SECURED FOR OURSELVES THE SUM OF THIRTHY ONE MILLION, FIVE HUNDRED THOUSAND UNITED STATES DOLLARS (US$31.5M). THIS AMOUNT WAS CAREFULLY MANIPULATED BY OVER-INVOICING OF AN OLD CONTRACT.

    BASED ON INFORMATION GATHERED ABOUT YOU, WE BELIEVE YOU WOULD BE IN A POSITION TO HELP US IN TRANSFERING THIS FUND (US$31.5M) INTO A SAFE ACCOUNT. IT HAS BEEN AGREED THAT THE OWNER OF THE ACCOUNT WILL BE COMPENSATED WITH 30% OF THE REMITTED FUNDS, WHILE WE KEEP 60% AS THE INITIATORS AND 10% WILL BE SET ASIDE TO OFFSET EXPENSES AND PAY THE NECESSARY TAXES.WE INTEND TO USE PART OF OUR OWN SHARE TO IMPORT FROM YOUR COUNTRY AGRICULTURAL AND CONSTRUCTION MACHINERY. THIS IS BECAUSE THE PRESENT GOVERNMENT OF MY COUNTRY IS EMPHASISING ON PROVIDING FOOD AND HOUSING FOR ALL ITS CITIZENS BEFORE THE NEXT ELECTION. HENCE, AGRICULTURAL AND CONSTRUCTION EQUIPMENT ARE IN HIGH DEMAND OVER HERE. WE SHALL ALSO NEED YOUR ASSISTANCE IN THIS REGARD ON A COMMISSION TO BE AGREED UPON WHEN WE FINALLY MEET.

    ALL MODALITIES OF THIS TRANSACTION HAVE BEEN CAREFULLY WORKED OUT AND ONCE STARTED WILL NOT TAKE MORE THAN SEVEN (7) WORKING DAYS, WITH YOUR FULL SUPPORT. THIS TRANSACTION IS 100% RISK FREE.

    MOREOVER, WE SHALL NEED THE FOLLOWING FROM YOU TO ENABLE US BEGIN THE TRANSACTION FORMALLY. THEY ARE; YOUR FULL NAME AND ADDRESS OR YOUR COMPANY NAME, ADDRESS AND TELEPHONE/FAX NUMBERS, YOUR BANKERS NAME AND ADDRESS, YOUR ACCOUNT NUMBER AND NAME. THIS INFORMATION WILL BE USED ALONGSIDE OTHER VITAL DOCUMENTS OVER HERE IN PREPARING THE NECESSARY APPLICATION FOR PAYMENT TO THE CONCERNED QUARTERS WHERE PAYMENT APPROVALS WOULD BE SECURED IN FAVOUR OF YOUR COMPANY FOR THE PAYMENT OF OUR FUND(US$31.5M) INTO YOUR NOMINATED ACCOUNT FOR US ALL. BY OUR APPLICATION, IT WILL BE ASSUMED THAT THIS SUM IS BEING REQUESTED AS PAYMENT, WHICH IS LONG-OUTSTANDING, FOR A CONTRACT, WE SHALL CLAIM WITH OUR POSITION, YOU OR YOUR COMPANY EXECUTED FOR (NNPC) SOMETIME IN 1997. HENCE, WE SHALL FOLLOW ALL THE LEGAL OFFICIAL PROTOCOLS USUALLY OBSERVED BY FOREIGN CONTRACTORS WHENEVER THEY ARE DEMANDING PAYMENT FOR CONTRACTS EXECUTED FOR THE GOVERNMENT OF MY COUNTRY.

    FURTHERMORE, IMMEDIATELY THE FINAL APPROVAL IS GRANTED, THE FUND WILL BE TRANSFERRED INTO YOUR ACCOUNT WITHIN 72 HOURS, BY WHICH TIME MY PARTNERS AND I WILL BE IN YOUR COUNTRY FOR THE FINAL DISBURSEMENT IN THE RATIO ALREADY SPELT OUT TO YOU.

    PLEASE, YOU SHOULD ENDEAVOUR TO GIVE US AN ACCOUNT WHICH YOU HAVE ABSOLUTE CONTROL OVER. THIS IS VERY IMPORTANT BECAUSE WE WOULD NOT WANT A SITUATION WHEN THE MONEY IS IN THE ACCOUNT, YOU NOW TELL US YOU WOULD NEED TO BE AUTHORISED BY ANOTHER PERSON BEFORE WE CAN HAVE OUR OWN SHARE.

    YOU WILL NOT BE REQUIRED TO TRAVEL OUT OF YOUR COUNTRY, ME AND MY PARTNERS, WE TRAVEL DOWN TO YOUR COUNTRY FOR THE DISBURSEMENT OF THE FUND, AFTER THE FINAL TRANSACTION. WE WILL ALSO DISCUSS ABOUT OIL BUSINEES IN MY COUNTRY WHEN WE COME DOWN OVER THERE. BECAUSE WE WOULD LIKE TO ESTABLISH A JOINT BUSINESS WITH YOU. THAT IS WE WILL USE YOUR NAME TO REGISTER AND INCORPORATE AN OIL COMPANY IN MY COUNTRY.

    BESIDES, ON THE COMPLETION OF THIS TRANSFER, ALL DOCUMENTS USED FOR THE PURPOSE WILL BE WITHDRAWN FROM THE QUARTERS THEY ARE SUBMITTED BY OUR CONTACTS IN THESE OFFICES AND DESTROYED, THEREAFTER. SO, THERE WILL NOT BE ANY PROBLEM ARISING FROM THIS TRANSACTION NOW OR IN THE FUTURE. IF THIS PROPOSAL SATISFIES YOU, PLEASE REACH US ONLY BY EMAIL FOR MORE INFORMATION.

    PLEASE, TREAT AS URGENT AND VERY IMPORTANT.

    YOURS FAITHFULLY,

    CHIEF MICHAEL OSHODI

    attached mail follows:


    Good lord they're at it again! ----- Original Message ----- From: "MICHAEL OSHODI" <moshodiecplaza.net> To: <php-generallists.php.net> Sent: Tuesday, November 19, 2002 10:51 PM Subject: [PHP] REPLY NEEDED

    ASSISTANCE

    WE ARE MEMBERS OF A SPECIAL COMMITTEE FOR BUDGET AND PLANNING OF THE NIGERIA NATIONAL PETROLEUM CORPORATION (NNPC)IN WEST AFRICA. THIS COMMITTEE IS PRINCIPALLY CONCERNED WITH CONTRACT AWARDS AND APPROVAL. WITH OUR POSITIONS, WE HAVE SUCCESSFULLY SECURED FOR OURSELVES THE SUM OF THIRTHY ONE MILLION, FIVE HUNDRED THOUSAND UNITED STATES DOLLARS (US$31.5M). THIS AMOUNT WAS CAREFULLY MANIPULATED BY OVER-INVOICING OF AN OLD CONTRACT.

    BASED ON INFORMATION GATHERED ABOUT YOU, WE BELIEVE YOU WOULD BE IN A POSITION TO HELP US IN TRANSFERING THIS FUND (US$31.5M) INTO A SAFE ACCOUNT. IT HAS BEEN AGREED THAT THE OWNER OF THE ACCOUNT WILL BE COMPENSATED WITH 30% OF THE REMITTED FUNDS, WHILE WE KEEP 60% AS THE INITIATORS AND 10% WILL BE SET ASIDE TO OFFSET EXPENSES AND PAY THE NECESSARY TAXES.WE INTEND TO USE PART OF OUR OWN SHARE TO IMPORT FROM YOUR COUNTRY AGRICULTURAL AND CONSTRUCTION MACHINERY. THIS IS BECAUSE THE PRESENT GOVERNMENT OF MY COUNTRY IS EMPHASISING ON PROVIDING FOOD AND HOUSING FOR ALL ITS CITIZENS BEFORE THE NEXT ELECTION. HENCE, AGRICULTURAL AND CONSTRUCTION EQUIPMENT ARE IN HIGH DEMAND OVER HERE. WE SHALL ALSO NEED YOUR ASSISTANCE IN THIS REGARD ON A COMMISSION TO BE AGREED UPON WHEN WE FINALLY MEET.

    ALL MODALITIES OF THIS TRANSACTION HAVE BEEN CAREFULLY WORKED OUT AND ONCE STARTED WILL NOT TAKE MORE THAN SEVEN (7) WORKING DAYS, WITH YOUR FULL SUPPORT. THIS TRANSACTION IS 100% RISK FREE.

    MOREOVER, WE SHALL NEED THE FOLLOWING FROM YOU TO ENABLE US BEGIN THE TRANSACTION FORMALLY. THEY ARE; YOUR FULL NAME AND ADDRESS OR YOUR COMPANY NAME, ADDRESS AND TELEPHONE/FAX NUMBERS, YOUR BANKERS NAME AND ADDRESS, YOUR ACCOUNT NUMBER AND NAME. THIS INFORMATION WILL BE USED ALONGSIDE OTHER VITAL DOCUMENTS OVER HERE IN PREPARING THE NECESSARY APPLICATION FOR PAYMENT TO THE CONCERNED QUARTERS WHERE PAYMENT APPROVALS WOULD BE SECURED IN FAVOUR OF YOUR COMPANY FOR THE PAYMENT OF OUR FUND(US$31.5M) INTO YOUR NOMINATED ACCOUNT FOR US ALL. BY OUR APPLICATION, IT WILL BE ASSUMED THAT THIS SUM IS BEING REQUESTED AS PAYMENT, WHICH IS LONG-OUTSTANDING, FOR A CONTRACT, WE SHALL CLAIM WITH OUR POSITION, YOU OR YOUR COMPANY EXECUTED FOR (NNPC) SOMETIME IN 1997. HENCE, WE SHALL FOLLOW ALL THE LEGAL OFFICIAL PROTOCOLS USUALLY OBSERVED BY FOREIGN CONTRACTORS WHENEVER THEY ARE DEMANDING PAYMENT FOR CONTRACTS EXECUTED FOR THE GOVERNMENT OF MY COUNTRY.

    FURTHERMORE, IMMEDIATELY THE FINAL APPROVAL IS GRANTED, THE FUND WILL BE TRANSFERRED INTO YOUR ACCOUNT WITHIN 72 HOURS, BY WHICH TIME MY PARTNERS AND I WILL BE IN YOUR COUNTRY FOR THE FINAL DISBURSEMENT IN THE RATIO ALREADY SPELT OUT TO YOU.

    PLEASE, YOU SHOULD ENDEAVOUR TO GIVE US AN ACCOUNT WHICH YOU HAVE ABSOLUTE CONTROL OVER. THIS IS VERY IMPORTANT BECAUSE WE WOULD NOT WANT A SITUATION WHEN THE MONEY IS IN THE ACCOUNT, YOU NOW TELL US YOU WOULD NEED TO BE AUTHORISED BY ANOTHER PERSON BEFORE WE CAN HAVE OUR OWN SHARE.

    YOU WILL NOT BE REQUIRED TO TRAVEL OUT OF YOUR COUNTRY, ME AND MY PARTNERS, WE TRAVEL DOWN TO YOUR COUNTRY FOR THE DISBURSEMENT OF THE FUND, AFTER THE FINAL TRANSACTION. WE WILL ALSO DISCUSS ABOUT OIL BUSINEES IN MY COUNTRY WHEN WE COME DOWN OVER THERE. BECAUSE WE WOULD LIKE TO ESTABLISH A JOINT BUSINESS WITH YOU. THAT IS WE WILL USE YOUR NAME TO REGISTER AND INCORPORATE AN OIL COMPANY IN MY COUNTRY.

    BESIDES, ON THE COMPLETION OF THIS TRANSFER, ALL DOCUMENTS USED FOR THE PURPOSE WILL BE WITHDRAWN FROM THE QUARTERS THEY ARE SUBMITTED BY OUR CONTACTS IN THESE OFFICES AND DESTROYED, THEREAFTER. SO, THERE WILL NOT BE ANY PROBLEM ARISING FROM THIS TRANSACTION NOW OR IN THE FUTURE. IF THIS PROPOSAL SATISFIES YOU, PLEASE REACH US ONLY BY EMAIL FOR MORE INFORMATION.

    PLEASE, TREAT AS URGENT AND VERY IMPORTANT.

    YOURS FAITHFULLY,

    CHIEF MICHAEL OSHODI

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