RE: [PHP] Mail and hotmail

2006-05-04 Thread Peter Lauri
:) And that was my subject for the test mail I sent :) It was just a coincidence. What values can Importance have? $headers = "X-Sender: ".$this->myFrom." <".$this->myFromEmail.">".$eol; $headers .= "From: ".$this->myFrom." <".$this->myFromEmail.">".$eol; $headers .= "Date: ".date("r").$eol; $

Re: [PHP] Mail and hotmail

2006-05-04 Thread Angelo Zanetti
Peter Lauri wrote: I do set the headers now, but still the email is not delivered to Hotmail. This is the headers that I set: X-Sender: [EMAIL PROTECTED] From: DWS Asia <[EMAIL PROTECTED]> Date: Thu, 04 May 2006 22:04:23 +0700 Subject: What is this? 2 the subject of your email! -- PHP Genera

Re: [PHP] User confirmation questions?

2006-05-04 Thread William Stokes
OK ""Rabin Vincent"" <[EMAIL PROTECTED]> kirjoitti viestissä:[EMAIL PROTECTED] On 5/5/06, William Stokes <[EMAIL PROTECTED]> wrote: > In PHP is it possible to generate "windows style" question boxes and get > the > users choice back? Or do I need javascript or something else for that? > > For ex

Re: [PHP] User confirmation questions?

2006-05-04 Thread Rabin Vincent
On 5/5/06, William Stokes <[EMAIL PROTECTED]> wrote: In PHP is it possible to generate "windows style" question boxes and get the users choice back? Or do I need javascript or something else for that? For example if a user hits a button in form I could ask for his confirmation for the action. Li

[PHP] User confirmation questions?

2006-05-04 Thread William Stokes
Hello, In PHP is it possible to generate "windows style" question boxes and get the users choice back? Or do I need javascript or something else for that? For example if a user hits a button in form I could ask for his confirmation for the action. Like "Do you Really wan't to drop the whole dat

RE: [PHP] Mail and hotmail

2006-05-04 Thread Peter Lauri
I do set the headers now, but still the email is not delivered to Hotmail. This is the headers that I set: X-Sender: [EMAIL PROTECTED] From: DWS Asia <[EMAIL PROTECTED]> Date: Thu, 04 May 2006 22:04:23 +0700 Subject: What is this? 2 Delivered-to: Markus Karlsson <[EMAIL PROTECTED]> MIME-Version: 1

Re: [PHP] PHP Forms

2006-05-04 Thread Chris
R. Van Tassel wrote: Thanks for the quick response, that seems simple enough, but each row has about 12 fields, so I just create 12 foreach statements? Always CC the list.. Number the fields in the same way and you can do something like this: $number_of_fields = sizeof($_POST['quantity']); fo

Re: [PHP] Paged Results Set in MySQL DB with one result

2006-05-04 Thread Jochem Maas
Richard Lynch wrote: On Thu, May 4, 2006 10:15 am, Edward Vermillion wrote: On May 4, 2006, at 4:16 AM, Richard Lynch wrote: On Wed, May 3, 2006 6:57 pm, Jochem Maas wrote: ... Yes. Usually. Mostly sometimes. For something like a Forum or a CMS with minimal EZ tags for the admin on a

Re: [PHP] List of sessions

2006-05-04 Thread Tony Aldrich
Honestly, the easiest way to solve this is to switch to 'user' PHP sessions: http://php.net/session-set-save-handler Thanks. I'm trying now to do this. I'm wondering about "session-set-save-handler" - what is "manual garbage collector" here? It means I must explicitly "unset" all variables or

Re: [PHP] PHP Forms

2006-05-04 Thread Chris
R. Van Tassel wrote: I am having an issue with a form, basically an order form, with 10 rows. Each row is the same, the rows are being generated by a loop and I am appending the counter of the loop to the name of the form elements (i.e. quantity1, type1, next row = quantity2, type2, etc) I c

[PHP] PHP Forms

2006-05-04 Thread R. Van Tassel
I am having an issue with a form, basically an order form, with 10 rows. Each row is the same, the rows are being generated by a loop and I am appending the counter of the loop to the name of the form elements (i.e. quantity1, type1, next row = quantity2, type2, etc) I can't seem to receive the

