[PHP] bank query and curl

2007-11-16 Thread Ronald Wiplinger
I have a bank account and would like to query the last transactions.

I can do that now via web and think that I can convert this procedure to
a list of curl requests and finally put the result into a database on my
server.
Fortunately this bank account does not allow transactions, just viewing
the account.

Is there a guide available how to start this project?

bye

Ronald

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] [NEWBIE GUIDE] For the benefit of new members

2007-11-16 Thread Andrew Ballard
On Nov 16, 2007 10:30 AM, Peter Ford <[EMAIL PROTECTED]> wrote:
>
> >
> > I was all ready to jump on Point #6 to disagree until I read the
> > next paragraph, updating that with the correct information.  PHP can
> > find out the OS of the system on which the browser is running.
> >
>
> Strictly speaking, PHP can only find out what the browser tells it - that
> includes the OS. I could quite easily hack the browser info string sent by (at
> least one of) my browsers to pretend I was using some horrible Windows 
> rubbish...
>
>

I use the User-Agent Switcher add-on for Firefox for this. It's so
easy I don't even really consider it a "hack" -- it's a "feature". :-)
With it, I can not only change the UserAgent string sent in web page
requests, but I can also change the values of the userAgent, appName,
appVersion, platform, vendor and vendorSub properties of the built-in
navigator object in JavaScript.

Andrew

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP editor

2007-11-16 Thread Cem Kayali


You should give a chance to Quanta Plus on Linux/BSd and Mr. Soysal's free
edition of PhpEd, if you can find it.

Regards



Frank Lopes wrote:
> 
> Being very new to PHP (empahsis on VERY...), I wonder what most of you use 
> to develop in PHP?
> 
> I have experimented with DreamWeaver, UltraEdit, phoDesigner, Eclipse etc.
> 
> What would you recommend that I use?
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 


-
  
  
  


Cem Kayalı

-- 
View this message in context: 
http://www.nabble.com/PHP-editor-tf4786258.html#a13805151
Sent from the PHP - General mailing list archive at Nabble.com.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Open Source BTS?? -- Roach

2007-11-16 Thread David Calkins
We use Mantis and love it!  Works very well, but to each his own.

Also, SourceForge uses svn now.  Has for awhile.

On Nov 16, 2007 5:23 PM, Daevid Vincent <[EMAIL PROTECTED]> wrote:
> You could install the system I wrote called "Roach".
> You can see an older version on my site (and I can post up or email you a
> newer .tgz file):
>
> http://daevid.com
>
> I actively develop it for my company. We've used it for 6 years now. I *try*
> to make my fixes generic, and I repost them periodically to my site in a tgz
> file.
>
> I actually like it a lot. We started with Mantis (again, years ago) and it
> sucked ass, so we rolled our own (in typical startup/FOSS fashion).
>
> There's a sourceforge project that I don't update (I use svn and not cvs and
> don't care to set that up anymore).
> http://sourceforge.net/projects/roachphp/
>
> D.Vin
>
> > -Original Message-
> > From: Richard Heyes [mailto:[EMAIL PROTECTED]
> > Sent: Friday, November 16, 2007 2:32 AM
> > To: Randy Patterson
> > Cc: php-general@lists.php.net
> > Subject: Re: [PHP] Open Source BTS??
> >
> > > I am needing to install a bug tracking system on a web
> > server and looking for
> > > a good PHP open source solution. Looking for a pretty
> > mature system that
> > > still has active development. Thanks for any suggestions.
> >
> > The only one I have had experience of is Mantis:
> >
> > http://www.mantisbt.org/
> >
> > No complaints here.
> >
> > --
> > Richard Heyes
> > +44 (0)800 0213 172
> > http://www.websupportsolutions.co.uk
> >
> > Knowledge Base and HelpDesk software
> > that can cut the cost of online support
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] IDE

2007-11-16 Thread Larry Garfield
I haven't used PhpED, but I use Zend Studio Pro at work.  It is hands-down the 
best PHP IDE I've used.  (As I said, I cannot compare it to PhpED 
specifically.)  Little things like project management and code completion and 
such "just work" better than any other tool I've found, and it's debugger and 
profiler are also first-rate.  Performance is good, too.

At home, I've been avoiding buying it because it's $300 flipping dollars, and 
I'm wary of their time-based licensing.  It's also, of course, very non-Free, 
and I try to stick to open source programs at home (and at work when I can).  
I've bounced around between a lot of different PHP editing tools.  At the 
moment I'm using Eclipse-PDT, which is finally not so slow as to be unsable 
as previous versions of Eclipse were.  It's nowhere near as nice as Zend 
Studio, but at least it's [F|f]ree and once you figure out the weirdness that 
is Eclipse it gets the job done.  Still need to get it talking to XDebug, 
though.

On Friday 16 November 2007, William Betts wrote:
> Have you ever used Zend Studio? If so how does it compare to PhpED?
>
> On Nov 16, 2007 5:37 AM, Arno Kuhl <[EMAIL PROTECTED]> wrote:
> > -Original Message-
> > From: David Giragosian [mailto:[EMAIL PROTECTED]
> > Sent: 16 November 2007 05:21
> > To: php-general@lists.php.net
> > Subject: Re: [PHP] IDE
> >
> > On 11/15/07, Jammer <[EMAIL PROTECTED]> wrote:
> > > Børge Holen wrote:
> > > > On Thursday 15 November 2007 21:35:04 Jammer wrote:
> > > >> Hi All,
> > > >>
> > > >> This is my first post here ... I'm very much a newbie to php but
> > > >> work during the day using SQL Server, VS2005 and Foxpro.  Looking
> > > >> to gen up on my PHP.
> > > >>
> > > >> Are there any IDE's for PHP worth checking out.  Particularly free
> > >
> > > ones!
> > >
> > > >> TIA,
> > > >>
> > > >> --
> > > >> jammer
> > > >> www.jammer.biz
> > > >
> > > > I LOVE this IDE quiz'
> > > > the same answers everytime.
> > >
> > > duh!
> > >
> > > look, i'm really sorry everyone ... we all make mistakes!
> > >
> > > if this is a question that comes up as often as it appears from the
> > > responses this thread has generated maybe the FAQ needs to *really*
> > > address that?
> > >
> > > http://uk3.php.net/FAQ.php
> > >
> > > --
> > > jammer
> >
> > It's OK. I think there's been a long thread on the subject each of the
> > last two weeks. The folks who are really passionate about their IDE's
> > jump in first, then those less motivated or less interested add theirs,
> > then it seems to die for a day or so before it rises from the ashes to
> > sputter and hiccup a time or two. And then it starts all over, again.
> >
> > If you stick around long enough on this list, you'll be fussin' at the
> > question, too.
> >
> > David
> > --
> >
> > I think jammer's idea is a good one. I've been lurking on this list for
> > years and seen many resurrections of the IDE thread. It's an important
> > thread, and the PHP IDE world is ever changing and new products come onto
> > the scene every now and then. I use my favourite commercial IDE but quite
> > frequently check out the other IDE's mentioned in those threads, mostly
> > to confirm the choice I made 4 years ago is still the right one. A
> > well-maintained list of free and commercial PHP IDE's on the php.net site
> > would be a great idea, especially if it also had links to reviews, and
> > also included the mix-n-match IDE's I see some people on the list use.
> > And/or maybe a forum on php.net dedicated to PHP IDE's, with user polls.
> > Then whenever the IDE thread pops up the response would be to look at the
> > web site (RTFWS). The only downside might be the resources to run it.
> >
> > BTW jammer, if you start using php for big projects I'd recommend
> > NuSphere PhpED, but it's overkill if you just want to dabble. There's a
> > trial version if you want to check it out, and a good tip is they drop
> > the price every now and then for promotions (wish I knew that 4 years
> > ago).
> >
> > Arno
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php


-- 
Larry Garfield  AIM: LOLG42
[EMAIL PROTECTED]   ICQ: 6817012

"If nature has made any one thing less susceptible than all others of 
exclusive property, it is the action of the thinking power called an idea, 
which an individual may exclusively possess as long as he keeps it to 
himself; but the moment it is divulged, it forces itself into the possession 
of every one, and the receiver cannot dispossess himself of it."  -- Thomas 
Jefferson

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: chrooted php5-cgi in a non chrooted apache

2007-11-16 Thread Joerg Schoppet
Hi,

no more tips for this problem?


Joerg Schoppet




Joerg Schoppet wrote:
> Hi,
> 
> actually I try to make my webserver-installation more secure. I've
> something in mind, but don't know if it is possible and if so, how to do
> it ;-)
> 
> Actually I have the following config:
> 
> Directory-Structure:
> 
> /var/www
>   domain1
> conf
> cgi-bin
> web
>   htdocs
>   logs
>   domain2
> 
> 
> I've installed mod_fastcgi in apache and uses suexec.
> In each /var/www/domainx/cgi-bin I have a php-fcgi-starter-file, which
> starts /usr/bin/php5-cgi.
> 
> Actually I see the following problem: I can run each "domain" under a
> different user, but the developer within each "domain" can program
> php-code to at least VIEW a lot of other things outside the
> domain-directory.
> 
> Now I thought about the following:
> If I can create a chroot-jail within /var/www/domainx/web and let
> php5-cgi be executed within this chroot-jail, the developers would only
> see there own directory structure like
> var/www/domain1/web
>   etc
>   bin
>   usr
>   home
> 
> What I've get so far is, that I've created a chroot jail within the
> web-directory. I can chroot to there and execute php (I used "jailer",
> for this).
> 
> But I don't get it to work that mod_fastcgi starts the chroot-jail.
> 
> I googled a lot, but only found howtos and tutorials how to put the
> complete apache into a jail, but this is not what I want. Each domain
> have to be in its own jail.
> 
> Can someone help me / point me in the right direction?
> 
> 
> Thanks in advance
> 
> Joerg Schoppet

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] IDE

2007-11-16 Thread William Betts
Have you ever used Zend Studio? If so how does it compare to PhpED?

