php-general Digest 13 Nov 2007 16:31:50 -0000 Issue 5126

2007-11-13 Thread php-general-digest-help
php-general Digest 13 Nov 2007 16:31:50 - Issue 5126 Topics (messages 264417 through 264445): Re: Which is the best windows IDE for PHP ? 264417 by: Andrew O. Shadoura 264418 by: mvh 264419 by: Chris 264421 by: David Calkins 264431 by: Al Session

php-general Digest 14 Nov 2007 07:43:19 -0000 Issue 5127

2007-11-13 Thread php-general-digest-help
php-general Digest 14 Nov 2007 07:43:19 - Issue 5127 Topics (messages 264446 through 264474): Re: Problem retrieving $_POST values 264446 by: Jon Westcot Re: Need a hint how to track an error 264447 by: Jochem Maas 264449 by: Jochem Maas Re: Simple reading a file

Re: [PHP] PHP ide?

2007-11-13 Thread Peter Ford
Lester Caine wrote: Peter Ford wrote: I've tried to use Eclipse PDT, and it's just generally horrible - the All-in-one has no Subversion support and no SSH support for deploying to the server properly. The debugging support worked well on the windows version, but I couldn't get it to work

[PHP] Fwd: enhanced_list_box

2007-11-13 Thread kNish
-- Forwarded message -- From: kNish [EMAIL PROTECTED] Date: Nov 12, 2007 3:50 PM Subject: enhanced_list_box To: php-general@lists.php.net Hi, I am using this function enhanced_list_box. This works fine. Except the return value is None. How is it possible for it to

Re: [PHP] Need a hint how to track an error

2007-11-13 Thread Robin Vickery
On 12/11/2007, Ronald Wiplinger [EMAIL PROTECTED] wrote: Chris wrote: Ronald Wiplinger wrote: My php program is working with Firefox, but not with Internet Explorer. Nothing to do with php, your problem is javascript. Is there a tool to find the problem? For IE, try

Re: [PHP] Problem retrieving $_POST values

2007-11-13 Thread Jon Westcot
Hi Chris: Exactly as you have there. print_r($_POST); will show you everything. Here's a section of what comes back when I do this: [mls] = 1234567 [property_address] = Main St [city_arr] = Array ( [0] = CHNDHT [1] = CHNDLR [2]

Re: [PHP] Problem retrieving $_POST values

2007-11-13 Thread chris smith
On Nov 13, 2007 7:10 PM, Jon Westcot [EMAIL PROTECTED] wrote: Hi Chris: Exactly as you have there. print_r($_POST); will show you everything. Here's a section of what comes back when I do this: [mls] = 1234567 [property_address] = Main St [city_arr] = Array

Re: [PHP] Which is the best windows IDE for PHP ?

2007-11-13 Thread Al
phpEdit mvh wrote: I am using crimson editor for editing now It is the best editor i found. But is it not an IDE. - Hemanth http://www.ValueAds.co.in http://www.ValueAds.co.in http://www.PaidAds.co.in http://www.PaidAds.co.in Bangalore, India Ph: +919844125556 -- PHP General Mailing

[PHP] Jobs in Frederick, MD

2007-11-13 Thread Christoph Boget
My company has the following job openings available. Be sure to check out our recruiting video at https://www.yakabod.com/join.html?nav=4. It's a pretty fun watch. :) Join in the Adventure. Yakabod, a web software and services company, is located in a beautifully restored facility in

Re: [PHP] Question about arrays

2007-11-13 Thread Jason Pruim
On Nov 13, 2007, at 1:34 AM, Jim Lucas wrote: Jason Pruim wrote: Hi Everyone, I have a question, and to avoid getting flammed until the morning, I waited to ask until the end of my day :) Or near it at least. I have a small simple script I'm writing so that I can calculate how much a

[PHP] Re: Need a hint how to track an error

2007-11-13 Thread Al
Install the Firefox extension HTML Validator. It does a real time Tidy check for every page. Make your code W3C compatible and it'll work on all modern browsers. Ronald Wiplinger wrote: My php program is working with Firefox, but not with Internet Explorer. I cannot see anything I did wrong,