Re: [PHP] Mail and hotmail

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 5:37 am, Peter Lauri wrote: > mail('[EMAIL PROTECTED]', 'A nice subject', 'Some text', 'From: > Peter > Lauri <[EMAIL PROTECTED]>'); I think you need 'From: "Peter Lauri" <[EMAIL PROTECTED]>' for starters. > This email does not arrive to the Hotmail inbox. There's spam, and t

Re: [PHP] php and ssl

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 6:04 am, Schalk wrote: > I am currently implementing a form for a client that will run over > https. Now, all is good and well except, for some reason when the form > loads in IE the lock in the status bar displays for a short while and > then goes away, it is fine in Firefox th

Re: [PHP] Paged Results Set in MySQL DB with one result

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 10:15 am, Edward Vermillion wrote: > > On May 4, 2006, at 4:16 AM, Richard Lynch wrote: > >> On Wed, May 3, 2006 6:57 pm, Jochem Maas wrote: >>> the marker is either there or not - and if it'd borked (e.g. '

Re: [PHP] Array Sorting

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 10:47 am, Stut wrote: > It's worth noting that if you're not using the fact that they're > indexed > on the filename it's probably faster to use integer keys instead of > strings, but don't quote me on that. I'm not overly familiar with the > internals of PHP... yet! I think th

Re: [PHP] Array Sorting

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 10:20 am, James Nunnerley wrote: > $file_array[$filename] = array ("Date" => $Date, "size" => $size, > "permissions" => $permissions); > > I can quite happily sort the array by filename (using natksort and > natkrsort), which I found on the php manual - and for reference have >

RE: [PHP] Test URL length please (Pretty much 0T)

2006-05-04 Thread Chris W. Parker
Ryan A on Thursday, May 04, 2006 4:08 PM said: >> Are you sure you searched on this subject? > >> "maximum url length" in Google turns up a number of >> resources saying "2083" due to IE's limit. > > Yes, I mentioned that in my original post... Yes I know, that's

Re: [PHP] Paged Results Set in MySQL DB with one result

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 9:12 am, tedd wrote: [snip] > Synopsis: > You could just Javascript and browser info to dynamically layout text to > "fit" available space and word-wrap nicely. Find me anybody on the planet who has actually successfully done this. Even easier: Point to ONE existing website t

Re: [PHP] Avoiding user refresh of pages with forms

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 6:37 am, John Wells wrote: > On 5/3/06, Satyam <[EMAIL PROTECTED]> wrote: >> I used that method initially, some months ago, but finally dropped >> it. It >> looked nice at first, but then I started getting into problems and >> required >> too many special cases to make it work.

Re: [PHP] Re: Imagemagick Displaying Images

2006-05-04 Thread Ray Hauge
On Thursday 04 May 2006 17:52, Ray Hauge wrote: > [SNIP] > I could use a cache, but I haven't yet. It's for an internal intranet > application, so I'm not worried about page load times too much. With 10 > pdfs it still loads in about a minute, and I don't expect there to be many > more than 30 or

Re: [PHP] Echo a value from an arrays position

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 9:09 am, John Wells wrote: > On 5/4/06, Ford, Mike <[EMAIL PROTECTED]> wrote: >> They're not even that. They're pure associative arrays, or maps -- >> it's just that integer keys are treated somewhat specially so that >> an array with *only* integer keys will look like a traditi

Re: [PHP] Echo a value from an arrays position

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 7:24 am, Jonas Rosling wrote: > Is there any way to call for an element value in an array by the > position? > Like position 2 in the array and not the key name. You DEFINITELY need to re-read the Array section of the manual. Because you either didn't read it, or didn't unders

Re: [PHP] session cookie and domains

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 7:37 am, Merlin wrote: > I am operating 3 sites where I would like to be able to login cross > site. Means > with one login have a valid session on all 3 domain. > > Currently I do set the cookie like this: > setcookie($cookiename,$sessid,0,'/','.'.$domain[name],0); > > That mak

RE: [PHP] What editor do you use?

2006-05-04 Thread Robert Cummings
On Thu, 2006-05-04 at 17:49, Paul Novitski wrote: > At 01:53 PM 5/4/2006, Robert Cummings wrote: > > [--- SNIPPITY SNIP SNIP ---] > > ...Why am I enabling such an OT thread on a PHP list? Quick someone shoot me. It's my fault, I was mostly trolling *heheh*. Cheers, Rob. -- .

Re: [PHP] Re: Imagemagick Displaying Images

