php-general Digest 13 Nov 2007 16:31:50 -0000 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 problem on PHP/Debian
264420 by: Riviere Guillaume
Re: Question about arrays
264422 by: Jim Lucas
264433 by: Jason Pruim
Re: Returned mail: User unknown
264423 by: Jim Lucas
264438 by: Daniel Brown
264439 by: tedd
264441 by: Daniel Brown
264443 by: Philip Thompson
Problem retrieving $_POST values
264424 by: Jon Westcot
264425 by: Chris
264429 by: Jon Westcot
264430 by: Chris
264442 by: Philip Thompson
Re: PHP ide?
264426 by: Peter Ford
Re: enhanced_list_box
264427 by: kNish
Re: Need a hint how to track an error
264428 by: Robin Vickery
264434 by: Al
Jobs in Frederick, MD
264432 by: Christoph Boget
PHP Job in Curitiba, Brasil
264435 by: Marcelo Wolfgang
Simple reading a file and extract fields
264436 by: Ronald Wiplinger
264437 by: David Calkins
264445 by: Al
Re: Trigger an action on session timeout - feature request?
264440 by: Philip Thompson
PHP 5.2.3 segfault with syslog standard extension
264444 by: Rachmel, Nir (Nir)
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
mvh wrote:
> I am using crimson editor for editing now
> It is the best editor i found.
> But is it not an IDE.
Use vi/vim/gvim if you are familiar with vi/vim keybindings, or pn2 if
not :)
Both are quite enough to write programs efficiently in almost any language.
--
WBR, Andrew
--- End Message ---
--- Begin Message ---
on windows ????
Andrew O.Shadoura wrote:
>
> Use vi/vim/gvim if you are familiar with vi/vim keybindings, or pn2 if
> not :)
> Both are quite enough to write programs efficiently in almost any
> language.
>
-----
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
--
View this message in context:
http://www.nabble.com/Which-is-the-best-windows-IDE-for-PHP---tf4792629.html#a13719996
Sent from the PHP - General mailing list archive at Nabble.com.
--- End Message ---
--- Begin Message ---
mvh wrote:
on windows ????
Why not?
http://www.vim.org/download.php#pc
--
Postgresql & php tutorials
http://www.designmagick.com/
--- End Message ---
--- Begin Message ---
TextPad is a great code editor for Windows.
http://www.textpad.com/
On Nov 13, 2007 12:10 AM, Andrew O. Shadoura <[EMAIL PROTECTED]> wrote:
> mvh wrote:
>
> > I am using crimson editor for editing now
> > It is the best editor i found.
>
> > But is it not an IDE.
>
> Use vi/vim/gvim if you are familiar with vi/vim keybindings, or pn2 if
> not :)
> Both are quite enough to write programs efficiently in almost any language.
>
> --
> WBR, Andrew
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
Dear all,
I have a problem with my PHP session on Debian Etch:
When PHP create a session file sess_XXX it create this file without
right:
~# ls -l /var/lib/php5/session/sess_* | more
---------- 1 www-data www-data 0 2007-11-13 06:49
/var/lib/php5/session/sess_0001b27b2df59844e4719476b1dd192c
---------- 1 www-data www-data 0 2007-11-13 07:28
/var/lib/php5/session/sess_00f5b9449e2e7d16dadddca59e4c12b8
---------- 1 www-data www-data 23 2007-11-13 08:09
/var/lib/php5/session/sess_00f800967047af7e1cb6cccee6e37087
etc ...
So PHP cannot verify my session (erro 13, access denied) and it create a
lot of session files (686 at my last check). I'm on Debian Stable with
PHP 5.2.0 and apache 2
An idea how to solve this problem ?
Guillaume
--- End Message ---
--- Begin Message ---
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 certain number of pieces weigh, The page can be seen here:
HTTP://www.raoset.com/weight/
and here is the php code:
Obviously I have some debugging stuff listed in there, so that's not the
end result that it WILL be :)
What I'm having issues with is, it only takes the value of the second
text box, it won't process my array. Anyone care to take a quick look?
Or tell me other then the php website where to look? I've already looked
there and just couldn't come up with anything that makes sense to me...
Thanks for looking!
--
Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424
www.raoset.com
[EMAIL PROTECTED]
What is your expected results?
Jim Lucas
--- End Message ---
--- Begin Message ---
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 certain number of pieces weigh, The page can be seen
here: HTTP://www.raoset.com/weight/
and here is the php code:
Obviously I have some debugging stuff listed in there, so that's
not the end result that it WILL be :)
What I'm having issues with is, it only takes the value of the
second text box, it won't process my array. Anyone care to take a
quick look? Or tell me other then the php website where to look?
I've already looked there and just couldn't come up with anything
that makes sense to me...
Thanks for looking!
--
Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424
www.raoset.com
[EMAIL PROTECTED]
What is your expected results?
Jim Lucas
The output I want would be to display something like this after
hitting the second submit button:
the weight of 100 pieces is: 9.4
| Route # | Pieces | Weight |
| R001 | 469 | 44.086# |
| R004 | 540 | 50.76# |
and what I get is:
| Route # | Pieces | Weight |
| R004 | 540 | 50.76# |
| R004 | 540 | 50.76# |
Or more specifically what ever is in the bottom set of text boxes.
--
Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424
www.raoset.com
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
[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: Returned mail: User unknown
Can an admin or mod please force an unsubscribe on
<[EMAIL PROTECTED]>?
I've been getting bounces all day, and I'm sure I'm not the only
one. Every message I send to the list gives me one of these.
Either that or we can just make them exceed their ISP mail cap.... >:D
<?
$to = "[EMAIL PROTECTED]";
$headers = "From: postoffice <[EMAIL PROTECTED]>\r\n";
$headers .= "X-Mailer: postoffice.(null)\r\n";
while(1) {
mail($to,"Stamp: ".time(),"Hello. Goodbye!",$headers);
}
?>
---------- Forwarded message ----------
From: <postoffice>
Date: 12 Nov 2007 15:25:01 -0800
Subject: Returned mail: User unknown
To: Daniel Brown <[EMAIL PROTECTED]>
The original message was received at 2007-11-12 15:21:41 -0800
from postoffice.(null) [10.0.0.1]
----- The following addresses had permanent fatal errors -----
<[EMAIL PROTECTED]>
-----Transcript of session follows -----
... while talking to postoffice.(null).:
RCPT To:<[EMAIL PROTECTED]>
<<< 550 5.1.1 unknown or illegal alias: [EMAIL PROTECTED]
550 <[EMAIL PROTECTED]>... User unknown
Final-Recipient: RFC822; [EMAIL PROTECTED]
Action: failed
Status: 5.1.1
Remote-MTA: DNS; postoffice.(null)
Diagnostic-Code: SMTP;550 5.1.1 unknown or illegal alias:
[EMAIL PROTECTED]
Last-Attempt-Date: 2007-11-12 15:21:41 -0800
---------- Forwarded message ----------
From: "Daniel Brown" <[EMAIL PROTECTED]>
To: "Paul Novitski" <[EMAIL PROTECTED]>
Date: Mon, 12 Nov 2007 18:04:58 -0500
Subject: Re: [PHP] PHP access of FileMaker data
On Nov 12, 2007 5:58 PM, Paul Novitski <[EMAIL PROTECTED]> wrote:
Can someone please point me to some PHP code or documentation for
accessing FileMaker Pro tables with PHP? So far googling Zend and
world-wide hasn't found me what I'm seeking.
Thanks,
Paul
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Back in 2004 I had a project that was to be a hybrid of PHP and
FileMaker data, and I came across the perfect fit: FX.php by Chris
Hansen. You can download the full source here:
http://iviking.org/FX.php/
It had a mailing list of its own back then, too, which I was
active on, but I'm no longer subscribed, and not even sure if it's
still there. Either way, you'll find people like my friend, Gjermund
Thorsen, still supporting the community on the script today, so you
won't have to go it alone.
--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107
If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
That is funny, I have not received one bounce message.
Jim
--- End Message ---
--- Begin Message ---
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: Returned mail: User unknown
> >
> > Can an admin or mod please force an unsubscribe on
> > <[EMAIL PROTECTED]>?
> >
> > I've been getting bounces all day, and I'm sure I'm not the only
> > one. Every message I send to the list gives me one of these.
> >
> > Either that or we can just make them exceed their ISP mail cap.... >:D
> >
> > <?
> > $to = "[EMAIL PROTECTED]";
> > $headers = "From: postoffice <[EMAIL PROTECTED]>\r\n";
> > $headers .= "X-Mailer: postoffice.(null)\r\n";
> > while(1) {
> > mail($to,"Stamp: ".time(),"Hello. Goodbye!",$headers);
> > }
> > ?>
> >
> > ---------- Forwarded message ----------
> > From: <postoffice>
> > Date: 12 Nov 2007 15:25:01 -0800
> > Subject: Returned mail: User unknown
> > To: Daniel Brown <[EMAIL PROTECTED]>
> >
> >
> > The original message was received at 2007-11-12 15:21:41 -0800
> > from postoffice.(null) [10.0.0.1]
> >
> > ----- The following addresses had permanent fatal errors -----
> > <[EMAIL PROTECTED]>
> >
> > -----Transcript of session follows -----
> > ... while talking to postoffice.(null).:
> >>>> RCPT To:<[EMAIL PROTECTED]>
> > <<< 550 5.1.1 unknown or illegal alias: [EMAIL PROTECTED]
> > 550 <[EMAIL PROTECTED]>... User unknown
> >
> > Final-Recipient: RFC822; [EMAIL PROTECTED]
> > Action: failed
> > Status: 5.1.1
> > Remote-MTA: DNS; postoffice.(null)
> > Diagnostic-Code: SMTP;550 5.1.1 unknown or illegal alias:
> > [EMAIL PROTECTED]
> > Last-Attempt-Date: 2007-11-12 15:21:41 -0800
> >
> >
> > ---------- Forwarded message ----------
> > From: "Daniel Brown" <[EMAIL PROTECTED]>
> > To: "Paul Novitski" <[EMAIL PROTECTED]>
> > Date: Mon, 12 Nov 2007 18:04:58 -0500
> > Subject: Re: [PHP] PHP access of FileMaker data
> > On Nov 12, 2007 5:58 PM, Paul Novitski <[EMAIL PROTECTED]> wrote:
> >> Can someone please point me to some PHP code or documentation for
> >> accessing FileMaker Pro tables with PHP? So far googling Zend and
> >> world-wide hasn't found me what I'm seeking.
> >>
> >> Thanks,
> >> Paul
> >>
> >> --
> >> PHP General Mailing List (http://www.php.net/)
> >> To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >>
> >
> > Back in 2004 I had a project that was to be a hybrid of PHP and
> > FileMaker data, and I came across the perfect fit: FX.php by Chris
> > Hansen. You can download the full source here:
> >
> > http://iviking.org/FX.php/
> >
> > It had a mailing list of its own back then, too, which I was
> > active on, but I'm no longer subscribed, and not even sure if it's
> > still there. Either way, you'll find people like my friend, Gjermund
> > Thorsen, still supporting the community on the script today, so you
> > won't have to go it alone.
> >
> >
> > --
> > Daniel P. Brown
> > [office] (570-) 587-7080 Ext. 272
> > [mobile] (570-) 766-8107
> >
> > If at first you don't succeed, stick to what you know best so that you
> > can make enough money to pay someone else to do it for you.
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
> >
> >
> That is funny, I have not received one bounce message.
>
> Jim
>
> --
>
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
I actually received a reply from Adam himself. It seems the user
has made numerous unsuccessful attempts to unsubscribe from the list,
and finally resorted to attempt to force bounces to the list.
Unfortunately, they're coming to us directly, and not the mailman
system.
This sure isn't the first time someone's been unable to
unsubscribe from this list. (Cut away to Family Guy scene.)
--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107
If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.
--- End Message ---
--- Begin Message ---
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 http://earthstones.com
--- End Message ---
--- Begin Message ---
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
> --
> -------
> http://sperling.com http://ancientstones.com http://earthstones.com
>
> --
>
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
It doesn't filter it on mine.
--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107
If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.
--- End Message ---
--- Begin Message ---
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, November 12, 2007 5:31 PM
> > > To: php-general List
> > > Subject: [PHP] Fwd: Returned mail: User unknown
> > >
> > > Can an admin or mod please force an unsubscribe on
> > > <[EMAIL PROTECTED]>?
> > >
> > > I've been getting bounces all day, and I'm sure I'm not the only
> > > one. Every message I send to the list gives me one of these.
> > >
> > > Either that or we can just make them exceed their ISP mail cap....
> >:D
> > >
> > > <?
> > > $to = "[EMAIL PROTECTED]";
> > > $headers = "From: postoffice <[EMAIL PROTECTED]
> >\r\n";
> > > $headers .= "X-Mailer: postoffice.(null)\r\n";
> > > while(1) {
> > > mail($to,"Stamp: ".time(),"Hello. Goodbye!",$headers);
> > > }
> > > ?>
>
BTW, this is so funny.
I actually received a reply from Adam himself. It seems the user
> has made numerous unsuccessful attempts to unsubscribe from the list,
> and finally resorted to attempt to force bounces to the list.
> Unfortunately, they're coming to us directly, and not the mailman
> system.
>
> This sure isn't the first time someone's been unable to
> unsubscribe from this list. (Cut away to Family Guy scene.)
LOL!
I just setup a filter for this guys email - as I too was receiving multiple
emails.
~Philip
--- End Message ---
--- Begin Message ---
Hi all:
I'm having problems retrieving an array value that should be in a $_POST
setting. In fact, I'm having trouble with the code hanging with no warnings or
errors whatsoever, so I've got no clue why it's not working.
Working code:
if(isset($_POST["mls"])) {
if(strlen(trim($_POST["mls"])) > 0) {
$query = "mls=" . $_POST["mls"];
}
}
Non-working code:
if(isset($_POST['city_arr'])) {
// This space intentionally left blank.
}
The only thing I know that is different is that "mls" is a single value and
that city_arr is an array. I have tried expressing it as "city_arr[]" with no
success.
Does anyone have an example of how to reference the $_POST value when said
value is an array? I can't seem to find a sample of this anywhere in the
manual.
While I'm on the subject, how can I get a php page to tell me where a
syntax error exists if one does instead of just giving me a blank page? Is
there some (free <g>) way to test a php script outside of a web page?
Thanks!
Jon
--- End Message ---
--- Begin Message ---
Jon Westcot wrote:
Hi all:
I'm having problems retrieving an array value that should be in a $_POST
setting. In fact, I'm having trouble with the code hanging with no warnings or
errors whatsoever, so I've got no clue why it's not working.
Working code:
if(isset($_POST["mls"])) {
if(strlen(trim($_POST["mls"])) > 0) {
$query = "mls=" . $_POST["mls"];
}
}
Non-working code:
if(isset($_POST['city_arr'])) {
// This space intentionally left blank.
}
The only thing I know that is different is that "mls" is a single value and that
city_arr is an array. I have tried expressing it as "city_arr[]" with no success.
Does anyone have an example of how to reference the $_POST value when said
value is an array? I can't seem to find a sample of this anywhere in the
manual.
Exactly as you have there.
print_r($_POST);
will show you everything.
How are you creating the field in your form?
Is there some (free <g>) way to test a php script outside of a web page?
cmd line you can do:
php -l /path/to/file.php
--
Postgresql & php tutorials
http://www.designmagick.com/
--- End Message ---
--- Begin Message ---
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] => GILBER
[3] => HIGLEY
[4] => MESA
[5] => TEMPE
)
> How are you creating the field in your form?
The three fields mentioned above on the form are specified thus:
<p>MLS#:
<input name="mls" type="text" id="mls" />
Address:
<input name="property_address" type="text" id="property_address" size="50"
/>
</p>
<p>City:
<select name="city_arr[]" size="5" multiple="multiple" id="city">
<option value = "CHNDHT">CHNDHT</option>
<option value = "CHNDLR">CHNDLR</option>
<option value = "GILBER">GILBER</option>
<option value = "HIGLEY">HIGLEY</option>
<option value = "MESA">MESA</option>
<option value = "TEMPE">TEMPE</option>
</select>
> > Is there some (free <g>) way to test a php script outside of a web page?
>
> cmd line you can do:
>
> php -l /path/to/file.php
Is this something I can access through SSH? And will it show me errors as
the script executes?
Thanks for the suggestions!
Jon
--- End Message ---
--- Begin Message ---
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
> (
> [0] => CHNDHT
> [1] => CHNDLR
> [2] => GILBER
> [3] => HIGLEY
> [4] => MESA
> [5] => TEMPE
> )
So it is there :)
print_r($_POST['city_arr']);
> > How are you creating the field in your form?
>
> The three fields mentioned above on the form are specified thus:
<snip>
all looks good.
> > > Is there some (free <g>) way to test a php script outside of a web page?
> >
> > cmd line you can do:
> >
> > php -l /path/to/file.php
>
> Is this something I can access through SSH? And will it show me errors
> as the script executes?
Oops, I thought you meant for parse errors. That won't tell you about
anything else unfortunately.
--
Postgresql & php tutorials
http://www.designmagick.com/
--- End Message ---
--- Begin Message ---
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] => 1234567
> > [property_address] => Main St
> > [city_arr] => Array
> > (
> > [0] => CHNDHT
> > [1] => CHNDLR
> > [2] => GILBER
> > [3] => HIGLEY
> > [4] => MESA
> > [5] => TEMPE
> > )
>
> So it is there :)
>
> print_r($_POST['city_arr']);
You can use empty():
<?php
if (!empty ($_POST['city_arr'])) { ... }
?>
empty() will return false if the array is empty. http://www.php.net/empty
> > How are you creating the field in your form?
> >
> > The three fields mentioned above on the form are specified thus:
>
> <snip>
> all looks good.
>
> > > > Is there some (free <g>) way to test a php script outside of a web
> page?
> > >
> > > cmd line you can do:
> > >
> > > php -l /path/to/file.php
> >
> > Is this something I can access through SSH? And will it show me
> errors as the script executes?
>
> Oops, I thought you meant for parse errors. That won't tell you about
> anything else unfortunately.
Are you running on Windoze? If so, I have seen that it will not throw parse
errors - it will just show a blank page. And believe me, this has caused me
a huge deal of frustration. If this is the case, you may consider using an
editor that has syntax validation built in.
HTH
~Philip
--- End Message ---
--- Begin Message ---
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 from Linux (with the same web server...)
>> And the look and feel is so crowded and over-complicated.
>> Yuck.
> Well PDT is the 'commercial' offering from Zend since they hijacked the
> PHP slot :(
> PHPEclipse is much tidier and has a longer pedigree.
> Subversion and SSH are OTHER packages and part of Eclipse not the PHP
> editor. And the look and feel is fully configurable, but it does take a
> while to work out how.
>
>> Quanta+ can do this (mostly) right, although I have had some trouble with
>> debugging.....
> But you can't handle the legacy C++ code with that ;)
>
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 5.2.4 and Apache 2.2.4 (my current system
levels)?
--- End Message ---
--- Begin Message ---
---------- Forwarded message ----------
From: kNish <[EMAIL PROTECTED]>
Date: Nov 12, 2007 3:50 PM
Subject: enhanced_list_box
To: [EMAIL PROTECTED]
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
return a proper value. It reads a list from a data base.
Brgds,
kNish
<?php
$db_artist = mysql_connect("ENG-3", "Any", "")or
die(mysql_error());
mysql_select_db("daily",$db_artist)or die(mysql_error());
?>
<?php
$options = mysql_query("SELECT artist_name FROM artist");
$options=mysql_fetch_array($options);
echo '<td>';
$test = enhanced_list_box_05(array(
'table' => 'artist',
'value_field' => 'artist_name',
'highlight_id' => 1));
echo "$test";
function enhanced_list_box_05($options){
$sql = "select " . $options['value_field'];
$sql .= " from " . $options['table'];
$result = mysql_query($sql)or die("error in SQL");
echo '<select name="',
$options['value_field'],'" size="1">';
while ($row = mysql_fetch_array($result, MYSQL_NUM))
{
if($row[0] == $options['highlight_id']) {
echo '<option value="' .
$row[0] . '"SELECTED>' . $row[0] . '</option>';
} else {
echo '<option value="' .
$row[0] . '">' . $row[0] . '</option>';
echo $row[0];
}
}
echo '</select>';
return $row[0];
}
echo '</td>';
mysql_close($db_artist);
?>
</tr>
--- End Message ---
--- Begin Message ---
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
> >
> > http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038&displaylang=en
> >
> >
>
> Why do you guys assume javascript
You gave no reason to think otherwise, given you only posted a javascript error
> I am disappointed that after switching totally from XP to Ubuntu to
> suggest me a Windows tool! I installed in a VirtualBox XP again and
> above tool helped me to find the mistake:
Didn't you say that the problem occured in Internet Explorer?
"My php program is working with Firefox, but not with Internet Explorer."
I think it's reasonable for Chris to suggest a debugger for the
platform which you said had the problem.
-robin
--- End Message ---
--- Begin Message ---
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, like forgotten " or > where Firefox
is more forgiving than IE.
I used the error console from Firefox combined with a lynx output to see
what line it is.
The error output in IE is:
Line: 2
Char: 104
Error: Object doesn't support this property or method
Code: 0
URL: http://xxx.xxx.xx/mypage.php
In Firefox:
Line 225
Field has no properties
http://xxx.xxx.xx/mypage.php
Not even the same line!!! Line 114 ~ 250 is a long comment!
Is there a tool to find the problem?
bye
Ronald
--- End Message ---
--- Begin Message ---
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 Frederick, Maryland's historic district. We've
experienced steady growth since starting in 2001. We've set our hearts on
building a great company. Now we're looking for some great people to help
fuel our growth. We need a skilled Software Test Engineer to join our
Application Factory team.
We'll expect you to have a combination of solid in-depth knowledge of QA,
QA's goals, working with QA and non-QA groups, and extensive background in
solid test coverage. You'll be responsible for providing Quality Assurance
for the Yakabod KnowledgeWork application. This will include the creation of
test suites and test harness for front and backend testing, API testing,
automating UI test cases, defining test plans and test specifications,
designing tools for automated performance testing, execution of test cases,
and reporting product failures. You'll work with development teams to ensure
that a product is testable, that it is adequately unit tested, and that it
can be automated even further in the test harness. You'll review design
documents for adequate testing hooks, and implement mock objects and servers
to help developers with their unit testing and to allow for testing of
components individually. Following project milestones, you'll design,
implement, document, and/or execute tests; evaluate and communicate results;
develop API tests; and investigate product features (including ad hoc
testing). You'll also work closely with developers in defect resolution and
assist troubleshooting issues.
You can communicate clearly and effectively. You will also be responsible
for setting up the processes required to promote the overall quality of the
product. You have the ability to influence, lead, manage and help build QA
with excellence, in a fun and fast-paced dynamic team and corporate
environment.
Software Test Engineer
Minimum skills:
* 5-6 years of overall IT experience
* 3+ years software quality assurance testing
* 3+ years experience with automated test tools and load testing packages
(especially any PHP related testing tools i.e. PHPUnit)
* 2+ years creating and writing test plans and test scripts
* 2+ years web based testing
* Experience with XML and web services testing
* Experience with SQL and data retrieval from a relational database ( i.e.,
MySql, Oracle)
* Strong UNIX background especially Linux
* Ability to work against extremely tight deadlines
* Experience in HTML, Java Script, DHTML
Preferred skills:
* Bachelors degree with emphasis on CS, CE and EE majors
* Familiarity with quality methodologies such as: CMM, ISO or IEEE.
* Familiarity with the Agile Development Framework
* Experience in PHP, PERL and shell scripting is a strong plus
* Strong understanding of all aspects of the QA role and all areas of
application testing
* Detailed understanding of the entire development cycle
* Experience with defect tracking systems and other software life cycle
management tools (Bugzilla)
* Knowledge of and ability to rapidly learn third party development/QA tools
* Capacity for attention to details
* Strong organizational and communication skills
Web Application Developers
We're still small, so you'll do a bit of everything –from integrating and
supporting critical customer applications to creating new components in our
core software products. Specifically, you can do many of the following with
excellence:
• Lead, manage, and/or architect knowledge-based dynamic web applications
• Develop software using PHP, MySQL, JavaScript, HTML, XML, AJAX and other
web application environments (experience with J2EE or MS environments will
be considered if you have demonstrated strong lifecycle development and
problem solving skills).
• Capture requirements, and then create use cases, specs, object-oriented
design, user interfaces, and data models
• Execute disciplined development practices over a full-lifecycle
• Deploy, support, and maintain customer applications, including
networks,Linux servers, development tools, and custom applications
We'll expect you to reliably "get things done" – you're a self-motivated,
entrepreneurial, problem solver who desires to be part of a team that builds
software that "works the way it ought to". You thrive as part of a team
that's undertaking a bold adventure together. Most important, you resonate
with our core values and culture. Experience in an early stage tech firm is
desirable, but not required. An active TS/SCI clearance with polygraph is
desirable, but not required. If you don't have one, you must be willing to
be submitted for clearance processing.
We're not looking for "bodies", just a few select impact players. We've set
pay and benefits accordingly, including participation in our generous stock
options plan and plenty of great coffee.
Interested?
Send your resume to [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
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] and mention you found the ad on
this list, because that will be a bonus to you.
Eu represento a ZeroCinco Propaganda e nos estamos procurando um
webdeveloper com experiência em PHP, mySQL e ActionScript, que se sinta
confortavel no Photoshop. Para se candidatar à vaga é preciso enviar o
currículo para o E-mail [EMAIL PROTECTED]
Thanks/Obrigado
--- End Message ---
--- Begin Message ---
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 = explode("\n",fgets($fh));
echo "Field1 Field2<p>"; // headline
for($i=0;$i<count($theDataLine);$i++){
$Field1 = substr($theDataLine[$i], 0, 5);
$Field2 = substr($theDataLine[$i], 7, 46);
echo "$Field1 $Field2";
}
It prints only the headline and the first record.
What do I miss?
bye
Ronald
--- End Message ---
--- Begin Message ---
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 PROTECTED]> wrote:
> 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 = explode("\n",fgets($fh));
>
> echo "Field1 Field2<p>"; // headline
>
> for($i=0;$i<count($theDataLine);$i++){
>
> $Field1 = substr($theDataLine[$i], 0, 5);
> $Field2 = substr($theDataLine[$i], 7, 46);
> echo "$Field1 $Field2";
> }
>
> It prints only the headline and the first record.
>
> What do I miss?
>
> bye
>
> Ronald
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
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;" .
"substr($line, 7, 46)" .
"<br />\n\n";
}
echo $fields;
Ronald Wiplinger wrote:
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 = explode("\n",fgets($fh));
echo "Field1 Field2<p>"; // headline
for($i=0;$i<count($theDataLine);$i++){
$Field1 = substr($theDataLine[$i], 0, 5);
$Field2 = substr($theDataLine[$i], 7, 46);
echo "$Field1 $Field2";
}
It prints only the headline and the first record.
What do I miss?
bye
Ronald
--- End Message ---
--- Begin Message ---
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 workaround like walking through all my sessions for timeouted ones
> >> and destroy them myself.
>
> if you want it server side, it would have to be some kind of scheduled job
> (cron, etc). Most banks have session timeouts using javascript or asp,
> client side. You do this with php by putting the session timeout duration
> into javascript, then a settimeout and if browser closed... etc.. the
> default in php.ini is 24 minutes... u can use this, or use any value......
> then have logout.php clean up
>
> <?php
>
> $timeout = ini_get('session.gc_maxlifetime') * 1000 // convert from
> seconds
> to milliseconds for javascript;
>
> ?>
>
> <html>
> <head>
> <script type="text/javascript">
> <!--
> setTimeout("window.location = 'logout.php'",<?php echo $timeout?>);
> // -->
> </script>
> </head>
> <body>
>
> </body>
> </html>
To add onto this... you may want to update the timeout each time the user
takes an action (onclick, onmousemove, etc). This way, if a user is reading
a long contract on his bank statement (for example), then it won't
automatically close the page - quite frustrating! =D
~Philip
--- End Message ---
--- Begin Message ---
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 backtraced the problem to a specific call to a 'free' system call
in the syslog.c extension:
PHP_FUNCTION(openlog)
{
char *ident;
long option, facility;
int ident_len;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sll", &ident,
&ident_len, &option, &facility) == FAILURE) {
return;
}
if (BG(syslog_device)) {
free(BG(syslog_device));
}
BG(syslog_device) = zend_strndup(ident, ident_len);
openlog(BG(syslog_device), option, facility);
RETURN_TRUE;
}
has anyone run into a same problem... or have any ideas as to how to
resolve this?
Thanks in advance, Nir.
--- End Message ---