OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: php-general-digest-helplists.php.net
Date: Tue Jul 24 2001 - 06:31:01 CDT

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

    php-general Digest 24 Jul 2001 11:31:01 -0000 Issue 774

    Topics (messages 59276 through 59324):

    Re: MySQL error, what's wrong here..
            59276 by: James Bogosian
            59277 by: Chris Cocuzzo
            59278 by: James Bogosian
            59287 by: Christopher Ostmo
            59297 by: Chris Cocuzzo
            59298 by: David Robley
            59311 by: Tim Ward
            59315 by: James Holloway
            59320 by: Wagner Tomy

    Potential upcoming PHP development project
            59279 by: Maurice Rickard

    IMAP and Attachments
            59280 by: kath
            59318 by: Jome

    Dynamic Thumbnail From Database Solution!
            59281 by: Jason Bell

    highlighting keywords problem
            59282 by: Christian Dechery

    Re: Why wont this work?
            59283 by: David Robley

    The Program!
            59284 by: Marty
            59285 by: ReDucTor

    Capitalize Function ??
            59286 by: PHP Junkie
            59288 by: Opec Kemp
            59291 by: Matthew Loff
            59303 by: Alexander Skwar

    Re: Ignore
            59289 by: By Proxy

    Dynamic variable names
            59290 by: bessettecm03.uwwvax.uww.edu
            59293 by: Chris Fry

    PDFlib beginners request
            59292 by: By Proxy
            59294 by: ReDucTor

    mailing in batches
            59295 by: Matthew Delmarter
            59312 by: Mirek Novak
            59314 by: Justin Farnsworth

    Re: Single Digit in Double digit column
            59296 by: Christian Reiniger

    ISAPI PHP
            59299 by: E. Peter K. Chan

    Re: keeping track of external image linking with php?
            59300 by: Don Read

    Re: javascript ?
            59301 by: Morten Winkler Jørgensen

    Need some help with this idea!
            59302 by: Chris Cocuzzo
            59304 by: David Robley
            59305 by: Don Read

    PHP install
            59306 by: Aarmel

    error reporting
            59307 by: Justin French

    declaring variables in PHP???
            59308 by: René Moonen
            59310 by: Henrik Hansen
            59317 by: Steve Brett

    Re: When did this become the advertising Mailing List
            59309 by: Brian White

    Copy Array.
            59313 by: Nick Davies
            59316 by: ReDucTor

    Example forms
            59319 by: Denis Croombs
            59321 by: Adrian Ciutureanu

    Re: value submit button
            59322 by: Micha

    Re: Can't add PHP4 module to Apache (win32)
            59323 by: Arnaud

    monitoring more than two sockets (multitask ?)
            59324 by: Keith Ng

    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:


    Try:

      $query = "SELECT songname FROM mp3 WHERE sgid = '" .$id."'";

    an SQL query requires you to quote strings.

    james

    -----Original Message-----
    From: Chris Cocuzzo [mailto:cuzomediaone.net]
    Sent: Monday, July 23, 2001 6:57 PM
    To: php-generallists.php.net
    Subject: [PHP]MySQL error, what's wrong here..

    <?php
      $id = rand(1,2);
      $query = "SELECT songname FROM mp3 WHERE sgid = " .$id;
      $result = mysql_query($query,$connection);
      $mp3d = mysql_fetch_array($result);
      ?>

    the server is telling me line 43(which starts with $mp3d) is not a valid
    mysql result resource. what am i doing wrong??

    chris

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

    attached mail follows:


    alright, new problem, no more errors, but there's just nothing...here's the code:

    <?php $id = rand(1,2); $query = "SELECT name FROM mp3 WHERE songid = '" .$id."'"; $result = mysql_query($query,$connection); while($mp3d = mysql_fetch_array($result)) { $mp3d = mysql_fetch_array($result); ?> <a href="http://www.fplg.net/stream.php?songid= echo $id;?>" class="hov1"><?php echo $mp3d["name"];?></a> <?php } ?> </td> </tr>

    and here's what the HTML code looks like from the page when i test it out.. <a href="http://www.fplg.net/stream.php?songid=2" class="hov1"></a>

    what's going on with that... chris

    ----- Original Message ----- From: James Bogosian <bogosjrpi.edu> To: Chris Cocuzzo <cuzomediaone.net>; <php-generallists.php.net> Sent: Monday, July 23, 2001 7:25 PM Subject: RE: [PHP]MySQL error, what's wrong here..

    > Try: > > $query = "SELECT songname FROM mp3 WHERE sgid = '" .$id."'"; > > an SQL query requires you to quote strings. > > james > > -----Original Message----- > From: Chris Cocuzzo [mailto:cuzomediaone.net] > Sent: Monday, July 23, 2001 6:57 PM > To: php-generallists.php.net > Subject: [PHP]MySQL error, what's wrong here.. > > > <?php > $id = rand(1,2); > $query = "SELECT songname FROM mp3 WHERE sgid = " .$id; > $result = mysql_query($query,$connection); > $mp3d = mysql_fetch_array($result); > ?> > > the server is telling me line 43(which starts with $mp3d) is not a valid > mysql result resource. what am i doing wrong?? > > chris > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >

    attached mail follows:


    In your code, you have the lines:

    ---------------------------------------------- while($mp3d = mysql_fetch_array($result)) { $mp3d = mysql_fetch_array($result); ?> ----------------------------------------------

    In the while control structure, you are fetching a result into $mp3d, then inside the brackets, you fetch a second (non-existing) result into $mp3d again. Try it without the third line of that segment.

    james

    -----Original Message----- From: Chris Cocuzzo [mailto:cuzomediaone.net] Sent: Monday, July 23, 2001 7:39 PM To: php-generallists.php.net Subject: Re: [PHP]MySQL error, what's wrong here..

    alright, new problem, no more errors, but there's just nothing...here's the code:

    <?php $id = rand(1,2); $query = "SELECT name FROM mp3 WHERE songid = '" .$id."'"; $result = mysql_query($query,$connection); while($mp3d = mysql_fetch_array($result)) { $mp3d = mysql_fetch_array($result); ?> <a href="http://www.fplg.net/stream.php?songid= echo $id;?>" class="hov1"><?php echo $mp3d["name"];?></a> <?php } ?> </td> </tr>

    and here's what the HTML code looks like from the page when i test it out.. <a href="http://www.fplg.net/stream.php?songid=2" class="hov1"></a>

    what's going on with that... chris

    ----- Original Message ----- From: James Bogosian <bogosjrpi.edu> To: Chris Cocuzzo <cuzomediaone.net>; <php-generallists.php.net> Sent: Monday, July 23, 2001 7:25 PM Subject: RE: [PHP]MySQL error, what's wrong here..

    > Try: > > $query = "SELECT songname FROM mp3 WHERE sgid = '" .$id."'"; > > an SQL query requires you to quote strings. > > james > > -----Original Message----- > From: Chris Cocuzzo [mailto:cuzomediaone.net] > Sent: Monday, July 23, 2001 6:57 PM > To: php-generallists.php.net > Subject: [PHP]MySQL error, what's wrong here.. > > > <?php > $id = rand(1,2); > $query = "SELECT songname FROM mp3 WHERE sgid = " .$id; > $result = mysql_query($query,$connection); > $mp3d = mysql_fetch_array($result); > ?> > > the server is telling me line 43(which starts with $mp3d) is not a valid > mysql result resource. what am i doing wrong?? > > chris > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >

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

    attached mail follows:


    Chris Cocuzzo pressed the little lettered thingies in this order...

    > alright, new problem, no more errors, but there's just nothing...here's the > code: > > $query = "SELECT name FROM mp3 WHERE songid = '" .$id."'"; > > <a href="http://www.fplg.net/stream.php?songid=2" class="hov1"></a> >

    Uhh... maybe I'm missing something here, but the URL supplies $songid and the query is getting $id. Unless your getting $id from somewhere other than the URL, you're going to be getting only results with an empty songid field. Another thing to try is to "or die" your query to check to see if the SQL syntax is OK: $result=mysql_query($query,$connection) or die(mysql_error());

    Good luck...

    Christopher Ostmo a.k.a. techAppIdeas.com AppIdeas.com Innovative Application Ideas Meeting cutting edge dynamic web site needs since the dawn of Internet time (1995)

    Business Applications: http://www.AppIdeas.com/

    Open Source Applications: http://open.AppIdeas.com/

    attached mail follows:


    maybe my sql syntax is completely wrong, but the "$id" part was a random number i generated, and then I was saying WHERE songid(which is the database field) is equal to $id. is that the wrong way?

    the reason why it's songid in that second <a> tag is because I wanted the random number to indentify the song pulled from the database..so the database uses that number in the part where it says..."stream.php?songid=<?php echo $id;?>

    tell me if I need to clarify! chris

    ----- Original Message ----- From: Christopher Ostmo <techappideas.com> To: Chris Cocuzzo <cuzomediaone.net> Cc: <php-generallists.php.net> Sent: Monday, July 23, 2001 10:38 PM Subject: Re: [PHP]MySQL error, what's wrong here..

    > Chris Cocuzzo pressed the little lettered thingies in this order... > > > alright, new problem, no more errors, but there's just nothing...here's the > > code: > > > > $query = "SELECT name FROM mp3 WHERE songid = '" .$id."'"; > > > > <a href="http://www.fplg.net/stream.php?songid=2" class="hov1"></a> > > > > Uhh... maybe I'm missing something here, but the URL supplies > $songid and the query is getting $id. Unless your getting $id from > somewhere other than the URL, you're going to be getting only results > with an empty songid field. Another thing to try is to "or die" your query > to check to see if the SQL syntax is OK: > $result=mysql_query($query,$connection) or die(mysql_error()); > > Good luck... > > Christopher Ostmo > a.k.a. techAppIdeas.com > AppIdeas.com > Innovative Application Ideas > Meeting cutting edge dynamic > web site needs since the > dawn of Internet time (1995) > > Business Applications: > http://www.AppIdeas.com/ > > Open Source Applications: > http://open.AppIdeas.com/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >

    attached mail follows:


    On Tue, 24 Jul 2001 14:10, Chris Cocuzzo wrote: > > ----- Original Message ----- > From: Christopher Ostmo <techappideas.com> > To: Chris Cocuzzo <cuzomediaone.net> > Cc: <php-generallists.php.net> > Sent: Monday, July 23, 2001 10:38 PM > Subject: Re: [PHP]MySQL error, what's wrong here.. > > > Chris Cocuzzo pressed the little lettered thingies in this order... > > > > > alright, new problem, no more errors, but there's just > > > nothing...here's > > the > > > > code: > > > > > > $query = "SELECT name FROM mp3 WHERE songid = '" .$id."'"; > > > > > > <a href="http://www.fplg.net/stream.php?songid=2" class="hov1"></a> > > > > Uhh... maybe I'm missing something here, but the URL supplies > > $songid and the query is getting $id. Unless your getting $id from > > somewhere other than the URL, you're going to be getting only results > > with an empty songid field. Another thing to try is to "or die" your > > query > > > to check to see if the SQL syntax is OK: > > $result=mysql_query($query,$connection) or die(mysql_error()); > > > > Good luck... > > > maybe my sql syntax is completely wrong, but the "$id" part was a > random number i generated, and then I was saying WHERE songid(which is > the database field) is equal to $id. is that the wrong way? > > the reason why it's songid in that second <a> tag is because I wanted > the random number to indentify the song pulled from the database..so > the database uses that number in the part where it > says..."stream.php?songid=<?php echo $id;?> > > tell me if I need to clarify! > chris

    Well. if the random number created is outside the range of actual songid values that are in the database, you're not going to get any rows returned, are you? You could confirm by echoing your query and trying the same query, with the randomly generated number, in the mysql console. Or by checking the number of rows returned by your query with mysql_num_rows()

    Incidentally, if songid is an int type, you don't want to pass it a value in quotes; only char types need to be quoted.

    -- 
    David Robley      Techno-JoaT, Web Maintainer, Mail List Admin, etc
    CENTRE FOR INJURY STUDIES      Flinders University, SOUTH AUSTRALIA  
    

    The Hubbell works fine; all that stuff IS blurry!

    attached mail follows:


    my guess would be that sgid is a character field. if this isn't the case then try hardcoding a known id into the query and seeing what happens. It could also be that the connection has failed, try something like:

    if ($connection = mysql_connect()) { ... $id = rand(1,2); $query = "SELECT songname FROM mp3 WHERE sgid = " .$id; if ($result = mysql_query($query,$connection)) { $mp3d = mysql_fetch_array($result); ... } else echo("query failed"); ... } else echo("connection failed");

    this'll give you an idea of where it's going wrong

    Tim Ward Senior Systems Engineer

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

    > -----Original Message----- > From: Chris Cocuzzo [mailto:cuzomediaone.net] > Sent: 23 July 2001 23:57 > To: php-generallists.php.net > Subject: [PHP]MySQL error, what's wrong here.. > > > <?php > $id = rand(1,2); > $query = "SELECT songname FROM mp3 WHERE sgid = " .$id; > $result = mysql_query($query,$connection); > $mp3d = mysql_fetch_array($result); > ?> > > the server is telling me line 43(which starts with $mp3d) is > not a valid > mysql result resource. what am i doing wrong?? > > chris > >

    attached mail follows:


    Hi Chris,

    If you're using MySQL 3.23+, you might want to consider using something like:

    SELECT songname FROM mp3 ORDER BY RAND() LIMIT 1

    Not that this answers your original problem, but it seems to make more sense than manually coding a random number (which is, perhaps, impractical especiallyif you plan to add / take away entries to your table on a regular basis).

    James

    "Chris Cocuzzo" <cuzomediaone.net> wrote in message news:014d01c113ca$dd3bf460$0300a8c0mediaone.net... > <?php > $id = rand(1,2); > $query = "SELECT songname FROM mp3 WHERE sgid = " .$id; > $result = mysql_query($query,$connection); > $mp3d = mysql_fetch_array($result); > ?> > > the server is telling me line 43(which starts with $mp3d) is not a valid > mysql result resource. what am i doing wrong?? > > chris >

    attached mail follows:


    try this:

    $query = "SELECT songname FROM mp3 WHERE sgid = \"$id\""; (or a little cleaner: $query = sprintf("SELECT songname FROM mp3 WHERE sgid = \"%d\"", $id); ) instead of:

    $query = "SELECT songname FROM mp3 WHERE sgid = " .$id;

    ----- Original Message ----- From: "James Holloway" <jamestowntalk.co.uk> To: <php-generallists.php.net> Sent: Tuesday, July 24, 2001 11:05 AM Subject: Re: [PHP]MySQL error, what's wrong here..

    > Hi Chris, > > If you're using MySQL 3.23+, you might want to consider using something > like: > > SELECT songname FROM mp3 ORDER BY RAND() LIMIT 1 > > Not that this answers your original problem, but it seems to make more sense > than manually coding a random number (which is, perhaps, impractical > especiallyif you plan to add / take away entries to your table on a regular > basis). > > James > > "Chris Cocuzzo" <cuzomediaone.net> wrote in message > news:014d01c113ca$dd3bf460$0300a8c0mediaone.net... > > <?php > > $id = rand(1,2); > > $query = "SELECT songname FROM mp3 WHERE sgid = " .$id; > > $result = mysql_query($query,$connection); > > $mp3d = mysql_fetch_array($result); > > ?> > > > > the server is telling me line 43(which starts with $mp3d) is not a valid > > mysql result resource. what am i doing wrong?? > > > > chris > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >

    attached mail follows:


    I have a potential project coming up that would require a developer well-versed in PHP. The site is largely an information site with some ecommerce, but there will be various extras like membership areas, password-protected logins, and other interesting things.

    If you're interested, please reply to me with a plaintext resume and the URLs of sites you've built in PHP. Graphic design experience isn't particularly important; a solid understanding of PHP and what can be done with it is much more so. (HTML skills are essential, though.) It would be helpful to know about any tricks or features you've made with PHP that you're proud of, and, of course, I'd like to know your rate.

    Unfortunately, while the project itself is on quite a reasonable timeline (work likely to be done beginning in September and continuing for several months), we need to identify a qualified PHP developer immediately--so if you are interested, please respond as soon as you can.

    Best regards, Maurice

    -- 
    Maurice Rickard
    http://mauricerickard.com/
    

    attached mail follows:


    Hiya all.

    Doing the usual web based mail system.

    How can I check to see if a email has an attachment? Then download it if the user clicks on it?

    Preferably a class, documentation or something similar, if you have it.

    Please don't link an RFC, I hate RFCs, it is like reading Aramaic upside, backwards and on a webpage with some horribly tiled background and yellow color font.

    - k

    attached mail follows:


    > How can I check to see if a email has an attachment? Then download it if the > user clicks on it?

    I've been working on a webmail for POP3 but I guess the idea is about the same.

    To check if a an email has attachments you use the function imap_fetchstructure() and then you can do something like this:

    $struc = imap_fetchstructure(); count($struc->parts); if ($no_of_parts > 0) { echo "the message has attachments."; }

    This is my way of doing it, the 'bad' thing with this kind of code is that it also includes HTML-messages. This can be prevented with some extra code though.

    For downloading you use the same kind of thing, I guess it slightly more advanced and you have to do some decoding of the message.

    Best regards,

    Jome

    (looking for php-jobs, coding for $15/hour)

    attached mail follows:


    Ok, since I've posted questions about this on a few occasions, I thought I'd be kind, and share the solution I have found to creating dynamic thumbnails from images stored within a MySQL database. For the sake of brevity, I will only show an example for jpeg...

    To begin with, add your image to your Database. I opted to only pretreat my binary data with the addslasshes command.

    Once your image is in the database, you need to be able to pull it out in a normal fashion. The getpic.php script handles this:

    <?php if($id) { mysql_connect("$DBHOST","$DBUSER","$DBPASS"); mysql_select_db("$DBNAME"); $query = "select image,type from images where id=$id"; $result = mysql_query($query); $data = mysql_result($result,0,"image"); $type = mysql_result($result,0,"type"); Header( "Content-type: $type"); echo $data; }; ?>

    Using getpic.php in conjuction with the <IMG> tag can display the fullsize picture.

    Now, to the fun part! Dynamicly creating a thumbnail from the fullsize binary within your database. To create the thumbnail, I have a script called mkthumb.php:

    <?php $src = imagecreatefromjpeg("http://www.barkingrat.com/photo/getpic.php?id=$id"); $twidth = imagesx($src)/3; $theight = imagesy($src)/3; $img = imagecreate($twidth,$theight); imagecopyresized($img,$src,0,0,0,0,$twidth,$theight,imagesx($src),imagesy($src)); imagejpeg($img); imagedestroy($img); ?>

    You use mkthump.php in the same exact way that you use getpic.php. Now, obviously, mkthumb.php needs to be modified to handle filetypes other than jpeg. That should be a simple task, I just haven't done it yet.... should be as simple as checking the file type (I insert the type into a column when I store the original image)

    this works..... if anyone can think of a better way to do anything I have done, feel free to add your 2 cents.... I'm certainly open to it. :)

    Jason Bell

    attached mail follows:


    I want to highlight some keywords in a text without losing its case.

    How do I do that? I have something like the following:

    $keyword="something here"; ob_start("highlight_keyword"); ?> <p><font face=tahoma sizejust some text<br> to get it to grab the text and highlight it<br> the keyword is right now... check it out<br> Something Here, see? it's with a different case...</font></p> <? ob_end_flush(); function highlight_keyword($buffer) { global $keyword; return eregi_replace($keyword,"<b>".$keyword."</b>",$buffer); }

    the problem is that it's going to give me "...<b>something here</b>, see? it's with a different case...", with a lowercased keyword... I want to preserve the case of the found text... any ideas???? ____________________________ . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web Developer

    attached mail follows:


    On Wed, 25 Jul 2001 01:53, Dan Krumlauf wrote: > news_publish.php > ***************

    > $templine = preg_replace("/(<NEWS>)(.*?)(<\/NEWS>)/i","\\1$news\\2", > $templine)); > > Parse error: parse error in /php/work/boz/news_publish.php on line 8

    I think you have one too many closing brackets. May I suggest you acquire an editor that is capable of showing and highlighting matching parentheses? It makes life much easier :-)

    -- 
    David Robley      Techno-JoaT, Web Maintainer, Mail List Admin, etc
    CENTRE FOR INJURY STUDIES      Flinders University, SOUTH AUSTRALIA  
    

    I'm not as thunk as you drink I am.

    attached mail follows:


    Several months ago, I made a conscious decision not to delete what I figured was just another "junk" e-mail. That decision has changed my life. Here you have the very same opportunity in front of you. If you take just five minutes to read through the following program you won't regret it. See for yourself!

    Dear Friends & Future Millionaires: AS SEEN ON NATIONAL TV: Making over half a million dollars every 4 to 5 months from your home for an investment of only $25 U.S. Dollars expense one time THANKS TO THE COMPUTER AGE AND THE INTERNET ! ================================================== BE A MILLIONAIRE LIKE OTHERS WITHIN A YEAR!!! Before you say ''Bull'', please read the following. This is the letter you have been hearing about on the news lately. Due to the popularity of this letter on the Internet, a national weekly news program recently devoted an entire show to the investigation of this program described below, to see if it really can make people money. The show also investigated whether or not the program was legal. Their findings proved once and for all that there are ''absolutely NO Laws prohibiting the participation in the program and if people can -follow the simple instructions, they are bound to make some mega bucks with only $25 out of pocket cost''. DUE TO THE RECENT INCREASE OF POPULARITY & RESPECT THIS PROGRAM HAS ATTAINED, IT IS CURRENTLY WORKING BETTER THAN EVER. This is what one had to say: ''Thanks to this profitable opportunity. I was approached many times before but each time I passed on it. I am so glad finally joined just to see what one could expect in return for the minimal effort and money required. To my astonishment, I received total $610,470.00 in 21 weeks, with money still coming in." Pam Hedland, Fort Lee, New Jersey. =================================================== Here is another testimonial: "This program has been around for a long time but I never believed in it. But one day when I received this again in the mail I decided to gamble my $25 on it. I followed the simple instructions and voila ..... 3 weeks later the money started to come in. First month I only made $240.00 but the next 2 months after that I made a total of $290,000.00. So far, in the past 8 months by re-entering the program, I have made over $710,000.00 and I am playing it again. The key to success in this program is to follow the simple steps and NOT change anything.'' More testimonials later but first, ===== PRINT THIS NOW FOR YOUR FUTURE REFERENCE ====== $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ If you would like to make at least $500,000 every 4 to 5 months easily and comfortably, please read the following...THEN READ IT AGAIN and AGAIN!!! $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ FOLLOW THE SIMPLE INSTRUCTIONS BELOW AND YOUR FINANCIAL DREAMS WILL COME TRUE, GUARANTEED! INSTRUCTIONS: =====Order all 5 reports shown on the list below ===== For each report, send $5 CASH, THE NAME & NUMBER OF THE REPORT YOU ARE ORDERING and YOUR E-MAIL ADDRESS to the person whose name appears ON THAT LIST next to the report. MAKE SURE YOUR RETURN ADDRESS IS ON YOUR ENVELOPE TOP LEFT CORNER in case of any mail problems. === When you place your order, make sure you order each of the 5 reports. You will need all 5 reports so that you can save them on your computer and resell them. YOUR TOTAL COST $5 X 5=$25.00. Within a few days you will receive, via e-mail, each of the 5 reports from these 5 different individuals. Save them on your computer so they will be accessible for you to send to the 1,000's of people who will order them from you. Also make a floppy of these reports and keep it on your desk in case something happens to your computer. IMPORTANT - DO NOT alter the names of the people who are listed next to each report, or their sequence on the list, in any way other than what is instructed below in steps '' 1 through 6 '' or you will loose out on a majority of your profits. Once you understand the way this works, you will also see how it does not work if you change it. Remember, this method has been tested, and if you alter it, it will NOT work!!! People have tried to put their friends/relatives names on all five thinking they could get all the money. But it does not work this way. Believe us, we all have tried to be greedy and then nothing happened. So Do Not try to change anything other than what is instructed. Because if you do, it will not work for you. Remember, honesty reaps the reward!!! 1.... After you have ordered all 5 reports, take this advertisement and REMOVE the name & address of the person in REPORT # 5. This person has made it through the cycle and is no doubt counting their fortune. 2.... Move the name & address in REPORT # 4 down TO REPORT # 5. 3.... Move the name & address in REPORT # 3 down TO REPORT # 4. 4.... Move the name & address in REPORT # 2 down TO REPORT # 3. 5.... Move the name & address in REPORT # 1 down TO REPORT # 2. 6.... Insert YOUR name & address in the REPORT # 1 Position. PLEASE MAKE SURE you copy every name & address ACCURATELY! ========================================================== **** Take this entire letter, with the modified list of names, and save it on your computer. DO NOT MAKE ANY OTHER CHANGES. Save this on a disk as well just in case if you loose any data. To assist you with marketing your business on the internet, the 5 reports you purchase will provide you with invaluable marketing information which includes how to send bulk e-mails legally, where to find thousands of free classified ads and much more. There are 2 Primary methods to get this venture going: METHOD # 1: BY SENDING BULK E-MAIL LEGALLY ========================================================== Let's say that you decide to start small, just to see how it goes, and we will assume You and those involved send out only 5,000 e-mails each. Let's also assume that the mailing receives only a 0.2% response (the response could be much better but lets just say it is only 0.2%. Also many people will send out hundreds of thousands of e-mails instead of only 5,000 each). Continuing with this example, you send out only 5,000 e-mails. With a 0.2% response, that is only 10 orders for report # 1. Those 10 people responded by sending out 5,000 e-mail each for a total of 50,000. Out of those 50,000 e-mails only 0.2% responded with orders. That's 100 people responded and ordered Report # 2. Those 100 people mail out 5,000 e-mails each for a total of 500,000 e-mails. The 0.2% response to that is 1000 orders for Report # 3. Those 1000 people send out 5,000 e-mails each for a total of 5 million e-mails sent out. The 0.2% response to that is 10,000 orders for Report # 4. Those 10,000 people send out 5,000 e-mails each for a total of 50,000,000 (50 million) e-mails. The 0.2% response to that is 100,000 orders for Report # 5 THAT'S 100,000 ORDERS TIMES $5 EACH=$500,000.00 (half a million). Your total income in this example is: 1..... $50 + 2..... $500 + 3..... $5,000 + 4.... $50,000 + 5..... $500,000 ........ Grand Total=$555,550.00 NUMBERS DO NOT LIE. GET A PENCIL & PAPER AND FIGURE OUT THE WORST POSSIBLE RESPONSE AND NO MATTER HOW YOU CALCULATE IT, YOU WILL STILL MAKE A LOT OF MONEY! ========================================================= REMEMBER FRIEND, THIS IS ASSUMING ONLY 10 PEOPLE ORDERING OUT OF 5,000 YOU MAILED TO. Dare to think for a moment what would happen if everyone or half or even one 4th of those people mailed 100,000e-mails each or more? There are over 150 million people on the Internet worldwide and counting. Believe me, many people will do just that, and more! ========================================================= METHOD # 2 : BY PLACING FREE ADS ON THE INTERNET ======================================================= Advertising on the net is very very inexpensive and there are hundreds of FREE places to advertise. Placing a lot of free ads on the Internet will easily get a larger response. We strongly suggest you start with Method # 1 and add METHOD # 2 as you go along. For every $5 you receive, all you must do is e-mail them the Report they ordered. That's it. Always provide same day service on all orders. This will guarantee that the e-mail they send out, with your name and address on it, will be prompt because they can not advertise until they receive the report. =========== AVAILABLE REPORTS ==================== ORDER EACH REPORT BY ITS NUMBER & NAME ONLY. Notes: Always send $5 cash (U.S. CURRENCY) for each Report. Checks NOT accepted. Make sure the cash is concealed by wrapping it in at least 2 sheets of paper. On one of those sheets of paper, Write the NUMBER & the NAME of the Report you are ordering, YOUR E-MAIL ADDRESS and your name and postal address. PLACE YOUR ORDER FOR THESE REPORTS NOW : ==================================================== REPORT # 1: "The Insider's Guide to Advertising for Free on the Net" Order Report #1 from: M.R. 122 11th avenue Lachine, Quebec H8S-3G5 CANADA ___________________________________________________________ REPORT # 2: "The Insider's Guide to Sending Bulk e-mail on the Net" Order Report # 2 from: N. H. Merrill 147 Crescent St. Shrewsbury, MA 01545 USA ____________________________________________________________ REPORT # 3: "Secret to Multilevel Marketing on the Net" Order Report # 3 from : C. Henry 16211 N. 21st Street Phoenix, Arizona 85022 USA ____________________________________________________________ REPORT # 4: "How to Become a Millionaire Utilizing MLM & the Net" Order Report # 4 from: R.F. 33 Thistledown Court Nepean, Ontario K2J 1J4 CANADA ____________________________________________________________ REPORT #5: "How to Send Out 0ne Million e-mails for Free" Order Report # 5 from: Nancy Hahn 107 SE 13th St. Oak Island, NC 28465 USA ____________________________________________________________ $$$$$$$$$ YOUR SUCCESS GUIDELINES $$$$$$$$$$$ Follow these guidelines to guarantee your success: === If you do not receive at least 10 orders for Report #1 within 2 weeks, continue sending e-mails until you do. === After you have received 10 orders, 2 to 3 weeks after that you should receive 100 orders or more for REPORT # 2. If you did not, continue advertising or sending e-mails until you do. === Once you have received 100 or more orders for Report # 2, YOU CAN RELAX, because the system is already working for you, and the cash will continue to roll in! THIS IS IMPORTANT TO REMEMBER: Every time your name is moved down on the list, you are placed in front of a Different report. You can KEEP TRACK of your PROGRESS by watching which report people are ordering from you. IF YOU WANT TO GENERATE MORE INCOME SEND ANOTHER BATCH OF E-MAILS AND START THE WHOLE PROCESS AGAIN. There is NO LIMIT to the income you can generate from this business!!! ====================================================== FOLLOWING IS A NOTE FROM THE ORIGINATOR OF THIS PROGRAM: You have just received information that can give you financial freedom for the rest of your life, with NO RISK and JUST A LITTLE BIT OF EFFORT. You can make more money in the next few weeks and months than you have ever imagined. Follow the program EXACTLY AS INSTRUCTED. Do Not change it in any way. It works exceedingly well as it is now. Remember to e-mail a copy of this exciting report after you have put your name and address in Report #1 and moved others to #2 ...........# 5 as instructed above. One of the people you send this to may send out 100,000 or more e-mails and your name will be on every one of them. Remember though, the more you send out the more potential customers you will reach. So my friend, I have given you the ideas, information, materials and opportunity to become financially independent. IT IS UP TO YOU NOW! ============ MORE TESTIMONIALS ================ "My name is Mitchell. My wife, Jody and I live in Chicago. I am an accountant with a major U.S. Corporation and I make pretty good money. When I received this program I grumbled to Jody about receiving ''junk mail.'' I made fun of the whole thing, spouting my knowledge of the population and percentages involved. I ''knew'' it wouldn't work. Jody totally ignored my supposed intelligence and a few days later she jumped in with both feet. I made merciless fun of her, and was ready to lay the old ''I told you so" on her when the thing didn't work. Well, the laugh was on me! Within 3 weeks she had received 50 responses. Within the next 45 days she had received a total of $147,200.00 ........... all cash! I was shocked. I have joined Jody in her "hobby." Mitchell Wolf, Chicago, Illinois ====================================================== "Not being the gambling type, it took me several weeks to make up my mind to participate in this plan. But conservative that I am, I decided that the initial investment was so little that there was just no way that I wouldn't get enough orders to at least get my money back." "I was surprised when I found my medium sized post office box crammed with orders. I made $319,210.00 in the first 12 weeks. The nice thing about this deal is that it does not matter where people live. There simply isn't a better investment with a faster return and so big." Dan Sondstrom, Alberta, Canada ======================================================= ''I had received this program before. I deleted it, but later I wondered if I should have given it a try. Of course, I had no idea who to contact to get another copy, so I had to wait until I was e-mailed again by someone else.........11 months passed then it luckily came again...... I did not delete this one! I made more than $490,000 on my first try and all the money came within 22 weeks." Susan De Suza, New York, N.Y. ======================================================= ''It really is a great opportunity to make relatively easy money with little cost to you. I followed the simple instructions carefully and within 10 days the money started to come in. My first month I made $20,560.00 and by the end of third month my total cash count was $362,840.00. Life is beautiful, Thanx to the internet." Fred Dellaca, Westport, New Zealand ======================================================= ORDER YOUR REPORTS TODAY AND GET STARTED ON 'YOUR' ROAD TO FINANCIAL FREEDOM! ======================================================= If you have any questions of the legality of this program, contact the Office of Associate Director for Marketing Practices, Federal Trade Commission, Bureau of Consumer Protection, Washington, D.C ========================================================

    attached mail follows:


    Go find some safe lists, not a list like this...

    ----- Original Message ----- From: Marty <shadow_xyzemail.com> To: <php-generallists.php.net> Sent: Tuesday, July 24, 2001 11:00 AM Subject: [PHP] The Program!

    > Several months ago, I made a conscious decision not to > delete what I figured was just another "junk" e-mail. > That decision has changed my life. Here you have the > very same opportunity in front of you. If you take > just five minutes to read through the following > program you won't regret it. See for yourself! > > Dear Friends & Future Millionaires: > AS SEEN ON NATIONAL TV: > Making over half a million dollars every 4 to 5 months > from your home for an investment of only $25 U.S. > Dollars expense one time > THANKS TO THE COMPUTER AGE AND THE INTERNET ! > ================================================== > BE A MILLIONAIRE LIKE OTHERS WITHIN A YEAR!!! > Before you say ''Bull'', please read the following. > This is the letter you have been hearing about on the > news lately. Due to the popularity of this letter on > the Internet, a national weekly news program recently > devoted an entire show to the investigation of this > program described below, to see if it really can make > people money. The show also investigated whether or > not the program was legal. Their findings proved once > and for all that there are ''absolutely NO Laws > prohibiting the participation in the program and if > people can -follow the simple instructions, they are > bound to make some mega bucks with only $25 out of > pocket cost''. DUE TO THE RECENT INCREASE OF > POPULARITY & RESPECT THIS PROGRAM HAS ATTAINED, IT IS > CURRENTLY WORKING BETTER THAN EVER. This is what one > had to say: ''Thanks to this profitable opportunity. I > was approached many times before but each time I > passed on it. I am so glad finally joined just to see > what one could expect in return for the minimal effort > and money required. To my astonishment, I received > total $610,470.00 in 21 weeks, with money still coming > in." > Pam Hedland, Fort Lee, New Jersey. > =================================================== > Here is another testimonial: "This program has been > around for a long time but I never believed in it. But > one day when I received this again in the mail I > decided to gamble my $25 on it. I followed the simple > instructions and voila ..... 3 weeks later the money > started to come in. First month I only made $240.00 > but the next 2 months after that I made a total of > $290,000.00. So far, in the past 8 months by > re-entering the program, I have made over $710,000.00 > and I am playing it again. The key to success in this > program is to follow the simple steps and NOT change > anything.'' More testimonials later but first, > ===== PRINT THIS NOW FOR YOUR FUTURE REFERENCE ====== > $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ > If you would like to make at least $500,000 every 4 to > 5 months easily and comfortably, please read the > following...THEN READ IT AGAIN and AGAIN!!! > $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ > FOLLOW THE SIMPLE INSTRUCTIONS BELOW AND YOUR > FINANCIAL DREAMS WILL COME TRUE, GUARANTEED! > INSTRUCTIONS: > =====Order all 5 reports shown on the list below ===== > For each report, send $5 CASH, THE NAME & NUMBER OF > THE REPORT YOU ARE ORDERING and YOUR E-MAIL ADDRESS to > the person whose name appears ON THAT LIST next to the > report. MAKE SURE YOUR RETURN ADDRESS IS ON YOUR > ENVELOPE TOP LEFT CORNER in case of any mail problems. > === When you place your order, make sure you order > each of the 5 reports. > You will need all 5 reports so that you can save them > on your computer and resell them. YOUR TOTAL COST $5 X > 5=$25.00. Within a few days you will receive, via > e-mail, each of the 5 reports from these 5 different > individuals. Save them on your computer so they will > be accessible for you to send to the 1,000's of people > who will order them from you. Also make a floppy of > these reports and keep it on your desk in case > something happens to your computer. IMPORTANT - DO NOT > alter the names of the people who are listed next to > each report, or their sequence on the list, in any way > other than what is instructed below in steps '' 1 > through 6 '' or you will loose out on a majority of > your profits. Once you understand the way this works, > you will also see how it does not work if you change > it. Remember, this method has been tested, and if you > alter it, it will NOT work!!! People have tried to put > their friends/relatives names on all five thinking > they could get all the money. But it does not work > this way. Believe us, we all have tried to be greedy > and then nothing happened. So Do Not try to change > anything other than what is instructed. Because if you > do, it will not work for you. Remember, honesty reaps > the reward!!! > 1.... After you have ordered all 5 reports, take this > advertisement and REMOVE the name & address of the > person in REPORT # 5. This person has made it through > the cycle and is no doubt counting their fortune. > 2.... Move the name & address in REPORT # 4 down TO > REPORT # 5. > 3.... Move the name & address in REPORT # 3 down TO > REPORT # 4. > 4.... Move the name & address in REPORT # 2 down TO > REPORT # 3. > 5.... Move the name & address in REPORT # 1 down TO > REPORT # 2. > 6.... Insert YOUR name & address in the REPORT # 1 > Position. PLEASE MAKE SURE you copy every name & > address ACCURATELY! > ========================================================== > **** Take this entire letter, with the modified list > of names, and save it on your computer. DO NOT MAKE > ANY OTHER CHANGES. Save this on a disk as well just > in case if you loose any data. To assist you with > marketing your business on the internet, the 5 reports > you purchase will provide you with invaluable > marketing information which includes how to send bulk > e-mails legally, where to find thousands of free > classified ads and much more. > There are 2 Primary methods to get this venture going: > METHOD # 1: BY SENDING BULK E-MAIL LEGALLY > ========================================================== > Let's say that you decide to start small, just to see > how it goes, and we will assume You and those involved > send out only 5,000 e-mails each. Let's also assume > that the mailing receives only a 0.2% response (the > response could be much better but lets just say it is > only 0.2%. Also many people will send out hundreds of > thousands of e-mails instead of only 5,000 each). > Continuing with this example, you send out only 5,000 > e-mails. With a 0.2% response, that is only 10 orders > for report # 1. Those 10 people responded by sending > out 5,000 e-mail each for a total of 50,000. Out of > those 50,000 e-mails only 0.2% responded with orders. > That's 100 people responded and ordered Report # 2. > Those 100 people mail out 5,000 e-mails each for a > total of 500,000 e-mails. The 0.2% response to that is > 1000 orders for Report # 3. Those 1000 people send > out 5,000 e-mails each for a total of 5 million > e-mails sent out. The 0.2% response to that is 10,000 > orders for Report # 4. Those 10,000 people send out > 5,000 e-mails each for a total of 50,000,000 (50 > million) e-mails. The 0.2% response to that is 100,000 > orders for Report # 5 THAT'S 100,000 ORDERS TIMES $5 > EACH=$500,000.00 (half a million). Your total income > in this example is: 1..... $50 + 2..... $500 + 3..... > $5,000 + 4.... $50,000 + 5..... $500,000 ........ > Grand Total=$555,550.00 NUMBERS DO NOT LIE. GET A > PENCIL & PAPER AND FIGURE OUT THE WORST POSSIBLE > RESPONSE AND NO MATTER HOW YOU CALCULATE IT, YOU WILL > STILL MAKE A LOT OF MONEY! > ========================================================= > REMEMBER FRIEND, THIS IS ASSUMING ONLY 10 PEOPLE > ORDERING OUT OF 5,000 YOU MAILED TO. Dare to think > for a moment what would happen if everyone or half or > even one 4th of those people mailed 100,000e-mails > each or more? There are over 150 million people on the > Internet worldwide and counting. Believe me, many > people will do just that, and more! > ========================================================= > METHOD # 2 : BY PLACING FREE ADS ON THE INTERNET > ======================================================= > Advertising on the net is very very inexpensive and > there are hundreds of FREE places to advertise. > Placing a lot of free ads on the Internet will easily > get a larger response. We strongly suggest you start > with Method # 1 and add METHOD # 2 as you go along. > For every $5 you receive, all you must do is e-mail > them the Report they ordered. That's it. Always > provide same day service on all orders. This will > guarantee that the e-mail they send out, with your > name and address on it, will be prompt because they > can not advertise until they receive the report. > =========== AVAILABLE REPORTS ==================== > ORDER EACH REPORT BY ITS NUMBER & NAME ONLY. Notes: > Always send $5 cash (U.S. CURRENCY) for each Report. > Checks NOT accepted. Make sure the cash is concealed > by wrapping it in at least 2 sheets of paper. On one > of those sheets of paper, Write the NUMBER & the NAME > of the Report you are ordering, YOUR E-MAIL ADDRESS > and your name and postal address. > PLACE YOUR ORDER FOR THESE REPORTS NOW : > ==================================================== > REPORT # 1: "The Insider's Guide to Advertising for > Free on the Net" > Order Report #1 from: > M.R. > 122 11th avenue > Lachine, Quebec > H8S-3G5 > CANADA > ___________________________________________________________ > REPORT # 2: "The Insider's Guide to Sending Bulk > e-mail on the Net" > Order Report # 2 from: > N. H. Merrill > 147 Crescent St. > Shrewsbury, MA 01545 > USA > ____________________________________________________________ > REPORT # 3: "Secret to Multilevel Marketing on the > Net" > Order Report # 3 from : > C. Henry > 16211 N. 21st Street > Phoenix, Arizona 85022 > USA > ____________________________________________________________ > REPORT # 4: "How to Become a Millionaire Utilizing MLM > & the Net" > Order Report # 4 from: > R.F. > 33 Thistledown Court > Nepean, Ontario > K2J 1J4 > CANADA > ____________________________________________________________ > REPORT #5: "How to Send Out 0ne Million e-mails for > Free" > Order Report # 5 from: > Nancy Hahn > 107 SE 13th St. > Oak Island, NC 28465 > USA > ____________________________________________________________ > $$$$$$$$$ YOUR SUCCESS GUIDELINES $$$$$$$$$$$ > Follow these guidelines to guarantee your success: > === If you do not receive at least 10 orders for > Report #1 within 2 weeks, continue sending e-mails > until you do. > === After you have received 10 orders, 2 to 3 weeks > after that you should receive 100 orders or more for > REPORT # 2. If you did not, continue advertising or > sending e-mails until you do. > === Once you have received 100 or more orders for > Report # 2, YOU CAN RELAX, because the system is > already working for you, and the cash will continue to > roll in! THIS IS IMPORTANT TO REMEMBER: > Every time your name is moved down on the list, you > are placed in front of a Different report. > You can KEEP TRACK of your PROGRESS by watching which > report people are ordering from you. IF YOU WANT TO > GENERATE MORE INCOME SEND ANOTHER BATCH OF E-MAILS AND > START THE WHOLE PROCESS AGAIN. There is NO LIMIT to > the income you can generate from this business!!! > ====================================================== > FOLLOWING IS A NOTE FROM THE ORIGINATOR OF THIS > PROGRAM: You have just received information that can > give you financial freedom for the rest of your life, > with NO RISK and JUST A LITTLE BIT OF EFFORT. You can > make more money in the next few weeks and months than > you have ever imagined. Follow the program EXACTLY AS > INSTRUCTED. Do Not change it in any way. It works > exceedingly well as it is now. > Remember to e-mail a copy of this exciting report > after you have put your name and address in Report #1 > and moved others to #2 ...........# 5 as instructed > above. One of the people you send this to may send out > 100,000 or more e-mails and your name will be on every > one of them. Remember though, the more you send out > the more potential customers you will reach. So my > friend, I have given you the ideas, information, > materials and opportunity to become financially > independent. IT IS UP TO YOU NOW! > ============ MORE TESTIMONIALS ================ > "My name is Mitchell. My wife, Jody and I live in > Chicago. I am an accountant with a major U.S. > Corporation and I make pretty good money. When I > received this program I grumbled to Jody about > receiving ''junk mail.'' I made fun of the whole > thing, spouting my knowledge of the population and > percentages involved. I ''knew'' it wouldn't work. > Jody totally ignored my supposed intelligence and a > few days later she jumped in with both feet. I made > merciless fun of her, and was ready to lay the old ''I > told you so" on her when the thing didn't work. Well, > the laugh was on me! Within 3 weeks she had received > 50 responses. Within the next 45 days she had received > a total of $147,200.00 ........... all cash! I was > shocked. I have joined Jody in her "hobby." > Mitchell Wolf, Chicago, Illinois > ====================================================== > "Not being the gambling type, it took me several > weeks to make up my mind to participate in this plan. > But conservative that I am, I decided that the initial > investment was so little that there was just no way > that I wouldn't get enough orders to at least get my > money back." "I was surprised when I found my > medium sized post office box crammed with orders. I > made $319,210.00 in the first 12 weeks. The nice thing > about this deal is that it does not matter where > people live. There simply isn't a better investment > with a faster return and so big." > Dan Sondstrom, Alberta, Canada > ======================================================= > ''I had received this program before. I deleted it, > but later I wondered if I should have given it a try. > Of course, I had no idea who to contact to get another > copy, so I had to wait until I was e-mailed again by > someone else.........11 months passed then it luckily > came again...... I did not delete this one! I made > more than $490,000 on my first try and all the money > came within 22 weeks." > Susan De Suza, New York, N.Y. > ======================================================= > ''It really is a great opportunity to make relatively > easy money with little cost to you. I followed the > simple instructions carefully and within 10 days the > money started to come in. My first month I made > $20,560.00 and by the end of third month my total cash > count was $362,840.00. Life is beautiful, Thanx to the > internet." > Fred Dellaca, Westport, New Zealand > ======================================================= > ORDER YOUR REPORTS TODAY AND GET STARTED ON 'YOUR' > ROAD TO FINANCIAL FREEDOM! > ======================================================= > If you have any questions of the legality of this > program, contact the Office of Associate Director for > Marketing Practices, Federal Trade Commission, Bureau > of Consumer Protection, Washington, D.C > ======================================================== > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >

    attached mail follows:


    I know this one will be an easy one ...

    I'm taking in first name and last name data into a MySQL db through a form. Users sometimes don't capitalize their first and last names when entering the data. Is there a function to clean this up for consistency? If so, what is the name of the function that performs this?

    Thanks in advance,

    Gene Kelley Web Developer BizFlow Data Solutions, Inc. http://www.bizflowdata.net/

    __________________________________________________________________ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with ShopNetscape! http://shopnow.netscape.com/

    Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

    attached mail follows:


    The function that you want is called: ucfirst()

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

    To make sure that string are consistant you might want to convert all characters in the string to Lower case first then call this function. This will ensure that stuff like "JoHn sMITH" gets converted to "John Smith" consistantly.

    > -----Original Message----- > From: PHP Junkie [mailto:php091565netscape.net] > Sent: Tuesday, July 24, 2001 11:39 AM > To: php-generallists.php.net > Subject: [PHP] Capitalize Function ?? > > > I know this one will be an easy one ... > > I'm taking in first name and last name data into a MySQL db > through a form. Users sometimes don't capitalize their first and > last names when entering the data. Is there a function to clean > this up for consistency? If so, what is the name of the function > that performs this? > > Thanks in advance,

    attached mail follows:


    I think ucfirst() only does the first character of the string...

    ucwords() will do all the parts of the name.

    The only shortcoming I've found is if people put in a middle initial and add a period to it, or put a nickname in quotes... ucwords() skips those.

    -----Original Message----- From: Opec Kemp [mailto:mailinglistquasarz.com] Sent: Monday, July 23, 2001 9:53 PM To: PHP Junkie Cc: PHP List Subject: RE: [PHP] Capitalize Function ??

    The function that you want is called: ucfirst()

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

    To make sure that string are consistant you might want to convert all characters in the string to Lower case first then call this function. This will ensure that stuff like "JoHn sMITH" gets converted to "John Smith" consistantly.

    > -----Original Message----- > From: PHP Junkie [mailto:php091565netscape.net] > Sent: Tuesday, July 24, 2001 11:39 AM > To: php-generallists.php.net > Subject: [PHP] Capitalize Function ?? > > > I know this one will be an easy one ... > > I'm taking in first name and last name data into a MySQL db through a > form. Users sometimes don't capitalize their first and last names when

    > entering the data. Is there a function to clean this up for > consistency? If so, what is the name of the function that performs > this? > > Thanks in advance,

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

    attached mail follows:


    So sprach »PHP Junkie« am 2001-07-23 um 21:39:07 -0400 : > I'm taking in first name and last name data into a MySQL db through a > form. Users sometimes don't capitalize their first and last names when > entering the data. Is there a function to clean this up for > consistency? If so, what is the name of the function that performs > this?

    Yep, ucwords.

    But this is not a good idea! There are Names (like "Hans vom Bach" or somesuch) which do NOT have to be captialized. Actually, capitalizing the "vom" would be wrong. Although this was just a German example, I'd bet there are names in French, Dutch, Spanish, Italian as well which should not be capitalized. Hmm, how about English? Sometimes there are suffixes like "the 3rd", no? Would it be right to capitalize this?

    Alexander Skwar

    -- 
    How to quote:	http://learn.to/quote (german) http://quote.6x.to (english)
    Homepage:	http://www.digitalprojects.com   |   http://www.iso-top.de
       iso-top.de - Die günstige Art an Linux Distributionen zu kommen
    		Uptime: 1 day 7 hours 12 minutes
    

    attached mail follows:


    Test: Ignore, just like the subject says.

    attached mail follows:


    Hi,

    I'm trying to access variables coming in through a form. I have assigned them dynamic names on the form page (e.g., $username, where username can change).

    Now how can I access these variables on the next page? I tried:

    $($people["username"])

    where username is a field and people is a MySQL record. This doesn't work though. Is this not possible? I'm essentially trying to make a page where someone can edit permissions for any number of users, and <input value="$username">. How else can I do this??

    Thanks tons! -Casey

    attached mail follows:


    Casey,

    You need to loop around on the next page to find the variables - they are all in HTTP_POST_VARS:-

    while (list($key, $val) = each($HTTP_POST_VARS)) { print "Key = ".$key." Value = ".$val."<br>"; }

    Chris

    bessettecm03uwwvax.uww.edu wrote:

    > Hi, > > I'm trying to access variables coming in through a form. I have assigned them > dynamic names on the form page (e.g., $username, where username can change). > > Now how can I access these variables on the next page? I tried: > > $($people["username"]) > > where username is a field and people is a MySQL record. This doesn't work > though. Is this not possible? I'm essentially trying to make a page where > someone can edit permissions for any number of users, and <input > value="$username">. How else can I do this?? > > Thanks tons! > -Casey > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net

    --
    

    Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia

    Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: chrisquillsoft.com.au http://www.quillsoft.com.au

    You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt

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

    This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so.

    This notice should not be removed.

    attached mail follows:


    Hi. I have just started to play with PDFlib, but the manual and php.net notes are not, to my simple self, particularly digestible. Does anyone have any links to any tutorial pages or any handy hints they could point me to?

    Cheers

    Lee

    attached mail follows:


    In the comments on the php.net pages, i found a few, but i gave up on using pdf within php, because you had to pay about a thousand odd dollars just to use the thing, so be prepared to put some cash in to it :D - James "ReDucTor" Mitchell ----- Original Message ----- From: By Proxy <byproxy1optushome.com.au> To: php general list <php-generallists.php.net> Sent: Tuesday, July 24, 2001 12:11 PM Subject: [PHP] PDFlib beginners request

    > Hi. I have just started to play with PDFlib, but the manual and php.net > notes are not, to my simple self, particularly digestible. Does anyone have > any links to any tutorial pages or any handy hints they could point me to? > > Cheers > > Lee > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >

    attached mail follows:


    I want to set up a script that sends a bunch of emails - pauses - and resumes until all messages are sent.

    The way this will happen is that a person will create the newsletter, check it, and then press the "Send" button which will start the process of sending the mail in bunches. How do I get a script to run in the background? I am only familiar with processing script within an html page that is returned to a client. Will a script like this keep running even if a browser window is closed?

    Also is there any examples of this kind of app?

    Regards,

    Matthew Delmarter Web Developer

    AdplusOnline.com Ltd www.adplusonline.com

    Phone: 06 8357684 Cell: 025 2303630

    attached mail follows:


    Hi,

    I had to solve very similar problem - solution was to store prepared e-mails in database and send them with an external program using cron to run it. I'm sending about 40,000 announces per day with my system with no problems.

    Mirek Novak

    ---
    Matthew Delmarter pí¹e:
    

    > I want to set up a script that sends a bunch of emails - pauses - and > resumes until all messages are sent. > > The way this will happen is that a person will create the newsletter, check > it, and then press the "Send" button which will start the process of sending > the mail in bunches. How do I get a script to run in the background? I am > only familiar with processing script within an html page that is returned to > a client. Will a script like this keep running even if a browser window is > closed? > > Also is there any examples of this kind of app? > > Regards,

    attached mail follows:


    > > Also is there any examples of this kind of app?

    Just do something like this with shell, logically

    while read_line_from_email_address_list ; do cat your_text_file | mail -s "Your Subject" address_from_list; sleep 1; done;

    and put it in the background. You only need the sleep for "safety" as some sendmail(1)'s/systems don't take kindly to queueing up 20,000 messages....

    _jef

    -- 
    Justin Farnsworth
    Eye Integrated Communications
    321 South Evans - Suite 203
    Greenville, NC 27858 | Tel: (252) 353-0722
    

    attached mail follows:


    On Monday 23 July 2001 19:00, Rehuel Lobato de Mesquita wrote:

    > I have a mySQL table, where the ID field is an auto increment number > (INT(2)). I have a query that selects 2 colunms in the table and the

    2 digits isn't much...

    > lists them > But only the items with a double digit id are displayd. it fails to > display items with 1 digit! > What did I do wrong

    What did you do?

    > I want to know where to look.

    In your query. Or your PHP code. That's about all I can say. If you want to get a useful answer, provide some relevant facts.

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

    This is JohnC IMHO, I compaired tri-word groupings here and in his plan and got a good match.

    - /. posting discussing the likelihood that an AC post that claimed to be posted by John Carmack during his honeymoon (and having the login info at home) was actually from him.

    attached mail follows:


    Hi

    Just wanted to ask the gurus on the list when they think that the ISAPI version of PHP for IIS/Windows will be stable enough for use in a production environment. I'm doing some rough tests with ISAPI about 3-4 times faster than CGI (which is comparable to native ASP!). Ball park figure that's all eg 6 months 12 months?

    Thanks for your time

    Peter

    attached mail follows:


    On 23-Jul-2001 Matt Greer wrote: > I don't think that's the best subject, but I'm not really sure how to phrase > it. > > I'm not familiar with php's image capabilities. I've read about them a bit, > but never really used them. > > I'd like to have an image that when accessed would cause php to kick in and > do a few things before sending the image along to whoever is requesting it. > Basically I'd like to keep a running tally of how many times a website is > accessing an image on my server. Which functionally speaking is identical to > a hit counter I guess. > > Is it possible to have on a webpage something like <img > src="image.php?website=awebsite.com"> > > and then image.php takes note of the website variable, does a few things > with mysql, then passes on the image that is wanted, utilizing something > from the gd library? >

    Sure, /php/fetchimg.php?img=da_image.jpeg

    /php/fetchimg.php

    ---
    <?php
    $ftype = strtolower(strrchr($img, '.'));
    $types = array(
            '.gif' => 'image/gif',
            '.jpg' => 'image/jpeg',
            '.mov' => 'video/quicktime',
            '.mpe' => 'video/mpeg',
            '.mpeg' => 'video/mpeg',
            '.mpg' => 'video/mpeg'
            );
    

    $fname = "$DOCUMENT_ROOT/images/$img";

    Header("Content-type: " .$types[$ftype]); Header("Content-length: " .filesize($fname)); readfile($fname);

    $qry ="insert into foo (da_time,da_name) values (NOW(), '$img'); mysql_query($qry); ?>

    Regards, -- Don Read dreadtexas.net -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it.

    attached mail follows:


    Only use hide(), show(), block(), etc. if you want an "ordinary" htmlpage to be shown. If you on the other hand want the values of form elements to change you should do something like this:

    <SCRIPT LANGUAGE="javascript"> function fillForm(){ document.form_name.txt.value = document.form_name.a_selection.value; } </SCRIPT>

    <FORM NAME="form_name" METHOD... ACTION....> <SELECT NAME="a_selection" onChange="fillForm();"> <OPTION VALUE="pickup">Pick up <OPTION VALUE="Goto">Go to </SELECT> <BR> <INPUT TYPE="text" NAME="txt" VALUE=""> <FORM>

    AB> I want to create a form which once you select a radio button or a drop down AB> menu display the proper fields according to the selection.

    AB> Let say that we have two options : To go and Pick Up. If the user select to AB> go then automatically display the address field, zip field etc, if the user AB> select pick up display the time field etc.

    Kind regards, Morten Winkler

    attached mail follows:


    hey-

    I want to select the oldest show from a database to display on my main page, since the oldest show is also the show happening closest to any current time(if that makes sense...). I included a timestamp field in my table of shows in anticipation of checking that to find out what was the oldest. however, I'm wondering how I should go about doing that exactly. my idea was the scan through just that column of timestamps, find the lowest one, and then make a selection from the db based on the timestamp. Can any give me some examples of code to scan through a column like i mentioned, or give me better ideas on how to do this??

    thanks chris

    attached mail follows:


    On Tue, 24 Jul 2001 15:57, Chris Cocuzzo wrote: > hey- > > I want to select the oldest show from a database to display on my main > page, since the oldest show is also the show happening closest to any > current time(if that makes sense...). I included a timestamp field in > my table of shows in anticipation of checking that to find out what was > the oldest. however, I'm wondering how I should go about doing that > exactly. my idea was the scan through just that column of timestamps, > find the lowest one, and then make a selection from the db based on the > timestamp. Can any give me some examples of code to scan through a > column like i mentioned, or give me better ideas on how to do this?? > > thanks > chris

    I'm not exactly sure what you want here, but it seems like you could do a select where timestamp (<= or >= ) NOW() and then ORDER the result ASC or DESC according to your needs.

    Frinstance, to get the first show on or after today you could select where timestamp is greater than or equal to NOW(), ORDER by timestamp and LIMIT 1 to get the earliest in the future. Which might be today! You can do some fancy formatting of the timestamp in Mysql, if that helps.

    -- 
    David Robley      Techno-JoaT, Web Maintainer, Mail List Admin, etc
    CENTRE FOR INJURY STUDIES      Flinders University, SOUTH AUSTRALIA  
    

    Only cosmetologists give make-up exams.

    attached mail follows:


    On 24-Jul-2001 Chris Cocuzzo wrote: > hey- > > I want to select the oldest show from a database to display on my main page, > since the oldest show is also the show happening closest to any current > time(if that makes sense...). I included a timestamp field in my table of > shows in anticipation of checking that to find out what was the oldest. > however, I'm wondering how I should go about doing that exactly. my idea was > the scan through just that column of timestamps, find the lowest one, and > then make a selection from the db based on the timestamp. Can any give me > some examples of code to scan through a column like i mentioned, or give me > better ideas on how to do this?? > > thanks > chris >

    'Old'-est - order by your_timestamp asc 'New'-est - order by your_timestamp desc

    ... limit x;

    Regards,

    -- 
    Don Read                                       dreadtexas.net
    -- It's always darkest before the dawn. So if you are going to 
       steal the neighbor's newspaper, that's the time to do it.
    

    attached mail follows:


    A urgent question does, the follow work on sun solaris. php + postgresql + expat + saboltron

    attached mail follows:


    Hi,

    On my local test server (PHP4.0.1, FreeBSD, MySQL), when I get a general error (bad code) it reports "error <type> on <file/script> on line 1".

    It allways says "line 1", even if it's line 4028.

    I've had experience with this happening if there is a structure problem with { brackets } missing (on any server), but never for general syntax-kinda errors.

    But on my "live" server (a couple of different ISPs), the error reports the correct line, as you would expect.

    Since it's only on my test server, I assume it's a problem with the config file, or something like that, but don't know where to start.... any ideas?

    Maybe I can switch on an errors function at the start of each script?

    Justin French

    attached mail follows:


    Hi,

    I'm using PHP for a few weeks now, so you can imagine that I'm making a lot of typing errors...

    Often I make a typing error in one of the variable names ($helo instead of $hello or worse still $Hello instead of $hello). Since PHP does not care about declaring variables before using them, it is very easy to overlook such small typing error in a large PHP script.

    In the old days of ANSI C, there where things like LINT that would help you with these problems. Of course in ANSI C these things were easier, because of the fact that variables need to be declared before they could be used.

    My questions: 1. can you configure PHP in such away that variables need to be declared? 2. are there source code checking tools that could help me locate problems like described above?

    Thanks for your help

    René

    attached mail follows:


    rene.moonenoberthur.nl (René Moonen) wrote:

    > Hi, > > I'm using PHP for a few weeks now, so you can imagine that I'm making a > lot of typing errors... > > Often I make a typing error in one of the variable names ($helo instead > of $hello or worse still $Hello instead of $hello). Since PHP does not > care about declaring variables before using them, it is very easy to > overlook such small typing error in a large PHP script. > > In the old days of ANSI C, there where things like LINT that would help > you with these problems. Of course in ANSI C these things were easier, > because of the fact that variables need to be declared before they could > be used. > > My questions: > 1. can you configure PHP in such away that variables need to be > declared?

    you can change your warning level to E_ALL to give you a warning when variables aren't defined, but it still does not NEED to be defined.

    > 2. are there source code checking tools that could help me locate > problems like described above?

    dont know.

    -- 
    Henrik Hansen
    

    attached mail follows:


    the zend ide www.zend.com is a pretty cool debugging env.

    Steve

    "René Moonen" <rene.moonenoberthur.nl> wrote in message news:3B5D2659.766BEA2Aoberthur.nl... Hi,

    I'm using PHP for a few weeks now, so you can imagine that I'm making a lot of typing errors...

    Often I make a typing error in one of the variable names ($helo instead of $hello or worse still $Hello instead of $hello). Since PHP does not care about declaring variables before using them, it is very easy to overlook such small typing error in a large PHP script.

    In the old days of ANSI C, there where things like LINT that would help you with these problems. Of course in ANSI C these things were easier, because of the fact that variables need to be declared before they could be used.

    My questions: 1. can you configure PHP in such away that variables need to be declared? 2. are there source code checking tools that could help me locate problems like described above?

    Thanks for your help

    René

    attached mail follows:


    It happens alot. Just sigh a little and delete it.

    I always think of it as a very quick email to deal with out of the 180 I get each day....

    At 17:33 23/07/2001 +1000, ReDucTor wrote: >When?!? > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribelists.php.net >For additional commands, e-mail: php-general-helplists.php.net >To contact the list administrators, e-mail: php-list-adminlists.php.net

    ------------------------- Brian White Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy Phone: +612-93197901 Web: http://www.steptwo.com.au/ Email: bwhitesteptwo.com.au

    attached mail follows:


    Anyone know how to copy an array to another name?

    I'm assumming that $array1 = $array2; doesn't work (at least it doesn't seem too :( ).

    Thanks.

    Nick.

    attached mail follows:


    hows about $array2 = $array1; :D ----- Original Message ----- From: Nick Davies <nicksensei.co.uk> To: <php-generallists.php.net> Sent: Tuesday, July 24, 2001 6:39 PM Subject: [PHP] Copy Array.

    > > Anyone know how to copy an array to another name? > > I'm assumming that $array1 = $array2; doesn't work (at least it > doesn't seem too :( ). > > Thanks. > > Nick. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >

    attached mail follows:


    Hi I am transfering a NT IIS website with forms to APACHE and PHP, but need examples of how the forms work, can you please guide as to where I can find some and any other data to asist me as this is the first time I have used PHP.

    Many thanks

    Denis Croombs

    attached mail follows:


    --- example.php ------------------------------------------- <?=$myText?> <form method=post action="./example.php"> <input type="text" name="myText" value="<?=$myText?>"><br> <input type="submit"> </form>

    "Denis Croombs" <denisimsltd.com> wrote in message news:004701c11426$b94b7f10$381bcac2denisy2k.imsltd.com... > Hi > I am transfering a NT IIS website with forms to APACHE and PHP, but need > examples of how the forms work, can you please guide as to where I can find > some and any other data to asist me as this is the first time I have used > PHP. > > Many thanks > > Denis Croombs >

    attached mail follows:


    hi, example:

    << html file >>

    <form action="form_send.php" method="post"> Your username: <input type="text" name="user"> <input type="submit" name="login" value="Login"> <input type="submit" name="remove" value="Delete Account"> </form>

    << php file >>

    if (isset($login)) { // Do login... } else if (isset($remove)) { // Remove user... }

    "Florian SchäFer" wrote:

    > Hallo out there, > > i hava an document, with one form and two Submit buttons. > How can i check in the target document wich button is pressed? > tried something like if ($submit == 'xxx') . > anyone has a hint?

    --
    Linux...
    Because it works.
    

    attached mail follows:


    try to move the php4ts.dll library in C:\winnt\system32

    Andrew Kirilenko <icedworkflashmail.com> wrote in message news:OLEPKNABAOJLPICALICKCEADCAAA.icedworkflashmail.com... > Hi All! > > Just installed PHP4 & Apache. > Apache has started well. > Then I've added two strings from install.txt to the httpd.conf: > LoadModule php4_module c:/php/sapi/php4apache.dll > AddType application/x-httpd-php .php4 > (I've PHP installed in c:\apps\PHP\) > > After Apache restart, I've got following message: > Syntax error on line 203 of c:/apps/apache/conf/httpd.conf: > Cannot load c:/apps/php/sapi/php4apache.dll into server: (126) The specified > module could not be found: > > Any suggestions? > > Best regards, > Andrew Kirilenko. >

    attached mail follows:


    Hello,

    I have a simple question. How do I monitor two or more sockets in PHP?

    Someone told me about register_tick_function() for multi tasking but I played with it and nothing seems to come out of it.

    I monitored the first opened socket using a while() loop containing a fgets() function.