[snip]
I do't know to be honest, how do I find out? (I'm on a unix server)
[/snip]
you could use the phpinfo() function and check the value of
session.save_handler, if it is "files" the session data is in files in
the
session.save_path directory.
--
PHP General Mailing List (http://www.php.net
[snip]
Until I get this sorted, can I kill everyones stored session data?
[/snip]
How is the session data saved? It is to files, you could just delete
all of the session files.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
That works great, I am messing myself up, however because I am using
checkboxes so when I run this, if I have unchecked the checkbox, the
value
doesn't come through and I want an unchecked box to be 0 for example so
I
may need some javascript...
[/snip]
Can only one option be checked per us
[snip]
why would you validate data on the server
if you have a JavaScript that checked the user's input before it gets
submitted to the server ? I mean the whole point of you having that
JavaScript is to make sure the the correct data gets entered so why
bother checking it once again on the server
being relied upon for more serious validation.
--
Matt Grimm
"Matt Grimm" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Is there a distinct advantage to doing form validation / error checking on
> the server side using PHP? That's how I've always don
was ever posted?
I'm just talking about the basics, like empty required fields, illegal
characters, string lengths, etc.
What are your preferred methods? I do an awful lot of content management
with HTML forms, so it's not an entirely spurious question.
--
Matt Grimm
Web Developer
The H
Can anyone clarify this for me? Is open_basedir recursive or restricted to
the exact paths specified?
--
Matt Grimm
"Matt Grimm" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> If my server has an open_basedir restriction in place for my home
directory,
>
[snip]
Anyone can help , how to post variables from server side .. as from php
page
to other without HTML form and submistion ???
[/snip]
I have never used it but I think
http://pear.php.net/package/HTTP_Client is what you want to look at
--
PHP General Mailing List (http://www.php.net/)
To un
[snip]
any ideas?
[/snip]
Have you tried move_uploaded_file?
http://www.php.net/move_uploaded_file
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
thanks to ya'll I've gotten a picture uploaded... but now what I can't
figure out how to do is rename it. I want to rename it something like
$id.extension... right now it is just showing up in the directory as the
original file... any ideas?
thanks
matt
--
PHP Gener
If my server has an open_basedir restriction in place for my home directory,
I understand that to mean I can only open files in the same directory as
whatever script is currently running. Is that correct?
--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820
You can't use variables inside single quotes, either.
This:
'/path/to/old.$today'
ought to be:
"/path/to/old.$today"
--
Matt Grimm
"Jas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I think I must be missing something but this
$_SERVER['SCRIPT_NAME']
or
$_SERVER['PHP_SELF']
--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Parkway
Anchorage, AK 99508
907.770.6200 ext. 686
907.336.6205 (fax)
E-mail: [EMAIL PROTECTED]
Web: www.healthtvchannel.
[snip]
What is the best way to document such projects? How
you developers document your project?
[/snip]
GIYF
http://phpdocu.sourceforge.net/
http://www.epersonae.com/snapping/archives/000390.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
th: '.count($l_aTest);
}
// Do high columns first
for ($i = 0; $i < $l_iMod; $i++) {
$l_aTable["column$i"] = $l_iHigh;
}
// Do the rest
for ($i = count($l_aTable); $i < $l_iColumnWidth; $i++) {
$l_aTable["column$i"] = $l_iLow;
}
echo 'Result:'; prin
s 3, 2, 2,
which the code will give you. If you want, echo the other variables and it
will make more sense.
--
Matt Grimm
"Dareal Hamsta" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I get:
>
> Your columns are: 102, 101, 101
>
> ???
>
> The o
> $l_iSecond = ($l_iMod < 2 ? $l_iHigh - $l_iMod : $l_iHigh);
This should actually be:
$l_iSecond = ($l_iMod == 1 ? $l_iHigh - $l_iMod : $l_iHigh);
but it works both ways.
--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Parkway
Anchora
($l_iMod < 2 ? $l_iHigh - $l_iMod : $l_iHigh);
$l_iThird = $l_iLow;
echo "Your columns are: $l_iFirst, $l_iSecond,
$l_iThird";
--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Parkway
Anchorage, AK 99508
907.770.6200 ext. 686
907.336
Hello... could anyone please tell me how to upload a picture using php?
I have this
but don't know how to specify how to store the pictures on the server...
thanks!
thanks
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
figured it out i had the sort before the where clause and that messed it
up.
"Matt Hedges" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
>
> I'm trying to pull from a database... I can pull an array, but I want to
> just be able t
Hello,
I'm trying to pull from a database... I can pull an array, but I want to
just be able to pull one item instead of all of them... I know somehow you
can do this with page.php?id=x... but can't figure it out...
any help greatly appreciated,
thanks,
Matt
--
PHP General Mailing
[snip]
I noticed when I use the hidden html input tag with hidden data in
it
then when I click the submit button to submit the webpage, the hidden
data
then show up in the URL address.
[/snip]
I think if you just change the request method to post, the data will
not show up in the url.
--
PHP
Close. You need to adjust for the length of your pattern. So if you're
matching against "", then your actual start position (minus the
start comment) is the strpos plus strlen($pattern), or 14 in this case.
$startPos = strpos($file, '') + 14;
--
Matt Grimm
Web Develo
In the very simplest way? Just use a str_replace on the quotes:
$words=explode(" ", str_replace('"', '', strtolower($keywords)));
--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Parkway
Anchorage, AK 99508
; ", "your long string");
--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Parkway
Anchorage, AK 99508
907.770.6200 ext. 686
907.336.6205 (fax)
E-mail: [EMAIL PROTECTED]
Web: www.healthtvchannel.org
"Vernon" <[EMA
ll return TRUE. This does not
indicate whether the user accepted the cookie."
http://us2.php.net/manual/en/function.setcookie.php
--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Parkway
Anchorage, AK 99508
907.770.6200 ext. 686
907.336.6205
[snip]
function test($s)
{
if($s = 'this') return false;
if($s = 'that') return false;
return true;
}
[/snip]
try this:
function test($s)
{
if($s == 'this') return false;
if($s == 'that') return false;
return true;
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
[snip]
My problem is that any field that contains a double quote, all data
after the first double quote is missing from the form field. When I
look at the long URL I do see a %22 where the " are supposed to be, and
all other data is there too.
[/snip]
Take a look at the html source. What is p
[snip]
session_start();
if($_SESSION['counter_file'] !==$counterFile)//See if
visitor has already been counted for this page
{$num += 1;
$_SESSION['counter_file'] = $counterFile;
}
echo $_SESSION['counterFile'] . '
uot;
http://us3.php.net/manual/en/features.remote-files.php
--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Parkway
Anchorage, AK 99508
907.770.6200 ext. 686
907.336.6205 (fax)
E-mail: [EMAIL PROTECTED]
Web: www.healthtvchannel.org
"D.H.&quo
res.remote-files.php
--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Parkway
Anchorage, AK 99508
907.770.6200 ext. 686
907.336.6205 (fax)
E-mail: [EMAIL PROTECTED]
Web: www.healthtvchannel.org
"Bruce" <[EMAIL PROTECTED]> wr
PHP manual recommends this, which works for me:
// Unset all of the session variables
$_SESSION = array();
// Destroy the session
session_destroy();
--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Parkway
Anchorage, AK 99508
907.770.6200 ext
> PHP script that you can find here,
although it may be more than you are looking for:
http://www.devdump.com/phpxml.php
I've written a DOMXML-based PHP -> XML function that takes Kris' structure
as input, if you're interested.
--
Matt Grimm
Web Developer
The Health TV Cha
[snip]
ex: display.php
session_start();
$agencyID=$_SESSION['agencyID'];
$agencyName=$_SESSION['agencyName'];
But after awhile, the session seems to fail and I end up back at the
index page because the $agencyID gets voided. Is there a timeout on
sessions other than c
The directive session.cookie_lifetime in your php.ini is what a session
cookie timeout defaults to. You can manually set the lifetime when you
create it using session_set_cookie_params().
http://us3.php.net/manual/en/function.session-set-cookie-params.php
--
Matt Grimm
Web Developer
The Health
[snip]
1) How do experienced developers layout their [dev] directory
hierarchy?
For example, is there an accepted place to put one's function
libraries? On
IIS (Windows XP), the default directory structure is
c:\inetpub\
AdminScripts
iissamples
mailroot
Scripts
wwwroot\
ll it when $counter is @ the last line in my
"tips" file to reset to zero
thanks
Matt
Your subject line raises a completely different question than your message.
Are you looking to sort a multi-dimensional array or "select distinct
values" from one?
--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Parkway
Anchorage
[snip]
Eval ($contentfunction); gave me a parse error:
Parse error: parse error in
/home/pickled/public_html/main/inc/html.php(145)
: eval()'d code on line 1
[/snip]
try to add a semicolon to the end of the variable $contentfunction =
"newsadmincontent();";
--
PHP General Mailing List (http://
[snip]
I have 2 list fields in a form. The second is populated basing on
selection in field 1. Can anyone pls tell me how to do this in PHP ?
[/snip]
you can't, onchange is fired with javascript on the client. You have a
number of ways you can do it a few are.
1. have on change submit the form to
try eval($contentfunction);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
I put this right above like 871:
print "$_POST[domainregister_domain$i]";
So now that "print" line is 871. It produces the exact same error as
the mysql_query() line.
[/snip]
I should have mentioned this in my last email. You should try a
print_r of the $_POST array.
print "";
print_r($
[snip]
I was wondering a good place I could get started on reading excel
spreadsheets in PHP ive seen a couple of things out there that will
take
data from the web and transform it into a .xls file. I was wondering if
I
could take a XLS file with php and read it, and rip out certain data
from it
:-
[snip]
Sorry, should have mentioned that I tried quoting them already. That
gives a T_VARIABLES parse error.
Thanks for the reply,
Tyler
[/snip]
What happens if you comment out the mysql statement and just echo the
variables?
echo $_POST[domainregister_domain$i]
$_POST[domainregister_ty
[snip]
I've had the most luck using the pop-up window method. In the
element I call onSubmit="{open some window here}" This works as the
pop-up
appears while the file is transferring. Here's where I run into
problems.
I've tried all kinds of examples found on google and can never get it
to
work r
[snip]
hello all i need help to enter one variable in a cookie and then
retreive it back later, i know this probably sounds dumb to most but
this is really the first time ive tried working with cookies so please
bear with me, thanks for any help.
[/snip]
this should give you a good start http://ww
What if you use something like SourceForge. If you try to access a
page
the requires you to be logged in when it redirects you to the login
page
it includes in the URL the page that the user tried to access
(ie login.php?redirect=page3.php) Then when the user successfully logs
in they redirect to
would cause this crash,
and if so, whether or not there are any work arounds.
This only occured in IE6 on Win XP.
Thanks,
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hi,
i am looking for an open source php module that does some simple content
management. it seems that something like this must exists, since it is a
pretty common need, but i'm not sure where to find such a thing. here is
a description of the functionality i am looking for: ability to updat
specific
address, it will automatically be distributed to everyone on the forwarding
list. Please help if you have any ideas or suggestions.
Thanks,
Matt
http://sweetphp.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
John,
Have tried this but unfortunately had no effect.
Everything appears to fine if the session variable does not exist ie:
the user is redirected to the log in page.
It's just when the user has logged in and the session is set that IE
throws it's toys out of the pram.
Cheer
(!ISSET($_SESSION['loggedin'])) {
header("Location: /admin/login/");
}
else
{
//rest of the page.
}
?>
Any ideas why this would cause IE to crash
Cheers,
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm looking for a class that returns a rss/rdf feed with each of the
items as an array, or suggestions on how to items into an array...
try google and freshmeat.net
You should be able to find plenty of examples and classes.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vi
Question is this. As a seasoned developer, my natural instinct is to
just
write a script(s) to access all the information that I need and write
the
appropriate information out to the file. Is there a better way to do
this?
Is there some type of application that has been developed that will
take a
hi,
I was wondering if anyonehad a script to upload files.
Thank You
http://www.php.net/features.file-upload
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi, is there a PHP function that will convert MM/DD/ to MMDD?
Also I will need to take into affect some people may put in M/D/
(some
people may put in 1 instead of 01, 2 instead of 02, etc). Is there a
way
to do this?
take a look at these functions
http://www.php.net/mktime
ht
I am sort of new at this, I am wondering if it is possible to find the
display settings of the user
I know that
will give you
Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
is there one that will recover the display settings of the user?
Matt
In PHP, what does the operator "-=" do?
$var -= 1 is the same as $var = $var - 1
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Any idea how I can get a feed from Slashdot? or any other good
programming\tech sites
am basically trying to get a feed from around 4 sites for around 5
links
each...
http://slashdot.org/slashdot.rss
try google, there is a bunch of good ones.
--
PHP General Mailing List (http://www.php.net/
I am wondering if it is possible to create web services using php? If
so,
where would I go to find some resources about it?
try google
GIYF
http://www.google.com/search?q=web+services+using+php&sourceid=mozilla-search&start=0&start=0&ie=utf-8&oe=utf-8
--
PHP General Mailing List (http://www.p
;date_file_sort');
// output results
for($x = 0; $x < count($menu_item); $x++)
{
echo $menu_item[$x]."";
}
Here are the the results I get:
01-04-2004
08-13-1982
12-04-2003
11-19-2003
12-24-2003
Anyone know why these results seem totally random? Please help.
Thanks,
Matt
** Low Priority **
>>> Jon Bennett <[EMAIL PROTECTED]> 12/4/2003 9:43:53 AM >>>
Would I be right in thinking that php alone can't change the content of
a dropdown once the browser has loaded the file without a page refresh
??? In which case I need to source out some javascript, anyone got
any
** Low Priority **
Is there a way to extend the php session timeout for particular pages?
Alternatively, is there a way, other than using cookies, to store user
data
from page-to-page?
I think you can use ini_set() to change session.gc_maxlifetime, that
will change your session timeout.
You co
Is there a way to extend the php session timeout for particular pages?
Alternatively, is there a way, other than using cookies, to store user
data
from page-to-page?
I think you can use ini_set() to change session.gc_maxlifetime, that
will change your session timeout.
You could pass data around
ll re-parse that post data and create a duplicate record. How can I
prevent this? Cache control?
Thanks,
--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Parkway
Anchorage, AK 99508
907.770.6200 ext. 686
907.336.6205 (fax)
E-mail: [EMAIL PROT
Name|17|5|7|12|26|8|4|0|2|0|40|12.50|3|33.30|19 it should 16 pieces.
Any
thoughts on how I can get it to cut off at the 19, one thing that I
should say
is 19 is value that can change.
Can't you just use the explode function?
http://www.php.net/manual/en/function.explode.php
--
PHP General M
, but I don't know how to connect to the remote server page and get all
the results. I am new to cross-server comunication programming, so if
anyone knows of a very detailed and easy to learn tutorial please send me
the link. I would appreciate any help you are willing to offer.
Thanks,
The code below inserts the same inventory item into the db multiple
times -
I just need 1 line entry for each inventory item, but multiple photos
of
each itemHow to do this?
I know the code I wrote below is extremely awful, but I am a nebie and
that
was the only way I could get it to half-
TWO". In this example it
should return the value " and word ". Is there some sort of function I
could use to easily do this? Please let me know if you have any ideas.
Thanks,
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ok, this ended up working well. I'm still wondering why in my example
function two() works, without needing to provide the resource identifier
to mysql_query(), how can mysql_query() pick up the resource identifier
automatically while mysql_list_fields does not?
Thx-
Matt
On Mon, 2003-11-
two() still works!
>
> Am I doing something wrong here?
> [/snip]
>
> It's just a small misunderstanding Matt. Your
>
> $db = mysql_pconnect("ip", "user", "password");
>
> is LOCAL to the function http://us3.php.net/language.variab
= "SELECT * FROM user";
$result = mysql_query($q);
return $result;
}
So the end result being if I take the connect statement out of the
function one(), it fails, but function two() still works!
Am I doing something wrong here?
Thanks,
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
couple of months but the code
hasn't changed in years.
Has anyone experienced anything like this or have any ideas how to solve it?
Thanks,
Matt.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Is there any way to accomplish this without the use of exec() or system()
functions?
"Jason Wong" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Saturday 08 November 2003 03:39, Matt Palermo wrote:
> > Does anyone know of a way to perform an MX look
Does anyone know of a way to perform an MX lookup on a Windows server to
perform an email verification? Any help on this would be great, since I can
only find code for this that will work on *nix servers. Please let me know
if you can help.
Thanks,
Matt
--
PHP General Mailing List (http
Oops... The link to the site is:
http://www.sweetphp.com/projects/TotalCalendar/
Sorry.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hey everyone. I am the creater of a PHP script called TotalCalendar
(http://sweetphp.com/TotalCalendar/) and I am looking for a little advice
and suggestions about making a tool for it. I want to build an application
that users can download and install on their local machines which connects
to a
($dbname, $table);
return $fields;
}
The problem is this always errors saying it cant find the database.
However, if I ran a mysql_query("select * from users") function, it
would work fine.
Any ideas on what the deal is with this function??
Thanks,
Matt
--
PHP General Mailing
f its not already been suggested.
-Matt
On Fri, 2003-10-24 at 17:03, Chris Shiflett wrote:
> --- Nathan Taylor <[EMAIL PROTECTED]> wrote:
> > This problem should be handled by modifying the php.ini. In my
> > experience W3C is a whiney bitch that always gets it's way. Just
&g
I don't know much about that, but it definitely sounds better, escpecially
since it's still PHP based. Do you know of any websites or tutorials I can
go to to learn more about it? It sounds like a much better option.
Thanks,
Matt
"Ray Hunter" <[EMAIL PROTECTED]> wr
P image
gallery. I got a long way to go before I will have this created though,
since I'm very new to JAVA (I'm much stronger in PHP). Anyway, I'm sure you
get the idea.
Matt
"Raditha Dissanayake" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi
ers machine. I
have been searching the web for hours trying to find a tutorial, or advice
on how to accomplish this, but so far I have had no luck. If anyone has any
advice or suggestions please let me know.
Thanks,
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
Khalid wrote:
> Matt Babineau wrote:
>
> > Hey All-
> >
> > Just built a cart, and I want to connect it to Authorize.net with cURL
> > and I am able to do that fine. The problem is, it takes a while to
> > process the transaction. Sometimes the user's browser
r have any suggestion for
"the best" speed related solution?
Thanks!!
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e_URL
since the browser already knows what Host you are connected to.
I could be totally wrong, just my experience in the path month or so.
Cheers!
Matt
On Tue, 2003-10-14 at 15:08, Chris Shiflett wrote:
> --- Chris Hubbard <[EMAIL PROTECTED]> wrote:
> > header('Location: index
Jeff McKeon said on Saturday, October 04, 2003 at 11:35 AM
>However on the third funtion I get an undefined index error for
'>ticketid'
Post some code ...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
nks a
lot!
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
allow the double quotes to be initially inserted into the input box?
Please let me know.
Thanks,
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$write = (fwrite($fp, $header));
fflush($fp);
fclose($fp);
Matt
Chris Grigor wrote:
Hi
I am writing to a file different sources.
The one writes the date and the next starts writing data.
The date writes fine.
$header = "0$gpsdate";
echo $out_file;
$fp = fopen($out_file,
could you use this for your loop?
$sizeArr = sizeof($items);
for ($row=0; $row<$sizeArr; $row++)
{
echo "" .
$items[$row]['title'] .
"" . $items[$row]['description'] . "";
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lems.
Are there any known issues using php sesisons with IE5/Mac?
Cheers,
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
everyone who has helped me out.
Matt Palermo
[EMAIL PROTECTED]
http://sweetphp.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
How can I guarantee that a language is always choosen? I mean how is
this
done professionally?
What do I have to write at the beginning of every page?
[/snip]
You have a bunch of options.
on each page you could add something like this to everypage:
if (!isset($_SESSION['language'])){
I dont know much about classes, but dont you want
$a = new THECHILD('walter'); //so you can access $a->abc
instead of
$a = new THEPARENT ('walter');
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
i need to include() only a given amount of lines (the first 10 for
example)
instead of a whole file.
[/snip]
I have never tried it, but I think you could open up the file you want
to include, import n lines into a variable, then use the eval function
to turn that variable into php code.
S
Tuesday, September 2, 2003, at 05:13 PM, Matt Matijevich wrote:
> [snip]
> when the user comes back to the "add_new.php"
> [/snip]
>
> I would use session vars in this case.
>
> You could also use get variables.
>
> Say the company name is in the database and you h
[snip]
then the forms
variables are stored and NOT LOST ??
[/snip]
Have you looked into sessions?
http://www.php.net/manual/en/ref.session.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
this worked for me.
";
}
}
?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Can you do it programmitically (with pseudo-code)? After all, we need
to
keep this on-topic :)
not pseudo code and it could definatley be cleaned up or done better
but her is my quick try at it
echo "We are walking to up to a fork in the road.";
$randval = rand(1, 500);
$randval2 = rand(1, 500
On Sunday, August 24, 2003 at 9:49 AM Stevie D Peele wrote:
> Can someone show me an example of some code that works something like
> this :
>
>
> if cookie is present
> redirect to a certain page
>
> ?>
http://www.php.net/header for explanation
if ($_COOKIE['cookie_I_want_to_know_about']) {
h
701 - 800 of 1663 matches
Mail list logo