2006-05-04 Thread Ray Hauge
On Thursday 04 May 2006 17:52, Ray Hauge wrote: > On Thursday 04 May 2006 17:41, Richard Lynch wrote: > > [NB: Ray said that...] > > > > > It's easy if the image is all that is on the page. > > > > E. HTML and in-line images don't really work in a cross-browser > > compatible sort of way, and

Re: [PHP] Quotation marks considered harmful

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 1:53 pm, John Hicks wrote: > Why not develop a language syntax that has distinct open and close > string delimiters? Because then you need to escape the closing character anyway, to have it as data, so what did you just gain, really? Not to mention that all the "good" matching

Re: [PHP] Re: Imagemagick Displaying Images

2006-05-04 Thread Ray Hauge
On Thursday 04 May 2006 17:41, Richard Lynch wrote: > [NB: Ray said that...] > > > It's easy if the image is all that is on the page. > > E. HTML and in-line images don't really work in a cross-browser > compatible sort of way, and really mess with browser caching and page > load times and are

Re: [PHP] causing HTTP error status

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 8:50 am, Nic wrote: > I'm having trouble with setting HTTP error status from PHP4. > > The PHP docs say that if I have this : > > WILD GUESS!!! Try it with full pathname to /mydir, or perhaps without the leading '/' or some combination of more/fewer directories and/or slash

Re: [PHP] Maximum URL length (Pretty much 0T)

2006-05-04 Thread Jim Lucas
Ryan A wrote: Hey, When i started on the net I was told that if sending than 256 characters via a form to use a POST instead of a GET method, now that I am playing with URL rewriting I wanted to know if member served me right, but searching via google I see that IE takes up to 2040-2083 characte

Re: [PHP] preg_replace_callback

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 8:03 am, tJey wrote: > Hi. I have problem with preg_replace_callback. It seems that my > pattern > is bad, but I can't find any error. > > Pattern : \[\s*((\d|\w|_)+)\s*\] > this pattern is intended to find strings like "[field]", > "[ fi12_eld]"... > > but every time I get warn

Re: [PHP] htmlentities() with utf8

2006-05-04 Thread Chris
Marten Lehmann wrote: Hello, I want to use htmlentities() with UTF-8, which I can set with the third parameter. But to use the third parameter, I have to provide the second parameter. Currently the default for the second parameter is ENT_COMPAT. But as this might change, I don't want to call

Re: [PHP] Re: Imagemagick Displaying Images

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 10:26 am, Al wrote: > Richard Lynch wrote: >>> Ray Hauge wrote: convert -resize 800x600 AR-M455N_20060420_130446.pdf[0] - The '-' makes it display the contents of the image to stdout. I want to caputre that binary data and somehow display the images inl

Re: [PHP] htmlentities() with utf8

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 11:02 am, Marten Lehmann wrote: > I want to use htmlentities() with UTF-8, which I can set with the > third > parameter. But to use the third parameter, I have to provide the > second > parameter. Currently the default for the second parameter is > ENT_COMPAT. > But as this migh

RE: [PHP] What editor do you use?

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 3:39 pm, Nicolas Verhaeghe wrote: > Well, I like the autocomplete feature, allows me to work faster. > > How about that? More time to go do what you like to do better. I actually find that autocomplete, and even syntax-highlighting, merely distract me as the screen re-draws and

