[PHP] mktime() vs date()

2006-04-18 Thread Jasper V. Ferrer
hi, is mktime() actually faster than date() or any other date functions? tnx. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Spell Checker

2006-04-18 Thread BH.VN.Viswanath
Hi We need to check the spelling of a word which is actually a Domain name. For example we have to check the word onlinetradeing. When checked with the spell checkers we are getting the words which are unrelated such as on, obliterating, incinerating, intruding etc. But exactly what we want

Re: [PHP] Spell Checker

2006-04-18 Thread Jochem Maas
BH.VN.Viswanath wrote: Hi We need to check the spelling of a word which is actually a Domain name. For example we have to check the word onlinetradeing. When checked with the spell checkers we are getting the words which are unrelated such as on, obliterating, incinerating, intruding etc.

[PHP] can i do this in one step

2006-04-18 Thread Ross
I am retrieving the vlaue from an associative arrray but do I need to do it in with two lines of code? The numerical value is stroed in the DB. $region_array = array('a' ='All of Scotland', 1 ='Aberdeen City Council', 2 ='Aberdeenshire Council', 3 ='AngusCouncil', 5 ='Argyll and Bute Council',

RE: [PHP] Spell Checker

2006-04-18 Thread Dan Harrington
Possibly the Porter Stemming Algorithm could help you? Just an idea . . . Basically I'm thinking that in each string, you would break it down into a combination of root words and Prefixes and suffixes. Definitely some serious data crunching going on. Hope this helps.

Re: [PHP] SQL result

2006-04-18 Thread Andrei
I think you need mysql_fetch_assoc() or mysql_fetch_array(). You also can have a look into php's manual and simple find your functions... http://www.php.net/download-docs.php Andy Mohsen Pahlevanzadeh wrote: Dear all, I remember that i use a func that it return an array what it consist of

Re: [PHP] can i do this in one step

2006-04-18 Thread Jochem Maas
Ross wrote: I am retrieving the vlaue from an associative arrray but do I need to do it in with two lines of code? The numerical value is stroed in the DB. $region_array = array('a' ='All of Scotland', 1 ='Aberdeen City Council', 2 ='Aberdeenshire Council', 3 ='AngusCouncil', 5 ='Argyll and

[PHP] what functionality does CGI miss in relation to apache module SAPI?

2006-04-18 Thread Jochem Maas
hi Guys/Girls, does anyone have a concise list of the functionality missing from the CGI SAPI in comparison to the the Apache module (including any functional differences)? as far as I can tell CGI doesn't give me anything extra in terms of functionality but the precise differences elude me

RE: [PHP] Spell Checker

2006-04-18 Thread BH.VN.Viswanath
Hi, Can you please mention those tools ? I am unaware of any tool of that kind Regards BH.VN.Viswanath -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 18, 2006 1:01 PM To: BH.VN.Viswanath Cc: php-general@lists.php.net Subject: Re: [PHP] Spell

Re: [PHP] Spell Checker

2006-04-18 Thread Jochem Maas
BH.VN.Viswanath wrote: Hi, Can you please mention those tools ? I am unaware of any tool of that kind I said 'I doubt there are many tools ...' which strongly suggests that I don't know off the top of my head any tools/software that will allow someone with absolutely no knowledge of

Re: [PHP] Spell Checker

2006-04-18 Thread Jochem Maas
BH.VN.Viswanath wrote: Hi I just asked you because I m unaware of those things. All wont be the same.. better stop blaming and criticizing and work on the things. And My country the critique is justified because you _just_ asked - you didn't (seemlingly) make any effort to even do a 5 second

[PHP] Forking a search - pcntl

2006-04-18 Thread James Nunnerley
I'm creating a search function as part of our webmail frontend, however I'm having big problems with timeout etc. What we'd like to do is run the actual search query in the background (i.e. fork) while the viewable page shows a nice scrollie banner etc! Due to various problems with the

Re: [PHP] Forking a search - pcntl

2006-04-18 Thread Stut
James Nunnerley wrote: I'm creating a search function as part of our webmail frontend, however I'm having big problems with timeout etc. What we'd like to do is run the actual search query in the background (i.e. fork) while the viewable page shows a nice scrollie banner etc! Due to various

[PHP] creating a SELECT AND query

2006-04-18 Thread Ross
I have a textboxt which searches for the surname of a client. A SELECTBOX searches for the area. I am trying to generate a query that searches all of scotland (when area=a) and by area (say I live in area 16= edinburgh) and combine this with the name search select name=area class=text

RE: [PHP] mktime() vs date()

2006-04-18 Thread Jay Blanchard
[snip] hi, is mktime() actually faster than date() or any other date functions? [/snip] This sounds like the perfect opportunity for you to write a test and return the results. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] creating a SELECT AND query

2006-04-18 Thread Robin Vickery
On 18/04/06, Ross [EMAIL PROTECTED] wrote: $query1= select * from $table_name WHERE sname LIKE '$search_string%' ; if ($area=a) { $query1 .= AND area='a'; } else { $query1 .=AND area='$area'; } Firstly, you're assigning a to area rather than testing whether $area is a. You need a

Re: [PHP] Spell Checker

2006-04-18 Thread tedd
At 12:42 PM +0530 4/18/06, BH.VN.Viswanath wrote: Hi We need to check the spelling of a word which is actually a Domain name. For example we have to check the word onlinetradeing. When checked with the spell checkers we are getting the words which are unrelated such as on, obliterating,

Re: [PHP] Table formation...

2006-04-18 Thread tedd
that said how often do you _really_ need a 1 or a 0, Surprisingly enough, I need it quite often. Enough so that I keep an example nearby. I'm assuming that the 1 or 0 are used to detemine an on/off state. is my assumption correct? Mostly even/odd, this/that, right/left, on/off, up/down,

Re: [PHP] Forking a search - pcntl

2006-04-18 Thread chris smith
On 4/18/06, Stut [EMAIL PROTECTED] wrote: James Nunnerley wrote: I'm creating a search function as part of our webmail frontend, however I'm having big problems with timeout etc. What we'd like to do is run the actual search query in the background (i.e. fork) while the viewable page shows

RE: [PHP] Last one for today! Pager problem

2006-04-18 Thread Jay Blanchard
[snip] My pager does everything but when I hit any of the links for the pages it doesn't show any results. It can be seen here (alothough the page doesn't seen to submit on the remote host. Any ideas why?? [/snip] I think it might be coder error, but that's just me. Anyone else? -- PHP

Re: [PHP] Spell Checker

2006-04-18 Thread Stut
BH.VN.Viswanath wrote: We need to check the spelling of a word which is actually a Domain name. For example we have to check the word onlinetradeing. When checked with the spell checkers we are getting the words which are unrelated such as on, obliterating, incinerating, intruding etc.

Re: [PHP] Last one for today! Pager problem

2006-04-18 Thread ross
The page works fine on my localhost the only problem is the first page of the pager is the only one I can see before it resets. On the remote host the area should automatically be set to a with the line. if(!isset($_POST['area'])){ $_POST['area']='a'; $area = $_POST['area'];} but it does not

Re: [PHP] Spell Checker

2006-04-18 Thread Barry
Stut wrote: BH.VN.Viswanath wrote: We need to check the spelling of a word which is actually a Domain name. For example we have to check the word onlinetradeing. When checked with the spell checkers we are getting the words which are unrelated such as on, obliterating, incinerating,

[PHP] Pushing Vars into $_SESSION

2006-04-18 Thread Chris Grigor
Afternoon Was wondering if there is an easier way to get returned variables into the $_SESSION rather than going through each one?? eg $link_id = mysql_connect($dbhost, $dbuser, $dbpass) or die(Connection to $dbhost failed on verification section); mysql_select_db($logindb,

RE: [PHP] Last one for today! Pager problem

2006-04-18 Thread tedd
At 9:53 AM -0500 4/18/06, Jay Blanchard wrote: [snip] My pager does everything but when I hit any of the links for the pages it doesn't show any results. It can be seen here (alothough the page doesn't seen to submit on the remote host. Any ideas why?? [/snip] I think it might be coder error,

Re: [PHP] Last one for today! Pager problem

2006-04-18 Thread ross
what does this mean? when I said 'everything else' I meant it calcualted the number of results/pages and displays the first page but then wipes the results when I click on any of the other links (page2 | page3 etc.) Ross - Original Message - From: tedd [EMAIL PROTECTED] To: Jay

Re: [PHP] Last one for today! Pager problem

2006-04-18 Thread Barry
tedd wrote: At 9:53 AM -0500 4/18/06, Jay Blanchard wrote: [snip] My pager does everything but when I hit any of the links for the pages it doesn't show any results. It can be seen here (alothough the page doesn't seen to submit on the remote host. Any ideas why?? [/snip] I think it might be

[PHP] sprintf() oddity

2006-04-18 Thread Chris Boget
What's going on here: $number = 50.1234567890; echo sprintf( '%.05f', $number ); result: 50.12346 $number = 5.1234567890; echo sprintf( '%.05f', $number ); result: 5.12305 $number = 5000.1234567890; echo sprintf( '%.05f', $number );

[PHP] Re: sprintf() oddity

2006-04-18 Thread Barry
Chris Boget wrote: What's going on here: $number = 50.1234567890; echo sprintf( '%.05f', $number ); result: 50.12346 $number = 5.1234567890; echo sprintf( '%.05f', $number ); result: 5.12305 $number = 5000.1234567890; echo sprintf(

Re: [PHP] Pushing Vars into $_SESSION

2006-04-18 Thread Paul Waring
On 18/04/06, Chris Grigor [EMAIL PROTECTED] wrote: Was wondering if there is an easier way to get returned variables into the $_SESSION rather than going through each one?? First of all, why are you using mysql_fetch_object and then passing in MYSQL_ASSOC? You should be using $line =

[PHP] Pushing PHP Into The Web 2.0 Generation

2006-04-18 Thread James Crane
I've written a short paper on the future of PHP and I'd appreciate it if you folks would take a look at it and exchange your thoughts with me. http://www.maraby.com/papers/pushing_php_into_the_web_20_generation Don't be too skeptical. ;) Cheers! M.T. -- PHP General Mailing List

RE: [PHP] Pushing PHP Into The Web 2.0 Generation

2006-04-18 Thread Jay Blanchard
[snip] I've written a short paper on the future of PHP and I'd appreciate it if you folks would take a look at it and exchange your thoughts with me. http://www.maraby.com/papers/pushing_php_into_the_web_20_generation Don't be too skeptical. ;) [/snip] Web 2.0 Hype alert. There is no such

Re: [PHP] sprintf() oddity

2006-04-18 Thread Satyam
You are going beyond the number of significant digits PHP can handle so it is truncating beyond that. In the second case it look sstrange, the 12305 ending, but it is probably a 'round' number if you put it in binary, but it turns funny when converted to decimal. In the last example, the

RE: [PHP] Pushing PHP Into The Web 2.0 Generation

2006-04-18 Thread Jay Blanchard
[snip] I've written a short paper on the future of PHP and I'd appreciate it if you folks would take a look at it and exchange your thoughts with me. http://www.maraby.com/papers/pushing_php_into_the_web_20_generation Don't be too skeptical. ;) [/snip] I have now taken the time to read it and I

Re: [PHP] Pushing PHP Into The Web 2.0 Generation

2006-04-18 Thread Jochem Maas
Jay Blanchard wrote: [snip] I've written a short paper on the future of PHP and I'd appreciate it if you folks would take a look at it and exchange your thoughts with me. http://www.maraby.com/papers/pushing_php_into_the_web_20_generation Don't be too skeptical. ;) [/snip] Web 2.0 Hype alert.

Re: [PHP] Spell Checker

2006-04-18 Thread Jochem Maas
Stut wrote: BH.VN.Viswanath wrote: We need to check the spelling of a word which is actually a Domain name. For example we have to check the word onlinetradeing. When checked with the spell checkers we are getting the words which are unrelated such as on, obliterating, incinerating,

Re: [PHP] Pushing PHP Into The Web 2.0 Generation

2006-04-18 Thread Jochem Maas
Jay Blanchard wrote: [snip] I've written a short paper on the future of PHP and I'd appreciate it if you folks would take a look at it and exchange your thoughts with me. http://www.maraby.com/papers/pushing_php_into_the_web_20_generation Don't be too skeptical. ;) [/snip] I have now taken

Re: [PHP] Spell Checker

2006-04-18 Thread Stut
Stut wrote: Ok, this is gonna show how bored I've been today, maybe I need to find a more interesting job!! http://dev.stut.net/words/ There's a link there to the source of the guts. Hope it helps you. Still bored!! It can now order the results by average word length which pushes the

[PHP] Re: Pushing PHP Into The Web 2.0 Generation

2006-04-18 Thread Tony Marston
That paper does not have any substance in the same way that Web 2.0 does not have any substance. Web 2.0 is just a marketing ploy, a buzzword for the gullible. As far as I can see there is very little material difference between Web 1.0 and Web 2.0, certainly not as much difference a desktop

RE: [PHP] Pushing PHP Into The Web 2.0 Generation

2006-04-18 Thread Jay Blanchard
[snip] .. [/snip] And his mailing list name is James Crane, he signs of as M.T. which stands for Matt Todd. I call shenanigans. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Pushing PHP Into The Web 2.0 Generation

2006-04-18 Thread Joe Henry
On Tuesday 18 April 2006 10:50 am, Jay Blanchard wrote: [snip] .. [/snip] And his mailing list name is James Crane, he signs of as M.T. which stands for Matt Todd. I call shenanigans. My nominee for best analogy from the article: Much like the artists and writers of the early twentieth

Re: [PHP] Pushing PHP Into The Web 2.0 Generation

2006-04-18 Thread Martin Alterisio \El Hombre Gris\
Just what I needed today, another guy trying to find solutions when he doesn't even comprehend what the real problem is. A complete waste of my time. James Crane wrote: I've written a short paper on the future of PHP and I'd appreciate it if you folks would take a look at it and exchange your

[PHP] php 3 to 5 upgrade: foreach loop no longer working

2006-04-18 Thread Vernon Webb
I've recently upgraded a server from Fedora Core 3 to Core 5 in the process php had been upgraded from either 3 or 4 to php 5. In doing so I had to do a major overhaul of a web site as many things stopped working (.i.e $HTTP_POST_VAR, etc). Haven't gotten through most of that I know have a

Re: [PHP] php 3 to 5 upgrade: foreach loop no longer working

2006-04-18 Thread John Nichel
Vernon Webb wrote: I've recently upgraded a server from Fedora Core 3 to Core 5 in the process php had been upgraded from either 3 or 4 to php 5. In doing so I had to do a major overhaul of a web site as many things stopped working (.i.e $HTTP_POST_VAR, etc). Haven't gotten through most of

RE: [PHP] php 3 to 5 upgrade: foreach loop no longer working

2006-04-18 Thread Jay Blanchard
[snip] foreach ($checkbox as $value) { echo Value: $valuebr /\n; } however the value is no longer being echoed to the page. What am I missing here? This is the code that is being submitted, $num being an incremented value: input name=checkbox[?php echo $num; ?] type=checkbox

Re: [PHP] php 3 to 5 upgrade: foreach loop no longer working

2006-04-18 Thread Vernon Webb
Register Globals? You got it. Is there any advantage to having this turned off? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php 3 to 5 upgrade: foreach loop no longer working

2006-04-18 Thread John Nichel
Vernon Webb wrote: Register Globals? You got it. Is there any advantage to having this turned off? One or two http://us2.php.net/register_globals -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing

Re: [PHP] php 3 to 5 upgrade: foreach loop no longer working

2006-04-18 Thread Lester Caine
Vernon Webb wrote: Register Globals? You got it. Is there any advantage to having this turned off? It's a major security hole if left on ;) And convincing people to plug that hole was not happening, so something more major was needed. As I understand it - PHP6 will not even have the option

RE: [PHP] php 3 to 5 upgrade: foreach loop no longer working

2006-04-18 Thread Jim Moseby
It's a major security hole if left on ;) And convincing people to plug that hole was not happening, so something more major was needed. Only if the programmer uses it. As I understand it, register_globals being on doesn't present a security risk in and of itself as long as the programmer

Re: [PHP] Pushing PHP Into The Web 2.0 Generation

2006-04-18 Thread Kevin Waterson
This one time, at band camp, James Crane [EMAIL PROTECTED] wrote: http://www.maraby.com/papers/pushing_php_into_the_web_20_generation random rantings, lacks depth. Kevin -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the

[PHP] uml tool for php

2006-04-18 Thread jonathan
is there a suggested tool that can create uml diagrams for php 5 objects (ie import in a file and create a diagram)? -jonathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] uml tool for php

2006-04-18 Thread Jay Blanchard
[snip] is there a suggested tool that can create uml diagrams for php 5 objects (ie import in a file and create a diagram)? [/snip] http://uml.sourceforge.net/index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php 3 to 5 upgrade: foreach loop no longer working

2006-04-18 Thread Jochem Maas
Lester Caine wrote: Vernon Webb wrote: Register Globals? You got it. Is there any advantage to having this turned off? It's a major security hole if left on ;) it's a major _potential_ security hole. proper initialized of all [global] variables (and santization of incoming data) means an

Re: [PHP] Pushing PHP Into The Web 2.0 Generation

2006-04-18 Thread Jochem Maas
Jay Blanchard wrote: [snip] .. [/snip] And his mailing list name is James Crane, he signs of as M.T. which stands for Matt Todd. I call shenanigans. the article is also under the name of Matt Todd, didn't catch that first time round - very odd - if this was some kind of prank then first

[PHP] HTTP_REFERER with javascript: document.location

2006-04-18 Thread Yudie
Does anyone know how to resolve my problem I tried to get the referer url with $_SERVER['HTTP_REFERER'] but returns blank when I use javascript: document.location='...' from the previous page. Thank you. Yudie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] sprintf() oddity

