Robert,
this seems like an excellent idea. you should present in PHP-DEV, though,
since this NG is primarily for "userland" PHP users, not low-level PHP
developers.
l0t3k
"Robert Twitty" <[EMAIL PROTECTED]> wrote in message
news:003101c28233$9d1ece60$9b00a8c0@;bobawa...
> Hello
>
> I have been u
Aha - thanks. The problem is, I also need to retrieve other data
asscociated with it. I'll alter the table to order by id, but is there
anything long-term I can do?
Manuel Lemos wrote:
Hello,
On 11/02/2002 03:21 AM, Leif K-Brooks wrote:
I've been optimizing scripts in an attempt to speed m
Hello,
On 11/02/2002 03:21 AM, Leif K-Brooks wrote:
I've been optimizing scripts in an attempt to speed my friend's site up,
and I believe I've found the source of the performance problems. When I
comment the following page load time changes from around 6 seconds to
less than .5 of a second.
I've been optimizing scripts in an attempt to speed my friend's site up,
and I believe I've found the source of the performance problems. When I
comment the following page load time changes from around 6 seconds to
less than .5 of a second.
if($loggedin){
$events = mysql_query("selec
Hello
I have been using PHP for about 9 months, and have chosen it as my primary
scripting language for web applications. I have and still use ASP and JSP.
IMHO, PHP is superior and easier to use than those languages except in one
area that is important to me, which is the ability to access MS
I am a little confused by a specific behavior of a session variable.
Here is an example of my confusion:
";
echo "Please login now. ";
exit();
} else {
$sbcuid = $valid_user;
}
$_SESSION['type'] = $AccountType;
if (!isset($_SESSION['type']))
{
echo "You did not select an account
I'm using $_SESSION['username'] to set the cookie.
If I cookie exsist I am automatically logged in by means of
if (isset($_COOKIE['user']) | ($_COOKIE['pass'])) {
$_SESSION['username'] = $_COOKIE['user'];
$_SESSION['password'] = $_COOKIE['pass'];
$logged_in = 1;
setcookie('use
try
setcookie('user');
setcookie with no parameters other than name deletes the cookie.
Lee
"Seabird"
HI all,
In the code below I'm trying to get the last column to show 1, 2, 3, or 4
according to which quarter of the year it is. But all it shows in that column
is " Resource ID # X". The X starts with #3 and goes to 18. There are (at the
moment) 15 items in the table. Any ideas what's wrong?
further down in the manual it says.
-> Cookies must be deleted with the same parameters as they were set with.
http://www.php.net/manual/en/function.setcookie.php
You are doing it wrong then. Are you checking $_SESSION['username'] or
$_COOKIE['user'] to determine if the cookie is being deleted? Or looking
in your cookies.txt (or similar) file/directory to see if they still exist?
What exactly is your PROOF :-) that the cookie is not deleted?
Peter
On Fr
Nope, doesn't work.
In PHP manual the say that the correct way is to set the cookie in a already
expired time. That's why I used time()-60 but it doesn't work...
Anybody else?
Jacco
--
http://seabird.jmtech.ca
Attitude is Everything!
But Remember, Attitudes are Contagious!
Is Yours worth Catchin
I'm pretty sure you just have to set a cookie to an empty string to
delete it, i.e., no expiration time
-- Josh
-Original Message-
From: Seabird [mailto:jacco@;vliegt.nl]
Sent: Friday, November 01, 2002 7:16 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] killing cookie
Hi everyone,
I don't
try
setcookie('user','');
On Fri, 1 Nov 2002, Seabird wrote:
> Hi everyone,
>
> I don't understand why my cookie won't be removed.
>
> I set my cookie:
>
> setcookie('user',$_SESSION['username'],time()+36000);
> setcookie('pass',$_SESSION['password'],time()+36000);
>
> I kill my cookie:
you need the exact same parameters as you used to set the cookie.
http://www.php.net/manual/en/function.setcookie.php
"Seabird"
Hi everyone,
I don't understand why my cookie won't be removed.
I set my cookie:
setcookie('user',$_SESSION['username'],time()+36000);
setcookie('pass',$_SESSION['password'],time()+36000);
I kill my cookie:
setcookie('user','',time()-60);
setcookie('pass','',time()-60);
but it doesn't
Are you maybe passing the last parameter in setcookie(), that makes sure
that the cookie is only transmitted over a secure connection?
Maybe limiting it to a domain, the domain of the secure server instead
of the domain of the whole site?
http://www.php.net/manual/sk/function.setcookie.php <---
Hey arron...
can you send the the set cookie code and set up of your servers. this works
fine on a site that i'm working on. I have the https running as a
virtualhost in apachemust be an easy fix.
jeff
|---|
| Jeff | KeaneIT - Presidents |
| Landing | Suite
Hi Guys,
I'm begging here.. ANYONE have a clue. I can searchinbg and searching
but I see nothing that's helping me. Anyone had issues like this before?
Thanka!!!
Aaron
-Original Message-
From: Aaron Wolski [mailto:aaronjw@;martekbiz.com]
Sent: Friday, November 01, 2002 11:55 AM
To: [EM
Do this instead:
$user = mysql_fetch_object($sql_result);
$_SESSION['user'] = $user;
Then, you can use stuff like:
print "{$_SESSION[user]->name}";
// or if register_globals is on
print "$user->name"; // which is nice because you don't have to {} the var or
".$var[name]."
Peter
On Fri, 1 Nov
How would one go about registering a session if you were to create
the session based on the users ID and NAME from the database.
I have the users ID and NAME already being pulled from the database
and being stored in variables named $id and $name.
I have latest version of PHP so I think I need to
Hi All,
Ok.. just went live with a site that 'appeared' to work wonderfuylly.
However, now it seems I cannot read a cookie in a secure area (https)
when it was set in a non-secure area (http).
Any clue on how to get this universally to work?
Really really need help with this.
Arg.
T
The server is 4.0.6 ...And I tried to get the owner to update it. He
said its not nesscarry.
Oops,
lights were on, but nobody home sorry, register_globals was set to off.
Works again.
Jacco
--
http://seabird.jmtech.ca
Attitude is Everything!
But Remember, Attitudes are Contagious!
Is Yours worth Catching
"Seabird" <[EMAIL PROTECTED]> wrote in message
news:20021101151508.26292.qm
still a bye output.
Jacco
--
http://seabird.jmtech.ca
Attitude is Everything!
But Remember, Attitudes are Contagious!
Is Yours worth Catching
"Marcel Walter" <[EMAIL PROTECTED]> wrote in message
news:5A1D56DECE4EF242B1CE7A18FB1F87F50111A93F@;ibfftce105.is.de.dresdnerkb.co
m...
> Try something
Try something like
$_COOKIE_VARS[user] ... or $COOKIE_VARS[user] ... dunno exactly ...
-Original Message-
From: Seabird [mailto:jacco@;vliegt.nl]
Sent: 01 November 2002 10:04
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] Re: cookie trouble
Now, I have set the cookie,
but when I run this
Now, I have set the cookie,
but when I run this code I always get the bye output.
Why??
--
http://seabird.jmtech.ca
Attitude is Everything!
But Remember, Attitudes are Contagious!
Is Yours worth Catching
"Aaron Wolski" <[EMAIL PROTECTED]> wrote in message
news:000201c2811e$a787ebe0$0701
No, you're doing it wrong.
---John Holmes...
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 01, 2002 2:05 AM
Subject: [PHP-DB] Am I doing This Right?
>
>
>
> function war3_replays_submit() {
>
> if ( isset($replay_file) ) {
> $
or just do
phpinfo(); en check all the vars
cause in the latest php versions it could be that you have to use
$_POST[.. etc..
___
Mark Snijders, Developer
Atos Origin
Groenewoudeseweg 1, Room VN-515
5621 BA Eindhoven, The Netherlands
* : [EMAIL PROTECTED]
check the values of these variables
$rTemp = $HTTP_POST_FILES['replay_file']['tmp_name'];
$rName = $HTTP_POST_FILES['replay_file']['name'];
$rSize = $HTTP_POST_FILES['replay_file']['size'];
// Define Replay Upload DIR and FILE name
$rFile = $db_nextid."_".$HTTP_POS
On Friday 01 November 2002 17:45, [EMAIL PROTECTED] wrote:
>After I submit the file, it goes back to the form, even though in
> the script, it says to go to the database and move the uploaded file to a
> new DIR.
>
>It ignores it as if the file wasn't uploaded.
>
>As for pri
After I submit the file, it goes back to the form, even though in the
script, it says to go to the database and move the uploaded file to a new
DIR.
It ignores it as if the file wasn't uploaded.
As for printing out the variables. All my important variables are
$HTTP_POST
On Friday 01 November 2002 17:00, [EMAIL PROTECTED] wrote:
>After I "upload" it was takes me back to the Form. And ignores
> "$replay_file"...
>And I don't know why.
1) Any error messages?
2) What exactly do you mean by: ignores "$replay_file"...
Try some basic debugging techniqu
After I "upload" it was takes me back to the Form. And ignores
"$replay_file"...
And I don't know why.
34 matches
Mail list logo