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 Mar 20 2001 - 21:53:22 CST

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

    php-general Digest 21 Mar 2001 03:53:22 -0000 Issue 579

    Topics (messages 44763 through 44866):

    Re: Problems with Linux PHP
            44763 by: Dennis Gearon

    Re: Editing Variables from another script.
            44764 by: Neil Kimber

    Re: how do i get a variable type? - not that simple
            44765 by: Dennis Gearon
            44770 by: Rudolf Visagie
            44771 by: Dennis Gearon

    Re: MS SQL databse connecting
            44766 by: Dennis Gearon

    URGENT! Regarding file manipulation
            44767 by: Nemanja Djuric
            44780 by: Chris Boot

    Couple Questions
            44768 by: acleave
            44784 by: CC Zona
            44808 by: CC Zona

    Anyone interested to build with me a chat software (in php and MySQL)
            44769 by: Marian Vasile
            44774 by: Ashwin Kutty

    PHPLIB cart with back/forward buttons
            44772 by: Dan Troxell

    Re: Booking by Date/Time in mySQL
            44773 by: Thomas Edison Jr.
            44793 by: Jeff Armstrong

    files with html extension
            44775 by: Rick VanNorman
            44778 by: Jack Dempsey
            44790 by: Rick VanNorman
            44791 by: Mark Maggelet
            44792 by: Phillip Bow
            44797 by: Jeff Armstrong
            44802 by: Rick VanNorman
            44817 by: Jeff Oien
            44830 by: Derek Sivers

    Re: General security Question (Databases)
            44776 by: Michael Kimsal

    Re: Script to convert # of seconds to HH:mm
            44777 by: Phillip Bow

    is PHP sftp ready?
            44779 by: Nando2

    Help Socket
            44781 by: ±è¿øÇü

    Objectclass
            44782 by: Thorsten Viel
            44783 by: Neil Kimber

    PHP Web-based server-side mail client
            44785 by: Steven Katz
            44798 by: Rouvas Stathis

    dbase functions still supported?
            44786 by: Don Pro
            44789 by: Jack Dempsey

    Re: phpinfo() doesn't list compiled --with
            44787 by: Christian Reiniger

    Dynamically build a form from mySQL table
            44788 by: Martin E. Koss

    where to learn to make a shopping cart
            44794 by: Jerry Lake
            44795 by: Jerry Lake

    Q: NSAPI support
            44796 by: Joe Rice

    How to convert '2001032018' -> '2001 03 20 18' ? (Fomating Date)
            44799 by: SED
            44800 by: Altunergil, Oktay
            44804 by: Hoover, Josh
            44856 by: Stephan Ahonen

    escaping php syntax within perl
            44801 by: Clayton Dukes

    enum and set possible values
            44803 by: Michael George
            44815 by: CC Zona

    PHP/Perl/CGI Question
            44805 by: Clayton Dukes
            44811 by: Clayton Dukes

    Attachment problem with web based mail
            44806 by: lists.bootheel.net

    mail() question
            44807 by: Wade DeWerff
            44809 by: Altunergil, Oktay
            44810 by: Clayton Dukes
            44812 by: CC Zona
            44813 by: Altunergil, Oktay

    Setting up mail() for WinXX
            44814 by: Todd Cary

    ...And removing one line only?
            44816 by: Richard
            44859 by: David Robley

    How do I check a php3 file.
            44818 by: Bill Mitcheson
            44853 by: David Robley

    Re: Putting php at end of html?
            44819 by: Boget, Chris

    What does a ? do
            44820 by: Brandon Orther
            44822 by: Boget, Chris
            44825 by: Rick St Jean
            44826 by: Altunergil, Oktay

    dialtoneinternet experience???
            44821 by: Tobe Johnson

    parse error inside comment????
            44823 by: Jaxon
            44828 by: Johnson, Kirk
            44829 by: andrew

    Catch timeouts
            44824 by: CC Zona
            44827 by: CC Zona

    Create a Bulletin Board
            44831 by: Jimmy Bäckström
            44832 by: Boget, Chris
            44835 by: Kath
            44836 by: Boget, Chris
            44839 by: Kath
            44840 by: Yoshi Melrose
            44843 by: James Atkinson
            44844 by: Yoshi Melrose
            44845 by: Richard
            44847 by: James Atkinson
            44849 by: Richard

    eregi not working???
            44833 by: Clayton Dukes
            44851 by: David Robley

    load DB from other server
            44834 by: McShen
            44837 by: Peter Houchin

    Can I run a php3 file?
            44838 by: Bill Mitcheson
            44841 by: Henrik Hansen

    time & session info
            44842 by: Peter Houchin
            44858 by: Chris Lee

    Comparing two dates.. Which is the older one?
            44846 by: Richard
            44848 by: Phillip Bow
            44850 by: Richard
            44852 by: Phillip Bow
            44854 by: Richard

    email an ms-word attachment (please)
            44855 by: Jen Hall

    Re: Problems connecting to remote mySQL server
            44857 by: Floyd Piedad

    Please Critique My Tutorial
            44860 by: Jeff Oien

    Cache bypass
            44861 by: Barry Russell

    A NETWORK MARKETER?
            44862 by: timmyralley8627.juno.com
            44864 by: Matt Stone

    Re: Cookies
            44863 by: Nuno Silva

    Cache
            44865 by: Matt Stone
            44866 by: Tyrone Mills

    Administrivia:

    To subscribe to the digest, e-mail:
            php-general-digest-subscribelists.php.net

    To unsubscribe from the digest, e-mail:
            php-general-digest-unsubscribelists.php.net

    To post to the list, e-mail:
            php-generallists.php.net

    ----------------------------------------------------------------------

    attached mail follows:


    try 'chmod 0700 session', as I believe it's octal in linux.

    attached mail follows:


    Gotya. The why not limit your include file to only contain those values that
    are important to you. So you get something like:

    varsdatabase.inc

    $dbhost="xxxxx";
    $dbuser="yyyyy";
    $dbpass="zzzzz";

    Then, in your PHP code you just rewrite this simple file. That way you don't
    have to worry about parsing files etc... Just delete the existing
    varsdatabase.inc and build a new one from scratch. It's no longer difficult
    because it's only 3 lines long.

    > > > $dbhost='localhost';

    -----Original Message-----
    From: techzeuspacific.net.sg [mailto:techzeuspacific.net.sg]
    Sent: 20 March 2001 14:26
    To: Neil Kimber; Stewart Taylor; php-generallists.php.net
    Subject: Re: [PHP] Editing Variables from another script.

    Basically, thats not what I'm going to do.

    I'm making an administrative script such that admins can change the location
    and values of the $dbhost, $dbuser, $dbpass in the database.inc with just a
    form.

    Kinda tough eh ?

    ----- Original Message -----
    From: "Neil Kimber" <neil.kimberflytxt.com>
    To: <techzeuspacific.net.sg>; "Stewart Taylor"
    <Stewart.Tayloruk.thalesgroup.com>; <php-generallists.php.net>
    Sent: Tuesday, March 20, 2001 10:25 PM
    Subject: RE: [PHP] Editing Variables from another script.

    > It depends upon what your overall aim actually is.
    >
    > If you want a different value depending upon where this file is being used
    > in your site, then you should probably just set the value accordingly in
    > that part of the site.
    > i.e.
    > > > include "database.inc"
    > > > .
    > > > .
    > > > .
    > > > .
    > > > $dbhost='localhost';
    >
    > If you want a different value in the same place based upon a different
    > 'user' or other criteria, then you should probably write some logic to
    > handle the situation.
    > i.e.
    >
    > include "database.inc";
    >
    > if (MYCRITERIA)
    > {
    > $dbhost='localhost';
    > }
    >
    > The only reason that I can think of for you wanting to change the physical
    > file would be if you are writing some code to generate a release for
    > different users. In which case, you'll probably want to build a parser and
    > use some kind of templating system.
    >
    > Neil
    >
    > -----Original Message-----
    > From: techzeuspacific.net.sg [mailto:techzeuspacific.net.sg]
    > Sent: 20 March 2001 14:08
    > To: Neil Kimber; Stewart Taylor; php-generallists.php.net
    > Subject: Re: [PHP] Editing Variables from another script.
    >
    >
    > What other ways might there be ?
    >
    >
    > ----- Original Message -----
    > From: "Neil Kimber" <neil.kimberflytxt.com>
    > To: <techzeuspacific.net.sg>; "Stewart Taylor"
    > <Stewart.Tayloruk.thalesgroup.com>; <php-generallists.php.net>
    > Sent: Tuesday, March 20, 2001 6:10 PM
    > Subject: RE: [PHP] Editing Variables from another script.
    >
    >
    > > Do you mean that you want to alter the physical contents of
    > 'database.inc'?
    > > This would require you parsing the existing file yourself, writing a new
    > > version of the file, altering the relevant line of code, removing the
    > > original file and renaming your new file to the original filename.
    > >
    > > This isn't a good approach, are you sure there isn't a different way for
    > you
    > > acheive your aims?
    > >
    > > -----Original Message-----
    > > From: techzeuspacific.net.sg [mailto:techzeuspacific.net.sg]
    > > Sent: 20 March 2001 10:02
    > > To: Stewart Taylor; php-generallists.php.net
    > > Subject: Re: [PHP] Editing Variables from another script.
    > >
    > >
    > > I think you didn't get what I meant,
    > >
    > > I need a script such that I can change the content of database.inc from
    an
    > > external script (form or whatever)
    > >
    > >
    > > ----- Original Message -----
    > > From: "Stewart Taylor" <Stewart.Tayloruk.thalesgroup.com>
    > > To: <techzeuspacific.net.sg>; <php-generallists.php.net>
    > > Sent: Tuesday, March 20, 2001 5:57 PM
    > > Subject: RE: [PHP] Editing Variables from another script.
    > >
    > >
    > > >
    > > >
    > > > include "database.inc"
    > > > .
    > > > .
    > > > .
    > > > .
    > > > $dbhost='localhost';
    > > >
    > > >
    > > >
    > > > -Stewart
    > > >
    > > > -----Original Message-----
    > > > From: techzeuspacific.net.sg [mailto:techzeuspacific.net.sg]
    > > > Sent: 20 March 2001 09:26
    > > > To: Jason Stechschulte
    > > > Cc: 'PHP General List. (E-mail)'
    > > > Subject: Re: [PHP] Editing Variables from another script.
    > > >
    > > >
    > > > Okay, basically,
    > > >
    > > > I'm trying to create a script such that it will change the variables
    > > inside
    > > > of my .inc page.
    > > >
    > > > Something like
    > > >
    > > > lets say I have this file called "database.inc"
    > > > Inside it I have :
    > > >
    > > > $dbhost = 'blah'
    > > > $dbuser= 'blah'
    > > > $dbpass= 'blah'
    > > >
    > > > I would like to make a script such that I can modify the $variables
    into
    > > > something else like, $dbhost into localhost.
    > > >
    > > > How can it be done?
    > > > ----- Original Message -----
    > > > From: "Jason Stechschulte" <jpstechunoh.edu>
    > > > To: <techzeuspacific.net.sg>
    > > > Cc: "'PHP General List. (E-mail)'" <php-generallists.php.net>
    > > > Sent: Monday, March 19, 2001 11:03 PM
    > > > Subject: Re: [PHP] Editing Variables from another script.
    > > >
    > > >
    > > > > On Sun, Mar 18, 2001 at 01:06:34PM +0800, techzeuspacific.net.sg
    > wrote:
    > > > >
    > > > > > I'm trying to create a form whereby I can edit the variables with
    > just
    > > > the form.
    > > > > >
    > > > > > It will be something like a form for me to change the database
    > > > details(username,server,password) in a .inc I'm using.
    > > > > >
    > > > > > Is there anyway for me to pass information into another file's
    > > variable
    > > > and have it saved in there?
    > > > > >
    > > > > > If anyone have seen Newspro (CGI) before, when you edit some parts
    > in
    > > a
    > > > form, the information will be saved. How can it be done in PHP?
    > > > >
    > > > > There is probably a hundred or more ways this can be done. For me
    to
    > be
    > > > > able to give you specifics, you will have to be more specific with
    > what
    > > > > you are doing and what you have tried.
    > > > >
    > > > > --
    > > > > Jason Stechschulte
    > > > > jpstechunoh.edu
    > > > > --
    > > > > Well, I think Perl should run faster than C. :-)
    > > > > -- Larry Wall in <199801200306.TAA11638wall.org>
    > > > >
    > > > > --
    > > > > 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
    > > >
    > > >
    > >
    > >
    > > --
    > > 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:


    I discovered the same thing, that all values from text fields ARE
    text, i.e. strings. Also, that an empty field IS set upon return,
    soooooooo...........

    To check for empty field, check for empty STRING equivalence:
            if ( $input_var_from_form == "" ){
                    Do something because filed is empty;
            } else {
                    Do something because filed has a value;
            }

    To make a 'safe' casting from the input string to an int, I test
            for the above test in combination with requiring the first
            char in the field to be a number. I wasn't worried that
            they all were numbers. This comes to .....

            if ( $input_var_from_form == "" || ! egrep( "^[0-9]",
    $input_var_from_form ){
                    Do something because not an int;
            } else {
                    $input_var_from_form = (int) $input_var_from_form;
                    Do something because it IS an in;
            }

    I'm sure there's similar things that could be done for a float, or if an
    object
    was being filled by a set of form fields, all the fields would be tested
    the
    same way as the object filled itself.

    Dennis Gearon

    attached mail follows:


    Under some conditions (I haven't determined which)
     if ($input_var_from_form == "")
    doesn't work, but
     if (strlen($input_var_from_form) == 0)
    does.

    Rudolf Visagie
    rudolfqedi.co.za

    -----Original Message-----
    From: Dennis Gearon [mailto:gearondOIT.EDU]
    Sent: 20 March 2001 06:24
    To: php-generallists.php.net
    Subject: RE: [PHP] how do i get a variable type? - not that simple

    I discovered the same thing, that all values from text fields ARE
    text, i.e. strings. Also, that an empty field IS set upon return,
    soooooooo...........

    To check for empty field, check for empty STRING equivalence:
            if ( $input_var_from_form == "" ){
                    Do something because filed is empty;
            } else {
                    Do something because filed has a value;
            }

    To make a 'safe' casting from the input string to an int, I test
            for the above test in combination with requiring the first
            char in the field to be a number. I wasn't worried that
            they all were numbers. This comes to .....

            if ( $input_var_from_form == "" || ! egrep( "^[0-9]",
    $input_var_from_form ){
                    Do something because not an int;
            } else {
                    $input_var_from_form = (int) $input_var_from_form;
                    Do something because it IS an in;
            }

    I'm sure there's similar things that could be done for a float, or if an
    object
    was being filled by a set of form fields, all the fields would be tested
    the
    same way as the object filled itself.

    Dennis Gearon

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


    Very interesting! I'd think it would be a bug if it did work that way.

    attached mail follows:


    Michael Kimsa wrote: >What am I missing?

    What you are missing, Michael, is that ODBC is for access to a proprietary, commercial product from a monopolist megalith.

    To use ODBC, on is accessing (pun intended) a non open source database, i.e., you gots to pay M$. This means for someone to write an open source library, they are aiming it at people who are trying to AVOID paying for M$ products OR use products where the technical support leaves a lot to be desired and there's no control over problems in the product. Pretty incompatible.

    Which is not to say someone wouldn't do it, there's always a NEED for that in individual cases like yours, but there's not much of a MARKET, I would guess.

    Dennis Gearon.

    attached mail follows:


    Hi!

    What is the best way to delete line from a file?

    I want to delete line which is located somewhere in the middle of the .txt file. I dont want to leave blank line.

    10x Nemanja

    attached mail follows:


    Hi,

    > What is the best way to delete line from a file? > > I want to delete line which is located somewhere in the middle of the > .txt file. > I dont want to leave blank line.

    Well, pretty much the only way to do that is to copy the data line by line to another file, skipping the unwanted line. Then, replace the old file with the new. Slow, but it works.

    -- 
        .-.         Chris Boot
        /v\      bootcworldnet.fr
       // \\
      /(   )\    L   I   N   U   X
       ^^-^^    >Phear the Penguin<
    

    attached mail follows:


    I'm new to this list (and relatively new to PHP) so if I'm failing in some point of list ettiquette, please excuse me. I have two questions:

    1) How do I return multiple data types at once from a function? For instance I might want to return 5, "apple", and true (an int, a string, and a boolean) all at once from a function.

    2) How does the predefined variable $HTTP_REFERER work with forms? I know the documentation says that it doesn't work with all browsers as the browser has the actual info but I tested it with IE 5 and NS 4.7 and it worked perfectly (for me). My real concern is could it be fooled in a simple manner or even turned off by selecting different settings in either of those two browsers? Or would it require a dedicated cracker and/or someone writing their own browser to give a false report (vs. no report at all)?

    Was I even clear on what I want to know? :)

    Thanks. Allan

    attached mail follows:


    In article <3ABB68B4WebMail.uark.edu>, acleavemail.uark.edu (acleave) wrote:

    > 1) How do I return multiple data types at once from a function? For > instance > I might want to return 5, "apple", and true (an int, a string, and a boolean) > all at once from a function.

    return array(5, "apple", TRUE);

    > 2) How does the predefined variable $HTTP_REFERER work with forms? I know > the documentation says that it doesn't work with all browsers as the browser > has the actual info but I tested it with IE 5 and NS 4.7 and it worked > perfectly (for me). My real concern is could it be fooled in a simple manner > or even turned off by selecting different settings in either of those two > browsers? Or would it require a dedicated cracker and/or someone writing > their own browser to give a false report (vs. no report at all)?

    IE and NS aren't the only browsers in use today. I know iCab allows the user to disable sending of HTTP_REFERER. I believe Opera may too. I'm not sure about the capabilities of Konqueror and Lynx in this regard. Also, AFAIK, no browser will send an HTTP_REFERER where the url request was typed/pasted in directly by the user, or where the request came via a bookmark. Most of the robots which visit my sites also don't leave an HTTP_REFERER. So there are some common examples of "no report".

    And while I haven't actually tried this, I assume that anyone could write their own HTTP_REFERER simply by using fsockopen(). Thanks to PHP's ease of use, using fsockopen does not require one to have the skills of a "dedicated cracker".

    (Relying on HTTP_REFERER for any security-related check is generally considered a Bad Idea.)

    -- 
    CC
    

    attached mail follows:


    In article <9984hb$c4e$1toye.p.sourceforge.net>, cczonanospam.invalid (CC Zona) wrote:

    > And while I haven't actually tried this, I assume that anyone could write > their own HTTP_REFERER simply by using fsockopen(). Thanks to PHP's ease > of use, using fsockopen does not require one to have the skills of a > "dedicated cracker".

    Err, obviously I meant fwrite().

    -- 
    CC
    

    attached mail follows:


    I want to create a free php and MySQL chat.

    Anyone interested in this project ?

    attached mail follows:


    PHPProjeckt at the following URL has not only a chat utility but a whole lot others built in, maybe you should look into it..

    http://www.phprojekt.de/en/

    On Tue, 20 Mar 2001, Marian Vasile wrote:

    > I want to create a free php and MySQL chat. > > Anyone interested in this project ? > > > > -- > 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 > >

    ---
    Ashwin
    kutty..
    Systems Administrator
    Dalhousie University Libraries
    (902) 494-2694
    

    attached mail follows:


    Hi,

    I've built a shopping cart using PHPLIB. When using the BACK or FORWARD buttons in IE, argument values are passed to the new page, inappropriately updating the information. Ack! This does not appear to be an issue with most versions of netscape.

    When called with the BACK or FORWARD button is there any way to 1. force the expiration of the page (not perfectly desirable) or 2. pass the URL link only (without the attached argument string)

    the example can be viewed at

    www.yoursound.com

    Thanks! Dan Troxell, x494 =================================== Dir. of Information Technology Citizens Energy Corp. 530 Atlantic Ave, 5FL Boston, MA 02210 ===================================

    attached mail follows:


    I do get your message Jeff, but tell me, after having used the following code ..

    select * from booking where ('$start'>=startdate and '$start'<=enddate) or ('$end'>=startdate and '$end'<=enddate)

    what code should be written to actually insert booking data into the table? Because this is basically picking up data or booking from the Table that fall in this period. What i want to do is to check if any booking has been made for this period that i'm inserting now....

    T. Edison jr.

    --- Jeff Armstrong <jeff.armstrongpirum.com> wrote: > One problem is that you are only checking the first > booking. > select * from booking where room='room' > gives ALL bookings, and you look like you are just > testing > the FIRST one. > > why not turn it round and do: > select * from booking where > ('$start'>=startdate and '$start'<=enddate) or > ('$end'>=startdate and '$end'<=enddate) > > This lets mySQL do the test for you. > If it returns a row you already have a booking. > > > -----Original Message----- > From: Thomas Edison Jr. > [mailto:thomasedisonjryahoo.com] > Sent: Tuesday, March 20, 2001 11:50 AM > To: Peter Chr. Hansen > Cc: php-generallists.php.net > Subject: Re: SV: [PHP] Booking by Date/Time in mySQL > > > Peter, > > what do you mean by Newdate between date1 & date2?? > the logic i'm using is that i'm checkin if the new > Start Date & End date lies between the old Start > Date > & End Date or not. If it does, than entry is denied, > else booking is succesfull. But things are not > running, following is the code i'm using ... > ---------- > <?php > $db = mysql_connect("localhost","root"); > mysql_select_db("nidc_intranet",$db); > > $realsdate="$syear"."-"."$smonth"."-"."$stdate"; > $realedate="$eyear"."-"."$emonth"."-"."$endate"; > $realstime="$shh".":"."$smm"." "."$sttime"; > $realetime="$ehh".":"."$emm"." "."$entime"; > > $result = mysql_query("SELECT * FROM booking where > room='$rooms',$db); > if ($myrow = mysql_fetch_array($result)) { > do { > if ($realsdate>=$myrow[sdate]) && > ($realsdate<=$myrow[edate]) && > ($realedate>=$myrow[sdate]) && > ($realedate<=$myrow[edate]) { > echo "Sorry"; > } > else { > > $sql = "INSERT INTO booking > (room,sdate,edate,stime,etime,purpose,reserved) > VALUES > ('$rooms','$realsdate','$realedate','$realstime','$realetime','$purpose','$r > es')"; > $result = mysql_query($sql) or Die ("An > unexpected > error occured. Please go back and book again."); > echo "<font face=helvetica size=2 > color=#140057><b>Thank you! <font > color=#ff0000>$rooms</font>, has been booked from > <font color=#ff0000>$realsdate</font> to <font > color=#ff0000>$realedate</font>. > <br><br> > ** Entries will be deleted 2 weeks after the End > Date. > "; > } > } while ($myrow = mysql_fetch_array($result)); > } > ?> > ------------ > > Regards, > T. Edison jr. > > --- "Peter Chr. Hansen" <PCHschilling.dk> wrote: > > Can't you use " > > Newdate between date1 and date2 > > > > > > -----Oprindelig meddelelse----- > > Fra: Thomas Edison Jr. > > [mailto:thomasedisonjryahoo.com] > > Sendt: 20. marts 2001 12:25 > > Til: php-generallists.php.net > > Emne: [PHP] Booking by Date/Time in mySQL > > > > > > I'm facing this problem. > > I have made a room booking application. > > There is a Start Date & Time and End Date & Time > of > > Booking a room. > > > > Problem is that once booked, you can't book a room > > with a date or time that falls between an Already > > booked Date & Time. > > > > For example, if someone's booked a room from 3rd > > March > > to 10th March between 4:00 p.m. to 12:00 p.m. , > you > > can't book the same room for the any date between > > 3rd > > March to 10th March and between 4 pm & 12 pm. > > > > How do i do that? > > > > Regards, > > T. Edison jr. > > > > > > ===== > > Rahul S. Johari (Director) > > ****************************************** > > Abraxas Technologies Inc. > > Homepage : http://www.abraxastech.com > > Email : abraxastechyahoo.com > > Tel : 91-4546512/4522124 > > ******************************************* > > > > __________________________________________________ > > Do You Yahoo!? > > Get email at your own domain with Yahoo! Mail. > > http://personal.mail.yahoo.com/ > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: > > php-general-unsubscribelists.php.net > > For additional commands, e-mail: > > php-general-helplists.php.net > > To contact the list administrators, e-mail: > php-list-adminlists.php.net > > > ===== > Rahul S. Johari (Director) > ****************************************** > Abraxas Technologies Inc. > Homepage : http://www.abraxastech.com > Email : abraxastechyahoo.com > Tel : 91-4546512/4522124 > ******************************************* > > __________________________________________________ > Do You Yahoo!? > Get email at your own domain with Yahoo! Mail. > http://personal.mail.yahoo.com/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > php-general-unsubscribelists.php.net > For additional commands, e-mail: > php-general-helplists.php.net > To contact the list administrators, e-mail: > php-list-adminlists.php.net > > > -- > 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 >

    ===== Rahul S. Johari (Director) ****************************************** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : abraxastechyahoo.com Tel : 91-4546512/4522124 *******************************************

    __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/

    attached mail follows:


    the logic goes:

    $start = some_start_date_a_keen_punter_entered(); $end = the_date_he_wants_to_leave();

    select * from booking where ('$start'>=startdate and '$start'<=enddate) or ('$end'>=startdate and '$end'<=enddate)

    if (uh_ohh_I_got_a_row_back()) echo "Someone else is sleeping in the bed! No can do!", "Cheap discounts for those willing to share a bed!", "Are you gorgeous??"; else print "You got it!" insert good bits into database here

    Of course this is not guaranteed safe, as you can end up with double bookings in the pico seconds between the select and the insert - but hey, how many hits a second do you expect.

    Regards Jeff's Granny

    -----Original Message----- From: Thomas Edison Jr. [mailto:thomasedisonjryahoo.com] Sent: Tuesday, March 20, 2001 5:08 PM To: Jeff Armstrong Cc: php-generallists.php.net Subject: RE: SV: [PHP] Booking by Date/Time in mySQL

    I do get your message Jeff, but tell me, after having used the following code ..

    select * from booking where ('$start'>=startdate and '$start'<=enddate) or ('$end'>=startdate and '$end'<=enddate)

    what code should be written to actually insert booking data into the table? Because this is basically picking up data or booking from the Table that fall in this period. What i want to do is to check if any booking has been made for this period that i'm inserting now....

    T. Edison jr.

    --- Jeff Armstrong <jeff.armstrongpirum.com> wrote: > One problem is that you are only checking the first > booking. > select * from booking where room='room' > gives ALL bookings, and you look like you are just > testing > the FIRST one. > > why not turn it round and do: > select * from booking where > ('$start'>=startdate and '$start'<=enddate) or > ('$end'>=startdate and '$end'<=enddate) > > This lets mySQL do the test for you. > If it returns a row you already have a booking. > > > -----Original Message----- > From: Thomas Edison Jr. > [mailto:thomasedisonjryahoo.com] > Sent: Tuesday, March 20, 2001 11:50 AM > To: Peter Chr. Hansen > Cc: php-generallists.php.net > Subject: Re: SV: [PHP] Booking by Date/Time in mySQL > > > Peter, > > what do you mean by Newdate between date1 & date2?? > the logic i'm using is that i'm checkin if the new > Start Date & End date lies between the old Start > Date > & End Date or not. If it does, than entry is denied, > else booking is succesfull. But things are not > running, following is the code i'm using ... > ---------- > <?php > $db = mysql_connect("localhost","root"); > mysql_select_db("nidc_intranet",$db); > > $realsdate="$syear"."-"."$smonth"."-"."$stdate"; > $realedate="$eyear"."-"."$emonth"."-"."$endate"; > $realstime="$shh".":"."$smm"." "."$sttime"; > $realetime="$ehh".":"."$emm"." "."$entime"; > > $result = mysql_query("SELECT * FROM booking where > room='$rooms',$db); > if ($myrow = mysql_fetch_array($result)) { > do { > if ($realsdate>=$myrow[sdate]) && > ($realsdate<=$myrow[edate]) && > ($realedate>=$myrow[sdate]) && > ($realedate<=$myrow[edate]) { > echo "Sorry"; > } > else { > > $sql = "INSERT INTO booking > (room,sdate,edate,stime,etime,purpose,reserved) > VALUES > ('$rooms','$realsdate','$realedate','$realstime','$realetime','$purpose','$r > es')"; > $result = mysql_query($sql) or Die ("An > unexpected > error occured. Please go back and book again."); > echo "<font face=helvetica size=2 > color=#140057><b>Thank you! <font > color=#ff0000>$rooms</font>, has been booked from > <font color=#ff0000>$realsdate</font> to <font > color=#ff0000>$realedate</font>. > <br><br> > ** Entries will be deleted 2 weeks after the End > Date. > "; > } > } while ($myrow = mysql_fetch_array($result)); > } > ?> > ------------ > > Regards, > T. Edison jr. > > --- "Peter Chr. Hansen" <PCHschilling.dk> wrote: > > Can't you use " > > Newdate between date1 and date2 > > > > > > -----Oprindelig meddelelse----- > > Fra: Thomas Edison Jr. > > [mailto:thomasedisonjryahoo.com] > > Sendt: 20. marts 2001 12:25 > > Til: php-generallists.php.net > > Emne: [PHP] Booking by Date/Time in mySQL > > > > > > I'm facing this problem. > > I have made a room booking application. > > There is a Start Date & Time and End Date & Time > of > > Booking a room. > > > > Problem is that once booked, you can't book a room > > with a date or time that falls between an Already > > booked Date & Time. > > > > For example, if someone's booked a room from 3rd > > March > > to 10th March between 4:00 p.m. to 12:00 p.m. , > you > > can't book the same room for the any date between > > 3rd > > March to 10th March and between 4 pm & 12 pm. > > > > How do i do that? > > > > Regards, > > T. Edison jr. > > > > > > ===== > > Rahul S. Johari (Director) > > ****************************************** > > Abraxas Technologies Inc. > > Homepage : http://www.abraxastech.com > > Email : abraxastechyahoo.com > > Tel : 91-4546512/4522124 > > ******************************************* > > > > __________________________________________________ > > Do You Yahoo!? > > Get email at your own domain with Yahoo! Mail. > > http://personal.mail.yahoo.com/ > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: > > php-general-unsubscribelists.php.net > > For additional commands, e-mail: > > php-general-helplists.php.net > > To contact the list administrators, e-mail: > php-list-adminlists.php.net > > > ===== > Rahul S. Johari (Director) > ****************************************** > Abraxas Technologies Inc. > Homepage : http://www.abraxastech.com > Email : abraxastechyahoo.com > Tel : 91-4546512/4522124 > ******************************************* > > __________________________________________________ > Do You Yahoo!? > Get email at your own domain with Yahoo! Mail. > http://personal.mail.yahoo.com/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > php-general-unsubscribelists.php.net > For additional commands, e-mail: > php-general-helplists.php.net > To contact the list administrators, e-mail: > php-list-adminlists.php.net > > > -- > 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 >

    ===== Rahul S. Johari (Director) ****************************************** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : abraxastechyahoo.com Tel : 91-4546512/4522124 *******************************************

    __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/

    attached mail follows:


    Hi,

    Is is possible to use the php script tags in files with an html extension? I'm running 4.0.4pl1 and apache 1.3.12 on OpenBSD 2.8.

    Thanks, Rick VanNorman

    attached mail follows:


    You can tell apache to have the php interpreter parse files with an html extension, thereby letting you use the tags in html files.......whether this is a good solution or not is another question.....that would mean that each file would get parsed....why are you trying to do this?

    jack

    -----Original Message----- From: Rick VanNorman [mailto:rickneverslow.com] Sent: Tuesday, March 20, 2001 12:21 PM To: php-generallists.php.net Subject: [PHP] files with html extension

    Hi,

    Is is possible to use the php script tags in files with an html extension? I'm running 4.0.4pl1 and apache 1.3.12 on OpenBSD 2.8.

    Thanks, Rick VanNorman

    --
    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 3/20/2001 at 12:29 PM Jack Dempsey wrote:

    >You can tell apache to have the php interpreter parse files with an html >extension, thereby letting you use the tags in html files.......whether >this >is a good solution or not is another question.....that would mean that each >file would get parsed....why are you trying to do this? >

    To be able to include php code in otherwise full html files; most especially to allow me to do it without having to change the name of every file and fix every href in the entire site.

    So, exactly how do I tell apache to do this?

    Thanks, Rick 1

    attached mail follows:


    for php4: AddType application/x-httpd-php .html

    for php3: AddType application/x-httpd-php3 .html

    On Tue, 20 Mar 2001 10:12:56 -0800, Rick VanNorman (rickneverslow.com) wrote: >On 3/20/2001 at 12:29 PM Jack Dempsey wrote: > >>You can tell apache to have the php interpreter parse files with an >>html >>extension, thereby letting you use the tags in html >>files.......whether >>this >>is a good solution or not is another question.....that would mean >>that each >>file would get parsed....why are you trying to do this? >> > >To be able to include php code in otherwise full html files; >most especially to allow me to do it without having to change >the name of every file and fix every href in the entire site. > >So, exactly how do I tell apache to do this? > >Thanks, >Rick >1 > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribelists.php.net >For additional commands, e-mail: php-general-helplists.php.net >To contact the list administrators, e-mail: php-list- >adminlists.php.net

    attached mail follows:


    Personally I recommend people don't do this unless their web server is going to serve only(or mostly) php pages, and very few straight html pages. It will save you time mucking around on the server, but the increase in overhead isn't really worth it. IMHO of course.

    --
    phill
    

    attached mail follows:


    I agree with Phill, don't make all your HTML into PHP unless you aint got much - but hey if you aint got much then you can fix the real problem!

    soapbox: { The issue here seems to derive from the fact that all the internal HREFs point to xxx.html

    This is exactly why http://www.w3.org recommend that you DONT SPECIFY A FILE TYPE TYPE in your HREFs.

    Cool URIs Dont change - http://www.w3.org/Provider/Style/URI Good!! <A HREF=/somepage >Some Page!</A> NOT good! <A HREF=/somepage.html >Some Page!</A> ^^^^^ Let the server decide which page to dish. Then it's easy peasy to replace xxx.html with xxx.php or even xxx.my_new_language_of_the_moment. };

    Jeff

    -----Original Message----- From: Phillip Bow [mailto:philboreilly.com] Sent: Tuesday, March 20, 2001 6:35 PM To: php-generallists.php.net Subject: Re: [PHP] files with html extension

    Personally I recommend people don't do this unless their web server is going to serve only(or mostly) php pages, and very few straight html pages. It will save you time mucking around on the server, but the increase in overhead isn't really worth it. IMHO of course.

    --
    phill
    

    attached mail follows:


    This is the best idea I've heard/read yet. Thanks Jeff! Rick VanNorman

    *********** REPLY SEPARATOR ***********

    On 3/20/2001 at 6:49 PM Jeff Armstrong wrote:

    > This is exactly why http://www.w3.org recommend that you DONT > SPECIFY A FILE TYPE TYPE in your HREFs. > > Cool URIs Dont change - http://www.w3.org/Provider/Style/URI > Good!! > <A HREF=/somepage >Some Page!</A> > NOT good! > <A HREF=/somepage.html >Some Page!</A> > ^^^^^ > Let the server decide which page to dish. > Then it's easy peasy to replace xxx.html with xxx.php or even > xxx.my_new_language_of_the_moment. >}; > e

    attached mail follows:


    From the doc: --------------- How can I remove the file extensions... ...from my URIs in a practical file-based web server?

    If you are using, for example, Apache, you can set it up to do content negotiation. -------------- How is this done? Jeff Oien

    > On 3/20/2001 at 6:49 PM Jeff Armstrong wrote: > > > This is exactly why http://www.w3.org recommend that you DONT > > SPECIFY A FILE TYPE TYPE in your HREFs. > > > > Cool URIs Dont change - http://www.w3.org/Provider/Style/URI > > Good!! > > <A HREF=/somepage >Some Page!</A> > > NOT good! > > <A HREF=/somepage.html >Some Page!</A> > > ^^^^^ > > Let the server decide which page to dish. > > Then it's easy peasy to replace xxx.html with xxx.php or even > > xxx.my_new_language_of_the_moment. > >}; > > > e > > > -- > 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 recommend people don't do this unless their web server is going >to serve only(or mostly) php pages, and very few straight html pages. >....the increase in overhead isn't really worth it.

    I've tried this in many real-world examples. I have PHP parsing ALL files on ALL of my 8 Linux servers. (I do virtual hosting for 500 or so domains.)

    Even though they're running on weak little Cobalt RaQ boxes, there has been no measurable slowdown since I switched Apache to having PHP parse all files.

    I know, in THEORY, it slows it down. I haven't done deep deep benchmarks. But just real-world experience has been great. No slowdown at all.

    attached mail follows:


    Hi Ben.

    I see your point, but it's harder to deal with in those cases.

    I'd reckon most people on this list are using some type of shared hosting system anyway, where they CAN'T do that.

    Creating extra users in most databases I've used is a bit of a pain, and trying to tie in your application's security with that of a database's may be problematic.

    Example: we've got a system running on MSSQL7, with about 10000 user accounts, with a few different levels of permission. They all can read and write the same tables, but only the rows which correspond with their user info. Breaking that data up into 10000 tables, each with a user that only has access to that table, is just weird, imo.

    At the end of the day, some process with higher permissions needs to run to be creating the 'lower' accounts anyway, in whatever fashion that may be. So anyone breaking into a machine is more than likely going to go after the main process' security info anyway.

    ben.2.edwardsbt.com wrote:

    > The examples of holding passwords in databases (i.e. mysql) tend to encrypt > the password. Although this seems sensible (if not necessary) it douse mean > that if a user forgets there password the normal solution is to generate a > new random password and email it to them. Then I realised that this fafing > about was all a bit unnecessary. Surly if security has been breached to the > extent that the user table can be accesses chances are that the intruder > could delete data from tables or even drop them. In fact the best solution > is to set up proper database users rather than your own 'application' users. > This way you can set it up (at database level) so that for 'Punters' they > can only read most of the data and 'Administrators' have fuller access. > > So maybe the conclusion is there is no point in encryption passwords but > there are very good reasons to have users an 'real' database users. > > What do you lot reckon.

    attached mail follows:


    Always assume people will attempt the most inane things...

    --
    phill
    

    ""Stephan Ahonen"" <analogywheezebucket.com> wrote in message news:9969kn$eho$1toye.p.sourceforge.net... > > Oh in addition this won't work accurately if $time is greater than about 2 > > billion(2147483648 I believe). > > This shouldn't be a problem unless you're calculating how many hours and > minutes a really old guy (>68) has been alive or something. > > Sig for a Day > Stephan Ahonen, ICQ 491101 > "That's very funny Scotty, now beam down my clothes!" > Come back tomorrow for a different sig! > Backspace a single "s" to reply by email > > > -- > 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 everybody,

    I already am familiar with PHP's ftp capabilities. My question though is if anyone has ever used or know wether PHP is compatible or not with sftp (OpenSSH secure FTP). If so, can I use the same libraries or is there any PHP extention that I must download in order to enable it.

    Thank you,

    Carlos Fernando Scheidecker Antunes.

    attached mail follows:


    Hello I am tring to make socket program. I compile php with --enable-sockets option But when I write code, the error message appears which is "Fatal error: Call to undefined function: socket() in /www/htdocs/test.php on line 6" I can't understand what am I doing wrong .... here is the code that I wrote <? error_reporting (E_ALL); $sockfd =socket (AF_INET, SOCK_STREAM, 0); $imsi = connect($sockfd, "211.43.180.82", 9000); $func_type = 1024 + 18; $packet_size = 8; write($sockfd, $packet_size, 4); write($sockfd, $func_type, 4); read($sockfd, $packet_size,4); read($sockfd, $errornum, 4); echo("errornum : $errornum"); ?>

    attached mail follows:


    Hi,

    first thanks for your help on my last thread.

    Another question.

    Is there a function what specifies the class of an object?

    for example:

    class test { blabla }

    $object = new test;

    any_function($object) results "test"

    thanks for your help

    attached mail follows:


    see

    http://www.php.net/manual/en/function.get-class.php

    -----Original Message----- From: Thorsten Viel [mailto:tvielhw-interactive.de] Sent: 20 March 2001 17:33 To: php-generallists.php.net Subject: [PHP] Objectclass

    Hi,

    first thanks for your help on my last thread.

    Another question.

    Is there a function what specifies the class of an object?

    for example:

    class test { blabla }

    $object = new test;

    any_function($object) results "test"

    thanks for your help

    -- 
    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 a PHP web-based POP/IMAP mail client to install on my RH7 machine. Anyone know of any with really good looking interfaces? I found a few that I like, but they're CGI, and commercial or ad-sponsored. I'll be happy with a free CGI package if anyone knows of a great one.

    Thanks, Steven

    EMU Webmail http://www.emumail.com/emuwebmail.html http://www.mollymail.com

    MailStudio http://www.mailstudio.com

    attached mail follows:


    Check SquirelMail (I'm propably spelling it wrong) on freshmeat.net -Stathis.

    Steven Katz wrote: > > I'm looking for a PHP web-based POP/IMAP mail client to install on my > RH7 machine. Anyone know of any with really good looking interfaces? > I found a few that I like, but they're CGI, and commercial or > ad-sponsored. I'll be happy with a free CGI package if anyone knows of > a great one. > > Thanks, > Steven > > EMU Webmail > http://www.emumail.com/emuwebmail.html > http://www.mollymail.com > > MailStudio > http://www.mailstudio.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net

    attached mail follows:


    Hi,

    Using PHP 4.04pl1

    I am getting an error executing the dbase_create function. Th elines of code are:

    if (!dbase_create($export_file, $dbf_def)) echo "Error creating DBF file";

    my error message is:

    Fatal error: Call to undefined function: dbase_create() in my_prog. php on line 59

    I found this function in the PHP docs. Is it still supported?

    attached mail follows:


    you need to compile php with dbase support... http://www.php.net/manual/en/function.dbase-create.php checkout the fourth userpost...

    jack

    -----Original Message----- From: Don Pro [mailto:donlclcan.com] Sent: Tuesday, March 20, 2001 1:01 PM To: php list Subject: [PHP] dbase functions still supported?

    Hi,

    Using PHP 4.04pl1

    I am getting an error executing the dbase_create function. Th elines of code are:

    if (!dbase_create($export_file, $dbf_def)) echo "Error creating DBF file";

    my error message is:

    Fatal error: Call to undefined function: dbase_create() in my_prog. php on line 59

    I found this function in the PHP docs. Is it still supported?

    -- 
    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 Tuesday 20 March 2001 14:59, you wrote: > I compiled php --with-pgsql, but phpinfo() doesn't list that.....is > this a problem with php.ini?

    Are you sure you didn't have a typo in that? Configure silently ignores unknown opitons.

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

    "use the source, luke." (obi-wan gnuobi)

    attached mail follows:


    Hi, I've been trying to figure this out by looking through the code in phpMyAdmin but I'm not getting very far. There's probably some help about it somewhere.

    What I want to do is dynamically generate a form where I get a table row containing the field name in one cell and the input field in the next cell, for example:

    $DatabaseName = "FocusDynamics"; $TableName = "Items";

    // open the table and get all field names, sizes, etc.,

    // for each Field name, print something like:

    PRINT "<tr>\n"; PRINT "<td>$FieldName</td>\n"; PRINT "<td><input type=\"text\" name=\"$FieldName\" value=\"$FieldValue\" maxlength=\"FieldSize\"></td>\n"; PRINT "</tr>";

    How do I get all this info from the table?

    Thanks for any help.

    Martin E. Koss M: 07946-706459 E: mekmek.co.uk

    attached mail follows:


    What are some good resources I can look at to learn how to make a shopping cart, that will function with php3/MySQL ? I know of the one at Devshed, but any other resources are certainly appreciated.

    Jerry Lake - jerryleuropa.com Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com

    attached mail follows:


    Now that I take a look, the one at devshed assumes PHP4... of course. and that would be great if I could get my sysadmin to upgrade.

    Jerry Lake - jerryleuropa.com Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com

    -----Original Message----- From: Jerry Lake [mailto:jerryleuropa.com] Sent: Tuesday, March 20, 2001 10:39 AM To: php-generallists.php.net Subject: [PHP] where to learn to make a shopping cart

    What are some good resources I can look at to learn how to make a shopping cart, that will function with php3/MySQL ? I know of the one at Devshed, but any other resources are certainly appreciated.

    Jerry Lake - jerryleuropa.com Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com

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

    attached mail follows:


    Hi, I have a funny situation where i can't use apache due Macromedia's ARIA software and lack of it's support for apache. So, i'm stuck with using iPlanet. My question is how stable,fast,usable is the PHP4 NSAPI support?

    Thanks, joe rice

    Web Admin www.bigidea.com

    attached mail follows:


    Hi,

    I'm trying to convert the timestamp '2001032018' into '2001 03 20 18' or an Array which I can easily format. Do you remember any date or string function I can use?

    Regards, Sumarlidi Einar Dadason

    SED - Graphic Design

    ------------------------------------------ Phone: (+354) 4615501 Mobile: (+354) 8960376 Fax: (+354) 4615503 E-mail: sedsed.is Homepage: www.sed.is <- New Homepage! ------------------------------------------

    attached mail follows:


    function sql_to_unix_time($timeString) { return mktime(substr($timeString, 8,2), substr($timeString, 10,2), substr($timeString, 12,2), substr($timeString, 4,2), substr($timeString, 6,2), substr($timeString, 0,4)); }

    you can use the above function to convert your mysql time stamp to a unix timestamp (how long ago was the epoch? ) and use php time related functions (such as time() )to manipulate it however you want. PS: The function is not mine.

    -----Original Message----- From: SED [mailto:sedsed.is] Sent: Tuesday, March 20, 2001 1:59 PM To: php-generallists.php.net Subject: [PHP] How to convert '2001032018' -> '2001 03 20 18' ? (Fomating Date)

    Hi,

    I'm trying to convert the timestamp '2001032018' into '2001 03 20 18' or an Array which I can easily format. Do you remember any date or string function I can use?

    Regards, Sumarlidi Einar Dadason

    SED - Graphic Design

    ------------------------------------------ Phone: (+354) 4615501 Mobile: (+354) 8960376 Fax: (+354) 4615503 E-mail: sedsed.is Homepage: www.sed.is <- New Homepage! ------------------------------------------

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

    function convertTimeStamp($yourTimeStamp) { $strTime[0] = substr($yourTimeStamp, 0,4); $strTime[1] = substr($yourTimeStamp, 4,2); $strTime[2] = substr($yourTimeStamp, 6,2); $strTime[3] = substr($yourTimeStamp, 8,2);

    return $strTime; }

    Josh Hoover KnowledgeStorm, Inc. jhooverknowledgestorm.com

    Searching for a new IT solution for your company? Need to improve your product marketing? Visit KnowledgeStorm at www.knowledgestorm.com to learn how we can simplify the process for you. KnowledgeStorm - Your IT Search Starts Here

    > I'm trying to convert the timestamp '2001032018' into '2001 > 03 20 18' or an > Array which I can easily format. Do you remember any date or > string function > I can use?

    attached mail follows:


    > I'm trying to convert the timestamp '2001032018' into '2001 03 20 18' or an > Array which I can easily format. Do you remember any date or string function > I can use?

    Convert the timestamp into a string, then use substr() to get the dates out of it. Look at the on-line manual (http://www.php.net/manual/en/) under String Functions.

    Sig for a Day Stephan Ahonen, ICQ 491101 "That's very funny Scotty, now beam down my clothes!" Come back tomorrow for a different sig! Backspace a single "s" to reply by email

    attached mail follows:


    Hey everyone,

    Doesn anyone know how to escape the following line in a perl print statement?

    if(!isset($mainfile)) { include("mainfile.php"); }

    ie:

    sub header { print "<?php echo if(!isset($mainfile)) { include(\"mainfile.php\"); } ?>\n"; }

    What all needs to be escaped?

    Thanks! Clayton Dukes CCNA, CCDA, CCDP, CCNP Internetwork Solutions Engineer Internetwork Management Engineer --------------------------------------------------------------------- Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net

    attached mail follows:


    I'm looking here at the mysql functions for PHP4.0.4 and I'm not finding what I seek...

    I see that mysql_fetch_field() will get information about a field in the result set from a mysql_db_query(). What I'm wanting to find out is what the possible values are for an enum or a set.

    So if I have an enum with possible values "Yes" and "No" or a set with possible values "Single", "Married", "Divorced", "Widowed", I seek a function that will return an array of strings containing those possible values.

    Does such a function exist?

    I suppose if not it would be possible to write one from the output of a "show columns from X" query...

    Thanks!

    -Michael

    -- 
    No, my friend, the way to have good and safe government, is not to trust it
    all to one, but to divide it among the many, distributing to every one exactly
    the functions he is competent to.  It is by dividing and subdividing these
    republics from the national one down through all its subordinations, until it
    ends in the administration of every man's farm by himself; by placing under
    every one what his own eye may superintend, that all will be done for the
    best.
                    -- Thomas Jefferson, to Joseph Cabell, 1816
    

    attached mail follows:


    In article <20010320135619.A15974tutus.mintcity.com>, georgemintcity.com (Michael George) wrote:

    > So if I have an enum with possible values "Yes" and "No" or a set with > possible values "Single", "Married", "Divorced", "Widowed", I seek a function > that will return an array of strings containing those possible values. > > Does such a function exist? > > I suppose if not it would be possible to write one from the output of a "show > columns from X" query...

    You do the latter.

    -- 
    CC
    

    attached mail follows:


    Howdy,

    I have a search cgi form that has the following function:

    sub header { print "Content-type: text/html\n\n"; print "<?php include(\"mainfile.php\")\;?>\n"; print "<?php include(\"header.php\")\;?>\n"; print "<title>Search</title>\n"; }

    When I use the function though, the web page (source) comes up as: <?php include("mainfile.php");?> <?php include("header.php");?> <title>Search</title> ...data <? include("footer.php"); ?>

    What am I doing wrong? Why is it printing the php tags instead of executing them?

    Clayton Dukes --------------------------------------------------------------------- Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net

    attached mail follows:


    I was afraid you were going to say that... Anyone care to show me how to write that?

    Clayton Dukes --------------------------------------------------------------------- Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net

    ----- Original Message ----- From: "Andrew Rush" <andymainetoday.com> To: "Clayton Dukes" <cdukescdukes.com> Sent: Tuesday, March 20, 2001 2:33 PM Subject: Re: [PHP] PHP/Perl/CGI Question

    > on 3/20/01 02:21 PM, cdukescdukes.com splat open and thusly melted: > > > What am I doing wrong? Why is it printing the php tags instead of executing > > them? > > because the output of a CGI cannot then be run through the PHP parser. you > could possibly write the PHP out to a new file (with the proper extension > for the parser) and then send a location header() that sends the user to > execute that page. i've never done this, so i can't vouch for it's > workability, but there's nothing wrong with the idea in concept- at least so > far as i can see.... > > -- > :: Andrew Rush :: Lead Systems Developer :: MaineToday.com :: > ************************************************************************** > "Crippled but free, blind all the time, i was learning to see" > > - J. Garcia / R. Hunter > ************************************************************************** > > The views expressed herein are not necessarily those of my employer, but > they let me have them anyway.

    attached mail follows:


    We hired a developer about a year ago to develop a web based email system for us in php. The developer is no longer around, so I am having to pick up the development on the project...When clicking on the attachment link of an email in Internet Explorer 5.5 in Windows 98, I get the save as dialog and when I select ok, it tries to save the html page. If I right click and do save target as, it gets the correct file. This all works correctly in IE 5.0 and Netscape 4.76, and what's weird is that it even works as expected in IE 5.5 running on Win2k. Can anyone offer any suggestions? I'll be glad to send any code snipplets, or info if anyone can clue me in...

    Thanks in advance, Jack Davis Network Admin Bootheel Internet Services listsbootheel.net

    attached mail follows:


    is there a way to do this in a mail() ? I need to add the $Phone and $Email variables too the $message, but I need to format it so that it is on a new line in the email....I tried using <br> and /n, but it formats as text not code function.

    $message = $Info ."<br>". $Phone ."<br>". $Email;

    attached mail follows:


    it's not /n .. it's \n

    -----Original Message----- From: Wade DeWerff [mailto:wdewerffkc.rr.com] Sent: Tuesday, March 20, 2001 2:37 PM To: php-generallists.php.net Subject: [PHP] mail() question

    is there a way to do this in a mail() ? I need to add the $Phone and $Email variables too the $message, but I need to format it so that it is on a new line in the email....I tried using <br> and /n, but it formats as text not code function.

    $message = $Info ."<br>". $Phone ."<br>". $Email;

    attached mail follows:


    $message .= $Info; $message .="<br>"; $message .=$Phone; $message .="<br>"; $message .=$Email;

    This should append everything, but I could be wrong, I'm no Guru :-)

    Clayton Dukes --------------------------------------------------------------------- Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net

    ----- Original Message ----- From: "Wade DeWerff" <wdewerffkc.rr.com> To: <php-generallists.php.net> Sent: Tuesday, March 20, 2001 2:36 PM Subject: [PHP] mail() question

    is there a way to do this in a mail() ? I need to add the $Phone and $Email variables too the $message, but I need to format it so that it is on a new line in the email....I tried using <br> and /n, but it formats as text not code function.

    $message = $Info ."<br>". $Phone ."<br>". $Email;

    attached mail follows:


    In article <00be01c0b175$1cee4080$d7141c41time-square.kc.rr.com>, wdewerffkc.rr.com ("Wade DeWerff") wrote:

    > is there a way to do this in a mail() ? I need to add the $Phone and $Email > variables too the $message, but I need to format it so that it is on a new > line in the email....I tried using <br> and /n, but it formats as text not > code function. > > > $message = $Info ."<br>". $Phone ."<br>". $Email;

    "<br>" is used in hypertext markup language (HTML). Email (unless specially encoded--MIME headers, ugh!) does not use HTML.

    "/n" is a slash followed by the letter n.

    "\n" is a newline on *nix system (Unix, Linux, etc.).

    "\r\n" is a Wintel linebreak. It's also the standard for linebreaks within emails.

    -- 
    CC
    

    attached mail follows:


    I don't think email messages care about html breaks "<BR>"..(unless it's HTML email or something)

    This is what I always use..

    $message = "$Info \n$Phone \n$Email";

    You can use the '\n' to also make your HTML sources more readable.

    -----Original Message----- From: Clayton Dukes [mailto:cdukescdukes.com] Sent: Tuesday, March 20, 2001 2:37 PM To: Wade DeWerff; php-generallists.php.net Subject: Re: [PHP] mail() question

    $message .= $Info; $message .="<br>"; $message .=$Phone; $message .="<br>"; $message .=$Email;

    This should append everything, but I could be wrong, I'm no Guru :-)

    Clayton Dukes --------------------------------------------------------------------- Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net

    ----- Original Message ----- From: "Wade DeWerff" <wdewerffkc.rr.com> To: <php-generallists.php.net> Sent: Tuesday, March 20, 2001 2:36 PM Subject: [PHP] mail() question

    is there a way to do this in a mail() ? I need to add the $Phone and $Email variables too the $message, but I need to format it so that it is on a new line in the email....I tried using <br> and /n, but it formats as text not code function.

    $message = $Info ."<br>". $Phone ."<br>". $Email;

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

    attached mail follows:


    I am getting a "Failed to connect" error when I try to send an email. In the php.ini, I have the IP of the ISP's mail server e.g.

    SMTP = 209.204.199.1

    This IP works for other programs I use and for test programs I have created with Delphi.

    Any suggestions??

    Many thanks..........

    Todd

    --
    Todd Cary
    Ariste Software
    toddaristesoftware.com
    

    attached mail follows:


    Greetings.

    This is a part of my "reading one line" message...

    If one would need to remove one line in a flatfile, how would it be done? I know there is no simple solution, and one is going to increment through the chosen file.. But how is it done? My programming skills are quite OK, but I am rather new to PHP and the for...loops doesnt work exactly the same way as in C++, thus that I have forgotten the way to read line in one file and in the same time iterate through another to write...

    Remove one line?

    Thanks,

    - Richard

    attached mail follows:


    On Wed, 21 Mar 2001 06:10, Richard wrote: > Greetings. > > This is a part of my "reading one line" message... > > If one would need to remove one line in a flatfile, how would it be > done? I know there is no simple solution, and one is going to increment > through the chosen file.. But how is it done? My programming skills are > quite OK, but I am rather new to PHP and the for...loops doesnt work > exactly the same way as in C++, thus that I have forgotten the way to > read line in one file and in the same time iterate through another to > write... > > Remove one line? > > Thanks, > > - Richard

    One solution - read the entire file into an array with file() fopen() temp file to store output loop through array elements if not line to remove fwrite() current array element to open file endif end loop fclose() temp file

    Then you might copy the temp file over the original, or whatever else you want to do with the files.

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


    I was wondering if there was a way to check output and syntax of a php3 file while in UNIX similar to perl: perl [file].

    Bill Mitcheson (Network Admin, Pyramus Online).

    attached mail follows:


    On Wed, 21 Mar 2001 06:33, Bill Mitcheson wrote: > I was wondering if there was a way to check output and syntax of a php3 > file while in UNIX similar to perl: perl [file]. > > Bill Mitcheson (Network Admin, Pyramus Online).

    You would need to compile PHP as cgi (if not already done) then you can do

    /path/to/php.cgi [file]

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


    > > So if you mix PHP and HTML in a file, PHP will be slower > > to parse those files? I thought it was smart enough to > > parse only what was within the recognized start and end > > tags (<? ?>, <?php ?>, <script language="php"></script>, > > etc)? > PHP *is* smart enough, but it has to "look" in the HTML to > see any <?php (et al) tags.

    Cool. Just wanted to check. :)

    Chris

    attached mail follows:


    heloo,

    Could someone plese explain this line if code??? What does the "?" do?

    $r = ($r < 1) ? $config['maxResults'] : $r;

    Thank you,

    -------------------------------------------- Brandon Orther WebIntellects Design/Development Manager brandonwebintellects.com 800-994-6364 www.webintellects.com --------------------------------------------

    attached mail follows:


    > Could someone plese explain this line if code??? What does the "?" do? > $r = ($r < 1) ? $config['maxResults'] : $r;

    It's short circuit IF (I believe that's the right word for it). This is the same thing as doing this:

    if( $r < 1 ) { $r = $config['maxResults'];

    } else { $r = $r;

    }

    Chris

    attached mail follows:


    http://www.php.net/manual/it/html/language.operators.comparison.html#AEN3156

    called a trinary operator

    At 12:08 PM 3/20/01 -0800, Brandon Orther wrote: >heloo, > >Could someone plese explain this line if code??? What does the "?" do? > >$r = ($r < 1) ? $config['maxResults'] : $r; > >Thank you, > >-------------------------------------------- >Brandon Orther >WebIntellects Design/Development Manager >brandonwebintellects.com >800-994-6364 >www.webintellects.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:


    It's called the 'ternary operator' (taking three arguments and stuff).. and I believe it is the only ternary operator at least in PHP.

    -----Original Message----- From: Boget, Chris [mailto:Chris.Bogetwild.net] Sent: Tuesday, March 20, 2001 3:11 PM To: 'Brandon Orther'; PHP User Group Subject: RE: [PHP] What does a ? do

    > Could someone plese explain this line if code??? What does the "?" do? > $r = ($r < 1) ? $config['maxResults'] : $r;

    It's short circuit IF (I believe that's the right word for it). This is the same thing as doing this:

    if( $r < 1 ) { $r = $config['maxResults'];

    } else { $r = $r;

    }

    Chris

    attached mail follows:


    This is a little off topic, but has anyone had any experience using dialtoneinternet.com for either virtual or RaQ hosting?

    Please respond privately so as to not clutter up the list more. I'll be glad to forward on responses to anyone who is interested.

    Tobe

    attached mail follows:


    Hi Gurus - any suggestions here would be welcome, I'm baffled.

    I have a file that does this:

    <? require("function_definitions.php");

    //some more stuff here, calling functions, etc.

    ?>

    but when I call this file, it gives me a parse error in function_definitions.php. No biggie, so I start trying to figure out what paren, quote, etc. I've forgotton, and I cannot.

    The line that PHP is choking on is for a function that I'm not using in the above page, so I comment it out, thinking to go back and rewrite it later when I need it, and the parse error is still showing up on the same line!!!!

    To summarize, a parse error is showing up on a file being 'required', even if the lines in question are commented out.

    thanks in advance for ANY pointers.

    cheers! jaxon

    attached mail follows:


    Look for a missing terminator (semi-colon or curly brace) just *above* the line in the error message.

    Kirk

    > -----Original Message----- > From: Jaxon [mailto:jaxonsalamander.net] > Sent: Tuesday, March 20, 2001 1:18 PM > To: php-generallists.php.net > Subject: [PHP] parse error inside comment???? > > To summarize, a parse error is showing up on a file being > 'required', even > if the lines in question are commented out.

    attached mail follows:


    Thanks for the pointer!

    It was actually a missing quote " in the function declaration ABOVE the one that the error was being reported in. Quite strange.

    regards, jaxon

    On 3/20/01 4:09 PM, "Johnson, Kirk" <kjohnsonzootweb.com> wrote:

    > Look for a missing terminator (semi-colon or curly brace) just *above* the > line in the error message. > > Kirk > >> -----Original Message----- >> From: Jaxon [mailto:jaxonsalamander.net] >> Sent: Tuesday, March 20, 2001 1:18 PM >> To: php-generallists.php.net >> Subject: [PHP] parse error inside comment???? >> >> To summarize, a parse error is showing up on a file being >> 'required', even >> if the lines in question are commented out. >

    attached mail follows:


    I'm resetting set_time_limit() with each iteration of a rather long loop. Right now when the script reaches its time limit I sometimes end up getting just a blank page. Even though I call flush() within each iteration and do lots of error checking along the way, it seems to not be enough.

    I could have sworn I once saw a function that would check whether the script was being cancelled because a timeout had occured, thereby allowing you to make a more graceful exit from the script. But now I can't seem to locate anything like that in the manual. If someone could point me to the right function, or suggest an alternative method for catching those timeouts, I would be grateful.

    TIA!

    -- 
    CC
    

    attached mail follows:


    In article <998dqa$akd$1toye.p.sourceforge.net>, cczonanospam.invalid (CC Zona) wrote:

    > I could have sworn I once saw a function that would check whether the > script was being cancelled because a timeout had occured, thereby allowing > you to make a more graceful exit from the script. But now I can't seem to > locate anything like that in the manual.

    Never mind. Found it: connection_timeout() and register_shutdown_function(). Perfect.

    -- 
    CC
    

    attached mail follows:


    Yo! I'm thinking of writing a bulletin board and I wonder about threads. I want the board to be built on threads but I don't know how to do it. I want it to look something like this:

    subject 1 | |__ reply1 to 'subject 1' | | | |__ reply1 to 'reply1 to subject 1' | | | |__ reply2 to 'reply1 to subject 1' | |__ reply2 to 'subject 1'

    This is important to me so I'm thankful for any help I can get!

    //Broder

    attached mail follows:


    > Yo! > I'm thinking of writing a bulletin board and I wonder about > threads. I want the board to be built on threads but I don't > know how to do it. I want it to look something like this: > subject 1 > | > |__ reply1 to 'subject 1' > | | > | |__ reply1 to 'reply1 to subject 1' > | | > | |__ reply2 to 'reply1 to subject 1' > | > |__ reply2 to 'subject 1' > This is important to me so I'm thankful for any help I can get!

    Just keep track of a parent message number. You should be able to use that one field to trace any message back to a root message. And with that information, you should be able to build a "thread".

    Chris

    attached mail follows:


    > Just keep track of a parent message number. You should be able > to use that one field to trace any message back to a root message. > And with that information, you should be able to build a "thread".

    I concur on that.

    However, I am more fond of the UBB/vBulletin style of threads, personally.

    - Kath

    ----- Original Message ----- From: "Boget, Chris" <Chris.Bogetwild.net> To: "'Jimmy Bäckström'" <broder_bchello.se>; "PHP General List" <php-generallists.php.net> Sent: Tuesday, March 20, 2001 4:57 PM Subject: RE: [PHP] Create a Bulletin Board

    > > Yo! > > I'm thinking of writing a bulletin board and I wonder about > > threads. I want the board to be built on threads but I don't > > know how to do it. I want it to look something like this: > > subject 1 > > | > > |__ reply1 to 'subject 1' > > | | > > | |__ reply1 to 'reply1 to subject 1' > > | | > > | |__ reply2 to 'reply1 to subject 1' > > | > > |__ reply2 to 'subject 1' > > This is important to me so I'm thankful for any help I can get! > > Just keep track of a parent message number. You should be able > to use that one field to trace any message back to a root message. > And with that information, you should be able to build a "thread". > > Chris >

    attached mail follows:


    > > Just keep track of a parent message number. You should be able > > to use that one field to trace any message back to a root message. > > And with that information, you should be able to build a "thread". > I concur on that.

    Good to see it's not just me. :p > However, I am more fond of the UBB/vBulletin style of > threads, personally.

    UBB style threads?

    Chris

    attached mail follows:


    http://fractalcore.com/cgi-bin/Ultimate.cgi?action=intro&number=1&category=1

    vBulletin looks the same.

    - Kath

    ----- Original Message ----- From: "Boget, Chris" <Chris.Bogetwild.net> To: "'Kath'" <kathkathweb.net>; "'Jimmy Bäckström'" <broder_bchello.se>; "PHP General List" <php-generallists.php.net> Sent: Tuesday, March 20, 2001 5:40 PM Subject: RE: [PHP] Create a Bulletin Board

    > > > Just keep track of a parent message number. You should be able > > > to use that one field to trace any message back to a root message. > > > And with that information, you should be able to build a "thread". > > I concur on that. > > Good to see it's not just me. :p > > > However, I am more fond of the UBB/vBulletin style of > > threads, personally. > > UBB style threads? > > Chris >

    attached mail follows:


    You could also check out phpBB:

    http://www.phpbb.com

    ----- Original Message ----- From: "Boget, Chris" <Chris.Bogetwild.net> To: "'Kath'" <kathkathweb.net>; "'Jimmy Bäckström'" <broder_bchello.se>; "PHP General List" <php-generallists.php.net> Sent: Tuesday, March 20, 2001 4:40 PM Subject: RE: [PHP] Create a Bulletin Board

    > > > Just keep track of a parent message number. You should be able > > > to use that one field to trace any message back to a root message. > > > And with that information, you should be able to build a "thread". > > I concur on that. > > Good to see it's not just me. :p > > > However, I am more fond of the UBB/vBulletin style of > > threads, personally. > > UBB style threads? > > Chris >

    attached mail follows:


    Anyone who wants a threaded discussion board won't be satisfied with phpBB. It dosan't contain a threaded view and probably never will :)

    - James Atkinson Lead Developer, phpBB

    > You could also check out phpBB: > > http://www.phpbb.com > > > > Just keep track of a parent message number. You should be able > > > > to use that one field to trace any message back to a root message. > > > > And with that information, you should be able to build a "thread". > > > I concur on that. > > > > Good to see it's not just me. :p > > > > > However, I am more fond of the UBB/vBulletin style of > > > threads, personally. > > > > UBB style threads? > > > > Chris > >

    attached mail follows:


    Ahh... that's right, my bad. =)

    ----- Original Message ----- From: "James Atkinson" <thefinnphpbb.com> To: "PHP General List" <php-generallists.php.net> Sent: Tuesday, March 20, 2001 4:59 PM Subject: RE: [PHP] Create a Bulletin Board

    > Anyone who wants a threaded discussion board won't be satisfied with phpBB. > It dosan't contain a threaded view and probably never will :) > > - James Atkinson > Lead Developer, phpBB > > > You could also check out phpBB: > > > > http://www.phpbb.com > > > > > Just keep track of a parent message number. You should be able > > > > > to use that one field to trace any message back to a root message. > > > > > And with that information, you should be able to build a "thread". > > > > I concur on that. > > > > > > Good to see it's not just me. :p > > > > > > > However, I am more fond of the UBB/vBulletin style of > > > > threads, personally. > > > > > > UBB style threads? > > > > > > Chris > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net > >

    attached mail follows:


    Do you know anyone that doesn't use MySQL? I mean, that uses flatfiles?

    - Richard

    ""Yoshi Melrose"" <webmastervalidus.com> wrote in message news:032601c0b192$1eaed610$0214a8c0enterprise... > Ahh... that's right, my bad. =) > > ----- Original Message ----- > From: "James Atkinson" <thefinnphpbb.com> > To: "PHP General List" <php-generallists.php.net> > Sent: Tuesday, March 20, 2001 4:59 PM > Subject: RE: [PHP] Create a Bulletin Board > > > > Anyone who wants a threaded discussion board won't be satisfied with > phpBB. > > It dosan't contain a threaded view and probably never will :) > > > > - James Atkinson > > Lead Developer, phpBB > > > > > You could also check out phpBB: > > > > > > http://www.phpbb.com > > > > > > Just keep track of a parent message number. You should be able > > > > > > to use that one field to trace any message back to a root message. > > > > > > And with that information, you should be able to build a "thread". > > > > > I concur on that. > > > > > > > > Good to see it's not just me. :p > > > > > > > > > However, I am more fond of the UBB/vBulletin style of > > > > > threads, personally. > > > > > > > > UBB style threads? > > > > > > > > Chris > > > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > > For additional commands, e-mail: php-general-helplists.php.net > > To contact the list administrators, e-mail: php-list-adminlists.php.net > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >

    attached mail follows:


    I don't know of any PHP bulletin boards that use flat files. I database is far better for storing data like this anyway. Ever seen a UBB board with over 1,000,000 posts? Doing a simple search on it crashes the server...

    The next version of phpBB will have support for MySQL, Postgres, MSSQL, ODBC and Oracle.

    - James

    > -----Original Message----- > From: Richard [mailto:oblivionlunamorena.net] > Sent: March 20, 2001 3:08 PM > To: php-generallists.php.net > Subject: Re: [PHP] Create a Bulletin Board > > > Do you know anyone that doesn't use MySQL? I mean, that uses flatfiles? > > - Richard > > > ""Yoshi Melrose"" <webmastervalidus.com> wrote in message > news:032601c0b192$1eaed610$0214a8c0enterprise... > > Ahh... that's right, my bad. =) > > > > ----- Original Message ----- > > From: "James Atkinson" <thefinnphpbb.com> > > To: "PHP General List" <php-generallists.php.net> > > Sent: Tuesday, March 20, 2001 4:59 PM > > Subject: RE: [PHP] Create a Bulletin Board > > > > > > > Anyone who wants a threaded discussion board won't be satisfied with > > phpBB. > > > It dosan't contain a threaded view and probably never will :) > > > > > > - James Atkinson > > > Lead Developer, phpBB > > > > > > > You could also check out phpBB: > > > > > > > > http://www.phpbb.com > > > > > > > Just keep track of a parent message number. You > should be able > > > > > > > to use that one field to trace any message back to a root > message. > > > > > > > And with that information, you should be able to build a > "thread". > > > > > > I concur on that. > > > > > > > > > > Good to see it's not just me. :p > > > > > > > > > > > However, I am more fond of the UBB/vBulletin style of > > > > > > threads, personally. > > > > > > > > > > UBB style threads? > > > > > > > > > > Chris > > > > > > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > > > For additional commands, e-mail: php-general-helplists.php.net > > > To contact the list administrators, e-mail: > php-list-adminlists.php.net > > > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > > For additional commands, e-mail: php-general-helplists.php.net > > To contact the list administrators, e-mail: php-list-adminlists.php.net > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net

    attached mail follows:


    Oh...Well, learning something new every day. Seriously; I have never been coding against a database.

    - Richard

    ""James Atkinson"" <james.atkinson100world.ca> wrote in message news:GKEDJMJHCLHHPECPGBOMGEHPDBAA.james.atkinson100world.ca... > I don't know of any PHP bulletin boards that use flat files. I database is > far better for storing data like this anyway. Ever seen a UBB board with > over 1,000,000 posts? Doing a simple search on it crashes the server... > > The next version of phpBB will have support for MySQL, Postgres, MSSQL, ODBC > and Oracle. > > - James > > > -----Original Message----- > > From: Richard [mailto:oblivionlunamorena.net] > > Sent: March 20, 2001 3:08 PM > > To: php-generallists.php.net > > Subject: Re: [PHP] Create a Bulletin Board > > > > > > Do you know anyone that doesn't use MySQL? I mean, that uses flatfiles? > > > > - Richard > > > > > > ""Yoshi Melrose"" <webmastervalidus.com> wrote in message > > news:032601c0b192$1eaed610$0214a8c0enterprise... > > > Ahh... that's right, my bad. =) > > > > > > ----- Original Message ----- > > > From: "James Atkinson" <thefinnphpbb.com> > > > To: "PHP General List" <php-generallists.php.net> > > > Sent: Tuesday, March 20, 2001 4:59 PM > > > Subject: RE: [PHP] Create a Bulletin Board > > > > > > > > > > Anyone who wants a threaded discussion board won't be satisfied with > > > phpBB. > > > > It dosan't contain a threaded view and probably never will :) > > > > > > > > - James Atkinson > > > > Lead Developer, phpBB > > > > > > > > > You could also check out phpBB: > > > > > > > > > > http://www.phpbb.com > > > > > > > > Just keep track of a parent message number. You > > should be able > > > > > > > > to use that one field to trace any message back to a root > > message. > > > > > > > > And with that information, you should be able to build a > > "thread". > > > > > > > I concur on that. > > > > > > > > > > > > Good to see it's not just me. :p > > > > > > > > > > > > > However, I am more fond of the UBB/vBulletin style of > > > > > > > threads, personally. > > > > > > > > > > > > UBB style threads? > > > > > > > > > > > > Chris > > > > > > > > > > > > > > > > > > > > > > -- > > > > PHP General Mailing List (http://www.php.net/) > > > > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > > > > For additional commands, e-mail: php-general-helplists.php.net > > > > To contact the list administrators, e-mail: > > php-list-adminlists.php.net > > > > > > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > > > For additional commands, e-mail: php-general-helplists.php.net > > > To contact the list administrators, e-mail: php-list-adminlists.php.net > > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > > For additional commands, e-mail: php-general-helplists.php.net > > To contact the list administrators, e-mail: php-list-adminlists.php.net > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >

    attached mail follows:


    I have a script that looks for <title> tags, but it doesn't seem to be picking up the titles, can anyone tell me why?

    Almost all of the web pages look like: <? if(!isset($mainfile)) { include("mainfile.php"); } if(!isset($headers_sent)) { include("header.php"); } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <TITLE>Some Title</TITLE> <META NAME="Author" CONTENT="Some Name"> </HEAD> <BODY> Here's my function:

    function getTitle(&$doc) { if (eregi("<title>(.*)</title>", $doc, $titlematch)) $title = trim(eregi_replace("[[:space:]]+", " " , $titlematch[1])); else $title = ""; if ($title == "") $title = "Untitled Document"; return $title; } it runs okay... But, when I use the function, everything is coming back as "Untitled Document". Any suggestions? Clayton Dukes --------------------------------------------------------------------- Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net

    attached mail follows:


    On Wed, 21 Mar 2001 08:46, Clayton Dukes wrote:

    > > I have a script that looks for <title> tags, but it doesn't seem to be > picking up the titles, can anyone tell me why? > > > Almost all of the web pages look like: > > <? > if(!isset($mainfile)) { include("mainfile.php"); } > if(!isset($headers_sent)) { include("header.php"); } > ?> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> > <HTML> > <HEAD> > <TITLE>Some Title</TITLE> > <META NAME="Author" CONTENT="Some Name"> > </HEAD> > <BODY> > > > Here's my function: > > function getTitle(&$doc) > { > if (eregi("<title>(.*)</title>", $doc, $titlematch)) > $title = trim(eregi_replace("[[:space:]]+", " " , > $titlematch[1])); else > $title = ""; > if ($title == "") > $title = "Untitled Document"; > return $title; > } > > it runs okay... > But, when I use the function, everything is coming back as "Untitled > Document". > > Any suggestions? > > > Clayton Dukes

    Can't tell you what your problem is, but FWIW here is what I use to do the job - if you can extract some useful bits from that....

    <?php function get_title($target) { /* This little function will open the file passed in as $target and extract the TITLE tag and the text contained therein. If nothing is found it returns a default value. */

    $contents = File($target); $exists=0; $title = ""; for($i=0; $i < count($contents);$i++){ if(eregi("<TITLE>", $contents[$i])): $exists=true; endif;

    if($exists): $title .= $contents[$i]; endif;

    if(eregi("</TITLE>", $contents[$i])): break; endif;

    } /* End FOR */

    /* Get rid of end of line in case title tag is spread over multiple lines */ $title = eregi_replace(10, "", $title); $title = eregi_replace(13, "", $title); if( (empty($title)) || (strtoupper($title) == "<TITLE></TITLE>")): $title = '<TITLE>Research Centre for Injury Studies</TITLE>'; endif; /* Clear the slashes, in case there are wonky chars in the title (Thanks, James!) */ return stripslashes($title); } /* End function get_title */ ?>

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


    hi

    is it possible to load my DB from other servers? if yes, how? like mysql_connect("http://blah.com","username","pass");

    thanks.

    attached mail follows:


    Yes it is you just need to make sure you have the port open, to find out more read the manual

    -----Original Message----- From: McShen [mailto:webmastercelebritieszones.com] Sent: Wednesday, March 21, 2001 12:43 PM To: php-generallists.php.net Subject: [PHP] load DB from other server

    hi

    is it possible to load my DB from other servers? if yes, how? like mysql_connect("http://blah.com","username","pass");

    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
    

    attached mail follows:


    I don't know if anyone got my last message....

    I was wondering if there was a way to execute a php3 file in UNIX so I can check for syntax, etc.? It would be similar to the command: perl [filename].

    Thank you, Bill Mitcheson (Network Admin., Pyramus Online).

    attached mail follows:


    Bill Mitcheson <turtlepyramus.com> wrote:

    > I don't know if anyone got my last message.... > > I was wondering if there was a way to execute a php3 file in UNIX so I > can check for syntax, etc.? It would be similar to the command: perl > [filename]. >

    just do

    /path/to/php/php script.php

    -- 
    Henrik Hansen
    

    attached mail follows:


    on my server in /tmp it saves the session details ... but for some reason it's keeping them there ... is there a way (hopefully with out doing a cron job) that i can tell em to delete them selves after x number of hrs/mins?

    Peter Houchin peterhsunrentals.com.au ========================================================= _____ __ /\ /_/_/_\ / |_/ \ /_/_/_ __ __ __ __ / \ \_/_/_\ /_/ /_/ /_/ /_/ \ _ / ___\_\_\/ /_/_/_/ /_//\/_/ \_/ \/\_/ \_//_/_/ /_/_/_/ /_/ \/_/ v ________ ________________________________________ /_/_/_/_/ /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ /_/_ _/_/ ______ __ __ /_/ ____ __ ______ /_/_/_/_/ /_/_/_/ /_/ /_/ /_/ /_/\_\ /_/ /_/_/_/ /_/ \_\ /_/ _/ /_//\/_/ /_/ /_/__\_\ /_/___ _\_\_\ /_/ \_\/_/_/_/ /_/ \/_/ /_/ /_/ \_\/_/_/_//_/_/_/ ========================================================= Telephone : (03) 9329 1455 Facsimile : (03) 9329 6755 ************* We rent the dot in .COM! **************

    attached mail follows:


    edit php.ini for the expiry and the gc (garbage collection) percentage.

    -- 
    

    Chris Lee leemediawaveonline.com

    ""Peter Houchin"" <peterhvfsa.com.au> wrote in message news:NFBBJNAGDIPHLCGPBLKDGEBICBAA.peterhsunrentals.com.au... on my server in /tmp it saves the session details ... but for some reason it's keeping them there ... is there a way (hopefully with out doing a cron job) that i can tell em to delete them selves after x number of hrs/mins?

    Peter Houchin peterhsunrentals.com.au ========================================================= _____ __ /\ /_/_/_\ / |_/ \ /_/_/_ __ __ __ __ / \ \_/_/_\ /_/ /_/ /_/ /_/ \ _ / ___\_\_\/ /_/_/_/ /_//\/_/ \_/ \/\_/ \_//_/_/ /_/_/_/ /_/ \/_/ v ________ ________________________________________ /_/_/_/_/ /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ /_/_ _/_/ ______ __ __ /_/ ____ __ ______ /_/_/_/_/ /_/_/_/ /_/ /_/ /_/ /_/\_\ /_/ /_/_/_/ /_/ \_\ /_/ _/ /_//\/_/ /_/ /_/__\_\ /_/___ _\_\_\ /_/ \_\/_/_/_/ /_/ \/_/ /_/ /_/ \_\/_/_/_//_/_/_/ ========================================================= Telephone : (03) 9329 1455 Facsimile : (03) 9329 6755 ************* We rent the dot in .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:


    Greetings.

    (yes.. I am active)

    When a user loggs on, I pass the string $loggtime, that is written to a file. Whenever a this user refreshes any of the pages, certain tasks are performed, and a file's contents is checked, (which contents is a single line of time). If the $loggtime is newer, nothing would happen, but if the $loggtime is older than what is written in the file, something should happen. Any ideas of how I can compare two dates?

    - Richard

    ps: to all who wonders, I am writing a really small community. Now, this question is related whenever a new message is sent.. The message is written to a file, and I check that file everytime a site is refreshed. The file is arrayed with "|" as a separator. :Ds

    attached mail follows:


    Depending on what sort of timestamp you are getting you should be able to just do: if ($loggtime > $oldLoggtime) then...

    With just a straight unix timestamp(via mktime();) this would work fine.

    --
    phill
    

    ""Richard"" <oblivionlunamorena.net> wrote in message news:998o75$aol$1toye.p.sourceforge.net... > Greetings. > > (yes.. I am active) > > When a user loggs on, I pass the string $loggtime, that is written to a > file. Whenever a this user refreshes any of the pages, certain tasks are > performed, and a file's contents is checked, (which contents is a single > line of time). If the $loggtime is newer, nothing would happen, but if the > $loggtime is older than what is written in the file, something should > happen. Any ideas of how I can compare two dates? > > - Richard > > > ps: to all who wonders, I am writing a really small community. Now, this > question is related whenever a new message is sent.. The message is written > to a file, and I check that file everytime a site is refreshed. The file is > arrayed with "|" as a separator. :Ds > > > > -- > 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 forgot to mention that the timestamp is: $date_output = date("Y-m-d H:i A");

    But that would work as fine correct?

    - Richard

    ""Phillip Bow"" <philboreilly.com> wrote in message news:998p9a$hqp$1toye.p.sourceforge.net... > Depending on what sort of timestamp you are getting you should be able to > just do: > if ($loggtime > $oldLoggtime) then... > > With just a straight unix timestamp(via mktime();) this would work fine. > -- > phill > > ""Richard"" <oblivionlunamorena.net> wrote in message > news:998o75$aol$1toye.p.sourceforge.net... > > Greetings. > > > > (yes.. I am active) > > > > When a user loggs on, I pass the string $loggtime, that is written to > a > > file. Whenever a this user refreshes any of the pages, certain tasks are > > performed, and a file's contents is checked, (which contents is a single > > line of time). If the $loggtime is newer, nothing would happen, but if the > > $loggtime is older than what is written in the file, something should > > happen. Any ideas of how I can compare two dates? > > > > - Richard > > > > > > ps: to all who wonders, I am writing a really small community. Now, this > > question is related whenever a new message is sent.. The message is > written > > to a file, and I check that file everytime a site is refreshed. The file > is > > arrayed with "|" as a separator. :Ds > > > > > > > > -- > > 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:


    If I were doing this for simplicity's sake I would alter this to be: $timestamp = mktime(); $date_output = date("Y-m-d H:i A", $timestamp); Then store the $timestamp in the (pseudo)database. Any operations I need to compare times will be done on the $timestamp data rather than the $date_output data which contains a bunch of string data that would otherwise have to be compensated for with more code.

    --
    phill
    

    attached mail follows:


    Thanks..

    So $date_output should only be used to print out current time, and $timestamp is the one I should use to compare the dates?

    - Richard

    ""Phillip Bow"" <philboreilly.com> wrote in message news:998rej$16l$1toye.p.sourceforge.net... > If I were doing this for simplicity's sake I would alter this to be: > $timestamp = mktime(); > $date_output = date("Y-m-d H:i A", $timestamp); > Then store the $timestamp in the (pseudo)database. Any operations I need to > compare times will be done on the $timestamp data rather than the > $date_output data which contains a bunch of string data that would otherwise > have to be compensated for with more code. > -- > phill > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >

    attached mail follows:


    Hi there I am trying to build an application where a user can use an HTML form, fill out some fields, select a file from their hard drive, and have it emailed as an attachment with the contents of the form. (essentially, fill in your name and address, use my module to attach ms-word file of your resume, send email of all).

    I have the part with the file upload working. I have the snipet of code from phpWizard (Sasha and Tobias) http://www.phpwizard.net/resources/phpMisc/scripts/pretty/mail.php3

    I am able to make it work with an image as the attachment, but when I select an MS-WORD document, which is the goal of this application, it still thinks it's an image, and doesn't work properly.

    I think my problem has something to do with the $ctype. I tried application/MSWORD, but that didn't work. I think this the line of code where the problem is:

    $attachment = fread(fopen("test.doc", "r"), filesize("test.doc"));

    $mail = new mime_mail(); $mail->from = "foobar.com"; $mail->headers = "Errors-To: foobar.com"; $mail->to = "barfoo.com"; $mail->subject = "Testing..."; $mail->body = "This is just a test.";

    $mail->add_attachment("$attachment", "test.doc", "application/msword"); $mail->send();

    Can anyone shed some light on this? Please??????

    thanks -jen .

    attached mail follows:


    Hi Almir,

    Yes I checked the names and they are correct. Yes I am able to connect using the command prompt from the remote server as I am able to list the databases, tables, etc. remotely.

    Thanks,

    Floyd

    almir wrote:

    > when you connect to server issue > "show databases" -query then look inside what you can see some servers are > case sensitive > i hope that will help, > and are you sure that you are connected , it could be that you may not > connect at all because of firewalls or something like that > -almir > > "Floyd Piedad" <piedadakasia.com> schrieb im Newsbeitrag > news:3AB764B6.C4B8713Aakasia.com... > > I am trying to connect to a remote mySQL server through PHP but I get a > > mySQL error of "Unknown Database". I can connect to the remote mySQL > server > > using the mysql command but not with PHP. > > > > 1. How can I debug what the problem is? > > 2. Do I need to specify the Port parameter in PHP? > > 3. Which mySQL error logs do I examine to help me out - the one on the > local > > machine or on the remote machine? > > 4. And where is the mySQL error logs anyway? > > > > I tried other lists but no help there. I hope this list helps! > > > > Thanks all, > > > > Floyd Piedad > > > > > > -- > > 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:


    If you have time please take a look and let me know there are any corrections you would make in terminology and accuracy. I'm fairly new to PHP. I want everything to be correct. http://www.webdesigns1.com/php/tutorial_test.php Jeff Oien

    attached mail follows:


    Can anyone point me at a way to pick up a url entered in a form and construct an HTTP request that will download the requested page into the browser window with an enforced refresh that bypasses a local cache ?

    (I have a tough local policy to get thru which doesn't take account of developers working at a distance...)

    Thanks, Barry

    attached mail follows:


    ATTENTION: ANY SERIOUS NETWORK MARKETER TAKE A LOOK AT THE FOLLOWING OPPORTUNITY I CAME ACROSS!! IF YOU PLUG INTO THEIR PROVEN SYSTEM, THEY GUARANTEE YOU SUCCESS, AND PROVIDE YOU WITH FREE LEADS TO BUILD YOUR GROUP!!

    DO NOT LET THIS SLIP AWAY!! CLICK BELOW AND FIND OUT AS I DID, WHY THESE GUYS ARE THE LEADERS IN THE INDUSTRY!!

    http://www.geocities.com/businessupdates2000

    ***************************************************************** THIS EMAIL COMPLIES WITH ALL REGULATIONS. TO BE REMOVED WITHIN 24 Hours, SIMPLYEMAIL permanentremovalexcite.com FOR IMMEDIATE REMOVAL FROM ANY FUTURE EMAILS FROM OUR COMPANY. *****************************************************************

    attached mail follows:


    Leaders of the industry with a geocities address... whopdee do

    -----Original Message----- From: timmyralley8627juno.com [mailto:timmyralley8627juno.com] Sent: Wednesday, 21 March 2001 1:09 PM To: php-generallists.php.net Subject: [PHP] A NETWORK MARKETER?

    ATTENTION: ANY SERIOUS NETWORK MARKETER TAKE A LOOK AT THE FOLLOWING OPPORTUNITY I CAME ACROSS!! IF YOU PLUG INTO THEIR PROVEN SYSTEM, THEY GUARANTEE YOU SUCCESS, AND PROVIDE YOU WITH FREE LEADS TO BUILD YOUR GROUP!!

    DO NOT LET THIS SLIP AWAY!! CLICK BELOW AND FIND OUT AS I DID, WHY THESE GUYS ARE THE LEADERS IN THE INDUSTRY!!

    http://www.geocities.com/businessupdates2000

    ***************************************************************** THIS EMAIL COMPLIES WITH ALL REGULATIONS. TO BE REMOVED WITHIN 24 Hours, SIMPLYEMAIL permanentremovalexcite.com FOR IMMEDIATE REMOVAL FROM ANY FUTURE EMAILS FROM OUR COMPANY. *****************************************************************

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


    Ola,

    utiliza um numero mui grande! :)

    <? setcookie("nombre1",'nombre2',time()+999999); ?>

    ;) Nuno

    Francesc Lladó wrote:

    > <? setcookie("nombre1",'nombre2',time()+86400); ?> > > Utilizo este código para depositar una cookie en el cliente, lo único > que me caduca al cabo de un tiempo, ¿alguién sabe qué es lo que tengo > que poner para que la cookie no caduque nunca? > > Gracias > > -- > Francesc Lladó i Dardet > francesclladointerkonet.com > > Interkonet Publishers s.l. > Atenes 22 > 08006 Barcelona > Tel. 932 530 866 > Fax. 932 530 866 > http://www.interkonet.com > interkonetinterkonet.com

    attached mail follows:


    Hi, This might be a little of topic... I am having real trouble with cached PHP pages, they just never seem to refresh... I have dissabled my local cache (IE5.5 Win2k) to the best of my knowledge (suggestions on how to do this properly welcome) but are still having trouble. I am not sure whether it is my local cache my ISP's cache. Anyhow, can anyone suggest a tag or something for me to put in my page so it refreshes and bypasses the cache? It is getting _REALLY_ annoying :\ Thanks,

    Matt Stone

    attached mail follows:


    Hi Matt,

    For a very extensive solution, check this out:

    http://www.zend.com/codex.php?id=435&single=1

    Or, if you just want all your pages to be forced to load all the time regardless...

    header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); header("Expires: Mon,26 Jul 1997 05:00:00 GMT");

    -----Original Message----- From: Matt Stone [mailto:mattplanetveggie.com] Sent: Tuesday, March 20, 2001 7:39 PM To: PHPlist Subject: [PHP] Cache

    Hi, This might be a little of topic... I am having real trouble with cached PHP pages, they just never seem to refresh... I have dissabled my local cache (IE5.5 Win2k) to the best of my knowledge (suggestions on how to do this properly welcome) but are still having trouble. I am not sure whether it is my local cache my ISP's cache. Anyhow, can anyone suggest a tag or something for me to put in my page so it refreshes and bypasses the cache? It is getting _REALLY_ annoying :\ Thanks,

    Matt Stone

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