2006-04-18 Thread Richard Lynch
On Tue, April 18, 2006 10:19 am, Chris Boget wrote: What's going on here: $number = 50.1234567890; echo sprintf( '%.05f', $number ); result: 50.12346 $number = 5.1234567890; echo sprintf( '%.05f', $number ); result: 5.12305 $number =

Re: [PHP] Pushing PHP Into The Web 2.0 Generation

2006-04-18 Thread Richard Lynch
On Tue, April 18, 2006 10:37 am, James Crane wrote: I've written a short paper on the future of PHP and I'd appreciate it if you folks would take a look at it and exchange your thoughts with me. http://www.maraby.com/papers/pushing_php_into_the_web_20_generation That's 5 minutes I'll never

Re: [PHP] HTTP_REFERER with javascript: document.location

2006-04-18 Thread Richard Lynch
On Tue, April 18, 2006 12:49 pm, Yudie wrote: Does anyone know how to resolve my problem I tried to get the referer url with $_SERVER['HTTP_REFERER'] but returns blank when I use javascript: document.location='...' from the previous page. Don't do that. :-) More specifically, no browser is

RE: [PHP] Pushing PHP Into The Web 2.0 Generation

2006-04-18 Thread Jay Blanchard
[snip] the article is also under the name of Matt Todd, didn't catch that first time round - very odd - if this was some kind of prank then first mailing internals (also under the name James Crane) has a really high ***hole factor. [/snip] I found the kid's actual e-mail addressanyone

