OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: php-general-digest-helplists.php.net
Date: Mon Aug 06 2001 - 15:07:15 CDT

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

    php-general Digest 6 Aug 2001 20:07:15 -0000 Issue 800

    Topics (messages 61382 through 61473):

    file_exists bug?
            61382 by: Ken Williams
            61383 by: Rasmus Lerdorf

    Re: Spot the difference?
            61384 by: B. van Ouwerkerk
            61464 by: Ezra Nugroho

    Re: magazine-subscription
            61385 by: B. van Ouwerkerk
            61430 by: Justin French

    array + checkbox
            61386 by: Tijmen Hennink
            61387 by: Jason Murray
            61389 by: Tijmen Hennink
            61390 by: Tijmen Hennink
            61396 by: James Holloway
            61398 by: Tijmen Hennink
            61467 by: David Price

    Re: Looking for Portal/Directory code
            61388 by: B. van Ouwerkerk

    I Want
            61391 by: Alawi Albaity
            61392 by: Jason Murray

    Re: Call to undefined function: imap_open()
            61393 by: Renze Munnik

    Re: syntax help~~~
            61394 by: Coconut Ming
            61400 by: Andreas D. Landmark

    Registration key
            61395 by: Richard Kurth
            61409 by: Miles Thompson

    phpAds advice needed
            61397 by: Jack
            61457 by: Jerry Lake

    crypted source
            61399 by: Ornella Fasolo
            61402 by: B. van Ouwerkerk
            61413 by: Henrik Hansen

    Seg fault when returning True from shutdown function.
            61401 by: William Bailey
            61407 by: Corin Rathbone

    $PHP_SELF in a template problem, I think ??
            61403 by: Phil Latio
            61404 by: Richard Baskett
            61408 by: Phil Latio
            61411 by: Phil Latio

    ASSISTANCE NEEDED
            61405 by: kelvin asonze
            61406 by: kelvin asonze
            61410 by: Miles Thompson

    mysql_numrows
            61412 by: AJDIN BRANDIC
            61414 by: Daniel Rezny
            61416 by: Sam Masiello
            61417 by: CC Zona

    Re: 404's and requesting page
            61415 by: Tom Carter
            61420 by: Tom Carter

    checkboxes part II
            61418 by: Tijmen Hennink

    storing team members---suggestions on approach?
            61419 by: garman
            61425 by: Tom Carter

    dynamic checkboxes?
            61421 by: garman
            61450 by: Mark Maggelet

    Re: spell checker
            61422 by: Justin French
            61426 by: Ashley M. Kirchner

    xsl:include doesn't work from php, it works with sabcmd
            61423 by: Marius Andreiana
            61428 by: Marius Andreiana

    .htaccess
            61424 by: MindHunter
            61427 by: Alexander Wagner

    comfortable contact-form (1 problem)
            61429 by: Tribun

    comfortable contact-form..
            61431 by: Tribun
            61439 by: ze0.xnull.com
            61441 by: Tribun

    selectbox solved
            61432 by: Tijmen Hennink

    count()?
            61433 by: Jeremy Morano
            61434 by: Henrik Hansen
            61435 by: Alexander Wagner

    PHP & JAVA: Odd Behavior
            61436 by: Marcos
            61437 by: Marcos

    Error Handling: How to handle fatal errors?
            61438 by: Darius Ivanauskas

    Class
            61440 by: Alawi Albaity

    Host OnLine ?
            61442 by: Arcadius A.
            61444 by: Matt Greer
            61448 by: Matt Kaufman
            61451 by: Hidulf

    Cookies
            61443 by: Talus01

    Problem with installing on Solaris 8
            61445 by: Peter Ostry
            61447 by: Tim

    myPhpAdmin/mysql/php/ Problem
            61446 by: Julian Simpson

    Form control
            61449 by: i_union
            61468 by: B. van Ouwerkerk

    EASILY MAKE $200,000 TO $500,000 EVERY 7 MONTHS!!
            61452 by: cynpereira.cheerful.com

    Session problems..
            61453 by: Sean C. McCarthy

    Re: Linux & PHP Install Problems (was: Oh and one more thing)
            61454 by: Brian Dunworth

    Easiest Automated mailing list concept?
            61455 by: Marcus James Christian

    Re: Parsing question from newbie
            61456 by: Queen

    fread (with fsockopen) returns nothing for CGI file
            61458 by: James Crowley

    What's the difference between echo and print?
            61459 by: Phil Latio

    Display the weather on my site
            61460 by: pierre-yves
            61461 by: stout.stoutstreet.com
            61462 by: Thomas Deliduka
            61463 by: Data Driven Design
            61466 by: Kevin Leavell

    checking for null form fields fails
            61465 by: garman
            61470 by: Mark Maggelet

    running stand-alone php
            61469 by: miguel valero

    Help with $HTTP_POST_VARS !
            61471 by: Peter Dowie

    XML Next 25 Results
            61472 by: Girish Nath

    get value
            61473 by: Jeremy Morano

    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:


    Am I an idiot?
    (View this message as text)

    <html>
    <body>
    <?
    $bIsFileOne = is_file("/tmp/test.txt"); # Will be true cause test.txt will
    exist

    sleep (5); # Sleep while you telnet in and remove test.txt quickly!
    $sTemp = `/bin/rm -R /tmp/test.txt`; # Or just remove it automatically
    sleep (5); # Sleep just to be safe

    $bIsFileTwo = file_exists("/tmp/test.txt");
    $bIsFileThree = is_file("/tmp/test.txt");
    ?>

    File1:<? echo $bIsFileOne; ?>
    File2:<? echo $bIsFileTwo; ?>
    File3:<? echo $bIsFileThree; ?>

    File 2 and 3 should show false or 0 cause the file is gone, but they say 1
    just like bIsFileOne!
    </body>
    </html>

    Linux 2.2.18
    PHP 4.0.6

    attached mail follows:


    As documented: http://php.net/clearstatcache

    -Rasmus

    On Mon, 6 Aug 2001, Ken Williams wrote:

    > Am I an idiot?
    > (View this message as text)
    >
    > <html>
    > <body>
    > <?
    > $bIsFileOne = is_file("/tmp/test.txt"); # Will be true cause test.txt will
    > exist
    >
    > sleep (5); # Sleep while you telnet in and remove test.txt quickly!
    > $sTemp = `/bin/rm -R /tmp/test.txt`; # Or just remove it automatically
    > sleep (5); # Sleep just to be safe
    >
    > $bIsFileTwo = file_exists("/tmp/test.txt");
    > $bIsFileThree = is_file("/tmp/test.txt");
    > ?>
    >
    > File1:<? echo $bIsFileOne; ?>
    > File2:<? echo $bIsFileTwo; ?>
    > File3:<? echo $bIsFileThree; ?>
    >
    > File 2 and 3 should show false or 0 cause the file is gone, but they say 1
    > just like bIsFileOne!
    > </body>
    > </html>
    >
    > Linux 2.2.18
    > PHP 4.0.6
    >
    >
    >
    >

    attached mail follows:


    At 22:54 5-8-01 -0700, Kyle Smith wrote:
    >ok, umm... you got that in pence cause im english.... just kiddin.... so
    >what resources did you use to learn php?

    I think people already told you how and where to obtain the information you
    want. www.php.net and www.devshed.com would be a good start..

    Bye,

    B.

    attached mail follows:


    I find the best way to learn PHP (and maybe anything) by doing it. Pick up
    a project and do it. Consult www.php.net for any problem.
    If you can't find it there, then you have earn a legitimate reason to send
    something in this list.

    At 10:15 AM 8/6/2001 +0200, B. van Ouwerkerk wrote:
    >At 22:54 5-8-01 -0700, Kyle Smith wrote:
    >>ok, umm... you got that in pence cause im english.... just kiddin.... so
    >>what resources did you use to learn php?
    >
    >I think people already told you how and where to obtain the information
    >you want. www.php.net and www.devshed.com would be a good start..
    >
    >Bye,
    >
    >
    >
    >B.
    >
    >
    >--
    >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

    Ezra Nugroho
    Web/Database Application Specialist
    Goshen College ITS
    Phone: (219) 535-7706

    "Don't be humble, you're not that great." -- Golda Meir

    attached mail follows:


    >Sorry, I know it wasn't any helpful.
    >The reason there are not much of this software is because there's no
    >standard for Magazines. Very hard to write something that would satisfy
    >every request.

    I don't remember finding ANY piece of software that does exactly what I want.
    Most of them are proprietary..

    I think it would be best to use a mailinglist package like Ezmlm, Mailman
    or any other SW you like.. these provide you with a way to handle bounces
    and send out subscribe messages as soon as someone subscribes..
    This might not be an issue when you send to say 50-100 subscribes but it
    does become a problem when handling large lists..

    Bye,

    B.

    attached mail follows:


    Chetan Ganpati wrote:

    > Does anyone know of a tool to handle an online
    > magazine and the magazine-subscriptions?

    It's a little unclear exactly what you want...

    If you want online zine with content management for stories/
    features/articles, then maybe something like PHP-nuke could be
    the go (http://www.phpnuke.org). In this case, I assume a
    "subscription" is a user who is allowed access to restricted
    pages, which I'm sure nuke can handle in one way or annother!

    If you want to provide some articles to PAYING subscribers,
    then you will need a way to handle/accept secure transactions.

    If you want to just accept subscriptions (payment) for an
    offline magazine, then you'd just need a REALLY small (one
    item) e-store, which might be something like phpShop
    (http://www.phpShop.org).

    I'm currently writing an online magazine content management
    tool for a site I'm developing, which basically takes articles
    from contributors, and assembles them into a new e-zine, to be
    published live on the 1st of every month. Of course I've had
    to provide two types of mmber management -- for contributors
    (with privaliges to add to the zine) and regular users (I guess
    you could call them subscribers, but they aren't paying anything).

    Writing all the code from scratch (and learning MySQL along the
    way!!!), I've only been at it a few days, and it's all coming
    together nicely. The site is BIG, so I think I could be looking
    at well over 100 hours to get everything right, but I'm learning
    as i go, and the coding itself is not hard -- it's the PLANNING
    that is time consuming, making sure I get it right.

    Give me a better idea of what you're after, and I may be able
    to help or point you in the right direction.

    Justin French

    attached mail follows:


    Hi All,

    I've the following weird problem.
    I have a form which contains an array with values of some checkboxes.
    This is the HTML-part:
    <INPUT TYPE=checkbox name=voorraad checked>
    if checked or
    <INPUT TYPE=checkbox name=voorraad>

    Now I want to check which of the checkboxes are really checked.
    So I've got the following PHP code:
      if(count($voorraad[1])>0) {
                    echo "VOORRAAD NEE";
            }
            else {
                    echo "VOORRAAD JA";
            }

    I've tried it with isset($voorraad[1]), count, is_null($voorraad[1]) but all the functions doesn't work.
    Does anyone see what I'm doing wrong??

    Met vriendelijke groet/with kind regards,
     
    Tijmen Hennink
    ----------------------------------------------------------------------------
    tijmenmediaconnect.nl
    Mediconnect
    ----------------------------------------------------------------------------
     
    Dit e-mail bericht is uitsluitend bestemd voor de geadresseerde(n).
    Gebruik van deze informatie door andere dan de geadresseerde
    is verboden.
    Het is evenmin toegestaan om deze informatie openbaar te maken,
    te vermenigvuldigen, te verspreiden of te verstrekken aan derden. Aan dit
    bericht kunnen geen rechten worden ontleend.
    Indien u dit mailtje heeft ontvangen terwijl het niet aan u gericht was,
    reply richting mij en verwijder vervolgens de email en uitgeprinte versies
    van dit mailtje.
     
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    This e-mail is intended for the use of the addressee(s) only and may
    contain privileged, confidential, or proprietary information that is exempt
    from disclosure under law. If you have received this message in error,
    please inform me promptly by reply e-mail, then delete the e-mail and
    any printed copy.
     
    Thank you.

    attached mail follows:


    > I've the following weird problem.
    > I have a form which contains an array with values of some checkboxes.
    > This is the HTML-part:
    > <INPUT TYPE eckbox name=voorraad checked>
    > if checked or
    > <INPUT TYPE eckbox name=voorraad>

    Try <INPUT TYPE eckbox name="voorraad[]"> maybe...?

    Jason

    attached mail follows:


    Sorry,

    I've copied some old code.
    It was already <INPUT TYPE=checkbox name="voorraad[]">

    ----- Original Message -----
    From: "Jason Murray" <Jason.Murraymelbourneit.com.au>
    To: "'Tijmen Hennink'" <tijmenmediaconnect.nl>; <php-generallists.php.net>
    Sent: Monday, August 06, 2001 10:37 AM
    Subject: RE: [PHP] array + checkbox

    > > I've the following weird problem.
    > > I have a form which contains an array with values of some checkboxes.
    > > This is the HTML-part:
    > > <INPUT TYPE=checkbox name=voorraad checked>
    > > if checked or
    > > <INPUT TYPE=checkbox name=voorraad>
    >
    > Try <INPUT TYPE=checkbox name="voorraad[]"> maybe...?
    >
    > Jason
    >

    attached mail follows:


    Some extra debuginfo.

    When I'm submitting a page where the checkbox is not set in the beginning
    and in same page an checkbox that is initially set to checked I can see that
    the first is not set and the second is set.
    But this is the strange part, if I changed the 2 checkboxes I still get the
    same output.

    ----- Original Message -----
    From: "Tijmen Hennink" <tijmenmediaconnect.nl>
    To: "Jason Murray" <Jason.Murraymelbourneit.com.au>;
    <php-generallists.php.net>
    Sent: Monday, August 06, 2001 10:40 AM
    Subject: Re: [PHP] array + checkbox

    > Sorry,
    >
    > I've copied some old code.
    > It was already <INPUT TYPE=checkbox name="voorraad[]">
    >
    > ----- Original Message -----
    > From: "Jason Murray" <Jason.Murraymelbourneit.com.au>
    > To: "'Tijmen Hennink'" <tijmenmediaconnect.nl>;
    <php-generallists.php.net>
    > Sent: Monday, August 06, 2001 10:37 AM
    > Subject: RE: [PHP] array + checkbox
    >
    >
    > > > I've the following weird problem.
    > > > I have a form which contains an array with values of some checkboxes.
    > > > This is the HTML-part:
    > > > <INPUT TYPE=checkbox name=voorraad checked>
    > > > if checked or
    > > > <INPUT TYPE=checkbox name=voorraad>
    > >
    > > Try <INPUT TYPE=checkbox name="voorraad[]"> maybe...?
    > >
    > > Jason
    > >
    >
    >
    > --
    > 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 there Tijmen,

    Firstly, change the input name from this:
    voorraad
    to this:
    voorraad[]

    then do something like:

    <?

    echo "Checked values are as follows:<br><br>";

    for ($i = 0; $i < sizeof($voorraad); $i++) {
        if (!empty($voorraad[$i])) {
            echo $voorraad[$i];
        }
    }

    ?>

    James

    "Tijmen Hennink" <tijmenmediaconnect.nl> wrote in message
    news:001601c11e52$d328e9f0$80c2a8c0PATRIJS2000...
    Hi All,

    I've the following weird problem.
    I have a form which contains an array with values of some checkboxes.
    This is the HTML-part:
    <INPUT TYPE=checkbox name=voorraad checked>
    if checked or
    <INPUT TYPE=checkbox name=voorraad>

    Now I want to check which of the checkboxes are really checked.
    So I've got the following PHP code:
      if(count($voorraad[1])>0) {
                    echo "VOORRAAD NEE";
            }
            else {
                    echo "VOORRAAD JA";
            }

    I've tried it with isset($voorraad[1]), count, is_null($voorraad[1]) but all
    the functions doesn't work.
    Does anyone see what I'm doing wrong??

    Met vriendelijke groet/with kind regards,

    Tijmen Hennink
    ----------------------------------------------------------------------------
    tijmenmediaconnect.nl
    Mediconnect
    ----------------------------------------------------------------------------

    Dit e-mail bericht is uitsluitend bestemd voor de geadresseerde(n).
    Gebruik van deze informatie door andere dan de geadresseerde
    is verboden.
    Het is evenmin toegestaan om deze informatie openbaar te maken,
    te vermenigvuldigen, te verspreiden of te verstrekken aan derden. Aan dit
    bericht kunnen geen rechten worden ontleend.
    Indien u dit mailtje heeft ontvangen terwijl het niet aan u gericht was,
    reply richting mij en verwijder vervolgens de email en uitgeprinte versies
    van dit mailtje.

    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    This e-mail is intended for the use of the addressee(s) only and may
    contain privileged, confidential, or proprietary information that is exempt
    from disclosure under law. If you have received this message in error,
    please inform me promptly by reply e-mail, then delete the e-mail and
    any printed copy.

    Thank you.

    attached mail follows:


    Very weird but it works.
    But it doesn't see any changes in the form.
    Maybe the PHP is just fine but the HTML contains some shit.
    Here is the part that I'm using to generate the form.
     if ($aanwezig == "TRUE")
                              echo(" <TD WIDTH=50 ALIGN=CENTER><INPUT
    TYPE=checkbox name=voorraad[] checked></TD>\n");
                        else
                              echo(" <TD WIDTH=50 ALIGN=CENTER><INPUT
    TYPE=checkbox name=voorraad[] ></TD>\n");
    }
    It seems that although I can unclick a checkbox it still is selected in the
    HTML, strange isn't it?
    Well, how do I generate HTML that PHP can use to determine whether a
    selectbox is still checked or that is it no longer checked at all.

    Tijmen
    ----- Original Message -----
    From: "James Holloway" <jamestowntalk.co.uk>
    To: <tijmenmediaconnect.nl>
    Sent: Monday, August 06, 2001 12:04 PM
    Subject: Re: array + checkbox

    > Hi there Tijmen,
    >
    > Firstly, change the input name from this:
    > voorraad
    > to this:
    > voorraad[]
    >
    > then do something like:
    >
    >
    > <?
    >
    > echo "Checked values are as follows:<br><br>";
    >
    > for ($i = 0; $i < sizeof($voorraad); $i++) {
    > if (!empty($voorraad[$i])) {
    > echo $voorraad[$i];
    > }
    > }
    >
    > ?>
    >
    > James
    >
    > "Tijmen Hennink" <tijmenmediaconnect.nl> wrote in message
    > news:001601c11e52$d328e9f0$80c2a8c0PATRIJS2000...
    > Hi All,
    >
    > I've the following weird problem.
    > I have a form which contains an array with values of some checkboxes.
    > This is the HTML-part:
    > <INPUT TYPE=checkbox name=voorraad checked>
    > if checked or
    > <INPUT TYPE=checkbox name=voorraad>
    >
    > Now I want to check which of the checkboxes are really checked.
    > So I've got the following PHP code:
    > if(count($voorraad[1])>0) {
    > echo "VOORRAAD NEE";
    > }
    > else {
    > echo "VOORRAAD JA";
    > }
    >
    > I've tried it with isset($voorraad[1]), count, is_null($voorraad[1]) but
    all
    > the functions doesn't work.
    > Does anyone see what I'm doing wrong??
    >
    > Met vriendelijke groet/with kind regards,
    >
    > Tijmen Hennink
    > --------------------------------------------------------------------------

    --
    > tijmenmediaconnect.nl
    > Mediconnect
    > --------------------------------------------------------------------------
    --
    >
    > Dit e-mail bericht is uitsluitend bestemd voor de geadresseerde(n).
    > Gebruik van deze informatie door andere dan de geadresseerde
    > is verboden.
    > Het is evenmin toegestaan om deze informatie openbaar te maken,
    > te vermenigvuldigen, te verspreiden of te verstrekken aan derden. Aan dit
    > bericht kunnen geen rechten worden ontleend.
    > Indien u dit mailtje heeft ontvangen terwijl het niet aan u gericht was,
    > reply richting mij en verwijder vervolgens de email en uitgeprinte versies
    > van dit mailtje.
    >
    >
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    > This e-mail is intended for the use of the addressee(s) only and may
    > contain privileged, confidential, or proprietary information that is
    exempt
    > from disclosure under law.  If you have received this message in error,
    > please inform me promptly by reply e-mail, then delete the e-mail and
    > any printed copy.
    >
    > Thank you.
    >
    >
    >
    >
    >
    >
    

    attached mail follows:


    Hey, what is the deal with those read receipts? Do you really what one from every person that reads your messages?

    -----Original Message----- From: Tijmen Hennink [mailto:tijmenmediaconnect.nl] Sent: Monday, August 06, 2001 2:09 AM To: php-generallists.php.net Subject: Re: [PHP] array + checkbox

    Some extra debuginfo.

    When I'm submitting a page where the checkbox is not set in the beginning and in same page an checkbox that is initially set to checked I can see that the first is not set and the second is set. But this is the strange part, if I changed the 2 checkboxes I still get the same output.

    ----- Original Message ----- From: "Tijmen Hennink" <tijmenmediaconnect.nl> To: "Jason Murray" <Jason.Murraymelbourneit.com.au>; <php-generallists.php.net> Sent: Monday, August 06, 2001 10:40 AM Subject: Re: [PHP] array + checkbox

    > Sorry, > > I've copied some old code. > It was already <INPUT TYPE=checkbox name="voorraad[]"> > > ----- Original Message ----- > From: "Jason Murray" <Jason.Murraymelbourneit.com.au> > To: "'Tijmen Hennink'" <tijmenmediaconnect.nl>; <php-generallists.php.net> > Sent: Monday, August 06, 2001 10:37 AM > Subject: RE: [PHP] array + checkbox > > > > > I've the following weird problem. > > > I have a form which contains an array with values of some checkboxes. > > > This is the HTML-part: > > > <INPUT TYPE=checkbox name=voorraad checked> > > > if checked or > > > <INPUT TYPE=checkbox name=voorraad> > > > > Try <INPUT TYPE=checkbox name="voorraad[]"> maybe...? > > > > Jason > > > > > -- > 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:


    >I've been looking in several places and can't find a good PHP code resource >site. The ones I have found have stuff that isn't very good. > >Anyway, I'm looking for a PHP app with MySQL back-end that will do a >Portal/directory listing like Yahoo or the Open Directory Project.

    freshmeat.net sourceforge.net

    I remember a few portals can be found on freshmeat.. if you don't like what you see.... just write your own..

    Bye,

    B.

    attached mail follows:


    i want to make a function that read my file line by line and word by word to find a certain word , if the function return this word it is return true , if not it return false . Thabks

    __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/

    attached mail follows:


    > i want to make a function that read my file line by > line and word by word to find a certain word , if the > function return this word it is return true , if not > it return false .

    if (strstr(implode("", file("filename.txt")), "myword") { echo "File conatined 'myword'<BR>\n"; } else { echo "File didn't conatin 'myword'<BR>\n"; }

    Jason

    -- 
    Jason Murray
    jasonmmelbourneit.com.au
    Web Developer, Melbourne IT
    "Work now, freak later!"
    

    attached mail follows:


    On Sat, Aug 04, 2001 at 06:57:35PM -0500, Damiano Ferrari wrote: > I just tried to use the IMAP functions on my website. When I run the first > script, I get this error: > > Call to undefined function: imap_open() > > Does this mean the IMAP functions are not installed? > > Damiano

    Most likely!

    You can e.g. use phpinfo() (or phpinfo(INFO_MODULES) to see if it is installed.

    -- 
    

    * R&zE:

    -- »»»»»»»»»»»»»»»»»»»»»»»» -- Renze Munnik -- DataLink BV -- -- E: renzedatalink.nl -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- H: +31 23 5516190 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- -- http://www.datalink.nl -- ««««««««««««««««««««««««

    attached mail follows:


    Hi.. I just wanna laugh.... really want to laugh .... WUWUAHAHAHAHAHA I have figure out the solution amazingly! here will be the code I am running LoL

    <?

    mysql_connect('localhost','coconut','tkming') or die ("Unable to connect to SQL Server"); mysql_select_db('helpwatch') or die ("Unable to select database");

    $temp = $username."watch" ?>

    <? $watchlist_query = mysql_query( "Create Table ".$temp." ( WId int auto_increment not null, QId int not null, Primary Key (WId) )" ) or die ("Error! Cannot create table !" . mysql_error() ); ?>

    I separated the query code with the database connection coding LoL after that.. its work! Thanks for everyone who help me :)

    Regards Kok Ming

    "Arcadius A." wrote:

    > Hello ! > We could keep things simpler ... > Why not give a try to this ?: > > $watchlist_query = mysql_query( "Create Table $temp ( WId int Not > Nullauto_increment, QId int not null, Primary Key (WId) )" ) or die ("Error > ! Cannot create table !" . mysql_error() ); > > Hope it would work :o) > > (At least the "mysql_error()" would show you the error code ) > > Arcad > > "Coconut Ming" <coconutmaxis.net.my> wrote in message > news:3B6D32E6.6B47C76Emaxis.net.my... > > Hi > > I am having the problem in the coding below > > > > <? > > > > mysql_connect('localhost','123','123') or die ("Unable to connect to SQL > > Server"); > > mysql_select_db('Helpwatch') or die ("Unable to select database"); > > > > $temp = $username."watch"; > > $watchlist_query = mysql_query("Create Table "$temp"(WId int Not Null > > auto_increment, QId int not null, Primary Key (WId));"); > > ?> > > > > So.. in the above coding. I need to create a table. The table name > > should be a user-define name + "watch" > > I acquire the $username correctly and the variable $temp is working fine > > when I try to echo the value of it. > > Just say. I enter my username as coconut so I wish the mysql query to > > create a table called coconutwatch > > but I can't do that.. Because of the syntax error, the coding I have > > underline is where the parser told me that is an error there. > > I have playing around with it for 2 hours and more... but I cant solve > > it.. Anyway help is greatly appreciated. > > Thanks in advance. > > > > Sincerely > > Kok Ming > >

    attached mail follows:


    At 06.08.2001 10:31, you wrote: >Hi.. > I just wanna laugh.... really want to laugh .... WUWUAHAHAHAHAHA > I have figure out the solution amazingly! here will be the code I am > running >LoL

    it works without separating the code if you add the ; at the end of the $temp = $username."watch" line...

    ><? > >mysql_connect('localhost','coconut','tkming') or die ("Unable to connect >to SQL >Server"); >mysql_select_db('helpwatch') or die ("Unable to select database"); > >$temp = $username."watch" >?> > ><? >$watchlist_query = mysql_query( "Create Table ".$temp." ( WId int >auto_increment >not null, QId int not null, Primary Key (WId) )" ) or die ("Error! Cannot >create table !" . mysql_error() ); >?>

    -- 
    Andreas D Landmark / noXtension
    Real Time, adj.:
             Here and now, as opposed to fake time, which only occurs there
    and then.
    

    attached mail follows:


    I am getting ready to wright a registration key for my program. This is so I can distribute the program say for 30 days and at the end of that 30 days the user will have to register the program or it will not run. This program will be encrypted So no they can not mess with the code. I would like it to be based on there domain name and also date of purchase. I am not sure how to go about this and I would really like some pointers in what direction I should go to do this. Sort of an outline on what I need to do to the program itself and how to generate a different key for each customer.

    Best regards, Richard mailto:rkurthpacifier.com

    attached mail follows:


    Richard,

    So you have a programming problem -- and there are any number of ways to do what you want. When I say "program" here I'm really referring to the specific functions which will create the key and interpret the key.

    1. What do you want out of the program? What results? What exactly do you expect the key recognition algorithm to do? Will different features be enabled?

    2. What language are you writing in?

    3. Where are you going to generate the key?

    4. Where will you store it? Where will the user be expected to store it?

    5. What will the program do if the key can't be found?

    And there are probably more questions than that.

    Common approaches are to take the name the user registers as, and pick up a system date or in your case the date of purchase, and create a key from that. (Purchase date is a bit tough, suppose they don't get around to installing it?) This can be stored in Windows registry or, more simply, in some license file.

    As for the encryption/encoding part, you can rely on built-in functions in the language you are using, or devise your own. The key can be multi-part.

    In other words, this is your oyster - Miles Thompson

    PS Actually, don't you want the opposite? An algorithm that lets the user work with the program for 30 days from installation, then prompts for registration as the period ends, and then just stops working altogether? Or at least forces a reinstall?

    PPS Go to one of the cracker sites and see how they reverse engineer various protection schemes, then do some reverse engineering of your own.

    PPPS Try opening up a conversation with the owners of UltraEdit or Time&Chaos and see if they can give you some direction. This isn't the sort of thing people are willing to discuss, as you are talking about locks on the family jewels.

    PPPPS Finally, recognize you are keeping honest people honest, there will always be those who will try and crack whatever protection scheme you have.

    At 02:49 AM 8/6/01 -0700, Richard Kurth wrote: >I am getting ready to wright a registration key for my program. This >is so I can distribute the program say for 30 days and at the end of >that 30 days the user will have to register the program or it will not >run. This program will be encrypted So no they can not mess with the >code. I would like it to be based on there domain name and also date >of purchase. I am not sure how to go about this and I would really like some >pointers in what direction I should go to do this. Sort of an outline >on what I need to do to the program itself and how to generate a >different key for each customer. > > > > > >Best regards, > Richard >mailto:rkurthpacifier.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:


    I am trying to install phpAdsNew to my site, the given docs don't seems to have enough information about how can I add banner details into table banners correctly. I mean, I know how to insert data into a table and all that, but I am talking about each parameters in that table and what are they suppose to do specifically. If there is anyone who has experiences about using this phpAdsNew or phpAds, please give me some advice or tell me where could I get further information beside the given docs that come when you download it. Jack jackyactivelifestyle.com "Love your enemies, it will drive them nuts"

    attached mail follows:


    I've got phpads(new) up and running on www.upstarter.com but I'm not exactly sure what type of help your needing if your up and running and adding banners, what are you in need of help with. Let me know and I'll do my best to try and help.

    Regards,

    Jerry Lake Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com

    -----Original Message----- From: Jack [mailto:jackyactivelifestyle.com] Sent: Monday, August 06, 2001 3:02 PM To: php-generallists.php.net Subject: [PHP] phpAds advice needed

    I am trying to install phpAdsNew to my site, the given docs don't seems to have enough information about how can I add banner details into table banners correctly. I mean, I know how to insert data into a table and all that, but I am talking about each parameters in that table and what are they suppose to do specifically. If there is anyone who has experiences about using this phpAdsNew or phpAds, please give me some advice or tell me where could I get further information beside the given docs that come when you download it. Jack jackyactivelifestyle.com "Love your enemies, it will drive them nuts"

    attached mail follows:


    Hallo,

    now the php source code is totally visible and modificable on the web server side. does anybody know if exists a way to protect the source php files. There exists actually a way to not allow the access (read, write, ...) to the php source code on the server machine? that is something like a crypting mechanism or a seminterpreter module for php in order to hide the source code inside the server ?

    thank you very much

    best regards

    - - - - - - - - - - - - - - - - - - - - Ornella Fasolo Telecommunications Development Center Software Department POINTERCOM Via F. De Sanctis, 9 - 00195 Roma ITALY e-mail: o.fasolopointercom.it tel.: +39-0637591206 Fax: +39-0637591202 www.pointercom.it - - - - - - - - - - - - - - - - - - - -

    attached mail follows:


    www.zend.com IIRC it's called zend optimizer..

    Bye,

    B.

    Who refuses to add a 10 lines signature to his messages....

    >now the php source code is totally visible and modificable >on the web server side. >does anybody know if exists a way to protect >the source php files. >There exists actually a way to not allow the access (read, write, ...) >to the php source code on the server machine? >that is >something like a crypting mechanism >or a seminterpreter module for php in order >to hide the source code inside the server ?

    attached mail follows:


    o.fasolopointercom.it (Ornella Fasolo) wrote:

    > Hallo, > > > > now the php source code is totally visible and modificable > on the web server side. > does anybody know if exists a way to protect > the source php files. > There exists actually a way to not allow the access (read, write, ...) > to the php source code on the server machine? > that is > something like a crypting mechanism > or a seminterpreter module for php in order > to hide the source code inside the server ?

    http://apc.communityconnect.com

    -- 
    Henrik Hansen
    

    attached mail follows:


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

    Hi, I am just playing with the the register_shutdown_function() function and have found a way to cause php to seg fault. Can somebody else please test the code below this to see if they have the same problem.

    Code (8 Lines):

    #!/usr/local/bin/php -q <?php error_reporting(E_ALL); function seg_fault(){ return True; } register_shutdown_function(seg_fault()); ?>

    Thanks, William.

    -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use Charset: noconv

    iQA/AwUBO258MK39EoU2VrU1EQLsuACgwA0egpooR3AeRBbZMwp0rqKyCIkAn00U CDtlVoWinKYPAJgq+JjbEyh1 =FupR -----END PGP SIGNATURE-----

    attached mail follows:


    On Win98, Apache 1.3.17, PHP4.0.6 As Apache Module, running the code below I get "APACHE caused an invalid page fault in module MSVCRT.DLL at 015f:7800fd73"

    -----Original Message----- From: William Bailey [mailto:wbpro-net.co.uk] Sent: 06 August 2001 12:15 To: PHP General List Subject: [PHP] Seg fault when returning True from shutdown function.

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

    Hi, I am just playing with the the register_shutdown_function() function and have found a way to cause php to seg fault. Can somebody else please test the code below this to see if they have the same problem.

    Code (8 Lines):

    #!/usr/local/bin/php -q <?php error_reporting(E_ALL); function seg_fault(){ return True; } register_shutdown_function(seg_fault()); ?>

    Thanks, William.

    -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use Charset: noconv

    iQA/AwUBO258MK39EoU2VrU1EQLsuACgwA0egpooR3AeRBbZMwp0rqKyCIkAn00U CDtlVoWinKYPAJgq+JjbEyh1 =FupR -----END PGP SIGNATURE-----

    --
    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 run a small search engine and adding URL's is a bit of a pain so I thought I would try to make it easier. Looking around I found a PHP function called "get_meta_tags" which unsurprisingly, grabs the contents of varoius meta tags. I just want the "description" contents so I first made a standalone PHP page (http://www.yorkshire-search.co.uk/links/meta-tags.php3) which performs get_meta_tags and uses $PHP_SELF so output is displayed on a page with the same name. Check it out and you see that works fine (was a slight problem if no initial URL value set).

    However, the search engine uses HTML templates and that is where my problem is.

    Within the orginal form (add_form.html) was just HTML so I deleted that and put the above working code between <php></php> tags to generate a form. WhenI uploaded it and then entered the page, the form displayed OK but when I press "generate meta tags" it refuses to output the results into the boxes. The search engine manual says you can place PHP code within templates as long as they are within <php></php> tags so I am now at a bit of loss.

    This is the add_form.html template if anyone is interested.

    <p class="ptitle">Add Link</p> <table width="500" border="0" cellpadding="5"> <tr> <td colspan="3"> <center> <font face="Arial" size="2" color="Red"><%error_msg%></font> </center>

    <php>

    if ($action == "generate") { print "<P>Insert the following HTML code between the &lt;HEAD&gt; tags of your site:"; print "<FORM><TEXTAREA ROWS=8 COLS=60>&LT;META NAME=\"description\" CONTENT=\"$desc\"&GT;\n"; print "&LT;META NAME=\"keywords\" CONTENT=\"$keyw\"&GT;\n"; if ($robots == "yes") { print "&LT;META NAME=\"robot\" CONTENT=\"$robotsoption\"&GT;\n"; } if ($refresh == "yes") { print "&LT;META NAME=\"refresh\" CONTENT=\"$refreshafter\"&GT;\n"; } if ($copyright == "yes") { print "&LT;META NAME=\"copyright\" CONTENT=\"$copyrighttext\"&GT;\n"; } if ($author == "yes") { print "&LT;META NAME=\"author\" CONTENT=\"$authorname\"&GT;\n"; } if ($generator == "yes") { print "&LT;META NAME=\"generator\" CONTENT=\"$generatorname\"&GT;\n"; } if ($language == "yes") { print "&LT;META NAME=\"language\" CONTENT=\"$languagetype\"&GT;\n"; } if ($revisit == "yes") { print "&LT;META NAME=\"revisit-after\" CONTENT=\"$revisitdays\"&GT;\n"; } print "</TEXTAREA></FORM>"; print "<A HREF=\"$PHP_SELF\">Create another set of meta tags</A><P>";

    } else { if (isset($getmetafrompage)) { $MetaTags = get_meta_tags($getmetafrompage); } $description = $MetaTags["description"]; $keywords = $MetaTags["keywords"]; $robot = $MetaTags["robot"]; $author = $MetaTags["author"]; $refresh = $MetaTags["refresh"]; $copyright = $MetaTags["copyright"]; $revisit = $MetaTags["revisit-after"]; $generator = $MetaTags["generator"]; $language = $MetaTags["language"];

    $year = date('y'); print "<FORM ACTION=\"$PHP_SELF\" METHOD=post>"; print "If your page already has META tags you may import and edit them.<BR>"; print "<B>URL:</B> <INPUT TYPE=text NAME=getmetafrompage SIZE=30 VALUE=\"http://\"><BR>"; print "<INPUT TYPE=submit VALUE=\"Import META tags from page\" class=\"button\"></FORM><HR>";

    print "<form action=\"add.php3\" method=post>"; print "<input type=hidden name=pflag value=add>"; print "<table border=\"0\" cellspacing=\"0\" cellpadding=\"4\" width=\"100%\"><tr> <td><font face=\"Arial\" size=\"2\">Title</font></td><td>"; print "<input type=text name=title size=40></td></tr><tr><td><font face=\"Arial\" size=\"2\">Url</font></td><td>"; print "<input type=text name=url size=40 echo=\"$getmetafrompage\"></td></tr><tr><td valign=\"top\"><font face=\"Arial\" size=\"2\">Description</font></td><td>"; print "<textarea name=\"description\" cols=40 rows=10 maxlength=255 wrap=virtual VALUE=\"$description\"></textarea>"; print "</td></tr><tr><td><font face=\"Arial\" size=\"2\">Category</font></td><td><font face=\"Arial\" size=\"2\"><%category%></font></td></tr><tr><td><font face=\"Arial\" size=\"2\">Contact Name</font></td><td>"; print "<input type=text name=contact_name size=30></td></tr><tr><td><font face=\"Arial\" size=\"2\">Email</font></td><td><input type=text name=email size=30></td></tr><tr><td><font face=\"Aria\" size=\"2\">Bid</font></td><td>"; print "<input type=text name=bid size=10><font face=\"Arial\" size=\"2\" color=\"green\">(optional)</font></td></tr><tr><td>&nbsp;</td><td><input type=submit name=submit value=\"Add\" class=\"button\"></td></tr></table></form>"; }

    </php>

    </td> </tr> </table>

    attached mail follows:


    Does the manual actually say to use the tags "<php></php>"? Or is it the normal tags of "<?php ?>"?

    > I run a small search engine and adding URL's is a bit of a pain so I thought > I would try to make it easier. Looking around I found a PHP function called > "get_meta_tags" which unsurprisingly, grabs the contents of varoius meta > tags. I just want the "description" contents so I first made a standalone > PHP page (http://www.yorkshire-search.co.uk/links/meta-tags.php3) which > performs get_meta_tags and uses $PHP_SELF so output is displayed on a page > with the same name. Check it out and you see that works fine (was a slight > problem if no initial URL value set). > > However, the search engine uses HTML templates and that is where my problem > is. > > Within the orginal form (add_form.html) was just HTML so I deleted that and > put the above working code between <php></php> tags to generate a form. > WhenI uploaded it and then entered the page, the form displayed OK but when > I > press "generate meta tags" it refuses to output the results into the boxes. > The search engine manual says you can place PHP code within templates as > long as they are within <php></php> tags so I am now at a bit of loss. > > This is the add_form.html template if anyone is interested. > > <p class="ptitle">Add Link</p> > <table width="500" border="0" cellpadding="5"> > <tr> > <td colspan="3"> > <center> > <font face="Arial" size="2" color="Red"><%error_msg%></font> > </center> > > <php> > > if ($action == "generate") > { > print "<P>Insert the following HTML code between the &lt;HEAD&gt; tags of > your site:"; > print "<FORM><TEXTAREA ROWS=8 COLS=60>&LT;META NAME=\"description\" > CONTENT=\"$desc\"&GT;\n"; > print "&LT;META NAME=\"keywords\" CONTENT=\"$keyw\"&GT;\n"; > if ($robots == "yes") > { > print "&LT;META NAME=\"robot\" CONTENT=\"$robotsoption\"&GT;\n"; > } > if ($refresh == "yes") > { > print "&LT;META NAME=\"refresh\" CONTENT=\"$refreshafter\"&GT;\n"; > } > if ($copyright == "yes") > { > print "&LT;META NAME=\"copyright\" CONTENT=\"$copyrighttext\"&GT;\n"; > } > if ($author == "yes") > { > print "&LT;META NAME=\"author\" CONTENT=\"$authorname\"&GT;\n"; > } > if ($generator == "yes") > { > print "&LT;META NAME=\"generator\" CONTENT=\"$generatorname\"&GT;\n"; > } > if ($language == "yes") > { > print "&LT;META NAME=\"language\" CONTENT=\"$languagetype\"&GT;\n"; > } > if ($revisit == "yes") > { > print "&LT;META NAME=\"revisit-after\" CONTENT=\"$revisitdays\"&GT;\n"; > } > print "</TEXTAREA></FORM>"; > print "<A HREF=\"$PHP_SELF\">Create another set of meta tags</A><P>"; > > > } > else > { > if (isset($getmetafrompage)) > { > $MetaTags = get_meta_tags($getmetafrompage); > } > $description = $MetaTags["description"]; > $keywords = $MetaTags["keywords"]; > $robot = $MetaTags["robot"]; > $author = $MetaTags["author"]; > $refresh = $MetaTags["refresh"]; > $copyright = $MetaTags["copyright"]; > $revisit = $MetaTags["revisit-after"]; > $generator = $MetaTags["generator"]; > $language = $MetaTags["language"]; > > $year = date('y'); > print "<FORM ACTION=\"$PHP_SELF\" METHOD=post>"; > print "If your page already has META tags you may import and edit > them.<BR>"; > print "<B>URL:</B> <INPUT TYPE=text NAME=getmetafrompage SIZE=30 > VALUE=\"http://\"><BR>"; > print "<INPUT TYPE=submit VALUE=\"Import META tags from page\" > class=\"button\"></FORM><HR>"; > > print "<form action=\"add.php3\" method=post>"; > print "<input type=hidden name=pflag value=add>"; > print "<table border=\"0\" cellspacing=\"0\" cellpadding=\"4\" > width=\"100%\"><tr> <td><font face=\"Arial\" > size=\"2\">Title</font></td><td>"; > print "<input type=text name=title size=40></td></tr><tr><td><font > face=\"Arial\" size=\"2\">Url</font></td><td>"; > print "<input type=text name=url size=40 > echo=\"$getmetafrompage\"></td></tr><tr><td valign=\"top\"><font > face=\"Arial\" size=\"2\">Description</font></td><td>"; > print "<textarea name=\"description\" cols=40 rows=10 maxlength=255 > wrap=virtual VALUE=\"$description\"></textarea>"; > print "</td></tr><tr><td><font face=\"Arial\" > size=\"2\">Category</font></td><td><font face=\"Arial\" > size=\"2\"><%category%></font></td></tr><tr><td><font face=\"Arial\" > size=\"2\">Contact Name</font></td><td>"; > print "<input type=text name=contact_name size=30></td></tr><tr><td><font > face=\"Arial\" size=\"2\">Email</font></td><td><input type=text name=email > size=30></td></tr><tr><td><font face=\"Aria\" > size=\"2\">Bid</font></td><td>"; > print "<input type=text name=bid size=10><font face=\"Arial\" size=\"2\" > color=\"green\">(optional)</font></td></tr><tr><td>&nbsp;</td><td><input > type=submit name=submit value=\"Add\" > class=\"button\"></td></tr></table></form>"; > } > > </php> > > </td> > </tr> > </table> > > > > > > -- > 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:


    What I've said.

    I might just check out trying out <?php ?> as they aren't the brightest bunch of individuals.

    ----- Original Message ----- From: "Richard Baskett" <rickbasketthome.com> To: "Phil Latio" <phil.latiof-in-stupid.co.uk>; <php-generallists.php.net> Sent: Monday, August 06, 2001 1:22 PM Subject: Re: [PHP] $PHP_SELF in a template problem, I think ??

    > Does the manual actually say to use the tags "<php></php>"? Or is it the > normal tags of "<?php ?>"? > ..

    attached mail follows:


    Tried this and got parsing errors so "<php></php> must be correct.

    "Richard Baskett" <rickbasketthome.com> wrote in message news:B793DA08.6445%rickbasketthome.com... > Does the manual actually say to use the tags "<php></php>"? Or is it the > normal tags of "<?php ?>"? > > > I run a small search engine and adding URL's is a bit of a pain so I thought > > I would try to make it easier. Looking around I found a PHP function called > > "get_meta_tags" which unsurprisingly, grabs the contents of varoius meta > > tags. I just want the "description" contents so I first made a standalone > > PHP page (http://www.yorkshire-search.co.uk/links/meta-tags.php3) which > > performs get_meta_tags and uses $PHP_SELF so output is displayed on a page > > with the same name. Check it out and you see that works fine (was a slight > > problem if no initial URL value set). > > > > However, the search engine uses HTML templates and that is where my problem > > is. > > > > Within the orginal form (add_form.html) was just HTML so I deleted that and > > put the above working code between <php></php> tags to generate a form. > > WhenI uploaded it and then entered the page, the form displayed OK but when > > I > > press "generate meta tags" it refuses to output the results into the boxes. > > The search engine manual says you can place PHP code within templates as > > long as they are within <php></php> tags so I am now at a bit of loss. > > > > This is the add_form.html template if anyone is interested. > > > > <p class="ptitle">Add Link</p> > > <table width="500" border="0" cellpadding="5"> > > <tr> > > <td colspan="3"> > > <center> > > <font face="Arial" size="2" color="Red"><%error_msg%></font> > > </center> > > > > <php> > > > > if ($action == "generate") > > { > > print "<P>Insert the following HTML code between the &lt;HEAD&gt; tags of > > your site:"; > > print "<FORM><TEXTAREA ROWS=8 COLS=60>&LT;META NAME=\"description\" > > CONTENT=\"$desc\"&GT;\n"; > > print "&LT;META NAME=\"keywords\" CONTENT=\"$keyw\"&GT;\n"; > > if ($robots == "yes") > > { > > print "&LT;META NAME=\"robot\" CONTENT=\"$robotsoption\"&GT;\n"; > > } > > if ($refresh == "yes") > > { > > print "&LT;META NAME=\"refresh\" CONTENT=\"$refreshafter\"&GT;\n"; > > } > > if ($copyright == "yes") > > { > > print "&LT;META NAME=\"copyright\" CONTENT=\"$copyrighttext\"&GT;\n"; > > } > > if ($author == "yes") > > { > > print "&LT;META NAME=\"author\" CONTENT=\"$authorname\"&GT;\n"; > > } > > if ($generator == "yes") > > { > > print "&LT;META NAME=\"generator\" CONTENT=\"$generatorname\"&GT;\n"; > > } > > if ($language == "yes") > > { > > print "&LT;META NAME=\"language\" CONTENT=\"$languagetype\"&GT;\n"; > > } > > if ($revisit == "yes") > > { > > print "&LT;META NAME=\"revisit-after\" CONTENT=\"$revisitdays\"&GT;\n"; > > } > > print "</TEXTAREA></FORM>"; > > print "<A HREF=\"$PHP_SELF\">Create another set of meta tags</A><P>"; > > > > > > } > > else > > { > > if (isset($getmetafrompage)) > > { > > $MetaTags = get_meta_tags($getmetafrompage); > > } > > $description = $MetaTags["description"]; > > $keywords = $MetaTags["keywords"]; > > $robot = $MetaTags["robot"]; > > $author = $MetaTags["author"]; > > $refresh = $MetaTags["refresh"]; > > $copyright = $MetaTags["copyright"]; > > $revisit = $MetaTags["revisit-after"]; > > $generator = $MetaTags["generator"]; > > $language = $MetaTags["language"]; > > > > $year = date('y'); > > print "<FORM ACTION=\"$PHP_SELF\" METHOD=post>"; > > print "If your page already has META tags you may import and edit > > them.<BR>"; > > print "<B>URL:</B> <INPUT TYPE=text NAME=getmetafrompage SIZE=30 > > VALUE=\"http://\"><BR>"; > > print "<INPUT TYPE=submit VALUE=\"Import META tags from page\" > > class=\"button\"></FORM><HR>"; > > > > print "<form action=\"add.php3\" method=post>"; > > print "<input type=hidden name=pflag value=add>"; > > print "<table border=\"0\" cellspacing=\"0\" cellpadding=\"4\" > > width=\"100%\"><tr> <td><font face=\"Arial\" > > size=\"2\">Title</font></td><td>"; > > print "<input type=text name=title size=40></td></tr><tr><td><font > > face=\"Arial\" size=\"2\">Url</font></td><td>"; > > print "<input type=text name=url size=40 > > echo=\"$getmetafrompage\"></td></tr><tr><td valign=\"top\"><font > > face=\"Arial\" size=\"2\">Description</font></td><td>"; > > print "<textarea name=\"description\" cols=40 rows=10 maxlength=255 > > wrap=virtual VALUE=\"$description\"></textarea>"; > > print "</td></tr><tr><td><font face=\"Arial\" > > size=\"2\">Category</font></td><td><font face=\"Arial\" > > size=\"2\"><%category%></font></td></tr><tr><td><font face=\"Arial\" > > size=\"2\">Contact Name</font></td><td>"; > > print "<input type=text name=contact_name size=30></td></tr><tr><td><font > > face=\"Arial\" size=\"2\">Email</font></td><td><input type=text name=email > > size=30></td></tr><tr><td><font face=\"Aria\" > > size=\"2\">Bid</font></td><td>"; > > print "<input type=text name=bid size=10><font face=\"Arial\" size=\"2\" > > color=\"green\">(optional)</font></td></tr><tr><td>&nbsp;</td><td><input > > type=submit name=submit value=\"Add\" > > class=\"button\"></td></tr></table></form>"; > > } > > > > </php> > > > > </td> > > </tr> > > </table> > > > > > > > > > > > > -- > > 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:


    FROM: MR.KELVIN NZE. AUDITING AND ACCOUNTING UNIT. FOREIGN OPERATIONS DEPARTMENT. BANQUE TOGOLAISE POUR LE COMMERCE ET L'INDUSTRIE, LOME- TOGO. TEL:(228)04-45-26. Dear sir, I am Mr.KELVIN NZE, the director in charge of auditing and accounting section of Banque Togolaise Pour le Commerce Et l'Industrie Lome-Togo in West Africa with due respect and regard. I have decided to contact you on a business transaction that will be very beneficial to both of us at the end of the transaction . During our investigation and auditing in this bank, my department came across a very huge sum of money belonging to a deceased person who died on November 1st 1999 in a plane crash and the fund has been dormant in his account with this Bank without any claim of the fund in our custody either from his family or relation before our discovery to this development. Although personally, I keep this information secret within myself and partners to enable the whole plans and idea be Profitable and successful during the time of execution. The said amount was (U.S $8.5M UNITED STATES DOLLARS), As it may interest you to know, I got your impressive information through my good friends who works with chamber of commerce on foreign business relations here in Lome- Togo. It is him who recommended your person to me to be viable and capable to champion a business of such magnitude without any problem. Meanwhile all the whole arrangement to put claim over this fund as the bonafide next of kin to the deceased, get the required approval and transfer this money to a foreign account has been put in place and directives and needed information will be relayed to you as soon as you indicate your interest and willingness to assist us and also benefit your self to this great business opportunity. In fact I could have done this deal alone but because of my position in this country as a civil servant(A Banker),we are not allowed to operate a foreign account and would eventually raise an eye brow on my side during the time of transfer because I work in this bank. This is the actual reason why it will require a second party or fellow who will forward claims as the next of kin with affidavit of trust of oath to the Bank and also present a foreign account where he will need the money to be re-transferred into on his request as it may be after due verification and clarification by the correspondent branch of the bank where the whole money will be remitted from to your own designation bank account. I will not fail to inform you that this transaction is 100% risk free. On smooth conclusion of this transaction, you will be entitled to 30% of the total sum as gratification, while 10% will be set aside to take care of expenses that may arise during the time of transfer and also telephone bills, while 60% will be for me and my partners. Please, you have been adviced to keep "top secret" as we are still in service and intend to retire from service after we conclude this deal with you. I will be monitoring the whole situation here in this bank until you confirm the money in your account. and ask us to come down to your country for subsequent sharing of the fund according to percentages previously indicated and further investment, either in your country or any country you advice us to invest in. All other necessary vital information will be sent to you when I hear from you. I suggest you get back to me as soon as possible stating your wish in this deal. My mobile telephone number is +228 04-45-26. I look forward to pick your call asap. Yours faithfully, KELVIN NZE.

    Sign up for your "FREE E-MAIL" MADMAIL http://www.madmail.com

    attached mail follows:


    FROM: MR.KELVIN NZE. AUDITING AND ACCOUNTING UNIT. FOREIGN OPERATIONS DEPARTMENT. BANQUE TOGOLAISE POUR LE COMMERCE ET L'INDUSTRIE, LOME- TOGO. TEL:(228)04-45-26. Dear sir, I am Mr.KELVIN NZE, the director in charge of auditing and accounting section of Banque Togolaise Pour le Commerce Et l'Industrie Lome-Togo in West Africa with due respect and regard. I have decided to contact you on a business transaction that will be very beneficial to both of us at the end of the transaction . During our investigation and auditing in this bank, my department came across a very huge sum of money belonging to a deceased person who died on November 1st 1999 in a plane crash and the fund has been dormant in his account with this Bank without any claim of the fund in our custody either from his family or relation before our discovery to this development. Although personally, I keep this information secret within myself and partners to enable the whole plans and idea be Profitable and successful during the time of execution. The said amount was (U.S $8.5M UNITED STATES DOLLARS), As it may interest you to know, I got your impressive information through my good friends who works with chamber of commerce on foreign business relations here in Lome- Togo. It is him who recommended your person to me to be viable and capable to champion a business of such magnitude without any problem. Meanwhile all the whole arrangement to put claim over this fund as the bonafide next of kin to the deceased, get the required approval and transfer this money to a foreign account has been put in place and directives and needed information will be relayed to you as soon as you indicate your interest and willingness to assist us and also benefit your self to this great business opportunity. In fact I could have done this deal alone but because of my position in this country as a civil servant(A Banker),we are not allowed to operate a foreign account and would eventually raise an eye brow on my side during the time of transfer because I work in this bank. This is the actual reason why it will require a second party or fellow who will forward claims as the next of kin with affidavit of trust of oath to the Bank and also present a foreign account where he will need the money to be re-transferred into on his request as it may be after due verification and clarification by the correspondent branch of the bank where the whole money will be remitted from to your own designation bank account. I will not fail to inform you that this transaction is 100% risk free. On smooth conclusion of this transaction, you will be entitled to 30% of the total sum as gratification, while 10% will be set aside to take care of expenses that may arise during the time of transfer and also telephone bills, while 60% will be for me and my partners. Please, you have been adviced to keep "top secret" as we are still in service and intend to retire from service after we conclude this deal with you. I will be monitoring the whole situation here in this bank until you confirm the money in your account. and ask us to come down to your country for subsequent sharing of the fund according to percentages previously indicated and further investment, either in your country or any country you advice us to invest in. All other necessary vital information will be sent to you when I hear from you. I suggest you get back to me as soon as possible stating your wish in this deal. My mobile telephone number is +228 04-45-26. I look forward to pick your call asap. Yours faithfully, KELVIN NZE.

    Sign up for your "FREE E-MAIL" MADMAIL http://www.madmail.com

    attached mail follows:


    Well, interesting to see this coming out of Togo; most of these scams have originated from Nigeria. The incredible thing is that there are always those whose greed overwhelms reason; hope there aren't any on this list.

    If so, kiss goodbye to whatever $$ you have in that bank account.

    For my part, I'm always impressed by the blatant cheek of these things, particularly this: "As it may interest you to know, I got your impressive information through my good friends who works with chamber of commerce on foreign business relations here in Lome- Togo."

    Really!

    Anyway, if anyone wants to flame me for even bothering to respond, please do it off list so we won't waste bandwidth.

    Cheers - Miles Thompson

    At 12:17 PM 8/6/01 +0000, kelvin asonze wrote: >FROM: MR.KELVIN NZE. >AUDITING AND ACCOUNTING UNIT. >FOREIGN OPERATIONS DEPARTMENT. >BANQUE TOGOLAISE POUR LE COMMERCE ET L'INDUSTRIE, >LOME- TOGO. TEL:(228)04-45-26. > >Dear sir, > > >I am Mr.KELVIN NZE, the director in charge of >auditing and accounting section of Banque Togolaise >Pour le Commerce Et l'Industrie Lome-Togo in West >Africa with due respect and regard. I have decided to >contact you on a business transaction that will be >very beneficial to both of us at the end of the >transaction . > > > >During our investigation and auditing in this bank, my >department came across a very huge sum of money >belonging to a deceased person who died on November >1st 1999 in a plane crash and the fund has been >dormant in his account with this Bank without any >claim of the fund in our custody either from his >family or relation before our discovery to this >development. > >Although personally, I keep this information secret >within myself and partners to enable the whole plans >and idea be Profitable and successful during the time >of execution. The said amount was (U.S $8.5M UNITED >STATES DOLLARS), As it may interest you to know, I got >your impressive information through my good friends >who works with chamber of commerce on foreign business >relations here in Lome- Togo. It is him who >recommended your person to me to be viable and capable >to champion a business of such magnitude without any >problem. > >Meanwhile all the whole arrangement to put claim over >this fund as the bonafide next of kin to the deceased, >get the required approval and transfer this money to a >foreign account has been put in place and directives >and needed information will be relayed to you as soon >as you indicate your interest and willingness to >assist us and also benefit your self to this great >business opportunity. > > > >In fact I could have done this deal alone but because >of my position in this country as a civil servant(A >Banker),we are not allowed to operate a foreign >account and would eventually raise an eye brow on my >side during the time of transfer because I work in >this bank. This is the actual reason why it will >require a second party or fellow who will forward >claims as the next of kin with affidavit of trust of >oath to the Bank and also present a foreign account >where he will need the money to be re-transferred into >on his request as it may be after due verification and >clarification by the correspondent branch of the bank >where the whole money will be remitted from to your >own designation bank account. > > > >I will not fail to inform you that this transaction is >100% risk free. On smooth conclusion of this >transaction, you will be entitled to 30% of the total >sum as gratification, while 10% will be set aside to >take care of expenses that may arise during the time >of transfer and also telephone bills, while 60% will >be for me and my partners. Please, you have been >adviced to keep "top secret" as we are still in >service and intend to retire from service after we >conclude this deal with you. > >I will be monitoring the whole situation here in this >bank until you confirm the money in your account. and >ask us to come down to your country for subsequent >sharing of the fund according to percentages >previously indicated and further investment, either in >your country or any country you advice us to invest >in. All other necessary vital information will be sent >to you when I hear from you. > >I suggest you get back to me as soon as possible >stating your wish in this deal. My mobile telephone >number is +228 04-45-26. > >I look forward to pick your call asap. > >Yours faithfully, > >KELVIN NZE. > > > > > > > >Sign up for your "FREE E-MAIL" MADMAIL http://www.madmail.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:


    Hi

    I'm trying to get number of rows from a query. All works fine until the result is 0. Then query executes fine, returns 0 rows but mysql_numrows failes.

    $query="select * from mytable"; $result=mysql_query($query) or die("select failed"); $num_rows=mysql_numrows($result) or die("select count failed");

    Displays "selec count failed" but it should just return 0 so $numrows=0.

    If "or die" bit is removed, then all works fine.

    Any way around this problem?

    Regards

    Ajdin

    attached mail follows:


    Hello AJDIN,

    Monday, August 06, 2001, 3:34:49 PM, you wrote:

    AB> Hi

    AB> I'm trying to get number of rows from a query. All works fine until AB> the result is 0. Then query executes fine, returns 0 rows but mysql_numrows AB> failes.

    AB> $query="select * from mytable"; AB> $result=mysql_query($query) or die("select failed"); AB> $num_rows=mysql_numrows($result) or die("select count failed");

    do it like this: $num_rows=mysql_numrows($result) or die("select count failed"); ^ if you give there this character it don't give you a error.

    I hope it helps

    -- 
    Best regards,
     Daniel                            mailto:danielrezny.sk
    

    attached mail follows:


    I believe the function you want is mysql_num_rows, not mysql_numrows

    HTH

    Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 x289 smasiellosynacor.com

    -----Original Message----- From: AJDIN BRANDIC [mailto:abrandiccoventry.ac.uk] Sent: Monday, August 06, 2001 9:35 AM To: php-generallists.php.net Subject: [PHP] mysql_numrows

    Hi

    I'm trying to get number of rows from a query. All works fine until the result is 0. Then query executes fine, returns 0 rows but mysql_numrows failes.

    $query="select * from mytable"; $result=mysql_query($query) or die("select failed"); $num_rows=mysql_numrows($result) or die("select count failed");

    Displays "selec count failed" but it should just return 0 so $numrows=0.

    If "or die" bit is removed, then all works fine.

    Any way around this problem?

    Regards

    Ajdin

    --
    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 article <Pine.OSF.3.91.1010806142332.22209D-100000leofric>, abrandiccoventry.ac.uk (Ajdin Brandic) wrote:

    > I'm trying to get number of rows from a query. All works fine until > the result is 0. Then query executes fine, returns 0 rows but mysql_numrows > failes. > > $query="select * from mytable"; > $result=mysql_query($query) or die("select failed");

    mysql_query() returns a result set identifier if the *query was valid* (regardless of whether any rows were returned) or else false if the query was not valid. So the line above is "If $query is valid, assign the result set identifier to $result; but if $query was not valid, die with this message..." This is different from your next line:

    $num_rows=mysql_numrows($result) or die("select count failed");

    mysql_num_rows() returns the number of rows in the result set. So this line is "If $query found *one or more* rows, assign the row count to $num_rows; but if $query found *zero* rows, die with this message..."

    See how they differ? (Drop the second "or die..." if you want the script to continue even where no rows were returned.)

    -- 
    CC
    

    attached mail follows:


    Very odd.. I checked REQUEST_URI and outputed phpinfo() as you suggested and nowhere does it say the name of the file that was requested.. is this a server configuration issue?

    All the variables relating to pages are set to the page that is displaying the error rather than the request that is producing it... nowhere was that name menionted!

    Anyone? Is this just me being strange?

    > Ah, yes. You are correct about the $REDIRECT_URL thing. I was looking > at some old code I had to deal with this and mis-read it. :) > > I use ErrorDoument just as you describe. > > I just tried this, and on my system $HTTP_SERVER_VARS["REQUEST_URI"] > contains the URI that generated the error. > > If your 404 page just dumps phpinfo() you can see the list of variables > available to your script. > > - Tim > > On 05 Aug 2001 21:16:29 +0100, Tom Carter wrote: > > Thanks for the advice Tim, however it didn't work. Neither of the statements > > in your mail were set ... I trued $REDIRECT_STATUS and that was set to 401 > > (even tho that doc wasn't capturing that error) and $REDIRECT_URL was set to > > the path of the file handling the errors. > > > > Is there some other apache config I need to make? > > The .htaccess line I have doing the redirect is > > ErrorDocument 404 path/to/file > >

    attached mail follows:


    If anyone is interested I fixed this problem in a sudden (rare) moment of inspiration...

    in the htaccess statement I had put ErrorDocument 404 http://www.mysite.com/error/error.php rather than /error/error.php

    This caused apache to basically start a separate request rather then pass it on thru, which explains why the variables were as they were and why the status was 401 rather than 404.

    Obvious really when one thinks about it.

    Thanks for you advice tho tim, much appreciated.

    Tom ----- Original Message ----- From: "Tom Carter" <subsroundcorners.com> To: "Tim" <infozearthlink.net> Cc: <php-generallists.php.net> Sent: Monday, August 06, 2001 2:45 PM Subject: Re: [PHP] 404's and requesting page

    > Very odd.. I checked REQUEST_URI and outputed phpinfo() as you suggested and > nowhere does it say the name of the file that was requested.. is this a > server configuration issue? > > All the variables relating to pages are set to the page that is displaying > the error rather than the request that is producing it... nowhere was that > name menionted! > > Anyone? Is this just me being strange? > > > > Ah, yes. You are correct about the $REDIRECT_URL thing. I was looking > > at some old code I had to deal with this and mis-read it. :) > > > > I use ErrorDoument just as you describe. > > > > I just tried this, and on my system $HTTP_SERVER_VARS["REQUEST_URI"] > > contains the URI that generated the error. > > > > If your 404 page just dumps phpinfo() you can see the list of variables > > available to your script. > > > > - Tim > > > > On 05 Aug 2001 21:16:29 +0100, Tom Carter wrote: > > > Thanks for the advice Tim, however it didn't work. Neither of the > statements > > > in your mail were set ... I trued $REDIRECT_STATUS and that was set to > 401 > > > (even tho that doc wasn't capturing that error) and $REDIRECT_URL was > set to > > > the path of the file handling the errors. > > > > > > Is there some other apache config I need to make? > > > The .htaccess line I have doing the redirect is > > > ErrorDocument 404 path/to/file > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >

    attached mail follows:


    Hi all,

    maybe this example will show you what is the problem. Try to unselect some of the checkboxes and you will see that there is some magic in here. I want to have per id if the selectbox is selected or not. The test.html will be generated from mysql when test.php is working fine. I'm getting mad of this...

    Met vriendelijke groet/with kind regards, Tijmen Hennink ---------------------------------------------------------------------------- tijmenmediaconnect.nl Mediconnect ---------------------------------------------------------------------------- Dit e-mail bericht is uitsluitend bestemd voor de geadresseerde(n). Gebruik van deze informatie door andere dan de geadresseerde is verboden. Het is evenmin toegestaan om deze informatie openbaar te maken, te vermenigvuldigen, te verspreiden of te verstrekken aan derden. Aan dit bericht kunnen geen rechten worden ontleend. Indien u dit mailtje heeft ontvangen terwijl het niet aan u gericht was, reply richting mij en verwijder vervolgens de email en uitgeprinte versies van dit mailtje. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This e-mail is intended for the use of the addressee(s) only and may contain privileged, confidential, or proprietary information that is exempt from disclosure under law. If you have received this message in error, please inform me promptly by reply e-mail, then delete the e-mail and any printed copy. Thank you.

    attached mail follows:


    I've got a fairly simple problem, and I'm not really sure how to approach it. I'm creating a website for team projects, where the project information is stored in a MySQL database. I want folks to be able to name their project, indicate it's length, have a verbal description, etc. The gathering and handling of that information is fairly straightforward.

    Each team project obviously has team members. But the number of team members is variable. Furthermore, team members can be in one of two categories. I'm not really sure how I should best store team members in the database. Ideally, it would be nice to have a database field for every team member, but if there is ever a team with one more member than I have fields... that's a big problem. So my other thought was to just have two fields for team members (one for each category), and within that field just have a comma (or semicolon, etc) delimited list of employee names. Another thought is to make a table just for employees, where one field of that table maps the employee to a project (project are contained in another table). That table could also have a field that indicated the member's category.

    Any thoughts on my current ideas, or suggestions for something better?

    Thanks! Matt

    attached mail follows:


    Use three tables, one from projects one for members one for assignments

    Projects ================ projectid projectname length description and whatever else

    members =============== memberid name category

    workingon ================ memberid projectid

    so each member can be in one or many projects and each project can have one or many members if members can only be on one project then you could in theory do it with tables

    so to sellect all members of project with id X

    SELECT m.* FROM members m, workingon w WHERE m.memberid=w.memberid AND w.projectid=X

    Hope this helps, ----- Original Message ----- From: "garman" <garmanstudents.uiuc.edu> To: <php-generallists.php.net> Sent: Monday, August 06, 2001 2:53 PM Subject: [PHP] storing team members---suggestions on approach?

    > I've got a fairly simple problem, and I'm not really sure how to approach it. > I'm creating a website for team projects, where the project information is > stored in a MySQL database. I want folks to be able to name their project, > indicate it's length, have a verbal description, etc. The gathering and > handling of that information is fairly straightforward. > > Each team project obviously has team members. But the number of team members > is variable. Furthermore, team members can be in one of two categories. I'm > not really sure how I should best store team members in the database. > Ideally, it would be nice to have a database field for every team member, but > if there is ever a team with one more member than I have fields... that's a > big problem. So my other thought was to just have two fields for team members > (one for each category), and within that field just have a comma (or > semicolon, etc) delimited list of employee names. Another thought is to make > a table just for employees, where one field of that table maps the employee to > a project (project are contained in another table). That table could also > have a field that indicated the member's category. > > Any thoughts on my current ideas, or suggestions for something better? > > Thanks! > Matt > > > -- > 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 form that generates a list of "categories" dynamically. That is, for each category in a database, the form has a corresponding checkbox. The checkboxes are given serialized names, such as "chkbx1", "chkbx2", etc.

    I'm having trouble figuring out how to process these in the php script that handles this form. In other words, how do I figure out which categories were selected when I don't know in advance how many categories there are? How can I check if the form variables "chkbx1", "chkbx2", etc have been set?

    Thanks, Matt

    attached mail follows:


    On Mon, 6 Aug 2001 08:57:08 -0500, garman (garmanstudents.uiuc.edu) wrote: >I have a form that generates a list of "categories" dynamically. >That is, for >each category in a database, the form has a corresponding checkbox. >The >checkboxes are given serialized names, such as "chkbx1", "chkbx2", >etc. > >I'm having trouble figuring out how to process these in the php >script that >handles this form. In other words, how do I figure out which >categories were >selected when I don't know in advance how many categories there are? > How can >I check if the form variables "chkbx1", "chkbx2", etc have been set?

    name them chkbx[1], chkbx[2]...

    then on the next page go:

    foreach($chkbx as $key=>$value){ echo "chkbx[$key] is set.\n"; }

    >Thanks, >Matt > > >-- >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:


    thanks to everyone for their help.

    it's not my server, so I doubt I can get a recompile, but it'll be worth a try.

    this message is worth discussing though:

    Michael Hall wrote:

    > IMHO it would be very difficult to build/use a reliable > spell checker that worked automatically. Natural languages are just too complex > and ambiguous. Look at how often something like Word or Star Office gets things > wrong. 'Hare' is not spelled wrong unless you meant to write 'hair', for > example. And spell checkers can't deal with scrambled syntax, etc.

    I had a bit more of a think about *how* today.

    I'm thinking along the lines of looking for words not in the "dictionary" (eg "caat") and then:

    a) alerting the user ('unknown word "caat"') b) offering alternatives ('did you mean cat|cart?') c) displaying the text for the user to review and resubmit

    I think the idea is to warn the user of unknown words, rather than trying to have a program automatically insert a word, in context with the surrounding words -- eeeek, that'd be massive!!

    Essentially, the above solution would have to:

    1. attempt to match every word in the string to a dictionary, and maybe even a user-defined dictionary 2. look for close matches (have no idea how to approach this!!) 3. spit the text back out in a form, with the alerts/suggestions 4. accept the next text submission regardless

    There could be other solutions like: 1. attempt to match every word in the string to a dictionary

    then, for each unknown word: 2. report the word, in context (3 words either side?), in a tect field to be directly edited 3. offer a drop down menu of suggestions 4. click submit, goes onto next word

    Seems like waaaay to much work (even out of my league) to contemplate for this project, but it could be an interesting hobby project later on :)

    Justin French

    attached mail follows:


    Justin French wrote:

    > I'm thinking along the lines of looking for words not in the > "dictionary" (eg "caat") and then: > > a) alerting the user ('unknown word "caat"') > b) offering alternatives ('did you mean cat|cart?') > > 2. look for close matches (have no idea how to approach this!!)

    aspell_suggest() - http://www.php.net/aspell_suggest

    --
    H | "Life is the art of drawing without an eraser." - John Gardner
      +--------------------------------------------------------------------
      Ashley M. Kirchner <mailto:ashleypcraft.com>   .   303.442.6410 x130
      Director of Internet Operations / SysAdmin    .     800.441.3873 x130
      Photo Craft Laboratories, Inc.            .     3550 Arapahoe Ave, #6
      http://www.pcraft.com ..... .  .    .       Boulder, CO 80303, U.S.A.
    

    attached mail follows:


    Hi

    I try to keep some common xsl templates in separate files and use <xsl:include href="file.xsl"/>

    It works fine if I process them from cmd line with sabcmd, but the same files don't work in php, I get Fatal error: msgtype: error in ... when I add the line xsl:include (if I remove it it's ok)

    What's the problem? (I'm using sablotron 0.52)

    Thanks! Marius Andreiana

    --
    You don't have to go to jail for helping your neighbour
    http://www.gnu.org/philosophy/
    

    attached mail follows:


    forgot to mention I use xslt_process() to transform xml files. Can't see the error (with xslt_error()) , as it halts on xslt_process().

    -- 
    Marius Andreiana
    --
    You don't have to go to jail for helping your neighbour
    http://www.gnu.org/philosophy/
    

    attached mail follows:


    I've seen this all over. I had a QUICK look at the manual and can't find much. In short, what is it, what is it used for and is it WIN/UNIX-LINUX specific. Also any good readings on it will be appreciated.

    Tx BK

    attached mail follows:


    MindHunter wrote: > I've seen this all over. I had a QUICK look at the manual and can't > find much. In short, what is it, what is it used for and is it > WIN/UNIX-LINUX specific. Also any good readings on it will be > appreciated.

    It is Apache-related, so it will work on any OS Apache can run on. This is also the reason why you won't find much about it in the PHP-manual.

    regards Wagner

    -- 
    Madness takes its toll. Please have exact change.
    

    attached mail follows:


    Please help.

    http://babynames.pregnancy.yahoo.com/bnfname.htm?n=Patrick

    paste this into the browserbar and you'll see the result-page...

    but try this through the fopen function via PHP.

    I DONT get that! do YOU know any resolutions???

    my target is it: to get some informations about variable firstnames into a variable.

    if this string contains "boy" i know the gender (else "girl")

    through this way i could skip the "gender" option in my contact-formulars.

    e.g. for the personal message "thank you, mrS Jackson" ...

    i hope someone can help. thanks!

    Tribun

    ---
    www.mp3o.net
    

    attached mail follows:


    Please help.

    http://babynames.pregnancy.yahoo.com/bnfname.htm?n=Patrick

    paste this into the browserbar and you'll see the result-page...

    but try this through the fopen function via PHP.

    I DONT get that! do YOU know any resolutions???

    my target is it: to get some informations about variable firstnames into a variable.

    if this string contains "boy" i know the gender (else "girl")

    through this way i could skip the "gender" option in my contact-formulars.

    e.g. for the personal message "thank you, mrS Jackson" ...

    i hope someone can help. thanks!

    Tribun

    ---
    www.mp3o.net
    

    attached mail follows:


    So you are trying to fopen that url? I made a similar post on this listserv about it.. I think it is a bug in PHP because you cannot pass the = sign into fopen or file.

    > Please help. > > http://babynames.pregnancy.yahoo.com/bnfname.htm? n=Patrick > > paste this into the browserbar and you'll see the result-page... > > but try this through the fopen function via PHP. > > I DONT get that! do YOU know any resolutions??? > > my target is it: to get some informations about variable firstnames into > a variable. > > if this string contains "boy" i know the gender (else "girl") > > through this way i could skip the "gender" option in my > contact-formulars. > > e.g. for the personal message "thank you, mrS Jackson" ... > > i hope someone can help. thanks! > > Tribun > --- > www.mp3o.net > >

    --------------------------------------------- This message was sent using BurstNET® WebMail Pro. http://webmail.burst.net/ BurstNET® - The Speed the Internet Travels®

    attached mail follows:


    no, I dont think so!

    look at this:

    ------------------ <snap> -------------------

    $fp=fopen('http://www.vornamenlexikon.de/main/suchen.asp?kriterium=search&B1 =Suchen&action=searchnow&searchby='.$name,"r"); if($fp){ $daten=fread($fp,100000); fclose($fp); $male='/m.gif'; $female='/w.gif'; if((strpos($daten,$female)>0)&&(strpos($daten,$male)>0)){ if(strpos($daten,$male)>strpos($daten,$female))$result='w'; else $result='m'; }else if(strpos($daten,$female)>0)$result='w'; else if(strpos($daten,$male)>0)$result='m'; } if(empty($result)){

    $fp=fopen('http://www.kindername.de/'.strtolower(substr($name,0,1)).'-namen. htm',"r"); if($fp){ $namen=array(); $daten=fread($fp,100000); fclose($fp);

    $daten=strstr($daten,'<font size="4" face="Verdana, Arial, Helvetica, sans-serif"><B>VORNAMEN MIT'); for($cnt=0;strpos($daten,'<tr>')>0;$cnt++){ $daten=substr(strstr($daten,'<tr>'),4); $tag=substr($daten,0,strpos($daten,'</tr>')); if(strpos($tag,'</td>')>0){ $x1=substr(strstr($tag,'<td>'),4); while(strpos($x1,' ')>0)$x1=str_replace(' ',' ',$x1);//TAB while(strpos($x1,' ')>0)$x1=str_replace(' ',' ',$x1);//DBLSPACE $x1=trim($x1); for($i=1;strpos($x1,'<td>')>0;$i++){

    $field=strtolower(trim(strip_tags(substr($x1,0,strpos($x1,'</td>'))))); if($i==1)$namen[$cnt]=array($field); else if($i==2)$namen[$cnt]['gender']=trim($field); else if($i==3){ while(strpos($field,',')>0){ array_push($namen[$cnt],substr($field,0,strpos($field,','))); $field=substr(strstr($field,','),1); } array_push($namen[$cnt],$field); }else if($i==4){ if(in_array($name,$namen[$cnt]))$result=$namen[$cnt]['gender']; } $x1=substr(strstr($x1,'<td>'),4); } } } } } ------------------ </snap> -------------------

    you can see... it works!

    but just, because the target-url's realy exists!

    its even not enough for me... the script above only scan german and some english names. russian ones like "dimitri" or names like "hassan", etc. are NOT included.

    so I tryed to include this function

    ------------------ <snap> ------------------- $fp=fopen('http://babynames.pregnancy.yahoo.com/bnfname?n='.$name,"r"); if($fp){ $daten=fread($fp,10000); fclose($fp); $male='boy'; $female='girl'; if((strpos($daten,$female)>0)&&(strpos($daten,$male)>0)){ if(strpos($daten,$male)>strpos($daten,$female))$result='w'; else $result='m'; }else if(strpos($daten,$female)>0)$result='w'; else if(strpos($daten,$male)>0)$result='m'; } ------------------ </snap> -------------------

    but THIS one does'nt run, because the URL does not exist. http://babynames.pregnancy.yahoo.com/bnfname?n=Patrick or http://babynames.pregnancy.yahoo.com/bnfname.htm?n=Patrick http://babynames.pregnancy.yahoo.com/bnfname.?n=Patrick http://babynames.pregnancy.yahoo.com/bnfnameBLABLA?n=Patrick is all the saim and WORKS in a BROWSER... but not through the "fopen" function.

    HOW ?

    ... (or how else ?)

    Tribun

    PS: I know. its not the best english ;)

    <ze0xnull.com> schrieb im Newsbeitrag news:E15Tlja-00031Q-00host.xnull.com... > So you are trying to fopen that url? I made a similar > post on this listserv about it.. I think it is a bug in > PHP because you cannot pass the = sign into fopen or file. > > > > Please help. > > > > http://babynames.pregnancy.yahoo.com/bnfname.htm? > n=Patrick > > > > paste this into the browserbar and you'll see the > result-page... > > > > but try this through the fopen function via PHP. > > > > I DONT get that! do YOU know any resolutions??? > > > > my target is it: to get some informations about > variable firstnames into > > a variable. > > > > if this string contains "boy" i know the gender > (else "girl") > > > > through this way i could skip the "gender" option in my > > contact-formulars. > > > > e.g. for the personal message "thank you, mrS > Jackson" ... > > > > i hope someone can help. thanks! > > > > Tribun > > --- > > www.mp3o.net > > > > > > > > > > --------------------------------------------- > This message was sent using BurstNET® WebMail Pro. > http://webmail.burst.net/ > BurstNET® - The Speed the Internet Travels® > >

    attached mail follows:


    Hi all,

    I no longer need you're help. It's solved in the attachment. Just add an unique id to the checkbox and query the array if it contains that value and you're done.

    ----- Original Message ----- From: henninkpatrijs.max.nl To: tijmenmediaconnect.nl Sent: Monday, August 06, 2001 4:34 PM

    -- 
    Met vriendelijke groet/with kind regards,
    

    Tijmen Hennink ---------------------------------------------------------------------------- tijmenmediaconnect.nl Mediconnect ----------------------------------------------------------------------------

    Dit e-mail bericht is uitsluitend bestemd voor de geadresseerde(n). Gebruik van deze informatie door andere dan de geadresseerde is verboden. Het is evenmin toegestaan om deze informatie openbaar te maken, te vermenigvuldigen, te verspreiden of te verstrekken aan derden. Aan dit bericht kunnen geen rechten worden ontleend. Indien u dit mailtje heeft ontvangen terwijl het niet aan u gericht was, reply richting mij en verwijder vervolgens de email en uitgeprinte versies van dit mailtje.

    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This e-mail is intended for the use of the addressee(s) only and may contain privileged, confidential, or proprietary information that is exempt from disclosure under law. If you have received this message in error, please inform me promptly by reply e-mail, then delete the e-mail and any printed copy.

    Thank you.

    attached mail follows:


    Hi, I was woundering how to read and find the # of records in my table... Do I use count()???

    attached mail follows:


    jeremyprepresshelp.com (Jeremy Morano) wrote:

    > Hi, I was woundering how to read and find the # of records in my table... > Do I use count()???

    yes

    select count(*) from table

    -- 
    Henrik Hansen
    

    attached mail follows:


    Jeremy Morano wrote: > Hi, I was woundering how to read and find the # of records in my > table... Do I use count()???

    select count(*) from table

    regards Wagner

    -- 
    Madness takes its toll. Please have exact change.
    

    attached mail follows:


    Hi,

    I got something very odd while trying to run php with java. First, my system specs:

    My System: Windows NT4.0 SP6 (same happens on Windows XP) Apache 1.3.20 PHP 4.0.6 Sun Microsystems JDK 1.3.1

    Java settings from php.ini: [Java] java.class.path="D:\php406\java\php_java.jar;D:\jdk\lib" java.home=D:\jdk java.library=D:\jdk\bin\hotspot\jvm.dll java.library.path=D:\php406\extensions\

    Program I am running: <?php $system = new Java("java.lang.System"); print "Java version=".$system->getProperty("java.version")." <br>"; print "Java vendor=" .$system->getProperty("java.vendor")." <br>"; print "OS=".$system->getProperty("os.name")." ". $system->getProperty("os.version")." on ". $system->getProperty("os.arch")." <br>"; $formatter = new Java("java.text.SimpleDateFormat", "EEEE, MMMM dd, yyyy 'at' h:mm:ss a zzzz"); print $formatter->format(new Java("java.util.Date")); ?>

    When I start the apache server service, the program runs ok (several reloads on the browser). But, if I close the browser and open it again, the program no longer runs and give me a "Fatal error: Unable to create Java Virtual Machine in d:\http\info.php3 on line 9". After several reloads, sometimes I get it to run again (just one time).

    If I restart the apache server service, the program works again, but with the same behavior: if I close the browser window and open it again,

    it does not work.

    While all the above is happening, if a go to the command prompt and type: "d:\php406\php d:\http\myprogram.php3", it works fine, every time.

    I ran out of options and, if anyone could help, I'll appreciate.

    Tks, Marcos

    attached mail follows:


    Hi,

    I got something very odd while trying to run php with java. First, my system specs:

    My System: Windows NT4.0 SP6 (same happens on Windows XP) Apache 1.3.20 PHP 4.0.6 Sun Microsystems JDK 1.3.1

    Java settings from php.ini: [Java] java.class.path="D:\php406\java\php_java.jar;D:\jdk\lib" java.home=D:\jdk java.library=D:\jdk\bin\hotspot\jvm.dll java.library.path=D:\php406\extensions\

    Program I am running: <?php $system = new Java("java.lang.System"); print "Java version=".$system->getProperty("java.version")." <br>"; print "Java vendor=" .$system->getProperty("java.vendor")." <br>"; print "OS=".$system->getProperty("os.name")." ". $system->getProperty("os.version")." on ". $system->getProperty("os.arch")." <br>"; $formatter = new Java("java.text.SimpleDateFormat", "EEEE, MMMM dd, yyyy 'at' h:mm:ss a zzzz"); print $formatter->format(new Java("java.util.Date")); ?>

    When I start the apache server service, the program runs ok (several reloads on the browser). But, if I close the browser and open it again, the program no longer runs and give me a "Fatal error: Unable to create Java Virtual Machine in d:\http\info.php3 on line 9". After several reloads, sometimes I get it to run again (just one time).

    If I restart the apache server service, the program works again, but with the same behavior: if I close the browser window and open it again, it does not work.

    While all the above is happening, if a go to the command prompt and type: "d:\php406\php d:\http\myprogram.php3", it works fine, every time.

    I ran out of options and, if anyone could help, I'll appreciate.

    Tks, Marcos

    attached mail follows:


    Hello,

    I have red all about Error handling but there isn't mentionet that user cant handle fatal errors :( I'm writing some application and need to hide all fatal errors from user and do some hidden reporting/logging such errors. But the handler function set by set_error_handler() din't get control when fatal error occurs. Is there way to solve my problem.

    Regards, Darius Ivanauskas

    --
    P.S. Sorry for my english, it isn't my first language .. :(
    

    attached mail follows:


    I create a class in write it code in a file and give it a name (wwp.php)

    and make another file and name it index.php3

    the my index.php3 code is

    -----

    <? Include ("wwp.php"); $hotmail = new WWP; $hotmail->toppage(1231); $hotmail->bodyofpage(212,213) $hotmail->downpage(2132154); ?>

    ----
    

    and my calss code is

    ----- <?php class wwp { Function toppage($title){ $title = "PHPOnly"; Echo' <html dir="rtl" > <head> <title>'.$title.'</title> </head>'; }

    Function bodyofpage($color,$words){ $color= " #CCCCCC"; $words="PHP"; Echo ' <body bgcolor='. $color.' > <h1>'.$words.'</h1> </body>'; }

    Function downpage($copyright) { $copyright = "PHPOnly"; Echo '<center><h4>'.$copyright .'</h4></center>'; } } ?> -------- what wrong !!

    __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/

    attached mail follows:


    Hello ! Is there any function in PHP returning true or false or something similar when a given host is online or not ?

    Basically , I'm in need od something "ping" .... Thanks ...

    Arcad

    attached mail follows:


    on 8/6/01 7:45 PM, Arcadius A. at ahouanssh.cvut.cz wrote:

    > Hello ! > Is there any function in PHP returning true or false or something similar > when a given host is online or not ? > > Basically , I'm in need od something "ping" .... > Thanks ...

    Just a knee jerk reaction, but what about fopen? Try to open the site's main page. If you can the site is online, if not, it's not.

    Matt

    attached mail follows:


    I tried that but it didn't work - Although I found a different way to do it. http://www.php.net/manual/en/function.fsockopen.php incase you're wondering.

    Matt Kaufman ----- Original Message ----- From: "Matt Greer" <mgreerfieldmuseum.org> To: "Matt Kaufman" <phpnettechboost.com> Sent: Monday, August 06, 2001 9:43 AM Subject: Re: [PHP] Host OnLine ?

    > on 8/6/01 2:18 PM, Matt Kaufman at phpnettechboost.com wrote: > > > That's exactly what I was trying to do - with fopen();, however how do you > > specify which ports to use? On default it uses 80, what if I want to see if > > port 21 is up etc.? > > > just add the port to the url > > fopen("http:www.domain.com:21/file/to/test.html"); > > Matt > > >

    attached mail follows:


    which web server are you using? if you are using apache as the web server, i think you can try the function apache_lookup_uri(). this function will return status of the request. or you can use fsockopen() that allow you to make connection to internet connection.

    --
    Hidulf
    http://www.hidulf.com
    "Arcadius A." <ahouanssh.cvut.cz> wrote in message
    news:20010806154419.82744.qmailpb1.pair.com...
    > Hello !
    > Is there any function in PHP returning true or false  or something similar
    > when a given host is online or not ?
    >
    > Basically , I'm in need od  something "ping" ....
    > Thanks ...
    >
    > Arcad
    >
    >
    

    attached mail follows:


    Okay... A cookie problem on PHP 4.0RC1:

    I set a user id & password in a cookie via JavaScript, hop to the page to log into, and... PHP doesn't get the cookie... JavaScript still gets it though... I need to set the cookie dynamically, so I can't just pop it in a header, unfortunately.... Any ideas?

    Thanks, Talus01

    attached mail follows:


    We try to install PHP4 on a Sun Netra AC200 (T1) under Solaris 8. After we finally managed to 'configure', we get an error with 'make':

    bash-2.03# make Making all in Zend make[1]: Entering directory `/usr/share/src/php-4.0.6/Zend' /bin/sh ../libtool --silent --mode=link gcc -g -O2 -o libZend_c.la zend_language_scanner.lo zend_ini_scanner.lo ../libtool: ar: not found make[1]: *** [libZend_c.la] Error 1 make[1]: Leaving directory `/usr/share/src/php-4.0.6/Zend' make: *** [all-recursive] Error 1 bash-2.03#

    We do not find something like 'ar' in the Zend folder, manual does not mention this problem. Does anyone know how to fix this?

    TIA, Peter

    attached mail follows:


    'ar' is a system utility. On my system it's in /usr/ccs/bin.

    - Tim

    On 06 Aug 2001 18:12:52 +0200, Peter Ostry wrote: > We try to install PHP4 on a Sun Netra AC200 (T1) under Solaris 8. > After we finally managed to 'configure', we get an error with 'make': > > bash-2.03# make > Making all in Zend > make[1]: Entering directory `/usr/share/src/php-4.0.6/Zend' > /bin/sh ../libtool --silent --mode=link gcc -g -O2 -o libZend_c.la > zend_language_scanner.lo zend_ini_scanner.lo > ../libtool: ar: not found

    attached mail follows:


    who's fault is this?: I have a table 'cdrequest' it has columns 'albumfill' and 'releasedatefill' among others.... when i do the following query with myphpadmin update cdrequest set albumfill = "hot shots II", releasedatefill = 20010708 where requstID = 2; i get: You have an error in your SQL syntax near '\"hot shots II\", releasedatefill = 20010708 where requstID = 2' at line 1 I can't see any reason for the error..... part 2: when I flip to properties for the cdrequest just to make sure i'm spelling the columns corectly and cut and paste the exact same query on that page IT WORKS.... Why would it work on that page but not the other. both are supposed to be places where you can enter a normal sql query.. It also doesn't work in my PHP script which is where I really want it to work. What am I missing??

    thanx

    Julian

    attached mail follows:


    Hi all

    I'm succsesfuly created online handling form and parse is in Oracle databaze ... but I wana to control each entry before it will be inserted into a databaze ... As you guess I nedd form control script which will control entries ...I dont need Java Script I neeed any small php script which can control form filling ..

    Please help me or give me some idea !!!

    Thanks in advance

    _________________________________________________________ Do You Yahoo!? Get your free yahoo.com address at http://mail.yahoo.com

    attached mail follows:


    >Please help me or give me some idea !!!

    Few thoughts:

    - check the referer - check the length of the string - use regular expressions

    Bye,

    B.

    attached mail follows:


    Hello phqanda,

    Under Bill S.1618 TITLE III passed by the 105th U.S. Congress this letter Can Not be Considered Spam as long as we include the way to be removed. ************************************************************************ This message is sent in compliance with the new e-mail bill: SECTION 301. Sender: "Per Section 301, Paragraph (a)(2)(C) of S. 1618, further transmissions to you by sender of this email may be stopped, at no cost to you, by sending a reply to this email address with the word "remove" in the subject line." ************************************************************************

    Dear Friend & Potential Future Millionaire: AS SEEN ON NATIONAL TV: Make 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 person had to say: “I was approached many times before but each time I passed on it. I am so glad I finally joined just to see what one could expect in return for the minimal effort and money required. To my astonishment, I received a total of $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 walaa ... 3 weeks later the money started to come in. The 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!! INSTRUCTIONS: Order all 5 reports shown on the list below. For each report, send $5 CASH (US), 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 ENVELOPES 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 IS $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 the 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. 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 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 that you and those involved send out only 5,000 e-mails each. Let's also assume that the mailing receive only a 0.2% response (the response could be much better but lets just say it is only 0.2%. Many people will send out hundreds of thousands 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 who 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 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!!. 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 half or even one 4th of those people mailed 100,000 e-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 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. Note: 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 Internet”. Order Report #1 from: Cynthia Wilson Block 628B, #13-272, Woodlands Ring Road, Singapore 732628

    REPORT #2: “The Insider's Guide to Sending Bulk E-mail on the Internet”. Order Report #2 from: D. Angelopoulos 319 St. John’s Ave. Winnipeg, Manitoba, Canada R2W 1H2

    REPORT #3: “Secrets to Multilevel Marketing on the Internet”. Order Report #3 from : D Drouin P.O. Box 1354 St. Paul, Alberta Canada T0A 3A0

    REPORT #4: “How to Become a Millionaire Utilizing MLM & the Internet”. Order Report #4 from: Shawn D Devlin 3624 Bluebird Ave. SW Grand Rapids, MI, USA 49509

    REPORT #5: “How to Send Out 0ne Million Emails For Free “. Order Report #5 from: S.Z. 6311 Danube Road Richmond, B.C., Canada V7C 3H8

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

    THE 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 move the others (#2 through #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 size 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, larger return" Dan Sondstrom, Alberta, Canada.

    “I had received this program before, but I deleted it. 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!!

    _______________________________________________________ Do You Yahoo!? Get your free yahoo.ca address at http://mail.yahoo.ca

    attached mail follows:


    Hi All,

    I am in trouble with the session handling of PHP. It works fine as long as the session_start is not inside a function or a class. My idea was to create a session class with a constructor calling session_start(). The variables inside the session class would hide the session vars. Proper methods for accessing and updating them were available. At the end I will call my class session update method just before the script ended to sync them with the PHP sessions.

    I have tried changing track_vars and globals, but problem seems to not be there, since calling session_start() from outside the class works.

    Is it a scope problem? Any help will be appreciated. Thanx.

    Sean C. McCarthy

    attached mail follows:


    On Saturday, August 04, 2001 at 1:47 AM, Joel Ricker wrote:

    > > > 1) format your harddrive > > > 2) take out your motherboard and spraypaint it > > > bright orange. > > Ok I did that. > > > > 3) dance around the desk three times holding the > > > motherboard above your head chanting > > > "mail mail, give me mail" > > > "date date, give me date" > > > "ooooga booga woooga shooga" > > I felt a little silly but I did that too. > > > > 4) install linux > > > 5) install apache > > > 6) install PHP > > I tried doing that but computer isn't working right. It > smokes now when I turn it on and there is a strange smell > coming from my computer vents. Did I use the right color > orange? Please help.

    Oh, dear. This is not the first time something like this has happened.

    From your description, it sounds like you must have used "Burnt Orange" colored paint instead of the (highly recommended) "Safety Orange" colored paint. So now, not only is your motherboard "burnt" but can no longer be considered "safe".

    If you attempt to do this again, also remember to be very careful with the pronunciation of the final line of the mantra in step 3...

    ----------------------------------- Brian S. Dunworth Sr. Software Development Engineer Oracle Database Administrator The Printing House, Ltd. (850) 875-1500 x225 -----------------------------------

    attached mail follows:


    Hello,

    I've been having quite a challenging ordeal making a simple custom mailing list using PHP.

    The part where automatically added names happen to an external file works but if I put line breaks in it drops them from their hidden Bcc list. Which is a no can do for this.

    Then when I don't put in line breaks from the string somewhere after many names the machine automatically puts a line break in and leaves this very uncool three or four most recent names sitting in the top part of the emails body!?

    Help,

    Marcus

    --
    Marcus James Christian -- UNLIMITED
    Multimedia Internet Design
    http://mjchristianunlimited.com
    

    attached mail follows:


    On Sun, 5 Aug 2001, Craig Westerman wrote:

    > ><? >$url = 'http://www.php.net'; >$lines_array = file($url); >$lines_string = implode('', $lines_array); >eregi("<title>(.*)</title>", $lines_string, $head); >echo $head[0]; >?> > >It prints out: ><title>PHP: Hypertext Preprocessor</title> > >How do I modify this to get what is between the TITLE tags and not include >the TITLE tags? >

    echo $head[1]; http://www.php.net/manual/en/function.ereg.php

    -- 
       "We only begin to live when we conceive life as Tragedy..."
                                                     - W. B. Yeats
    

    attached mail follows:


    Hi, I am using fsockopen and fread to get the contents of a file on a server. Everything seems to work fine, except for one url. Opening http://ad-adex3.flycast.com/server/img/3327812_VBWeb/11196014_Restofsite /999 Works fine, however, http://www.burstnet.com/cgi-bin/ads/ad8747a.cgi?uniq=9990 Does not (nothing is returned). (In the browser, they both display adverts). Do you know why? There is a demo at http://192.168.0.6/bin/ad-get2.php?url=#theurl# Replace #theurl# with the url that you want to open... Location: headers are handled automatically.

    Regards,

    - James

    Editor, VB Web ================== Web - http://www.vbweb.co.uk Email - jamesvbweb.co.uk ICQ# - 60612011 Fax - +44(0)8707052859 ==================

    attached mail follows:


    What's the difference between echo and print?

    I believed they were the same.

    attached mail follows:


    Hello, I would like to display the wheather on a page depending on the city of my user. (or the capital of their province/state) Do you know a service/db/web site I could query in order to extract what I need ?

    py

    attached mail follows:


    Put a webcam in your window. Put the city names in a database. Rotate through the city names randomly. They will be None The Wiser. >------=_NextPart_000_0206_01C11E86.5B5FCAE0 >Content-Type: text/plain; > charset="iso-8859-1" >Content-Transfer-Encoding: quoted-printable >Hello, >I would like to display the wheather on a page depending on the city of = >my user. >(or the capital of their province/state) >Do you know a service/db/web site I could query in order to extract what = >I need ? >py >------=_NextPart_000_0206_01C11E86.5B5FCAE0--

    attached mail follows:


    On 8/6/2001 2:38 PM this was written:

    > Put a webcam in your window. Put the city names in a database. Rotate through > the city names randomly. They will be None The Wiser.

    LOL yeah right!

    -- 
    

    Thomas Deliduka IT Manager ------------------------- New Eve Media The Solution To Your Internet Angst http://www.neweve.com/

    attached mail follows:


    The weather channel used to offer this service, for a single site it 'was' free, a year or so ago, I'm not sure of the cost for getting this info for multiple cities.

    I think they are www.weather.com

    Data Driven Design 1506 Tuscaloosa Ave Holly Hill, Florida 32117

    http://www.datadrivendesign.com Phone: (386) 226-8979

    Websites That WORK For You ----- Original Message ----- From: <stoutstoutstreet.com> To: <php-generallists.php.net> Sent: Monday, August 06, 2001 2:38 PM Subject: RE: [PHP] Display the weather on my site

    > > Put a webcam in your window. Put the city names in a database. Rotate through the city names randomly. They will be None The Wiser. > > >------=_NextPart_000_0206_01C11E86.5B5FCAE0 > >Content-Type: text/plain; > > charset="iso-8859-1" > >Content-Transfer-Encoding: quoted-printable > >Hello, > >I would like to display the wheather on a page depending on the city of = > >my user. > >(or the capital of their province/state) > >Do you know a service/db/web site I could query in order to extract what = > >I need ? > >py > >------=_NextPart_000_0206_01C11E86.5B5FCAE0-- > > > -- > 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:


    >Put a webcam in your window. Put the city names in a database. Rotate through the city names randomly. >They will be None The Wiser.

    LOL!

    If you don't have a webcam, here are a few options :)

    http://www.hotscripts.com/search/?query=weather&category=php

    attached mail follows:


    For all of my HTML forms, I put in some JavaScript to check and make sure no fields are left blank. When the forms are processed in PHP, I also perform a check to make sure the forms fields aren't null (redundant, I know).

    Anyway, on a form I just made, both JavaScript and PHP think the form has been completed, even when the fields haven't been touched.

    The code basically looks like this:

    <head> <script language="JavaScript"> <!-- function VerifyInput () { if (document.myForm.input.value == "") { alert ("form not complete"); return false; } else { return true; } } // --> </script> </head>

    <form name="myForm" action="myscript.php" method="post" onSubmit="return VerifyInput()"> <input type=text name="input" value="" size=30> <input type=submit value="submit"> </form>

    Now, the file "myscript.php" will have something like this:

    <?php if (!isset ($HTTP_POST_VARS['input'])) { die ("form not complete. cannot continue."); }

    In all the previous forms I've made, this will catch all uncompleted form fields. However, I made another form in the exact same way, and now both the JavaScript and the PHP checks are failing, i.e. they think something has been entered, when the field has been left blank. In the example above, if the page loaded, then I just pressed the submit button (without even touching the text box), the neither the javascript nor PHP would catch the blank field.

    Any ideas?

    Thanks, Matt

    attached mail follows:


    On Mon, 6 Aug 2001 13:56:45 -0500, garman (garmanstudents.uiuc.edu) wrote: >For all of my HTML forms, I put in some JavaScript to check and make >sure no >fields are left blank. When the forms are processed in PHP, I also >perform a >check to make sure the forms fields aren't null (redundant, I know). > >Anyway, on a form I just made, both JavaScript and PHP think the >form has been >completed, even when the fields haven't been touched. > >The code basically looks like this: > ><head> ><script language="JavaScript"> ><!-- >function VerifyInput () { > if (document.myForm.input.value == "") { > alert ("form not complete"); > return false; > } else { > return true; > } >} >// --> ></script> ></head> > ><form name="myForm" action="myscript.php" method="post" >onSubmit="return > VerifyInput()">

    i can't tell if it's just a email formatting thing, but if there's a line break in the onsubmit string it might mess things up.

    ><input type=text name="input" value="" size=30> ><input type=submit value="submit"> ></form> > >Now, the file "myscript.php" will have something like this: > ><?php >if (!isset ($HTTP_POST_VARS['input'])) { > die ("form not complete. cannot continue."); >}

    well, if it makes it this far, $input will be set, but the value will be "". try empty() instead of !isset()

    - Mark

    attached mail follows:


    When I run the following script under an stand-alone php 4.0.6 and Apache 1.3 (Win95/98), the path to PHP (#!c:\php\php.exe) will show up on the first line of the browser output.

    #!c:\php\php.exe

    <?php

    phpinfo();

    ?>

    Is there a way to fix this? How can I get rid of the path line, on the top of the page, on the browser output? Any help will be greatly appreciated.

    My apologies if this has been covered before, or if this is in the manual, but I couldn't see it

    thanks.

    __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/

    attached mail follows:


    Hi,

    I'm trying to add all elements in $HTTP_POST_VARS into my $FormData array which I have is a session variable. This works fine unless I have an element of $HTTP_POST_VARS which is an array.

    eg if I have $HTTP_POST_VARS['Array'] then this doesnt work as my $FormData['Array'] is no longer an array. Can anyone help me ??

    thanks Pete

    while ( list($name,$value) = each($HTTP_POST_VARS)) { if (is_array($value)) { for($x=0;$x<count($value);$x++) { $FormData[$name] = $value[$x]; } } else { $FormData[$name] = $value; } }

    attached mail follows:


    Hi

    I have a script which receives and processes XML product information and displays it as a table in html. However, sometimes the html table can contain over 200 rows.

    Does anyone know of any xml parse examples which limit the output and possibly make a "Display Next 25 results" link at the base of the table ?

    Thank you

    Gish

    attached mail follows:


    hi,,,

    can someone tell me how to access the value of count? please? ---------------------------------------------------------------------------- --------- $db = mysql_select_db($db_name, $connection) or die("Couldn't select database.");

    $sql = "SELECT count(*) FROM $table_name, company Where company.uid = user.companyUid and company.company = '$PHP_AUTH_USER' ";

    $result = mysql_query($sql,$connection) or die("Couldn't execute query."); ---------------------------------------------------------------------------- ----------