On Nov 16, 2007 5:37 AM, Arno Kuhl <[EMAIL PROTECTED]> wrote:
>
>
> -Original Message-
> From: David Giragosian [mailto:[EMAIL PROTECTED]
> Sent: 16 November 2007 05:21
> To: php-general@lists.php.net
> Subject: Re: [PHP] IDE
>
> On 11/15/07, Jammer <[EMAIL PROTECTED]> wrote:
> >
> > Børge Holen wrote:
> > > On Thursday 15 November 2007 21:35:04 Jammer wrote:
> > >> Hi All,
> > >>
> > >> This is my first post here ... I'm very much a newbie to php but
> > >> work during the day using SQL Server, VS2005 and Foxpro.  Looking
> > >> to gen up on my PHP.
> > >>
> > >> Are there any IDE's for PHP worth checking out.  Particularly free
> > ones!
> > >>
> > >> TIA,
> > >>
> > >> --
> > >> jammer
> > >> www.jammer.biz
> > >
> > > I LOVE this IDE quiz'
> > > the same answers everytime.
> >
> > duh!
> >
> > look, i'm really sorry everyone ... we all make mistakes!
> >
> > if this is a question that comes up as often as it appears from the
> > responses this thread has generated maybe the FAQ needs to *really*
> > address that?
> >
> > http://uk3.php.net/FAQ.php
> >
> > --
> > jammer
> >
> It's OK. I think there's been a long thread on the subject each of the last
> two weeks. The folks who are really passionate about their IDE's jump in
> first, then those less motivated or less interested add theirs, then it
> seems to die for a day or so before it rises from the ashes to sputter and
> hiccup a time or two. And then it starts all over, again.
>
> If you stick around long enough on this list, you'll be fussin' at the
> question, too.
>
> David
> --
>
> I think jammer's idea is a good one. I've been lurking on this list for
> years and seen many resurrections of the IDE thread. It's an important
> thread, and the PHP IDE world is ever changing and new products come onto
> the scene every now and then. I use my favourite commercial IDE but quite
> frequently check out the other IDE's mentioned in those threads, mostly to
> confirm the choice I made 4 years ago is still the right one. A
> well-maintained list of free and commercial PHP IDE's on the php.net site
> would be a great idea, especially if it also had links to reviews, and also
> included the mix-n-match IDE's I see some people on the list use. And/or
> maybe a forum on php.net dedicated to PHP IDE's, with user polls. Then
> whenever the IDE thread pops up the response would be to look at the web
> site (RTFWS). The only downside might be the resources to run it.
>
> BTW jammer, if you start using php for big projects I'd recommend NuSphere
> PhpED, but it's overkill if you just want to dabble. There's a trial version
> if you want to check it out, and a good tip is they drop the price every now
> and then for promotions (wish I knew that 4 years ago).
>
> Arno
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] file_exists

2007-11-16 Thread tedd

At 11:06 PM + 11/15/07, Stut wrote:
The realpath function will reduce your definition of $page to 
"/home/evil-user-home-dir/evil-payload.php"


$expecteddir is set to "/home/stut/phpstuff/inc"

The if takes the first strlen($expecteddir) characters of the 
reduced $page and compares it to $expecteddir.


If they don't match then if means the requested file is outside your 
"safe" directory, hence access denied. If they do match then it's 
safe to include the file.


-Stut


-Stut:

What about this?

');
exit;
}
chdir('..');
}
include('common/includes/header.php');
chdir($origwd);
?>

I have a common set of includes that most of my test scripts find and 
use. Unless I'm not understanding the problem here, this looks like 
something this might work. It simply looks for the files it needs in 
an approved path. I don't see any way to circumvent this, do you?


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



RE: [PHP] Open Source BTS??

2007-11-16 Thread Daevid Vincent
> -Original Message-
> From: M. Sokolewicz [mailto:[EMAIL PROTECTED] 
> Sent: Friday, November 16, 2007 3:45 AM
> To: [EMAIL PROTECTED]
> Cc: Randy Patterson; php-general@lists.php.net
> Subject: Re: [PHP] Open Source BTS??
> 
> Richard Heyes wrote:
> >> I am needing to install a bug tracking system on a web server and 
> >> looking for a good PHP open source solution. Looking for a pretty 
> >> mature system that still has active development. Thanks for any 
> >> suggestions.
> > 
> > The only one I have had experience of is Mantis:
> > 
> > http://www.mantisbt.org/
> > 
> > No complaints here.
> > 
> 
> I'm personally a big fan of both bugzilla (www.bugzilla.org) and Trac 
> (trac.edgewall.org), both not php (perl, and python I 
> believe), but they 
> are both really really good imo.
> 
> - Tul

I user Trac for my Wiki my personal SVN repos. 
Here's an email I posted this list a couple weeks ago about the topic:

-Original Message-
From: Daevid Vincent [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 08, 2007 6:57 PM
To: php-general@lists.php.net
Cc: 'TG'; 'Skip Evans'
Subject: RE: [PHP] Recommend a wiki?

I have had 'Trac' thrust upon me by an employee/coworker and while it is not
"perfect" (or even close to it), it does what it does, and it does it pretty
well.

http://trac.edgewall.org/ 

Some of my favorite things about it are:

Wiki is pretty common tags 
  (http://trac.edgewall.org/wiki/WikiFormatting)
Subversion integration with diff, view source, and
svn commit hooks ("fixes, references, etc")
You can integrate SQL 'reports' and the Wiki together. This rocks!
Ticket tracking
Roadmap graphs
Plugins
Can have different 'Tracs' setups on same server (I run two - biz
and personal)

On the negative side:

It is a little tricky to install IMHO.
It uses SQLlite (this is a pro and a con at the same time)
doesn't seem to be updated with any frequency or regularity
it's not even a 1.0 -- but that's all the rage with the kids it
seems
v0.11 is due "any day now"
all written in python (yuk)
Tickets are sort of cumbersome 
  and they store the TEXTUAL names rather than relations. *sigh*
  (for example, if you change an employee, 
   you have to search and replace the NAME, 
 not just a 'user' relational link) .WTF.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Open Source BTS?? -- Roach

2007-11-16 Thread Daevid Vincent
You could install the system I wrote called "Roach". 
You can see an older version on my site (and I can post up or email you a
newer .tgz file):

http://daevid.com

I actively develop it for my company. We've used it for 6 years now. I *try*
to make my fixes generic, and I repost them periodically to my site in a tgz
file.

I actually like it a lot. We started with Mantis (again, years ago) and it
sucked ass, so we rolled our own (in typical startup/FOSS fashion).

There's a sourceforge project that I don't update (I use svn and not cvs and
don't care to set that up anymore). 
http://sourceforge.net/projects/roachphp/

D.Vin 

> -Original Message-
> From: Richard Heyes [mailto:[EMAIL PROTECTED] 
> Sent: Friday, November 16, 2007 2:32 AM
> To: Randy Patterson
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] Open Source BTS??
> 
> > I am needing to install a bug tracking system on a web 
> server and looking for 
> > a good PHP open source solution. Looking for a pretty 
> mature system that 
> > still has active development. Thanks for any suggestions.
> 
> The only one I have had experience of is Mantis:
> 
> http://www.mantisbt.org/
> 
> No complaints here.
> 
> -- 
> Richard Heyes
> +44 (0)800 0213 172
> http://www.websupportsolutions.co.uk
> 
> Knowledge Base and HelpDesk software
> that can cut the cost of online support
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Loop issues

2007-11-16 Thread Jim Lucas

Just noticed on that last one I forgot to change one variable name.

the line that was this
$tr_type = mssql_query($get_tr) or die(mssql_get_last_message());

change it to this
$tr_type = mssql_query($SQL) or die(mssql_get_last_message());


--
Jim Lucas

   "Some men are born to greatness, some achieve greatness,
   and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
by William Shakespeare

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Loop issues

2007-11-16 Thread Jim Lucas

Dan Shirah wrote:

Hello all,

I am having trouble trying to figure out how I should compose this loop to
give me ALL the results I want.

Below are my queries.  I am querying two different databases to pull in
records that match the requested $id. I am then putting the result into a
$variable and also counting the number of rows returned. These queries work
just fine and pull in all of the data that I want...and by viewing the
print_r() I have verified that all the information was returned.

 0) {
   while ($cs_row = mssql_fetch_array($cs_type)) {
$cs_type2 = $cs_row['request_type'];
$cs_first = $cs_row['first_name'];
$cs_last = $cs_row['last_name'];
$cs_name = $cs_first." ".$cs_last;
 print_r ($cs_row);
}
   }
$get_tr = "SELECT DISTINCT
  request_type, card_id, first_name, last_name
   FROM
 payment_request
   WHERE
 card_id = '$id'";
$tr_type = mssql_query($get_tr) or die(mssql_get_last_message());
$tr_num = mssql_num_rows($tr_type);

if($tr_num > 0) {
   while ($tr_row = mssql_fetch_array($tr_type)) {
$tr_type2 = $tr_row['request_type'];
$tr_first = $tr_row['first_name'];
$tr_last = $tr_row['last_name'];
$tr_name = $tr_first." ".$tr_last;
 print_r ($tr_row);
}
   }
$num_total = $cs_num + $tr_num;
$multiple = "MULTIPLE";
?>

Here is where I am running into problems. First I am writing an if ()
statement to see if there were any rows returned from the queries.  If a row
was returned I am echoing out the data that was assigned to the different
variables above.  This works...kind of...

 $id";
?>
 0) { echo "$cs_name\n"; }
  if ($tr_num > 0) { echo "$tr_name\n";
} ?>

 1) { echo $multiple; }
  if ($num_total == 1 && $cs_num == 1) { echo $cs_type2;
}
  if ($num_total == 1 && $tr_num == 1) { echo $tr_type2;
} ?>


If a single row was returned by the query, all of the information echos out
just fine.  BUT, If one of the queries returned more than one row, the
information that is echo'd out is only the LAST row's information. For
example, the result of my $cs_type query returns 3 names: John Smith, Jane
Smith, James Smith.  The only information being populated to my table is
James Smith.  Because of this I think I need to put a loop where the echo
"$cs_name\n"; is so it will loop through all of the returned names and
show them all.  I have tried a for, foreach and while loop but I just can't
seem to wrap my fingers around the right way to use it.

Any help is appreciated.

Thanks,
Dan


What about something like this?

';

foreach ( $records AS $id => $row ) {

echo <<
		href='javascript:editRecord({$row['card_id']})'>{$row['card_id']}
		{$row['first_name']} 
{$row['last_name']}


ROW;

}
echo '';
}

?>   

Obviously, this is completely untested.  You should be able to run it.

I took out the table cells that had to do with the date/time and the total,

Not sure where you were getting that information from.

But this should give you a little better idea on how to do it.

--
Jim Lucas

   "Some men are born to greatness, some achieve greatness,
   and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
by William Shakespeare

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Loop issues

2007-11-16 Thread Jeremy Mcentire

Yeah...see...I'm confused apparently!

My while loop is getting all of the names correctly, apparently my  
problem

is...once i get them, how do I echo each one out seperately?

Based off of the print_r($cs_row) I can see all of the names. What  
should I

be doing differently to output each name into my table?


What you're doing wrong:

Assume mssql_fetch_array($cs_type) has two rows:
request_type = 'type1', first_name = 'Bob', last_name = 'Consumer'
request_type = 'type2', first_name = 'Alice', last_name = 'Cooper'

So we can replace it with a variable $array that has the same data.
$array = array(
array(
'request_type' => 'type1',
'first_name' => 'Bob',
'last_name' => 'Consumer'
),
array(
'request_type' => 'type2',
'first_name' => 'Alice',
'last_name' => 'Cooper'
),
);

Then this:

while ($cs_row = iterator($array)) {
$cs_type2 = $cs_row['request_type'];
$cs_name = $cs_row['first_name']." ".$cs_row['last_name'];
print_r ($cs_row);
}