[PHP] pause until page is loaded

2006-04-18 Thread Benjamin Adams
I created a script to redirect to a download auto. but it redirects before the Whole page is loaded. How do I pause until page is loaded? Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Pushing Vars into $_SESSION

2006-04-18 Thread Richard Lynch
On Tue, April 18, 2006 10:05 am, Chris Grigor wrote: Was wondering if there is an easier way to get returned variables into the $_SESSION rather than going through each one?? eg $link_id = mysql_connect($dbhost, $dbuser, $dbpass) or die(Connection to $dbhost failed on

RE: [PHP] pause until page is loaded

2006-04-18 Thread Jay Blanchard
[snip] I created a script to redirect to a download auto. but it redirects before the Whole page is loaded. How do I pause until page is loaded? [/snip] Page loading is client-side, but you can delay the redirect using sleep(). -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] pause until page is loaded

2006-04-18 Thread Benjamin Adams
I tried it but it still stops half way through the page and then continues. On Apr 18, 2006, at 5:24 PM, Jay Blanchard wrote: [snip] I created a script to redirect to a download auto. but it redirects before the Whole page is loaded. How do I pause until page is loaded? [/snip] Page loading

Re: [PHP] Last one for today! Pager problem

2006-04-18 Thread Richard Lynch
On Tue, April 18, 2006 9:46 am, Ross wrote: http://scottishsocialnetworks.org/editor.phps My pager does everything but when I hit any of the links for the pages it doesn't show any results. It can be seen here (alothough the page doesn't seen to submit on the remote host. Any ideas

