* Thus wrote Andy B ([EMAIL PROTECTED]):
> session_start();
> $_SESSION['date']=$date;
> $HTTP_SESSION_VARS['name']=$name;
> $HTTP_SESSION_VARS['email']=$email;
> $HTTP_SESSION_VARS['website']=$website;
> $HTTP_SESSION_VARS['referred']=$referred;
> $HTTP_SESSION_VARS['comments']=$comments;
You sh
This problem only seems to be happening on one of the virtual hosts on this
system, and I cannot seem to figure out just what it is.
I have a simple form posting to search.php, with a text input field, with a
name of 'search'. And since this site is an internal site, register globals
are on, as we
Hi,
Monday, April 5, 2004, 1:03:17 PM, you wrote:
RH> Hi there,
RH> Supposed I have an array of objects, like:
$this[$i]->>property1
$this[$i]->>property2
RH> is there any 'cheap' way to sort the array according to the values of
RH> property1?
RH> The only way I thought I would be able to acco
* Thus wrote Matt Palermo ([EMAIL PROTECTED]):
> I have a page where I am stripping the html tags down. Basically, it will
> allow certain tags, but still strips out ALL attributs of the tag, so it
> works something like this:
>
> $allowed_tags = "";
> // State which tags are allowed
> $info = s
Monty writes:
Hi, is there any way to know if a site visitor has an existing session
without having to first start the session using session_start()?
I'm trying to avoid starting a valid session unless the visitor has been
authenticated and logged in, so, here's what I do now at the top of ever
* Thus wrote Monty ([EMAIL PROTECTED]):
>
> session_start()
>
> if (!$_SESSION['loggedin']) {
>
> session_destroy();
> header("Location:/login.php"); // Send to Log-In page.
> }
>
> Is this the most efficient way to do this? I'd prefer to not have to start
> the
"There are two problems there. First, your session data is not getting
cleared. Second, it is not getting reset with the new values.
For the former, in guestbook_save.php you can simply do a session_unset
(if you really want to clear all of them). However this does not
handle an abnormals equen
On 4 Apr 2004 Andy B wrote:
> the next time i hit the "add guestbook" listing from the main screen,
> fill out the form with different values and submit it all the
> $HTTP_SESSION_VARS have the same values as the last add sequence...
There are two problems there. First, your session data is not
"Okay, start showing some code so we can see wtf is going on. Constantly
posting back "nope", "doesn't work" is just going to have us grasping at
straws again and again.
Is register globals on or off?
"
register_globals=off
here is the code that gives me problems:
files are attached (if allowed)
Hi there,
Supposed I have an array of objects, like:
$this[$i]->property1
$this[$i]->property2
is there any 'cheap' way to sort the array according to the values of
property1?
The only way I thought I would be able to accomplish this is to
transform this into an assoc array or something like it
Andy B wrote:
"Use the session_* functions then.."
still does nothing at all or it does the same as session_destroy. and that
forces a user back to the login screen right in the middle of an sql
insert/update
Okay, start showing some code so we can see wtf is going on. Constantly
posting bac
"When someone pulls up a form and fills it out, they subsequently submit
that
form. When submitting a form your browser creates a one on one connection
with the server where the server inputs the data from your form before or
after the next person without mixing the two. (no matter if the two
sub
"Use the session_* functions then.."
still does nothing at all or it does the same as session_destroy. and that
forces a user back to the login screen right in the middle of an sql
insert/update
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
On 4 Apr 2004 Andy B wrote:
> how would you empty all the contents of $HTTP_SESSION_VARS when you
> dont need them anymore but still keep the current session running?
See http://www.php.net/manual/en/function.session-unset.php. That is
exactly what it does. That page also explains why unset()
When someone pulls up a form and fills it out, they subsequently submit that
form. When submitting a form your browser creates a one on one connection
with the server where the server inputs the data from your form before or
after the next person without mixing the two. (no matter if the two
subm
Use the session_* functions then..
--
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
"Andy B" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> "Umm.. Use $_SESSION for that.."
>
> wish i could but it wont work for the server that its going to run
> onthey s
Something else in your code is messing you up if you cannot change the value
after setting it in the first place. This happens all the time in my code
as my client makes decisions along the way. Try a small test creating a
session variable, displaying it, changing it, and redisplaying it. If it
--- Labunski <[EMAIL PROTECTED]> wrote:
> Why do this line $new_topic = $post_0.'|'.$post_1.'|'.'$post_2\n';
> writes to
> the document
> one|two|three\n
Actually, that's not true. Assuming:
$post_0 = 'one';
$post_1 = 'two';
$post_2 = 'three';
The code you posted will store the following in $new
"Umm.. Use $_SESSION for that.."
wish i could but it wont work for the server that its going to run
onthey still use php4.0.4pl1 believe it or not
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
"$HTTP_SESSION_VARS = array();"
doesnt work... it kills the session and forces me to login as soon as the
array is empty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Umm.. Use $_SESSION for that, and session_unregister() for the unsetting
with the old style code..
--
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
"Andy B" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
how would you empty all the contents of $HTTP_SESSION_VARS w
> echo "This doesn't work\n'; // Displays: This doesn't work\n
Seems to me like that would generate parse error.. :s But yea, we get your
point.. :)
--
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: ht
"Randall Perry" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> Solved my main problem. I was assuming that variables registered with
> $_SESSION were passed by reference. Apparently they're passed by value.
Wouldn't make very much sense to pass by reference, would it? Seems to me
Andy B wrote:
how would you empty all the contents of
> $HTTP_SESSION_VARS when you dont need
> them anymore but still keep the current
> session running?
$HTTP_SESSION_VARS = array();
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/u
\n must be included in double-quotes because it's treated like a variable.
echo "This works\n"; // Displays: This works
echo "This doesn't work\n'; // Displays: This doesn't work\n
> From: [EMAIL PROTECTED] (Labunski)
> Newsgroups: php.general
> Date: Mon, 5 Apr 2004 00:58:35 +0300
>
On Sun, 2004-04-04 at 17:58, Labunski wrote:
> \n isn't working properly.
>
> Why do this line $new_topic = $post_0.'|'.$post_1.'|'.'$post_2\n'; writes to
> the document
> one|two|three\n
> but not
> one|two|three (and break)
Because it's in single quotes versus a double quotes.
Cheers,
Rob.
--
how would you empty all the contents of $HTTP_SESSION_VARS when you dont need them
anymore but still keep the current session running? the problem seems to be that when
i try to fill them with something else (dont need the original values anymore) but
need new ones without destroying the session
\n isn't working properly.
Why do this line $new_topic = $post_0.'|'.$post_1.'|'.'$post_2\n'; writes to
the document
one|two|three\n
but not
one|two|three (and break)
whole code:
if ($a=="new"){
$post_0 = $_POST["one"];
$post_1 = $_POST["two"];
$post_2 = $_POST["three"];
if ($post_1 !=""){
i
php-general Digest 4 Apr 2004 21:11:59 - Issue 2686
Topics (messages 182272 through 182299):
Re: how to reset PHP_AUTH vars
182272 by: Burhan Khalid
182276 by: Nitin Mehta
182278 by: Martin Oettinger
Intermittent problem with Session Variable and IE6
182273 b
On 4 Apr 2004 Randall Perry wrote:
> Solved my main problem. I was assuming that variables registered with
> $_SESSION were passed by reference. Apparently they're passed by value.
*Passing* by value or by reference has to do with function parameters,
not array values. However you can assign on
Also, this means that each succeeding page that uses and changes the session
variable must read it in at the beginning of the code and reset it to
$_SESSION after changes are made, i.e.:
$order = $_SESSION['order'];
..
..
..
..
$_SESSION['order'] = $order
> Solved my main problem. I was assum
Hello,
I am trying to generate PDFs using PDFLib for the first time, and have
two questions, one of which is very confusing to me.
1) how can I tell the script generating the pdf to store it in a
particular place on the computer where the pdf generation is happening?
2) this is the really conf
I have a page where I am stripping the html tags down. Basically, it will
allow certain tags, but still strips out ALL attributs of the tag, so it
works something like this:
$allowed_tags = "";
// State which tags are allowed
$info = strip_tags($info, $allowed_tags);
// Strip all unwanted tags o
Solved my main problem. I was assuming that variables registered with
$_SESSION were passed by reference. Apparently they're passed by value.
I moved the line '$_SESSION['order'] = $order;' from the top of the page 1
php code (before any properties for the order object are set), to the end of
the
Thanks to your reply.
On Mon, 5 Apr 2004 01:29:13 +0800, Jason Wong <[EMAIL PROTECTED]> wrote:
> Because it doesn't exist? AFAICS you've only got 'subdir/required.inc'.
I'm sorry, I've mistaken. What I'd like to send is below:
=Directory Tree BEGIN:
$ cat subdir/subsubdir/
Hi, is there any way to know if a site visitor has an existing session
without having to first start the session using session_start()?
I'm trying to avoid starting a valid session unless the visitor has been
authenticated and logged in, so, here's what I do now at the top of every
page:
sess
> > is there any way to keep multiple users using the same form from mixing
up
> > variables
>>I have no idea what you mean here.
if user #1 logs in and starts using a form and then user #2 logs in and
starts using the same one as user #1, say by chance they submit it at the
same time... is there
On Monday 05 April 2004 00:41, Kazuumi TASHIRO wrote:
> Fatal error: Failed opening required 'subsubsubdir/required.inc'
> (include_path='.:/nfs/home2/Users03/tashiro') in
Because it doesn't exist? AFAICS you've only got 'subdir/required.inc'.
--
Jason Wong -> Gremlins Associates -> www.gremli
On Sunday 04 April 2004 23:38, Nathan Croker wrote:
> Can anyone tell me why the following line of code halts my entire script
> (anything after it is not processed).
>
> ftp_chmod($conn, 0777, $to);
>
> All other ftp commands in the script work perfectly. I've tried replacing
> '0777' with 777, 17
On Monday 05 April 2004 00:34, Andy B wrote:
[non-standard quoting snipped]
Please use a standard quoting mechanism, eg prefix each line of the quoted
message with a '>'.
Why? Because most mail clients understands the standard quoting styles and are
able to display the quoted parts of previou
Andy B wrote:
Other wise the value could have a double quote within it and a malicious
user could effectively "end" your input text box and inject their own HTML."
> >
> is there any way to keep multiple users using the same form from mixing up
> variables
I have no idea what you mean here.
---J
Hello, nice to meet you.
I couldn't understand following behavior of the function require_once().
(PHP version in my PC is 4.2.3, and `include_path' in the /etc/php.ini might
be well established.)
At first, I made following directory tree.
begin-0:
$ ls
required.inc subdir/
$ c
"htmlentities(), also.
Other wise the value could have a double quote within it and a malicious
user could effectively "end" your input text box and inject their own HTML."
is there any way to keep multiple users using the same form from mixing up
variables
--
PHP General Mailing List (http://
Thank you for your reply.
Yes the user has permission to execute chmod since when I access the server
using an FTP Client it works perfectly.
- Nathan Croker
(amazing as a result of one post, I get 6 different spam emails within
several minutes of posting!)
- Original Message -
From: "Jo
Mark wrote:
--- Andy B <[EMAIL PROTECTED]> wrote:
i have the following html line:
accesskey="d" id="id-referred">
the php variable $old['Referred'] was pulled from a mysql table.
the full string that this variable holds is "I work for you..." but
when used as a default value in an input text field
Nathan Croker wrote:
Can anyone tell me why the following line of code halts my entire script
(anything after it is not processed).
ftp_chmod($conn, 0777, $to);
All other ftp commands in the script work perfectly. I've tried replacing
'0777' with 777, 1777, in and out of "s, but it still halts th
tnx that works now
- Original Message -
From: "Mark" <[EMAIL PROTECTED]>
To: "Andy B" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, April 04, 2004 11:32 AM
Subject: Re: [PHP] php as default "value" in html
>
> --- Andy B <[EMAIL PROTECTED]> wrote:
> > hi...
> >
> > i have
Can anyone tell me why the following line of code halts my entire script
(anything after it is not processed).
ftp_chmod($conn, 0777, $to);
All other ftp commands in the script work perfectly. I've tried replacing
'0777' with 777, 1777, in and out of "s, but it still halts the script,
there is no
--- Andy B <[EMAIL PROTECTED]> wrote:
> hi...
>
> i have the following html line:
>
> accesskey="d" id="id-referred">
> the php variable $old['Referred'] was pulled from a mysql table.
> the full string that this variable holds is "I work for you..." but
> when used as a default value in an inpu
hi...
i have the following html line:
accesskey="d"
id="id-referred">
the php variable $old['Referred'] was pulled from a mysql table. the full string that
this variable holds is "I work for you..." but when used as a default value in an
input text field for html the only part that shows up in
Another solution to clean the browser auth cache is to close the browser; a
javscript function exists as well
"Nitin Mehta" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> but it's not happening.
>
> - Original Message -
> From: "Burhan Khalid" <[EMAIL PROTECTED]>
Hi,
Sunday, April 4, 2004, 9:11:08 PM, you wrote:
b> I have a php app that is in the final stages of testing and has been tested
b> by over 30 separate users.
b> One of the testers is having an intermittent problem which seems to be
b> caused by a session variable not being read properly in about
but it's not happening.
- Original Message -
From: "Burhan Khalid" <[EMAIL PROTECTED]>
To: "Nitin Mehta" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, April 04, 2004 1:58 PM
Subject: Re: [PHP] how to reset PHP_AUTH vars
> Nitin Mehta wrote:
> > Hello,
> >
> > Thanks for your re
On Sunday 04 April 2004 08:22, Andy B wrote:
[snip]
> i tried using while($_SESSION['guestbook']) but it proves in php's mind to
> be blank or that whole statement gets ignored...
The above doesn't make sense, if you don't have anything inside your
while-loop which alters $_SESSION['guestbook']
On Sunday 04 April 2004 01:45, Andy B wrote:
> i know this is a little ot but in an attempt to keep viruses off the list
> (i think) somebody/something is forging an email in my name to the php
> mailing list as well as mysql mailing list along with a few others. i get a
> message something like t
I have a php app that is in the final stages of testing and has been tested
by over 30 separate users.
One of the testers is having an intermittent problem which seems to be
caused by a session variable not being read properly in about 1 in 3
requests - the variable is getting set correctly in the
Nitin Mehta wrote:
Hello,
Thanks for your reply. but what I'm looking for is, yes logoff the user, but
not making him/her click some link. I've this page and I want it to ask for
username & password whenever a user comes/comes back. Any suggestions?
I believe this is the default behavior, unless t
php-general Digest 4 Apr 2004 08:26:36 - Issue 2685
Topics (messages 182255 through 182271):
Re: passing variables
182255 by: Larry E. Ullman
Message ("Your message dated Sat, 3 Apr 2004 19:18:13 +0200...")
182256 by: L-Soft list server at America Online, Inc. (1.8e)
email
Robin 'Sparky' Kopetzky wrote:
Good afternoon.
I'm building a class and am having a bunch of trouble with the PHP
array_keys function. I keep getting these errors:
Warning: First argument to array_keys() should be an array in D:\Htf.php on
line 33
Warning: Wrong datatype for second argument in c
59 matches
Mail list logo