Is functionally the same as:

$cs_type2 = $array[0]['request_type'];
$cs_name = $array[0]['first_name']." ".$array[0]['last_name'];
print_r ($array[0]);

$cs_type2 = $array[1]['request_type'];
$cs_name = $array[1]['first_name']." ".$array[1]['last_name'];
print_r ($array[1]);

Now.  Why would the print_r return the right information?

Because, you're printing it for EACH row.

Why would the variable $cs_type2 have only the information of the  
last row?


Because, you're OVERwriting it on EACH row.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Gmail Account Invites (Want One?)

2007-11-16 Thread Stut

Daniel Brown wrote:

On Nov 16, 2007 9:47 AM, Stut <[EMAIL PROTECTED]> wrote:

Daniel Brown wrote:

On Nov 16, 2007 9:36 AM, tedd <[EMAIL PROTECTED]> wrote:

At 5:00 PM -0500 11/15/07, Daniel Brown wrote:

Yay!  I got to say my stupid thing for the day.

Last I had even looked at the signup process, it was open to US
users who had a cell phone and could receive SMS messages (containing
a confirmation code).  I wonder why the hell they still give you a
limit on invites for Gmail then.  I guess it's just typical eccentric
Google.

Well, if it makes you feel better, you can invite me.  :-)

Cheers,

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com


For the record, Tedd, when I sent a Gmail invite to your Gmail
account, it didn't reduce my number of invites.

Let me know what the email says, if it offers any additional hint
as to why the invites still exist.

Surely this is obvious? If they remove them they would remove a way for
their users to introduce new people to the service. Removing that
ability wouldn't make sense to me. It might make more sense if they
changed the wording, but the feature does no harm and so is definitely
worth them keeping it in.

-Stut

--
http://stut.net/



Yes, but Stut, you have a maximum of 100 invites and when you're
out, you're out.  I agree it makes it seem like more of a "hot-ticket
item" while limiting people, but I don't know if that is, in fact,
what they're going for.


I could be wrong but I don't think it's really limited anymore, just 
appears that way. I'm sure if you actually invite a bunch of people it 
will either not reduce your invite count or they will be replenished 
fairly quickly. Leaving it there with no limits is a quick and easy way 
to still allow personal referrals with minimal effort on their part.


-Stut

--
http://stut.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Newbie question - current date - time

2007-11-16 Thread tedd

At 2:13 PM -0500 11/15/07, Jeremy Mcentire wrote:

On Nov 14, 2007, at 4:21 PM, Jürgen Wind wrote:

better use Date() in js ...
tedd-2 wrote:

Current date/time for whom?
For your server, use php's date().
For the user, use javascript's date().
It's so cool to be multilingual.  :-)
Cheers,
tedd


I don't know that that's better.


It's not a question as to what's better?

You have a choice, it's either: a) the user's time; b) or your server's time.

How and why you use it is your business.

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



Re: [PHP] Re: chrooted php5-cgi in a non chrooted apache

2007-11-16 Thread Frank Arensmeier

Maybe the Apache mailing list is a better place to ask.

http://httpd.apache.org/userslist.html

//frank

16 nov 2007 kl. 12.20 skrev Joerg Schoppet:


Hi,

no more tips for this problem?


Joerg Schoppet




Joerg Schoppet wrote:

Hi,

actually I try to make my webserver-installation more secure. I've
something in mind, but don't know if it is possible and if so, how  
to do

it ;-)

Actually I have the following config:

Directory-Structure:

/var/www
  domain1
conf
cgi-bin
web
  htdocs
  logs
  domain2


I've installed mod_fastcgi in apache and uses suexec.
In each /var/www/domainx/cgi-bin I have a php-fcgi-starter-file,  
which

starts /usr/bin/php5-cgi.

Actually I see the following problem: I can run each "domain" under a
different user, but the developer within each "domain" can program
php-code to at least VIEW a lot of other things outside the
domain-directory.

Now I thought about the following:
If I can create a chroot-jail within /var/www/domainx/web and let
php5-cgi be executed within this chroot-jail, the developers would  
only

see there own directory structure like
var/www/domain1/web
  etc
  bin
  usr
  home

What I've get so far is, that I've created a chroot jail within the
web-directory. I can chroot to there and execute php (I used  
"jailer",

for this).

But I don't get it to work that mod_fastcgi starts the chroot-jail.

I googled a lot, but only found howtos and tutorials how to put the
complete apache into a jail, but this is not what I want. Each domain
have to be in its own jail.

Can someone help me / point me in the right direction?


Thanks in advance

Joerg Schoppet


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] IDE

2007-11-16 Thread Arno Kuhl

-Original Message-
From: David Giragosian [mailto:[EMAIL PROTECTED] 
Sent: 16 November 2007 05:21
To: php-general@lists.php.net
Subject: Re: [PHP] IDE

On 11/15/07, Jammer <[EMAIL PROTECTED]> wrote:
>
> Børge Holen wrote:
> > On Thursday 15 November 2007 21:35:04 Jammer wrote:
> >> Hi All,
> >>
> >> This is my first post here ... I'm very much a newbie to php but 
> >> work during the day using SQL Server, VS2005 and Foxpro.  Looking 
> >> to gen up on my PHP.
> >>
> >> Are there any IDE's for PHP worth checking out.  Particularly free
> ones!
> >>
> >> TIA,
> >>
> >> --
> >> jammer
> >> www.jammer.biz
> >
> > I LOVE this IDE quiz'
> > the same answers everytime.
>
> duh!
>
> look, i'm really sorry everyone ... we all make mistakes!
>
> if this is a question that comes up as often as it appears from the 
> responses this thread has generated maybe the FAQ needs to *really* 
> address that?
>
> http://uk3.php.net/FAQ.php
>
> --
> jammer
>
It's OK. I think there's been a long thread on the subject each of the last
two weeks. The folks who are really passionate about their IDE's jump in
first, then those less motivated or less interested add theirs, then it
seems to die for a day or so before it rises from the ashes to sputter and
hiccup a time or two. And then it starts all over, again.

If you stick around long enough on this list, you'll be fussin' at the
question, too.

David
--

I think jammer's idea is a good one. I've been lurking on this list for
years and seen many resurrections of the IDE thread. It's an important
thread, and the PHP IDE world is ever changing and new products come onto
the scene every now and then. I use my favourite commercial IDE but quite
frequently check out the other IDE's mentioned in those threads, mostly to
confirm the choice I made 4 years ago is still the right one. A
well-maintained list of free and commercial PHP IDE's on the php.net site
would be a great idea, especially if it also had links to reviews, and also
included the mix-n-match IDE's I see some people on the list use. And/or
maybe a forum on php.net dedicated to PHP IDE's, with user polls. Then
whenever the IDE thread pops up the response would be to look at the web
site (RTFWS). The only downside might be the resources to run it.

BTW jammer, if you start using php for big projects I'd recommend NuSphere
PhpED, but it's overkill if you just want to dabble. There's a trial version
if you want to check it out, and a good tip is they drop the price every now
and then for promotions (wish I knew that 4 years ago).

Arno

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] IDE

2007-11-16 Thread Daniel Brown
On Nov 16, 2007 6:37 AM, Arno Kuhl <[EMAIL PROTECTED]> wrote:
>
>
> -Original Message-
> From: David Giragosian [mailto:[EMAIL PROTECTED]
> Sent: 16 November 2007 05:21
> To: php-general@lists.php.net
> Subject: Re: [PHP] IDE
>
> On 11/15/07, Jammer <[EMAIL PROTECTED]> wrote:
> >
> > Børge Holen wrote:
> > > On Thursday 15 November 2007 21:35:04 Jammer wrote:
> > >> Hi All,
> > >>
> > >> This is my first post here ... I'm very much a newbie to php but
> > >> work during the day using SQL Server, VS2005 and Foxpro.  Looking
> > >> to gen up on my PHP.
> > >>
> > >> Are there any IDE's for PHP worth checking out.  Particularly free
> > ones!
> > >>
> > >> TIA,
> > >>
> > >> --
> > >> jammer
> > >> www.jammer.biz
> > >
> > > I LOVE this IDE quiz'
> > > the same answers everytime.
> >
> > duh!
> >
> > look, i'm really sorry everyone ... we all make mistakes!
> >
> > if this is a question that comes up as often as it appears from the
> > responses this thread has generated maybe the FAQ needs to *really*
> > address that?
> >
> > http://uk3.php.net/FAQ.php
> >
> > --
> > jammer
> >
> It's OK. I think there's been a long thread on the subject each of the last
> two weeks. The folks who are really passionate about their IDE's jump in
> first, then those less motivated or less interested add theirs, then it
> seems to die for a day or so before it rises from the ashes to sputter and
> hiccup a time or two. And then it starts all over, again.
>
> If you stick around long enough on this list, you'll be fussin' at the
> question, too.
>
> David
> --
>
> I think jammer's idea is a good one. I've been lurking on this list for
> years and seen many resurrections of the IDE thread. It's an important
> thread, and the PHP IDE world is ever changing and new products come onto
> the scene every now and then. I use my favourite commercial IDE but quite
> frequently check out the other IDE's mentioned in those threads, mostly to
> confirm the choice I made 4 years ago is still the right one. A
> well-maintained list of free and commercial PHP IDE's on the php.net site
> would be a great idea, especially if it also had links to reviews, and also
> included the mix-n-match IDE's I see some people on the list use. And/or
> maybe a forum on php.net dedicated to PHP IDE's, with user polls. Then
> whenever the IDE thread pops up the response would be to look at the web
> site (RTFWS). The only downside might be the resources to run it.
>
> BTW jammer, if you start using php for big projects I'd recommend NuSphere
> PhpED, but it's overkill if you just want to dabble. There's a trial version
> if you want to check it out, and a good tip is they drop the price every now
> and then for promotions (wish I knew that 4 years ago).
>
> Arno
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

I can understand your concerns about the issue not being addressed
in the FAQs when it is such a prevalent discussion.  However, it
wouldn't make a suitable FAQ entry because the opinions of which IDE
is best are just that: opinions.  And to list just a few of the IDEs
available on the official site would insinuate that both the PHP
community and the project itself endorse them.

A great resource for something like that would be to check out a
PHP-oriented site.  Once again, http://www.phpbuilder.com/ comes to
mind.  I don't know statistics on that-versus-other sites, but I'd
hazard a guess that PHP Builder probably has one of - if not the -
busiest, most active forum communities.

-- 
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



Re: [PHP] Cannot send a hyperlink (resent)

2007-11-16 Thread Per Jessen
Scott Wilcox wrote:

> I personally think many, many mail servers will block any mail with
> X-Mailer containing PHP. Purely because there are an insane number of
> chances that its going to be spam.

No sane mailserver or mailserver admin will block an email purely based
on an X-Mailer: header.  


/Per Jessen, Zürich

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] IDE

2007-11-16 Thread Jammer

Børge Holen wrote:

On Thursday 15 November 2007 21:35:04 Jammer wrote:

Hi All,

This is my first post here ... I'm very much a newbie to php but work
during the day using SQL Server, VS2005 and Foxpro.  Looking to gen up
on my PHP.

Are there any IDE's for PHP worth checking out.  Particularly free ones!

TIA,

--
jammer
www.jammer.biz


I LOVE this IDE quiz' 
the same answers everytime.


duh!

look, i'm really sorry everyone ... we all make mistakes!

if this is a question that comes up as often as it appears from the 
responses this thread has generated maybe the FAQ needs to *really* 
address that?


http://uk3.php.net/FAQ.php

--
jammer
www.jammer.biz

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Newbie question - current date - time

2007-11-16 Thread Jürgen Wind


tedd-2 wrote:
> 
> I used small case because this is a php list and 
> I didn't want to confuse anyone with trying to 
> get Date() to work in php.
> 
no need to worry, in *php* functions are not case sensitive.

cheers
Jürgen
-- 
View this message in context: 
http://www.nabble.com/Newbie-question---current-date---time-tf4806896.html#a13800560
Sent from the PHP - General mailing list archive at Nabble.com.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Loop issues

2007-11-16 Thread Dan Shirah
Yeah...see...I'm confused apparently!

My while loop is getting all of the names correctly, apparently my problem
is...once i get them, how do I echo each one out seperately?

Based off of the print_r($cs_row) I can see all of the names. What should I
be doing differently to output each name into my table?


On 11/16/07, Daniel Brown <[EMAIL PROTECTED]> wrote:
>
> On Nov 16, 2007 1:57 PM, Dan Shirah <[EMAIL PROTECTED]> wrote:
> [snip!]
> > if($cs_num > 0) {
> >while ($cs_row = mssql_fetch_array($cs_type)) {
> > $cs_type2 = $cs_row['request_type'];
> > $cs_first = $cs_row['first_name'];
> > $cs_last = $cs_row['last_name'];
> > $cs_name = $cs_first." ".$cs_last;
> >  print_r ($cs_row);
> > }
> >}
>
>This is defining $cs_type2, et al, as $cs_row['request_type'], et
> al then overwriting them.  Is this your desired effect?  If so,
> why?
>
>
> > $get_tr = "SELECT DISTINCT
> >   request_type, card_id, first_name, last_name
> >FROM
> >  payment_request
> >WHERE
> >  card_id = '$id'";
> > $tr_type = mssql_query($get_tr) or die(mssql_get_last_message());
> > $tr_num = mssql_num_rows($tr_type);
> >
> > if($tr_num > 0) {
> >while ($tr_row = mssql_fetch_array($tr_type)) {
> > $tr_type2 = $tr_row['request_type'];
> > $tr_first = $tr_row['first_name'];
> > $tr_last = $tr_row['last_name'];
> > $tr_name = $tr_first." ".$tr_last;
> >  print_r ($tr_row);
> > }
> >}
>
>Same basic idea here, Danny Boy.  What are you doing the
> transliteration for when you're not accessing those variables (at
> least as far as I can see)?
>
> > $num_total = $cs_num + $tr_num;
> > $multiple = "MULTIPLE";
> > ?>
> >
> > Here is where I am running into problems. First I am writing an if ()
> > statement to see if there were any rows returned from the queries.  If a
> row
> > was returned I am echoing out the data that was assigned to the
> different
> > variables above.  This works...kind of...
> >
> >   > align='center'> href='javascript:editRecord($id)'>$id";
> > ?>
> >  > align='center'> 0) { echo "$cs_name\n"; }
> >   if ($tr_num > 0) { echo "$tr_name\n";
> > } ?>
> >  > align='center'>
> >  > align='center'> 1) { echo $multiple; }
> >   if ($num_total == 1 && $cs_num == 1) { echo
> $cs_type2;
> > }
> >   if ($num_total == 1 && $tr_num == 1) { echo
> $tr_type2;
> > } ?>
> >  > align='center'>
> >
> > If a single row was returned by the query, all of the information echos
> out
> > just fine.  BUT, If one of the queries returned more than one row, the
> > information that is echo'd out is only the LAST row's information. For
> > example, the result of my $cs_type query returns 3 names: John Smith,
> Jane
> > Smith, James Smith.  The only information being populated to my table is
> > James Smith.  Because of this I think I need to put a loop where the
> echo
> > "$cs_name\n"; is so it will loop through all of the returned names
> and
> > show them all.  I have tried a for, foreach and while loop but I just
> can't
> > seem to wrap my fingers around the right way to use it.
> >
> > Any help is appreciated.
> >
> > Thanks,
> > Dan
> >
>
>
>
> --
> 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.
>


Re: [PHP] Loop issues

2007-11-16 Thread Jeremy Mcentire

So, take a look at what's below and see how it works for you.





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Loop issues

2007-11-16 Thread Daniel Brown
On Nov 16, 2007 1:57 PM, Dan Shirah <[EMAIL PROTECTED]> wrote:
[snip!]
> if($cs_num > 0) {
>while ($cs_row = mssql_fetch_array($cs_type)) {
> $cs_type2 = $cs_row['request_type'];
> $cs_first = $cs_row['first_name'];
> $cs_last = $cs_row['last_name'];
> $cs_name = $cs_first." ".$cs_last;
>  print_r ($cs_row);
> }
>}

This is defining $cs_type2, et al, as $cs_row['request_type'], et
al then overwriting them.  Is this your desired effect?  If so,
why?


> $get_tr = "SELECT DISTINCT
>   request_type, card_id, first_name, last_name
>FROM
>  payment_request
>WHERE
>  card_id = '$id'";
> $tr_type = mssql_query($get_tr) or die(mssql_get_last_message());
> $tr_num = mssql_num_rows($tr_type);
>
> if($tr_num > 0) {
>while ($tr_row = mssql_fetch_array($tr_type)) {
> $tr_type2 = $tr_row['request_type'];
> $tr_first = $tr_row['first_name'];
> $tr_last = $tr_row['last_name'];
> $tr_name = $tr_first." ".$tr_last;
>  print_r ($tr_row);
> }
>}

Same basic idea here, Danny Boy.  What are you doing the
transliteration for when you're not accessing those variables (at
least as far as I can see)?

> $num_total = $cs_num + $tr_num;
> $multiple = "MULTIPLE";
> ?>
>
> Here is where I am running into problems. First I am writing an if ()
> statement to see if there were any rows returned from the queries.  If a row
> was returned I am echoing out the data that was assigned to the different
> variables above.  This works...kind of...
>
>   align='center'>$id";
> ?>
>  align='center'> 0) { echo "$cs_name\n"; }
>   if ($tr_num > 0) { echo "$tr_name\n";
> } ?>
>  align='center'>
>  align='center'> 1) { echo $multiple; }
>   if ($num_total == 1 && $cs_num == 1) { echo $cs_type2;
> }
>   if ($num_total == 1 && $tr_num == 1) { echo $tr_type2;
> } ?>
>  align='center'>
>
> If a single row was returned by the query, all of the information echos out
> just fine.  BUT, If one of the queries returned more than one row, the
> information that is echo'd out is only the LAST row's information. For
> example, the result of my $cs_type query returns 3 names: John Smith, Jane
> Smith, James Smith.  The only information being populated to my table is
> James Smith.  Because of this I think I need to put a loop where the echo
> "$cs_name\n"; is so it will loop through all of the returned names and
> show them all.  I have tried a for, foreach and while loop but I just can't
> seem to wrap my fingers around the right way to use it.
>
> Any help is appreciated.
>
> Thanks,
> Dan
>



-- 
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



Re: [PHP] Re: Converting user input for XML-validation

2007-11-16 Thread Michael McGlothlin

Ralph Kutschera wrote:

Ralph Kutschera wrote:
  

Is there a standard function in PHP to convert any string for usage with
XML? In the example the string should become "< thats a bracket".



I found htmlspecialchars() now. But the question that remains: Is that
sufficient for XML?
The only chars XML requires be encoded are < and &. Usually > and quotes 
are also encoded. So htmlspecialchars() does exactly the right thing.


--
Michael McGlothlin
Southwest Plumbing Supply

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Loop issues

2007-11-16 Thread Dan Shirah
Jeremy,

What you replied with is what I was also trying to get across.

When I print out the array it shows that I pulled all of the names
correctly. And the issue is like you stated that the $name variable is being
overwritten.

What I have not been able to figure out is how to get each name populated to
my table.

Do you think it is my while () statement that needs to be changed?


On 11/16/07, Jeremy Mcentire <[EMAIL PROTECTED]> wrote:
>
> I'm not sure what you're trying to do here; a sample of the output
> you expect would help -- so too would trimming anything extranious to
> the PHP itself(like the html).
>
> But, I think the issue you're running in to is any variable, like
> $tr_type2, is being over-writen each time you get a new row from your
> mysql result iterator.
>
> So, if I have:
>
> $mysql_results = array(
>array('name'=>'Bob'),
>array('name'=>'Alice'),
> );
>
> And used your "while" syntax:
>
> while ($row = next($mysql_results)) {
>$name = $row['name'];
> }
>
> $name would ALWAYS be 'Alice'.  The reason is because the first time
> the while loop executes, it sets $name from unset to 'Bob' and on the
> second time through, it sets $name from 'Bob' to 'Alice'.  The issue
> isn't just echoing in a loop, but defining an array of results to
> begin with.
>
> Then, of course, you can simply iterate over the resulting array when
> you display.
>
>
> Jeremy Mcentire
> Ant Farmer
> ZooToo LLC
>
>
> On Nov 16, 2007, at 1:57 PM, Dan Shirah wrote:
>
> > Hello all,
> >
> > I am having trouble trying to figure out how I should compose this
> > loop to
> > give me ALL the results I want.
> >
> > Below are my queries.  I am querying two different databases to
> > pull in
> > records that match the requested $id. I am then putting the result
> > into a
> > $variable and also counting the number of rows returned. These
> > queries work
> > just fine and pull in all of the data that I want...and by viewing the
> > print_r() I have verified that all the information was returned.
> >
> >  > $get_cs = "SELECT DISTINCT
> >   request_type, card_id, first_name, last_name
> >FROM
> >  support_payment_request
> >WHERE
> >  card_id = '$id'";
> > $cs_type = mssql_query($get_cs) or die(mssql_get_last_message());
> > $cs_num = mssql_num_rows($cs_type);
> >
> > if($cs_num > 0) {
> >while ($cs_row = mssql_fetch_array($cs_type)) {
> > $cs_type2 = $cs_row['request_type'];
> > $cs_first = $cs_row['first_name'];
> > $cs_last = $cs_row['last_name'];
> > $cs_name = $cs_first." ".$cs_last;
> >  print_r ($cs_row);
> > }
> >}
> > $get_tr = "SELECT DISTINCT
> >   request_type, card_id, first_name, last_name
> >FROM
> >  payment_request
> >WHERE
> >  card_id = '$id'";
> > $tr_type = mssql_query($get_tr) or die(mssql_get_last_message());
> > $tr_num = mssql_num_rows($tr_type);
> >
> > if($tr_num > 0) {
> >while ($tr_row = mssql_fetch_array($tr_type)) {
> > $tr_type2 = $tr_row['request_type'];
> > $tr_first = $tr_row['first_name'];
> > $tr_last = $tr_row['last_name'];
> > $tr_name = $tr_first." ".$tr_last;
> >  print_r ($tr_row);
> > }
> >}
> > $num_total = $cs_num + $tr_num;
> > $multiple = "MULTIPLE";
> > ?>
> >
> > Here is where I am running into problems. First I am writing an if ()
> > statement to see if there were any rows returned from the queries.
> > If a row
> > was returned I am echoing out the data that was assigned to the
> > different
> > variables above.  This works...kind of...
> >
> >   > align='center'>
> > $id";
> > ?>
> >  > align='center'> 0) { echo "$cs_name\n"; }
> >   if ($tr_num > 0) { echo "$tr_name\n";
> > } ?>
> >  > align='center'>
> >  > align='center'> 1) { echo $multiple; }
> >   if ($num_total == 1 && $cs_num == 1) { echo
> > $cs_type2;
> > }
> >   if ($num_total == 1 && $tr_num == 1) { echo
> > $tr_type2;
> > } ?>
> >  > align='center'>
> >
> > If a single row was returned by the query, all of the information
> > echos out
> > just fine.  BUT, If one of the queries returned more than one row, the
> > information that is echo'd out is only the LAST row's information. For
> > example, the result of my $cs_type query returns 3 names: John
> > Smith, Jane
> > Smith, James Smith.  The only information being populated to my
> > table is
> > James Smith.  Because of this I think I need to put a loop where
> > the echo
> > "$cs_name\n"; is so it will loop through all of the returned
> > names and
> > show them all.  I have tried a for, foreach and while loop but I
> > just can't
> > seem to wrap my fingers around the right way to use it.
> >
> > Any help is appreciated.
> >
> > Thanks,
> > Dan
>
>


