saving variables and including files.
From: Joe (joe_at_quibb.org)
Date: 12/30/03
- Previous message: Apz: "Re: [PHP] How do I protect downloadable files?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
|
- Previous message: Apz: "Re: [PHP] How do I protect downloadable files?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|