OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: php-general-digest-helplists.php.net
Date: Tue Aug 21 2001 - 00:18:58 CDT

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

    php-general Digest 21 Aug 2001 05:18:58 -0000 Issue 828

    Topics (messages 63536 through 63621):

    Re: confusing problem w/sessions
            63536 by: Quentin Gillet

    How to download an entire dynamic website?
            63537 by: Josh

    Need "Working..." pop up dialog (repost)
            63538 by: Ray Clouse
            63609 by: Justin French

    Re: force download in IE
            63539 by: David Minor

    Port Scanner
            63540 by: brian ellis
            63557 by: Ben Gollmer

    Re: flash and php
            63541 by: pierre-yves

    basename()
            63542 by: Jeremy Morano
            63560 by: Gerard Samuel

    fwrite????
            63543 by: Brian C. Doyle
            63547 by: Anton Stroganov
            63548 by: Brian C. Doyle

    converting str with \n to one line str??
            63544 by: Jens
            63545 by: Artwithin
            63546 by: Tyler Longren

    How to set a cookie that never expires?
            63549 by: pierre-yves

    Is this a bug?
            63550 by: Ratko
            63552 by: ERISEN, Mehmet Kamil
            63568 by: Mark Roedel

    Re: problems with a netscape post
            63551 by: rpruitt.mid-tn.com

    GoTo URL Function?
            63553 by: RoyW
            63554 by: Jeff Oien
            63555 by: Tyler Longren

    PHP Editors
            63556 by: Boget, Chris

    Re: Adding records to a MySql database
            63558 by: Alfredeen, Johan
            63559 by: Alfredeen, Johan

    session_unregister
            63561 by: Jeremy Morano

    Multi-dimensional array issue
            63562 by: Ken Hopkins

    Host question
            63563 by: Erich Kolb

    INPUT type=file value=????
            63564 by: Al

    Re: ImagePNG problem
            63565 by: Andrew Chase

    HELP with Regular Expressions
            63566 by: Richard Kurth

    Increase field value by 1 problem
            63567 by: HTTP-404

    Help with Encoding/Decoding data for payment Gateways
            63569 by: Brian Tanner

    UPDATE problem
            63570 by: Martin Kampherbeek
            63578 by: Gabe da Silveira

    Re: PHP based auth -----------------
            63571 by: Alex Sofronie

    switch with html
            63572 by: daniel james

    Checking FTP server response
            63573 by: CC Zona
            63575 by: John Meyer
            63584 by: hassan el forkani

    E-commerce
            63574 by: Eugene Yi (InfoSpace Inc)
            63576 by: Jay Paulson

    header function
            63577 by: Jay Paulson
            63579 by: Gabe da Silveira
            63581 by: speedboy

    Credit Card Gateway Recommendations?
            63580 by: Fotwun

    rev-dns resolving
            63582 by: kras

    $PATH_INFO strangeness
            63583 by: Brian Curtis

    Mem and variables
            63585 by: rm

    ADODB?
            63586 by: Jochen Kaechelin

    session timeouts
            63587 by: Nigel_Soon.advanis.ca
            63595 by: Maxim Maletsky
            63596 by: speedboy

    Problems with connections to mySQL
            63588 by: Marc Hanlon

    Re: MYSQL_SOCKET
            63589 by: Jason Murray

    Re: HTTPS w/ header() ?
            63590 by: By Proxy

    how do i remove non html special characters??
            63591 by: sunny AT wde
            63592 by: Jason Murray

    Picking random numbers
            63593 by: Seb Frost
            63594 by: Jason Murray
            63597 by: Maxim Maletsky

    Free PHP runtime Accelerator for Linux available
            63598 by: PHP Accelerator
            63599 by: Daniel Adams
            63601 by: PHP Accelerator
            63605 by: PHP Accelerator
            63618 by: Maxim Maletsky

    Zend Optimizer under Linux Sparc
            63600 by: Robert Schultz

    Re: PHP and the Console
            63602 by: Garth Dahlstrom

    php and flash
            63603 by: Jack
            63607 by: speedboy

    sysvsem extention question
            63604 by: Chris Chabot

    Directory Listing in an Array
            63606 by: Chris Aitken
            63610 by: David Robley
            63614 by: speedboy
            63616 by: Dallas K.

    do not mean to be harsh but I though this is supposed to be nicer community
            63608 by: Jack
            63611 by: Jason Murray
            63615 by: speedboy

    thank you Lawrence
            63612 by: Jack

    my apologise to all member of the list
            63613 by: Jack

    For Immediate Release: Turn Pavement Into Fresh Powder with GhostriderX!
            63617 by: GhostriderX

    Switch case syntax
            63619 by: -:-Doigy-:-
            63620 by: Jason Murray

    "mode" in mkdir()
            63621 by: Raphael Pirker

    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:


    On which platform do you run?

    set display_startup_errors = On
    so that you eventually will see any php initialization problem (like the
    folder where session data is stored being not accessible because of
    permission restrictions...I say that because I ran into this problem)

    to recap, code should be on first page:

    <?php

    session_start(); (not necessary if session_auto_start=1)
    session_register("a");
    $HTTP_SESSION_VARS["a"]="something";

    ?>

    and on second page:

    <?php

    echo "Value of a is: ".$HTTP_SESSION_VARS["a"];

    ?>

    should return:

    Value of a is: something

    -----Message d'origine-----
    De : Gabriele Biondo [mailto:gbiondomac.com]
    Envoyé : lundi 20 août 2001 15:11
    À : phpleatel.com; PHP
    Objet : Re: [PHP] confusing problem w/sessions

    > start your session before sending any html output to browser

    Okay. This solves the problem w/the warnings

    > check that register_globals is on

    It is actually on

    > if not use $HTTP_SESSION_VARS("a") instead to reference your session var
    > assign a value after having initialiazed your var not before
    Done. Nothing changes at all...
    my variables are saved (session_register("a") returns true) but from the
    second page,
    wich code is:
    <?session_start();
    print $HTTP_SESSION_VARS["a"];
    print "<br>$a";
    ?>
    i do not see anything at all...

    more suggestions?

    thanks in advance

    Gabriele

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

    attached mail follows:


    Does anyone know some good programs (or other ways) to download an entire dynamic website?

    Thanks

    attached mail follows:


    I'm trying to get a "working..." informational dialog or window going with my PHP page but I'm not getting anywhere. Here's the situation:

    When the user clicks on a link that has to gunzip a very large file, I want a popup to say "Working..." while the file is uncompressing. Then, when the file is uncompressed, I want the "Working..." popup to close itself and then the parent window to load a new URL (where it will use the uncompressed file).

    I've tried doing this with Javascript and window.open(), but I'm having no luck. Any ideas?

    -- 
    -------------------------------------------------------------------------
    Ray Clouse                         |             Don't fear the penguins.
    Engineer Scientist/Specialist      |              
    Boeing Expendable Launch Vehicles  |  Ray.Clouse AT boeing.com
    Huntington Beach, CA               |  clouse AT rayclouse.org
    

    attached mail follows:


    Ray Clouse wrote:

    > When the user clicks on a link that has to gunzip a very large file, I > want a popup to say "Working..." while the file is uncompressing. > Then, when the file is uncompressed, I want the "Working..." popup to > close itself and then the parent window to load a new URL (where it > will use the uncompressed file). > > I've tried doing this with Javascript and window.open(), but I'm having > no luck. Any ideas?

    Is the uncompressing taking place on the server? or on the local (user) machine? Sounds like it's on the server.

    The problem is, you have no *real* way of knowing how long the de-comp will take (due to other factors, like server/client load, etc etc), so how do you know when to go from "working" to "done".

    So, i'm trying to figure out WHY you're uncompressing a file on the server that will be used by visitors over http.

    Seems wrong to me. Increased server load, more programs, more problems, slower server response time, increased user anger, etc etc.

    Enlighten me as to why, because I may be missing something.

    Justin French

    attached mail follows:


    on 8/20/01 12:07 PM, billbilltron.com wrote:

    This gave the same result: it launches the helper app.

    Please help!!

    Regards. dm

    > Have you tried this? > > header("Content-Type: application/x-octet-stream"); > header("Content-Description: MP3 file"); > > David Minor wrote: > >> Can anybody tell me why this doesn't work in IE? I need to force download >> mp3 files instead of IE5.5 trying to apply a helper app. This code works >> fine for NN. >> >> // detect for MSIE bug >> if (strstr($HTTP_USER_AGENT, "MSIE")) >> $attachment = ""; >> else >> $attachment = " attachment;"; >> >> // stream file to user >> header("Content-Type: application/octet-stream"); >> header("Content-Disposition:$attachment filename=$filename"); >> header("Content-Length: ".filesize($tmp_file)); >> header("Content-Transfer-Encoding: binary"); >> readfile($tmp_file);

    attached mail follows:


    When I use the fsockopen command onto an IP address that does not exist, the page will freeze until it's execution time is up. Right now I have it executing the external ping command and reading the results from that. Does anyone have a better idea using maybe a OS-independent scanner or some code to remove that process?

    Thank Ye Kindly Brian

    attached mail follows:


    Make sure you pass fsockopen() the optional timeout parameter, and that the timeout is less than the maximum script execution time.

    See http://www.php.net/manual/en/function.fsockopen.php

    Ben

    On Monday, August 20, 2001, at 12:49 PM, brian ellis wrote:

    > When I use the fsockopen command onto an IP address that does not > exist, the page will freeze until it's execution time is up. Right now > I have it executing the external ping command and reading the results > from that. Does anyone have a better idea using maybe a OS-independent > scanner or some code to remove that process? > > Thank Ye Kindly > Brian > > -- > 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:


    Hello, what he explained with GetVariable works fine. I just want to add that you do the opposite, sending value to flash via php, by echoing the querystring in a php file and use LoadVariable to read the value and display it in the flash movie.

    py

    ----- Original Message ----- From: "Tribun" <mailtribun.de> To: <php-generallists.php.net> Sent: Monday, August 20, 2001 8:43 AM Subject: [PHP] Re: flash and php

    > Simply user the GetVariable function in Flash. > > The targeting file must be a PHP-File. > > This File should reads out the Informations you want. > > If the requests are also variable, call the file through > GET and add "?query=date" to the filename. > > The file must echo this... > &variable=something&cat=dog& > > Hope you understand my short introduction.. > > MöfG, > Tribun (Patrick Lehnen) > --- > www.mp3o.net > > > "Jack" <jackyactivelifestyle.com> schrieb im Newsbeitrag > news:017701c129a4$6dff2e60$0e00a8c0activelifestyle.com... > I know this issue has been talk a lot already, but can anyone guide me where > can I find information about how to build a dynamic content flash file > driven by database? > Jack > jackyactivelifestyle.com > "Love your enemies, it will drive them nuts" > > > > > -- > 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:


    Hello,

    Can someone please show me how to use basename() correctly? This is what I am doing:

    $file = basename ($path); $file = basename ($path,".php3");

    This is the error I'm gettig:

    Warning: Wrong parameter count for basename() in /home/virtual/ppcu/home/httpd/html/jeremy/stats4.php on line 43

    attached mail follows:


    $file = basename ($path); $file = $file.php3;

    Jeremy Morano wrote: > Hello, > > Can someone please show me how to use basename() correctly? > This is what I am doing: > > $file = basename ($path); > $file = basename ($path,".php3"); > > This is the error I'm gettig: > > Warning: Wrong parameter count for basename() in > /home/virtual/ppcu/home/httpd/html/jeremy/stats4.php on line 43 > > >

    attached mail follows:


    Hello all,

    Is is possible to just append to the end of a file using fwrite??? Currently I am reading the contents for the file into an array then add to the array what I want and rewrite the file from the array... And well that is just silly... How else would I do this??

    attached mail follows:


    when you open the file with fopen(), use the 'a' (writing only) or 'a+' (reading and writing) arguments ie: int fopen ("somefile.txt", "a");

    "... * 'a' - Open for writing only; place the file pointer at the end of the file. If the file does not exist, attempt to create it. * 'a+' - Open for reading and writing; place the file pointer at the end of the file. If the file does not exist, attempt to create it. ..."

    info from http://www.php.net/manual/en/function.fopen.php

    ----- Original Message ----- From: Brian C. Doyle <bcdoylemindspring.com> To: <php-generallists.php.net> Sent: Monday, August 20, 2001 11:06 Subject: [PHP] fwrite????

    > Hello all, > > Is is possible to just append to the end of a file using > fwrite??? Currently I am reading the contents for the file into an array > then add to the array what I want and rewrite the file from the array... > And well that is just silly... How else would I do this?? > > > > -- > 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:


    Thank you for your time

    I did not even look at the fopen... DUH....

    Sorry about not researching properly...

    At 11:14 AM 8/20/01 -0700, Anton Stroganov wrote: >when you open the file with fopen(), use the 'a' (writing only) or 'a+' >(reading and writing) arguments >ie: >int fopen ("somefile.txt", "a"); > >"... >* 'a' - Open for writing only; place the file pointer at the end of the >file. > If the file does not exist, attempt to create it. >* 'a+' - Open for reading and writing; place the file pointer at the end > of the file. If the file does not exist, attempt to create it. >..." > >info from >http://www.php.net/manual/en/function.fopen.php > >----- Original Message ----- >From: Brian C. Doyle <bcdoylemindspring.com> >To: <php-generallists.php.net> >Sent: Monday, August 20, 2001 11:06 >Subject: [PHP] fwrite???? > > > > Hello all, > > > > Is is possible to just append to the end of a file using > > fwrite??? Currently I am reading the contents for the file into an array > > then add to the array what I want and rewrite the file from the array... > > And well that is just silly... How else would I do this?? > > > > > > > > -- > > 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:


    When I use Javascript with PHP i run into one problem. When I get the data i need from the database it often has a lot of <br> and \n (new lines) in it. The <br> are no problem when converting a string to a Javascript string, but the \n are. The string has to be all in one line.

    example: <? $temp = "here I am"; ?>

    <script>var temp = <? echo $temp?> </script>

    This is not working!! But this would :

    <? $temp = "here I am"; ?>

    <script>var temp = '<? echo $temp?>'; </script>

    Can you help me please?

    thanks Jens

    attached mail follows:


    use nl2br() http://www.php.net/nl2br

    or, alternatively, use a regex to strip out the newlines

    hope this helps.

    ----- Original Message ----- From: Jens <niceemail.dk> To: <php-generallists.php.net> Sent: Monday, August 20, 2001 11:15 Subject: [PHP] converting str with \n to one line str??

    > When I use Javascript with PHP i run into one problem. When I get the data i > need from the database it often has a lot of <br> and \n (new lines) in it. > The <br> are no problem when converting a string to a Javascript string, but > the \n are. The string has to be all in one line. > > example: > <? $temp = "here > I > am"; ?> > > <script>var temp = <? echo $temp?> </script> > > This is not working!! But this would : > > <? $temp = "here I am"; ?> > > <script>var temp = '<? echo $temp?>'; </script> > > Can you help me please? > > thanks Jens > > > > > -- > 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 use str_replace().

    --
    Tyler Longren
    Captain Jack Communications
    tylercaptainjack.com
    www.captainjack.com
    

    On Mon, 20 Aug 2001 20:15:54 +0200 "Jens" <niceemail.dk> wrote:

    > When I use Javascript with PHP i run into one problem. When I get the > data i > need from the database it often has a lot of <br> and \n (new lines) in > it. > The <br> are no problem when converting a string to a Javascript string, > but > the \n are. The string has to be all in one line. > > example: > <? $temp = "here > I > am"; ?> > > <script>var temp = <? echo $temp?> </script> > > This is not working!! But this would : > > <? $temp = "here I am"; ?> > > <script>var temp = '<? echo $temp?>'; </script> > > Can you help me please? > > thanks Jens > > > > > -- > 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:


    Hello, I have read http://www.php.net/manual/en/function.setcookie.php and did not find out a quick solution on how to set a cookie that will NEVER expires ?

    py

    attached mail follows:


    Please try this: <? echo "996448234192168122"=="996448234192168125"; ?>

    I get "true" as a result. How's that possible? But if I do: echo "996448234192168122"==="996448234192168125"; then I get "false" as expected.

    php 4.0.6, Debian Potatoe Linux.

    Does this happen only on my computer?

    thanks, ratko

    attached mail follows:


    you are right. <?php if (6448234192168122==6448234192168125) {

    echo 'A' ;

    } else { echo 'B' ; }

    ?>

    I tested with 99644xxx and 964xxxx It printed A. However, if you are down to 644xxx is prints B which is correct. Perhaps a limitation of 16 digits. ????? good catch --- Ratko <ratkoemail.si> wrote: > Please try this: > <? > echo "996448234192168122"=="996448234192168125"; > ?> > > I get "true" as a result. How's that possible? > But if I do: > echo "996448234192168122"==="996448234192168125"; > then I get "false" as expected. > > php 4.0.6, Debian Potatoe Linux. > > Does this happen only on my computer? > > > thanks, > ratko > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > php-general-unsubscribelists.php.net > For additional commands, e-mail: > php-general-helplists.php.net > To contact the list administrators, e-mail: > php-list-adminlists.php.net >

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

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

    attached mail follows:


    > -----Original Message----- > From: Ratko [mailto:ratkoemail.si] > Sent: Monday, August 20, 2001 1:40 PM > To: php-generallists.php.net > Subject: [PHP] Is this a bug? > > > Please try this: > <? > echo "996448234192168122"=="996448234192168125"; > ?> > > I get "true" as a result. How's that possible? > But if I do: > echo "996448234192168122"==="996448234192168125"; > then I get "false" as expected.

    A couple of snippets from the PHP manual:

    http://www.php.net/manual/en/language.types.integer.php: "The size of an integer is platform-dependent, although a maximum value of about two billion is the usual value (that's 32 bits signed)...If you specify a number beyond the bounds of the integer type, it will be interpreted as a float instead"

    ...and...

    http://www.php.net/manual/en/language.types.float.php "The size of a float is platform-dependent, although a maximum of ~1.8e308 with a precision of roughly 14 decimal digits is a common value...Never trust floating number results to the last digit, and never compare floating point numbers for equality. If you really need higher precision, you should use the arbitrary precision math functions or gmp functions instead."

    ---
    Mark Roedel           | "Blessed is he who has learned to laugh
    Systems Programmer    |  at himself, for he shall never cease
    LeTourneau University |  to be entertained."
    Longview, Texas, USA  |                          -- John Powell 
    

    attached mail follows:


    I don't believe that can be it. I have forms working under Netscape 4+ all day with no problems, all unnamed. I would bet it's an html issue related to the editor you're using to create the forms. I'd like to see the html that fails.

    Steve Lawson wrote:

    > Try giving the form a name? > > I normally use something like... > > <FORM NAME="myform" METHOD="post" ACTION="<?=$PHP_SELF?>"> > > Any it works in NS 4+ > > SL > > ----- Original Message ----- > From: "Quentin Gillet" <phpleatel.com> > To: <php-generallists.php.net> > Sent: Sunday, August 19, 2001 10:06 AM > Subject: RE: [PHP] problems with a netscape post > > > I have the same problem, I'm curious to hear what people say about > this.... > > > > -----Message d'origine----- > > De : Ppb1.pair.com [mailto:Ppb1.pair.com] > > Envoyé : dimanche 19 août 2001 16:34 > > À : php-generallists.php.net > > Objet : [PHP] problems with a netscape post > > > > > > Hi, > > > > I am trying to post some form data to a php page that then updates a > > mysql database and echos back to the browser that the data has been > > inputted. Here is the general form of my post;- > > > > <form action="blah.php3" method="post"> > > > > .. form widgets here ..... > > > > <input type="submit" value="blahblah"> > > </form> > > > > this works perfectly with IE and opera, but with netscape 4.* it > > either takes ages for the event to transpire or times out. I am not > > trying to post any files ect, just text field data, 1k max, anyone > > have any ideas what is going wrong? > > > > thanks > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > > For additional commands, e-mail: php-general-helplists.php.net > > To contact the list administrators, e-mail: php-list-adminlists.php.net > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > > For additional commands, e-mail: php-general-helplists.php.net > > To contact the list administrators, e-mail: php-list-adminlists.php.net > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net

    attached mail follows:


    Hi,

    I am sure there is an easy way to do this...

    But when my script is done doing whatever I want it to do - RATHER than print text and all to a page, I want the browser (within the same window) to go to a specific URL

    Can this be done - let's say for example to: http://www.yahoo.com

    Thanks!

    Roy

    attached mail follows:


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

    > Hi, > > I am sure there is an easy way to do this... > > But when my script is done doing whatever I want it to do - RATHER than > print text and all to a page, I want the browser (within the same window) to > go to a specific URL > > Can this be done - let's say for example to: http://www.yahoo.com > > Thanks! > > Roy > > > > > -- > 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:


    header("Location: http://location.com/blah.php");

    --
    Tyler Longren
    Captain Jack Communications
    tylercaptainjack.com
    www.captainjack.com
    

    On Mon, 20 Aug 2001 13:56:25 -0500 "RoyW" <roydallas61nospam.hotmail.com> wrote:

    > Hi, > > I am sure there is an easy way to do this... > > But when my script is done doing whatever I want it to do - RATHER than > print text and all to a page, I want the browser (within the same > window) to > go to a specific URL > > Can this be done - let's say for example to: http://www.yahoo.com > > Thanks! > > Roy > > > > > -- > 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 looking for an editor I can use to code PHP but also has a wysiwyg editor. I know that there is a list of editors on the PHP site but the link

    http://www.itworks.demon.co.uk/phpeditors.htm

    is down. Is there another list somewhere.

    *Please*, only respond to this email if you know of such a list and are informing me of it; do not suggest an editor (unless you do it via private email). Thank you very much!

    Chris

    attached mail follows:


    Read in the mySQL manual at /mysql_manual_split/manual-split/manual_Reference.html#CREATE_TABLE

    etc

    ie.

    CREATE [TEMPORARY] TABLE [IF NOT EXISTS] tbl_name [(create_definition,...)] [table_options] [select_statement]

    ALTER [IGNORE] TABLE tbl_name alter_spec [, alter_spec ...]

    and more ...

    Johan

    -----Original Message----- From: Dave.O [mailto:Dave.Otinyonline.co.uk] Sent: Friday, August 17, 2001 4:17 PM To: php-generallists.php.net Subject: [PHP] Adding records to a MySql database

    I am new to MySql but wanting to use PHP to update and maintain a database. I thought I might use MySql.

    I have installed MySql, and in PHP have created a database called 'mydir'. I am trying to find php functions to add new records/fields to the database, but all I can find are functions to query and get information from a database.

    Can anyone help or point me into the direction.

    Thanks

    Dave

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


    INSERT [LOW_PRIORITY | DELAYED] [IGNORE] [INTO] tbl_name [(col_name,...)] VALUES (expression,...),(...),... or INSERT [LOW_PRIORITY | DELAYED] [IGNORE] [INTO] tbl_name [(col_name,...)] SELECT ... or INSERT [LOW_PRIORITY | DELAYED] [IGNORE] [INTO] tbl_name SET col_name=expression, col_name=expression, ...

    -----Original Message----- From: Dave.O [mailto:Dave.Otinyonline.co.uk] Sent: Friday, August 17, 2001 5:41 PM To: Martín Marqués Cc: php-generallists.php.net Subject: Re: [PHP] Adding records to a MySql database

    I was looking for the command something like mysql_insert or something, just found dba_insert() is this it ?!?

    ----- Original Message ----- From: "Martín Marqués" <martinbugs.unl.edu.ar> To: "Dave.O" <Dave.Otinyonline.co.uk> Cc: <php-generallists.php.net> Sent: Saturday, August 18, 2001 12:23 AM Subject: Re: [PHP] Adding records to a MySql database

    > On Vie 17 Ago 2001 20:14, Dave.O wrote: > > I have read the documentation already. > > > > I am trying to create a directory, which information can be added and > > maintained through a the web browser. I thought that using a MySql > > database would be a good idea rather than writing it all to a file. You > > saying that MySql is a waste of time for this ? > > > > I thought that PHP can be used to add records etc and query databases for > > this > > You said that all you found were functions to query information. Thats all > you need with an SQL database. > The main SQL query commands are: SELECT, UPDATE, DELETE and INSERT. With > those 4 comands you can read, insert and modify (also delete) the information > on your database. > > Hope you understand know. > > Saludos... :-) > > -- > Porqué usar una base de datos relacional cualquiera, > si podés usar PostgreSQL? > ----------------------------------------------------------------- > Martín Marqués | mmarquesunl.edu.ar > Programador, Administrador, DBA | Centro de Telematica > Universidad Nacional > del Litoral > ----------------------------------------------------------------- > > -- > 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:


    Help me!

    I'm working with sessions and having some difficulty. I have my session_register(variable) at the top of page 1 and page 2.

    I use the session_unregister(variable) at the bottom of page 2, everything seems to work fine at this point. The problem is,

    sometimes the user needs to visit page 1 but doesn't nessessaraly have to visit page 2. I've noticed that my variable

    sometimes contains values that are concatenated due to the fact that the user never reached the session_unregister(variable)

    on page 2. What do I do? I can't unregister it at the bottom of page 1 or at the top of page 2 since I need to pass the value

    of that variable to page 2. I tried to use the session_unregister right before the session_register at the top of page 1 but

    that didn't work. The variable was still concatenated. What do I do?

    attached mail follows:


    Hi from a recent PHP convert,

    Having a heck of a time declaring and accessing 2 dimensional info in an array. any input on where to start looking for the answer would be greatly appreciated.

    I want to have a base array of 5 elements. The first 4 elements are variables, and the fifth is an array of 2 elements. seemed harmless enough at the time;)

    Coding conventions suggest access to the first level of elements is: $basearray[base_numerical_offset][$basearray_variable] and this works great for accessing the first 4 elements of the base array.

    Accessing the fifth elements' variables in the next dimension is where it fails for me: $basearray[base_numerical_offset][$subarray][sub_numerical_offset][$subarray_variable]

    The documentation/snippets/samples, etc. have been to no avail; still can't get to elements in the second dimension properly. Attempts to populate the second level array trahses the entire structure.

    I have the following declaration: $out => array($name, $srch, $sel, $case, $qvalues => array($vals, $valtypes); $out is the name of the base array $qvalues is the name of the sub-array under the base array "$out" I need for each $out array to consist of a name, srch, sel, case and then a variable number of qvalues array elements that each have single vals and valtypes elements.

    Use the following snippet to see what happens; it's not what I had hoped to see. I hope I'm just doing something wrong..

    Thanks, Ken. mailto:hoppyaustin.rr.com

    <?

    $out = array($name, $srch, $sel, $case, $qvalues => array($vals, $valtypes)); echo "<pre>"; $out[0][$name] = "free"; $out[1][$name] = "next"; for ($i=0; $i<2; $i++) { echo "<br> OutIndex: ", $i, " Name: ", $out[$i][$name]; }

    $out[0][$srch] = "outfreesrch"; $out[0][$sel] = "outfreesel"; $out[0][$case] = "outfreecase"; $out[0][$qvalues][0][$vals] = "outfreeqval0"; $out[0][$qvalues][0][$valtypes] = "outfreeqtype0"; $out[0][$qvalues][1][$vals] = "outfreeqval1"; $out[0][$qvalues][1][$valtypes] = "outfreeqtype1"; echo "<br>Basearray index : ", 0, "\n"; echo "<br> name : ", $out[0][$name], "\n"; echo "<br> srch : ", $out[0][$srch], "\n"; echo "<br> sel : ", $out[0][$sel], "\n"; echo "<br> case : ", $out[0][$case], "\n"; echo "<br> Subarray index : 0 \n"; echo "<br> vals : ", $out[0][$qvalues][0][$vals], "\n"; echo "<br> valtypes : ", $out[0][$qvalues][0][$valtypes], "\n"; echo "<br> Subarray index : 1 \n"; echo "<br> vals : ", $out[0][$qvalues][1][$vals], "\n"; echo "<br> valtypes : ", $out[0][$qvalues][2][$valtypes], "\n"; echo"<br><br>"; $out[1][$srch] = "outnextsrch"; $out[1][$sel] = "outnextsel"; $out[1][$case] = "outnextcase"; $out[1][$qvalues][0][$vals] = "outnextqval0"; $out[1][$qvalues][0][$valtypes] = "outnextqtype0"; $out[1][$qvalues][1][$vals] = "outnextqval1"; $out[1][$qvalues][1][$valtypes] = "outnextqtype1"; echo "<br>Basearray index : ", 1, "\n"; echo "<br> name : ", $out[1][$name], "\n"; echo "<br> srch : ", $out[1][$srch], "\n"; echo "<br> sel : ", $out[1][$sel], "\n"; echo "<br> case : ", $out[1][$case], "\n"; echo "<br> Subarray index : 0 \n"; echo "<br> vals : ", $out[1][$qvalues][0][$vals], "\n"; echo "<br> valtypes : ", $out[1][$qvalues][0][$valtypes], "\n"; echo "<br> Subarray index : 1 \n"; echo "<br> vals : ", $out[1][$qvalues][1][$vals], "\n"; echo "<br> valtypes : ", $out[1][$qvalues][1][$valtypes], "\n"; echo "</pre>"; ?>

    attached mail follows:


    Just out of curiosity, is there anyone here that is using phpwebhosting.com to host their site? Due to ALL the problems with the DSL in my area, I am thinking about not hosting my own site anymore and phpwebhosting.com seems to be what I need, I am just looking for some input about any problems that anyone may have had before I spend my $9.95 per month

    attached mail follows:


    I realize that this isn't a PHP issue, but I'd like find out they why's/wherefore's of this:

    The W3C HTM 4x spec(s) say that when using the file type on a form input element, "User agents may use the value of the value attribute as the initial file name."

    I can't get Mozilla, Netscape, nor IE to do this. Here's my code:

    <FORM ENCTYPE="multipart/form-data" ACTION=<?=$PHP_SELF?> METHOD="POST">

    Attachment #1: <INPUT NAME="s_attachment" TYPE="file" VALUE="d:\\test.txt">

    <INPUT TYPE="submit" VALUE="Send File"> </FORM>

    The wrapped lines do have a space in front of them.

    Is this an oversight, did I miss something in the docs, or have I done something really stupid?

    -Al

    attached mail follows:


    Make sure you have GD 2.0.1 and PHP 4.0.6 or later for creating true-color PNGs, per the manual:

    http://php.net/manual/en/function.imagecreatetruecolor.php

    -Andy

    > -----Original Message----- > From: Adrian Ciutureanu [mailto:Adrian.Ciutureanusofture.com] > > Is there any way to tell ImagePNG() to create PNG24 images instead of PNG8 > images? Seems that ImageCreateFromPNG() can read PNG24, but ImagePNG() > writes only PNG8.>

    attached mail follows:


    I am having a little problem with Regular Expressions In the function below I am trying to make sure only these characters are being used in the hostname. If the hostname contains letters,digits,periods and minus signs then it is fine and we can let the process continue. If it has underscore signs or slashes or anything else in it I what it to give an error. The problem with my function below is it reject everything. What am I doing wrong?

    if (($hostname) || ($HOSTNAME)) { $hostname= trim($hostname); if ($HOSTNAME) $hostname = trim($HOSTNAME); if (!eregi("^[-a-z0-9-]+(\.[a-z0-9-]+)*$ ", $hostname)) { print_error("your <b>your hostname</b> is invalid"); } $HOSTNAME = $hostname; }

    Best regards, Richard mailto:rkurthpacifier.com

    attached mail follows:


    Hello I have Following code

    function updateHitCounter($id,$PHPSESSID,$type){ $flag=$this->validateSession($PHPSESSID); if($flag==1){ include("admin/config.inc.php"); $connection = mysql_connect("$host","$username","$password"); if ($connection == false){ echo mysql_errno().": ".mysql_error()."<BR>"; exit; } if($type=="out") $query = "select * from sites where id='$id'"; elseif($type=="in") $query = "select * from sites where id='$id'"; $result = mysql_db_query ("$dbase", $query); if ($result){ $numOfRows = mysql_num_rows ($result); $hitsIn= mysql_result ($result, $i, "hitsOut"); $hitsOut= mysql_result ($result, $i, "hitsIn"); }else{ echo mysql_errno().": ".mysql_error()."<BR>"; } if($type=="out"){ $hits=$hitsOut; }else{ $hits=$hitsIn; } $hits++; $query = "UPDATE sites SET hitsOut ='$hits' WHERE id='$id'"; $result = mysql_db_query ("$dbase", $query); if (!$result){ echo mysql_errno().": ".mysql_error()."<BR>"; } mysql_close (); } }

    When I run it i get this error: Warning: Unable to jump to row 0 on MySQL result index 4 in c:\program files\apache group\apache\htdocs\phptopsites\top100.php on line 222

    Guys is there anyway i can avoid it?

    attached mail follows:


    I'm writing a script to post/validate payments to www.clickbank.com .... They provide a method for passing encrypted data to them, and if you get it back on your "thank you" page, you know 100% that the customer has paid. Unfortunately, the validation routines are only available in Perl and C... and unfortunately, I'm not that proficient in either, at least not enough to duplicate it in PHP.

    Could someone tell me what is happening here, and if there is a good way in PHP to duplicate it. I run into this type of thing often with payment processors, and am forced to use less "good" methods....

    sub valid { ### Copyright Keynetics Inc. Patents pending. my($a,$b,$c,$h,$i,$l,$q,$w,$x,$y,$z,s,v);

    ############################### $a='YOUR_SECRET_KEY_GOES_HERE'; ###############################

    $q='&'.substr($ENV{'QUERY_STRING'},0,256); $q=~/\Wseed=(\w+)/; $b=$1; $q=~/\Wcbpop=(\w+)/; $c=$1;

    return 0 unless $a&&$b&&$c;

    $h=0x80000000; $l=0x7fffffff; $q=''; $w=uc "$a $b"; $x=$y=$z=17; v=unpack("C*",$w); $n=1+$#v; for($i=0;$i<256;$i++) { $w=(($x&$l)+($y&$l))^(($x^$y)&$h); $w=($w<<$z)|($w>>(32-$z)); $w=(($w&$l)+$v[$i%$n])^($w&$h); $s[$i&7]+=$w&31; $z=$y&31; $y=$x; $x=$w; }

    for ($i=0;$i<8;$i++) { $q.=substr('0123456789BCDEFGHJKLMNPQRSTVWXYZ',$s[$i]&31,1); }

    return $c eq $q; }

    Any help/pointers to resources would be greatly appreciated. Thanks in advance.

    -Brian Tanner

    attached mail follows:


    Hello,

    I have created a predictionscompetition and some code counts te total score of a match of a person. On the screen it workes, but in de database it goes wrong. Each person gets the total of the last person. There must be something wrong with the update statement. I hope someone can help me.

    Cheers, Martin.

    $number = MYSQL_NUMROWS($result); $i = 0; WHILE ($i < $number): $naam = mysql_result($result,$i,"naam"); $uit_gr = mysql_result($result,$i,"uit_gr"); $uit_te = mysql_result($result,$i,"uit_te"); $ru_gr = mysql_result($result,$i,"ru_gr"); $ru_te = mysql_result($result,$i,"ru_te"); $minuut = mysql_result($result,$i,"minuut"); $toto = mysql_result($result,$i,"toto");

    /* Count everything*/

    $t01 = $u1+$r1+$b1+$m1+$t1; $sqlb = "UPDATE voorspelling1 SET totaal='$t01' WHERE id_voorspelling = '$id_voorspelling'"; $resultb = mysql_query($sqlb); PRINT "$naam $uit_gr $uit_te $u1 $r1 $b1 $m1 $t1 $t01<BR>"; PRINT "$t1<BR>"; $i++; ENDWHILE;

    attached mail follows:


    > I have created a predictionscompetition and some code counts te total score of > a match of a person. > On the screen it workes, but in de database it goes wrong. Each person gets > the total of the last person. There must be something wrong with the update > statement. > I hope someone can help me. > > Cheers, > Martin. > > $number = MYSQL_NUMROWS($result); > $i = 0; > WHILE ($i < $number): > $naam = mysql_result($result,$i,"naam"); > $uit_gr = mysql_result($result,$i,"uit_gr"); > $uit_te = mysql_result($result,$i,"uit_te"); > $ru_gr = mysql_result($result,$i,"ru_gr"); > $ru_te = mysql_result($result,$i,"ru_te"); > $minuut = mysql_result($result,$i,"minuut"); > $toto = mysql_result($result,$i,"toto"); > > /* Count everything*/ > > $t01 = $u1+$r1+$b1+$m1+$t1; > $sqlb = "UPDATE voorspelling1 SET totaal='$t01' WHERE id_voorspelling = > '$id_voorspelling'"; > $resultb = mysql_query($sqlb); > PRINT "$naam $uit_gr $uit_te $u1 $r1 $b1 $m1 $t1 $t01<BR>"; > PRINT "$t1<BR>"; > $i++; > ENDWHILE;

    So $t01 is PRINTed correctly but is incorrect in the database? Check mysql_affected_rows() after the query is run to see if any changes were made to the databse. The only potential problems I see off the top of my head are the single quotes around $t01 and $voorspelling in the query. If either of those are numeric values, then you must omit the single quotes. Hope this helps...

    attached mail follows:


    No, I'm just using PHP_AUTH_USER and PHP_AUTH PW and i am trying to logout... The session_destroy() is not working.

    attached mail follows:


    Hi,

    How do I call on a switch from within an html-embedded page?

    Say I have a large php script that first verifies a login, then allows templates for INSERTING, UPDATING, & DELETING various records-- I need to have separate templates load for each set of steps, but I only have the vaguest of ideas as to how I can activate the CASE required just by using links/submits (the biggest issue being that vars have to pass through various parts). For security reasons, GET isn't really an option.

    Thanks!

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

    attached mail follows:


    To test for a valid http address, I open a socket, pass a HEAD or GET request, and look for a status code in the response headers. What should I send to an FTP server to do a similar test?

    -- 
    CC
    

    attached mail follows:


    At 03:03 PM 8/20/01 -0700, CC Zona wrote: >To test for a valid http address, I open a socket, pass a HEAD or GET >request, and look for a status code in the response headers. What should I >send to an FTP server to do a similar test?

    Why not just try and connect to it?

    attached mail follows:


    if you just want to check for the existence of the server a ping command is sufficient, if you want to have extended info on the server you should connect to it using standard ftp commands(http://www.ualberta.ca/CNS/HELP/filetran/ftp-commands.html) opening a socket and...

    regards

    At 01:19 21/08/01, you wrote: >At 03:03 PM 8/20/01 -0700, CC Zona wrote: >>To test for a valid http address, I open a socket, pass a HEAD or GET >>request, and look for a status code in the response headers. What should I >>send to an FTP server to do a similar test? > >Why not just try and connect to it? > > >-- >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 recommands any company which can build an Internet shopping mall? Thanks.

    attached mail follows:


    you can actually download some php stuff for free.. try phpbuilder.com or phpclass.com there's a lot out there you just have to find it.. :)

    jay

    ----- Original Message ----- From: "Eugene Yi (InfoSpace Inc)" <eugene.yiinfospace.com> To: <php-generallists.php.net> Sent: Monday, August 20, 2001 5:10 PM Subject: [PHP] E-commerce

    > Anyone recommands any company which can build an Internet shopping mall? > Thanks. >

    attached mail follows:


    Hello everyone-

    I have a slight problem.. I'm running php 4.0.6 on RedHat 7.1 and I run my script and it hit's:

    header("Location:index.php");

    well the thing is once it hits that line in my script and just fails, however i don't get any type of parse error the browser just says 404 error page not found... could it be i forgot to add something when i configured and installed php on my machine?

    i'm really losted here cause i can put an echo "blah"; before it or after it and it will print out just fine.. but comment out that echo and have it hit the header() line and i get teh 404 page error.. (and yes i've double and tripled checked that all the files etc are there it's just not doing the header function for some reason)

    Thanks! Jay

    attached mail follows:


    This is a shot in the dark since I've never even done PHP redirection, but did you try using absolute system pathname (eg. /home/httpd/html/index.php), or absolute web address (eg. http://www.yoursite.com/index.php)?

    > From: jpaulsonlbjs.com (Jay Paulson) > Reply-To: "Jay Paulson" <jpaulsonlbjs.com> > Newsgroups: php.general > Date: Mon, 20 Aug 2001 17:29:15 -0500 > To: <php-generallists.php.net> > Subject: header function > > Hello everyone- > > I have a slight problem.. I'm running php 4.0.6 on RedHat 7.1 and I run my > script and it hit's: > > header("Location:index.php"); > > well the thing is once it hits that line in my script and just fails, > however i don't get any type of parse error the browser just says 404 error > page not found... could it be i forgot to add something when i configured > and installed php on my machine? > > i'm really losted here cause i can put an echo "blah"; before it or after it > and it will print out just fine.. but comment out that echo and have it hit > the header() line and i get teh 404 page error.. (and yes i've double and > tripled checked that all the files etc are there it's just not doing the > header function for some reason) > > Thanks! > Jay >

    attached mail follows:


    > > header("Location:index.php");

    header("Location: login.php");

    attached mail follows:


    Ok,

    I know most of you integrate your code into some for of e-commerce to accept credit cards. I want to know what your favorite credit card gateway (authorization) provider is.

    Preferably, I am looking for a gateway that allows you to connect to their server directly through the code, via sockets, as opposed to posting data a URL and receiving the response on another script.

    However, if there is a solution to those types of gateways (that do redirect back to a script after authorization) to get around that and communicate directly with the gateways code from the SSL URL without having to do that redirect BS, that would be great too. I am thinking this could possibly be obtained using CURL from inside the code?

    Basically, let me know what your favorite company is to accept credit cards, as seemless as possible with your PHP code. And, hopefully it isn't any that require the actual browser to send data anywhere else outside my site (i want my code to handle it all behind the scenes).

    Thanks!!!

    attached mail follows:


    Hello.

    Is that possible to resolve dns name and all script don't pause while no rev-dns name is available? [gethostbyaddr()]

    Regards kras

    attached mail follows:


    I'm trying to develop an application that uses "search engine friendly" URLs, by reading everything after test.php as the variables necessary to display the requested dynamic content. I'm encountering the following strange results with $PATH_INFO.

    Scenario 1: Running Apache 1.3.20 (SAPI) on WIN2K with PHP 4.0.6.

    Calling test.php/foo/bar with the contents: <? phpinfo(); ?>

    Produces the result (among everything else): HTTP_SERVER_VARS["PATH_INFO"]: /foo/bar

    However, an <? echo "Path info: $PATH_INFO"; ?> produces an empty result. Same with $HTTP_SERVER_VARS["PATH_INFO"].

    Scenario 2 (a & b): Running a) Apache 1.3.12 on WIN2K w/ PHP 4.0.6 (cgi binary) or b) Apache 1.3.12 on Linux with PHP 4.0.4pl1 (cgi binary)

    Calling test.php/foo/bar with the contents: <? phpinfo(); ?>

    Produces a 500 internal server error.

    Can someone give me some tips for accomplishing this task, or point me in the direction of some good documentation on said subject?

    TIA.

    -- 
    Best regards,
     Brian Curtis
    

    attached mail follows:


    Of late I've been reusing variable in my code, for example.

    $string = "when in the course of human events";

    [ additional lines of code ]

    $string = explode(" ", $string);

    [ additional lines of code ]

    $string=implode("|",$string);

    {more code]

    $string=substr($string,x,y);

    on and on, but string always representing the same data just in a different format or a diffect section of the data.

    odd question, but if variables are stored in memory until the script terminates, that includes old unused variable, isn’t it more efficient, memory wise, to reuse old variables that reference, in effect the same basic data, rather than create new or additional variables

    rm

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

    attached mail follows:


    is there a source for further information connecting to databases with ADODB for PHP4?

    I only know http://php.weblogs.com/ADODB

    --
    WA-P : Jochen Kaechelin
    Programmierung - Beratung - Hosting
    Stuttgarter Strasse 3, D-73033 Göppingen
    Tel. 07161 - 92 95 94, Fax 92 95 98
    

    attached mail follows:


    Hi,

    I'm writing a web survey in php and trying to set session timeouts. I have a main script that starts the session and displays the pages. Is there a way I can make the session timeout if they idle for too long?

    Thanks,

    Nigel

    attached mail follows:


    my favorite way "to session" people is by sticking an MD5 hash string to every browser (except the once having it already) as a cookie valid for the next 32 years or so. Then I log their actions in a database. This way I can practically do any kind of checks as long as user accepts cookies, otherwise I would issue them a static GET variable sticking to every URL.

    So, answering your question: - YES. If you would be sessioning users in the same way as I do, you would be able to log them in a db with a time stamp and check against it on every request - "your own clock is the best clock".

    Besides that, you can also keep setting cookies for a limited amount of time and then check if the variable exists or not (expired and thus not sent) - a silly traditional method, but works.

    Sessions also have their own customizable lifetime. Which works in the exactly same way as cookies do. read on php.net/sessions

    Cheers, Maxim Maletsky

    www.PHPBeginner.com

    -----Original Message----- From: Nigel_Soonadvanis.ca [mailto:Nigel_Soonadvanis.ca] Sent: Tuesday, August 21, 2001 8:53 AM To: php-generallists.php.net Subject: [PHP] session timeouts

    Hi,

    I'm writing a web survey in php and trying to set session timeouts. I have a main script that starts the session and displays the pages. Is there a way I can make the session timeout if they idle for too long?

    Thanks,

    Nigel

    -- 
    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 writing a web survey in php and trying to set session timeouts. I have > a main script that starts the session and displays the pages. Is there a > way I can make the session timeout if they idle for too long?

    Check the php.ini file, it has some settings to set the session timeout.

    Other than that, on each page view I write a variable to a session file so that I know which sessions truely are active. I use the session deletion script from http://database.sf.net to make sure any sessions older than X seconds are removed by the script run through crontab.

    attached mail follows:


    I seem to be having a major problem with Apache 1.3.20 (Win32), PHP 4.0.6 and mySQL server 3.23.33 running on a Windows 98 SE machine.

    I use a single mySQL persistant connection through a globals.php3 file, it doesn't seem to be working as expected though, here is a copy of me NETSTATS and you'll understand:

    ESTABLISHED TCP dell:3306 javascript-of-unknown-origin.netscape.com:1040 ESTABLISHED TCP dell:3306 javascript-of-unknown-origin.netscape.com:1837 ESTABLISHED TCP dell:3306 javascript-of-unknown-origin.netscape.com:1839 ESTABLISHED TCP dell:3306 javascript-of-unknown-origin.netscape.com:1841 ESTABLISHED TCP dell:3306 javascript-of-unknown-origin.netscape.com:1844 ESTABLISHED TCP dell:3306 javascript-of-unknown-origin.netscape.com:1846 ESTABLISHED TCP dell:3306 javascript-of-unknown-origin.netscape.com:1848 ESTABLISHED TCP dell:3306 javascript-of-unknown-origin.netscape.com:2501

    As you can see, there are multiple strange connections to the SQL port. I cant locate whats causing all these connections but I'm certain it has something to do with the persistant connection.

    This leads to a huge burden on my computer and I think it runs out of connections cause every 10 mins or so Apache says it cannot connect to the SQL server and I have to restart the Apache service to get it going.

    Any advice would be very welcome.

    Marc.

    P.s. I am in the process of d/l the latest mySQL but I have little faith in this problem being fixed in it.

    attached mail follows:


    > well i just compiled php again and that still didn't solve > the problem... i guess i just need to keep recompiling php until i > get that variable set to the right thing?

    How about, send us your ./configure line and we might be able to tell what's wrong with it instead of guessing?

    This information is output in the phpInfo() output.

    Jason

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

    attached mail follows:


    I have done something like this. For the site I am working on, the user must log on. At the logon screen I check

    if(getenv("HTTPS")!="on") { header ("Location: https://logon_screen"); }

    every page has an include that checks $HTTPS as part of the sessions and validation. If https!="on" then it kicks you back to the logon screen.

    you could do the same using

    if(getenv("HTTPS")!="on") { header ("Location: https://$SERVER_NAME/$PHP_SELF"); }

    I think

    Don't know if that's what you're after, but it's what I've done and I have a high index of suspicion that it is working...

    Lee

    ----- Original Message ----- From: "Richard Lynch" <ceol-i-e.com> To: <php-generallists.php.net> Sent: Sunday, August 19, 2001 12:50 PM Subject: [PHP] Re: HTTPS w/ header() ?

    > > Is there is a way with PHP (most probably headers) to go HTTPS mode? > > I don't want to specify https://www.myserver.com/secured_page.php > > I just want it normal but in it's header to tell the browser to initiate > an > > HTTPS mode. > > I don't think you can do that... > > You could send a header to do: > > header("Location: https://www.myserver.com/secured_page.php"); > > but pretty much the user will then see the https when the page shows up... > > What's the big picture here? I've got a feeling you've gone down a wrong > path that's making you ask this question... > > -- > WARNING richardzend.com address is an endangered species -- Use > ceol-i-e.com > Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm > Volunteer a little time: http://chatmusic.com/volunteer.htm >

    attached mail follows:


    hi all!

    i'm building a registration system, and i want to strip all funky character map symbols from the username as well. i know strip_tags() gets rid of html, but how do i get rid of them?? :(

    i just want simple a-z, A-Z and 0-9 allowed in the username.

    please help!!

    sunny

    ____________________________________________________________ Do You Yahoo!? Get your free yahoo.co.uk address at http://mail.yahoo.co.uk or your free yahoo.ie address at http://mail.yahoo.ie

    attached mail follows:


    > i'm building a registration system, and i want to strip all funky > character map symbols from the username as well. i know strip_tags() > gets rid of html, but how do i get rid of them?? :( > > i just want simple a-z, A-Z and 0-9 allowed in the username.

    You'll want an ereg_replace:

    // Strip all invalid characters from the username $username = ereg_replace("[^0-9A-Za-z]", "", $username);

    or:

    // Detect invalid characters in the username if (ereg("[^0-9A-Za-z]", $username)) { echo "Username contains invalid characters."; }

    Jason

    attached mail follows:


    OK I want to pick 5 random numbers from 1 to 200. Easy. They must all be different. Not so easy.

    And I don't want to use shuffle because of the comments on php.net about it.

    - seb

    attached mail follows:


    > OK I want to pick 5 random numbers from 1 to 200. Easy. > They must all be different. Not so easy.

    <? srand ((double) microtime() * 1000000); while (count($selectednumbers) < 5) { $randomnumber = rand(1, 200);

    if (!in_array($randomnumber, $selectednumbers)) { $selectednumbers[] = $randomnumber; } }

    //$selectednumbers is now an array with 5 items between 1 and 200. ?>

    This should work well enough to give you the general idea ... sorry if it doesn't, I grabbed some old code and modified it so I didn't embarrass myself too much by posting spaghetti code. :)

    Jason

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

    attached mail follows:


    Jason gave you a better way to do so, but if you want a "readable one", then this code might work for you:

    <?

    function get_rand_array($from=0, $to=0, $keys=0) { $rand = Array(); if(!$keys) Return $rand;

    if($keys>=($to-$from)) { Return $rand; // Doesn't make much sense, does it? }

    while(True) { $tmp_num = rand($from, $to); if($keys>sizeof($rand)) { if(!in_array($tmp_num, $rand)) $rand[] = $tmp_num; } else Break; }

    Return $rand; }

    $random_array = get_rand_array(1, 200, 5);

    echo '<PRE>'; print_r($random_array); echo '</PRE>';

    ?>

    regards, Maxim Maletsky

    www.PHPBeginner.com

    -----Original Message----- From: Seb Frost [mailto:sebraceshoot.com] Sent: Tuesday, August 21, 2001 10:13 AM To: PHP General List Subject: [PHP] Picking random numbers

    OK I want to pick 5 random numbers from 1 to 200. Easy. They must all be different. Not so easy.

    And I don't want to use shuffle because of the comments on php.net about it.

    - seb

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


    All,

    After a frantic week of development and digging into the bowels of the PHP scripting engine, I've produced an initial version of a run time accelerator. This works for Linux only, and the current version was built with RedHat 7.0.1, PHP 4.0.6, and Apache 1.3.12 and 1.3.20. This is a shared library extension to the Zend engine with a one line config entry to the php.ini file to enable it.

    I put together a site this evening with some notes, a few performance indications, and the downloads at http://212.67.208.211 It is currently far from optimal, but it halved the processing time of the index.php file on that site for example so it's working in the right direction :-)

    I started this basically because I wanted it to speed up my own site code, but then thought that every one (well, us Linux users anyway), should be able to have it too. As I say on the site, this may not work 100% reliably yet, and it's only a week old, but now passes all my tests and some complex scripts, so is well on the way.

    I welcome any feedback.

    Nick

    _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

    attached mail follows:


    Is this different from the zend optimizer? - Dan

    On Tue, 21 Aug 2001, PHP Accelerator wrote:

    > All, > > After a frantic week of development and digging into the bowels of the PHP > scripting engine, I've produced an initial version of a run time > accelerator. This works for Linux only, and the current version was built > with RedHat 7.0.1, PHP 4.0.6, and Apache 1.3.12 and 1.3.20. This is a shared > library extension to the Zend engine with a one line config entry to the > php.ini file to enable it. > > I put together a site this evening with some notes, a few performance > indications, and the downloads at http://212.67.208.211 It is currently far > from optimal, but it halved the processing time of the index.php file on > that site for example so it's working in the right direction :-) > > I started this basically because I wanted it to speed up my own site code, > but then thought that every one (well, us Linux users anyway), should be > able to have it too. As I say on the site, this may not work 100% reliably > yet, and it's only a week old, but now passes all my tests and some complex > scripts, so is well on the way. > > I welcome any feedback. > > Nick > > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > >

    -- 
    

    attached mail follows:


    Hi. Yes, it caches the result of compiling scripts and loads the compiled code on subsequent runs, thus bypassing the parsing of source code entirely - unless the source code has changed and the compiled code is stale.

    Nick

    >From: Daniel Adams <dannowpi.edu> >To: PHP Accelerator <php_acceleratorhotmail.com> >CC: <php-generallists.php.net> >Subject: Re: [PHP] Free PHP runtime Accelerator for Linux available >Date: Mon, 20 Aug 2001 22:06:51 -0400 (EDT) > >Is this different from the zend optimizer? > - Dan > >On Tue, 21 Aug 2001, PHP Accelerator wrote: > > > All, > > > > After a frantic week of development and digging into the bowels of the >PHP > > scripting engine, I've produced an initial version of a run time > > accelerator. This works for Linux only, and the current version was >built > > with RedHat 7.0.1, PHP 4.0.6, and Apache 1.3.12 and 1.3.20. This is a >shared > > library extension to the Zend engine with a one line config entry to the > > php.ini file to enable it. > > > > I put together a site this evening with some notes, a few performance > > indications, and the downloads at http://212.67.208.211 It is currently >far > > from optimal, but it halved the processing time of the index.php file on > > that site for example so it's working in the right direction :-) > > > > I started this basically because I wanted it to speed up my own site >code, > > but then thought that every one (well, us Linux users anyway), should be > > able to have it too. As I say on the site, this may not work 100% >reliably > > yet, and it's only a week old, but now passes all my tests and some >complex > > scripts, so is well on the way. > > > > I welcome any feedback. > > > > Nick > > > > > > _________________________________________________________________ > > Get your FREE download of MSN Explorer at >http://explorer.msn.com/intl.asp > > > > > > > >-- > > >-- >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 >

    _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

    attached mail follows:


    Right, and neither is the accelerator at the moment, and it may very well never be, although there's no particular reason for that. But the scripting engine is as it's part of PHP, and that's what I explored in order to write the accelerator.

    And now that I've studied the engine pretty intensely I've a good idea for some of the optimisations that their optimiser is probably having a go at. It's been a few fun, late nigh, and at times intensely frustrating, evenings, but I'm happy with even the sub-optimal current performance gains.

    >From: Daniel Adams <dannowpi.edu> >To: PHP Accelerator <php_acceleratorhotmail.com> >Subject: Re: [PHP] Free PHP runtime Accelerator for Linux available >Date: Mon, 20 Aug 2001 22:34:12 -0400 (EDT) > >Cool. :-) the zend optimizer is not open-source, right? > - Dan > >On Tue, 21 Aug 2001, PHP Accelerator wrote: > > > Hi. Yes, it caches the result of compiling scripts and loads the >compiled > > code on subsequent runs, thus bypassing the parsing of source code >entirely > > - unless the source code has changed and the compiled code is stale. > >

    _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

    attached mail follows:


    Great work, Nick. keep it this way!

    Maxim Maletsky

    -----Original Message----- From: PHP Accelerator [mailto:php_acceleratorhotmail.com] Sent: Tuesday, August 21, 2001 12:00 PM To: dannowpi.edu Cc: php-generallists.php.net Subject: Re: [PHP] Free PHP runtime Accelerator for Linux available

    Right, and neither is the accelerator at the moment, and it may very well never be, although there's no particular reason for that. But the scripting engine is as it's part of PHP, and that's what I explored in order to write the accelerator.

    And now that I've studied the engine pretty intensely I've a good idea for some of the optimisations that their optimiser is probably having a go at. It's been a few fun, late nigh, and at times intensely frustrating, evenings, but I'm happy with even the sub-optimal current performance gains.

    >From: Daniel Adams <dannowpi.edu> >To: PHP Accelerator <php_acceleratorhotmail.com> >Subject: Re: [PHP] Free PHP runtime Accelerator for Linux available >Date: Mon, 20 Aug 2001 22:34:12 -0400 (EDT) > >Cool. :-) the zend optimizer is not open-source, right? > - Dan > >On Tue, 21 Aug 2001, PHP Accelerator wrote: > > > Hi. Yes, it caches the result of compiling scripts and loads the >compiled > > code on subsequent runs, thus bypassing the parsing of source code >entirely > > - unless the source code has changed and the compiled code is stale. > >

    _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

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


    It appears as if the Zend Optimizer is distributed only in binary format. They have versions for Linux on i386 and versions for Solaris running on a Sparc Ultra processor.

    However, I'm running Linux RedHat on a Ultra Sparc processor.

    Is there any way I can install Zend Optimizer?

    Robert Schultz - bertncinter.net

    attached mail follows:


    ('binary' encoding is not supported, stored as-is) Here is a an extract from some code... Note that if you want to read more then one thing from the user, you better not close STDIN, cause you can only open it once. Here's the code it may not work without some fixing... dunno:

    -? php function Readln(&$INPUT){ // $fp = fopen("php://stdin","r"); while (!feof(STDIN)) { $BUFFER = fgetc(STDIN); $INPUT .= $BUFFER; if ($BUFFER == "\n") break; } // fclose($fp); }

    set_time_limit(0); ## Don't time out in interactive console mode.

    define ("STDIN", fopen("php://stdin","r")); ## Make STDIN a global thing.

    While (1) { $UserInput = preg_replace("/\n/","",$UserInput); $UserInput = preg_replace("/\r/","",$UserInput); switch (strtolower($UserInput)) { case "exit": case "quit": echo "goodbye!"; break 2; // exit switch and main loop /* do some other stuff ... */ } Readln($UserInput); } fclose (STDIN);

    ?-

    Northern.CA ===-- http://www.northern.ca Canada's Search Engine

    attached mail follows:


    Hi people Is there anyone know where can I find something to study more about how to make dynamic content in flash using php and mySql? Jack jackyactivelifestyle.com "Love your enemies, it will drive them nuts"

    attached mail follows:


    STOP asking this question again and again.

    attached mail follows:


    I have been playing with the idea of making some application backend services using pcntl (for singaling and fork)+ sysvsem's (for synchronisation).

    However while reading thru the sysvsem source code, i noticed the behaviour of the semaphores in PHP is basicly as a 'lock' (as one would use a file lock w/ flock()). From what i understand from my advanced unix programming book, and the linux man pages, this is not what semaphores are supposed to be (though they can be abused to be so).

    The way one would -expect- semaphores to function on a unix platform is best described in "Linux Programmers Guide" at http://uiarchive.uiuc.edu/mirrors/ftp/ftp.ibiblio.org/pub/Linux/docs/linux-doc-project/programmers-guide/lpg-0.4.pdf (page 46 and on).

    A short sumary would be: a semaphore is a resource counter (not an absolute lock).

    The main this is that a process other then the process that acquired the semaphore can decrease the semaphore count, thus releasing it for another client. Another big difference is that a process can set the semaphore count lower then zero (0 == locked). This sometimes can be usefull for Client / Server synchonisation.

    Example usage for a typical Client / Server program flow using semaphores / signals :

    Server : create sem sem acquire setup envirioment fork children

    Multiple Clients: repeat (wait for sem acquire) { send signal to Server communicate with server, get 'buffer' process buffer }

    Server:

    while (Fill data into buffer) { semaphore release (!); Sleep(infinite or untill time out); }

    -> Sleeps untill interupted by signal (signal send by Client/Child) -> In signal handler: Send 'buffer' to client that acquired semaphore return; will cause the program to go back to main loop, sleep was interupted, so goes to while (fill buffer) again. Also note that the Client -never- calls semaphore release. The server does that once the resource is available again.

    Rinse and Repeat till end of time, or end of data :-) This will distribute the data to be processed over all the different clients (since semaphores guarantee a linear processing of clients, so all clients get there equal share).

    Last, i don't see why the implimentation as exists, requires 3 semaphores. It all seems kinda kludgy and quick-hack for a specific project, and not 'sysv semaphores implimented in php'. (please forgive my rude assumptions)

    Does the maintainer (Tom May) want to work on this, or anyone else? I'd be happy to help out, but my last C coding days are over 6 years behind me, so i don't feel very confident to lead this project.. So any/all help and/or comments would be apreciated.

    Also i noticed a potential security hole in the exisiting source, at line 190 of sysvsem.c it uses

    semget(key, 3, perm|IPC_CREATE);

    However, perm is not zero'd to 7 bits before being used, thus allowing extra flags being added to the call, which presumably is unintentional, since it allows nasty flags to be passed to this call. perm is gotton from arg_perm, which is a lval. What i imagine you 'should' do is zero out all non-relivant bits, basicly AND perm with 0x777. this will clear all bits other then the (file style) permission flags.

    -- Chris Chabot

    Ps. please CC me in replies, since im not subscribed to the php lists.

    attached mail follows:


    Hey all,

    Just something I havent been able to sort out in the archives, but what im wanting to do it this. Do a listing of all files in a directory, and load up an array with each returned filename.

    Am I pissing into a windy pipe dream or is there a simple solution for this ?

    Cheers

    Chris

    --
         Chris Aitken - Administration/Database Designer - IDEAL Internet
      email: chrisideal.net.au  phone: +61 2 4628 8888  fax: +61 2 4628 8890
                  __-----------------------------------------__
                               *** Big Brother ***
    It just shows that the dull will rule the world. And we will be watching it.
    

    attached mail follows:


    On Tue, 21 Aug 2001 12:35, Chris Aitken wrote: > Hey all, > > Just something I havent been able to sort out in the archives, but what > im wanting to do it this. Do a listing of all files in a directory, and > load up an array with each returned filename. > > Am I pissing into a windy pipe dream or is there a simple solution for > this ? > > > > Cheers >

    This, ever so slightly adapted from the example in the docs for readdir, should do what you want

    <?php $handle=opendir(’.’); // replace . with whatever while (false!==($file = readdir($handle))) { if ($file != "." && $file != "..") { echo "$file\n"; $file_ary[] = $file; //The extra bit:-) } } closedir($handle); ?>

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

    "My stereo's half-fixed," said Tom monotonously.

    attached mail follows:


    > Just something I havent been able to sort out in the archives, but what im > wanting to do it this. Do a listing of all files in a directory, and load > up an array with each returned filename.

    $files_dir = "/tmp"; chdir($files_dir); $dir_handle = opendir($files_dir) or die("Unable to open $files_dir"); $files = array(); while ($file = readdir($dir_handle)) { array_push($files, $file); } closedir($dir_handle); sort($files); reset($files); for ($i = 0; $i < count($files); $i++) { echo "$files[$i] <br>"; }

    attached mail follows:


    This is what I use

    file://DIR to start looking in.... $basedir = "C:/Inetpub/wwwroot/_ActiveClientFiles/GLS/portfolio/"; file://working DIR or the dir to change to. $wdir = "web/"; // list of DIRs var $dirlist; $filelist; $add_dir ;

    /*************************************************************************** *********************** // Load Online Directorys **************************************************************************** **********************/ chdir($basedir . $wdir.'online/'); file://open the dir $online=opendir(".");

    while ($files = readdir($online)) { if(is_dir($files) && ( $files !== "." && $files !== ".." ) ) { $online_dir[$files] = $files; file://add files } }

    if(count($online_dir)) file://sort { asort($online_dir); } rewinddir($online); closedir($online);

    ?> ----- Original Message ----- From: "Chris Aitken" <chrisideal.net.au> To: <php-generallists.php.net> Cc: <supportideal.net.au> Sent: Monday, August 20, 2001 8:05 PM Subject: [PHP] Directory Listing in an Array

    > Hey all, > > Just something I havent been able to sort out in the archives, but what im > wanting to do it this. Do a listing of all files in a directory, and load > up an array with each returned filename. > > Am I pissing into a windy pipe dream or is there a simple solution for this ? > > > > Cheers > > > Chris > > > -- > Chris Aitken - Administration/Database Designer - IDEAL Internet > email: chrisideal.net.au phone: +61 2 4628 8888 fax: +61 2 4628 8890 > __-----------------------------------------__ > *** Big Brother *** > It just shows that the dull will rule the world. And we will be watching it. > > > -- > 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 thought this is supposed to be nicer community, anyway, I do not mean to be disturbed but I am really keen to know about this issue and forgive me for not know enough as much as you do, I guess it is my fault then. Well, I will stop this matter now as I do not think this is worth my time on debating about this kind of manner. Jack jackyactivelifestyle.com "Love your enemies, it will drive them nuts" ----- Original Message ----- From: "speedboy" <speedboynomicrosoft.org> To: "Jack" <jackyactivelifestyle.com> Cc: <php-generallists.php.net> Sent: Monday, August 20, 2001 10:11 PM Subject: Re: [PHP] php and flash

    > STOP asking this question again and again. > > > -- > 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 thought this is supposed to be nicer community, anyway, I do not mean to > be disturbed but I am really keen to know about this issue and forgive me > for not know enough as much as you do, I guess it is my fault then. > Well, I will stop this matter now as I do not think this is > worth my time on debating about this kind of manner.

    The response you're replying to was a tad harsh, but this question is becoming a Frequently Asked Question and when it looks like the asker hasn't put in the least effort to do some research on their own (ie, go look at search engines, PHP websites, etc) then people do tend to get annoyed - the list is here for general help and discussion, not to hold people's hands when they don't even try.

    I'd suggest your first stop should be the Manual, since it has entire sections dedicated to Flash, and then you should browse the list archives.

    Jason

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

    attached mail follows:


    "Getting Started with PHP/Ming"

    http://www.phpbuilder.com/columns/suyoto20010809.php3

    attached mail follows:


    Dear Lawrence Thank you very much for this. It is very kind of you. Jack jackyactivelifestyle.com "Love your enemies, it will drive them nuts" ----- Original Message ----- From: <Lawrence.Sheeddfait-maeci.gc.ca> To: <jackyactivelifestyle.com> Sent: Monday, August 20, 2001 10:15 PM Subject: RE: [PHP] php and flash

    > There are a couple of good tutorials on the ming site. > > Ming is a good php library which makes programming flash stuff much easier. > > http://www.opaque.net/ming/tutorial/ > > -----Original Message----- > From: Jack [mailto:jackyactivelifestyle.com] > Sent: August 21, 2001 10:49 PM > To: php-generallists.php.net > Subject: [PHP] php and flash > > > Hi people > Is there anyone know where can I find something to study more about how to > make dynamic content in flash using php and mySql? > Jack > jackyactivelifestyle.com > "Love your enemies, it will drive them nuts" >

    attached mail follows:


    It is my apologise to all member of the list about the question I have been asking about flash. I will make sure to be careful next time. Jack jackyactivelifestyle.com "Love your enemies, it will drive them nuts"

    attached mail follows:


    FOR IMMEDIATE RELEASE Contact: theflowghostriderx.com August 15, 2001 GHOSTRIDERX RIDES FLOWLAB'S DEEP CARVE(tm) ONTO THE INTERNET

    Los Angeles, California USA - Where do you go to buy Flowlab's Deep Carve singularly innovative skateboard (the ride that received the Design Distinction Award from I.D. Magazine)? Well, thanks to the launch of GHOSTRIDERX.COM, all you gotta do is log on, click your mouse a couple of times and the smoothest, most fluid skateboard ride of your life will be jetting its way to your home.

    Brainchild of extreme skater, snowboarder, downhill ski racer, surfer, etc., etc. (you get the idea) Cody Boychuk, GHOSTRIDERX.COM is a full service online dealership. You can check into it for the coolest boards, t-shirts and more. Also, stay hooked in for future contests and GHOSTRIDERX boards that will be posting in the coming months!

    So what are you waiting for? You already know that Flowlab's innovative Deep Carve(tm) boards give you the smoothest ride around. You've already heard that riding it's the closest thing to snowboarding and surfing you can find in a skateboard (and it's not just your buddies trying to make you jealous, either...that's the word from such magazines as International Longboarder, Spin Magazine, Wired and Maxim - check out the press section at the site for more...) And with GHOSTRIDERX.COM making it even easier to get the ride that turns asphalt into fresh powder - you've got no excuses. So log on, click-click, and ride!

    # # #

    For more information about GHOSTRIDERX.COM and Flowlab's Deep Carve DCS42 (suggested retail price $250.00) please log onto GHOSTRIDERX.COM or e-mail us at theflowghostriderx.com.

    attached mail follows:


    Hi Folks,

    In a switch, I have a load of 3 letter prefixes I'm sorting by. They are the truncated first 3 letters of alpha-numeric product codes which gives the category of the product. Some codes start with MB- for instance, and this causes a parsing error. Can I fix this without changing the fact I'm switching on a 3 letter string?

    Cheers

    attached mail follows:


    > Some codes start with MB- for instance, and this causes a > parsing error.

    I don't see how this would cause a parse error? Can you show us an example?

    J

    attached mail follows:


    What does the ending "0700" mean in this line? (please don't refer me to the manual, I read through it...) are these the user-permissions as you specify them in chmod?

    mkdir ("/path/to/my/dir", 0700);