Re: [PHP] Foreach question

2007-11-16 Thread Jeremy Mcentire

On Nov 15, 2007, at 7:50 PM, Juan Marcelo Rodríguez wrote:

2007/11/15, Philip Thompson <[EMAIL PROTECTED]>:

On Nov 15, 2007 5:12 PM, Juan Marcelo Rodríguez <
[EMAIL PROTECTED]>
wrote:

Yes, I made a mistake in the first sentence.

The code is :
[...]

foreach ($equipos as $key => $val){

echo "";
echo "1" . "";  // I would like to add the counter here
reeplacing
"1"


echo "".($key+1)."";

This is assuming $key starts at 0 and increments by 1 each  
iteration

However, if you can't assume that, just have a separate counter:

 $c) {
echo "".(++$counter)."";
...
}


very good idea.


It also assumes that the array in numerically indexed and corresponds  
to the value you expect.  The counter is safer.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Loop issues

2007-11-16 Thread Dan Shirah
Hello all,

I am having trouble trying to figure out how I should compose this loop to
give me ALL the results I want.

Below are my queries.  I am querying two different databases to pull in
records that match the requested $id. I am then putting the result into a
$variable and also counting the number of rows returned. These queries work
just fine and pull in all of the data that I want...and by viewing the
print_r() I have verified that all the information was returned.

 0) {
   while ($cs_row = mssql_fetch_array($cs_type)) {
$cs_type2 = $cs_row['request_type'];
$cs_first = $cs_row['first_name'];
$cs_last = $cs_row['last_name'];
$cs_name = $cs_first." ".$cs_last;
 print_r ($cs_row);
}
   }
$get_tr = "SELECT DISTINCT
  request_type, card_id, first_name, last_name
   FROM
 payment_request
   WHERE
 card_id = '$id'";
$tr_type = mssql_query($get_tr) or die(mssql_get_last_message());
$tr_num = mssql_num_rows($tr_type);

if($tr_num > 0) {
   while ($tr_row = mssql_fetch_array($tr_type)) {
$tr_type2 = $tr_row['request_type'];
$tr_first = $tr_row['first_name'];
$tr_last = $tr_row['last_name'];
$tr_name = $tr_first." ".$tr_last;
 print_r ($tr_row);
}
   }
$num_total = $cs_num + $tr_num;
$multiple = "MULTIPLE";
?>

Here is where I am running into problems. First I am writing an if ()
statement to see if there were any rows returned from the queries.  If a row
was returned I am echoing out the data that was assigned to the different
variables above.  This works...kind of...

 $id";
?>
 0) { echo "$cs_name\n"; }
  if ($tr_num > 0) { echo "$tr_name\n";
} ?>

 1) { echo $multiple; }
  if ($num_total == 1 && $cs_num == 1) { echo $cs_type2;
}
  if ($num_total == 1 && $tr_num == 1) { echo $tr_type2;
} ?>


If a single row was returned by the query, all of the information echos out
just fine.  BUT, If one of the queries returned more than one row, the
information that is echo'd out is only the LAST row's information. For
example, the result of my $cs_type query returns 3 names: John Smith, Jane
Smith, James Smith.  The only information being populated to my table is
James Smith.  Because of this I think I need to put a loop where the echo
"$cs_name\n"; is so it will loop through all of the returned names and
show them all.  I have tried a for, foreach and while loop but I just can't
seem to wrap my fingers around the right way to use it.

Any help is appreciated.

Thanks,
Dan


Re: [PHP] Loop issues

2007-11-16 Thread Jeremy Mcentire
I'm not sure what you're trying to do here; a sample of the output  
you expect would help -- so too would trimming anything extranious to  
the PHP itself(like the html).


But, I think the issue you're running in to is any variable, like  
$tr_type2, is being over-writen each time you get a new row from your  
mysql result iterator.


So, if I have:

$mysql_results = array(
array('name'=>'Bob'),
array('name'=>'Alice'),
);

And used your "while" syntax:

while ($row = next($mysql_results)) {
$name = $row['name'];
}

$name would ALWAYS be 'Alice'.  The reason is because the first time  
the while loop executes, it sets $name from unset to 'Bob' and on the  
second time through, it sets $name from 'Bob' to 'Alice'.  The issue  
isn't just echoing in a loop, but defining an array of results to  
begin with.


Then, of course, you can simply iterate over the resulting array when  
you display.



Jeremy Mcentire
Ant Farmer
ZooToo LLC


On Nov 16, 2007, at 1:57 PM, Dan Shirah wrote:


Hello all,

I am having trouble trying to figure out how I should compose this  
loop to

give me ALL the results I want.

Below are my queries.  I am querying two different databases to  
pull in
records that match the requested $id. I am then putting the result  
into a
$variable and also counting the number of rows returned. These  
queries work

just fine and pull in all of the data that I want...and by viewing the
print_r() I have verified that all the information was returned.

 0) {
   while ($cs_row = mssql_fetch_array($cs_type)) {
$cs_type2 = $cs_row['request_type'];
$cs_first = $cs_row['first_name'];
$cs_last = $cs_row['last_name'];
$cs_name = $cs_first." ".$cs_last;
 print_r ($cs_row);
}
   }
$get_tr = "SELECT DISTINCT
  request_type, card_id, first_name, last_name
   FROM
 payment_request
   WHERE
 card_id = '$id'";
$tr_type = mssql_query($get_tr) or die(mssql_get_last_message());
$tr_num = mssql_num_rows($tr_type);

if($tr_num > 0) {
   while ($tr_row = mssql_fetch_array($tr_type)) {
$tr_type2 = $tr_row['request_type'];
$tr_first = $tr_row['first_name'];
$tr_last = $tr_row['last_name'];
$tr_name = $tr_first." ".$tr_last;
 print_r ($tr_row);
}
   }
$num_total = $cs_num + $tr_num;
$multiple = "MULTIPLE";
?>

Here is where I am running into problems. First I am writing an if ()
statement to see if there were any rows returned from the queries.   
If a row
was returned I am echoing out the data that was assigned to the  
different

variables above.  This works...kind of...

 align='center'> 
$id";

?>
 0) { echo "$cs_name\n"; }
  if ($tr_num > 0) { echo "$tr_name\n";
} ?>

 1) { echo $multiple; }
  if ($num_total == 1 && $cs_num == 1) { echo  
$cs_type2;

}
  if ($num_total == 1 && $tr_num == 1) { echo  
$tr_type2;

} ?>


If a single row was returned by the query, all of the information  
echos out

just fine.  BUT, If one of the queries returned more than one row, the
information that is echo'd out is only the LAST row's information. For
example, the result of my $cs_type query returns 3 names: John  
Smith, Jane
Smith, James Smith.  The only information being populated to my  
table is
James Smith.  Because of this I think I need to put a loop where  
the echo
"$cs_name\n"; is so it will loop through all of the returned  
names and
show them all.  I have tried a for, foreach and while loop but I  
just can't

seem to wrap my fingers around the right way to use it.

Any help is appreciated.

Thanks,
Dan


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] IDE

2007-11-16 Thread Jammer

tedd wrote:

At 11:30 PM + 11/15/07, Jammer wrote:


duh!

look, i'm really sorry everyone ... we all make mistakes!


Only the newbies -- the rest of us are prefect.  :-)


haha! ;)

I walked into a bank once and found everyone laying on the floor. I had 
not done anything wrong, but it was just a matter of bad timing.


oooh dear ... that doesn't bode well!

--
jammer
www.jammer.biz

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] IDE

2007-11-16 Thread Jammer

Arno Kuhl wrote:

I think jammer's idea is a good one. I've been lurking on this list for
years and seen many resurrections of the IDE thread. It's an important
thread, and the PHP IDE world is ever changing and new products come onto
the scene every now and then. I use my favourite commercial IDE but quite
frequently check out the other IDE's mentioned in those threads, mostly to
confirm the choice I made 4 years ago is still the right one. A
well-maintained list of free and commercial PHP IDE's on the php.net site
would be a great idea, especially if it also had links to reviews, and also
included the mix-n-match IDE's I see some people on the list use. And/or
maybe a forum on php.net dedicated to PHP IDE's, with user polls. Then
whenever the IDE thread pops up the response would be to look at the web
site (RTFWS). The only downside might be the resources to run it.


thanks.

I think the point being that most people will have done a simple google 
search in order to have found php.net ... if the IDE topic was obvious 
on that page most people would find it, and have this question answered, 
before finding this list and subscribing.


we as developers must know that if repeated 'users' are appearing here 
with the same questions something is up?  no?  ;)


its like good interface design if you get loads of questions about 
something regarding software you wrote there is a chance that a lot of 
those could be delt with by subtle changes to the way you present things 
to users.



BTW jammer, if you start using php for big projects I'd recommend NuSphere
PhpED, but it's overkill if you just want to dabble. There's a trial version
if you want to check it out, and a good tip is they drop the price every now
and then for promotions (wish I knew that 4 years ago).


