Re: [PHP] Using Cookies Securely

2003-06-01 Thread Dustin Mitchell
On Fri, May 30, 2003 at 11:01:26PM -0700, Evan Nemerson wrote: Send a session ID to the user in a cookie, then lookup that ID in a database on the server. It's extremely difficult to guess random session ID's (don't just increment them!), and if you have a session timeout, you're pretty much

[PHP] Compile 4.3.2 Errors.

2003-06-01 Thread Alberto Ferrer
Im compiling the last vercion of PHP 4.3.2 and says this after finish of compile. The system is a Redhat 7.3, Apache 1.3.27. ext/mysql/libmysql/my_tempnam.lo: In function `my_tempnam': /root/php-4.3.2/ext/mysql/libmysql/my_tempnam.c:115: the use of `tempnam' is dangerous, better use `mkstemp'

Re: [PHP] Compile 4.3.2 Errors.

2003-06-01 Thread Volker Augustin
hi, this sounds like a warning not like an error, your php is successfully compiled...(most software i know an compile got this message.) can you post a little bit more debug information? volker - Original Message - From: Alberto Ferrer [EMAIL PROTECTED] To: [EMAIL PROTECTED]

Re: [PHP] Re: Adding graphics library

2003-06-01 Thread Martin Helie
This is what I used that is relevant: --with-png-dir=../libpng-1.2.5/ --with-zlib-dir=../zlib-1.1.4/ --with-jpeg- dir=../jpeg-6b/ --with-gd of course, the paths for libpng, zlib and jpeg will probably be different for you. Todd Cary [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]

[PHP] 3 entries going into 1 field

2003-06-01 Thread Vicky
Hi, I have a registration form, but I would like to add a Date of Birth section. Now, because of the different formats of writing it I want to have 3 seperate drop down boxes, Date, Month and Year. However, I then want those 3 dropdowns to go into one field in a mySQL database, in DD/MM/

RE: [PHP] 3 entries going into 1 field

2003-06-01 Thread Randum Ian
$EnteredDate = $date . / . $month . / . $year; This would output DD/MM/ if $date = DD, $month = MM and $year = . -Original Message- From: Vicky [mailto:[EMAIL PROTECTED] Sent: 31 May 2003 15:06 To: PHP List Subject: [PHP] 3 entries going into 1 field Hi, I have a registration

Re: [PHP] 3 entries going into 1 field

2003-06-01 Thread Cal Evans
have 3 select boxes bdMonth, bdDay, bdYear. Then when processing the $_POST, simply contact them in the format you want. $bdString = $_POST['bsMonth'].'/'.$_POST['bsDay'].'/'.$_POST['bsYear']; HTH, =C= * Cal Evans * http://www.christianperformer.com * Stay plugged into your audience * The

Re: [PHP] Compile 4.3.2 Errors.

2003-06-01 Thread Philip Olson
On Sat, 31 May 2003, Alberto Ferrer wrote: Im compiling the last vercion of PHP 4.3.2 and says this after finish of compile. The system is a Redhat 7.3, Apache 1.3.27. ext/mysql/libmysql/my_tempnam.lo: In function `my_tempnam': /root/php-4.3.2/ext/mysql/libmysql/my_tempnam.c:115: the use

[PHP] problem with pop3 check

2003-06-01 Thread joe111
Hi I have been trying to get to know the imap functions for checking pop3 email account with php. i have had absolutely no luck. just cant get the script to connect to the server. here is a sample: ?php $mbox = imap_open ({mail.hot.ee:110}, pop3testing, testing); if(!$mbox){echooffline;}

[PHP] Re: problem with pop3 check

2003-06-01 Thread Alberto Ferrer
My english is bad, but see the code: $mbox = imap_open ({localhost/pop3:110}INBOX, user_id, password); The only way I could open a IMAP or POP3 conection into my server is, I hope it helps you$MAILSERVER={mail.midominio.cl:110/pop3/notls}; //Para POP3

Re: [PHP] [MySQL] Code Help Please

2003-06-01 Thread Frappy John
Monfort-- There lies my problem. How do I get mysql to translate: ... where table.username = 'table2.domain/table2.username' into See: http://lists.mysql.com/mysql?sub=1 --Frappy On Friday 30 May 2003 08:35 pm, [-^-!-%- wrote: Hello all ! Need a little help here. Is there a way

[PHP] FTP DLL

2003-06-01 Thread Canadaka
Me and a friend have been trying to make a php ftp client, it works fine on *nix systems, but not on Windows. We looked at everything, until i finaly noticed that php 4.2.3 is missing in the php.ini the extension=php_ftp.dll line. The actualy file in the extensions dir is missing as well. So

Re: [PHP] FTP DLL

2003-06-01 Thread Philip Olson
Me and a friend have been trying to make a php ftp client, it works fine on *nix systems, but not on Windows. We looked at everything, until i finaly noticed that php 4.2.3 is missing in the php.ini the extension=php_ftp.dll line. The actualy file in the extensions dir is missing as well.

Re: [PHP] How to secure a download ?

2003-06-01 Thread Alex Earl
header(Content-type: application/zip); header(Content-Disposition: attachment; filename=yourfilename.zip); readfile(/path/to/yourfilename.zip); I have found that to make sure it works with all browsers you want to put quotes around the filename in the content-disposition header. header(

Re: [PHP] FTP DLL

2003-06-01 Thread Frappy John
On Saturday 31 May 2003 07:41 am, Canadaka wrote: Me and a friend have been trying to make a php ftp client, I'm confused. Do you literally mean an FTP client that is written in PHP (thus requiring PHP to be installed on each client machine)? Or do you mean a PHP generated HTML-based page,

Re: [PHP] problem with pop3 check

2003-06-01 Thread Jason k Larson
Shouldn't the correct suntax for pop3 be: $mbox = imap_open ({mail.hot.ee:110/pop3}, pop3testing, testing); http://us2.php.net/imap_open -- Jason k Larson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] regex problem

2003-06-01 Thread Daniel J. Rychlik
Hello,, I have a preg_match issue matching numbers. I am currently using !preg_match ('/([0-9\-\.\#:])/', $_POST['nums1'] throw error[] This fails if you use something like ' asdf ' but if you use ' asdf789 ' it passes false and does not throw an error. This is not the obvious

Re: [PHP] problem with pop3 check

2003-06-01 Thread Jason k Larson
To correct myself ... I believe you actually require the INBOX attribute as well. $mbox = imap_open ({mail.hot.ee:110/pop3}INBOX, pop3testing, testing); if you still have problems you might also try (explictly request non-SSL connection): $mbox = imap_open ({mail.hot.ee:110/pop3/notls}INBOX,

[PHP] Re: 3 entries going into 1 field

2003-06-01 Thread Monty
I'll add to what the others have already said. As was already mentioned, you need to create three dropdown fields for the birthdate: year, month and day. I do this by setting up arrays for each field that offers valid date choices. $year[2000] = 2000; $year[2001] = 2001; $year[2002]

[PHP] PHP getting values from XML

2003-06-01 Thread MivaDudePB
Hello All and Thanks in advance. I'm developing a site PHP site. I would like to define HTML code in XML and be able to get the HTML code using PHP. I was hoping for a simple example. I will not be able to update the version of PHP with any modules as my hosting company (hostway.com) admins

[PHP] Cookies and Sessions: What's the Best Recipe?

2003-06-01 Thread Monty
I have a member site that uses sessions. People who have their browser cookies turned off, however, cannot use our site. I read somewhere that to avoid this, I'd have to manually append the PHPSESSID var to every URL when redirecting in a script. Is this really the best or only way to avoid this

[PHP] get modification date of remote page

2003-06-01 Thread chris
I have a database full of links. I need to write a script to go to each one and check the modification date of the file. My plan is, once that is logged, to do this every week and indicate which pages have changed. What is the simplest approach to this? Do I need to use CURL functions or

[PHP] reading binary data

2003-06-01 Thread Ferhat BINGOL
Hi, I have binary data. I know the format but I do not know how to read it with PHP. I saw some articles and comments on the manual but it seems taht it is not enough for me. Anyone to haelp, please? I just nedd a good documentation about it. TIA -- PHP General Mailing List

Re: [PHP] Using Cookies Securely

2003-06-01 Thread Evan Nemerson
Again, It's not perfect, but I don't think anyone has come up with a better way. It's called session hijacking, and it is a great reason to use SSL. However, there's still the issue of cross-site scripting, which can really only be prevented by smarter coding. Even then there are issues. For

Re: [PHP] Compile 4.3.2 Errors.

2003-06-01 Thread Evan Nemerson
Don't know about 4.3.2, but at the end of 5.0-dev make, the following message is output: Build complete. (It is safe to ignore warnings about tempnam and tmpnam). On Saturday 31 May 2003 06:29 am, Volker Augustin wrote: hi, this sounds like a warning not like an error, your php is

Re: [PHP] PHP getting values from XML

2003-06-01 Thread Yann Larrivee
Hi there are a couple projects done in php to go around these problemes however it will cost you on performance. Here are a couple projects you might want to look into (I never used them, but since the book XML and PHP talk about them i guess they are good proejcts) eZXML (an alternative to

[PHP] Re: Decrypting data with GnuPG

2003-06-01 Thread Pierre-Luc Soucy
Just for the record, adding the --batch argument to the GnuPG command solved the problem. Regards, Pierre-Luc Pierre-Luc Soucy wrote: Hi, I would like to decrypt data encoded with GnuPG without including the private key passphrase in the command to prevent people from viewing it with ps.

Re: [PHP] reading binary data

2003-06-01 Thread Evan Nemerson
file_get_contents() is binary safe. $binary_data = file_get_contents(/path/to/file); php.net/file_get_contents On Saturday 31 May 2003 12:42 pm, Ferhat BINGOL wrote: Hi, I have binary data. I know the format but I do not know how to read it with PHP. I saw some articles and comments on the

[PHP] Re: regex problem

2003-06-01 Thread Monty
I don't understand what it is you're trying to accomplish, so, it's hard to offer a solution. If you just want to verify whether or not a variable contains numeric data, why not just use the is_numeric() function: http://us4.php.net/manual/en/function.is-numeric.php preg_match() will return

Re: [PHP] reading binary data

2003-06-01 Thread Ferhat BINGOL
I do not understand how to use this one from the manual but thanks I am working on it. Meanwhile I was trying to open the binary with fopen and unpack 154 bytes from it (it is the firs line accordint to my structure format.) I got the first letter but afterwords it just gives stupid characters.

Re: [PHP] get modification date of remote page

2003-06-01 Thread Evan Nemerson
/* UNTESTED. */ function get_http_lm_date($url) { $d = parse_url($url); if ( !$fp = fsockopen ($d['host'], (isset($d['port'])) ? $d['port'] : '80') ) return FALSE; fputs($fp, HEAD .$d['path']. HTTP/1.0\r\n\r\n); while ( !feof($fp) ) {

Re: [PHP] reading binary data

2003-06-01 Thread Evan Nemerson
/* This example will echo the first 154 bytes of a file * (/path/to/file in the example). */ $binary_data = file_get_contents(/path/to/file): echo substr($binary_data, 0, 154); On Saturday 31 May 2003 01:29 pm, Ferhat BINGOL wrote: I do not understand how to use this one from the manual but

Re: [PHP] reading binary data

2003-06-01 Thread Ferhat BINGOL
I am getting NTERRUPT_DURATION or similar text between the values.. this binary reading thing is dahm jard.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Any POSTNUKER, reading from two DB

2003-06-01 Thread Brian V Bonini
On Sat, 2003-05-31 at 07:41, nabil wrote: Greeting, I have a postnuke site and I want to connect it to two databases in order to verify users from these databases. and..?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] String Manipulation

2003-06-01 Thread S. Cole
Hello all, I'm currently working on a site for my brother-in-law. I have written a script that will access a website (http://www.remax.nf.ca/listings.asp?a=163cp=1) and pull the page into a variable ($var). I have striped the page down to include only the listings (still in HTML and table

[PHP] Installation problem

2003-06-01 Thread Ron Dyck
I'm currently attempting to upgrade to the latest version of php. When I run: ./configure --with-apxs2=/usr/local/apache2/bin/apxs \ --with-mysql=/usr/local I get the following message: Cannot find header files under /usr/local Why is this? ron -- PHP General Mailing List

[PHP] INTERRUPT DURATION

2003-06-01 Thread Ferhat BINGOL
Have you ever get INTERRUPT DURATION string while you are trying to read a binary file. I am getting something like this. ferhat NTERRUPT_DURATIO | Nbingol RUPT_DURAT there is 65 characters dummy at the beginning afterwards 24 byte string 16 byte string... I am using this $record_format =

Re: [PHP] regex problem

2003-06-01 Thread Jim Lucas
Are you wanting the $_POST['nums1'] to have only numbers, -, ., #, : Is this what you are trying to match. if so, try this. if ( preg_match(/[^0-9\#\:\.\-]/, $_POST['nums1']) ) { throw error() } This will match anything that is not a number or one of the other special chars that are in

[PHP] Re: Getting the parsing time of a script

2003-06-01 Thread Bix
Thanks guys ;o) Bix [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Is there any way getting the time taken to parse a script? IE: This page took 0.13 seconds to generate. Is it a predefined variable anywhere? Thanks ;o) Bix. -- PHP General Mailing List

Re: [PHP] Installation problem

2003-06-01 Thread Jason k Larson
Call it a hunch ... ./configure --with-apxs2=/usr/local/apache2/bin/apxs \ --with-mysql=/usr/local/mysql -- Jason k Larson Ron Dyck wrote: I'm currently attempting to upgrade to the latest version of php. When I run: ./configure --with-apxs2=/usr/local/apache2/bin/apxs \

Re: [PHP] Compile 4.3.2 Errors.

2003-06-01 Thread Thomas Seifert
the same is given for 4.3.2, just compiled it today :). Thomas On Sat, 31 May 2003 12:50:38 -0700 [EMAIL PROTECTED] (Evan Nemerson) wrote: Don't know about 4.3.2, but at the end of 5.0-dev make, the following message is output: Build complete. (It is safe to ignore warnings about

Re: [PHP] Re: Long screen display cut short.

2003-06-01 Thread Floyd Baker
On Sat, 31 May 2003 13:18:13 +, you wrote: what is the online-version? I mean which webserver-software in which version? Thomas Linux RH 7.3 Apache 1.3.24 mySql 3.23.55 PHP4.2.0 Also, this is an httpS connection if it makes a difference in some way. Floyd On Fri, 30 May

php-general Digest 1 Jun 2003 00:43:06 -0000 Issue 2090

2003-06-01 Thread php-general-digest-help
php-general Digest 1 Jun 2003 00:43:06 - Issue 2090 Topics (messages 149647 through 149689): Re: Using Cookies Securely 149647 by: Dustin Mitchell 149670 by: Evan Nemerson Compile 4.3.2 Errors. 149648 by: Alberto Ferrer 149649 by: Volker Augustin

Re: [PHP] Re: Long screen display cut short.

2003-06-01 Thread Floyd Baker
Yes, there are a bunch of arrays in the program. This is on a DSL line... ?? Would the asynco thing be likely, or possibly even standard, with DSL? Did you come up with a workaround? Floyd On Sat, 31 May 2003 14:38:05 +0200, you wrote: On Fri, 30 May 2003 20:45:08 -0400 [EMAIL

Re: [PHP] PHP getting values from XML

2003-06-01 Thread Jaap van Ganswijk
Hi, At 2003-05-31 14:52 -0400, [EMAIL PROTECTED] wrote: I'm developing a site PHP site. I would like to define HTML code in XML and be able to get the HTML code using PHP. I was hoping for a simple example. I will not be able to update the version of PHP with any modules as my hosting company

Re: [PHP] regex problem

2003-06-01 Thread Daniel J. Rychlik
If I wanted to remove script/script tags from my form as well as html tags, would I use a preg_match function or is their another simple funtion that does this ? -Dan - Original Message - From: Jim Lucas [EMAIL PROTECTED] To: Daniel J. Rychlik [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent:

[PHP] trikky authentication question

2003-06-01 Thread daniel
hi guys i have an authentication class , there is one last big issue to fix , i am trying to prevent multiple logins , it does this ok except , the first login gets kicked instead of the second one , i have a last_login date entry to work with , what else should i have so on the login check if the

Re: [PHP] trikky authentication question

2003-06-01 Thread Volker Augustin
hi, this is only a very fast response :)) is solved this kind of problem like that: (quick solution for a chatboard - user cannot login for x seconds - maxidletime) /***two functions:**/ function logoutMsgBoardUser($UserName) global $MessageBoardTable,$SiteID;

Re: [PHP] trikky authentication question

2003-06-01 Thread daniel
doh silly me , i'll have to set a logged out flag , will help me in the long run :D thanks dude hi, this is only a very fast response :)) is solved this kind of problem like that: (quick solution for a chatboard - user cannot login for x seconds - maxidletime) /***two

Re: [PHP] Re: Long screen display cut short.

2003-06-01 Thread Tim Burden
I had same problem and it involved an array. In my case there was a typo, and the array I was trying to do something with didn't even exist, but it was hard to find because instead of dying with an error it would just sort of sit there, not outputting anything further, until I clicked stop in the

RE: [PHP] trikky authentication question

2003-06-01 Thread John W. Holmes
hi guys i have an authentication class , there is one last big issue to fix , i am trying to prevent multiple logins , it does this ok except , the first login gets kicked instead of the second one , i have a last_login date entry to work with , what else should i have so on the login check

RE: [PHP] trikky authentication question

2003-06-01 Thread daniel
What if I accidentally close my browser and come back to log in? The system will not let me because I'm still logged_in until X minutes pass. Also with this method, you need to keep track of these attempted log ins and somehow alert the first user. good question i'm checking this out atm :|

Re: [PHP] trikky authentication question

2003-06-01 Thread Volker Augustin
hmmm, for me these few line are working well, user cannot login before max-idletime is reached (i check the list every time an action is taken on the board, if no user is online, i cant login forever and have to connect as another user first ;) thats all, you could check idletime for all users

Re: [PHP] trikky authentication question

2003-06-01 Thread daniel
so wot do i check upon , (NOW() - last_login) max_idletime ? what do i do with the other check for logged_in=0 ? hmmm, for me these few line are working well, user cannot login before max-idletime is reached (i check the list every time an action is taken on the board, if no user is

RE: [PHP] trikky authentication question

2003-06-01 Thread John W. Holmes
for me these few line are working well, user cannot login before max-idletime is reached (i check the list every time an action is taken on the board, if no user is online, i cant login forever and have to connect as another user first ;) And you call that a viable solution? That's

RE: [PHP] trikky authentication question

2003-06-01 Thread daniel
wots the best solution then ?? SELECT username FROM users WHERE logged_in=0 AND username='.$this-post ['username'].' thats my current one but yes i get blocked out , what else can i add to it ? And you call that a viable solution? That's ridiculous. -- PHP General Mailing List

RE: [PHP] trikky authentication question

2003-06-01 Thread daniel
ok here is the latest sql query SELECT username FROM users WHERE (logged_in=0 OR (NOW()-last_login) 300 AND username='.$this-post['username'].' there is the idle time added but what after the idle time they log bak in and then kiks the first login out ? there must be a better solution ??

RE: [PHP] trikky authentication question

2003-06-01 Thread daniel
ok well i just noticed my sql statement is a bit flakey as its not a true idle time to get a true idle i'd have to keep a record of the time every request to the pages when logged in, this is checking when they lasted logged in so the user may still be logged in 300 seconds later , this isnt

RE: [PHP] trikky authentication question

2003-06-01 Thread Volker Augustin
i said that before! just a hint to think offany questions? volker - Original Message - From: John W. Holmes [EMAIL PROTECTED] To: 'Volker Augustin' [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, June 01, 2003 5:48 AM Subject: RE: [PHP] trikky

[PHP] OOP question

2003-06-01 Thread Jackson Miller
Is it possible to reference two instances of an object at once with a single variable name while retaining the ability to reference the objects seperately? I am using the PEAR Template IT package and need to generate two similar but different results at the same time. I am doing this with two

[PHP] mirror search is going to google !!!

2003-06-01 Thread daniel
the idiot mirror search is going to google instead and not giving me results http://www.google.com/search?q=manual%2Fen%2Ffunction.connection- aborted.php+site:www.php.netl=en -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Add Up Prices in Array

2003-06-01 Thread Ralph
I'm querying prices off a database then storing these in an array, I want to add these up to get the grand total, how would I go about adding up all the prices stored in the array? Thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Add Up Prices in Array

2003-06-01 Thread Rasmus Lerdorf
If they are coming out of your database, why not get your database to do it for you by calling SUM() in your query? On Sun, 1 Jun 2003, Ralph wrote: I'm querying prices off a database then storing these in an array, I want to add these up to get the grand total, how would I go about adding up

[PHP] RE: connection_aborted was [PHP] trikky authentication question

2003-06-01 Thread daniel
how can i get this to work ?? if (connection_aborted()) $this-db-query(UPDATE users SET logged_in=0 WHERE userID=$this-userID); ok well i just noticed my sql statement is a bit flakey as its not a true idle time to get a true idle i'd have to keep a record of the time every request to the

Re: [PHP] mirror search is going to google !!!

2003-06-01 Thread Rasmus Lerdorf
We are reworking our local search code. It was killing the server. Pointed it at Google temporarily. -Rasmus On Sun, 1 Jun 2003 [EMAIL PROTECTED] wrote: the idiot mirror search is going to google instead and not giving me results

Re: [PHP] RE: connection_aborted was [PHP] trikky authenticationquestion

2003-06-01 Thread Rasmus Lerdorf
On Sun, 1 Jun 2003 [EMAIL PROTECTED] wrote: how can i get this to work ?? if (connection_aborted()) $this-db-query(UPDATE users SET logged_in=0 WHERE userID=$this-userID); Did you read the connection handling chapter in the manual?

Re: [PHP] OOP question

2003-06-01 Thread Rasmus Lerdorf
On Sat, 1 Jun 2003, Jackson Miller wrote: Is it possible to reference two instances of an object at once with a single variable name while retaining the ability to reference the objects seperately? No chance. Well, you could hack it with some really fancy object overloading, but in general,

RE: [PHP] Add Up Prices in Array

2003-06-01 Thread Ralph
Right... I never thought of this. But can I use this if what I'm trying to get the (price * quantity). -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED] Sent: Sunday, June 01, 2003 12:43 AM To: Ralph Cc: PHP General Mailing List Subject: Re: [PHP] Add Up Prices in Array

[PHP] mysql_connect() -- flags

2003-06-01 Thread Armand Turpel
Hi, Is there any body who have experience with the flags in mysql_connect() in php = 4.3 . Especially the MYSQL_CLIENT_COMPRESS flag. I dont know if it works or not. I cant make any difference. Should php must be compiled with a special flag to get work this? Thanks Armand -- PHP General

Re: [PHP] Cookies and Sessions: What's the Best Recipe?

2003-06-01 Thread Justin French
on 01/06/03 6:01 AM, Monty ([EMAIL PROTECTED]) wrote: I have a member site that uses sessions. People who have their browser cookies turned off, however, cannot use our site. I read somewhere that to avoid this, I'd have to manually append the PHPSESSID var to every URL when redirecting in a

RE: [PHP] Add Up Prices in Array

2003-06-01 Thread Ralph
Disregard my last post, I went with what you suggested and I got it to work. Thanks again. -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED] Sent: Sunday, June 01, 2003 12:43 AM To: Ralph Cc: PHP General Mailing List Subject: Re: [PHP] Add Up Prices in Array If they are

[PHP] Shipping Rates

2003-06-01 Thread Ralph
Maybe it's just that it's late, but can't seem to figure this out. I want to show a shipping price depending on the amount of purchase. I thought about using a lot of if() statements, but I know this is not the best way to go about this. Can anybody enlighten me on this one and give me a better

RE: [PHP] Shipping Rates

2003-06-01 Thread Ralph
I thought about this but how would I go about performing greater than or equal to without having to specify a CASE for every price range? -Original Message- From: Jason Paschal [mailto:[EMAIL PROTECTED] Sent: Sunday, June 01, 2003 1:47 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Shipping

RE: [PHP] RE: connection_aborted was [PHP] trikky authentication question

2003-06-01 Thread electroteque
of course thats where i got the example from but it doesnt work ignore_user_abort(true); if (connection_aborted()) $this-db-query(UPDATE users SET logged_in=0 WHERE userID=$this-userID); if i close the browser its not setting the fiel to 0 meaning they are logged out -Original Message-

Re: [PHP] Shipping Rates

2003-06-01 Thread Rasmus Lerdorf
Better approach in what sense? From a performance perspective you are not going to beat a specific set of if conditions unless there is an distinct formula you can apply. I will assume there is no simple mathematical relationship for your full set of data and what you are really looking for is a

RE: [PHP] RE: connection_aborted was [PHP] trikky authenticationquestion

2003-06-01 Thread Rasmus Lerdorf
?? Are you reading that chapter at all? Closing the browser has absolutely nothing to do with aborted connections unless the browser is closed while data is actually flowing across the wire. You are completely on the wrong track here. HTTP is a simple stateless protocol. Sessions can be used

Re: [PHP] OOP question

2003-06-01 Thread Ernest E Vogelsinger
At 08:39 01.06.2003, Jackson Miller said: [snip] Is it possible to reference two instances of an object at once with a single variable name while retaining the ability to reference the objects seperately? [snip] Not

Re: [PHP] OOP question

2003-06-01 Thread Ernest E Vogelsinger
Just noticed a small glitch in the attach() method - check_object will not be called for the first object. Use this attach() / check_object() implementation instead. The var $class instance variable of CTeeObject can be omitted. function attach($hObj) { if (!$this-check_object($hObj))

[PHP] Re: cheap PHP+SQL WebHosting

2003-06-01 Thread Arcadius A.
Thanks! Arcadius. Nabil [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] www.spiderhosts.com i'v been for so long with them, and the service is good Nabil www.cabms.org www.d2ue.com Arcadius A. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello! Please, do you

php-general Digest 1 Jun 2003 12:45:55 -0000 Issue 2091

2003-06-01 Thread php-general-digest-help
php-general Digest 1 Jun 2003 12:45:55 - Issue 2091 Topics (messages 149690 through 149725): Re: Long screen display cut short. 149690 by: Floyd Baker 149696 by: Tim Burden Re: PHP getting values from XML 149691 by: Jaap van Ganswijk Re: regex problem