RE: [PHP] Maximum URL length (Pretty much 0T)

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 2:24 pm, Jay Blanchard wrote: > [snip] > I *think* Jay is referring to submitting forms via GET. > [/snip] > > Exactly. All of those with your foot in the proximity of your mouth > may > put them (the foot's) back on the ground nowor up on your desk if > you prefer. Actuall

Re: [PHP] Maximum URL length (Pretty much 0T)

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 1:54 pm, John Nichel wrote: > Paul Novitski wrote: >> At 10:41 AM 5/4/2006, Jay Blanchard wrote: >>> People who use GET requests are lazy. >> >> >> "Lazy"?? Jumpin jujubees yer spoilin' fer a fight, boy. [snip] >> validate it, but that's no different when you take input from

Re: [PHP] include problem

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 1:46 pm, Jef Sullivan wrote: > I have set a variable and building a string that will be used later in > my php file. > > The string is a table. Within this table I want to call another php > file > using include for a > > pulldown menu. The problem is the included file is not sh

Re: [PHP] PEAR DB nextId() sequences

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 2:48 pm, Drew Butler wrote: > Just had a quick question for anyone out there. I've been using PEAR's > DB > object for quite a while, as I have to simultaneously work with both > MySQL > and PostgreSQL. Currently I use the nextID() method to find new IDs > for the > rows that I

Re: [PHP] What means "Fatal error: pcntl_fork(): Error 11"?

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 3:45 pm, Oz wrote: > After lots of testing I can say: It helped. > I do still not exactly know why forking failed, but it seems to be > somehow related to the high number of processes. I'm pretty confident that it is directly related to the high number of processes. Your Opera

RE: [PHP] Maximum URL length (Pretty much 0T)

2006-05-04 Thread Ryan A
> > > [snip] > > > - Anything else you wish to add pertaining to > the > > > above. > > > [/snip] > > > > > > People who use GET requests are lazy. > > > > What does... > > > > Edit User > #241241 > > > > ...have to do with being lazy? > If you're sending over a couple of hundred > characte

RE: [PHP] Test URL length please (Pretty much 0T)

2006-05-04 Thread Ryan A
Hey, Thanks for replying and testing it out. > Without any tweaking of the server mine went up to > 4000 without a > problem. However, 5000 always times out. > > Fx 1.5, Apache 2, Fedora 4, PHP 4.3.11 Cool... > Are you sure you searched on this subject? > "maximum url length" in Google turns u

RE: [PHP] Test URL length please (Pretty much 0T)

2006-05-04 Thread Ryan A
Hey, Thanks for replying and testing it out. > Here's the thing though: Do you really want a > 4000-char URL? Not at all, I just wanted to know if I can put 30-50 words in a url or would it "break" > MOST people asking this question are e, not > newbies, Well, if you compare me to the

Re: [PHP] set_error_handler() fails

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 4:19 pm, icy wrote: > I use set_error_handler() in my script but it fails and returns NULL > indicating an error has happened. > But there are no entries in error.log ore something similar. > How can I find out what actually went wrong? It's possible that you have mistaken what

RE: [PHP] Test URL length please (Pretty much 0T)

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 4:51 pm, Chris W. Parker wrote: > Ryan A > on Thursday, May 04, 2006 1:36 PM said: > >> (Basically, I am checking to see how many characters >> we can have in a URL that the server will accept and >> process, the script checks 200-1000 chars.. add

RE: [PHP] Test URL length please (Pretty much 0T)

2006-05-04 Thread Chris W. Parker
Ryan A on Thursday, May 04, 2006 1:36 PM said: > (Basically, I am checking to see how many characters > we can have in a URL that the server will accept and > process, the script checks 200-1000 chars.. add more > if you want to) Without any tweaking of the server m

RE: [PHP] What editor do you use?

2006-05-04 Thread Paul Novitski
At 01:53 PM 5/4/2006, Robert Cummings wrote: Direct memory access beats secondary helper memory every time. Autocomplete is an incentive to have a lazy mind. When your brain has a larger overall picture of available resources, it can formulate better strategies than when it only has part of the p

RE: [PHP] Maximum URL length (Pretty much 0T)

2006-05-04 Thread Chris W. Parker
Ryan A on Thursday, May 04, 2006 1:18 PM said: > Thanks for replying, thats an idea, but was hoping > people from this list could reply with their > experiences because my local server might be different > from production servers that you guys access everyday > (as t

[PHP] set_error_handler() fails

2006-05-04 Thread icy
I use set_error_handler() in my script but it fails and returns NULL indicating an error has happened. But there are no entries in error.log ore something similar. How can I find out what actually went wrong? PS: I use error_reporting(E_ALL) and init_set('display_errors', 'On') on PHP 5.1.3 -

Re: [PHP] What means "Fatal error: pcntl_fork(): Error 11"?

2006-05-04 Thread Mark Charette
Oz wrote: First I wanted to create a queue for tasks; instead of forking directly only a limited number of processes should be run from the queue, when one finishes another should start. But I decided not to do this, because the queue can easily grow to reach the memory limit. If the queue of

RE: [PHP] What editor do you use?

2006-05-04 Thread Robert Cummings
On Thu, 2006-05-04 at 16:39, Nicolas Verhaeghe wrote: > > [snip] > > I am currently looking for a good PHP editor for Windows. I know, the > > question must have been asked so many times, but I thought I could ask > > it again now that a few editors have evolved, others have appeared. > > [/snip]

Re: [PHP] What means "Fatal error: pcntl_fork(): Error 11"?

2006-05-04 Thread Oz
Hi again, After lots of testing I can say: It helped. I do still not exactly know why forking failed, but it seems to be somehow related to the high number of processes. I also do not understand why this is a *fatal* error, since it could easily be handled by returning -1 (like in the PHP docs

RE: [PHP] What editor do you use?

2006-05-04 Thread Nicolas Verhaeghe
> [snip] > I am currently looking for a good PHP editor for Windows. I know, the > question must have been asked so many times, but I thought I could ask > it again now that a few editors have evolved, others have appeared. > [/snip] > > Eclipse. You could also STFA Joe! It's better than ever n

[PHP] Test URL length please (Pretty much 0T)

2006-05-04 Thread Ryan A
Hi again, Kindly save the below code as t.php and run it in as many browsers/servers you can, then click on each of the links and tell me if you run into any problems. (Basically, I am checking to see how many characters we can have in a URL that the server will accept and process, the script chec

RE: [PHP] Maximum URL length (Pretty much 0T)

2006-05-04 Thread Ryan A
Hey, > > > - Anything else you wish to add pertaining to the > > above. > > You could try sending an insanely long value to a > script on your page > and see how much of the actual data it received > before being truncated > or causing an error. Thanks for replying, thats an idea, but was hopin

[PHP] PEAR DB nextId() sequences

2006-05-04 Thread Drew Butler
Hey guys, Just had a quick question for anyone out there. I've been using PEAR's DB object for quite a while, as I have to simultaneously work with both MySQL and PostgreSQL. Currently I use the nextID() method to find new IDs for the rows that I insert, but am running into an issue with its sequ

RE: [PHP] Sanity checker?

2006-05-04 Thread Jay Blanchard
[snip] Have you ever seen things like for ($i = 0; $i < count($some_array); $i++) { //do stuff } Do you know how slow it is if $some_array gets big compared to $array_count = count($some_array); for ($i = 0; $i < $array_count; $i++) { //do stuff } [/snip] The thing is this; there are lots

Re: [PHP] Sanity checker?

2006-05-04 Thread Ezra Nugroho
It was a long time since I post any question to this list, like back at php 3x time. Boy, a lot has change now. So I actually did kick some funny bones, not quite flames yet. And that's good, I don't really like that. We aren't going to take the time to answer a rhetorical question when you can

RE: [PHP] Maximum URL length (Pretty much 0T)

2006-05-04 Thread Jay Blanchard
[snip] I *think* Jay is referring to submitting forms via GET. [/snip] Exactly. All of those with your foot in the proximity of your mouth may put them (the foot's) back on the ground nowor up on your desk if you prefer. We have all been at our computers to damned long. We have a launch date

Re: [PHP] Maximum URL length (Pretty much 0T)

2006-05-04 Thread Paul Novitski
At 10:41 AM 5/4/2006, Jay Blanchard wrote: People who use GET requests are lazy. Paul Novitski wrote: "Lazy"?? Jumpin jujubees yer spoilin' fer a fight, boy. ... Now go on outside and breath some fresh air, you been workin on that computer too long. At 11:54 AM 5/4/2006, John Nichel wr

Re: [PHP] Quotation marks considered harmful

2006-05-04 Thread Dave Goodchild
Surely you can't then interpolate the variables? On 04/05/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: You can simplify usi single instead double quotes: echo ' view delete '; :) -afan > John Wells wrote: >> Personally, I get tired (and confused) when having to escape all of >> tho

Re: [PHP] Quotation marks considered harmful

2006-05-04 Thread afan
You can simplify usi single instead double quotes: echo ' view delete '; :) -afan > John Wells wrote: >> Personally, I get tired (and confused) when having to escape all of >> those quotes like in the string you're trying to echo above. Perhaps >> you'd consider HEREDOC as an alternative

Re: [PHP] What editor do you use?

2006-05-04 Thread Miles Thompson
At 03:35 PM 5/4/2006, John Nichel wrote: Nicolas Verhaeghe wrote: I am currently looking for a good PHP editor for Windows. I know, the question must have been asked so many times, but I thought I could ask it again now that a few editors have evolved, others have appeared. It has been asked,

Re: [PHP] Quotation marks considered harmful

2006-05-04 Thread Dave Goodchild
You can: list item for example On 04/05/06, John Hicks <[EMAIL PROTECTED]> wrote: John Wells wrote: > Personally, I get tired (and confused) when having to escape all of > those quotes like in the string you're trying to echo above. Perhaps > you'd consider HEREDOC as an alternative

Re: [PHP] Maximum URL length (Pretty much 0T)

2006-05-04 Thread John Nichel
Paul Novitski wrote: At 10:41 AM 5/4/2006, Jay Blanchard wrote: People who use GET requests are lazy. "Lazy"?? Jumpin jujubees yer spoilin' fer a fight, boy. GET can be an extremely useful tool. As a user, with certain applications, I appreciate being able to tweak the URL manually in the

[PHP] Quotation marks considered harmful

2006-05-04 Thread John Hicks
John Wells wrote: Personally, I get tired (and confused) when having to escape all of those quotes like in the string you're trying to echo above. Perhaps you'd consider HEREDOC as an alternative approach: Here's n idea I've had and never expressed publicly before. I wonder if some of you hav

RE: [PHP] Maximum URL length (Pretty much 0T)

2006-05-04 Thread Paul Novitski
At 10:41 AM 5/4/2006, Jay Blanchard wrote: People who use GET requests are lazy. "Lazy"?? Jumpin jujubees yer spoilin' fer a fight, boy. GET can be an extremely useful tool. As a user, with certain applications, I appreciate being able to tweak the URL manually in the browser address bar,

[PHP] include problem

2006-05-04 Thread Jef Sullivan
Greetings everyone, Thanks for the help in advance. PHP version is 4.3 I have set a variable and building a string that will be used later in my php file. The string is a table. Within this table I want to call another php file using include for a pulldown menu. The problem is the includ

Re: [PHP] What editor do you use?

2006-05-04 Thread John Nichel
Nicolas Verhaeghe wrote: I am currently looking for a good PHP editor for Windows. I know, the question must have been asked so many times, but I thought I could ask it again now that a few editors have evolved, others have appeared. It has been asked, and usually starts a flame war. STFA --

RE: [PHP] What editor do you use?

2006-05-04 Thread Robert Cummings
On Thu, 2006-05-04 at 13:29, Jay Blanchard wrote: > [snip] > I am currently looking for a good PHP editor for Windows. I know, the > question must have been asked so many times, but I thought I could ask > it > again now that a few editors have evolved, others have appeared. > [/snip] > > Eclipse.

RE: [PHP] Maximum URL length (Pretty much 0T)

2006-05-04 Thread Robert Cummings
On Thu, 2006-05-04 at 13:48, Chris W. Parker wrote: > Jay Blanchard > on Thursday, May 04, 2006 10:42 AM said: > > > [snip] > > - Anything else you wish to add pertaining to the > > above. > > [/snip] > > > > People who use GET requests are lazy. > > What does... >

Re: [PHP] Problem with usort

2006-05-04 Thread Jon Earle
Rabin Vincent wrote: > You're missing the $ for ret_val on the return line. Clue-by-four to the head accepted. Thank you, it works well, now that it's written properly. Cheers! Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Maximum URL length (Pretty much 0T)

2006-05-04 Thread Ryan A
> [snip] > - Anything else you wish to add pertaining to the > above. > [/snip] > > People who use GET requests are lazy. Guilty as charged...but not in this case, am putting in extra time to get this working. The reason I want to use this is to add the subject of the blog to the URL eg: blog

RE: [PHP] Maximum URL length (Pretty much 0T)

2006-05-04 Thread Chris W. Parker
Jay Blanchard on Thursday, May 04, 2006 10:42 AM said: > [snip] > - Anything else you wish to add pertaining to the > above. > [/snip] > > People who use GET requests are lazy. What does... Edit User #241241 ...have to do with being lazy? Chris. -- PHP Genera

RE: [PHP] Maximum URL length (Pretty much 0T)

2006-05-04 Thread Chris W. Parker
Ryan A on Thursday, May 04, 2006 10:38 AM said: > - Anything else you wish to add pertaining to the > above. You could try sending an insanely long value to a script on your page and see how much of the actual data it received before being truncated or causing an er

RE: [PHP] Maximum URL length (Pretty much 0T)

2006-05-04 Thread Jay Blanchard
[snip] - Anything else you wish to add pertaining to the above. [/snip] People who use GET requests are lazy. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Maximum URL length (Pretty much 0T)

2006-05-04 Thread Ryan A
Hey, When i started on the net I was told that if sending than 256 characters via a form to use a POST instead of a GET method, now that I am playing with URL rewriting I wanted to know if member served me right, but searching via google I see that IE takes up to 2040-2083 characters in a GET, ano

Re: [PHP] Mail and hotmail

2006-05-04 Thread Christian Heinrich
Hi Peter, RFC 2156 (http://www.faqs.org/rfcs/rfc2156.html) defines the importance header as following: importance = "low" / "normal" / "high" Which means that you can either use the values low, normal or high HTH, Christian The only one I do not know what to set it to is "Importance"

RE: [PHP] What editor do you use?

2006-05-04 Thread Jay Blanchard
[snip] I am currently looking for a good PHP editor for Windows. I know, the question must have been asked so many times, but I thought I could ask it again now that a few editors have evolved, others have appeared. [/snip] Eclipse. You could also STFA -- PHP General Mailing List (http://www.php

[PHP] What editor do you use?

2006-05-04 Thread Nicolas Verhaeghe
I am currently looking for a good PHP editor for Windows. I know, the question must have been asked so many times, but I thought I could ask it again now that a few editors have evolved, others have appeared. Before I used something called Ultraedit but I was disappointed by the lack of features,

Re: [PHP] Paged Results Set in MySQL DB with one result

2006-05-04 Thread Paul Novitski
At 07:12 AM 5/4/2006, tedd wrote: If the text is organized into paragraphs, which I can't imagine it not being, then the solution can be found in using a combination of javascript and php. Javascript can detect the size (height & width) of window the user is currently using and the web site h

Re: [PHP] Geting feet wet with REGEX and url rewriting (maybe a bit 0T)

2006-05-04 Thread Ryan A
Works perfectly, thank you! Just got a bit confused after all the reading. Regards, Ryan > > You just need to add another pair of parenthesis > to get the second match. For your case, it'll be > something like (untested): > > RewriteRule ^blog-([0-9]+)-([^\.]+)\.html$ > index.php?act=blog&id=$1

Re: [PHP] Re: php and ssl

2006-05-04 Thread Schalk
Schalk Neethling wrote: Barry wrote: Schalk schrieb: Greetings All, I am currently implementing a form for a client that will run over https. Now, all is good and well except, for some reason when the form loads in IE the lock in the status bar displays for a short while and then goes away,

Re: [PHP] php script fails when run from cron

2006-05-04 Thread blackwater dev
I finally got it working and Chris was correct. It appears that cron was using the wrong php. Pumping the errors of even logging them wouldn't have helped as I was tweaking the ini for the php I thought it was using. When I explicitly tell it which one to use, it seems to work fine. Thanks! O

Re: [PHP] Problem with usort

2006-05-04 Thread Martin Alterisio \"El Hombre Gris\"
Rabin Vincent escribió: On 5/4/06, Jon Earle <[EMAIL PROTECTED]> wrote: $ret_val = 0; if ($aday == $bday) {$ret_val = 0;} else {$ret_val = ($aday < $bday) ? -1 : 1;} return ret_val; You're missing the $ for ret_val on the return line. PHP thus understands the return value as a string,

Re: [PHP] Geting feet wet with REGEX and url rewriting (maybe a bit 0T)

2006-05-04 Thread Rabin Vincent
On 5/4/06, Ryan A <[EMAIL PROTECTED]> wrote: RewriteRule ^blog-([0-9]+).html$ index.php?act=blog&id=$1 This is fine, but you should really be escaping the "." (by writing it as "\."). Otherwise, it matches any character, not just the literal period. mysite.com/blog/blog-2-the_great_escape.ht

Re: [PHP] Problem with usort

2006-05-04 Thread John Wells
On 5/4/06, Stut <[EMAIL PROTECTED]> wrote: Anyway, as someone else has pointed out, there is a missing $ on the return value. -Stut Yup, missed that one too. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with usort

2006-05-04 Thread Stut
John Wells wrote: Not true actually, it's a quick "if/else" using the ternary operator. It's also difficult to read all on one line: $ret_val = 0; if ($aday == $bday) { $ret_val = 0; } else { // what this does is test if $aday is less than $bday. // If so, it sets $ret_val to -1. If

Re: [PHP] Problem with usort

2006-05-04 Thread John Wells
On 5/4/06, Stut <[EMAIL PROTECTED]> wrote: Jon Earle wrote: > $ret_val = 0; > if ($aday == $bday) {$ret_val = 0;} > else {$ret_val = ($aday < $bday) ? -1 : 1;} > return ret_val; > > I could be wrong, but I think you need some extra brackets on the else line... else {$ret_val = (($aday < $b

Re: [PHP] Problem with usort

2006-05-04 Thread Rabin Vincent
On 5/4/06, Jon Earle <[EMAIL PROTECTED]> wrote: $ret_val = 0; if ($aday == $bday) {$ret_val = 0;} else {$ret_val = ($aday < $bday) ? -1 : 1;} return ret_val; You're missing the $ for ret_val on the return line. PHP thus understands the return value as a string, "ret_val", which would b

[PHP] Geting feet wet with REGEX and url rewriting (maybe a bit 0T)

2006-05-04 Thread Ryan A
Hey all, Every now and then I start on using REGEXs and URL rewriting as needed then stop again, this is one of those times :-) I have a simple url rewite that goes like this: RewriteRule ^blog-([0-9]+).html$ index.php?act=blog&id=$1 and I send urls to the page like this: mysite.com/blog/blog-2.h

RE: [PHP] Creating an OO Shopping Cart

2006-05-04 Thread Chris W. Parker
Richard Lynch on Thursday, May 04, 2006 2:06 AM said: > Contact the bank with which you already HAVE a merchant account for > your point-of-sale credit card swiper thingies. Already have the info in front of me. :) > If you're re-doing it anyway, you might as well

[PHP] htmlentities() with utf8

2006-05-04 Thread Marten Lehmann
Hello, I want to use htmlentities() with UTF-8, which I can set with the third parameter. But to use the third parameter, I have to provide the second parameter. Currently the default for the second parameter is ENT_COMPAT. But as this might change, I don't want to call htmlentities with htm

Re: [PHP] Problem with usort

2006-05-04 Thread Stut
Jon Earle wrote: $ret_val = 0; if ($aday == $bday) {$ret_val = 0;} else {$ret_val = ($aday < $bday) ? -1 : 1;} return ret_val; I could be wrong, but I think you need some extra brackets on the else line... else {$ret_val = (($aday < $bday) ? -1 : 1);} -Stut -- PHP General Mailing L

Re: [PHP] Array Sorting

2006-05-04 Thread Stut
James Nunnerley wrote: I think I may have written down my variable structure incorrectly in the first place, which even has me confused... The $file_array[$filename] is I don't think a further array. The "sub" values are created as follows: $file_array[$filename]["Date"] = ... $file_array[$fi

[PHP] Problem with usort

2006-05-04 Thread Jon Earle
Hi folks, Config is Apache/1.3.34 (Unix) PHP/4.4.1 mod_ssl/2.8.25 OpenSSL/0.9.7i. If my usort callback has in it: if ($aday == $bday) {return 0;} else {return ($aday < $bday) ? -1 : 1;} everything works - lots of sort operations happen on the array (three elements) and it sorts correctly.

RE: [PHP] Array Sorting

2006-05-04 Thread James Nunnerley
I think I may have written down my variable structure incorrectly in the first place, which even has me confused... The $file_array[$filename] is I don't think a further array. The "sub" values are created as follows: $file_array[$filename]["Date"] = ... $file_array[$filename]["Size"] = ... Lo

[PHP] Re: preg_replace_callback

2006-05-04 Thread Al
tJey wrote: Hi. I have problem with preg_replace_callback. It seems that my pattern is bad, but I can't find any error. Pattern : \[\s*((\d|\w|_)+)\s*\] this pattern is intended to find strings like "[field]", "[ fi12_eld]"... but every time I get warning message "Warning: preg_replace_callbac

Re: [PHP] Array Sorting

2006-05-04 Thread Stut
James Nunnerley wrote: I've got an array which has the following properties: $file_array[$filename] = array ("Date" => $Date, "size" => $size, "permissions" => $permissions); I can quite happily sort the array by filename (using natksort and natkrsort), which I found on the php manual - and fo

Re: [PHP] Re: Imagemagick Displaying Images

2006-05-04 Thread Al
Richard Lynch wrote: Ray Hauge wrote: convert -resize 800x600 AR-M455N_20060420_130446.pdf[0] - The '-' makes it display the contents of the image to stdout. I want to caputre that binary data and somehow display the images inline with the website. Is this possible, or am I living in a dream

[PHP] Array Sorting

2006-05-04 Thread James Nunnerley
Hi All, I've got an array which has the following properties: $file_array[$filename] = array ("Date" => $Date, "size" => $size, "permissions" => $permissions); I can quite happily sort the array by filename (using natksort and natkrsort), which I found on the php manual - and for reference have

  1   2   >