well at the moment it is just dabbling to be honest but i'm currently 
redesigning my home site and am investigating the options before laying 
any code down.  one thing i'm considering if a tighter integration with 
my wordpress blog to replace a news type page.  that sort of thing, no 
full on web apps.


i'd propably turn to something like C# in visual web developer if i were 
to go that route simply from familiarity.


thanks for the headsup on the IDE.  off to check it out now.

--
jammer
www.jammer.biz

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Newbie question - current date - time

2007-11-16 Thread tedd

At 8:21 AM -0800 11/16/07, Jürgen Wind wrote:

my point was: "date()" doesn't work - it's "Date()" (at least in Firefox)


Wow, you really have that capitalization thing 
down -- you're an impressive Wind.


I used small case because this is a php list and 
I didn't want to confuse anyone with trying to 
get Date() to work in php. After all, programmers 
never think of using a different case and would 
be hopelessly lost for days. Even Googling 
"date() javascript" only brings up 113 million 
references. What would a programmer do?


Thanks for the capitalization correction. :-)

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



Re: [PHP] file_exists

2007-11-16 Thread tedd

At 2:45 PM + 11/16/07, Stut wrote:
It also worth noting that what you're doing there is quite 
inefficient. I have a similar arrangement where I have a directory 
containing the include files, but I locate it in a different way. 
Most sites I deal with have an auto-prepended file containing (among 
other things) this line...


ini_set('include_path', 
dirname(__FILE__).'/../code'.PATH_SEPARATOR.ini_get('include_path'));


This adds the code subdirectory (relative to the location of the 
prepended file) to the include page. I then don't need to worry 
about where I am when I want to include a file.


When a site goes into production I remove this line and set it in 
the virtualhost definition since there's no reason to re-calculate 
it on every request.


-Stut


Thanks, I think.

Now I have to figure out what you did.

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



Re: [PHP] CURL efficiency?

2007-11-16 Thread Nathan Nobbe
On Nov 15, 2007 4:41 PM, Michael McGlothlin <[EMAIL PROTECTED]> wrote:

> I make use of CURL to talk to a back-end system and I'm calling it
> several times per requested page and there are several page requests a
> second. Is there anything I can do to make this process more efficient?
> Does keep alive work? Do I need to keep the same connection handler and
> not close it after each request? Anyway to make CURL connections
> persistant like I can with MySQL and Memcache? Anything else that'd
> help? Thanks.


checkout curl_multi_init()
http://us.php.net/manual/en/function.curl-multi-init.php

-nathan


Re: [PHP] Cannot send a hyperlink (resent)

2007-11-16 Thread Scott Wilcox
I personally think many, many mail servers will block any mail with 
X-Mailer containing PHP. Purely because there are an insane number of 
chances that its going to be spam.


This is purely based on my opinion though, I'd expect others on the list 
to share it or be similar in viewpoint though.


I'd personally not use that header. That is of course just my two cents 
though!


Scott.

tedd wrote:

At 7:29 PM +0100 11/15/07, Per Jessen wrote:

Brad wrote:


 Why is php refusing to parse as html?


Here your code cut down to what you need:

$headers  = "From: \"".$fromname."\" <".$fromaddress.">".$eol;
$headers .= "X-Mailer: PHP ".phpversion().$eol;
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=\"iso-8859-1\"\r\n";
$headers .= "Content-Transfer-Encoding: 8bit".$eol;

$body = "http://www.zoneofsuccessclub.com\";>link \n";

mail($email, $subject, $body, $headers);


I've been told that using:

$headers .= "X-Mailer: PHP ".phpversion().$eol;

is a good way to get stuck in a spam filter -- what do you think?

Cheers,

tedd


[PHP] Converting user input for XML-validation

2007-11-16 Thread Ralph Kutschera
Hallo!

  I'm having an HTML-form where the user can input anything. With PHP
I'm processing the input to XML like

what the user has entered

Now, if the user enters e.g "< thats a bracket", that gives

< thats a bracket

which of course does not validate.

Is there a standard function in PHP to convert any string for usage with
XML? In the example the string should become "< thats a bracket".

Thanks a lot,
  Ralph

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Cannot send a hyperlink (resent)

2007-11-16 Thread Per Jessen
tedd wrote:

> I've been told that using:
> 
> $headers .= "X-Mailer: PHP ".phpversion().$eol;
> 
> is a good way to get stuck in a spam filter -- what do you think?

It wouldn't get you stuck in our filters.  Personally I never add an
X-Mailer when generating emails with PHP or bash or whatever - what's
the added value?  


/Per Jessen, Zürich

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Gmail Account Invites (Want One?)

2007-11-16 Thread Daniel Brown
On Nov 16, 2007 9:36 AM, tedd <[EMAIL PROTECTED]> wrote:
> At 5:00 PM -0500 11/15/07, Daniel Brown wrote:
> > Yay!  I got to say my stupid thing for the day.
> >
> > Last I had even looked at the signup process, it was open to US
> >users who had a cell phone and could receive SMS messages (containing
> >a confirmation code).  I wonder why the hell they still give you a
> >limit on invites for Gmail then.  I guess it's just typical eccentric
> >Google.
>
> Well, if it makes you feel better, you can invite me.  :-)
>
> Cheers,
>
> tedd
>
> --
> ---
> http://sperling.com  http://ancientstones.com  http://earthstones.com
>

For the record, Tedd, when I sent a Gmail invite to your Gmail
account, it didn't reduce my number of invites.

Let me know what the email says, if it offers any additional hint
as to why the invites still exist.

-- 
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



RE: [PHP] IDE

2007-11-16 Thread Arno Kuhl
-Original Message-
From: William Betts [mailto:[EMAIL PROTECTED] 
Sent: 16 November 2007 05:13
To: [EMAIL PROTECTED]
Cc: David Giragosian; php-general@lists.php.net
Subject: Re: [PHP] IDE

Have you ever used Zend Studio? If so how does it compare to PhpED?

---

I've tried Zend Studio a few times, but I certainly can't say I'm familiar
with it enough to give any real comparison. I looked at the Zend tools
pretty closely 4 years ago, and quite superficially a couple of times since
then. I found ZS slow and cumbersome, and not very intuitive (probably due
to unfamiliarity more than anything else). I'm sure each has it's strengths
and weaknesses. I decided on PhpED because (a) it was fast and intuitive and
I felt comfortable with it straight away, coming from c dev background using
IBM dev tools, (b) it had everything I expected in an IDE and more, (c) the
response from NuSphere and the forums was quick, (d) it was much cheaper
than ZS. Since making the choice I find PhpED very stable, and the updates
are frequent with real useful new features and functionality. The latest
version has a feature I requested a few months ago  so the developers are
generally good at listening to feedback and requests. And the debugger is
excellent. PhpED is the single most important dev tool I have and well worth
the investment, and I'm not sure the extra cost for ZS would have given me
any extra value. But I'm sure there are many ZS users who would disagree.
Best advice is do what I did - download both trial versions and give them a
thorough test yourself. What you feel comfortable with is likely different
to what I feel comfortable with.

Arno

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Newbie question - current date - time

2007-11-16 Thread Jürgen Wind

my point was: "date()" doesn't work - it's "Date()" (at least in Firefox)

tedd-2 wrote:
> 
> At 2:13 PM -0500 11/15/07, Jeremy Mcentire wrote:
>>On Nov 14, 2007, at 4:21 PM, Jürgen Wind wrote:
>>>better use Date() in js ...
>>>tedd-2 wrote:
Current date/time for whom?
For your server, use php's date().
For the user, use javascript's date().
It's so cool to be multilingual.  :-)
Cheers,
tedd
>>
>>I don't know that that's better.
> 
> It's not a question as to what's better?
> 
> You have a choice, it's either: a) the user's time; b) or your server's
> time.
> 
> How and why you use it is your business.
> 
> 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
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Newbie-question---current-date---time-tf4806896.html#a13796414
Sent from the PHP - General mailing list archive at Nabble.com.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Converting user input for XML-validation

2007-11-16 Thread Zoltán Németh
2007. 11. 16, péntek keltezéssel 11.14-kor Ralph Kutschera ezt írta:
> Hallo!
> 
>   I'm having an HTML-form where the user can input anything. With PHP
> I'm processing the input to XML like
> 
> what the user has entered
> 
> Now, if the user enters e.g "< thats a bracket", that gives
> 
> < thats a bracket
> 
> which of course does not validate.
> 
> Is there a standard function in PHP to convert any string for usage with
> XML? In the example the string should become "< thats a bracket".

you need http://hu.php.net/htmlentities

(of course first find the part within , thats a
quite easy regex. then use htmlentities on that part, then replace it
back to the original xml)

greets
Zoltán Németh

> 
> Thanks a lot,
>   Ralph
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Gmail Account Invites (Want One?)

2007-11-16 Thread Daniel Brown
On Nov 16, 2007 9:47 AM, Stut <[EMAIL PROTECTED]> wrote:
> Daniel Brown wrote:
> > On Nov 16, 2007 9:36 AM, tedd <[EMAIL PROTECTED]> wrote:
> >> At 5:00 PM -0500 11/15/07, Daniel Brown wrote:
> >>> Yay!  I got to say my stupid thing for the day.
> >>>
> >>> Last I had even looked at the signup process, it was open to US
> >>> users who had a cell phone and could receive SMS messages (containing
> >>> a confirmation code).  I wonder why the hell they still give you a
> >>> limit on invites for Gmail then.  I guess it's just typical eccentric
> >>> Google.
> >> Well, if it makes you feel better, you can invite me.  :-)
> >>
> >> Cheers,
> >>
> >> tedd
> >>
> >> --
> >> ---
> >> http://sperling.com  http://ancientstones.com  http://earthstones.com
> >>
> >
> > For the record, Tedd, when I sent a Gmail invite to your Gmail
> > account, it didn't reduce my number of invites.
> >
> > Let me know what the email says, if it offers any additional hint
> > as to why the invites still exist.
>
> Surely this is obvious? If they remove them they would remove a way for
> their users to introduce new people to the service. Removing that
> ability wouldn't make sense to me. It might make more sense if they
> changed the wording, but the feature does no harm and so is definitely
> worth them keeping it in.
>
> -Stut
>
> --
> http://stut.net/
>

Yes, but Stut, you have a maximum of 100 invites and when you're
out, you're out.  I agree it makes it seem like more of a "hot-ticket
item" while limiting people, but I don't know if that is, in fact,
what they're going for.

-- 
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



[PHP] Re: Converting user input for XML-validation

2007-11-16 Thread Ralph Kutschera
Thanks a lot for your answers!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Gmail Account Invites (Want One?)

2007-11-16 Thread Stut

Daniel Brown wrote:

On Nov 16, 2007 9:36 AM, tedd <[EMAIL PROTECTED]> wrote:

At 5:00 PM -0500 11/15/07, Daniel Brown wrote:

Yay!  I got to say my stupid thing for the day.

Last I had even looked at the signup process, it was open to US
users who had a cell phone and could receive SMS messages (containing
a confirmation code).  I wonder why the hell they still give you a
limit on invites for Gmail then.  I guess it's just typical eccentric
Google.

Well, if it makes you feel better, you can invite me.  :-)

Cheers,

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com



For the record, Tedd, when I sent a Gmail invite to your Gmail
account, it didn't reduce my number of invites.

Let me know what the email says, if it offers any additional hint
as to why the invites still exist.


Surely this is obvious? If they remove them they would remove a way for 
their users to introduce new people to the service. Removing that 
ability wouldn't make sense to me. It might make more sense if they 
changed the wording, but the feature does no harm and so is definitely 
worth them keeping it in.


-Stut

--
http://stut.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] [NEWBIE GUIDE] For the benefit of new members

2007-11-16 Thread Peter Ford
> 
> I was all ready to jump on Point #6 to disagree until I read the
> next paragraph, updating that with the correct information.  PHP can
> find out the OS of the system on which the browser is running.
> 

Strictly speaking, PHP can only find out what the browser tells it - that
includes the OS. I could quite easily hack the browser info string sent by (at
least one of) my browsers to pretend I was using some horrible Windows 
rubbish...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] IDE

2007-11-16 Thread tedd

At 11:30 PM + 11/15/07, Jammer wrote:


duh!

look, i'm really sorry everyone ... we all make mistakes!


Only the newbies -- the rest of us are prefect.  :-)

I walked into a bank once and found everyone laying on the floor. I 
had not done anything wrong, but it was just a matter of bad timing.


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



Re: [PHP] file_exists

2007-11-16 Thread Stut

tedd wrote:

At 11:06 PM + 11/15/07, Stut wrote:
The realpath function will reduce your definition of $page to 
"/home/evil-user-home-dir/evil-payload.php"


$expecteddir is set to "/home/stut/phpstuff/inc"

The if takes the first strlen($expecteddir) characters of the reduced 
$page and compares it to $expecteddir.


If they don't match then if means the requested file is outside your 
"safe" directory, hence access denied. If they do match then it's safe 
to include the file.


-Stut


-Stut:

What about this?

');
exit;
}
chdir('..');
}
include('common/includes/header.php');
chdir($origwd);
?>

I have a common set of includes that most of my test scripts find and 
use. Unless I'm not understanding the problem here, this looks like 
something this might work. It simply looks for the files it needs in an 
approved path. I don't see any way to circumvent this, do you?


Since nothing in there comes from external variables it should be pretty 
safe, but this is not what the OP was doing.


It also worth noting that what you're doing there is quite inefficient. 
I have a similar arrangement where I have a directory containing the 
include files, but I locate it in a different way. Most sites I deal 
with have an auto-prepended file containing (among other things) this 
line...


ini_set('include_path', 
dirname(__FILE__).'/../code'.PATH_SEPARATOR.ini_get('include_path'));


This adds the code subdirectory (relative to the location of the 
prepended file) to the include page. I then don't need to worry about 
where I am when I want to include a file.


When a site goes into production I remove this line and set it in the 
virtualhost definition since there's no reason to re-calculate it on 
every request.


-Stut

--
http://stut.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Gmail Account Invites (Want One?)

2007-11-16 Thread tedd

At 5:00 PM -0500 11/15/07, Daniel Brown wrote:

Yay!  I got to say my stupid thing for the day.

Last I had even looked at the signup process, it was open to US
users who had a cell phone and could receive SMS messages (containing
a confirmation code).  I wonder why the hell they still give you a
limit on invites for Gmail then.  I guess it's just typical eccentric
Google.


Well, if it makes you feel better, you can invite 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



Re: [PHP] Cannot send a hyperlink (resent)

2007-11-16 Thread Jason Pruim


On Nov 16, 2007, at 9:15 AM, Scott Wilcox wrote:

I personally think many, many mail servers will block any mail with  
X-Mailer containing PHP. Purely because there are an insane number  
of chances that its going to be spam.


This is purely based on my opinion though, I'd expect others on the  
list to share it or be similar in viewpoint though.


I'd personally not use that header. That is of course just my two  
cents though!


Scott.


Speaking as someone who runs a mail server, I don't specifically look  
for that kind of stuff... I have RBL lists, greylisting/delaying,  
Penalty Boxes, and a content scanner which I don't have active right  
now.


I look more for forged helo's, and rbl failures to block my spam...  
Surprisingly, about 80 percent of my spam is simply blocked by  
greylisting... Easy and simple :) All you have to do to beat it, is  
try and resend the mail which mail servers do automatically anyway if  
they are setup right :)


But that's just me... If you want some real info on it, I'd suggest  
the postfix mailing list. Lots of people on there, and lots of people  
at big companies there looking for stuff.



--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424
www.raoset.com
[EMAIL PROTECTED]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Cannot send a hyperlink (resent)

2007-11-16 Thread Zoltán Németh
2007. 11. 16, péntek keltezéssel 09.09-kor tedd ezt írta:
> At 7:29 PM +0100 11/15/07, Per Jessen wrote:
> >Brad wrote:
> >
> >>  Why is php refusing to parse as html?
> >
> >Here your code cut down to what you need:
> >
> >$headers  = "From: \"".$fromname."\" <".$fromaddress.">".$eol;
> >$headers .= "X-Mailer: PHP ".phpversion().$eol;
> >$headers .= "MIME-Version: 1.0\r\n";
> >$headers .= "Content-Type: text/html; charset=\"iso-8859-1\"\r\n";
> >$headers .= "Content-Transfer-Encoding: 8bit".$eol;
> >
> >$body = "http://www.zoneofsuccessclub.com\";>link \n";
> >
> >mail($email, $subject, $body, $headers);
> 
> I've been told that using:
> 
> $headers .= "X-Mailer: PHP ".phpversion().$eol;
> 
> is a good way to get stuck in a spam filter -- what do you think?

I think there are spam filters out there which mark messages with
X-Mailer: PHP as spam because many incorrectly coded php mail forms have
been already abused by spammers...

but also there are a lot of spam filters which mark messages without
X-Mailer header as spam...

so I tend to use a custom X-Mailer header for my applications,
containing application name and version number and similar info

greets
Zoltán Németh

> 
> 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



Re: [PHP] [NEWBIE GUIDE] For the benefit of new members

2007-11-16 Thread Daniel Brown
On Nov 15, 2007 11:27 PM, Paul Scott <[EMAIL PROTECTED]> wrote:
>
> On Thu, 2007-11-15 at 16:45 -0500, Daniel Brown wrote:
> > > 3. There is a searchable archive of the mailing list discussion at
> > > http://phparch.com/mailinglists.
>
> or at
> http://fsiu.uwc.ac.za/index.php?module=blog&action=randblog&userid=9914070612 
> if the above is down, as it is for me right now.
>
>
> --Paul
>
>
> All Email originating from UWC is covered by disclaimer
> http://www.uwc.ac.za/portal/public/portal_services/disclaimer.htm
>
>

And before I get bitched at for that, no I didn't write it.
It was just quoted in this message and attributed to my name.

I'll gladly take the credit though.  ;-P

-- 
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



Re: [PHP] Cannot send a hyperlink (resent)

2007-11-16 Thread Daniel Brown
On Nov 16, 2007 9:15 AM, Scott Wilcox <[EMAIL PROTECTED]> wrote:
> I personally think many, many mail servers will block any mail with
> X-Mailer containing PHP. Purely because there are an insane number of
> chances that its going to be spam.
>
> This is purely based on my opinion though, I'd expect others on the list
> to share it or be similar in viewpoint though.
>
> I'd personally not use that header. That is of course just my two cents
> though!
>
> Scott.
>
>
> tedd wrote:
> > At 7:29 PM +0100 11/15/07, Per Jessen wrote:
> >> Brad wrote:
> >>
> >>>  Why is php refusing to parse as html?
> >>
> >> Here your code cut down to what you need:
> >>
> >> $headers  = "From: \"".$fromname."\" <".$fromaddress.">".$eol;
> >> $headers .= "X-Mailer: PHP ".phpversion().$eol;
> >> $headers .= "MIME-Version: 1.0\r\n";
> >> $headers .= "Content-Type: text/html; charset=\"iso-8859-1\"\r\n";
> >> $headers .= "Content-Transfer-Encoding: 8bit".$eol;
> >>
> >> $body = "http://www.zoneofsuccessclub.com\";>link \n";
> >>
> >> mail($email, $subject, $body, $headers);
> >
> > I've been told that using:
> >
> > $headers .= "X-Mailer: PHP ".phpversion().$eol;
> >
> > is a good way to get stuck in a spam filter -- what do you think?
> >
> > Cheers,
> >
> > tedd
>

There are some SMTP servers that rely on the X-Mailer header to
determine whether or not a message is SPAM, and can decide in either
favor, in part, on that information.  However, keep in mind that
X-Mailer is also non-Internet standard.  In fact, it's even listed in
RFC 2076 (gotta' love the RFCs!) as such.

-- 
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



RE: [PHP] Cannot send a hyperlink (resent)

2007-11-16 Thread tedd

At 7:29 PM +0100 11/15/07, Per Jessen wrote:

Brad wrote:


 Why is php refusing to parse as html?


Here your code cut down to what you need:

$headers  = "From: \"".$fromname."\" <".$fromaddress.">".$eol;
$headers .= "X-Mailer: PHP ".phpversion().$eol;
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=\"iso-8859-1\"\r\n";
$headers .= "Content-Transfer-Encoding: 8bit".$eol;

$body = "http://www.zoneofsuccessclub.com\";>link \n";

mail($email, $subject, $body, $headers);


I've been told that using:

$headers .= "X-Mailer: PHP ".phpversion().$eol;

is a good way to get stuck in a spam filter -- what do you think?

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



RE: [PHP] Cannot send a hyperlink (resent)

2007-11-16 Thread tedd

Hi gang:

I didn't catch it and I'm too lazy to look it up, but someone in this 
thread provided this reference:


http://www.bath.ac.uk/bucs/email/anatomy.shtml

There was a similar thread going on a different list and I was told:


Or RFCs 2821 and 2822 (the URL above refers to RFC 822, which has been
obsoleted by 2822 for about six years or so). Basing the construction of
an email message on some guide on how to read message headers is likely
to deliver non-optimal results.


It's more detailed than I normally think, but it might be of use to 
someone here.


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



Re: [PHP] PHP Developers and the manual

2007-11-16 Thread Børge Holen
On Wednesday 14 November 2007 18:55:20 Robert Cummings wrote:
> On Wed, 2007-11-14 at 12:26 -0500, Daniel Brown wrote:
> > > On Nov 14, 2007, at 11:53 AM, João Amaro Lagedo wrote:
> > > > I recently subscribed to php-general(2 months I think) and during
> > > > this time I saw some nice stuff, but most of the times (90% ?) It's
> > > > always the same thing.
> > > > PHP "Developers" that really have some kind of problem about reading
> > > > the Documentation.
> >
> > It's no coincidence that the international anthem of the PHP
> > community is "RTFM".  Sang to the tune of "The Blue Danube" he lyrics
> > are as follows:
> >
> > Oh, listen to me, young coding geek.
> > When all else is lost, and all looks bleak,
> > The first place to go is on the 'Net,
> > And go onto Google, where you can bet
> > That someone else has had the same
> > Problems that you presently face.
> > So please don't scream, and don't yell;
> > Read The Fucking Manual.
> >
> > On Nov 14, 2007 12:03 PM, Jason Pruim <[EMAIL PROTECTED]> wrote:
> > [snip]
> >
> > > So I guess the point of this e-mail, is to say thanks to everyone who
> > > has helped me. :)
> >
> > Hey, no worries.  You'll be able to officially thank the community
> > when we go to the new mandatory donation system on the list on 1
> > January, 2008.  Watch for strange charges to your PayPal account, et
> > cetera, with the subject "foreach($question as $head => $wall)" or
> > "HTML Lessons". Coincidentally, that's the same date that Robert
> > Cummings' gift link turns into an ultimatum that will teach those who
> > don't click of their own mortality.
>
> Gift link??

