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 Mar 15 2001 - 20:00:40 CST

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

    php-general Digest 16 Mar 2001 02:00:40 -0000 Issue 569

    Topics (messages 44027 through 44194):

    Re: Executing a string with both html and php inside it..
            44027 by: Mark Roedel
            44038 by: Aviv Revach
            44048 by: Christian Reiniger

    Re: Function to compare an array with another array
            44028 by: Stewart Taylor
            44031 by: Tim Ward

    Re: Dynamic Arrays?
            44029 by: John Guynn
            44030 by: Mark Roedel

    mail() function how???
            44032 by: Nilesh Parmar
            44035 by: Knotek Vlastimil

    mail() implementation problem
            44033 by: Mathieu Arnold
            44107 by: Mathieu Arnold
            44191 by: Manuel Lemos

    List of Directories with in a Directory
            44034 by: Tim Livers
            44050 by: Christian Reiniger

    (rac)MCAL, doubt, again
            44036 by: Celestino Roberto Alejandro

    Re: Will my script run after redirect?
            44037 by: Johnson, Kirk

    Re: SOS !
            44039 by: Julien (support pagespersos Free)

    Re: Statistics function
            44040 by: chris.improbable.org

    Re: URL / address
            44041 by: Aviv Revach

    separate php.ini files
            44042 by: Kevin Porter
            44043 by: Johnson, Kirk
            44044 by: Mark Roedel

    forms and databases usinh PHP
            44045 by: Don
            44049 by: Jack Dempsey
            44062 by: Michael Kimsal
            44075 by: Don

    gmmktime() woes
            44046 by: David G.

    Problem with ereg*_replace and backreference
            44047 by: Alain FORCIOLI

    Re: How upload files to protected directories?
            44051 by: Keith Vance
            44139 by: Mig

    newbie problem: Hit counter.
            44052 by: Richard Banks
            44059 by: Boaz Yahav

    Re: POST Method.
            44053 by: Keith Vance
            44055 by: Nick Davies

    Re: that whole system() thing again
            44054 by: Dennis Gearon

    Search Engines?
            44056 by: Wee Chua

    POST conversion.
            44057 by: Nick Davies
            44071 by: Stewart Taylor
            44073 by: Chris Lee

    RE:Dynamic Arrays?
            44058 by: Dennis Gearon

    Chat with PHP and MySQL - come and chat about Linux problems...
            44060 by: Marian Vasile

    php editors
            44061 by: McShen
            44065 by: Keith Vance
            44175 by: David Robley

    FAQ
            44063 by: Rick St Jean
            44068 by: RBL
            44070 by: RBL
            44072 by: Mal McKay
            44074 by: Mal McKay
            44076 by: Rick St Jean
            44091 by: Chris Lee
            44093 by: Rick St Jean
            44095 by: Christopher Allen
            44117 by: eschmid+sic.s.netic.de
            44177 by: David Robley
            44178 by: Keith Vance
            44179 by: Tobias Talltorp
            44182 by: Jason Lotito
            44194 by: Michael Talbot-Wilson

    File system or MySQL ?
            44064 by: Marian Vasile
            44069 by: Chris Lee

    Php C source code
            44066 by: rui.websolut.net

    Re: [PHP-DB] validating checkboxes
            44067 by: Stewart Taylor

    String parsing problem
            44077 by: Justin Smith

    Help w/Cookie Problem
            44078 by: Jack Sasportas
            44079 by: Jack Dempsey

    Re: Finding the depth
            44080 by: Chris Lee

    3 situations - PHP Power or... servlet(JSP) power ?
            44081 by: Marian Vasile
            44090 by: Chris Lee
            44097 by: Pierre-Yves Lemaire
            44100 by: Mark Maggelet
            44102 by: Marian Vasile
            44109 by: Michael Kimsal
            44110 by: Mark Maggelet

    Re: newbie php authentication quest.
            44082 by: Chris Lee

    Re: Own User authentification
            44083 by: Chris Lee

    Re: Creating Files Windows vs Unix
            44084 by: Andrew V. Romero

    Re: External file?
            44085 by: Chris Lee

    One some problem with uploading
            44086 by: Al

    Re: Not Looping...
            44087 by: Chris Lee

    Variable value doesn't stay "Null"
            44088 by: Michael Conley
            44089 by: Chris Lee
            44111 by: Michael Conley
            44115 by: Johnson, Kirk
            44120 by: Michael Conley
            44124 by: Web master
            44144 by: NHans

    RE:function() for mysql-enum-field-values-to-array
            44092 by: Dennis Gearon

    Windows 2000, PHP, mySQL: multiple users and security
            44094 by: Alain Fontaine

    Paging a Recordset
            44096 by: James Crowley
            44113 by: Web master
            44190 by: Manuel Lemos

    Newbie question: Basic knowledge
            44098 by: Virtual Evil
            44099 by: Rick St Jean
            44108 by: Virtual Evil
            44119 by: Phillip Bow
            44127 by: Virtual Evil
            44128 by: Virtual Evil
            44133 by: eschmid+sic.s.netic.de
            44134 by: Virtual Evil
            44138 by: eschmid+sic.s.netic.de
            44143 by: Lars Falsig

    Perl Libraries and PHP
            44101 by: Matthew Hanna

    Help needed - search problem
            44103 by: Fang Li
            44105 by: Boget, Chris

    Variable problems and strings PHP3
            44104 by: rm

    Passing Multilayered Objects, by Reference, to Independent Sub-Objects
            44106 by: Andrew Immerman
            44114 by: Andrew Immerman

    Stripping Single Quotes
            44112 by: Elan
            44121 by: CC Zona
            44126 by: Web master

    Help! Can't redeclare already declared function in
            44116 by: Jack Sasportas
            44118 by: Johnson, Kirk
            44123 by: Web master
            44150 by: ..s.c.o.t.t.. [gts]
            44153 by: Keith Vance

    Error working
            44122 by: Celestino Roberto Alejandro
            44148 by: ..s.c.o.t.t.. [gts]

    Reminders
            44125 by: Dale Frohman
            44129 by: Mark Maggelet

    error_log creates duplicate entries
            44130 by: Marcel Levy

    Re: FAQ Ignor if you are tired of this.
            44131 by: Rick St Jean
            44135 by: Lars Falsig

    passing variables from one form to another
            44132 by: Don
            44147 by: ..s.c.o.t.t.. [gts]

    MSSQL 2000 in PHP4... Is this possible?
            44136 by: Brandon Orther

    fopen to validate a URL
            44137 by: Kenneth R Zink II
            44140 by: Kenneth R Zink II
            44141 by: ..s.c.o.t.t.. [gts]

    Re: need some help..
            44142 by: Andreas D. Landmark
            44145 by: ..s.c.o.t.t.. [gts]

    PostToHost
            44146 by: Boget, Chris
            44181 by: Tobias Talltorp

    Re: How do you keep your scripts secure?
            44149 by: Richard Lynch
            44154 by: ..s.c.o.t.t.. [gts]
            44157 by: Keith Vance
            44161 by: Murph
            44163 by: Jack Dempsey
            44165 by: Johnson, Kirk
            44166 by: Murph
            44167 by: Murph
            44168 by: Keith Vance
            44169 by: Jack Dempsey

    Interactive Shells
            44151 by: Clayton Dukes
            44155 by: ..s.c.o.t.t.. [gts]

    Has anyone got MSSQL2000 to connect and work properlly?
            44152 by: Brandon Orther
            44156 by: ..s.c.o.t.t.. [gts]

    I can't install PHP4
            44158 by: Norberto Rojas
            44159 by: Keith Vance

    Executing a CGI script.
            44160 by: Brandon Orther
            44162 by: Jack Dempsey
            44164 by: Jack Dempsey

    Call to undefined function
            44170 by: Clayton Dukes
            44171 by: Clayton Dukes
            44172 by: Jack Dempsey
            44174 by: Clayton Dukes

    creating array on variable variable (bug?)
            44173 by: Tobias Talltorp
            44176 by: Mahmoud Abu-Wardeh
            44180 by: Tobias Talltorp

    Extra Path Info
            44183 by: Jesse Kipp

    Passing JavaScript variables
            44184 by: Gary

    Request for input...
            44185 by: Mary E Tyler

    $REDIRECT_ERROR_NOTES
            44186 by: Paul R. Jackson
            44187 by: David Robley
            44189 by: Paul R. Jackson
            44192 by: David Robley

    Help. creating excel file form mysql
            44188 by: Javier Onate

    how fast is php
            44193 by: Randy Johnson

    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:


    > -----Original Message-----
    > From: Aviv Revach [mailto:aviv_rbrillianet.com]
    > Sent: Tuesday, March 13, 2001 5:36 PM
    > To: php-generallists.php.net
    > Subject: [PHP] Executing a string with both html and php inside it..
    >
    >
    > What should I do in order to execute the next string:
    > $str = "<html>\n"
    > $str .= "blabla\n";
    > $str .= " <?php echo \"hello!\"; ?>\n";
    > $str .= "blabla\n";
    > $str .= "</html>\n";
    >
    > When I tried using 'echo' with the string, but the php code
    > didn't work...
    >
    > Is there any way of doing this without writing this string to a file
    > and include'ing it? (that would be rather slow!)

    If you're not going to be writing it out to a file, why wouldn't you
    just

        $str = "<html>\n"
        $str .= "blabla\n";
        $str .= " hello!\n";
        $str .= "blabla\n";
        $str .= "</html>\n";

    Is there something i'm missing here? I'm sure this is an oversimplified
    example, but what is it you're actually trying to accomplish?

    ---
    Mark Roedel           | "I know the answer!  The answer lies within the
    Systems Programmer    |  heart of all mankind!  The answer is twelve?!?
    LeTourneau University |  I think I'm in the wrong building."
    Longview, Texas, USA  |           -- Peppermint Patty (Charles Schultz) 
    

    attached mail follows:


    Hey!

    I would like to thank you and Mark for your quick reply.

    What am I trying to accomplish is the following:

    I have created an engine which separates my website's code and design. The code is stored in one file(code.txt) and the design in another(design.txt).

    The engine loads up parts of each file in order to create the final result, meaning - * It prints the "<html><head>" etc.. * It prints DESIGN.TXT's head * It prints CODE.TXT's head * It prints "</head><body>" etc.. * It prints part of DESIGN.TXT's body * It prints CODE.TXT's body * It prints the second-part of the DESIGN.TXT's body * It prints "</body></html>"

    That's the general idea of what the engine does, but it's doing other things as well. The engine works the way it does because I wanted to have the entire content and the entire design all in 2 separate files. Most of the engines I've seen so far, used 3 different files for the design, and included them in different places inside their content. I don't wish to do that..

    Now, all worked fine until a while go, I used the 'echo' command in order to print the strings that contain content/design HTML code.

    The troubles began when I added PHP code to my content - The PHP tags were IGNORED... !

    Now, after I've told you all the things you should know, I ask for your assistance. What do you suggest me to do?

    Thank you in advance -

    Aviv Revach

    At 13:26 15/03/01 +0100, Christian Reiniger wrote: >On Wednesday 14 March 2001 12:50, you wrote: > > > My string contains HTML tags with PHP code inside(in '<?php' and '?>' > > tags), not only PHP as eval() requires. > > > > Do you have any other suggestion? > >AFAIK there's no other way than using include(). > >Why do you need that anyway? > > > > > What should I do in order to execute the next string: > > > > $str = "<html>\n" > > > > $str .= "blabla\n"; > > > > $str .= " <?php echo \"hello!\"; ?>\n"; > > > > $str .= "blabla\n"; > > > > $str .= "</html>\n"; > > > > > > > > When I tried using 'echo' with the string, but the php code didn't > > > > work... > >-- >Christian Reiniger >LGDC Webmaster (http://sunsite.dk/lgdc/) > >Pretty cool, the kind of power information technology puts in our hands >these days. > >- Securityfocus on probing 36000000 hosts for known problems in 3 weeks

    BRILLIANeT Website - http://www.brillianet.com/

    attached mail follows:


    On Wednesday 14 March 2001 16:26, you wrote: > Hey! > > I would like to thank you and Mark for your quick reply. > > What am I trying to accomplish is the following: > > I have created an engine which separates my website's code and > design. The code is stored in one file(code.txt) and the design in > another(design.txt).

    [...]

    > Now, after I've told you all the things you should know, I ask for your > assistance. > What do you suggest me to do?

    I'd say use another approach. Separating code and design is good, but keeping each on only one file will cause more troubles that it's worth. I keep all my design in one directory, as several files, each a snippet of HTML (usually with some <?= $SomeVar ?> statements embedded):

    misc_hitcounter_g.html misc_hitcounter_s.html page_footer-titel.html page_footer.html page_header-titel.html page_header.html page_toc-linkmarked.html page_toc-linkstd.html page_toc.html mail_subscribe-failure.html mail_unsubscribe-failure.html mail_subscribe-success.html mail_unsubscribe-success.html news_item-std.html

    news_item-std.html for example looks like this (it's a german site):

    <tr valign="top"> <td colspan="2" height="2"><img src="/images/transparent.gif" width="1" height="1"></td> </tr> <tr valign="top"> <td> <p class="bb"><?= $PTime ?></p> </td> <td> <p class="bb"><?= $Title ?></p> </td> </tr> <tr valign="top"> <?php if ($Usermode == 'maint') { ?> <td><a href='/maintain.php?what=news&amp;id=<?= $ID ?>&amp;action=edit' class='inbody'>Bearbeiten</a></td> <?php } else { ?> <td>&nbsp;</td> <?php } ?> <td><?= $Body ?></td> </tr>

    Such an approach is IMHO easy to understand and handle, well-structured etc.

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

    Pretty cool, the kind of power information technology puts in our hands these days.

    - Securityfocus on probing 36000000 hosts for known problems in 3 weeks

    attached mail follows:


    How about using the array_diff function instead. array_diff ($array1,$array2) = elements in $array1 not in $array2; array_diff ($array2,$array1) = elements in $array2 not in $array1;

    From manual: array array_diff (array array1, array array2 [, array ...])

    Array_diff() returns an array containing all the values of array1 that are not present in any of the other arguments. Note that keys are preserved.

    Example 1. Array_diff() example

    $array1 = array ("a" => "green", "red", "blue"); $array2 = array ("b" => "green", "yellow", "red"); $result = array_diff ($array1, $array2);

    This makes $result have array ("blue");

    -----Original Message----- From: Fang Li [mailto:flibiographix.com] Sent: 15 March 2001 14:03 To: Tim Ward; 'Jimmy Bäckström'; PHP General List Subject: RE: [PHP] RE: Function to compare an array with another array

    Hi, I am trying to use the Function ArrayCompare, but it always has an error in "if(($key = array_search($element, $array2)) == false)", and also I couldn't get the page of http://www.stivesdirect.com/e-mail-disclaimer.html Would you please give me a clue? Thanks!

    Fang

    -----Original Message----- From: Tim Ward [mailto:tim.wardstivesdirect.com] Sent: March 5, 2001 5:48 AM To: 'Jimmy Bäckström'; PHP General List Subject: [PHP] RE: Function to compare an array with another array

    function ArrayCompare($array1, $array2) { $answer = new Array() foreach ($array1 as $element) { if (($key = array_search($element, $array2)) === false) { $answer[$key] = $array2[$key]; } } return $answer; }

    this will return an array that is a copy of the first array with only those elements that are not in array2. If you only want the first one either just use the first one( foreach(){ ... break;}) or put a break in the if.

    Tim Ward Senior Systems Engineer

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

    > -----Original Message----- > From: Jimmy Bäckström [mailto:broder_bchello.se] > Sent: 05 March 2001 06:38 > To: PHP General List > Subject: Function to compare an array with another array > > > Shu! > I need some help here. > I have a script where I want to compare two arrays with > eachother, and return one value from that does not exists in > both arrays. I have an array of pictures id number created > from a database query. I use sessions to save id numbers of > pictures into an array. I want the first array to be compared > to the second and return the first key/value-pair that are > not found in the session array... > Is there a way I can do this? > > Thankful for any help! > /Broder 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
    

    -- 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've been writing javascript, and also didn't check the validity of the array_search function ... this works (and is simpler anyway)

    <?php function ArrayCompare($array1, $array2) { $answer = Array(); // sorry about the js creeping in here foreach ($array1 as $key=>$element) { if (in_array($element, $array2)) { $answer[$key] = $element; } } return $answer; } ?>

    Tim Ward Senior Systems Engineer

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

    > -----Original Message----- > From: Fang Li [mailto:flibiographix.com] > Sent: 15 March 2001 14:03 > To: Tim Ward; 'Jimmy Bäckström'; PHP General List > Subject: RE: [PHP] RE: Function to compare an array with another array > > > Hi, > I am trying to use the Function ArrayCompare, but it always > has an error in > "if(($key = array_search($element, $array2)) == false)", and > also I couldn't > get the page of http://www.stivesdirect.com/e-mail-disclaimer.html > Would you please give me a clue? Thanks! > > Fang > > -----Original Message----- > From: Tim Ward [mailto:tim.wardstivesdirect.com] > Sent: March 5, 2001 5:48 AM > To: 'Jimmy Bäckström'; PHP General List > Subject: [PHP] RE: Function to compare an array with another array > > > function ArrayCompare($array1, $array2) > { $answer = new Array() > foreach ($array1 as $element) > { if (($key = array_search($element, $array2)) === false) > { $answer[$key] = $array2[$key]; > } > } > return $answer; > } > > this will return an array that is a copy of the first array > with only those > elements that are not in array2. If you only want the first > one either just > use the first one( foreach(){ ... break;}) or put a break in the if. > > Tim Ward > Senior Systems Engineer > > Please refer to the following disclaimer in respect of this message: > http://www.stivesdirect.com/e-mail-disclaimer.html > > > > -----Original Message----- > > From: Jimmy Bäckström [mailto:broder_bchello.se] > > Sent: 05 March 2001 06:38 > > To: PHP General List > > Subject: Function to compare an array with another array > > > > > > Shu! > > I need some help here. > > I have a script where I want to compare two arrays with > > eachother, and return one value from that does not exists in > > both arrays. I have an array of pictures id number created > > from a database query. I use sessions to save id numbers of > > pictures into an array. I want the first array to be compared > > to the second and return the first key/value-pair that are > > not found in the session array... > > Is there a way I can do this? > > > > Thankful for any help! > > /Broder 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 > > >

    attached mail follows:


    My first idea is something like this:

    $counter=1

    while ($counter <= some maximum number){

    $arrayvalue="var".$counter

    write $arrayname[$arrayvalue] to database

    $counter++; }

    That should get the job done.

    One other idea (depending on if you are just storing data or if you need to manipulate it) is to serialize or implode the array and store the result of the serialize/implode operation in the database.

    John Guynn

    This email brought to you by RFCs 821 and 1225.

    -----Original Message----- From: RealGM [mailto:webmasterrealgm.com] Hi,

    I have a bit of a dilemma.

    I have a number of array attributes, eg. $arrayname["var1"], $arrayname["var2"], $arrayname["var2"], etc. up to 58, and I want to write these into the database.

    What I am hoping to do is create a counter that goes through the insert routine, updating the numerical value of "var". The problem is.. everything I have tried hasn't worked.

    I have tried things like...

    $counter=1;

    $arrayname[["var".$counter1]]; $arrayname["var$counter1"]; ...and variations thereof. Everything I have tried has failed.

    PLEASE can someone help??

    attached mail follows:


    > -----Original Message----- > From: RealGM [mailto:webmasterrealgm.com] > Sent: Thursday, March 15, 2001 3:38 AM > To: php-generallists.php.net > Subject: [PHP] Dynamic Arrays? > > > Hi, > > I have a bit of a dilemma. > > I have a number of array attributes, eg. $arrayname["var1"], > $arrayname["var2"], $arrayname["var2"], etc. up to 58, and I > want to write these into the database. > > What I am hoping to do is create a counter that goes through > the insert routine, updating the numerical value of "var". > The problem is.. everything I have tried hasn't worked. > > I have tried things like... > > $counter=1; > > $arrayname[["var".$counter1]]; > $arrayname["var$counter1"]; > > ...and variations thereof. Everything I have tried has failed.

    How about just

    foreach ($arrayname as $arrayval) { do stuff with $arrayval }

    Or, if it's also important for you to know that you're dealing with the value of "var1"...

    foreach ($arrayname as $arraykey=>$arrayval) { do stuff with $arraykey and $arrayval }

    ---
    Mark Roedel           | "I know the answer!  The answer lies within the
    Systems Programmer    |  heart of all mankind!  The answer is twelve?!?
    LeTourneau University |  I think I'm in the wrong building."
    Longview, Texas, USA  |           -- Peppermint Patty (Charles Schultz) 
    

    attached mail follows:


    Hello !! I have insalled php on my windows 98 machine.But the mail() function does not work. Can anyone give me info as to how to use the mail() function in php.Or rather should i require any configurations on my machine. please help thanx in advance Nilesh Parmar

    attached mail follows:


    Hi

    You mast have some mail server installed, or an access to one. Then you have to configure your PHP.ini file:

    1. If you are running under Windows:

    [mail function] SMTP = address of the mail server (mailserver.com or IP address) sendmail_from = frommailserver.com

    'from' can be anything you want 'mailserver.com' must be same in both lines

    2. If you are running under linux:

    ;sendmail_path = ;may supply arguments as well (default is 'sendmail -t -i')

    K.V.

    -----Original Message----- From: Nilesh Parmar [mailto:np_wroxindiasatyam.net.in] Sent: Thursday, March 15, 2001 4:04 AM To: php-generallists.php.net Subject: [PHP] mail() function how???

    Hello !! I have insalled php on my windows 98 machine.But the mail() function does not work. Can anyone give me info as to how to use the mail() function in php.Or rather should i require any configurations on my machine. please help thanx in advance Nilesh Parmar

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

    The actual implementation of the mail fonction use sendmail -t and relies on sendmail to parse the headers to get the recipients. It would be great if it was possible to switch from this way of using sendmail to a more classic sendmail -f sender rcpt it should be quite easy, but I lack time to do it.

    -- 
    Mathieu Arnold
    

    attached mail follows:


    Hi

    The actual implementation of the mail function use sendmail -t and relies on sendmail to parse the headers to get the recipients. It would be great if it was possible to switch from this way of using sendmail to a more classic sendmail -f sender rcpt it should be quite easy, but I lack time to do it.

    -- 
    Mathieu Arnold
    

    attached mail follows:


    Hello,

    Mathieu Arnold wrote: > > Hi > > The actual implementation of the mail fonction use sendmail -t and > relies on sendmail to parse the headers to get the recipients. > It would be great if it was possible to switch from this way of using > sendmail to a more classic > sendmail -f sender rcpt > it should be quite easy, but I lack time to do it.

    You may want to try this PHP MIME message composing and sending class that has subclasses for sending messages using directly sendmail, qmail or even a SMTP server.

    http://phpclasses.UpperDesign.com/browse.html/package/9

    Manuel Lemos

    attached mail follows:


    I am trying to get a list of all directories within a specified directory.

    Any ideas how to do this?

    Thanks

    Tim

    attached mail follows:


    On Thursday 15 March 2001 16:05, you wrote: > I am trying to get a list of all directories within a specified > directory. > > Any ideas how to do this?

    go through all entries of the dir. on each entry check if it's a directory. if it is, list it

    For all other questions on this topic check the manual

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

    Pretty cool, the kind of power information technology puts in our hands these days.

    - Securityfocus on probing 36000000 hosts for known problems in 3 weeks

    attached mail follows:


    Hi... ..where i can found documentation abour the use and the installation of MCAL library in Solaris plattform?

    Robert Celestino.

    attached mail follows:


    This will work fine. The script will continue to run after the meta refresh unless the exit is there.

    > -----Original Message----- > From: Carfield Yim [mailto:carfieldprogrammer.net] > Sent: Thursday, March 15, 2001 3:24 AM > To: php-generallists.php.net > Subject: [PHP] Will my script run after redirect?

    > if( $i = 0) > { > print "<meta http-equiv=refresh content=\"0;url=$url\">"; > exit; > } > $i++; > > Will it work? Is it have any side-effect?

    attached mail follows:


    Nicolas MERLET a écrit :

    > Please help me ! My problem is that I can't load PHP scripts (.php > extension) with my personal server. My OS is Windows 95B (but MSIE 5 > update), and I use PWS for Win 95 (not 4.0 for Win 98). My PHP version > is: 4.0.4pl1 for Win32 I've already done this instructions, I've found > in the manual: - Updating DCOM- Copying "php.ini" into "c:\windows\" > directory- Writing correct path for "extension_dir" field (my path is > "c:\php")- Adding ".php" registry key in > "HKLM/System/.../W3Svc/Parameters/ScriptMap" with "c:\php\php.exe %s > %s" value- Adding ".php" extension in "HKCR" registry key (with > correct parameters, I've tested it, there's no running problem) I > don't understand why PHP doesn't run on my server. Maybe > "ScriptMap/.php" registry key value is wrong...I'm waiting for any > answer... Nicolas Merlet ____________ > Tel: +33.674.520.959 > Email: merletnonline.fr

    --
    Bonjour,
    

    Sorry,but our servers don't support the extension that follows : .php extension ,only: .ph3 ,indeed the Free php version is php 3.

    Cordialement. ---------------- Free.fr

    attached mail follows:


    On Thu, Mar 15, 2001 at 06:10:43AM -0600, Derek Sivers wrote: > > >the connection will close when you hit cancel but the PHP > >code can continue running if you choose. > > How do you choose to have the PHP script continue even if a browser > leaves/dumps?

    Check out the ignore_user_abort() function.

    attached mail follows:


    Hey!

    You could easily use the Environment Variables.

    echo "http://$HTTP_HOST/$PATH_INFO";

    will do the trick..

    Best Regards -

    Aviv Revach

    At 13:45 15/03/01 +0100, Geer wrote: >Hi there, > >Does anyone know how I can read the address of URL the user filled in in >his/her browser??? > > >Greetings, > >Geer > > > >-- >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

    XOR-Coders Mega Programming Resource Site! - http://members.xoom.com/xorcoders/

    attached mail follows:


    Hi,

    I need to build two copies of a website on one machine - one for development and one for a backup. I want to be able to use different php.ini files with each copy of the site. Can I do this without compiling two Apache/PHP excutables? ie can it be done with virtual hosting somehow or by any other means?

    thanks,

    - Kev

    --
    http://www.megasoccer.com - World Soccer
    http://www.fa-premier.com - English Premier League Football
    

    attached mail follows:


    We just started doing this using Apache's virtual hosting and .htaccess files to alter php.ini's configuration settings on a per application basis. Haven't played with it much yet, tho. Looks good so far.

    > -----Original Message----- > From: Kevin Porter [mailto:kevin.porterfastsearch.com] > Subject: [PHP] separate php.ini files > > > Hi, > > I need to build two copies of a website on one machine - one > for development > and one for a backup. I want to be able to use different > php.ini files with > each copy of the site. Can I do this without compiling two Apache/PHP > excutables? ie can it be done with virtual hosting somehow or > by any other > means? > > thanks, > > - Kev >

    attached mail follows:


    > -----Original Message----- > From: Kevin Porter [mailto:kevin.porterfastsearch.com] > Sent: Thursday, March 15, 2001 9:37 AM > To: php-generallists.php.net > Subject: [PHP] separate php.ini files > > > I need to build two copies of a website on one machine - one > for development and one for a backup. I want to be able to use > different php.ini files with each copy of the site. Can I do > this without compiling two Apache/PHP excutables? ie can it be > done with virtual hosting somehow or by any other means?

    You can only have one php.ini for each instance of PHP.

    However

    You can also control the PHP settings for each copy of the site by using php configuration directives in the relevant sections of your httpd.conf.

    ---
    Mark Roedel           | "I know the answer!  The answer lies within the
    Systems Programmer    |  heart of all mankind!  The answer is twelve?!?
    LeTourneau University |  I think I'm in the wrong building."
    Longview, Texas, USA  |           -- Peppermint Patty (Charles Schultz) 
    

    attached mail follows:


    Hello,

    Has anyone run into problems using PHP to access a database (MySQL) and build a form. I am trying to build a form that contains anywhere from 10 to 20 tables. Each table will contain drop down menus, text boxes and text areas. As you may envision, this form can be quite lengthy.

    I populate the form by creating a loop and accessing the MySQL database. Each iteration returns data (24 fields) from a record in my Database table).

    My problem is that after loading the page, my browser appears to lock up and any attempt to run other programs gives me a Windows Low Memory error (and that I should close other programs).

    Note: Third may not be a PHP problem but as I am unsure, I have to start somewhere. Note2: I have already queried the HTML newsgroup and the feedback I received was that large forms should not cause this problem.

    Thanks, Don

    attached mail follows:


    Hey Don,

    I'm sure most of us have experienced problems with PHP and MySQL, but of a programming error, not usually a "bug". Do you have some code you could share? I'm using PHP and MySQL with lots of forms and things are great.

    jack

    Don wrote: > > Hello, > > Has anyone run into problems using PHP to access a database (MySQL) and > build a form. I am trying to build a form that contains anywhere from > 10 to 20 tables. Each table will contain drop down menus, text boxes > and text areas. As you may envision, this form can be quite lengthy. > > I populate the form by creating a loop and accessing the MySQL > database. Each iteration returns data (24 fields) from a record in my > Database table). > > My problem is that after loading the page, my browser appears to lock up > and any attempt to run other programs gives me a Windows Low Memory > error (and that I should close other programs). > > Note: Third may not be a PHP problem but as I am unsure, I have to start > somewhere. > Note2: I have already queried the HTML newsgroup and the feedback I > received was that large forms should not cause this problem. > > Thanks, > Don > > -- > 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:


    Don wrote:

    > Hello, > > Has anyone run into problems using PHP to access a database (MySQL) and > build a form. I am trying to build a form that contains anywhere from > 10 to 20 tables. Each table will contain drop down menus, text boxes > and text areas. As you may envision, this form can be quite lengthy. > > I populate the form by creating a loop and accessing the MySQL > database. Each iteration returns data (24 fields) from a record in my > Database table). > > My problem is that after loading the page, my browser appears to lock up > and any attempt to run other programs gives me a Windows Low Memory > error (and that I should close other programs). > > Note: Third may not be a PHP problem but as I am unsure, I have to start > somewhere. > Note2: I have already queried the HTML newsgroup and the feedback I > received was that large forms should not cause this problem.

    Then I'd have to say that the HTML newsgroup people don't know what they're talking about, because it's quite simple to make a form so large as to cause browser issues/crashes/low memory warnings. Let's see - if you have 32 megs in your system, assume a lot is taken up by the OS and browser itself. So creating a 10 meg form could easily crash your system.

    Not suggesting you have a 10 meg form, but it's hard to know how things are calculated. Just because you have 30k of HTML doesn't mean it takes up 30k in your browser's memory, as it has to create internal structures from your HTML to know how to render stuff, then there's the actual graphic displaying of what your form is.

    We had a client who wanted an inventory form. They have ~200 items - creating a form with all 200 items, each with a pulldown option box with 6 options, was causing problems on Windows machines using Netscape with less than 64 megs of RAM. This was only 6 months ago with Win98 and netscape 4.7, so I think it's safe to say it's definitely possible. (we had to break the form up into their separate product categories - about 7 - so each page only has 20-30 items on it)

    Now, is this what's happening to you? Could be - could you send a URL for others to hit to see if we experience the same problem? If I hit it with 128 megs of RAM with no problem, and you crash with 32 megs, there's your problem. BUT... it might be something more than that.

    attached mail follows:


    > Don wrote: > > > Hello, > > > > Has anyone run into problems using PHP to access a database (MySQL) and > > build a form. I am trying to build a form that contains anywhere from > > 10 to 20 tables. Each table will contain drop down menus, text boxes > > and text areas. As you may envision, this form can be quite lengthy. > > > > I populate the form by creating a loop and accessing the MySQL > > database. Each iteration returns data (24 fields) from a record in my > > Database table). > > > > My problem is that after loading the page, my browser appears to lock up > > and any attempt to run other programs gives me a Windows Low Memory > > error (and that I should close other programs). > > > > Note: Third may not be a PHP problem but as I am unsure, I have to start > > somewhere. > > Note2: I have already queried the HTML newsgroup and the feedback I > > received was that large forms should not cause this problem. > > Then I'd have to say that the HTML newsgroup people don't know > what they're talking about, because it's quite simple to make a form > so large as to cause browser issues/crashes/low memory warnings. > Let's see - if you have 32 megs in your system, assume a lot is taken > up by the OS and browser itself. So creating a 10 meg form > could easily crash your system. > > Not suggesting you have a 10 meg form, but it's hard to know how things > are calculated. Just because you have 30k of HTML doesn't mean it takes > up 30k in your browser's memory, as it has to create internal structures > from your HTML to know how to render stuff, then there's the actual graphic > displaying of what your form is. > > We had a client who wanted an inventory form. They have ~200 items - creating > a form with all 200 items, each with a pulldown option box with 6 options, was > causing problems on Windows machines using Netscape with less than 64 megs of > RAM. This was only 6 months ago with Win98 and netscape 4.7, so I think it's > safe to say it's definitely possible. (we had to break the form up into their > separate product categories - about 7 - so each page only has 20-30 items on > it) > > Now, is this what's happening to you? Could be - could you send a URL for > others to hit to see if we experience the same problem? If I hit it with 128 > megs of RAM with no problem, and you crash with 32 megs, there's your problem. > BUT... it might be something more than that.

    I agree with your analysis. As I've thought about it more, I realize that I have no control over the exact number of tables that will exist in my form and hence, the total number items on the form. Reason being that this is dynamic and based on vales returned from a database.

    Expecting my clients to have the necessary hardware / memory in order to use it is ridiculous. So, I am logically breaking it into two screen, one with the subject of each table linked that the client can 'click'. The other, a generic form that will retrieve values based on the subject clicked on the previous page. I guess you can call it "normalizing" my form.

    By the way, say that each subject link is a numeric string, will my second page have access to that string, i.e., can I pass it as a parameter in my <A HREF=> tag? The first page will be PHP generated while the second will be HTML with a PHP script to access the database and build my form. I have not found any documentation on how to do this on the HTML docs so I was wondering if there is a trick to this.

    Thanks, Don

    attached mail follows:


    Can anyone tell me why the following code returns 0 instead of 3600 seconds?

    <?php $gmttime = gmmktime(1,0,0,1,1,1970); echo "gmttime = $gmttime<br>\n"; ?>

    However, using mktime() for the same date does produce the correct output, which for my timezone (CST) is 25200 seconds. Furthermore, running this on a Linux machine with PHP4 produces the correct result for both cases.

    I'm using the php4.0.5 release from www.php4win.de along with an Apache server on Win2K. I was also seeing this bug in a previous php4 stable release and thought it had been fixed. Perhaps not...

    -david

    attached mail follows:


    Hello,

    This is a sample php code that doesn't work on my workstation.

    <?php $s = eregi_replace ("a(b)c", "A\\1C", "abc"); echo $s; ?>

    The ouptut is "A\1Cbc" instead of "AbC".

    Debian Gnu/Linux 2.2 Apache 1.3.14 php 3.0.18 (apache module)

    Thanks for your help.

    -- 
    Alain FORCIOLI
    Risc Technology		mailto:alain.forciolirisc.fr	http://www.risc.fr/
    APRIL			mailto:aforcioliapril.org	http://www.april.org/
    

    attached mail follows:


    Can you set, in your script, where the files are uploaded so that the files can be uploaded into a directory that allows you to do a copy.

    Keith

    On Wed, 14 Mar 2001, Mig wrote:

    > Keith Vance wrote: > > > You should be able to do something using PHP, try looking here, > > http://www.php.net/manual/cs/features.file-upload.php > > I think there is just a communication problem between you and your hosting > > company. They don't allow ftp uploads, but as long as you are doing it > > through http, it should work fine. There is also some good stuff about > > this on http://www.phpbuilder.com. I do it all the time and my hosting > > company couldn't care less, but your's may be different and you may have > > to switch or should switch to someone else if you can't get the http > > upload to work. > > > > Keith > > Hello Keith, thanks very much. Sorry because I forgot explain following: picture files really are uploaded to host server, because I check temp file and they are ok (I check $userfile_temp variable). My problem is: I can't move, copy, rename or anything else other than 'open and read' this file. Whenever I try exec copy commands I receive 'copy command denied for /web/.....'. > You know temp files will be deleted when script terminates, so I die with my pictures in hand. > > Thanks again > > Mig > >

    attached mail follows:


    Kathleen Ballard wrote:

    > Mig, > This is some code I was sent when I needed to display images that were > located outside of the web dir. > > ~~~~~~~~~~ > If you want the images outside the web-tree, your image tag would be more > like this: > > <IMG SRC=display.php3?imagefile=happy.gif> > > Then display.php3 would look not unlike: > > <?php > header("Content-type: image/gif"); > header("Content-length: " . filesize("C:/hide/images/$imagefile")); > //Caching headers here. > //And Content-disposition > //And Content-filename > //and so on. > readfile("C:/hide/images/$imagefile"); > ?>

    Hello Kathleen

    Thanks very much, I checked your idea and must say it works nice .... with files, but when I need pass strings like parameters for PHP program, things become difficult. I will follow your clever idea, because I know it will work, but first need solve two problems (sorry I am newer to PHP and sometimes confused the way PHP treat variables ).

    First problem is: how store content of image file (jpg or gif) into MySql BLOB fields? Mysql update command uses variable='value' to update (or insert) values. Image data has lot of ' " ' and " ' " in between, so I receive 1054 ERROR when trying to pass update image='$image', because $image variable expands before sending data to database.

    Second problem is:

    how to pass later same string $image recovered from MySql to display.php3 program?

    In your example, your are passing file name, a very single string that wouldn't cause any confusion, but when passing display.php3?stream-image=$image things will become hard.

    Probably I will need to reopen Mysql database into display.php3 program and so I would pass only record number to display.php3, letting this program to search again record.

    Anyway, I modified display.php3 program to execute $image = fread(file...) and then echo $image, .... and it works fine.., that's to say, it is just question of string treatment, and really GD library is not necessary.

    Thanks

    Miguel

    attached mail follows:


    For some reason the number of hits value is not getting replaced [after incrementing] into the original counter file.

    any help would be appreciated. here is the code : <?php $cntfile = "count"; // The filename where the number of hits is stored, if there isnt one then make it & put the number 0 in it $rs = fopen ($cntfile, "rw");

    while (!feof($rs)) { $cntr = fgets($rs, 4096); echo "counter now is $cntr"; echo "<br>"; } fclose ($rs); $wr = fopen ($cntfile, "rw"); $cntr+=1; fputs($wr, $cntr);

    echo $cntr; fclose($wr); ?>

    attached mail follows:


    Check out :

    http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1501

    http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1697

    http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1359

    http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1552

    http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1263

    Sincerely

    berber

    Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -----Original Message----- From: Richard Banks [mailto:rbanksearthsat.com] Sent: Thursday, March 15, 2001 6:17 PM To: Php-General Subject: [PHP] newbie problem: Hit counter.

    For some reason the number of hits value is not getting replaced [after incrementing] into the original counter file.

    any help would be appreciated. here is the code : <?php $cntfile = "count"; // The filename where the number of hits is stored, if there isnt one then make it & put the number 0 in it $rs = fopen ($cntfile, "rw");

    while (!feof($rs)) { $cntr = fgets($rs, 4096); echo "counter now is $cntr"; echo "<br>"; } fclose ($rs); $wr = fopen ($cntfile, "rw"); $cntr+=1; fputs($wr, $cntr);

    echo $cntr; fclose($wr); ?>

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


    You could can "forward" posted data the same way if you wanted to. I don't know what you mean by forwarding. But if you had one script that was a form and the action was set to a script called action.php and then you wanted to pass that data to yet another script, you could pass the values in the url or a session variable or hidden fields in another form.

    Keith

    On Thu, 15 Mar 2001, Nick Davies wrote:

    > > How do i forward POST data from a php script. Obviously GET is simple > (just script.php?$QUERY_STRING) but how does it work with post? > > > Thanks. > > Nick. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net > >

    attached mail follows:


    I'm going to use the curl libs. But FYI i was wanting to forward the data again using post.

    On Thu, 15 Mar 2001, Keith Vance wrote:

    > You could can "forward" posted data the same way if you wanted to. I don't > know what you mean by forwarding. But if you had one script that was a > form and the action was set to a script called action.php and then you > wanted to pass that data to yet another script, you could pass the values > in the url or a session variable or hidden fields in another form. > > Keith > > On Thu, 15 Mar 2001, Nick Davies wrote: > > > > > How do i forward POST data from a php script. Obviously GET is simple > > (just script.php?$QUERY_STRING) but how does it work with post? > > > > > > Thanks. > > > > Nick. > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > > For additional commands, e-mail: php-general-helplists.php.net > > To contact the list administrators, e-mail: php-list-adminlists.php.net > > > > > > >

    attached mail follows:


    Is is permissions of the Apache process?

    > Well, no, I'm not sure... I, personally, am a graphic designer that used to > program and somehow got suckered into programming again.. however, the person > in charge of teh server came to this conclusion for us and wether he is righ > or wrong, we have to face the fact that the exact same code to make the system > call used to work and now doesn't. There is no error or warning, and it > happened right around when we sopped running php as a cgi script and started > running it as an apache mod... ::shrug:: so, what he says makes some degree of > sense anyway. >

    attached mail follows:


    Hi everyone, Could any one tell me what is the search engine you always use? Thank.

    Calvin

    attached mail follows:


    Hi (again).

    Is there a simple was to take post data from a form and create a query string out of it?

    Thanks.

    Nick.

    attached mail follows:


    PHPLIB http://phplib.netuse.de/ has a Query class in sql_query.inc which is used in conjunction with the DB_Sql class. It can be used to create dynamic insert and update queries by assuming that global variables exist which map onto a paricular tables field. You basically name the table and it creates the query for you.

    You can also use it to create the select part of your sql queries say to select all the fields from the table, to fill in a form.

    The PEAR library (come with PHP install files) may also have something similiar but I haven't got it at hand to look at.

    -Stewart

    -----Original Message----- From: Nick Davies [mailto:nicksensei.co.uk] Sent: 15 March 2001 16:32 To: php-generallists.php.net Subject: [PHP] POST conversion.

    Hi (again).

    Is there a simple was to take post data from a form and create a query string out of it?

    Thanks.

    Nick.

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

    attached mail follows:


    alot of times when people ask this question they are sking the quesion because they are coding this logically incorrect, Im sure this isnt that case for you though.

    <?php

    function make_args() { global $HTTP_POST_VARS;

    if (isset($HTTP_POST_VARS)) { foreach($HTTP_POST_VARS as $pos=> $val) $args[] = "$pos=$val"; if (isset($args)) return urlencode('?'. implode('&', $args)); } }

    echo " <form method='post' action='$PHP_SELF'> <input type='text' name='form_text' value='". $form_text ."'>

    <input type='submit' name='done' value='Submit'> </form>

    <a href='index.php". make_args() ."'>index</a> ";

    ?>

    -- 
    

    Chris Lee leemediawaveonline.com

    "Nick Davies" <nicksensei.co.uk> wrote in message news:Pine.LNX.4.21.0103151531550.8681-100000server.sensei.co.uk...

    Hi (again).

    Is there a simple was to take post data from a form and create a query string out of it?

    Thanks.

    Nick.

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

    attached mail follows:


    One problem is that you call counter "counter" in one location and call it "counter1" in another location, otherwise, I don't think many things happen successfully inside of square brackets. This problem, and general readability can be enhanced by putting spaces around '=' in your code.

    So,try this, it works for me:

    $counter = 1; $tmp="var".$counter; $arrayname[$tmp] = blah;

    >I have tried things like... > >$counter=1; > >$arrayname[["var".$counter1]]; >$arrayname["var$counter1"]; > >...and variations thereof. Everything I have tried has failed. > >PLEASE can someone help??

    attached mail follows:


    The problem I have it's an entire story. First of all, I will tell you that knows a little more about Linux.

    I created a chat software with couple php scripts. The chat it's using MySQL. I think the chat software is good (not the best one) but first of all is easier to use than what I saw on the net. I still have to do couple major improvments to make, that it will make, definitelly the best chat ever written in php and mysql. I'm so proud about this chat because till now I tested a lot of chat's written in php but not even one is like the one I written.

    The main problem I have with my chat is that after some use of it, the server is going very very slowly. Someone with (256Mb, 800Mhz and just my chat running (Linux also)) told me that the chat is still doing this stuff. The problem he told me about it, it's that the httpd (apache) connections don't close.

    I intend to make this chat free like a bird, and also to be improved by anyone, anyhow but first of all I need to change my chat to work more than 2 days :o).

    Can you put my chat on your server and tell me what exactly it's not working correctly ?

    I attached the rar archive.

    I would like to anyone who will take 30 min. from his time and test my chat, and also I will promise him that I will give every version of it if he will help with his PRECIOUS advice.. :-) PS: in the tables.txt you have the structure of tables. In chat_intern you have to set-up the database name, server etc. (In the future I will create a setup.oho with all the setup infos)

    Yours, Marian Vasile IT Manager Schnecker van Wyk & Pearson www.investments.ro


    • application/x-rar-compressed attachment: chat.rar

    attached mail follows:


    I am looking for good php editors. Currently, i am using PHP coder. It highlights syntax and checks my syntax. It's also executes my PHP codes. Are there any editors like that? I just want a editor that highlights my code and check my syntax.

    regards

    attached mail follows:


    I think this discussion just took place, try searching the mailing list archives for "good php editor"

    Keith

    On Thu, 15 Mar 2001, McShen wrote:

    > I am looking for good php editors. Currently, i am using PHP coder. It > highlights syntax and checks my syntax. It's also executes my PHP codes. Are > there any editors like that? I just want a editor that highlights my code > and check my syntax. > > regards > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net > >

    attached mail follows:


    On Fri, 16 Mar 2001 03:24, McShen wrote: > I am looking for good php editors. Currently, i am using PHP coder. It > highlights syntax and checks my syntax. It's also executes my PHP > codes. Are there any editors like that? I just want a editor that > highlights my code and check my syntax. > > regards

    Here goes the Editors advocacy war _again_ And wasn't this question asked a couple of days ago? And last week? And the week before....

    Check the links page http://au2.php.net/links.php (or your favourite mirror), scroll down to PHP Scripts and Programs and then follow the link

    PHP Editors List A comprehensive list of editors you can use to edit PHP programs

    It would probably be nice if this were in the FAQ - if anybody ever read the FAQ :-)

    -- 
    David Robley                        | WEBMASTER & Mail List Admin
    RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
    AusEinet                            | http://auseinet.flinders.edu.au/
                Flinders University, ADELAIDE, SOUTH AUSTRALIA
    

    attached mail follows:


    It is there a list of most frequently asked questions? It seems that people ask the same questions, again and again, they do not READ THE MANUAL. Yes I have asked 2 stupid questions, but I really did search and I am reading my manuals, the PHP and the book that I bought.

    Also I would like to know if there would be a demand for an experienced mailing list? I am just frustrated by the same 3 questions that pop up about once a day. The rest of the posts are great.

    Rick ########################################################## # Rick St Jean, # rstjeaninternet.look.ca # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ##########################################################

    attached mail follows:


    on 3/15/01 9:04 AM, Rick St Jean at rstjeaninternet.look.ca wrote:

    > Also I would like to know if there would be a demand for an > experienced mailing list? I am just frustrated by the same 3 > questions that pop up about once a day. The rest of the posts > are great. > > Rick

    I once thought a great product for mail lists (would require an admin interface, PHP?) would be a way to put into the list mail signature a random FAQ link.

    Fill that particular FAQ with commonly asked questions and have the FAQ sent out each month to all subscribers. A decent threaded mail reader would make this reasonably easy (notice I did not say *simple*) to administer.

    Example

    -- 
    Need a PHP editor? (http://php.net/common_questions.html?Q=phpeditors)
    

    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

    Example -- Trouble compiling GD? (http://php.net/common_questions.html?Q=gdrequirements)

    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

    -- Dave Goodrich Director of Interface Development Reality Based Learning Company 9521 NE Willows Road, Suite 100 Redmond, WA 98052 Toll Free 1-877-869-6603 ext. 237 Fax (425) 558-5655 davegrblc.com http://www.rblc.com

    attached mail follows:


    askedagain.com/net/org are available.

    on 3/15/01 9:17 AM, RBL at davegrblc.com wrote:

    > I once thought a great product for mail lists (would require an admin > interface, PHP?) would be a way to put into the list mail signature a random > FAQ link. > > Fill that particular FAQ with commonly asked questions and have the FAQ sent > out each month to all subscribers. A decent threaded mail reader would make > this reasonably easy (notice I did not say *simple*) to administer. >

    --
    Dave Goodrich
    Director of Interface Development
    Reality Based Learning Company
    9521 NE Willows Road, Suite 100
    Redmond, WA 98052 
    Toll Free 1-877-869-6603 ext. 237
    Fax (425) 558-5655 
    davegrblc.com 
    http://www.rblc.com
    

    attached mail follows:


    Or what would be more interesting would be some sort of buffer between you and the list, ie: you send an email to the list the listserv picks the 3 best matches to your email from a database of faqs AND/OR the listserv picks the 3 best matches to your email from a database of the list's threads

    and sends these to you in an email. Replying to the email sends your originial query to the list.

    mal

    -----Original Message----- From: RBL [mailto:davegrblc.com] Sent: 15 March 2001 17:17 To: Rick St Jean; php-generallists.php.net Subject: Re: [PHP] FAQ

    on 3/15/01 9:04 AM, Rick St Jean at rstjeaninternet.look.ca wrote:

    > Also I would like to know if there would be a demand for an > experienced mailing list? I am just frustrated by the same 3 > questions that pop up about once a day. The rest of the posts > are great. > > Rick

    I once thought a great product for mail lists (would require an admin interface, PHP?) would be a way to put into the list mail signature a random FAQ link.

    Fill that particular FAQ with commonly asked questions and have the FAQ sent out each month to all subscribers. A decent threaded mail reader would make this reasonably easy (notice I did not say *simple*) to administer.

    Example

    --
    Need a PHP editor? (http://php.net/common_questions.html?Q=phpeditors)
    

    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

    Example -- Trouble compiling GD? (http://php.net/common_questions.html?Q=gdrequirements)

    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

    -- Dave Goodrich Director of Interface Development Reality Based Learning Company 9521 NE Willows Road, Suite 100 Redmond, WA 98052 Toll Free 1-877-869-6603 ext. 237 Fax (425) 558-5655 davegrblc.com http://www.rblc.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'd just like to offset my other email by saying that a faq is often no substitute for the knowledge and experience of this list's members. In a strange way, the 'dumb' question this list gets proves the a faq can not be expected to know the right way to answer a query. A list member out there just might know _exactly_ what you need to solve your problem.

    mal

    -----Original Message----- From: RBL [mailto:davegrblc.com] Sent: 15 March 2001 17:17 To: Rick St Jean; php-generallists.php.net Subject: Re: [PHP] FAQ

    on 3/15/01 9:04 AM, Rick St Jean at rstjeaninternet.look.ca wrote:

    > Also I would like to know if there would be a demand for an > experienced mailing list? I am just frustrated by the same 3 > questions that pop up about once a day. The rest of the posts > are great. > > Rick

    I once thought a great product for mail lists (would require an admin interface, PHP?) would be a way to put into the list mail signature a random FAQ link.

    Fill that particular FAQ with commonly asked questions and have the FAQ sent out each month to all subscribers. A decent threaded mail reader would make this reasonably easy (notice I did not say *simple*) to administer.

    Example

    --
    Need a PHP editor? (http://php.net/common_questions.html?Q=phpeditors)
    

    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

    Example -- Trouble compiling GD? (http://php.net/common_questions.html?Q=gdrequirements)

    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

    -- Dave Goodrich Director of Interface Development Reality Based Learning Company 9521 NE Willows Road, Suite 100 Redmond, WA 98052 Toll Free 1-877-869-6603 ext. 237 Fax (425) 558-5655 davegrblc.com http://www.rblc.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:


    Cool idea,

    I am going to add that to the spec for the mailing list program we are working on. it is relatively simple if you put it there when you are planning the app.

    At 09:17 AM 3/15/01 -0800, RBL wrote: >on 3/15/01 9:04 AM, Rick St Jean at rstjeaninternet.look.ca wrote: > > > Also I would like to know if there would be a demand for an > > experienced mailing list? I am just frustrated by the same 3 > > questions that pop up about once a day. The rest of the posts > > are great. > > > > Rick > >I once thought a great product for mail lists (would require an admin >interface, PHP?) would be a way to put into the list mail signature a random >FAQ link. > >Fill that particular FAQ with commonly asked questions and have the FAQ sent >out each month to all subscribers. A decent threaded mail reader would make >this reasonably easy (notice I did not say *simple*) to administer. > > >Example >-- >Need a PHP editor? (http://php.net/common_questions.html?Q=phpeditors) > >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 > >Example >-- >Trouble compiling GD? >(http://php.net/common_questions.html?Q=gdrequirements) > >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 > > >-- >Dave Goodrich >Director of Interface Development >Reality Based Learning Company >9521 NE Willows Road, Suite 100 >Redmond, WA 98052 >Toll Free 1-877-869-6603 ext. 237 >Fax (425) 558-5655 >davegrblc.com >http://www.rblc.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

    ########################################################## # Rick St Jean, # rstjeaninternet.look.ca # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ##########################################################

    attached mail follows:


    people wouldnt use an FAQ, when you see three people ask the exact same question on one single day, you know they dont read the other post, or care. if they wont read the posts on the same day they wont read an FAQ, they keep posting.

    -- 
    

    Chris Lee leemediawaveonline.com

    ""Mal McKay"" <mckaymillyana.com> wrote in message news:FLEGIOODPKNNPJPGNLMMEEGICJAA.mckaymillyana.com... I'd just like to offset my other email by saying that a faq is often no substitute for the knowledge and experience of this list's members. In a strange way, the 'dumb' question this list gets proves the a faq can not be expected to know the right way to answer a query. A list member out there just might know _exactly_ what you need to solve your problem.

    mal

    -----Original Message----- From: RBL [mailto:davegrblc.com] Sent: 15 March 2001 17:17 To: Rick St Jean; php-generallists.php.net Subject: Re: [PHP] FAQ

    on 3/15/01 9:04 AM, Rick St Jean at rstjeaninternet.look.ca wrote:

    > Also I would like to know if there would be a demand for an > experienced mailing list? I am just frustrated by the same 3 > questions that pop up about once a day. The rest of the posts > are great. > > Rick

    I once thought a great product for mail lists (would require an admin interface, PHP?) would be a way to put into the list mail signature a random FAQ link.

    Fill that particular FAQ with commonly asked questions and have the FAQ sent out each month to all subscribers. A decent threaded mail reader would make this reasonably easy (notice I did not say *simple*) to administer.

    Example -- Need a PHP editor? (http://php.net/common_questions.html?Q=phpeditors)

    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

    Example -- Trouble compiling GD? (http://php.net/common_questions.html?Q=gdrequirements)

    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

    -- Dave Goodrich Director of Interface Development Reality Based Learning Company 9521 NE Willows Road, Suite 100 Redmond, WA 98052 Toll Free 1-877-869-6603 ext. 237 Fax (425) 558-5655 davegrblc.com http://www.rblc.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

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


    The problem is that people are lazy or just to stupid to look for stuff. Sometimes yes, we just miss something small or it is under another section. I have done it as recently as tuesday with implode. But this is getting nuts.

    I guess I am frustrated because all the lists I am on are filled with lazy people who whine and want someone else to do all their work for them. PHP is not low level if you need something simple use iHTML. It is the simplest scripting language out there.

    I propose that the first few sentances of the signup message should be...

    READ THE MANUAL BEFORE POSTING!!!!!! READ THE MANUAL BEFORE POSTING!!!!!! READ THE MANUAL BEFORE POSTING!!!!!! if you are confused about this... READ THE MANUAL BEFORE POSTING!!!!!!

    SEARCH THE ARCHIVES / FAQ BEFORE POSTING!!!!! SEARCH THE ARCHIVES / FAQ BEFORE POSTING!!!!! SEARCH THE ARCHIVES / FAQ BEFORE POSTING!!!!! if you doing understand then SEARCH THE ARCHIVES / FAQ BEFORE POSTING!!!!!

    Rick

    At 10:22 AM 3/15/01 -0600, Chris Lee wrote: >people wouldnt use an FAQ, when you see three people ask the exact same >question on one single day, you know they dont read the other post, or >care. if they wont read the posts on the same day they wont read an FAQ, >they keep posting. > > >-- > > Chris Lee > leemediawaveonline.com > > > > >""Mal McKay"" <mckaymillyana.com> wrote in message >news:FLEGIOODPKNNPJPGNLMMEEGICJAA.mckaymillyana.com... >I'd just like to offset my other email by saying that a faq is often no >substitute for the knowledge and experience of this list's members. In a >strange way, the 'dumb' question this list gets proves the a faq can not be >expected to know the right way to answer a query. A list member out there >just might know _exactly_ what you need to solve your problem. > >mal > >-----Original Message----- >From: RBL [mailto:davegrblc.com] >Sent: 15 March 2001 17:17 >To: Rick St Jean; php-generallists.php.net >Subject: Re: [PHP] FAQ > > >on 3/15/01 9:04 AM, Rick St Jean at rstjeaninternet.look.ca wrote: > > > Also I would like to know if there would be a demand for an > > experienced mailing list? I am just frustrated by the same 3 > > questions that pop up about once a day. The rest of the posts > > are great. > > > > Rick > >I once thought a great product for mail lists (would require an admin >interface, PHP?) would be a way to put into the list mail signature a random >FAQ link. > >Fill that particular FAQ with commonly asked questions and have the FAQ sent >out each month to all subscribers. A decent threaded mail reader would make >this reasonably easy (notice I did not say *simple*) to administer. > > >Example >-- >Need a PHP editor? (http://php.net/common_questions.html?Q=phpeditors) > >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 > >Example >-- >Trouble compiling GD? >(http://php.net/common_questions.html?Q=gdrequirements) > >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 > > >-- >Dave Goodrich >Director of Interface Development >Reality Based Learning Company >9521 NE Willows Road, Suite 100 >Redmond, WA 98052 >Toll Free 1-877-869-6603 ext. 237 >Fax (425) 558-5655 >davegrblc.com >http://www.rblc.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 > > >-- >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

    ########################################################## # Rick St Jean, # rstjeaninternet.look.ca # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ##########################################################

    attached mail follows:


    This is _and_ was _and_ ever shall be the state of mailing lists that help people. In the years that I have been on mailing lists, I have never seen a high volume list that wasnt filled with request after request for common knowledge.

    The problem is not stopping people from asking the same manual Q's over and over , it's actually taking/assisting the burden off of the people that answer the Q's.

    Thus we get a moderated list....

    > The problem is that people are lazy or just to stupid to look for stuff. > Sometimes yes, we just miss something small or it is under another section. > I have done it as recently as tuesday with implode. But this is getting nuts. > I guess I am frustrated because all the lists I am on are filled with lazy > people > who whine and want someone else to do all their work for them. PHP is not

    take it easy,

    christopher

    attached mail follows:


    On Thu, Mar 15, 2001 at 01:40:43PM -0500, Rick St Jean wrote:

    > READ THE MANUAL BEFORE POSTING!!!!!! > READ THE MANUAL BEFORE POSTING!!!!!! > READ THE MANUAL BEFORE POSTING!!!!!! > if you are confused about this... READ THE MANUAL BEFORE POSTING!!!!!!

    Which manual? BTW your posting looks like you don't know anything about quoting rules in mailing lists.

    -Egon

    -- 
    http://www.linuxtag.de/
    http://php.net/books.php 
    http://www.concert-band.de/
    http://www.php-buch.de/
    

    attached mail follows:


    On Fri, 16 Mar 2001 03:34, Rick St Jean wrote: > It is there a list of most frequently asked questions? > It seems that people ask the same questions, again and again, > they do not READ THE MANUAL. Yes I have asked 2 stupid > questions, but I really did search and I am reading my manuals, > the PHP and the book that I bought.

    Seems to me that a significant number of questions arise from people who don't have any idea of the concepts behind 'programming', if I may overload that term. 'How do I make a loop work' 'How can I print the numbers 1 to 5'.

    > Also I would like to know if there would be a demand for an > experienced mailing list? I am just frustrated by the same 3 > questions that pop up about once a day. The rest of the posts > are great.

    As has been noted before, there is little purpose in splitting the list like that. If the 'newbies' all go to the 'inexperienced' list, from whence do they gain wisdom? And then the 'newbies' learnn about the 'experienced' list and go there and we're back to square one. :-)

    Check the archives for _extended_ discussion on that topic.

    -- 
    David Robley                        | WEBMASTER & Mail List Admin
    RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
    AusEinet                            | http://auseinet.flinders.edu.au/
                Flinders University, ADELAIDE, SOUTH AUSTRALIA
    

    attached mail follows:


    How many times are people going to complain about no-brainer questions being posted to the list. The fact of the matter is people are going to post things on the list without reading the manual or the FAQ. It goes with the territory. It annoys me too, but there is no good solution for the problem. There is the fact that a lot of people are new and don't really know where to go to find answers. Even if they go to the web site, they still may not know that they need to be looking for information on naming variables with variables or that fopen opens a file or whatever.

    K E I T H V A N C E Software Engineer n-Link Corporation

    On Fri, 16 Mar 2001, David Robley wrote:

    > On Fri, 16 Mar 2001 03:34, Rick St Jean wrote: > > It is there a list of most frequently asked questions? > > It seems that people ask the same questions, again and again, > > they do not READ THE MANUAL. Yes I have asked 2 stupid > > questions, but I really did search and I am reading my manuals, > > the PHP and the book that I bought. > > Seems to me that a significant number of questions arise from people who > don't have any idea of the concepts behind 'programming', if I may > overload that term. 'How do I make a loop work' 'How can I print the > numbers 1 to 5'. > > > Also I would like to know if there would be a demand for an > > experienced mailing list? I am just frustrated by the same 3 > > questions that pop up about once a day. The rest of the posts > > are great. > > As has been noted before, there is little purpose in splitting the list > like that. If the 'newbies' all go to the 'inexperienced' list, from > whence do they gain wisdom? And then the 'newbies' learnn about the > 'experienced' list and go there and we're back to square one. :-) > > Check the archives for _extended_ discussion on that topic. > > > -- > David Robley | WEBMASTER & Mail List Admin > RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ > AusEinet | http://auseinet.flinders.edu.au/ > Flinders University, ADELAIDE, SOUTH AUSTRALIA > > -- > 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:


    Just something I notices... At the bottom of the page there is a link to the mailing list (well, not directly to the list, but anywho): PHP General Mailing List (http://www.php.net/)

    Why not add this aswell: Before posting, check the PHP Generall Mailing List Archive (http://marc.theaimsgroup.com/?l=php-general)

    I like this one better than the manual to search for problems similar to the ones I have...

    // Tobias Talltorp

    "Rick St Jean" <rstjeaninternet.look.ca> wrote in message news:4.3.2.7.0.20010315115911.00dfc340mail.internet.look.ca... > It is there a list of most frequently asked questions? > It seems that people ask the same questions, again and again, > they do not READ THE MANUAL. Yes I have asked 2 stupid > questions, but I really did search and I am reading my manuals, > the PHP and the book that I bought. > > > Also I would like to know if there would be a demand for an > experienced mailing list? I am just frustrated by the same 3 > questions that pop up about once a day. The rest of the posts > are great. > > Rick > ########################################################## > # Rick St Jean, > # rstjeaninternet.look.ca > # President of Design Shark, > # http://www.designshark.com/ > # Quick Contact: http://www.designshark.com/messaging.ihtml > # Tel: 905-684-2952 > ########################################################## > > > -- > 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:


    > How many times are people going to complain about no-brainer questions > being posted to the list. The fact of the matter is people are going to > post things on the list without reading the manual or the FAQ. It goes > with the territory. It annoys me too, but there is no good solution for > the problem. There is the fact that a lot of people are new and don't > really know where to go to find answers. Even if they go to the web site, > they still may not know that they need to be looking for information on > naming variables with variables or that fopen opens a file or whatever. > > K E I T H V A N C E

    I think the argument has less to do with people asking questions about PHP and how it works, and more about people asking basica programming questions without knowing it. Fundamental programming concepts, like the scope of a variable, passing by reference or by value, or even looping are things newbie's simply do not understand. Why? Because they don't know they need to learn the concepts and theories of programming before learning to program. It sounds odd, but that is the way it is.

    People asking questions about how a loop works are not usually asking how a PHP loop works. The same for arrays. They are really saying: "This is the first real programming language I am out to learn, and I don't understand the concept behind a For/Next Loop." This isn't a bad thing, heck, we were all newbies at one point, and in a sense, we are all newbies at something.

    I think the argument is that their are many people who don't want to learn how and why a For/Next Loop works, but instead simply want someone to fix the problem for them. That isn't programming. Programming (and yes, I know, PHP is technically a scripting language, but lets not jump that fence as well) is about trial and error, logic, and creativity, but most importantly, problem solving. Most of the newbies get into PHP expecting a tutorial on every topic. If they can't find a tutorial on how to print out 5 numbers, they expect someone to show them how to do it. They don't try and solve the problem themselves, and that is a problem. I don't mind assisting where I can, however, I don't like rewriting a script for someone when they don't even take the time to try and learn the fundamentals. Most newbies I have met fall into two categories. The majority start out wanting to learn PHP because someone said it was easy to learn, which it is, from a programmers point of view. However, when in the second week of learning their first programming language they can't program that PHP Database Content Management System with Instant Yahoo News Retrival complete with User Database, Forums, and Real Time Foo, they start getting upset and say that PHP sucks. Those same people may also complain because they can't find a tutorial on how to create a Forum Database, and all they can find are tutorials on the basics of Database Design.

    I think this is the real problem. Try to run before they have learned to crawl and walk.

    Jason Lotito www.NewbieNetwork.net Where those who can, teach; and those who can, learn.

    attached mail follows:


    Ye 2001-03-15 20:11 -0800, Jason Lotito skribis:

    (someone) > > How many times are people going to complain about no-brainer questions > > being posted to the list. The fact of the matter is people are going to > > post things on the list without reading the manual or the FAQ. It goes > > with the territory. It annoys me too, but there is no good solution for > > the problem. There is the fact that a lot of people are new and don't

    There is a single solution. Instantly delete the message.

    If you want to flame lamers and delete all followups, that is fine, too.

    What is not fine is to let the response become itself a subject of discussion. (All this is IMHO).

    > > really know where to go to find answers. Even if they go to the web site, > > they still may not know that they need to be looking for information on > > naming variables with variables or that fopen opens a file or whatever.

    That is why it is preferable to simply delete rather than flame. But if they evidently have made nil effort they probably should attract flames.

    It is not your job to educate people who are nowhere near ready to understand the matter but are simply attracted to what is newsy, or reputed to be profitable.

    I recently saw a message from a "Linux Systems Engineer" who had upgraded to the Linux 2.4.2 kernel without a clue about the need to upgrade other software and instead was pleading to the wide world to help him, although the "Changes" file has been in the Linux kernel distribution for years. Don't help idiot imposters.

    There are certain things that people need help on. Typically they are cases where the development has outrun the documentation, or the documentation is very bad, written by and for those who already know the answers. If you have worked out the solution to the problem, please share it. But there is an assumption that you have some kind of obligation to help lamers, that that is what mailing lists and newsgroups are for. It is totally false.

    > > > > K E I T H V A N C E > > I think the argument has less to do with people asking questions about PHP > and how it works, and more about people asking basica programming questions > without knowing it. Fundamental programming concepts, like the scope of a > variable, passing by reference or by value, or even looping are things > newbie's simply do not understand. Why? Because they don't know they need > to learn the concepts and theories of programming before learning to > program. It sounds odd, but that is the way it is. > > People asking questions about how a loop works are not usually asking how a > PHP loop works. The same for arrays. They are really saying: "This is the > first real programming language I am out to learn, and I don't understand > the concept behind a For/Next Loop." This isn't a bad thing, heck, we were > all newbies at one point, and in a sense, we are all newbies at something.

    But we don't decide to waste the time and resources of everyone else to save ourselves the effort of looking into the matter. It is not good enough to say, I am a newbie, and therefore I have the right to waste the time and resources of others, because they were newbies once or are newbies about something. If it is not in the PHP documentation because it is not PHP-specific, ignore the question. If it IS in the PHP documentation, ignore the question.

    It is definitely a bad thing, strategically destructive of the utility of mailing lists and newsgroups, which over the last five years has caused observable degradation of the Internet culture, to help such lamers.

    It is definitely a bad thing to help out people who have never entered the computer section of a bookshop, are not interested in computer programming but want to set up commercial PHP sites.

    It is definitely a bad thing to help out people who cannot learn without a helper and so ask passers-by to, for no fee, teach them highly technical matters, who think you are there waiting to be made a convenience of, that asking questions of strangers on line is a complete substitute for studying the matter.

    It is a long time since I saw a response saying simply, "RTFM". I should be seeing it much, much, much more.

    If I ask a question on line and am ignored, I usually continue to study the matter, and sometimes become embarrassed about having asked such a dumb question. It is actually positively helpful to fail to answer questions. Probably, conversely, if is positively unhelpful to answer questions where the documentation is reasonable, as it certainly is re the separate PHP statements. You are not doing people a favor by becoming their crutch.

    > I think the argument is that their are many people who don't want to learn > how and why a For/Next Loop works, but instead simply want someone to fix > the problem for them. That isn't programming. Programming (and yes, I

    Yes.

    > know, PHP is technically a scripting language, but lets not jump that fence > as well) is about trial and error, logic, and creativity, but most > importantly, problem solving. Most of the newbies get into PHP expecting a > tutorial on every topic. If they can't find a tutorial on how to print out > 5 numbers, they expect someone to show them how to do it. They don't try > and solve the problem themselves, and that is a problem. I don't mind

    Yes.

    > assisting where I can, however, I don't like rewriting a script for someone > when they don't even take the time to try and learn the fundamentals. Most

    Yes.

    > newbies I have met fall into two categories. The majority start out wanting > to learn PHP because someone said it was easy to learn, which it is, from a > programmers point of view. However, when in the second week of learning > their first programming language they can't program that PHP Database > Content Management System with Instant Yahoo News Retrival complete with > User Database, Forums, and Real Time Foo, they start getting upset and say > that PHP sucks. Those same people may also complain because they can't find > a tutorial on how to create a Forum Database, and all they can find are > tutorials on the basics of Database Design.

    Yes. Well put.

    > I think this is the real problem.

    Only if you turn it into a problem. Ignore them.

    Michael Talbot-Wilson

    attached mail follows:


    What is faster for a chat php software ? To use a file for write or to use a MySQL database ?

    Marian Vasile IT Manager Schnecker van Wyk & Pearson www.investments.ro

    attached mail follows:


    I would guess that file access is faster, try it out. write a simple app that will write data to a file, close it, open it write it etc. compare this to same on a db. every computer every server is differnet, test to see what is fast on your system. thats ultimitly the most importnat no? that it runs fast on *your* system not someones in nowheres land.

    A db I think would be easier to access, search, etc. I think personally I would use a db. just for convienince sake. lets say on your chat program a user want to ignore 'updatelee' with a db your looking at a simple select statment, in a file, oi, headache.

    -- 
    

    Chris Lee Mediawaveonline.com

    ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120

    leemediawaveonline.com

    ""Marian Vasile"" <marianinvestments.ro> wrote in message news:NEBBIPDOFNDEMCBEPEHEAEPMGOAA.marianinvestments.ro... What is faster for a chat php software ? To use a file for write or to use a MySQL database ?

    Marian Vasile IT Manager Schnecker van Wyk & Pearson www.investments.ro

    -- 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 were can i have information on how is structured the php C source code, i was poking around but it is very confusing, and lot of files, the things i would like to know is just a simple description on how php reads, parses, and executes php code, when reading from apache or from command line, what functions are called etc, is there any info about it?! or i'll have to dig it out myself?!

    Rui Barreiros Software Developer

    WEBSOLUT - Soluįões Internet Emailto: ruiwebsolut.net Personal Info: http://websolut.net/people/rui.html

    As informaįões contidas neste email são confidenciais e destinam-se apenas ā(s) pessoa(s) a quem foi enviado: http://websolut.net/confidencialidade-responsabilidade.html

    attached mail follows:


    The javascript syntax is

    document.form_name.elements['preq[]'][indx]

    -Stewart

    -----Original Message----- From: Adv. Systems Design [mailto:asd_2000yahoo.com] Sent: 15 March 2001 15:39 To: PHP List Subject: [PHP-DB] validating checkboxes

    Hello all:

    I have to validate that AT LEAST ONE checkbox is checked in a series of checkboxes...the checkboxes all use the name=preq[] so that when I process it, it will go into a php array...the problem is that I want to validate it using javascript and the [] in the object name (preq[]) causes problems in traversing the checkbox values to check if they are =true!!

    Any ideas? Validating on the PHP side is not an option because this page is part of a series of pages and I encounter the dreaded "post operation reload" problem if the user has to hit the back button.

    Thanks

    Luis

    __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/

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

    attached mail follows:


    Hello, PHP-type folks.

    I'm attempting to parse up search parameters from a user-inputted form into something I can build a query with. For example, given the string "\"grizzly bear\" or tiger and carnivorous mammal", I'd like to split it into an array like this:

    array[0] = array("'grizzly bear'", "badger") array[1] = "mammal" array[2] = "carnivorous"

    so that ANDed values (explicitely with "and" keyword or implicitely with whitespace) are separate entries in the main array, with ORed values together in sub-arrays, preserving double-quoted phrases without ANDing them and replacing the double-quotes with single quotes.

    Quite a mess, I know, and I'm getting knowwhere with my limited regular expression experience. Splitting up AND and OR blocks is easy enough with simple strings "owl and screech or pygmy" but this preservation of quoted phrases is killing me. Any help would be appreciated.

    Thanks,

    Justin Smith New Mexico Natural Heritage Program University of New Mexico Department of Biology 167 Castetter Hall Albuquerque, New Mexico 87131 505-277-3822 x226 505-277-3844 (fax) jthsmithunm.edu

    attached mail follows:


    If I have a cookie request in a function, and check the value of a cookie, I get that there is no value, if I check for the value outside of the function, I see the value.

    What should I do to ? ( SAMPLE BELOW )

    function f_check_security() { # $c_uas_time is the cookie I want the value of if(isset($c_uas_time)) { # I tried the above way to just check that it is there, then I tried the below to check the value # if($c_uas_time=="GREEN") { $access="GRANT";

    setcookie("c_uas_time","GREEN",(time()+200),'/','domainname.com',0);

    } else { $access="DENY-GREEN"; }

    return($access); }

    I also tried this below to try and get the value .... echo "HTTP->" . $HTTP_COOKIE_VARS["c_uas_time"];

    I appreciate your time....and look forward to stop banging my head against the wall.... 8^)

    ___________________________________________________________ Jack Sasportas

    attached mail follows:


    just looking at what you said quickly, what about scope? if i can't access something inside a function, its usually because i haven't declared it global...does this not apply to cookies?

    jack

    Jack Sasportas wrote: > > If I have a cookie request in a function, and check the value of a > cookie, I get that there is no value, if I check for the value outside > of the function, I see the value. > > What should I do to ? ( SAMPLE BELOW ) > > function f_check_security() { > # $c_uas_time is the cookie I want the value of > if(isset($c_uas_time)) { > # I tried the above way to just check that it is there, then I tried > the below to check the value > # if($c_uas_time=="GREEN") { > $access="GRANT"; > > setcookie("c_uas_time","GREEN",(time()+200),'/','domainname.com',0); > > } else { > $access="DENY-GREEN"; > } > > return($access); > } > > I also tried this below to try and get the value .... > echo "HTTP->" . $HTTP_COOKIE_VARS["c_uas_time"]; > > I appreciate your time....and look forward to stop banging my head > against the wall.... 8^) > > ___________________________________________________________ > Jack Sasportas > > -- > 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:


    ok, this is what you asked for

    <?php

    function depth() { global $PHP_SELF;

    $count = count_chars($PHP_SELF);

    fo