After I upload it was takes me back to the Form. And ignores
$replay_file...
And I don't know why.
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 techniques like
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
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 printing
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 =
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
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?
?php
function war3_replays_submit() {
if ( isset($replay_file) ) {
Now, I have set the cookie,
but when I run this code I always get the bye output.
Why??
?php
if (isset($user))
print 'hello';
else
print 'bye';
?
--
http://seabird.jmtech.ca
Attitude is Everything!
But Remember, Attitudes are Contagious!
Is Yours worth Catching
Aaron Wolski [EMAIL
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
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
The server is 4.0.6 ...And I tried to get the owner to update it. He
said its not nesscarry.
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.
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
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 2002,
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:
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 |
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 ---
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
you need the exact same parameters as you used to set the cookie.
http://www.php.net/manual/en/function.setcookie.php
Seabird
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
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
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
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?
try
setcookie('user');
setcookie with no parameters other than name deletes the cookie.
Lee
Seabird
I am a little confused by a specific behavior of a session variable.
Here is an example of my confusion:
?php require_once('prod.lib.php');
session_start();
if (!isset($_SESSION['valid_user']))
{
echo You must be logged in to use this application. br;
echo Please a href=\login.php\
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'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 =
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.
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
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 using PHP
30 matches
Mail list logo