[PHP] PHP Job in Curitiba, Brasil

2007-11-13 Thread Marcelo Wolfgang
Hi list We here at ZeroCinco Propaganda are looking for a PHP Developer to assist me in our web projects Must have a good knoledge of PHP and mySQL, and integration with ActionScript. Also you need to be confortable using Photoshop. If you are interested send your resume to [EMAIL PROTECTED]

[PHP] Simple reading a file and extract fields

2007-11-13 Thread Ronald Wiplinger
I got a larger file which consists of lines with a defined length of 56 characters. Each line ends with a line feed (0A), From each line I want one field from position 1 ~ 5 and field 2 from position 7 ~ 46. I tried: $myFile = plaiso; $fh = fopen($myFile, 'r'); $theDataLine =

Re: [PHP] Simple reading a file and extract fields

2007-11-13 Thread David Calkins
The fgets() function only reads a single line from the file. See the below link for a way to read through all lines in the file. Then after reading each line, use substr to pull out the fields. http://us.php.net/manual/en/function.fgets.php On Nov 13, 2007 8:53 AM, Ronald Wiplinger [EMAIL

Re: [PHP] Fwd: Returned mail: User unknown

2007-11-13 Thread Daniel Brown
On Nov 13, 2007 1:40 AM, Jim Lucas [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: PLEASE I have like 50 from it so far. -Original Message- From: Daniel Brown [mailto:[EMAIL PROTECTED] Sent: Monday, November 12, 2007 5:31 PM To: php-general List Subject: [PHP] Fwd:

Re: [PHP] Fwd: Returned mail: User unknown

2007-11-13 Thread tedd
At 10:40 PM -0800 11/12/07, Jim Lucas wrote: -snip- That is funny, I have not received one bounce message. Jim Same here, but my subscription to this list is via my gmail account -- maybe that filters it for me. Cheers, tedd -- --- http://sperling.com http://ancientstones.com

Re: [PHP] Trigger an action on session timeout - feature request?

2007-11-13 Thread Philip Thompson
On Nov 12, 2007 3:19 PM, Jake [EMAIL PROTECTED] wrote: Is there any possibility to trigger an action when the session is inactive for some time? I need to log users' login and logout, and so I need to know about logouts caused by timeout. Neither there seems to be a possibility of a

Re: [PHP] Fwd: Returned mail: User unknown

2007-11-13 Thread Daniel Brown
On Nov 13, 2007 10:14 AM, tedd [EMAIL PROTECTED] wrote: At 10:40 PM -0800 11/12/07, Jim Lucas wrote: -snip- That is funny, I have not received one bounce message. Jim Same here, but my subscription to this list is via my gmail account -- maybe that filters it for me. Cheers, tedd

Re: [PHP] Problem retrieving $_POST values

2007-11-13 Thread Philip Thompson
On Nov 13, 2007 7:01 AM, chris smith [EMAIL PROTECTED] wrote: On Nov 13, 2007 7:10 PM, Jon Westcot [EMAIL PROTECTED] wrote: Hi Chris: Exactly as you have there. print_r($_POST); will show you everything. Here's a section of what comes back when I do this: [mls]

Re: [PHP] Fwd: Returned mail: User unknown

2007-11-13 Thread Philip Thompson
On Nov 13, 2007 9:02 AM, Daniel Brown [EMAIL PROTECTED] wrote: On Nov 13, 2007 1:40 AM, Jim Lucas [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: PLEASE I have like 50 from it so far. -Original Message- From: Daniel Brown [mailto:[EMAIL PROTECTED] Sent: Monday,

[PHP] PHP 5.2.3 segfault with syslog standard extension

2007-11-13 Thread Rachmel, Nir (Nir)
Hi, I am running PHP 5.2.3 as a statically compiled module for a web server (appWeb, which is an embbeded apache-like server). My platform is a ppc processor, running Windriver Linux. The problem I encounter is, that when printing many syslogs to the system my web-server crashes. I have

[PHP] Re: Simple reading a file and extract fields

2007-11-13 Thread Al
Use myFile= file() which puts all your lines in a nice simple array. The use foreach()on the array to exact your sub-strings. Personally, I'd assemble the results in a big string. Then, echo the string. $fields= NULL; foreach(myFile as $line){ $fields .= substr($line, 0, 5) . nbsp;

Re: [PHP] Problem retrieving $_POST values

2007-11-13 Thread Jon Westcot
Hi Chris, et al.: Here's a section of what comes back when I do this: [mls] = 1234567 [property_address] = Main St [city_arr] = Array ( [0] = CHNDHT [1] = CHNDLR [2] = GILBER [3] = HIGLEY [4]

Re: [PHP] Need a hint how to track an error

2007-11-13 Thread Jochem Maas
Ronald Wiplinger wrote: Chris wrote: Ronald Wiplinger wrote: My php program is working with Firefox, but not with Internet Explorer. Nothing to do with php, your problem is javascript. Is there a tool to find the problem? For IE, try

Re: [PHP] Simple reading a file and extract fields

2007-11-13 Thread Jochem Maas
Ronald Wiplinger wrote: I got a larger file which consists of lines with a defined length of 56 how large? for very big files it's dangerous to read them in all at once, as was exampled in other replies. I would say that large in this case would be anything bigger than 5 Mb (this is a very rough

Re: [PHP] Re: Need a hint how to track an error

2007-11-13 Thread Jochem Maas
Al wrote: Install the Firefox extension HTML Validator. It does a real time Tidy check for every page. good advice. Make your code W3C compatible and it'll work on all modern browsers. less good advice. I agree you should be doing everything to make your code validate 100% BUT having 100%

Re: [PHP] PHP 5.2.3 segfault with syslog standard extension

2007-11-13 Thread Jochem Maas
hi Nir, I think you should direct this question to [EMAIL PROTECTED] (the php core developers list). Rachmel, Nir (Nir) wrote: Hi, I am running PHP 5.2.3 as a statically compiled module for a web server (appWeb, which is an embbeded apache-like server). My platform is a ppc processor,

[PHP] PHP advice: Tips webpage valid?

2007-11-13 Thread Dotan Cohen
I came across this page today: http://reinholdweber.com/?p=3 It covers a lot of flammable material (echo vs. print) but I wonder how valid some of the advice is. Can anyone elaborate? Thanks. Dotan Cohen http://what-is-what.com http://gibberish.co.il

Re: [PHP] PHP advice: Tips webpage valid?

2007-11-13 Thread Robert Cummings
On Tue, 2007-11-13 at 23:37 +0200, Dotan Cohen wrote: I came across this page today: http://reinholdweber.com/?p=3 It covers a lot of flammable material (echo vs. print) but I wonder how valid some of the advice is. Can anyone elaborate? Thanks. Some of it is definitely useful individually.

Re: [PHP] PHP advice: Tips webpage valid?

2007-11-13 Thread mike
On 11/13/07, Dotan Cohen [EMAIL PROTECTED] wrote: I came across this page today: http://reinholdweber.com/?p=3 It covers a lot of flammable material (echo vs. print) but I wonder how valid some of the advice is. Can anyone elaborate? Thanks. funny you should post this, I've recently been

[PHP] Still searching for PHP Experts in SF, CA

2007-11-13 Thread Cox, Chris
If anyone recommends anyone well versed in PHP in their network, in or around San Francisco, please send them along to me Chris Cox @ [EMAIL PROTECTED] Thank you in advance for your consideration. www.stepup.com Sincerely, Chris Cox Intuit -Original Message- From: [EMAIL PROTECTED]

[PHP] FW: Still searching for PHP Experts in SF, CA

2007-11-13 Thread Cox, Chris
If anyone recommends anyone well versed in PHP in their network, in or around San Francisco, please send them along to me Chris Cox @ [EMAIL PROTECTED] Thank you in advance for your consideration. www.stepup.com Sincerely, Chris Cox Intuit -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] PHP ide?

2007-11-13 Thread Chris
OK, I'm looking at the PHPEclipse site, and I've been here before: the current Using PHPEclipse document lists the system requirements as PHP 5.1.2 or *below*, and Apache 2.0 or *below* Is that just badly out-of-date (last update is April 2007), or is PHPEclipse really not able to support PHP

[PHP] Quick questions -- how do I place the cursor (i.e., set focus) to a field on page load?

2007-11-13 Thread Jon Westcot
Hi all: This may or may not be a PHP-related question, but, since I'm coding with PHP, I thought I'd ask: When a form loads, such as a login form, I'd like to have the cursor placed automatically in the Username field. Right now, it requires me to click it with the mouse or to tab

Re: [PHP] Quick questions -- how do I place the cursor (i.e., set focus) to a field on page load?

2007-11-13 Thread mike
you want javascript. i'd recommend using jquery (jquery.com) put an id=username on the username box. then do script type=text/javascript $(document).ready(function() { $(#username).focus(); }); /script voila On 11/13/07, Jon Westcot [EMAIL PROTECTED] wrote: Hi all: This may or may

Re: [PHP] Quick questions -- how do I place the cursor (i.e., set focus) to a field on page load?

2007-11-13 Thread Jon Westcot
Hi Mike: you want javascript. i'd recommend using jquery (jquery.com) I'll look into this. Thanks. put an id=username on the username box. then do script type=text/javascript $(document).ready(function() { $(#username).focus(); }); /script voila Hmmm. It didn't work

Re: [PHP] Quick questions -- how do I place the cursor (i.e., set focus) to a field on page load?

2007-11-13 Thread mike
i don't believe so. it should trigger the focus event for that element ID. of course you did download and include jquery.js in your page... can you send me (off list) the URL to the page? i can help you out, but it is off topic to PHP now :) On 11/13/07, Jon Westcot [EMAIL PROTECTED] wrote: Hi

Re: [PHP] Quick questions -- how do I place the cursor (i.e., set focus) to a field on page load?

2007-11-13 Thread tedd
At 4:46 PM -0700 11/13/07, Jon Westcot wrote: Hi all: This may or may not be a PHP-related question, but, since I'm coding with PHP, I thought I'd ask: When a form loads, such as a login form, I'd like to have the cursor placed automatically in the Username field. Right now, it

Re: [PHP] PHP advice: Tips webpage valid?

2007-11-13 Thread Larry Garfield
I have some more benchmarks for your list if you're interested: http://www.garfieldtech.com/blog/magic-benchmarks On Tuesday 13 November 2007, mike wrote: On 11/13/07, Dotan Cohen [EMAIL PROTECTED] wrote: I came across this page today: http://reinholdweber.com/?p=3 It covers a lot of

Re: [PHP] Quick questions -- how do I place the cursor (i.e., set focus) to a field on page load?

2007-11-13 Thread Chris
Jon Westcot wrote: Hi Mike: you want javascript. i'd recommend using jquery (jquery.com) I'll look into this. Thanks. put an id=username on the username box. then do script type=text/javascript $(document).ready(function() { $(#username).focus(); }); /script voila Hmmm.

Re: [PHP] Quick questions -- how do I place the cursor (i.e., set focus) to a field on page load?

2007-11-13 Thread mike
yeah, but adding in jquery will open up his entire world :) the example below will work without jquery. personally though i try to stick with jquery since i usually need it for more throughout my site. On 11/13/07, Chris [EMAIL PROTECTED] wrote: It only works if you have included the jquery

[PHP] Input field

2007-11-13 Thread Ronald Wiplinger
I added just into a input field 19 enclosure which was displayed from the database as: 19\ enclosure That gives me some questions: 1. where the protecting slash comes from? 2. how can I get it away when I want to display that field? 3. The slash is not to see in phpmyadmin, why not? and: 1.

Re: [PHP] Quick questions -- how do I place the cursor (i.e., set focus) to a field on page load?

2007-11-13 Thread Jon Westcot
Hi Mike, Chris, et al.: Thanks for the info. I'm not certain if I'll be needing jquery, or what benefits it might afford me with my meager little project, but I will check it out. In the meantime, Chris's snippet worked like a charm! Thanks! Jon -- PHP General Mailing List

Re: [PHP] Quick questions -- how do I place the cursor (i.e., set focus) to a field on page load?

2007-11-13 Thread Jon Westcot
Hi Tedd: Also, while I'm asking questions, let me ask another one: I've seen several pages (frequently, pages that come up after a login page has been filled out) that provide some user mollification (you know, the typical Please be patient, don't get your nylons in a knot, we're typing

Re: [PHP] Quick questions -- how do I place the cursor (i.e., set focus) to a field on page load?

2007-11-13 Thread tedd
At 5:49 PM -0800 11/13/07, mike wrote: yeah, but adding in jquery will open up his entire world :) It could, but it's an overkill for a simple input field focus thing, IMO. It's like selling a guy a Hummer because he wants to drive on the gravel on the side of the road. Cheers, tedd --

Re: [PHP] Quick questions -- how do I place the cursor (i.e., set focus) to a field on page load?

2007-11-13 Thread mike
in my experience it never stops at a single focus event on a login box... but yes, i should have replied with the simpler solution first. On 11/13/07, tedd [EMAIL PROTECTED] wrote: At 5:49 PM -0800 11/13/07, mike wrote: yeah, but adding in jquery will open up his entire world :) It could,

Re: [PHP] Quick questions -- how do I place the cursor (i.e., set focus) to a field on page load?

2007-11-13 Thread tedd
At 6:52 PM -0700 11/13/07, Jon Westcot wrote: Here's a collection of animated wait gifs: http://webbytedd.com/bb/wait/ Steal as you need -- I did. Thanks. I'll check that out. I'm still wondering, though, how the redirection works if it is supposed to occur only before any text

RE: [PHP] Input field

2007-11-13 Thread Shelley Shyan
1.Probably that's because the function mysql_real_escape_string() is turned on. You can check that in your php.ini configuration. 2. If you want to display them as you wanted, you can use stripcslashes() on your output contents. 3. Maybe phpmyadmin automatically stripped that out. And 1.

Re: [PHP] Quick questions -- how do I place the cursor (i.e., set focus) to a field on page load?

2007-11-13 Thread Casey
1) window.onload = function () {formfield.focus();} 2) Meta refresh or some combination of Javascript, flush(), and ob_flush(). On Nov 13, 2007, at 3:46 PM, Jon Westcot [EMAIL PROTECTED] wrote: Hi all: This may or may not be a PHP-related question, but, since I'm coding with PHP, I

Re: [PHP] Input field

2007-11-13 Thread Chris
Ronald Wiplinger wrote: I added just into a input field 19 enclosure which was displayed from the database as: 19\ enclosure That gives me some questions: 1. where the protecting slash comes from? Probably magic_quotes_gpc 2. how can I get it away when I want to display that field? 1)

Re: [PHP] PHP advice: Tips webpage valid?

2007-11-13 Thread Dotan Cohen
On 14/11/2007, Larry Garfield [EMAIL PROTECTED] wrote: I have some more benchmarks for your list if you're interested: http://www.garfieldtech.com/blog/magic-benchmarks Thanks, there is some food for though there. I'll also benchmark some of them and see what I come up with. Dotan Cohen

Re: [PHP] file_exists

2007-11-13 Thread Jim Lucas
Ronald Wiplinger wrote: I am having troubles with the function file_exists() I tried the full path like: you are missing a closing parenthesis on your condition if (file_exists('/srv/www/../images/pic412.jpg') ) { if (file_exists('/srv/www/../images/pic412.jpg') { echo IMG

Re: [PHP] file_exists

2007-11-13 Thread Chris
Ronald Wiplinger wrote: I am having troubles with the function file_exists() I tried the full path like: if (file_exists('/srv/www/../images/pic412.jpg') { echo IMG SRC='images/pic412.jpg'; } else { echo nbsp; //picture is missing! } No matter if I use the

[PHP] file_exists

2007-11-13 Thread Ronald Wiplinger
I am having troubles with the function file_exists() I tried the full path like: if (file_exists('/srv/www/../images/pic412.jpg') { echo IMG SRC='images/pic412.jpg'; } else { echo nbsp; //picture is missing! } No matter if I use the full path or just