saving variables and including files.

From: Joe (joe_at_quibb.org)
Date: 12/30/03

  • Next message: Jay Blanchard: "RE: [PHP] saving variables and including files."
    Date: Tue, 30 Dec 2003 14:53:50 -0500
    To:  php-general@lists.php.net
    
    

    I used to program in Miva some because it was fairly easy. I got used
    to using some things and was wondering if there is a PHP equivalent.

    <MvIF EXPR="{submit}">
      <MvLET assignedto="(Unassigned)">
      <MvASSIGN NAME="help" VALUE="len(description)">
      <MvASSIGN NAME="bugnumber" VALUE="{random(1000)$time_t$random(help)}">
      <MvLET description=glosub(description,asciichar(13),"<BR>")>
      <MvASSIGN NAME="" VALUE="{fdelete('temp.dat')}">
      <MvEXPORT FILE="temp.dat"
    FIELDS="bugnumber,subject,description,reporter,assignedto,state, id"
    DELIMITER="|$%">
      <MvIMPORT FILE = "buglist.dat" FIELDS = "bugnumber, subject,
    description, reporter, assignedto, state, id" DELIMITER = "|$%">
        <MvEXPORT FILE="temp.dat"
    FIELDS="bugnumber,subject,description,reporter,assignedto,state, id"
    DELIMITER="|$%">
      </MvIMPORT>
      <MvASSIGN NAME="" VALUE="{frename('temp.dat','buglist.dat')}">
    </MvIF>

    The first MvEXPORT would at a the new data to the top of the list. The
    the MvIMPORT with the nested MvEXPORT would add the rest of the data to
    the list of data. I've been looking through my PHP book and only see
    how to use databases in it. I was wondering if there is a way to save
    something like this without the use of a database. I plan on making a
    few form mages that are going to save some data, but like 3 or 4 entries
    each. Since my webspace limits the number of databases, i'd rather do
    it without the use of that.

    My second question is about including pages.

    would
    |<?PHP include 'menu.html'; ?>
    include the file the same way a SSI include would?

    Thanks.
    -Joe
    |


  • Next message: Jay Blanchard: "RE: [PHP] saving variables and including files."

    Relevant Pages

    • Re: [PHP] Getting mysql_query results into an array
      ... loop through mysql result set to build $array ... perform some kind of calculation upon $array ... Databases are highly optimized for this kind of thing, ... query is nasty and the PHP is fast and easy, ...
      (php.general)
    • Re: [PHP] Getting mysql_query results into an array
      ... perform some kind of calculation upon $array ... it's USUALLY much more efficient to write an SQL query ... Databases are highly optimized for this kind of thing, ... query is nasty and the PHP is fast and easy, ...
      (php.general)
    • RE: [PHP] Microsoft .NET arguement
      ... I've found MS SQL (and MS Access databases) to be extremely fast ... have them installed alongside PHP for Win32. ... MySQL started slowing down before the MS SQL did. ...
      (php.general)
    • Re: DB newbie needs suggestions for bsd-based {db + frontend} ports
      ... MySQL on FreeBSD 4.10-RELEASE and I'm making steady progress. ... threading problems in combination with PHP. ... Filemaker, but I did some work in MS Access.. ... databases will assume MySQL. ...
      (comp.unix.bsd.freebsd.misc)
    • Are there PHP database plug-ins for Rdb and MySQL on VMS?
      ... I have a budget of zero, and I know a lot more about Perl than I do about PHP. ... A quick google search turned up discussion about using the ODBC PHP plugin to ... talk to Rdb databases, but that won't work for Rdb running on the same machine; ...
      (comp.os.vms)