[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

Re: [PHP] Classes Question

2001-11-09 Thread pierre-yves
Hello, what I would do is build the instance of your mysql class in the constructor of the user class class User{ var $db; // constructor function User(){ $this-db = new Mysql(True); } // function that show how to use the Mysql class in the User class function foo(){

[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] Re: Problem with non us caracters and strtr

2001-11-02 Thread pierre-yves
Hello, can someone has an idea in how to convert for example a string posted by a form in this format são paulo to this sao paulo?? function remove_accents( $str ){ if( strlen( $str ) == 0 ) return $str; else $ret = strtr($str,

[PHP] header() confusion

2001-09-26 Thread pierre-yves
Hello, several months ago I discovered that under some IE 4.0 and upgrades of 4.0 the header() function would simply not redirect if you don't put exit() right after the header() call. Now I'm discovering that header() does not work under netscape 6 if you put exit() right after! How come

Re: [PHP] header() confusion

2001-09-26 Thread pierre-yves
So... when redirecting the user to a different page, you should always put exit after the header() call. Yes that's what I do but it freeze on netscape 6 ? Does anyone has experience this or am I the only one ? py -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

[PHP] Problem assigning url like path/script.php/argument

2001-09-17 Thread pierre-yves
Hello, I am trying to use a URL like path/script.php/argument and later retrieve argument using $PATH_INFO. The problem is that all image on my page are broken and the css and javascript file are not found when I use an URL like this. Any idea why ? py p.s. I am trying to avoid ?arg=value on

Re: [PHP] an error Maximum execution time of 30 seconds exceeded in C:\...

2001-09-04 Thread pierre-yves
I got an error Maximum execution time of 30 seconds exceeded in C:\... on line 224 while accessing a PHP page tie to a Mysql database. 1. Is 30 seconds the normal setting before it times out ? It is the default settings. It's rarely normal that a script last that long. My longest scripts is

Re: [PHP] How to index HTML fields for Javascript and PHP at same time?

2001-09-03 Thread pierre-yves
Hello, maybe you could have a hidden field named myfield[], this one will be for the index in php that you will build with a javascript function when you submit the form. py - Original Message - From: M [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 03, 2001 10:12 PM

Re: [PHP] The future of PHP

2001-08-31 Thread pierre-yves
synopsis 1) some want direct marketing 2) Some believe the status quo is enough 3) all agreee php is useful as a web development tool/language ... Did you open source your thread filter program? :) Good job anyway. For me the most important point is that the developer/maintainer of the

Re: [PHP] cancellation cleanup handlers in PHP4?

2001-08-28 Thread pierre-yves
Hello, From the manual: http://www.php.net/manual/en/function.register-shutdown-function.php py - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 28, 2001 7:37 AM Subject: [PHP] cancellation cleanup handlers in PHP4? Is it possible to register

Re: [PHP] Disabling certain functions per directory

2001-08-28 Thread pierre-yves
You will find the answer to that question in the archives. Someone answer this question a couple of days ago. Can't remember the address of the archive tho, anyone can help me here? py - Original Message - From: Andy Ladouceur [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday,

Re: [PHP] $HTTP_POST_VARS

2001-08-27 Thread pierre-yves
something like this... if( sizeof( $HTTP_POST_VARS ) 0 ){ // avoid error when no vars while ( list ( $key, $val ) = each ( $HTTP_POST_VARS )) { print br$key = $val; } } py - Original Message - From: Andy Ladouceur [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: [PHP] Certification

2001-08-26 Thread pierre-yves
I don't think Brainbench is exactly what I was looking for... but thanks anyway. BTW... has anyone taken the Brainbench test? Is it difficult? I did, it is not that difficult. It can tell you if a future employee really knows PHP. But as an employer myself, I would never rely on such a test

Re: [PHP] Re: force download in IE -- conclusion

2001-08-22 Thread pierre-yves
I worked on a script like yours for a looong time now! I need to force the download of various type of file, doc, pdf, zip, even html! Your script works fine on Opera 5.02 and netscape 4.76 on my win NT 4.0 box, but not on IE 5.5 On this one, it offers me to download the script file but

Re: [PHP] Re: flash and php

2001-08-20 Thread pierre-yves
Hello, what he explained with GetVariable works fine. I just want to add that you do the opposite, sending value to flash via php, by echoing the querystring in a php file and use LoadVariable to read the value and display it in the flash movie. py - Original Message - From: Tribun

[PHP] How to set a cookie that never expires?

2001-08-20 Thread pierre-yves
Hello, I have read http://www.php.net/manual/en/function.setcookie.php and did not find out a quick solution on how to set a cookie that will NEVER expires ? py -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [PHP] advantage of php

2001-08-18 Thread pierre-yves
Hello, it is quite simple, php is a programming language. CGI is an interface that execute programming language, usually Perl, but can be C, C++... py - Original Message - From: nafiseh saberi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 18, 2001 4:46 AM Subject: [PHP]

Re: [PHP] FW: Large sites using PHP

2001-08-18 Thread pierre-yves
Dear PHP fans, Knowing large sites that use php is one thing (it shows the language can support heavy loads). But what I would really like to know is the time difference to design, code and implement web application in PHP versus java solution, or ColdFusion, or another language. I switch to

Re: [PHP] Need open source community help!

2001-08-15 Thread pierre-yves
I was once in your situation, fortunately, my boss understood that it is better to have an application that has less features but never shuts down. The linux/php/mysql app was up for 283 days when they review it. The full featured NT/ASP/SQL 6.5 was shut down an average of 1 full day for every 3

Re: [PHP] Re: How give a 'timed' online quiz?

2001-08-14 Thread pierre-yves
Hello, I did an timed online quiz using session variables for my timer. It work fine. When the user start the quiz, you check the time and calculate the duration of your quiz. exemple: 20:00 + 60 min = 21:00 So you register 2100 in a session variable Each subsequent request you make shure the

Re: [PHP] php authentication system

2001-08-10 Thread pierre-yves
http://www.phpbuilder.com/columns/tim2505.php3 py - Original Message - From: Andras Kende [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 10, 2001 6:44 AM Subject: [PHP] php authentication system Hello, I need to password protect some webpages right now its

[PHP] Time problem

2001-08-08 Thread pierre-yves
Hello, I convert the time in seconds to do some calculations, now I want to convert a number of seconds in a presentable HH:MM:SS format. In other words, how do you change this 997271630.08651 in 08:14:32 ? py p.s. I use this to get the number of seconds. function getmicrotime() {

Re: [PHP] Time problem

2001-08-08 Thread pierre-yves
Thanks, I feel a bit moron ;) it seems like I missed it while reading the manuel, sometimes the solution is so obvious that it becomes trivial! py - Original Message - From: Thomas Schmid [EMAIL PROTECTED] To: 'pierre-yves' [EMAIL PROTECTED] Sent: Wednesday, August 08, 2001 8:23 AM

[PHP] Display the weather on my site

2001-08-06 Thread pierre-yves
Hello, I would like to display the wheather on a page depending on the city of my user. (or the capital of their province/state) Do you know a service/db/web site I could query in order to extract what I need ? py

Re: [PHP] Display the weather on my site

2001-08-06 Thread pierre-yves
Thanks, I got what I needed out of parsing http://weather.noaa.gov/weather/CA_cc.html As for the webcam, I will pass, I don't want to be blamed if our clients/managers ruin their golf game because of me ;) py - Original Message - From: Kevin Leavell [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] Limit records/ prev/next links

2001-08-05 Thread pierre-yves
Salut, I have 1 little classe that does what you need here, http://www.pywebsolutions.com/source.php py - Original Message - From: Steph [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 05, 2001 6:56 PM Subject: [PHP] Limit records/ prev/next links Hi all! Im working

[PHP] md5 on different platform

2001-08-04 Thread pierre-yves
Hello, excuse my ignorance on that field, but if I use md5 in a java server page (jsp), can I decrypt it in php ? Is the implemantation of md5 the same on both language ? py -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] md5 on different platform

2001-08-04 Thread pierre-yves
Sorry, I meant compare and I wrote decrypt, We will: - encrypt in jsp - compare in php I am curious about the should you wrote py - Original Message - From: Joe Conway [EMAIL PROTECTED] To: pierre-yves [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, August 04, 2001 10:03 PM

[PHP] Database classe to work with Oracle

2001-08-02 Thread pierre-yves
Hello, I need to convert an application that run on mysql to an oracle database. The application strickly use the db_mysql class from phplib. Can anyone suggest me another class and maybe common pitfalls to avoid ? Thank you, py

Re: [PHP] What would you want in a PHP web host?

2001-08-01 Thread pierre-yves
I am not shure a php developer would need help from another php developer at the hosting company. What we need is: -Sys Admin that understand php. -Sys Admin that knows how to secure the server and be able to tell the developer what to follow in order to built secure code. If system command are

Re: [PHP] New Book - Tips?

2001-07-30 Thread pierre-yves
I would also cover in detail the php.ini file. (what is safe mode, magic_quote...) So many questions get posted here because of people who do not know the power of this file and all it's implication. (nothing wrong tho, people are here to answer...) They use the engine without knowing the

Re: [PHP] Document root

2001-07-24 Thread pierre-yves
You seem to be on windows, check with phpinfo() for this var. (I use this on unix and assume it would be the same for win) ? echo $HTTP_SERVER_VARS["SCRIPT_FILENAME"]; ? py - Original Message - From: "Roman" [EMAIL PROTECTED] To: "Php-General" [EMAIL PROTECTED] Sent: Tuesday, July 24,

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

2001-05-03 Thread Pierre-Yves Lemaire
: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] + == + Pierre-Yves Lem@ire + E-MedHosting.com + (514) 729-8100 + [EMAIL PROTECTED] + == -- PHP General Mailing List (http

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

2001-05-01 Thread Pierre-Yves Lemaire
] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] + == + Pierre-Yves Lem@ire + E-MedHosting.com + (514) 729-8100 + [EMAIL PROTECTED] + == -- PHP General Mailing List (http://www.php.net

Re: [PHP] Job in Whistler, BC

2001-04-17 Thread Pierre-Yves Lemaire
al Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] + ====== + Pierre-Yves Lem@ire + E-MedHosting.com + (514) 729-8100 + [EMAIL

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

2001-04-13 Thread Pierre-Yves Lemaire
sn't work for PHP or ASP(ugh) because the browser parses them THEN sends it to the client. Is there anyway to allow the client to download the actual unparsed file? Any help would be appreciated ^_^ + == + Pierre-Yves Lem@ire + E-MedHosting.com + (514) 729-8100 + [EMAIL PRO

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
General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] + == + Pierre-Yves Lem@ire + E-MedHosting.com + (514) 729-8100 + [EMAIL PROTECTED

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

2001-04-10 Thread Pierre-Yves Lemaire
? --Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] + ====== + Pierre-Yves Lem@ire + E-MedHosting.com + (514) 729-810

