do you have a tip to upload big files without the hassle of having
php crunch so much memory? If I upload, say, 20 MB of data, my script
process will end up using 20 MB of memory. I think it stores all received
data
in memory and then flushes it in the temp file at the end.
Regards,
--
PHP Ge
Hello,
I need to put a small security feature in one of my page.
The page is open as a popup from another web site. By checking the referer I tought
I could block any other call to this page but the referer variable is often not set...
What else could I do? ( no ssl so far is available for this :
Hello,
maybe this could help,
WHERE TO_DAYS( NOW()) - TO_DAYS( your_date_field ) <= 45
py
At 04:30 PM 5/3/01 +0200, you wrote:
>***NEWBIE ALERT*** (I am only very new at this)
>
>PHP and MySQL
>
>OK - I have a table with data and one of the fields is a Date field.
>
>Now I would like to SELEC
There is these two SAP vendors talking to each other. The first one says:
"I finnally convinced company xyz to buy our products". The second one says:
"It took them a long time to see the light!!". The first one replies:
"Ya, now here comes the darkness..."
ha ha ha
py
At 11:04 PM 5/1/01 -0400,
Last time I worked there I had to sleep in my car for a month!
No housing...
Skied like hell tho :)
At 09:33 PM 4/16/01 -0700, you wrote:
> You'll probably won't get to see the now :-<.
>
>
>__John Monfort_
>_+---+_
> P E P I E D
Hello,
Someone posted this a couple of days ago, might help you.
$headertxt = "Content-Disposition: attachment; filename=\"".$filename."\"";
header("Content-Type: application/force-download");header($headertxt);
py
At 09:51 AM 4/13/01 -0400, you wrote:
>I have a large script set that allows pe
it.
>
>
>----- Original Message -
>From: Pierre-Yves Lemaire <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Wednesday, 11 April, 2001 3:54 PM
>Subject: Re: [PHP] Are calling COM applications a trojan?
>
>
> >
> > It can't.
> >
After you have created the file, use this to force a downlaod.
This will downlaod anything, even an html file.
$fileName = basename($downloadFile);
header("Content-disposition: attachment; filename=\"$fileName\"");
header("Content-type: application-download");
header("Pragma: no-cache");
header("
> if($shiny = 0){
This does not compare anyting, it assigns 0 to $shiny
> echo( $shiny ) // this will return 0
That's normal, you just assign 0 to it ;)
= assignment operator
== comparison operator
py
At 01:53 PM 4/10/01 -0700, you wrote:
>This confused me for awhile, because the single eq
> Yahoo acquired eGroups and Google this past year,
Hum, I think yahoo bought google's technology but not
the company.
Google.com is using Perl, Python, Java/Servlet/JSP and C++.
Well that is what they ask for in their job oppenings.
py
At 10:20 AM 4/10/01 -0700, you wrote:
>Yahoo uses a l
You could do it only in javavascript
or in php
echo "Close this
window\n";
py
At 02:45 PM 4/6/01 -0400, you wrote:
>Hi all,
>Can anyone tell me how to write a script to close the current opened window
>with hyperlink? Thank you.
>
>Calvin Chua
>Systems Analyst
>InterClean Equipment, Inc.
>734
Hello,
ok I am getting completely crazy here, I use this to make shure
outlook will display newlines correctly. But now I found out
that exchange is jumping 2 lines at every newline with this...
$msg = str_replace ( "\n", "\r\n", $msg );
My question, what sould I use in order to send a long mess
hum, that would do it?
function encrypt_pwd( $pwd ){
if ( function_exists( md5 )){
$password = md5( $pwd );
}else{
$password = $pwd;
}
return $password;
}
py
At 11:12 AM 4/4/01 -0400, you wrote:
>Greetings,
>
>How would I go about using PHP to take an entered password, and check it
Yes, maybe, but it means that your old stuff in ASP has to be modified.
It's cool, but it's a path of no return, just like any ms stuff, be careful...
py
Some links:
http://xml.apache.org/soap/
http://sourceforge.net/projects/soapphpclient/
At 06:32 PM 4/3/01 +0100, you wrote:
>Java rocks. Per
* Willingness to work weekends/evenings, if need be, to meet deadlines.
And if you are still working weekends and evenings after 9 months on the
job, quit immediately. Start your own company or go fishing :)
py
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMA
Yes, the php.ini files is read when apache start.
py
At 03:53 PM 3/29/01 -0500, you wrote:
>In a message dated 29/03/2001 21:42:57 GMT Daylight Time,
>[EMAIL PROTECTED] writes:
>
><< If you have permission to modify php.ini, see the setting "display_errors"
> and the attached comments. You can t
This is the only viable solutions because most
system admin will banned all system calls coming from the web.
As it should be, I think.
py
At 08:34 AM 3/29/01 -0600, you wrote:
>I good solution for this kind of stuff is to just build a queue, either file
>or database. WHen you need to do a syste
The style of forum you choose for your site depends on your users.
Novice user have a difficult time with usenet or bbs style forum.
They will not use it unless you make it very easy. That is why you
see bilboard style forum on large public site or portals. They have done
user testing.
py
At 0
And like this?
echo $myrow["id"] .""; //Usually $myrow[0] etc
py
At 10:53 AM 3/27/01 +1200, you wrote:
>I can't figure out why this doesn't work. Rather than echo $myrow[0] which
>works, I want to use the feild name. Like $myrow[make] to make reading the
>code easier. IS this possible?
>
>H
Hello,
I use a random password function to do just that,
function randomPassword($length = 8) {
// all the chars we want to use
$all = explode( " ",
"a b c d e f g h i j k l m n o p q r s t u v w x y z "
. "A B C D E F G H I J K L M N O P Q R S T U V W X Y Z "
.
Hello,
Yes this should work, but if like me, you still have no redirection and
you are working with IE 4.0, put exit; after header.
$URL="domain.com";
header ("Location: Http://www.$URL/members/index.php");
exit;
I have not seen this anywhere, but putting exit; after a redirection
was the only wa
The answer, like yahoo, is to also store the username and password in
a database. When the cookie is not set or the option not checked, you will
use a database to validate the username and password.
You will build a session only if the username and password are matched
in the database.
py
- O
One solution:
You set up a separate table:
user_level { level_id (unsigned int), level_description (varchar 100 )}
it looks like this:
level_idlevel_description
100 admin
200user
In your user table you add level_id as a field.
After a good validation of the user (username an
Third one would be http://apc.communityconnect.com/ ??
py
- Original Message -
From: Chris Adams <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 16, 2001 3:37 PM
Subject: Re: [PHP] Benchmarks
> On 16 Mar 2001 04:39:06 -0800, Phil Driscoll <[EMAIL PROTECTED]>
wrote:
>
>
You know I personnaly speak 3 language, French, English and Spanish.
If you ask me to write a 3 page document, I would do it in french because
I am more comfortable with it. I believe you should base your solutions on
the language you and your team is comfortable with. You will end up with
better
Hello,
The header will make netscape offer you a download of the file, and
IE will open it in a excell format.
For the display, just put your result in a nice html table and excell will
convert
it, it's quite simple.
print "";
print "Event";
... print all your header here
while ($row = mysql_f
movie ?
py
__
Pierre-Yves Lemaire
514.729.8100
check out,
dirname() // Returns directory name component of path
py
- Original Message -
From: Hardy Merrill <[EMAIL PROTECTED]>
To: Jordan Elver <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, March 13, 2001 5:21 PM
Subject: Re: [PHP] Getting path of script
> How 'bout usin
Hello,
I do that with this piece of code. ( This will close the window, so open a
new one and put this code inside)
header("Content-disposition: attachment; filename=\"$fileName\"");
header("Content-type: application-download");
header("Pragma: no-cache");
header("Expires: 0");
$fn=fopen($FileNa
?
__
Pierre-Yves Lemaire
514.729.8100
?
__
Pierre-Yves Lemaire
514.729.8100
I receive 2 variables, $var and $num
I need to make a variable out of these two like this
$var2 where $num = 2 or
$var3 where $num = 3
How can I do that ?
__
Pierre-Yves Lemaire
514.729.8100
Hello,
This works when you have a separator of some sort, a space would work too.
The tricky part is that mktime works with mm dd yy format.
$start = "2001-01-01";
$end = "2001-03-12";
$start = explode( "-", $start );
$start = mktime( 0, 0, 0, $start[1], $start[2], $start[0] );
$end = explode(
Yes it would be a lot better to just passed the id in the url.
py
- Original Message -
From: Fates <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, March 11, 2001 5:12 PM
Subject: [PHP] Best way to pass SQL TEXT field via a link
> I'm trying to update an existing record based
Hello,
For the most popular one, it is include in the phplib package:
http://phplib.netuse.de/download/index.php3
Or for just the mysql database class, I like this one:
MySQL_class at: http://phpclasses.upperdesign.com/ (login required)
py
- Original Message -
From: Jordan Elver <[EM
/", "05/03/2001") ;
>
> to test the function. but it doest seem to work :(
> any help ?
>
> btw i believe it must be 24*60*60 inorder to 24*24*60 :)
>
> ""Pierre-Yves Lemaire"" <[EMAIL PROTECTED]> wrote in message
> 01c301c0a7e0$17f8
Hello,
this is a function I use on my site, you can problably find
your answer,
py
// =
// This function returns the difference between a dates
// and the current date.
// arg1: separator
// arg2: startdate date dd mm
// return number of d
37 matches
Mail list logo