Hi, following my earlier post
My input file from form in eg upload.html was not detected in the upload.php (handler)
The example can be seen in http://www.busybees.com.my/tryout/upload.html
I tried uploading using the input type=file name=userfile
which is supposed to be captured by the php
on 05/30/2003 7:49 AM, André Sannerholt at [EMAIL PROTECTED] appended
the following bits to my mbox:
I have the following Mysql-Query that returns correct information, but it
just needs to much time (3-4 Minutes!!) Can you help me to optimize it?
Since subselects are fairly new to MySQL and
on 05/30/2003 9:16 AM, Dewi Wahyuni at [EMAIL PROTECTED] appended the following
bits to my mbox:
if($userfile) it fails. BUT $userfile_name is able to display the filename .
With print_f($HTTP_POST_VARS) also the userfile was not displayed, only other
input element which is Maximum file
If I understand your post and desired outcome correctly, I think the problem
would lie in the upload.php file. You may need to post the code from that
file for anybody to really help you out.
Rich
-Original Message-
From: Dewi Wahyuni [mailto:[EMAIL PROTECTED]
Sent: Friday, May 30,
on 05/30/2003 9:16 AM, Dewi Wahyuni at [EMAIL PROTECTED] appended the following
bits to my mbox:
if($userfile) it fails. BUT $userfile_name is able to display the filename .
I just tried the script on your site...
It looks like you are trying to fopen the actual file name. You need to
fopen
I need to redirect to another page once some scripts that I can't alter run.
I have this function at the top of my page:
?
function Redirect ($url) {
Header (Location: . $url);
exit;
}
?
How do I call the function?
Rick
Redirect(www.mypage.com);
-Original Message-
From: Rick Dahl [mailto:[EMAIL PROTECTED]
Sent: Friday, May 30, 2003 10:23 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] redirecting to a page
I need to redirect to another page once some scripts that I
can't alter run.
I have
Remember, though, you can't set an HTTP header after you've sent output to the client,
so you needc to do your redirecting (assuming there's a condition) before you display
ANYTHING.
BAD:
HTMLBODY
if (somecondition) { Redirect(www.mypage.com); }
...
GOOD:
?php
if (somecondition) {
Comments inline ...
On 30 May,2003 at 10:25 Hutchins, Richard wrote:
snip
Redirect(www.mypage.com);
/snip
You'll need around the url I reckon as in
Redirect(www.mypage.com);
;-)
Ronan
e: [EMAIL PROTECTED]
t: 01903 739 997
w: www.thelittledot.com
The Little Dot is a partnership of
Ronan
The scripts I need to run before I redirect automatically send output to the browser.
I cannot alter these scripts. Is there a way around this?
Rick
use javascript for your redirects then you wont have these problems
-Original Message-
From: Rick Dahl [mailto:[EMAIL PROTECTED]
Sent: 30 May 2003 15:43
To: [EMAIL PROTECTED]
Subject: [PHP-DB] another redirecting question
The scripts I need to run before I redirect automatically send
If the user has disabled JavaScript in the browser doesn't that create
another problem?
-Original Message-
From: Griffiths, Daniel [mailto:[EMAIL PROTECTED]
Sent: Friday, May 30, 2003 10:44 AM
To: Rick Dahl; [EMAIL PROTECTED]
Subject: RE: [PHP-DB] another redirecting question
If the user has disabled JavaScript in the browser doesn't that create
another problem?
Yes, it does. You've already said you're not going to rewrite your code so
it's correct, though, so why worry about disabled javascript?
John Holmes...
--
PHP Database Mailing List
good point, you could output a link for the user to click if they have turned it off.
Another method would be to do the processing on the same page so that a redirect is
not needed, just use a flag in the post or get array to run the nessasry script.
-Original Message-
From: Hutchins,
Rick,
The way I solved this problem is to have the output sent to a variable,
let's say $temp_data, create a session and store $temp_data as a session
variable, redirect to another page where I can read $temp_data and have it
displayed on that page by calling it.
Hopefully my explanation is
Title: RE: [PHP-DB] Optimize following Mysql-Query
Another large performance hit is the use of like with the wildcards. If you can avoid wildcard searches do.
WHERE Personen.NAME IN ('$name'); or = $name Obviously this is only valid if the variable is going to match what is in the data
At some point you need to force users to upgrade. As
designer/programmer, it's almost impossible to design solutions for
every situation. Is it really worth the time and effort to modify code
for a user using godforsaken OS with little known limited functionaily
browser? I say no as do some other
to all the people that tried to lend a hand.
For some reason the javascripts didn't work.
There wasn't a need to get as complicated as session variables.
I ultimately figured out a way to do it by just moving { } around.
Rick
I'm very new to PHP so somebody correct me please if this is a bad
idea...
I had the same problem and I ended up just including the second page at
the end of the first one:
?php
// some stuff (output if necessary)
include 'nextpage.php';
die();
?
Grant
On Fri, 2003-05-30 at 09:43, Rick Dahl
Well, if you're inserting some data into a database and the person
refreshes the page, it would re-insert the data again into the
database. Including the page like you did at the end wouldn't change that
fundamental problem, hence why you'd want to have it redirect to another page.
Metin
At
Hi
I did actually encounter that problem. However, wouldn't redirecting
properly still allow the user to resubmit the information using the back
button? I solved this problem a different way by setting and clearing
session variables on entry and exit to a series of pages.
Grant
On Fri,
Hello list,
I am having a problem with MD5().
Every time I try to use this function it seems to work, but I get the
same results. Below is what I am trying to do.
$pass = MD5('$password');
For every password that I store in the database I have found it is the
same string of characters
For every password that I store in the database I have found it is the
same string of characters no matter what the original $password is.
That is because you have single quotes around your variable so it is not
being expanded, so everytime it is the MD5 of the same thing, the string
$password.
My apologies for the large email, but I wanted to include all the source code for
interested folks and thank everyone who provided suggestions for implementing hot or
not-like functionality.
Here is what I ended up doing. I've stripped out alot of the formatting to make it as
readable as
*This message was transferred with a trial version of CommuniGate(tm) Pro*
Hey all -
I'm curious if anybody has ever setup the logic to put php functions
into a database here is my thinkin on it, hopefully I can get some
suggestions on the benefits, downsides, etc.
(in mysql)
CREATE TABLE
Forgive me if I'm overlooking something, but why not just use a class?
Edward Dudlik
Becoming Digital
www.becomingdigital.com
- Original Message -
From: Rolf Brusletto [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, 30 May, 2003 17:10
Subject: [PHP-DB] functions IN the database.
*This message was transferred with a trial version of CommuniGate(tm) Pro*
the sites will reside on different boxes. Thus needing a way to share
the functions. I'm trying to get away from having two sets of code that
do exactly the same thing.
Becoming Digital wrote:
Forgive me if I'm
I want to print out a timestamp of length 14. I want to have it formatted
like:
mm-dd-yy : hh-mm
I have looked but all I can find is how to format a date and I don't want
that. I want the time also.
Rick
Don't burn the day...away ~ DJM
*This message was transferred with a trial version of CommuniGate(tm) Pro*
Rick,
You can use date() in the following fashion..
$timeStamp = time();
date('m-d-y : h-m', $timeStamp);
where $timestamp is a unix epoch timestamp.
Hope this helps!
Rolf Brusletto
http://www.phpexamples.net
Rick Dahl
Can anyone tell me whether PHP 4.x will continue to operate with Oracle9i
using the PHP OCI calls? I understand that PHP may have to be recompiled
again for Oracle9i.
[EMAIL PROTECTED]
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Greeting,
I have a postnuke site and I want to connect it to two databases in order to
verify users from these databases.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi Robert
Yes oci8 functions work fine with Oracle9i.
Robert Varner [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Can anyone tell me whether PHP 4.x will continue to operate with Oracle9i
using the PHP OCI calls? I understand that PHP may have to be recompiled
again for Oracle9i.
hi,
i want to backup mysql database.
i use mysqldump command .
when i use this command from server (win2000) , command promt its work fine.
but when run this command (mysqldump) from php file, it creat backup file
but
with zero size.
what can i do , help me?
thanks,
zuhear
--
PHP Database
33 matches
Mail list logo