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: Thu Aug 30 2001 - 04:25:34 CDT

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

    php-general Digest 30 Aug 2001 09:25:34 -0000 Issue 846

    Topics (messages 65106 through 65182):

    Re: The future of PHP -- accessory libraries
            65106 by: Brian Tanner
            65107 by: Dan Harrington

    unset($PHP_AUTH_USER, $PHP_AUTH_PW)
            65108 by: Jason Bell

    fgets
            65109 by: Joseph Bannon
            65116 by: Christopher William Wesley

    Re: im puzzled
            65110 by: James Potts

    Re: Data duplication in databases
            65111 by: Julian Wood

    IMAP4, krb4 and PHP4 - tix not handled properly when php compiled as an apache module
            65112 by: Liam Hoekenga

    Re: ZEND API
            65113 by: Rasmus Lerdorf

    PHP and PWS
            65114 by: frank clarke

    Suppressing error messages
            65115 by: John Meyer
            65129 by: Philip Olson

    Posting to oneself
            65117 by: John Meyer
            65118 by: Alexander Skwar
            65119 by: John Meyer
            65120 by: Jason Bell
            65121 by: Alexander Skwar
            65124 by: John Meyer
            65128 by: Johnson, Kirk
            65165 by: Alexander Skwar

    Re: fix my query please
            65122 by: ERISEN, Mehmet Kamil
            65125 by: Papp Gyozo

    How to ask the IE browser stop self-refreshing at the server side ?
            65123 by: Zhu George-CZZ010

    GUI for PHP
            65126 by: Eric
            65156 by: Matthew A. Schneider

    The past of PHP - object model - HELP
            65127 by: Greg Beaver

    Re: The past of PHP - object model - oops
            65130 by: Greg Beaver

    strings in a function return
            65131 by: Gerard Samuel
            65132 by: David Robley
            65135 by: Gerard Samuel
            65137 by: David Robley
            65138 by: Gerard Samuel
            65139 by: Gerard Samuel
            65148 by: Gerard Samuel
            65150 by: David Robley
            65151 by: Gerard Samuel
            65152 by: David Robley
            65153 by: Gerard Samuel

    Re: Count
            65133 by: David Robley

    YOUR CHILD
            65134 by: ffss111.yahoo.com

    Re: Strange Form Error
            65136 by: David Robley

    Re: syntax help please?
            65140 by: David Robley

    Re: strange linefeed effect
            65141 by: David Robley

    default owner after copy()
            65142 by: davidt

    quote
            65143 by: davidt
            65147 by: Jack Dempsey

    ignore this msg, test
            65144 by: davidt

    Re: foo? bar? wtf?
            65145 by: Christian Dechery

    Re: Making gd Extensions
            65146 by: Dennis Moore

    pdflib + pdf_findfont
            65149 by: Adam Oliver
            65163 by: Matthew Loff

    wildcard redirecting
            65154 by: Kevin Keeler
            65157 by: Brett

    Checksum Question
            65155 by: rm
            65168 by: _lallous

    Re: convert 12:12:00 to seconds
            65158 by: monfort

    Online Membership Script
            65159 by: monfort

    Need info-reg Memory leakage tool
            65160 by: senthilvellan

    Crashing IIS?
            65161 by: Jason Murray
            65179 by: Raphael Pirker

    Server Setup
            65162 by: Ralph Guzman
            65164 by: Dan Harrington
            65166 by: N. Pari Purna Chand

    Re: The future of PHP or my 2 cents
            65167 by: Matthew A. Schneider
            65175 by: CC Zona

    Re: install error
            65169 by: _lallous
            65174 by: Lawrence.Sheed.dfait-maeci.gc.ca

    Send mail via exact account
            65170 by: Rosen
            65171 by: Jason Murray

    mysql database has gone away
            65172 by: rodrigo
            65178 by: Raphael Pirker

    If i use preg_match() how can i preg_match next?
            65173 by: _lallous
            65176 by: CC Zona

    2nd Pass of array empty
            65177 by: Ben.Edwards.chase.com

    vanishing variable
            65180 by: Hugh Danaher

    Re: if statement and imageline()
            65181 by: Hugh Danaher

    session and global
            65182 by: jacky

    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:


    Great idea. I think a section discussing configuration options, suggested
    configurations, and general info for ISPS would be great.

    I just got a dedicated server and will be doing web hosting, and I think it
    would be extremely helpful.

    (if anyone needs cheap hosting, let me know -- I have tons of bandwidth I
    need to use up to make my money back)

    Brian Tanner
    Project Manager
    Zaam Internet Solutions
    Toll Free: 1-866-225-2675
    infozaam.com
    http://www.zaam.com

    -----Original Message-----
    From: Richard Heyes [mailto:phpheyes-computing.net]
    Sent: August 29, 2001 1:53 PM
    To: Rasmus Lerdorf
    Cc: PHP General
    Subject: RE: [PHP] Re: The future of PHP -- accessory libraries

    > So it looks like this is mostly a documentation issue. We have not done a
    > good job educating the ISPs out there. But they should have been able to
    > figure this out by looking at how PHP is packaged by the various
    > distribution vendours.

    Perhaps a section in the manual dedicated to ISP related information?

    --
    Richard Heyes
    

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


    Here's an idea. Provide commercial PHP support for ISP's for a fee. Yearly subscriptions ? via email?

    > -----Original Message----- > From: Brian Tanner [mailto:btannerhome.com] > Sent: Wednesday, August 29, 2001 4:55 PM > To: php-generallists.php.net > Subject: RE: [PHP] Re: The future of PHP -- accessory libraries > > > Great idea. I think a section discussing configuration options, suggested > configurations, and general info for ISPS would be great. > > I just got a dedicated server and will be doing web hosting, and I think it > would be extremely helpful. > > (if anyone needs cheap hosting, let me know -- I have tons of bandwidth I > need to use up to make my money back) > > Brian Tanner > Project Manager > Zaam Internet Solutions > Toll Free: 1-866-225-2675 > infozaam.com > http://www.zaam.com > > -----Original Message----- > From: Richard Heyes [mailto:phpheyes-computing.net] > Sent: August 29, 2001 1:53 PM > To: Rasmus Lerdorf > Cc: PHP General > Subject: RE: [PHP] Re: The future of PHP -- accessory libraries > > > > So it looks like this is mostly a documentation issue. We have not done a > > good job educating the ISPs out there. But they should have been able to > > figure this out by looking at how PHP is packaged by the various > > distribution vendours. > > Perhaps a section in the manual dedicated to ISP related information? > -- > Richard Heyes > > > > -- > 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:


    anyone know why this isnt working for me?

    if (isset($PHP_AUTH_USER) && isset($PHP_AUTH_PW)) { CheckCredentials($PHP_AUTH_USER,$PHP_AUTH_PW); unset ($PHP_AUTH_USER, $PHP_AUTH_PW); } else if ($AuthAction) { auth($AuthAction); };

    If someone submits false credentials, the page keeps $PHP_AUTH_USER and $PHP_AUTH_PW, and won't allow another login attempt until the browser is closed. Is there another way to effectively "unset" the variables?

    Thanks,

    Jason Bell

    attached mail follows:


    I want to use fgets to get an image off the server and then print it. Kinda like if you call the script picture.php, an image will appear. How do I do this? I'm trying to create a graphical counter with php.

    Joseph

    attached mail follows:


    On Wed, 29 Aug 2001, Joseph Bannon wrote:

    > I want to use fgets to get an image off the server and then print it. Kinda > like if you call the script picture.php, an image will appear. How do I do

    I do this, with fopen() and fpassthru() ...

    $im = fopen( "myImage.jpg", "r" ); if( !$im ){ // FILE WASN'T FOUND } else { // ALL GOOD - SEND IT TO THE BROWSER fpassthru( $im ); } fclose( $im );

    For the sake of simplicity, I left off additional error checking I do ... but this is the core of the idea. The image functions (http://www.php.net/manual/en/ref.image.php) work well too. When just pushing out an unmodified image, the above code has proven simplest for me.

    ~Chris /"\ \ / Pine Ribbon Campaign Microsoft Security Specialist X Against Outlook The moron in Oxymoron. / \ http://www.thebackrow.net

    attached mail follows:


    SELECT uid FROM users WHERE uid NOT IN (SELECT uid FROM picks)

    HTH, James Potts

    "Jeremy Morano" <jeremyprepresshelp.com> wrote in message news:MNEGLBDELEMBJDMIAFPCGECPCKAA.jeremyprepresshelp.com... > Hi , > > this is my query > > SELECT users.uid FROM users, picks WHERE users.uid = picks.user_id; > > this works correctly. The results are what they are supposed to be: > However, when I change the = sign to a <> or !=, The results are completely > incorrect. > > ---------------------------------- > > picks.user_id contains: 5, 1, 7, 8, 9, 12, 13, 15 > > users.uid contains: 1, 8, 9, 5, 7, 10, 11, 12, 13, 14, 15 > > > the result for SELECT users.uid FROM users, picks WHERE users.uid = > picks.user_id; is: > > 5, 1, 7, 8, 9, 12, 13, 15 > > and the result for SELECT users.uid FROM users, picks WHERE users.uid <> > picks.user_id; is: > > 1, 7, 8, 9, 10, 11, 12, 13, 14, 15, 5, 7, 8, 9, 10, 11,12, 13, 14, 15, 1, 5, > 8, 9, 10 ,11...etc > > it goes on for 80 rows with no particular pattern......H.E.L.P.!. >

    attached mail follows:


    The only problem is detecting that the data is identical in the first place. If I have to do a select with 7 AND statements to see if I have identical data, I'm going to take a huge performance hit. I was hoping this had been done at a very low level, but it doesn't look like it. Maybe it's just as unrealistic at a low level, but I could swear I had heard of this feature before.

    Oh well.

    J

    PS. I didn't mention this before, but a link table (ie a relational structure) is not possible in my situation.

    On Wednesday, August 29, 2001, at 01:47 PM, james wrote:

    > > Julian, > > I am not aware of any databases smart enough to decide to create > references > for rows whose data is identical to an existing row. If the duplicate > data > is creating resource issues, there's a couple things that you can do to > eliminate the duplicate data. Probably the easiest would be, in the > case of > varchar data, to add a column for a row number. If the data to be > inserted > is identical to data in a row that's already in the database, an encoded > reference to the row number of the row with the original data could be > stored. That way, you're just storing the reference to the original > data. > > Example: > > RowNum ProdNum Revision Description_varchar > 455333 10 1 > XXXYYYXXXYYYXXXYYYXXXYYYZZZYYYYXXXX > 873245 10 2 <<-455333->> > 934532 10 3 <<-455333->> > > If you don't want to do the encoding thing, you could create a "link" > table > to accomplish the same thing. > > HTH, > James Potts > > > "Julian Wood" <woodjucalgary.ca> wrote in message > news:200108282123.ZZ047421mserve2.acs.ucalgary.ca... >> >> Hi, >> >> Don't know if this is the best place to ask, but I thought I would give >> it a try. >> >> I was just wondering if anyone knows of any databases which deal with >> data duplication (at a low level). Say I have two (or ten) identical >> records, does anyone know of any databases which would only keep one >> copy of the data and use references for the other records? Does this >> work if 7 out of the 8 columns (for instance) are identical (ie the >> primary key is different but everything else is identical). Do such >> db's >> exist? Or do they all do this? Or am I just dreaming? >> >> J

    --
    Julian Wood
    

    Programmer/Analyst University of Calgary > > > > -- > 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'm trying to get IMAP4, krb4, and php4 working happily together.

    I've got the krb4 aware c-client working with php 4.0.x as a DSO and static server module with apache 1.3.x + mod_ssl.

    Here's the problem.

    c-client knows to use kerberosIV authentication if the KRBTKFILE environment variable is set. I'm setting it by adding by prepending this (using auto_prepend_file) to the front of every php page:

    <?php

    $krbtkfile = "/ticket/kerb." . getenv("REMOTE_USER"); putenv("KRBTKFILE=$krbtkfile");

    ?>

    This works fine with PHP compiled as a CGI, because it gets a fresh copy of the environment everytime it's invoked.

    If we use the server module version, it can't keep the ticket files straight. It reports that the ticket file is set to /ticket/kerb.USERNAME (which is what it's supposed to do), but in practice that's not what it's using.. say we have three users, Tom, Dick and Harry. They authenticate in that order..

    Tom's ticket file contains a kerberos ticket-granting-ticket (TGT), credentials for his imap server, credentials for Dick's imap server, and credentials for Harry's imap server.

    Dick's ticket contains a TGT, his imap credentials, Harry's imap credentials, and Tom's credentials.

    Harry's ticket contains a TGT.

    it only gets messier as more people log into the server.

    /something/ is caching the value of KRBTKFILE and applying it inappropriately. I'm not sure if it's c-client, or PHP. I was wondering if there was anything I could on the PHP side of things that could further ensure that the right ticket (the right instance of the krbtkfile variable?) gets used for the right user? Store it in a session? We don't currently use kerberos 5, but I'm concerned that it will behave similarly and play mix and match with the krb5 ticket files.

    We had the same issue with PHP 3.0.x, but switched to the CGI version to get around it. We migrate to the apache server module version to try and get some extra speed out of our mail application, and to take some load off of the server.

    Does anyone have any suggestions?

    Liam Hoekenga UM Webmaster Team

    attached mail follows:


    > Hopefully someone here can help... > > I'm writing my own extension and using the Zend API docs at Zend.com. They > are very vague on using resources. I can create them just fine, but the docs > leave out exactly how access the resource data later. I've been looking at > ext/curl/curl.c and ext/crack/crack.c for guidance but I can't get > ZEND_FETCH_RESOURCE to work. > > ricky.c:75: incompatible type for argument 1 of `zend_fetch_resource' > > Anyone successful with ZEND_FETCH_RESOURCE guide me?

    You should be asking questions like this on the php-dev list. And post a code snippet there as well so we can see what sort of argument you are trying to pass in. Normally you would pass a zval ** here.

    -Rasmus

    attached mail follows:


    I downloaded and installed PHP 4.06. The readme file says that the auto install prog setsup PHP to work with PWS and sets up php.ini. However, when I look at php.ini, there are no entries for these two parameters

    ; The root of the PHP pages, used only if nonempty. doc_root= ; The directory under which PHP opens the script using /~usernamem used only ; if nonempty. user_dir=

    is that good? I put in c:\inetpup\wwwroot for doc root, but it's still not working. Is there somethin I'm missin?

    thanx franx

    __________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com

    attached mail follows:


    It seems to have slipped me little mind, but how do you suppress error messages?

    attached mail follows:


    Try :

    a. error_reporting setting in php.ini or by calling the error_reporting function.

    http://www.php.net/manual/en/phpdevel-errors.php http://www.php.net/manual/en/features.error-handling.php http://www.php.net/manual/en/function.error-reporting.php

    b. the

    http://www.php.net/manual/en/language.operators.errorcontrol.php

    example :

    if (is_file($file_name))

    Regards, Philip Olson

    On Wed, 29 Aug 2001, John Meyer wrote:

    > It seems to have slipped me little mind, but how do you suppress error messages? > > > -- > 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:


    Two questions: 1. Can I tell a form to post to itself without specifying the name of the web page? 2. If I have a function on one page called by another, will this resolve correctly?

    attached mail follows:


    So sprach »John Meyer« am 2001-08-29 um 15:57:02 -0700 : > Two questions: > 1. Can I tell a form to post to itself without specifying the name of the > web page?

    <form action="<?php echo $PHP_SELF;?>">

    > 2. If I have a function on one page called by another, will this resolve > correctly?

    If you include() the file, yes.

    Alexander Skwar

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

    attached mail follows:


    At 12:07 AM 8/30/01 +0200, you wrote: >So sprach »John Meyer« am 2001-08-29 um 15:57:02 -0700 : > > Two questions: > > 1. Can I tell a form to post to itself without specifying the name of the > > web page? > ><form action="<?php echo $PHP_SELF;?>">

    I am getting this error:

    Undefined variable: PHP_SELF

    attached mail follows:


    if you are within a function, try doing this first:

    global $PHP_SELF;

    ----- Original Message ----- From: "John Meyer" <john_meyergeocities.com> To: "Alexander Skwar" <ASkwarDigitalProjects.com>; <php-generallists.php.net> Sent: Wednesday, August 29, 2001 4:15 PM Subject: Re: [PHP] Posting to oneself

    At 12:07 AM 8/30/01 +0200, you wrote: >So sprach »John Meyer« am 2001-08-29 um 15:57:02 -0700 : > > Two questions: > > 1. Can I tell a form to post to itself without specifying the name of the > > web page? > ><form action="<?php echo $PHP_SELF;?>">

    I am getting this error:

    Undefined variable: PHP_SELF

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

    attached mail follows:


    So sprach »John Meyer« am 2001-08-29 um 16:15:07 -0700 : > I am getting this error: > > Undefined variable: PHP_SELF

    Uh? Uhmm... Is this inside a function? Or is the server running PHP in safe mode (dunno if this has anything to do with it...)?

    Alexander Skwar

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

    attached mail follows:


    At 03:18 PM 8/29/01 -0700, you wrote: >if you are within a function, try doing this first: > >global $PHP_SELF;

    Tried that, same error. BTW, FYI: Apache 1.3.20 (Win32)

    attached mail follows:


    Check if register_globals is off in php.ini. If it is, you will need to access it through the $HTTP_SERVER_VARS array, e.g., $HTTP_SERVER_VARS['PHP_SELF'].

    Kirk

    > -----Original Message----- > From: John Meyer [mailto:john_meyergeocities.com] > Sent: Wednesday, August 29, 2001 5:43 PM > To: Jason Bell; php-generallists.php.net > Subject: Re: [PHP] Posting to oneself > > > At 03:18 PM 8/29/01 -0700, you wrote: > >if you are within a function, try doing this first: > > > >global $PHP_SELF;

    attached mail follows:


    So sprach »Johnson, Kirk« am 2001-08-29 um 17:37:27 -0600 : > Check if register_globals is off in php.ini. If it is, you will need to

    Easiest to check this (and a load of other settings), is to create a small PHP file, which contains nothing but:

    <?php phpinfo(); ?>

    Alexander Skwar

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

    attached mail follows:


    Hello Jeremy, Two things: FROM users LEFT OUTER JOIN picks using(id) > Where users.uid <> picks.user_id 1- when you do OUTER join, you do NOT have to use the <>. That's what outher join means. 2- what is id? Is it a column? shouldn't it be uid? Maybe that's your problem.

    --- Jeremy Morano <jeremyprepresshelp.com> wrote: > an somebody please fix up my query. > > > > > $connection = mysql_connect("l", "c", "c") or > die("Couldn't connect."); > > $db = mysql_select_db($db_name, $connection) or > die("Couldn't select > database."); > > > > $sql = "SELECT distinct users.uid , users.username > FROM users LEFT OUTER JOIN picks using(id) > Where users.uid <> picks.user_id > "; > > > > $result = mysql_query($sql,$connection) or die("Couldn't > execute query."); > > > while ($row = mysql_fetch_array($result)) { > $usersleft = $row['username']; > $uid = $row['uid']; > > $my_string="$usersleft<br>"; > > echo $my_string; > } > > > -- > 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 >

    ===== Mehmet Erisen http://www.erisen.com

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

    attached mail follows:


    Well,

    T1 INNER JOIN T2 For each row R1 of T1, the joined table has a row for each row in T2 that satisfies the join condition with R1.

    T1 LEFT OUTER JOIN T2 First, an INNER JOIN is performed. Then, for each row in T1 that does not satisfy the join condition with any row in T2, a joined row is returned with NULL values in columns of T2. Thus, the joined table unconditionally has at least one row for each row in T1.

    and as you can see join condition is nothing to do with equality of respective columns, which means you can state any kind of join condition (non-equal as well as equal join)

    ----- Original Message ----- From: ERISEN, Mehmet Kamil <erisenyahoo.com> To: <php-generallists.php.net> Sent: Tuesday, August 28, 2001 10:46 PM Subject: Re: [PHP] fix my query please

    > Hello Jeremy, > Two things: > FROM users LEFT OUTER JOIN picks using(id) > > Where users.uid <> picks.user_id > 1- when you do OUTER join, you do NOT have to use the <>. > That's what outher join means. > 2- what is id? Is it a column? shouldn't it be uid? > Maybe that's your problem. > > --- Jeremy Morano <jeremyprepresshelp.com> wrote: > > an somebody please fix up my query. > > > > > > > > > > $connection = mysql_connect("l", "c", "c") or > > die("Couldn't connect."); > > > > $db = mysql_select_db($db_name, $connection) or > > die("Couldn't select > > database."); > > > > > > > > $sql = "SELECT distinct users.uid , users.username > > FROM users LEFT OUTER JOIN picks using(id) > > Where users.uid <> picks.user_id > > "; > > > > > > > > $result = mysql_query($sql,$connection) or die("Couldn't > > execute query."); > > > > > > while ($row = mysql_fetch_array($result)) { > > $usersleft = $row['username']; > > $uid = $row['uid']; > > > > $my_string="$usersleft<br>"; > > > > echo $my_string; > > } > > > > > > -- > > 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 > > > > > ===== > Mehmet Erisen > http://www.erisen.com > > __________________________________________________ > Do You Yahoo!? > Make international calls for as low as $.04/minute with Yahoo! Messenger > http://phonecard.yahoo.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, all.

    I am using Apache and PHP. Today, I found a very strange thing about the browser IE4.0/5.0 (Internet Explorer). I have a PHP page, which will use "system" call to activate some backend program to generate a PDF file (this "system" call process will take about 30~60 seconds), the strange thing is: if I am using IE 4.0/5.0, I will get several files instead of one PDF file!! it seems that the IE kept refreshing itself automatically(keeps sending request to the server), the more strange thing is: the IE couldn't display the PDF file, and however, if I close the browser, and open the IE again, I could display the PDF file using the same URL! is there a way to fix this at the server side?

    If I am using netscape, there is no such problem.

    Any input is highly appreciated.

    Thanks, George

    -----Original Message----- From: John Meyer [mailto:john_meyergeocities.com] Sent: Wednesday, August 29, 2001 5:57 PM To: php-generallists.php.net Subject: [PHP] Posting to oneself

    Two questions: 1. Can I tell a form to post to itself without specifying the name of the web page? 2. If I have a function on one page called by another, will this resolve correctly?

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


    Does anyone have any suggestions for GUI PHP programming software. I am new the PHP and would like to make the learning experience as quick and simple as possible.

    Thanks for your help, Eric JT Harlow www.sisgrate.com Phone: 360 891 6991 Fax: 360 891 6865 Email: ericsisgrate.com

    attached mail follows:


    As someone who has little programming experience I'd have to say jump right in and forget the "GUI" (I'm not aware of any IDE for PHP). PHP is pretty easy (to learn, becoming a master is something else I suspect) and there is always outstanding support either by reading this newsgroup's archive or posting a question if you don't find an answer. I've been dabbling for close to a year now and have yet had a need to post any questions. I have invariably found the solution after a quick search.

    There are a number of good books as well. For the novice (I speak with some authority here) try Julie C. Meloni's "PHP Essentials".

    If you're looking for an editor try PHPEd, http://www.soysal.com/PHPEd/index.php3

    And listen to what the experts (not me) have to say.

    Good luck,

    Matt

    ----- Original Message ----- From: "Eric" <ericsisgrate.com> To: "Php-General (E-mail)" <php-generallists.php.net> Sent: Wednesday, August 29, 2001 6:12 PM Subject: [PHP] GUI for PHP

    > Does anyone have any suggestions for GUI PHP programming software. I am new > the PHP and would like to make the learning experience as quick and simple > as possible. > > Thanks for your help, > Eric JT Harlow > www.sisgrate.com > Phone: 360 891 6991 > Fax: 360 891 6865 > Email: ericsisgrate.com > > >

    attached mail follows:


    Oh God, please hurry and release a stable PHP with Zend 2.0!! I &$hate &$this &$bs &$and &$can't get it to work &$at &$all!

    Thank you, Greg

    P.S. If any one of you has figured out how to do this: <?php class a { var $parent; function a(&$b) { $this->parent = &$b; } }

    class b { var $as; var $parent; function b(&$c) { $this->parent = &$c; for($i=0;$i<5;$i++) { $this->as[$i] = &new a($this); } } }

    class c { var $bs; var $test; function c() { for($i=0;$i<5;$i++) { $this->bs[$i] = &new b($this); } } } $foo = &new c(); $foo->test = 1; $foo->bs[3]->cs[2]->parent->parent->test = 5; print $foo->test."<br>"; print $foo->bs[3]->cs[2]->parent->parent->test; // output: // 1 // 5 // and should be: // 5 // 5 ?>

    let me know *please*. I have 3 objects, form, table, and field for database abstraction that need this linking.

    --
    The Chiara String Quartet
    http://www.chiaraquartet.net
    

    "Zeev Suraski" <zeevzend.com> wrote in message news:5.1.0.14.2.20010829144246.03ae7618localhost... > If I didn't know you're not working for Zend, I'd suspect that was a > prepared-question :) > > http://www.zend.com/engine2/ZendEngine-2.0.pdf > > At 11:26 29-08-01, Geoff Caplan wrote: > >Hi folks > > > >While we are on the subject of strategic issues for PHP, a quick question on > >the OOP functionality. > > > >As many on this list will know, there is a peculiarity with the PHP object > >model - in many situations it creates a copy of an instance when you would > >expect a reference. This means that you have to constantly remember to > >create references with &, adding an extra source of hard-to-find bugs. > > > >Are there any plans to sort this out? It rather disfigures the language. > > > >Yes, I know PHP was conceived as a functional language, but a high > >percentage of the more sophisticated applications make use of its object > >functionality - you just have to look at the script download sites to see > >that this is true. Both Perl and C/C++ are examples of successful hybrid > >languages. With just a little extra work, PHP could join this list... > > > >Geoff Caplan > > > > > > > >-- > >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 > > -- > Zeev Suraski <zeevzend.com> > CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/ >

    attached mail follows:


    For the definition of embarassment, see previous post.

    replace $cs with $as and the demo starts to work. (one of ) The problem(s) with my code was similar. One must always watch for the stupid factor!

    Chagrined, Greg

    --
    The Chiara String Quartet
    http://www.chiaraquartet.net
    

    "Greg Beaver" <beavergrpilot.msu.edu> wrote in message news:20010829234427.20471.qmailpb1.pair.com... > Oh God, please hurry and release a stable PHP with Zend 2.0!! I &$hate > &$this &$bs &$and &$can't get it to work &$at &$all! > > Thank you, > Greg > > P.S. If any one of you has figured out how to do this: > <?php > class a > { > var $parent; > function a(&$b) > { > $this->parent = &$b; > } > } > > class b > { > var $as; > var $parent; > function b(&$c) > { > $this->parent = &$c; > for($i=0;$i<5;$i++) > { > $this->as[$i] = &new a($this); > } > } > } > > class c > { > var $bs; > var $test; > function c() > { > for($i=0;$i<5;$i++) > { > $this->bs[$i] = &new b($this); > } > } > } > $foo = &new c(); > $foo->test = 1; > $foo->bs[3]->cs[2]->parent->parent->test = 5; > print $foo->test."<br>"; > print $foo->bs[3]->cs[2]->parent->parent->test; > // output: > // 1 > // 5 > // and should be: > // 5 > // 5 > ?> > > let me know *please*. I have 3 objects, form, table, and field for database > abstraction that need this linking. > -- > The Chiara String Quartet > http://www.chiaraquartet.net > > > "Zeev Suraski" <zeevzend.com> wrote in message > news:5.1.0.14.2.20010829144246.03ae7618localhost... > > If I didn't know you're not working for Zend, I'd suspect that was a > > prepared-question :) > > > > http://www.zend.com/engine2/ZendEngine-2.0.pdf > > > > At 11:26 29-08-01, Geoff Caplan wrote: > > >Hi folks > > > > > >While we are on the subject of strategic issues for PHP, a quick question > on > > >the OOP functionality. > > > > > >As many on this list will know, there is a peculiarity with the PHP > object > > >model - in many situations it creates a copy of an instance when you > would > > >expect a reference. This means that you have to constantly remember to > > >create references with &, adding an extra source of hard-to-find bugs. > > > > > >Are there any plans to sort this out? It rather disfigures the language. > > > > > >Yes, I know PHP was conceived as a functional language, but a high > > >percentage of the more sophisticated applications make use of its object > > >functionality - you just have to look at the script download sites to see > > >that this is true. Both Perl and C/C++ are examples of successful hybrid > > >languages. With just a little extra work, PHP could join this list... > > > > > >Geoff Caplan > > > > > > > > > > > >-- > > >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 > > > > -- > > Zeev Suraski <zeevzend.com> > > CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/ > > > >

    attached mail follows:


    Hey all. I just started venturing into functions. I have a function that displays a form, but I have a problem with getting the multiple strings back after the submit. Im tryed a return statement at the bottom of the function, but it cannot take more than one string. I tried turning the array into a string and returning just the string made sure that the string name was in the global list, still no luck. Is it even possible to return mulitple values from a function?? Thanks

    attached mail follows:


    On Thu, 30 Aug 2001 09:35, Gerard Samuel wrote: > Hey all. I just started venturing into functions. I have a function > that displays a form, but I have a problem with getting the multiple > strings back after the submit. Im tryed a return statement at the > bottom of the function, but it cannot take more than one string. I > tried turning the array into a string and returning just the string > made sure that the string name was in the global list, still no luck. > Is it even possible to return mulitple values from a function?? Thanks

    You can only return one variable from a function, but that variable can be an array.

    This is probably obvious, but you are assigning the result of the function to a variable? Eg

    $result = my_function($my_parameter, $my_parameter);

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

    "I'm single," Tom said wanly.

    attached mail follows:


    I was doing it like so ==> $string = array(var1, var2...); return string;

    I also tried to implode the array into a string and return the result, but no go.

    David Robley wrote: > On Thu, 30 Aug 2001 09:35, Gerard Samuel wrote: > >>Hey all. I just started venturing into functions. I have a function >>that displays a form, but I have a problem with getting the multiple >>strings back after the submit. Im tryed a return statement at the >>bottom of the function, but it cannot take more than one string. I >>tried turning the array into a string and returning just the string >>made sure that the string name was in the global list, still no luck. >>Is it even possible to return mulitple values from a function?? Thanks >> > > You can only return one variable from a function, but that variable can > be an array. > > This is probably obvious, but you are assigning the result of the > function to a variable? Eg > > $result = my_function($my_parameter, $my_parameter); > >

    attached mail follows:


    On Thu, 30 Aug 2001 10:19, Gerard Samuel wrote: > I was doing it like so ==> > $string = array(var1, var2...); > return string; > > I also tried to implode the array into a string and return the result, > but no go. > > David Robley wrote: > > On Thu, 30 Aug 2001 09:35, Gerard Samuel wrote: > >>Hey all. I just started venturing into functions. I have a function > >>that displays a form, but I have a problem with getting the multiple > >>strings back after the submit. Im tryed a return statement at the > >>bottom of the function, but it cannot take more than one string. I > >>tried turning the array into a string and returning just the string > >>made sure that the string name was in the global list, still no luck. > >>Is it even possible to return mulitple values from a function?? > >> Thanks > > > > You can only return one variable from a function, but that variable > > can be an array. > > > > This is probably obvious, but you are assigning the result of the > > function to a variable? Eg > > > > $result = my_function($my_parameter, $my_parameter);

    Perhaps if you could show some of the code?

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

    Oxymoron: Random Order.

    attached mail follows:


    Here is a snippet example.

    function assign() { global $adminurl, $string; top(); if ($string) { $data = explode ("|", $string); echo "$data[0]"; } <form>

    $array = array("$new_cat,$assigned_to","$job","$assigned_by") $string = implode("|",$array); return $string; }

    The variables that form $array are from the form....

    David Robley wrote: > On Thu, 30 Aug 2001 10:19, Gerard Samuel wrote: > >>I was doing it like so ==> >>$string = array(var1, var2...); >>return string; >> >>I also tried to implode the array into a string and return the result, >>but no go. >> >>David Robley wrote: >> >>>On Thu, 30 Aug 2001 09:35, Gerard Samuel wrote: >>> >>>>Hey all. I just started venturing into functions. I have a function >>>>that displays a form, but I have a problem with getting the multiple >>>>strings back after the submit. Im tryed a return statement at the >>>>bottom of the function, but it cannot take more than one string. I >>>>tried turning the array into a string and returning just the string >>>>made sure that the string name was in the global list, still no luck. >>>>Is it even possible to return mulitple values from a function?? >>>>Thanks >>>> >>>You can only return one variable from a function, but that variable >>>can be an array. >>> >>>This is probably obvious, but you are assigning the result of the >>>function to a variable? Eg >>> >>>$result = my_function($my_parameter, $my_parameter); >>> > > Perhaps if you could show some of the code? > >

    attached mail follows:


    Mozilla sucks sometimes with email formatting. Correction==>

    Here is a snippet example.

    function assign() { global $adminurl, $string; top(); if ($string) { $data = explode ("|", $string); echo "$data[0]"; } <form>

    $array = array("$new_cat,$assigned_to","$job","$assigned_by"); $string = implode("|",$array); return $string; }

    The variables that form $array are from the form....

    David Robley wrote: > On Thu, 30 Aug 2001 10:19, Gerard Samuel wrote: > >>I was doing it like so ==> >>$string = array(var1, var2...); >>return string; >> >>I also tried to implode the array into a string and return the result, >>but no go. >> >>David Robley wrote: >> >>>On Thu, 30 Aug 2001 09:35, Gerard Samuel wrote: >>> >>>>Hey all. I just started venturing into functions. I have a function >>>>that displays a form, but I have a problem with getting the multiple >>>>strings back after the submit. Im tryed a return statement at the >>>>bottom of the function, but it cannot take more than one string. I >>>>tried turning the array into a string and returning just the string >>>>made sure that the string name was in the global list, still no luck. >>>>Is it even possible to return mulitple values from a function?? >>>>Thanks >>>> >>>You can only return one variable from a function, but that variable >>>can be an array. >>> >>>This is probably obvious, but you are assigning the result of the >>>function to a variable? Eg >>> >>>$result = my_function($my_parameter, $my_parameter); >>> > > Perhaps if you could show some of the code? > >

    attached mail follows:


    I found an error, but it didn't do me any good. I tried this, any tips... Thanks

    function assign() { global $adminurl, $string; top(); if ($string) { $data = explode ("|", $string); foreach ($data as $foo) { echo $foo[0]; } } <form>

    $array = array("$new_cat","$assigned_to","$job","$assigned_by"); $string = implode("|",$array); return $string; }

    The variables that form $array are from the form....

    David Robley wrote: > On Thu, 30 Aug 2001 10:19, Gerard Samuel wrote: > >>I was doing it like so ==> >>$string = array(var1, var2...); >>return string; >> >>I also tried to implode the array into a string and return the result, >>but no go. >> >>David Robley wrote: >> >>>On Thu, 30 Aug 2001 09:35, Gerard Samuel wrote: >>> >>>>Hey all. I just started venturing into functions. I have a function >>>>that displays a form, but I have a problem with getting the multiple >>>>strings back after the submit. Im tryed a return statement at the >>>>bottom of the function, but it cannot take more than one string. I >>>>tried turning the array into a string and returning just the string >>>>made sure that the string name was in the global list, still no luck. >>>>Is it even possible to return mulitple values from a function?? >>>>Thanks >>>> >>>You can only return one variable from a function, but that variable >>>can be an array. >>> >>>This is probably obvious, but you are assigning the result of the >>>function to a variable? Eg >>> >>>$result = my_function($my_parameter, $my_parameter); >>> > > Perhaps if you could show some of the code? > >

    attached mail follows:


    On Thu, 30 Aug 2001 10:45, Gerard Samuel wrote: > Mozilla sucks sometimes with email formatting. > Correction==> > > Here is a snippet example. > > function assign() { > global $adminurl, $string; > top(); > if ($string) { > $data = explode ("|", $string); > echo "$data[0]"; > } > <form> > > $array = array("$new_cat,$assigned_to","$job","$assigned_by"); $string = implode("|",$array); return $string; > } > > The variables that form $array are from the form....

    Hrm - undefined function top()

    ?? <FORM> ??

    But the rest of it returns what I would expect - a comma followed by two | - given that I don't have the values referenced in the array. And you won't either, as they aren't global and aren't passed as parameters.

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

    Shift happpens. - Doppler

    attached mail follows:


    top(); is a function that displays a menu, that works. <form> is where the form goes. In its current setup less the array/implode/explode/foreach loop I can get it to echo 'a' return that I specify. But its no good, when I have 7 seven fields in the form to process.....

    David Robley wrote: > On Thu, 30 Aug 2001 10:45, Gerard Samuel wrote: > >>Mozilla sucks sometimes with email formatting. >>Correction==> >> >>Here is a snippet example. >> >>function assign() { >> global $adminurl, $string; >> top(); >> if ($string) { >> $data = explode ("|", $string); >> echo "$data[0]"; >> } >> <form> >> >> $array = array("$new_cat,$assigned_to","$job","$assigned_by"); >> > $string = implode("|",$array); return $string; > >>} >> >>The variables that form $array are from the form.... >> > > Hrm - undefined function top() > > ?? <FORM> ?? > > But the rest of it returns what I would expect - a comma followed by two > | - given that I don't have the values referenced in the array. And you > won't either, as they aren't global and aren't passed as parameters. > >

    attached mail follows:


    On Thu, 30 Aug 2001 11:38, Gerard Samuel wrote: > top(); is a function that displays a menu, that works. > <form> is where the form goes. > In its current setup less the array/implode/explode/foreach loop > I can get it to echo 'a' return that I specify. But its no good, when > I have 7 seven fields in the form to process..... > > David Robley wrote: > > On Thu, 30 Aug 2001 10:45, Gerard Samuel wrote: > >>Mozilla sucks sometimes with email formatting. > >>Correction==> > >> > >>Here is a snippet example. > >> > >>function assign() { > >> global $adminurl, $string; > >> top(); > >> if ($string) { > >> $data = explode ("|", $string); > >> echo "$data[0]"; > >> } > >> <form> > >> > >> $array = array("$new_cat,$assigned_to","$job","$assigned_by"); > > > > $string = implode("|",$array); return $string; > > > >>} > >> > >>The variables that form $array are from the form.... > > > > Hrm - undefined function top() > > > > ?? <FORM> ?? > > > > But the rest of it returns what I would expect - a comma followed by > > two > > > > | - given that I don't have the values referenced in the array. And > > | you > > > > won't either, as they aren't global and aren't passed as parameters.

    Why are you putting the form inside the function? There surely must be a better way to achieve what you want (which is not clear from the snippet). .

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

    Oxymoron: Virtual Reality.

    attached mail follows:


    Im beginning to think that functions aren't all that cracked up to be. I may as well go back to my old "non function" way of coding.

    I was displaying the form in the function because the application Im using currently displays forms in functions. Ill try and see what I can do with this new found knowledge called 'functions'.....

    David Robley wrote: > On Thu, 30 Aug 2001 11:38, Gerard Samuel wrote: > >>top(); is a function that displays a menu, that works. >><form> is where the form goes. >>In its current setup less the array/implode/explode/foreach loop >>I can get it to echo 'a' return that I specify. But its no good, when >>I have 7 seven fields in the form to process..... >> >>David Robley wrote: >> >>>On Thu, 30 Aug 2001 10:45, Gerard Samuel wrote: >>> >>>>Mozilla sucks sometimes with email formatting. >>>>Correction==> >>>> >>>>Here is a snippet example. >>>> >>>>function assign() { >>>> global $adminurl, $string; >>>> top(); >>>> if ($string) { >>>> $data = explode ("|", $string); >>>> echo "$data[0]"; >>>> } >>>> <form> >>>> >>>> $array = array("$new_cat,$assigned_to","$job","$assigned_by"); >>>> >>> $string = implode("|",$array); return $string; >>> >>> >>>>} >>>> >>>>The variables that form $array are from the form.... >>>> >>>Hrm - undefined function top() >>> >>>?? <FORM> ?? >>> >>>But the rest of it returns what I would expect - a comma followed by >>>two >>> >>>| - given that I don't have the values referenced in the array. And >>>| you >>> >>>won't either, as they aren't global and aren't passed as parameters. >>> > > > Why are you putting the form inside the function? There surely must be a > better way to achieve what you want (which is not clear from the snippet). > . >

    attached mail follows:


    On Thu, 30 Aug 2001 08:16, Kevin P wrote: > Hi > I have counted some rows in MySQL and I need to know how to pull out > the number of rows. > "SELECT COUNT(*) AS myCount FROM Products" > > Thanks > Kevin

    $query = "SELECT COUNT(*) AS myCount FROM Products"; $result = mysql_db_query($database, $query); $row = mysql_fetch_array($result); extract($row); echo $myCount;

    might do the trick; unless I've left a syntax error in there :-)

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

    I'm so broke, I can't even pay attention.

    attached mail follows:


    All our mailings are sent complying to the proposed United States Federal requirements for commercial e-mail: Section 301 Paragraph (a)(2)(C) of S. 618. Please see the bottom of this message for further information and removal instructions.

    THE FOUNDATION FOR SUCCESS IN SCHOLASTICS

    "A FREE STUDENT PLANNER AND STUDY SKILLS FOR SUCCESS PROGRAM TO HELP CHILDREN SUCCEED IN SCHOOL!" ______________________________________________________________

    Dear Friend,

    My wife and I are professional educators whose goal is to help as many children as possible succeed in school. Whether you have a child or know that special child, we know that he/she is the most important and loved person in a parent's life. A child's success in school will promote a positive attitude and strong self-esteem for a lifetime.

    We guarantee that our K-12 program will help a child become more organized, accountable and responsible and, YES, on a consistent basis! Our research proves that children will improve their grades and their behavior when they use these suggested strategies! You will see results!

    We have experienced tremendous results with the children in our families and students. Parents and teachers in Bloomfield Hills, MI have given our program rave reviews stating that it is vital to their child's success. Bloomfield Hills ranks among the highest in the country with accreditation scores.

    A child may forget what you say, a child may forget what you do, but a child will never ever forget the way you make him/her feel!

    Sincerely,

    Donna and David

    (BA/ MA/ Part-Time Professors)

    HEADLINE 1: YOUR CHILD WILL LEARN TO BE ORGANIZED, ACCOUNTABLE AND RESPONSIBLE ON A CONSISTENT BASIS!

    1. Do you want your child to have a plan to be successful in school? · Our program will teach your child how to form goals and to develop a plan of action to attain them!

    2. Do you want your child to learn faster? · Our program will help you understand your child's strengths and areas of concern in regards to the learning styles!

    3. Do you want your child to have the support of parents/teachers? · Your child will develop a positive working relationship with teachers!

    4. Do you want your child to keep track of assignments and grades? · Your child will learn to be organized!

    5. Do you want your child to have structure in note taking? · Your child will develop note-taking skills!

    Our program will help children achieve these goals! It is user-friendly, compatible with all computers and may be used between K-12.

    Parents will LOVE our program and children will come to appreciate it!

    HEADLINE 2: BY USING THE SUGGESTED STRATEGIES, YOUR CHILDREN WILL IMPROVE THEIR GRADES AND THEIR BEHAVIOR!

    · Our program will help your children reach their personal best!

    · An Awesome Student Planner and Study Skills for Success Program that can be used over and over again FOREVER!

    BENEFITS OF OUR PROGRAM

    1. You may choose to never buy another spiral, binder or student planner.

    2. You will always have a useful K-12 resource to offer all of your children throughout all of their educational careers.

    3. All of the goal setting, organizational, grade and note-taking charts may be printed from the computer forever!

    4. By using the suggested strategies, children will be held accountable by parents and their teachers on a consistent basis!

    5. By using the suggested strategies, students will improve their grades and behavior!

    6. The program is user friendly and compatible with all computers!

    YOU WILL GET...

    1. our program FREE minus a minimal handling charge.

    2. our program emailed to you within 24 hours as an attachment. All you will need to do is open it and save it on your desktop. Your child will benefit immediately.

    We have received so much encouragement to offer our program to all children that we decided the best, most economical way was through the Internet.

    If you are interested in receiving more information, please click the email contact below and type "MORE INFORMATION" in the subject line. At the very least we kindly ask that you forward this message to a family that has children. It has proven to be a high quality program in which every child will benefit. mailto:school1st2001yahoo.com

    If you want to be removed from our list, please click the email contact below and type "REMOVE" in the subject line. mailto:ffss111yahoo.com

    TESTIMONIALS

    Satisfied with item. Thanks!

    Good communication to complete transaction. Would deal with again.

    Excellent program. Valuable to anyone associated with children. 100+

    PROGRAM IS EXACTLY WHAT NEEDED! Probably the last one we need to buy. THANK YOU!

    A+++++++++++++++++++++

    attached mail follows:


    On Thu, 30 Aug 2001 02:25, PHP List wrote: > Hi, > Can anyone tell me why php is behaving like this? > > If I use enctype="multipart/form-data", it seems the first form field > is not passed to php. ex: > <form method="post" action="products.asp" > enctype="multipart/form-data"> <input type="hidden" name="cmd" > value="edit"> > > $cmd will not be passed to php, I have to do this: > > <form method="post" action="products.asp" > enctype="multipart/form-data"> <input type="hidden" name="null" > value="null"> > <input type="hidden" name="cmd" value="edit"> > > Now I can use $cmd. > Is this normal?

    If you are trying to upload a file, I think you need to have a hidden field for MAX_FILE_SIZE - check the Handling File Uploads section of the manual.

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

    "Is" is the verb for when you don't want a verb.

    attached mail follows:


    On Thu, 30 Aug 2001 00:15, Glyndower wrote: > I'm coming over from the ASP side and I'm trying to get a handle on > this stuff, I could use a little help with the how and wheres, please. > I do ok with the SQl bits, but the PHP bits are still being elusive... > > Heres my code: > > $sql = "SELECT > listnum,agentname,listAgent,streetName,streetNum,curprice,email_addr,of >ficen > ame,officephone,agentname,agentphone,bedrooms,full_baths,half_baths,cus >tomer Remarks FROM mlsdb WHERE mlsdb.statusCode = 'A' AND mlsdb.catgNum > = '1'"; > > $result = mysql_query($sql); > > //load it all into the associative array > > while(list($listnum,$agentname,$streetName,$streetNum) = > mysql_fetch_row($result)): > echo "$listnum $agentname $streetNum $streetName <br>"; > endwhile; > > ?> > > Which displays: > > 50730 Aubrey May Wyndwood Drive 0 > 873171 Tia Lingle Palm Trl 9903 > 902385 Anthony Kipen Normandy Blvd 6458 ... > > As you can see the $streetNum displays BEFORE the $streetName, I'm > assuming thats becuase thats the order they are in in the query..(?) > > Heres my "I'm a newbie" question... exactly how and where do I define > the variables so that i can use them in a different order than they are > in the query?

    Use extract ,which makes available variables of the same name as the fields in your table.

    $result = mysql_query($sql); while($row = mysql_fetch_array($result)) { extract($row); echo "$listnum $agentname $streetNum $streetName <br>"; }

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

    Oxymoron: Weather Forecast.

    attached mail follows:


    On Wed, 29 Aug 2001 20:30, alvarezsto13.st-oneline.de wrote: > How can I prevent PHP from outputting additional linefeeds when > data are echoed from different files (eg. using require). > > This phenomenon is fucking up my document structures. > > Any advice? > > > D. Alvarez Arribas <alvarezst-oneline.net>

    You might check that there are no blank lines in the required file outside the <?php ?> tags.

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

    Creditors have much better memories than debtors.

    attached mail follows:


    php-general -

    Is there a way to change the default owner/group of the file after executing copy(). I prefer the owner of the copied file to be other than 'nobody'

    davidt

    attached mail follows:


    php-general -

    how to quote the value of the variable? I am looking for function it is something like $testvar=false quotefunc($testvar); now the value is "false"

    This failed....

    $boo=false; exec("sed -e s/$boo/true/g $pathfile > $newfile")

    So i replace $boo value with $boo="false"; <--- add " " and it works.

    davidt mailto:davidtaspsaic.com

    attached mail follows:


    i'm not sure what you're trying to do, but why not this?

    $var = 'foo'; $quoted_var = '"' . $var . '"';

    jack

    davidt wrote:

    > php-general - > > how to quote the value of the variable? I am looking for function it is something like > $testvar=false > quotefunc($testvar); > now the value is "false" > > This failed.... > > $boo=false; > exec("sed -e s/$boo/true/g $pathfile > $newfile") > > So i replace $boo value with > $boo="false"; <--- add " " > and it works. > > davidt > mailto:davidtaspsaic.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:


    php-general -

    davidt mailto:davidtaspsaic.com

    attached mail follows:


    At 20:11 29/8/2001 +0100, you wrote: >Why is it that every example uses foo and bar. In my head I put these >together to get FUBAR, the meaning of which I won't spell out for Kyle's >benefit. > >Is this what foo and bar refer to? And WHY are they used so extensively?

    they don't mean anything... but I think they refer to FUBAR.

    Do you know what FUBAR is right?

    F*CKED UP BEYOND ALL RECOGNITION.

    heheh :)

    p.s: meu novo email é cdecheryeasynet.com.br ____________________________ . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web Developer

    attached mail follows:


    I am having a similar problem using gd-2.0.1 where the compilation complains about "conflicting type gdIOCtx". I am getting a knot on my forehead from the wall in front of me. Any ideas?

    /dkm

    ----- Original Message ----- From: "Chris Mulcahy" <cmulcahycmulcahy.com> To: <php-generallists.php.net> Sent: Wednesday, August 29, 2001 9:31 AM Subject: [PHP] Making gd Extensions

    > > The current item I'm wrestling with is the gd extensions. I've rebuilt > PHP and Apache so many times to enable one feature only to learn that I > forgot to recompile one that I'd relied on previously. It's a never > ending battle to get all of the features required. > > The .so extensions option is a great feature that I'd like to make use > of. > > In trying to compile the gd .so extension (gd-1.8.4), I'm receiving the > following errors. Any ideas? > > Thanks > Chris Mulcahy > --- > > Making all in ext > make[1]: Entering directory > `/home/cmulcahy/transfer/webserver/php-4.0.6/ext' > Making all in gd > make[2]: Entering directory > `/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd' > make[3]: Entering directory > `/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd' > gcc -I. -I/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd -I/home/cm > ulcahy/transfer/webserver/php-4.0.6/main -I/home/cmulcahy/transfer/webse > rver/php-4.0.6 -I/home/cmulcahy/transfer/webserver/php-4.0.6/Zend -I/hom > e/cmulcahy/transfer/webserver/php-4.0.6/ext/mysql/libmysql -I/home/cmulc > ahy/transfer/webserver/php-4.0.6/ext/xml/expat/xmltok -I/home/cmulcahy/t > ransfer/webserver/php-4.0.6/ext/xml/expat/xmlparse -I/home/cmulcahy/tran > sfer/webserver/php-4.0.6/TSRM -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2 > -c gd.c && touch gd.lo > gd.c:95: conflicting types for `gdIOCtx' > /usr/local/include/gd_io.h:18: previous declaration of `gdIOCtx' > gd.c: In function `php_if_imagecreatefromgif': > gd.c:1209: `gdImageCreateFromGif' undeclared (first use in this > function) > gd.c:1209: (Each undeclared identifier is reported only once > gd.c:1209: for each function it appears in.) > gd.c: In function `php_if_imagegif': > gd.c:1404: `gdImageGif' undeclared (first use in this function) > make[3]: *** [gd.lo] Error 1 > make[3]: Leaving directory > `/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory > `/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory > `/home/cmulcahy/transfer/webserver/php-4.0.6/ext' > make: *** [all-recursive] Error 1 > > > > -- > 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 can't get pdf_findfont to work in Linux. I keep getting a message that the font metrics are not found. It works fine in windows. Anybody have any ides what I need to have set?

    --
    --------------------------------------
    Adam Oliver
    http://www.meyedev.com/people/aoliver.htm
    aolive1umbc.edu
    

    attached mail follows:


    I got the same error message, and couldn't figure out why...

    In the example for pdf_findfont(), it has:

    $font = pdf_findfont($pdf, "Times New Roman", "winansi", 1);

    Try changing your embed parameter to 0...

    $font = pdf_findfont($pdf, "Times New Roman", "winansi", 0);

    ... That fixed it for me. Give it a try.

    --Matt

    -----Original Message----- From: Adam Oliver [mailto:aolive1umbc.edu] Sent: Wednesday, August 29, 2001 9:58 PM To: php-generallists.php.net Subject: [PHP] pdflib + pdf_findfont

    I can't get pdf_findfont to work in Linux. I keep getting a message that the font metrics are not found. It works fine in windows. Anybody have any ides what I need to have set?

    --
    --------------------------------------
    Adam Oliver
    http://www.meyedev.com/people/aoliver.htm
    aolive1umbc.edu
    

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


    Sorry, I couldn't think of a well-worded, descriptive title for what I'm trying to do.

    As I believe I mentioned before, I use PHP and MySQL to keep a journal. all the entries are accessed by /index.phtml?id=23 , where "23" is replaced by the id of the entry you want.

    A "problem" I'm having is that some search engines' spiders (google, most notably), won't navigate through all the different ?id= variants, even though they are all linked together.

    The solution I thought of would be to make /23.phtml point to the same location, by parsing the id out of the url. Then the spiders would crawl through all the individual pages and store them all. I got this to work just fine.

    Now what I would like is, rather than creating 100+ files (even if all they contain is an include(); ), to ake a way where any /n.phtml brings up the same batch of code.

    really te only soltion I could come up with was to change my ErrorDocument in .htaccess to point a 404 to a custom page in the directory, containing the url parsing code, or, if it detects a non-numeric file, display a default 404 message.

    The problem with that was that apache would actually redirect the browser, and the URL would be replaced with /404.phtml, losing the variable/ url. Also $http_referrer would be suspiciously blank.

    Anyone know a way I can succeed at the above? Or, even more delightful, a better way to achieve it?

    thanks --kevin

    attached mail follows:


    >As I believe I mentioned before, I use PHP and MySQL to keep a >>>>journal. >all the entries are accessed by /index.phtml?id=23 , where "23" is >replaced by the id of the entry you want.

    >A "problem" I'm having is that some search engines' spiders (google, >most >notably), won't navigate through all the different ?id= variants, even >though they are all linked together.

    There is a really simple solution. Replace /index.phtml?id=23 with /index/23 and use the following line of code in your index file:

    $path_array = explode('/', $REQUEST_URI);

    Apache will find index.phtml if it is in your directory index configuration line and get that file. The line of code I gave you will split the uri up so you can specify $id=$path_array[2]; and retrieve your file that way. If index.phtml is not in your directory index line then you must tell apache to treat any occurance of index in your url as a file with a .htaccess file. Fore more info see this: http://phpbuilder.com/columns/tim20000526.php3

    Brett

    attached mail follows:


    In php cr32 will create a checksum number, 10 digits, in linux cksum will create one of 9 digits and sum linux will generate a 5 digit number. We use these numbers in a db field to determine if a file has changed and needs to be reviewed, redone, whatever...rather than keep the orginal file on hand. Given the task at hand and given I'm confused about why there are different length numbers, is there one particular option that allows for better change checking..or is it simply a matter of longer is better...I mean the longer the checksum number the better.

    rm

    __________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com

    attached mail follows:


    no idea! try using md5() instead,

    "Rm" <richand2002yahoo.com> wrote in message news:20010830034737.74313.qmailweb12706.mail.yahoo.com... > In php cr32 will create a checksum number, 10 digits, > in linux cksum will create one of 9 digits and sum > linux will generate a 5 digit number. We use these > numbers in a db field to determine if a file has > changed and needs to be reviewed, redone, > whatever...rather than keep the orginal file on hand. > Given the task at hand and given I'm confused about > why there are different length numbers, is there one > particular option that allows for better change > checking..or is it simply a matter of longer is > better...I mean the longer the checksum number the > better. > > rm > > __________________________________________________ > Do You Yahoo!? > Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger > http://im.yahoo.com

    attached mail follows:


    Hello all,

    I'm working on an online membership system, for a pay-per-view website. I'm looking for a user authentication system that does the following:

    -implements 'members only' pages -process membership registration (backed by mysql) -online credit card processing(using authorize.net) -reocuring billing (monthly, quarterly, etc.) -activate/deactivate members accounts -mass mailling to registered members -etc.

    Please help.

    -john nafiseh saberi wrote:

    >hi. >how do I covert convert 12:12:00 to seconds ? >I want to get time from system and covert it to seconds to do >arithmetic work on it. > thanks. >

    attached mail follows:


    Hello all,

    I'm working on an online membership system, for a pay-per-view website. I'm looking for a user authentication system that does the following:

    -implements 'members only' pages -process membership registration (backed by mysql) -online credit card processing(using authorize.net) -reocuring billing (monthly, quarterly, etc.) -activate/deactivate members accounts -mass mailling to registered members -etc.

    Please help. -john

    attached mail follows:


    Hello techies, In Java automatic garbage collection is there.How abt PHP?. Is there any tool(open source/free ware) to test the memory leakage.If it so where i can get that tool?Any suggestions will be appreciated. Thanks in advance. SenthilVellan.

    attached mail follows:


    Hi folks,

    I had the ... dubious ... pleasure of running some PHP code on an IIS system recently and noticed a peculiar occurrence...

    I called setCookie(), and something in it caused IIS to crash. Dead. Gone. Shuffled off this mortal coil. Stuffed. Like a parrot. :)

    As an alternative, I instered manual Header() commands to get the same effect as setCookie(). Same thing. Dead. Stuffed. Etc.

    Has anyone encountered this kind of muckup...? And if so, what did you do about it?

    Jason

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

    attached mail follows:


    I've developed an intranet running on win2k adv server/IIS and it sets lots of cookies... it hasn't crashed until now. But then again, microsoft's "random crash" feature which they implement into all of their programs might have just gotten hold of you ;)

    attached mail follows:


    I am working on setting up a Red Hat Linux Web Server. Is there a benefit to installing PHP/MySQL/Apache by compiling them from source vs. installing these using RedHat's Binary/RPM distributions?

    What are the pro's and con's of these two methods? Can anybody suggest any pointers considering stability, efficiency, and easy upgrades?

    Thanks in advance.

    attached mail follows:


    In the short run, its faster to install packages, and allows for easy upgrades. In the long run, if you compile from scratch you will get to know the system, you'll know more how it works, and it is (in my experience) MUCH more stable to compile it from source. I've installed PHP/MySQL/Apache combo on maybe 200 machines, and the numbers are for compiling everything from scratch.

    Dan

    > -----Original Message----- > From: Ralph Guzman [mailto:raguzmannetraiser.com] > Sent: Wednesday, August 29, 2001 11:23 PM > To: PHP General Mailing List > Subject: [PHP] Server Setup > > > I am working on setting up a Red Hat Linux Web Server. Is there a benefit to > installing PHP/MySQL/Apache by compiling them from source vs. installing > these using RedHat's Binary/RPM distributions? > > What are the pro's and con's of these two methods? Can anybody suggest any > pointers considering stability, efficiency, and easy upgrades? > > Thanks in advance. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >

    attached mail follows:


    I have never used a binary version (rpm or tar) as I use slackware. Both PHP and Mysql have been recently added to the distribution.So I have been using src all the time. U'll certainly have some performance gain by compiling the src. But the default Redhat 7.1's php distribution is very good. It is ready out of box for every thing. GD, Mysql, IMAP etc. You don't just have to configure anything. /Chandu > I am working on setting up a Red Hat Linux Web Server. Is there a > benefit to installing PHP/MySQL/Apache by compiling them from source > vs. installing these using RedHat's Binary/RPM distributions? > > What are the pro's and con's of these two methods? Can anybody suggest > any pointers considering stability, efficiency, and easy upgrades? > > Thanks in advance.

    attached mail follows:


    Although Fred's comments appear rhetorical, the suggestion has some merit. Anyone have a feel for how many PHP devotees are out there? How many people subscribe to this list? Do these numbers make it feasible to ask for a $1-10 contribution? How about $0.02 from each of the 7 million domains running PHP?

    There, that was my 2 cents worth. Or was that a 2 bit opinion? (I'll leave the next joke to the group)

    Also, I'll be proactive. Send all monies to me ;)

    Matthew A. Schneider

    ----- Original Message ----- From: "Frederick L. Steinkopf" <flsnjwebproduction.com> To: <php-generallists.php.net> Sent: Wednesday, August 29, 2001 5:55 AM Subject: Re: [PHP] The future of PHP

    > Manuel, > Rather than whining about the future of PHP, why don't you be proactive and > take on the goal of raising the $100,000 for the project? > Fred Steinkopf

    attached mail follows:


    In article <010001c1311e$d86ebb40$bf7ba8c0satx.rr.com>, matschsasites.com (Matthew A. Schneider) wrote:

    > > Rather than whining about the future of PHP, why don't you be proactive > > and take on the goal of raising the $100,000 for the project?

    > Although Fred's comments appear rhetorical, the suggestion has some merit. > Anyone have a feel for how many PHP devotees are out there? How many people > subscribe to this list? Do these numbers make it feasible to ask for a $1-10 > contribution? How about $0.02 from each of the 7 million domains running > PHP?

    To continue this (speculative) train of thought:

    Would it be feasible to collect some kind of contest entry fee, either instead of or in addition to donations toward the prize? If maximum participation were the goal (and I'm not sure that it would/should be, but for the sake of argument...), it might be a way to get entrants intestered in recruiting more entrants by reminding them that more developers in the contest, the bigger the reward to be won by one of them...

    As for collecting funds for such an endeavor, FWIW I (and presumably others) would be more likely to give if it were through the PHP.net group or Zend than through any third-party. At least then if the contest were to fall through, I'm confident that the money would still be well-spent on furthering PHP development/marketing.

    -- 
    CC
    

    attached mail follows:


    from this line, i guess that Apache is not installed?

    > apxs:Warning: /usr/bin/httpd not found or not executable

    "Joseph Bannon" <JBannonadvparadigm.com> wrote in message news:0F3DD2FF27EAD311A5C900508B5C2A670350F14Eapds_exp3.advparadigm.com... > What does this mean? > > > > make[1]: Entering directory `/home/php-4.0.6' > /home/php-4.0.6/build/shtool mkdir -p "/usr/lib/apache" && /usr/sbin/apxs -S > LIBEXECDIR="/usr/lib/apache" -i -a -n php4 libs/libphp4.so > apxs:Warning: /usr/bin/httpd not found or not executable > apxs:Warning: Continuing anyway... > apxs:Warning: No shared object support for Apache > apxs:Warning: available under your platform. Make sure > apxs:Warning: the Apache module mod_so is compiled into > apxs:Warning: your server binary `/usr/bin/httpd'. > apsx:Warning: Continuing anyway... > apxs:Error: Unknown option: S > Usage: apxs -g -n <modname> > apxs -q <query> ... > apxs -c [-o <dsofile>] [-D <name>[=<value>]] [-I <incdir>] > [-L <libdir>] [-l <libname>] [-Wc,<flags>] [-Wl,<flags>] > <files> ... > apxs -i [-a] [-A] [-n <modname>] <dsofile> ... > make[1]: *** [install-sapi] Error 1 > make[1]: Leaving directory `/home/php-4.0.6' > make: *** [install-recursive] Error 1

    attached mail follows:


    it usually means the apache httpd wasn't found in /usr/bin Some distributions throw things in wierd places

    do a 'locate httpd' (quicker) or 'find \ -name httpd' (longer) to find out where its situated

    then configure paths accordingly.

    Remember if you are going to use dso's apache must be compiled to use them that way.

    Lawrence

    -----Original Message----- From: _lallous [mailto:elias_bachaalanyyahoo.com] Sent: August 30, 2001 4:19 PM To: php-generallists.php.net Subject: [PHP] Re: install error

    from this line, i guess that Apache is not installed?

    > apxs:Warning: /usr/bin/httpd not found or not executable

    "Joseph Bannon" <JBannonadvparadigm.com> wrote in message news:0F3DD2FF27EAD311A5C900508B5C2A670350F14Eapds_exp3.advparadigm.com... > What does this mean? > > > > make[1]: Entering directory `/home/php-4.0.6' > /home/php-4.0.6/build/shtool mkdir -p "/usr/lib/apache" && /usr/sbin/apxs -S > LIBEXECDIR="/usr/lib/apache" -i -a -n php4 libs/libphp4.so > apxs:Warning: /usr/bin/httpd not found or not executable > apxs:Warning: Continuing anyway... > apxs:Warning: No shared object support for Apache > apxs:Warning: available under your platform. Make sure > apxs:Warning: the Apache module mod_so is compiled into > apxs:Warning: your server binary `/usr/bin/httpd'. > apsx:Warning: Continuing anyway... > apxs:Error: Unknown option: S > Usage: apxs -g -n <modname> > apxs -q <query> ... > apxs -c [-o <dsofile>] [-D <name>[=<value>]] [-I <incdir>] > [-L <libdir>] [-l <libname>] [-Wc,<flags>] [-Wl,<flags>] > <files> ... > apxs -i [-a] [-A] [-n <modname>] <dsofile> ... > make[1]: *** [install-sapi] Error 1 > make[1]: Leaving directory `/home/php-4.0.6' > make: *** [install-recursive] Error 1

    -- 
    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 want to send mail via exact account ( i.e. supportsomehost.com ).

    can I do it with php ?

    Thanks Rosen

    attached mail follows:


    > I want to send mail via exact account ( i.e. supportsomehost.com ). > can I do it with php ?

    Yes, in future please check the PHP manual before asking, as the manual entry for mail() specifically mentions this purpose.

    mail("recipientwhee.com", "subject", "mail", "From: supportsomehost.com\nReply-to: supportsomehost.com\n");

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

    attached mail follows:


    There is a Mysql error that is driving me mad. My ISP won't claim resposibility for it and it tells me it is a scrpting error. I don't agree with them. The error number is 2006, and it seems to restart the database every now and then.

    Please advice me as to what may be causing this problem. The error message is sent before the headers and it generates an error that stops script execution. Maybe I can trap the error so the script can continue.

    Pleas help.

    -- 
    ************************************
    Ivan R. Quintero E.* (507)228-3477	
    Aptdo 1263	   * (507)228-9105
    Balboa, Ancon	   * 612-1103
    Republic of Panama * 
    ************************************
    

    attached mail follows:


    adding an "" sign in front of the mysql functions ($db = mysql_connect(...)) will switch the function "silent", meaning PHP won't display any error messages if the function fails. did you try that?

    attached mail follows:


    Hello.

    If i have this string: "1 2 3 4 5 6 7 no more!" and this regular expression: "([0-9]+)"

    now how can i run preg_match to get result by result until no results are returned?

    attached mail follows:


    In article <20010830083215.95556.qmailpb1.pair.com>, elias_bachaalanyyahoo.com (_lallous) wrote:

    > If i have this string: "1 2 3 4 5 6 7 no more!" > and this regular expression: "([0-9]+)" > > now how can i run preg_match to get result by result until no results are > returned?

    <http://php.net/preg_match_all>

    -- 
    CC
    

    attached mail follows:


    I have some code which loops through a n array using a for loop. This works fine but if I try to loop through the array again in the same script the array seems to be empty (i,e, the loop douse not do any interations). Do I need to reset the array pointer at the begining? Is there something else I need to do?

    Regards, Ben

    attached mail follows:


    I've gotten the year from the following code on page one:

    date_array=getdate(); / / today's date info foreach ($date_array as $key=>$val) { $key=$val; } $current_year=$date_array[year];

    I've used the $current_year variable throughout a form on the first page and the variable is picked up without problem everywhere it's used. I've brought in stored data to display on this same page using $php_self in a select box, and the $current_year variable still works fine. Finally, I've got another select box which calls a new page using get (I tried post, and it didn't work either), and the $current_year disappears never to be seen again. Perplexing, no?

    attached mail follows:


    Richard, I let this problem sit for awhile, did some other work, and looked at it again. This time, I printed out all the values and found that some values =INF. No wonder it died. Since I'm making a log-normal chart, occasionally I'm trying to calculate the log of zero--an infinitely small number which can't be calculated! I did try the error_log statement but my ISP puked on the syntax. ----- Original Message ----- From: Richard Lynch <ceol-i-e.com> To: Hugh Danaher <hdanaherearthlink.net> Sent: Wednesday, August 22, 2001 1:21 PM Subject: Re: [PHP] Re: if statement and imageline()

    > No. 150 lines is chump change. > > See if you can get ImageLine to work in a simpler fashion. > > Also, try adding: > > error_log("ImageLine: $start_x $start_y $x $y", E_NOTICE); > > And then look at your Apache logs. > > You'll at least be able to see if the program is getting there while it > tries to draw stuff. > > -- > WARNING richardzend.com address is an endangered species -- Use > ceol-i-e.com > Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm > Volunteer a little time: http://chatmusic.com/volunteer.htm > ----- Original Message ----- > From: Hugh Danaher <hdanaherearthlink.net> > To: Richard Lynch <ceol-i-e.com> > Cc: Php-General <php-generallists.php.net> > Sent: Wednesday, August 22, 2001 3:50 AM > Subject: Re: [PHP] Re: if statement and imageline() > > > > Richard, > > No, the code was cut from the php file and displayed as is in my e-mail. > I > > also tried to see if I could declare the two suspect variables in another > > IF() statement before the IF() statement that's fouling the execution of > the > > .jpg construct, but no luck there too. Could I just be overburdening the > > program? I've got a lot of code (about 150 lines) in the .jpg construct. > > Cheers, > > Hugh > > ----- Original Message ----- > > From: Richard Lynch <ceol-i-e.com> > > To: Hugh Danaher <hdanaherearthlink.net> > > Sent: Wednesday, August 22, 2001 12:18 AM > > Subject: Re: [PHP] Re: if statement and imageline() > > > > > > > Hmmmmmm. > > > > > > Are you sure you didn't have: > > > > > > if ($year = $startyear) > > > > > > *THAT* would assign 1996 over and over to $year, after the ++, so it > would > > > never move forward, and the script would time out... > > > > > > Not sure what else could be wrong, if it's *JUST* the if part you are > > > adding... > > > > > > -- > > > WARNING richardzend.com address is an endangered species -- Use > > > ceol-i-e.com > > > Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm > > > Volunteer a little time: http://chatmusic.com/volunteer.htm > > > ----- Original Message ----- > > > From: Hugh Danaher <hdanaherearthlink.net> > > > To: Richard Lynch <ceol-i-e.com> > > > Cc: Php-General <php-generallists.php.net> > > > Sent: Wednesday, August 22, 2001 1:05 AM > > > Subject: Re: [PHP] Re: if statement and imageline() > > > > > > > > > > Richard, > > > > > > > > Without the code below, I get a good .jpg file and it displays nicely. > > > But, > > > > with the IF statement in, I get a time out error message "Execute time > > > > exceeds 30 seconds..." I think it is because two of the variables are > > > > declared after the IF statement, even though they aren't being used on > > the > > > > first loop. I'll try to declare them before the FOR loop and see if > > that > > > > works. > > > > > > > > As you might tell from my code, the only software course I ever had, > was > > > in > > > > college 20 years ago, and it was in BASIC language (with line > numbers!). > > > > However, I find php easy to work with, and have done some amazing > things > > > > with it in the last 2 months. With your help and the help of others, > > I'll > > > > certainly make progress. > > > > > > > > Thanks, > > > > Hugh > > > > ----- Original Message ----- > > > > From: Richard Lynch <ceol-i-e.com> > > > > To: <php-generallists.php.net> > > > > Sent: Tuesday, August 21, 2001 5:16 PM > > > > Subject: [PHP] Re: if statement and imageline() > > > > > > > > > > > > > What are you getting? An image at all? Broken image? > > > > > > > > > > Try getting rid of the header("image/jpeg") or whatever, and see if > > you > > > > have > > > > > some error message. > > > > > > > > > > -- > > > > > WARNING richardzend.com address is an endangered species -- Use > > > > > ceol-i-e.com > > > > > Wanna help me out? Like Music? Buy a CD: > > http://l-i-e.com/artists.htm > > > > > Volunteer a little time: http://chatmusic.com/volunteer.htm > > > > > ----- Original Message ----- > > > > > From: Hugh Danaher <hdanaherearthlink.net> > > > > > Newsgroups: php.general > > > > > To: Php-General <php-generallists.php.net> > > > > > Sent: Tuesday, August 21, 2001 1:16 AM > > > > > Subject: if statement and imageline() > > > > > > > > > > > > > > > help, > > > > > > > > > > I am trying to set up a .jpg file to graph the earnings per year of > a > > > > > company. I can generate a log-normal graph, can get it to display > the > > > > > earnings per year as circles on the graph, but I can't get the " if > > () > > > " > > > > > statement to work. I know I am setting two of the variables in the > if > > > > > statement after the if statement executes once, but these variables > > > won't > > > > be > > > > > used until after the " for () " loops once, and therefore should be > > > > > available for use in " imageline() " on the second loop (where > > > > > $year>$startyear). Somehow, I think my logic is correct but it > > mustn't > > > be > > > > > so. > > > > > > > > > > > > > > > $startyear=1996; > > > > > $chart_start_year=1992; > > > > > for ($year=$startyear;$year<=$startyear+7;$year++) > > > > > { > > > > > $x=(($year-$chart_start_year)*20)+20; > > > > > $y=420-log(${"earnings_".$year})*75; > > > > > if ($year>$startyear) > > > > > { > > > > > imageline($image,$first_x,$first_y,$x,$y,$blue); > > > > > } > > > > > $first_x=$x; > > > > > $first_y=$y; > > > > > > > > > imagettftext($image,9,0,$x_distance-4,$y_distance+3,$blue,$font2,"m"); > > > > > } > > > > > > > > > > > > > > > > > > > > -- > > > > > 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 folks I just wonder as I saw someone useing session with global and some don't. What is the reason to use session together with global? Like this: session_start(); global $test session_register('test');

    I look up in manual using keyword "global", but could not find anything near this. Jack