[PHP] Memory upload question..

2001-11-22 Thread Pierre-Yves Lemaire
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

[PHP] What to use when HTTP_REFERER is not set?

2001-11-03 Thread Pierre-Yves Lemaire
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

Re: [PHP] php/mySql SELECT where clause using dates.

2001-05-03 Thread Pierre-Yves Lemaire
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 SELECT all

RE: [PHP] a bit off the list but....

2001-05-01 Thread Pierre-Yves Lemaire
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, you

Re: [PHP] Job in Whistler, BC

2001-04-17 Thread Pierre-Yves Lemaire
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 E S I

Re: [PHP] I know POST Uploads, what about downloads?

2001-04-13 Thread Pierre-Yves Lemaire
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

Re: [PHP] Are calling COM applications a trojan?

2001-04-11 Thread Pierre-Yves Lemaire
----- 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. If you put the appropriate header type (ms-word in this case), IE will open word. Netscape and other browser

RE: [PHP] Commercial sites that use PHP

2001-04-10 Thread Pierre-Yves Lemaire
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

Re: [PHP] assignment operator works for comparison??

2001-04-10 Thread Pierre-Yves Lemaire
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

[PHP] Problem with newline and email

2001-04-06 Thread Pierre-Yves Lemaire
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

Re: [PHP] Close Window script

2001-04-06 Thread Pierre-Yves Lemaire
You could do it only in javavascript or in php echo "a href=\"javascript://\" OnClick=\"self.close\"Close this window/a\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

Re: [PHP] PHP and MD5 passwords?

2001-04-04 Thread Pierre-Yves Lemaire
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

Re: [PHP] Programming Jobs - what I look for.

2001-04-02 Thread Pierre-Yves Lemaire
* 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:

Re: [PHP] Tough One

2001-03-29 Thread Pierre-Yves Lemaire
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 system

Re: [PHP] php error code.

2001-03-29 Thread Pierre-Yves Lemaire
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 tell

Re: [PHP] What could I be doing wrong here

2001-03-26 Thread Pierre-Yves Lemaire
And like this? echo $myrow["id"] ."br"; //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?

Re: [PHP] The ubitquitous forum project

2001-03-26 Thread Pierre-Yves Lemaire
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

Re: [PHP] random letters and numbers

2001-03-24 Thread Pierre-Yves Lemaire
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 " .

Re: [PHP] Header Problem

2001-03-21 Thread Pierre-Yves Lemaire
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

Re: [PHP] Remember my username password

2001-03-19 Thread Pierre-Yves Lemaire
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 -

Re: [PHP] Login System with access levels

2001-03-16 Thread Pierre-Yves Lemaire
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

[PHP] header type for flash

2001-03-14 Thread Pierre-Yves Lemaire
movie ? py __ Pierre-Yves Lemaire 514.729.8100

Re: [PHP] Print MySQL DB as Exel File?

2001-03-14 Thread Pierre-Yves Lemaire
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 "table"; print "thEvent/th"; ... print all your header here while

Re: [PHP] Getting path of script

2001-03-13 Thread Pierre-Yves Lemaire
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 using a

Re: [PHP] Need to download files in IE

2001-03-12 Thread Pierre-Yves Lemaire
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");

Re: [PHP] Best way to pass SQL TEXT field via a link

2001-03-11 Thread Pierre-Yves Lemaire
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 on

Re: [PHP] date

2001-03-11 Thread Pierre-Yves Lemaire
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 =

[PHP] Variable dynamique

2001-03-11 Thread Pierre-Yves Lemaire
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

[PHP] Flash call erase my session

2001-03-11 Thread Pierre-Yves Lemaire
? __ Pierre-Yves Lemaire 514.729.8100

[PHP] Flash call erase my session

2001-03-11 Thread Pierre-Yves Lemaire
? __ Pierre-Yves Lemaire 514.729.8100

Re: [PHP] HELP!!! Date time problems!!!!

2001-03-08 Thread Pierre-Yves Lemaire
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

Re: [PHP] HELP!!! Date time problems!!!!

2001-03-08 Thread Pierre-Yves Lemaire
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$17f85f00$9ceee740@py">news:01c301c0a7e0$17f85f00$9ceee74