[PHP] Problem with newline and email

2001-04-06 Thread Pierre-Yves Lemaire
order to send a long message, wich is coming multiple db fields to a text file to php mail(), so it will be formatted nicely on all email client? Or, is it possible? Any piece of code, tutorial, newsletter script, good wiches or old grandma's soup would be so appreciated! py + ====

Re: [PHP] Close Window script

2001-04-06 Thread Pierre-Yves Lemaire
tors, e-mail: [EMAIL PROTECTED] + == + Pierre-Yves Lem@ire + E-MedHosting.com + (514) 729-8100 + [EMAIL PROTECTED] + == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact t

Re: [PHP] PHP and MD5 passwords?

2001-04-04 Thread Pierre-Yves Lemaire
-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] + == + Pierre

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
] + == + Pierre-Yves Lem@ire + E-MedHosting.com + (514) 729-8100 + [EMAIL PROTECTED] + == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e

Re: [PHP] php error code.

2001-03-29 Thread Pierre-Yves Lemaire
nsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] + ====== + Pierre-Yves Lem@ire + E-MedHosting.com + (514) 729-8100 + [EMAIL PROTECTED] + == -- PHP Gener

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

2001-03-26 Thread Pierre-Yves Lemaire
EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] + == + Pierre-Yves Lem@ire + E-MedHosting.com + (514) 729-8100 + [EMAIL PROTECTED] + == -- PHP General Mailing List (http://www.php

Re: [PHP] The ubitquitous forum project

2001-03-26 Thread Pierre-Yves Lemaire
tors, e-mail: [EMAIL PROTECTED] + ====== + Pierre-Yves Lem@ire + E-MedHosting.com + (514) 729-8100 + [EMAIL PROTECTED] + == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

Re: [PHP] random letters and numbers

2001-03-24 Thread Pierre-Yves Lemaire
server? thanks randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] + == + Pierre-Yves Lem@ire + E-MedHosting

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