did he mean Richard there?

>
> And I think you mean "volition" where you've used "mortality" :)
>
> Cheers,
> Rob.
> --
> ...
> SwarmBuy.com - http://www.swarmbuy.com
>
> Leveraging the buying power of the masses!
> ...



-- 
---
Børge Holen
http://www.arivene.net

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Bcompiler errors

2007-11-16 Thread Mike Yrabedra
on 11/15/07 12:51 PM, Daniel Brown at [EMAIL PROTECTED] wrote:

> On Nov 15, 2007 12:36 PM, Mike Yrabedra <[EMAIL PROTECTED]> wrote:
>> on 11/15/07 11:17 AM, Colin Guthrie at [EMAIL PROTECTED] wrote:
>> 
>>> Mike Yrabedra wrote:
 Hello,
 
 
 I am getting these errors all the time now, on multiple scripts at random
 times.
 
 Warning: bcompiler: Bad bytecode file format at  in Unknown on line
 0
 
 This tells me it has to be PHP in some fashion.
 
 Only thing I have found is this...
 
 http://pecl.php.net/bugs/bug.php?id=10742
 
 I am unsure as to where I need to go from here?
 
 I am concerned about putting this into production if it happens this often.
 
 Any ideas?
 
 
 P.S. Running PHP 5.2.3 on Mac OS X intel xserve
 
 Apache 2.2.4
 
>>> 
>>> 
>>> Do you have to bytecompile your scripts? You're using apache, so it's
>>> not a gtk exectutable or such like, so I can only assume you're wanting
>>> to sell/supply your code to third parties? If not then simply don't
>>> bytecompile ;)
>>> 
>>> Col
>> 
>> 
>> I am not, that is why it is so weird.
>> 
>> It is straight PHP code.
>> 
>> 
>> --
>> Mike Yrabedra B^)>
>> 
>> 
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>> 
>> 
> 
> Does the error appear when you execute this via the CLI, or only on the
> web?


Don't know, but it is totally random, so it is not my script(s).


-- 
Mike Yrabedra B^)>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Semi-newbie Question .... streams ...

2007-11-16 Thread Per Jessen
Jim Lucas wrote:

> If this is an EXE, I assume it is in binary format?
> 
> If so, would not your serial number have been compiled into the
> software?
> 
> Wouldn't a simple search/replace fail in this case?

If the string (the serial number) is unique, and all in one place, a
simple search/replace will do fine. 


/Per Jessen, Zürich

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Converting user input for XML-validation

2007-11-16 Thread Ralph Kutschera
Ralph Kutschera wrote:
> Is there a standard function in PHP to convert any string for usage with
> XML? In the example the string should become "< thats a bracket".

I found htmlspecialchars() now. But the question that remains: Is that
sufficient for XML?

regards,
  Ralph

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] submitting forms with ajax

2007-11-16 Thread samantha_o

Hi,

i would like to submit forms with ajax, using jquery and then load the next
page. I had successfully do it with jquery and form plugin. however, it does
not work whenever the server response consist of both HTMLs and javascript
together. Is it possible to make it works? I am new in all this. Can anyone
help me? 
-- 
View this message in context: 
http://www.nabble.com/submitting-forms-with-ajax-tf4819530.html#a13788322
Sent from the PHP - General mailing list archive at Nabble.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Open Source BTS??

2007-11-16 Thread M. Sokolewicz

Richard Heyes wrote:
I am needing to install a bug tracking system on a web server and 
looking for a good PHP open source solution. Looking for a pretty 
mature system that still has active development. Thanks for any 
suggestions.


The only one I have had experience of is Mantis:

http://www.mantisbt.org/

No complaints here.



I'm personally a big fan of both bugzilla (www.bugzilla.org) and Trac 
(trac.edgewall.org), both not php (perl, and python I believe), but they 
are both really really good imo.


- Tul

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Tree-like structure in PHP?

2007-11-16 Thread Robin Vickery
On 16/11/2007, Paul van Haren <[EMAIL PROTECTED]> wrote:
> I'm trying to use arrays to implement a sort of data tree. For the code to
> work, it is essential that the nodes can be edited after they have become
> part of the tree. That would require that the array elements are pushed
> "by reference" rather than "by value".
>
> 
> $arr1 = array ();
> $arr2 = array ();
>
> array_push ($arr1, 1);
> array_push ($arr1, $arr2);  // <-- the important line

 array_push ($arr1, &$arr2);
or
 $arr1[] =& $arr2;

-robin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Tree-like structure in PHP? (closed)

2007-11-16 Thread Jochem Maas
Paul van Haren wrote:
> Thanks, the empasant helps!

ampersand :-)

> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Tree-like structure in PHP?

2007-11-16 Thread Richard Heyes

What is the most obvious way to implement a tree-like structure in PHP?


Use someone elses code that already works. :) Array based tree class is 
here:


http://www.phpguru.org/Tree/Tree.phps

--
Richard Heyes
+44 (0)800 0213 172
http://www.websupportsolutions.co.uk

Knowledge Base and HelpDesk software
that can cut the cost of online support

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Open Source BTS??

2007-11-16 Thread Richard Heyes
I am needing to install a bug tracking system on a web server and looking for 
a good PHP open source solution. Looking for a pretty mature system that 
still has active development. Thanks for any suggestions.


The only one I have had experience of is Mantis:

http://www.mantisbt.org/

No complaints here.

--
Richard Heyes
+44 (0)800 0213 172
http://www.websupportsolutions.co.uk

Knowledge Base and HelpDesk software
that can cut the cost of online support

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Converting user input for XML-validation

2007-11-16 Thread Per Jessen
Ralph Kutschera wrote:

> Is there a standard function in PHP to convert any string for usage
> with XML? In the example the string should become "< thats a
> bracket".

You could just use CDATA in XML, but otherwise you might want to look at
html_entities().


/Per Jessen, Zürich

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] submitting forms with ajax

2007-11-16 Thread Shiplu
Why dont you use json as server response? Then manipulate it by own
javascript. You can use jquery $.getJSON function to do the ajax part
for you.

On 11/16/07, samantha_o <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> i would like to submit forms with ajax, using jquery and then load the next
> page. I had successfully do it with jquery and form plugin. however, it does
> not work whenever the server response consist of both HTMLs and javascript
> together. Is it possible to make it works? I am new in all this. Can anyone
> help me?
> --
> View this message in context:
> http://www.nabble.com/submitting-forms-with-ajax-tf4819530.html#a13788322
> Sent from the PHP - General mailing list archive at Nabble.com.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Tree-like structure in PHP? (closed)

2007-11-16 Thread Paul van Haren
Thanks, the empasant helps!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Tree-like structure in PHP?

2007-11-16 Thread Jochem Maas
Paul van Haren wrote:
> I'm trying to use arrays to implement a sort of data tree. For the code to
> work, it is essential that the nodes can be edited after they have become
> part of the tree. That would require that the array elements are pushed
> "by reference" rather than "by value". 
> 
>
>   $arr1 = array ();
>   $arr2 = array ();
> 
>   array_push ($arr1, 1);
>   array_push ($arr1, $arr2);  // <-- the important line

$arr1[] =& $arr2;

>   array_push ($arr1, 2);
>   array_push ($arr2, 3);
>   array_push ($arr2, 4);
> 
>   // Contents of $arr2 are now empty
>   // apparently $arr2 is inserted by value
>   print_r ($arr1);
> 
>   echo "Expected output:\n";
>   $arr1[1] = $arr2;
>   print_r ($arr1);
>   ?>
> 
> What is the most obvious way to implement a tree-like structure in PHP? Is
> there a way to push arrays by reference rather than by value?
> 
> BTW: I'm using PHP CLI version 5.2
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] submitting forms with ajax

2007-11-16 Thread Shiplu
Why dont you use json as server response? Then manipulate it by own
javascript. You can use jquery $.getJSON function to do the ajax part
for you.

On 11/16/07, Shiplu <[EMAIL PROTECTED]> wrote:
> Why dont you use json as server response? Then manipulate it by own
> javascript. You can use jquery $.getJSON function to do the ajax part
> for you.
>
> On 11/16/07, samantha_o <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > i would like to submit forms with ajax, using jquery and then load the
> next
> > page. I had successfully do it with jquery and form plugin. however, it
> does
> > not work whenever the server response consist of both HTMLs and javascript
> > together. Is it possible to make it works? I am new in all this. Can
> anyone
> > help me?
> > --
> > View this message in context:
> > http://www.nabble.com/submitting-forms-with-ajax-tf4819530.html#a13788322
> > Sent from the PHP - General mailing list archive at Nabble.com.
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] CURL efficiency?

2007-11-16 Thread Per Jessen
Michael McGlothlin wrote:

> I make use of CURL to talk to a back-end system and I'm calling it
> several times per requested page and there are several page requests a
> second. Is there anything I can do to make this process more
> efficient? Does keep alive work? Do I need to keep the same connection
> handler and not close it after each request? Anyway to make CURL
> connections persistant like I can with MySQL and Memcache? Anything
> else that'd help? Thanks.

How about letting apache proxy things for you instead?  You'd would map
your backend system URLs into your frontend system e.g.
through "/backend/" - I'm not sure how well that would fit into your
current setup, though. 


/Per Jessen, Zürich

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Tree-like structure in PHP?

2007-11-16 Thread Paul van Haren
I'm trying to use arrays to implement a sort of data tree. For the code to
work, it is essential that the nodes can be edited after they have become
part of the tree. That would require that the array elements are pushed
"by reference" rather than "by value". 



What is the most obvious way to implement a tree-like structure in PHP? Is
there a way to push arrays by reference rather than by value?

BTW: I'm using PHP CLI version 5.2

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php