[PHP] PHP6 just became my worst nightmare.

2006-04-18 Thread Jochem Maas
RANT type=long, lingering, desperate apparently calling a dynamic function using static syntax will cause an E_FATAL. well f***ing great. so the foundation of the Object-Database mapping code I have been writing/developing since php5 was in beta [you won't believe how many segfaults I worked

Re: [PHP] Last one for today! Pager problem

2006-04-18 Thread Richard Lynch
They're complaining that your pager code actually has a whole bunch of stuff in it that has nothing to do with paging, really, and that you need to educate yourself as a better programmer... That's kind of WAY beyond the scope of this list, but perhaps you could take some kind of General

Re: [PHP] Pushing PHP Into The Web 2.0 Generation

2006-04-18 Thread Jochem Maas
Jay Blanchard wrote: [snip] the article is also under the name of Matt Todd, didn't catch that first time round - very odd - if this was some kind of prank then first mailing internals (also under the name James Crane) has a really high ***hole factor. [/snip] I found the kid's actual e-mail

Re: [PHP] pause until page is loaded

2006-04-18 Thread Satyam
Run it on the onLoad event of the Body entity. - Original Message - From: Benjamin Adams [EMAIL PROTECTED] To: php Nichel php-general@lists.php.net Sent: Tuesday, April 18, 2006 11:19 PM Subject: [PHP] pause until page is loaded I created a script to redirect to a download auto.

Re: [PHP] Forking a search - pcntl

2006-04-18 Thread Richard Lynch
On Tue, April 18, 2006 5:21 am, James Nunnerley wrote: What we'd like to do is run the actual search query in the background (i.e. fork) while the viewable page shows a nice scrollie banner etc! fork is not the only solution for this, thank [insert deity here] Due to various problems with

Re: [PHP] HTTP_REFERER with javascript: document.location

2006-04-18 Thread Yudie
Thank you for your advise. I guess it's impossible to get reliable value referrer from another site? How about the website statistic engine out there be able to get the referrals address' - Original Message - From: Richard Lynch [EMAIL PROTECTED] To: Yudie [EMAIL PROTECTED] Cc:

[PHP] Date time Comparison

2006-04-18 Thread Murtaza Chang
Hi everyone, this is the function I have written for comparing a date time please tell me if my logic is correct ? and if there's a better alternative please let me know of that as well. // This function will return 1 if supplied date is expired function is_expire($expiry_date){

Re: [PHP] creating a SELECT AND query

2006-04-18 Thread Richard Lynch
On Tue, April 18, 2006 6:03 am, Ross wrote: select name=area class=text id=area option value=aAll of Scotland/option option value='1'Aberdeen City Counci.../option /select This is what I thought would work.. $query1= select * from

Re: [PHP] what functionality does CGI miss in relation to apache module SAPI?

2006-04-18 Thread Richard Lynch
On Tue, April 18, 2006 3:54 am, Jochem Maas wrote: does anyone have a concise list of the functionality missing from the CGI SAPI in comparison to the the Apache module (including any functional differences)? as far as I can tell CGI doesn't give me anything extra in terms of functionality

Re: [PHP] Pushing PHP Into The Web 2.0 Generation

2006-04-18 Thread Jochem Maas
Matt Todd wrote: Oh, and for the record, my email address is [EMAIL PROTECTED], amongst many others. And what does me posting this up have anything to do with me being an *sshole? Salman Rushie might have good reason to use a psuedonym - and probably a few human-rights activists living china.

Re: [PHP] Spell Checker

2006-04-18 Thread Richard Lynch
On Tue, April 18, 2006 2:12 am, BH.VN.Viswanath wrote: We need to check the spelling of a word which is actually a Domain name. For example we have to check the word onlinetradeing. When checked with the spell checkers we are getting the words which are unrelated such as on, obliterating,

Re: [PHP] what functionality does CGI miss in relation to apache module SAPI?

2006-04-18 Thread Jochem Maas
Richard, thanks for the feedback. Richard Lynch wrote: On Tue, April 18, 2006 3:54 am, Jochem Maas wrote: does anyone have a concise list of the functionality missing from the CGI SAPI in comparison to the the Apache module (including any functional differences)? as far as I can tell CGI

Re: [PHP] Spell Checker

2006-04-18 Thread Richard Lynch
On Tue, April 18, 2006 9:53 am, Stut wrote: BH.VN.Viswanath wrote: We need to check the spelling of a word which is actually a Domain name. For example we have to check the word onlinetradeing. When checked with the spell checkers we are getting the words which are unrelated such as

Re: [PHP] Date time Comparison

2006-04-18 Thread Richard Lynch
http://php.net/mktime may be more suitable, depending on the date range of the input. That said, as far as I can tell, your $formated_expiry_date is the SAME as your $expiry_date, except possibly for some separation characters. If the separation characters are ALWAYS the same, you could just do:

Re: [PHP] pause until page is loaded

2006-04-18 Thread Richard Lynch
On Tue, April 18, 2006 4:19 pm, Benjamin Adams wrote: I created a script to redirect to a download auto. but it redirects before the Whole page is loaded. How do I pause until page is loaded? If you want to wait until the BROWSER loads the whole page, then the BROWSER has to tell you when it

[PHP] New image already cached.

2006-04-18 Thread tedd
Hi gang: I wrote a program that presents a bunch of thumbnails to the users. When the user wants to view a larger version of one of the thumbnails, s/he simply clicks the thumbnail and another page is displayed with the larger image -- nothing new there. However, considering that the larger

Re: [PHP] HTTP_REFERER with javascript: document.location

2006-04-18 Thread Richard Lynch
Probably uses the same thing you're trying to use, which is NOT reliable. Works for most browsers in most situations, but not reliably. Walking through your web access logs can also sometimes use heuristics regarding time and IP address to guess which users are unique or not, but they are not

Re: [PHP] what functionality does CGI miss in relation to apache module SAPI?

2006-04-18 Thread Richard Lynch
On Tue, April 18, 2006 5:26 pm, Jochem Maas wrote: CGI is the only way to run php5 on an apache setup already running the php4 module (the guy the admins the server in question will only install php5 in that way because it's managable -- that is to say Gentoo now support this configuration

Re: [PHP] New image already cached.

2006-04-18 Thread Paul Novitski
At 03:47 PM 4/18/2006, tedd wrote: Unfortunately, not all browsers treat an image link in the same manner. For example, Safari and FireFox treats the link /images/merged.png as a new image every time. Unfortunately, Opera and some other browsers cache the first image and every time after

Re: [PHP] New image already cached.

2006-04-18 Thread Richard Lynch
Browsers are not at all reliable about caching (or not) anything other than HTML text in terms of HTTP Headers. Don't waste your time looking for a set of HTTP Headers that will work. I can guarantee *SOME* user out there will have a browser that will do the Wrong Thing for any set of headers

Re: [PHP] PHP6 just became my worst nightmare.

2006-04-18 Thread Robert Cummings
On Tue, 2006-04-18 at 17:29, Jochem Maas wrote: RANT type=long, lingering, desperate apparently calling a dynamic function using static syntax will cause an E_FATAL. well f***ing great. so the foundation of the Object-Database mapping code I have been writing/developing since php5 was in

RE: [PHP] Pushing PHP Into The Web 2.0 Generation

2006-04-18 Thread Robert Cummings
On Tue, 2006-04-18 at 17:20, Jay Blanchard wrote: [snip] the article is also under the name of Matt Todd, didn't catch that first time round - very odd - if this was some kind of prank then first mailing internals (also under the name James Crane) has a really high ***hole factor. [/snip]

Re: [PHP] New image already cached.

2006-04-18 Thread Paul Novitski
At 04:12 PM 4/18/2006, Richard Lynch wrote: If however, you want to be sure the browser doesn't cache the image, because it is dynamic, just add some randomness to the URL. Technically, that means the browser WILL cache it, but you'll never use the same URL twice, so you won't really care.

Re: [PHP] return a formatted difference between two dates

2006-04-18 Thread Richard Lynch
On Mon, April 17, 2006 8:55 pm, tedd wrote: As I understand it, it won't make any difference if you use strtotime() See: http://www.weberdev.com/strtotime Errr, yeah. Only problem is, he needs non-existent function that might be named timetostr which takes an elapsed time and turns it into a

Re: [PHP] New image already cached.

2006-04-18 Thread Richard Lynch
On Tue, April 18, 2006 6:39 pm, Paul Novitski wrote: At 04:12 PM 4/18/2006, Richard Lynch wrote: If however, you want to be sure the browser doesn't cache the image, because it is dynamic, just add some randomness to the URL. Technically, that means the browser WILL cache it, but you'll never

[PHP]Sessions

2006-04-18 Thread Gissel y Fridel
Hi: I'm a beginner using PHP and I don't speak english very well but I like your site because I believe that you are the best. Mi problem is with sessions, how can I do to delete a files of a server when the user closes the page. Cheers Fridel

Re: [PHP]Sessions

2006-04-18 Thread Richard Lynch
On Tue, April 18, 2006 1:09 pm, Gissel y Fridel wrote: I'm a beginner using PHP and I don't speak english very well but I like your site because I believe that you are the best. Mi problem is with sessions, how can I do to delete a files of a server when the user closes the page. They

[PHP] Session_destroy

2006-04-18 Thread Shannon Doyle
Hi People, Trying to get a session to destroy correctly, however the darn thing just refuses to destroy. I call the following in a separate webpage in a effort to destroy the session, only to find that the session still persists. ?php session_start(); session_unset(); session_destroy();

Re: [PHP] New image already cached.

2006-04-18 Thread Paul Novitski
At 05:02 PM 4/18/2006, Richard Lynch wrote: If you don't care that some users are not going to see what they need to see on your site, then you just go right ahead and try it with your caching headers. Richard, I'm not suggesting the use of flakey cache control, but rather the use of a

[PHP] session_destroy

2006-04-18 Thread Shannon Doyle
Hi People, Trying to get a session to destroy correctly, however the darn thing just refuses to destroy. I call the following in a separate webpage in a effort to destroy the session, only to find that the session still persists. ?php session_start(); session_unset(); session_destroy();

Re: [PHP] session_destroy

2006-04-18 Thread Peter Hoskin
I've also had this issue from time to time. Used the following to destroy it under all circumstances. if (isset($_COOKIE[session_name()])) { setcookie(session_name(), '', time()-42000, '/'); } session_destroy(); Shannon Doyle wrote: Hi People, Trying to get a session to

Re: [PHP] session_destroy

2006-04-18 Thread Martin Alterisio \El Hombre Gris\
That's exactly what the manual says. session_destroy() doesñ't clean the session cookie (if one is used), that's probably why your session persists. Peter Hoskin wrote: I've also had this issue from time to time. Used the following to destroy it under all circumstances. if

RE: [PHP] session_destroy

2006-04-18 Thread Shannon Doyle
That’s just it, I am not setting a session cookie. Just starting a session with the following :- session_name(XPCSESS); session_start(); $sessID = session_id(); -Original Message- From: Martin Alterisio El Hombre Gris [mailto:[EMAIL PROTECTED] Sent: Wednesday, 19 April 2006 12:36

Re: [PHP] Spell Checker

2006-04-18 Thread Stut
Richard Lynch wrote: You may find a longer (possibly better, or not) list of words in: /usr/share/dict/web2 Or similar location. Here is the README from that directory: # @(#)README 8.1 (Berkeley) 6/5/93 # $FreeBSD: src/share/dict/README,v 1.7.2.2 2002/08/20 21:42:32 alfred Exp $