php-general Digest 10 Jul 2007 09:25:56 -0000 Issue 4895

Topics (messages 258513 through 258530):

Re: Where does PHP look for php.ini??
        258513 by: Tijnema
        258515 by: Mario Guenterberg
        258521 by: Tijnema

Re: About Incorporating MySQL and XML/XSLT/PHP
        258514 by: Nathan Nobbe
        258519 by: Nathan Nobbe
        258520 by: Nathan Nobbe

[EMAIL PROTECTED],(B
        258516 by: $BM*4u(B

$B1oCL$O$"[EMAIL PROTECTED])!)(B
        258517 by: [EMAIL PROTECTED](B

Php-general-help/--STOP !!! No Pague de MAS... !!
        258518 by: Php-general-help  9

Simple PHP setting arrays with keys question
        258522 by: Dan
        258523 by: Dan
        258524 by: Dan
        258527 by: brian

Re: Swear filter ideas
        258525 by: Daevid Vincent
        258529 by: heavyccasey.gmail.com

Re: ftp_ssl_connect
        258526 by: Chris

system() call in PHP5 on win2003
        258528 by: Xiaogang

About Eclipse JVM Termination
        258530 by: Kelvin Park

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
On 7/9/07, Mario Guenterberg <[EMAIL PROTECTED]> wrote:
On Mon, Jul 09, 2007 at 05:16:20PM +0200, Tijnema wrote:
>  I've build my own Linux, so good to know how to change it :)
>
>  Tijnema

Ahh, a linux from scratch user, eh? :-)
If you need it or want some usefull input, I have very usefull
build scripts for apache/php and mysql/postgresql. I use this scripts
for my own builds from scratch or vanilla source.

Greetings
Mario


It has an LFS base yes ;)

When I had the base LFS system, I continued on my own, no BLFS or
such, and a lot of unstable code "fixes", which was more like making
bugs in programs to fix compile errors ;), commenting out some mem
calls or such :P

Can't remember that I've changed anything in PHP/Apache/MySQL or
PostgreSQL, but still interested in your scripts :)

Tijnema

--
Vote for PHP Color Coding in Gmail! -> http://gpcc.tijnema.info

--- End Message ---
--- Begin Message ---
On Mon, Jul 09, 2007 at 10:38:24PM +0200, Tijnema wrote:
>  On 7/9/07, Mario Guenterberg <[EMAIL PROTECTED]> wrote:
> > On Mon, Jul 09, 2007 at 05:16:20PM +0200, Tijnema wrote:
> > >  I've build my own Linux, so good to know how to change it :)
> > >
> > >  Tijnema
> >
> > Ahh, a linux from scratch user, eh? :-)
> > If you need it or want some usefull input, I have very usefull
> > build scripts for apache/php and mysql/postgresql. I use this scripts
> > for my own builds from scratch or vanilla source.
> >
> > Greetings
> > Mario
> >
> 
>  It has an LFS base yes ;)
> 
>  When I had the base LFS system, I continued on my own, no BLFS or
>  such, and a lot of unstable code "fixes", which was more like making
>  bugs in programs to fix compile errors ;), commenting out some mem
>  calls or such :P
>
>  Can't remember that I've changed anything in PHP/Apache/MySQL or
>  PostgreSQL, but still interested in your scripts :)
> 
>  Tijnema

I don't change the sources even if security bugs or issues are known.
The only 3rd party patch I ever applied for php is hardened php/suhosin.

I attach the scripts to this mail.

Greetings
Mario

-- 
 -----------------------------------------------------
| havelsoft.com - Ihr Service Partner für Open Source |
| Tel:  033876-21 966                                 |
| Notruf: 0173-277 33 60                              |
| http://www.havelsoft.com                            |
|                                                     |
| Inhaber: Mario Günterberg                           |
| Mützlitzer Strasse 19                               |
| 14715 Märkisch Luch                                 |
 -----------------------------------------------------

Attachment: build-apache2.sh
Description: Bourne shell script

Attachment: build-mysql5.sh
Description: Bourne shell script

Attachment: build-pgsql8.sh
Description: Bourne shell script

Attachment: build-php5.sh
Description: Bourne shell script

Attachment: pgpYMu5wKyG34.pgp
Description: PGP signature


--- End Message ---
--- Begin Message ---
On 7/9/07, Mario Guenterberg <[EMAIL PROTECTED]> wrote:
On Mon, Jul 09, 2007 at 10:38:24PM +0200, Tijnema wrote:
>  On 7/9/07, Mario Guenterberg <[EMAIL PROTECTED]> wrote:
> > On Mon, Jul 09, 2007 at 05:16:20PM +0200, Tijnema wrote:
> > >  I've build my own Linux, so good to know how to change it :)
> > >
> > >  Tijnema
> >
> > Ahh, a linux from scratch user, eh? :-)
> > If you need it or want some usefull input, I have very usefull
> > build scripts for apache/php and mysql/postgresql. I use this scripts
> > for my own builds from scratch or vanilla source.
> >
> > Greetings
> > Mario
> >
>
>  It has an LFS base yes ;)
>
>  When I had the base LFS system, I continued on my own, no BLFS or
>  such, and a lot of unstable code "fixes", which was more like making
>  bugs in programs to fix compile errors ;), commenting out some mem
>  calls or such :P
>
>  Can't remember that I've changed anything in PHP/Apache/MySQL or
>  PostgreSQL, but still interested in your scripts :)
>
>  Tijnema

I don't change the sources even if security bugs or issues are known.
The only 3rd party patch I ever applied for php is hardened php/suhosin.

I attach the scripts to this mail.

Greetings
Mario

I didn't say security fixes , I only change the source for compile errors ;)

Thanks for the scripts :)
I'll take a look at them and see if I can learn something from
them/use them in my own environment :)

Tijnema

--
Vote for PHP Color Coding in Gmail! -> http://gpcc.tijnema.info

--- End Message ---
--- Begin Message ---
Wouldn't XSLT document be filled with input forms if I want to receive
information from the customers?

XHTML forms are probly the most ubiquitous way to get data from a user to an
application.  and to be specific, the xsl files are those that would
contain the XHTML forms.

There is no great rationale to convert data from the form into XML prior to
further processing that immediately comes to mind, though im sure there may
be a suitable reason for it somewhere.  Naturally, when users submit data to
your application, the very first thing you should do w/ it is validate it.
If that works out
you can pass said data along for further processing and potentially modify
the application database.  Therefore if you plan on using PHP, which im
assuming you are
at this point, the action attribute of the form tags within xsl files will
reference PHP files.  Those PHP files will process the data as i just
described.

-nathan

On 7/9/07, Kelvin Park <[EMAIL PROTECTED]> wrote:

and -> an

On 7/9/07, Kelvin Park <[EMAIL PROTECTED]> wrote:
>
> The contents would be basically and item name, description, and its
> image.
> Let say I'm transferring mysql database to XML and display product
> information on a website with XSLT.
> If I'm not sending user inputted information through XML back to mysql
> database,
>
> Wouldn't XSLT document be filled with input forms if I want to receive
> information from the customers?
>
> Or bottomline is it more convenient and clear coding (with XSLT, XML) to
> just directly send customer data through PHP POST in to mysql database?
>
> On 7/9/07, Nathan Nobbe < [EMAIL PROTECTED]> wrote:
> >
> > I said,
> > > Kevin
> >
> > my bad; meant to say Kelvin..
> >
> > -nathan
> >
> > On 7/9/07, Nathan Nobbe <[EMAIL PROTECTED] > wrote:
> > >
> > > Kevin,
> > >
> > > would you mind sending the particular url w/ the content you are
> > > referring to?
> > >
> > > also, data doesnt necessarily need to go through xml on its way back
> > > to the database.
> > > consider a web form for instance which might submit data to your
> > > application via HTTP POST.
> > > in that case you could simply process the data in a familiar way and
> > > insert / update or whatever, the database as appropriate.
> > > aside from that if you wanted to send XML elements to the database
> > > you could do so in one of several ways.
> > >
> > > the XML could be stored natively of course, but i think what youre
> > > asking about is getting the contents of a particular tag, say, and insert
> > > that into a particular field in a table.  to accomplish this use
> > > SimpleXML or DOM to parse the XML and traverse to the node whose data you
> > > mean to insert (or update or whatever) into the database; store it
> > > in a variable and use it in a query at a later point in the code.
> > >
> > > -nathan
> > >
> > > On 7/9/07, Kelvin Park < [EMAIL PROTECTED]> wrote:
> > > >
> > > > One of his tutorials explained how to transfer MySQL data to XML,
> > > > however obviously the data is not always static, it needs to be changed
> > > > sending the data back to MySQL through XML.
> > > >
> > > > Do you know how to send XML elements back in to MySQL database?
> > > >
> > > > Thanks!
> > > >
> > > > On 7/9/07, Nathan Nobbe <[EMAIL PROTECTED] > wrote:
> > > > >
> > > > > i havent had time to fully explore the material from Tony yet,
> > > > > but so far ive been building XML entirely in memory rather than 
reading in a
> > > > > complete file, parsing it and placing data at certain points.  one 
thing i
> > > > > would like to explore is either DTDs or XMLSchema to validate the XML
> > > > > against.  in that case even w/ the approach i currently take there 
would
> > > > > still be files on disk. as long as said XML files have practical 
permissions
> > > > > i dont think having them on disc is a great security risk.
> > > > >
> > > > > -nathan
> > > > >
> > > > > On 7/9/07, Kelvin Park < [EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > Since XML is just a text document, wouldn't it raise security
> > > > > > issues if all data was transferred to XML files?
> > > > > >
> > > > > > On 7/9/07, Kelvin Park < [EMAIL PROTECTED]> wrote:
> > > > > > >
> > > > > > > absolutely!, thanks
> > > > > > >
> > > > > > > On 7/9/07, Nathan Nobbe <[EMAIL PROTECTED] > wrote:
> > > > > > > >
> > > > > > > > Tony,
> > > > > > > >
> > > > > > > > this material looks quite excellent; thanks for sharing.
> > > > > > > >
> > > > > > > > -nathan
> > > > > > > >
> > > > > > > > On 7/9/07, Tony Marston < [EMAIL PROTECTED]>
> > > > > > > > wrote:
> > > > > > > > >
> > > > > > > > > Try these for size:
> > > > > > > > > http://www.tonymarston.net/php-mysql/domxml.html and
> > > > > > > > > http://www.tonymarston.net/php-mysql/sablotron.html
> > > > > > > > > http://www.tonymarston.net/php-mysql/dom.html and
> > > > > > > > > http://www.tonymarston.net/php-mysql/xsl.html
> > > > > > > > >
> > > > > > > > > There is also a sample application available at
> > > > > > > > > http://www.tonymarston.net/php-mysql/sample-application.html
> > > > > > > > which you can
> > > > > > > > > download with all the necessary code.
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > > Tony Marston
> > > > > > > > > http://www.tonymarston.net
> > > > > > > > > http://www.radicore.org
> > > > > > > > >
> > > > > > > > > ""Kelvin Park"" <[EMAIL PROTECTED]> wrote in
> > > > > > > > message
> > > > > > > > >
> > > > > > > > news:[EMAIL PROTECTED]
> > > > > > > >
> > > > > > > > > > I'm using XSLT to make a website template and XML to
> > > > > > > > describe the data
> > > > > > > > > on
> > > > > > > > > > my
> > > > > > > > > > website. Do I parse the data from MySQL to XML in
> > > > > > > > order to apply styles
> > > > > > > > > > and
> > > > > > > > > > display them as XHTML with XSLT?
> > > > > > > > > >
> > > > > > > > > > I would have to use PHP to parse XML, however I was
> > > > > > > > unclear on how to
> > > > > > > > > pass
> > > > > > > > > > MySQL data to XML in order for it do be displayed
> > > > > > > > through XSLT template.
> > > > > > > > > > Do you know a good reference (website, book, article)
> > > > > > > > for the most
> > > > > > > > > correct
> > > > > > > > > > way to display MySQL data with XML/XSLT/PHP?
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > > PHP General Mailing List ( http://www.php.net/)
> > > > > > > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>


--- End Message ---
--- Begin Message ---
Kevin,

would you mind sending the particular url w/ the content you are referring
to?

also, data doesnt necessarily need to go through xml on its way back to the
database.
consider a web form for instance which might submit data to your application
via HTTP POST.
in that case you could simply process the data in a familiar way and insert
/ update or whatever, the database as appropriate.
aside from that if you wanted to send XML elements to the database you could
do so in one of several ways.

the XML could be stored natively of course, but i think what youre asking
about is getting the contents of a particular tag, say, and insert
that into a particular field in a table.  to accomplish this use SimpleXML
or DOM to parse the XML and traverse to the node whose data you
mean to insert (or update or whatever) into the database; store it in a
variable and use it in a query at a later point in the code.

-nathan

On 7/9/07, Kelvin Park <[EMAIL PROTECTED]> wrote:

One of his tutorials explained how to transfer MySQL data to XML, however
obviously the data is not always static, it needs to be changed sending the
data back to MySQL through XML.

Do you know how to send XML elements back in to MySQL database?

Thanks!

On 7/9/07, Nathan Nobbe <[EMAIL PROTECTED]> wrote:
>
> i havent had time to fully explore the material from Tony yet, but so
> far ive been building XML entirely in memory rather than reading in a
> complete file, parsing it and placing data at certain points.  one thing i
> would like to explore is either DTDs or XMLSchema to validate the XML
> against.  in that case even w/ the approach i currently take there would
> still be files on disk. as long as said XML files have practical permissions
> i dont think having them on disc is a great security risk.
>
> -nathan
>
> On 7/9/07, Kelvin Park < [EMAIL PROTECTED]> wrote:
> >
> > Since XML is just a text document, wouldn't it raise security issues
> > if all data was transferred to XML files?
> >
> > On 7/9/07, Kelvin Park < [EMAIL PROTECTED]> wrote:
> > >
> > > absolutely!, thanks
> > >
> > > On 7/9/07, Nathan Nobbe <[EMAIL PROTECTED] > wrote:
> > > >
> > > > Tony,
> > > >
> > > > this material looks quite excellent; thanks for sharing.
> > > >
> > > > -nathan
> > > >
> > > > On 7/9/07, Tony Marston < [EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Try these for size:
> > > > > http://www.tonymarston.net/php-mysql/domxml.html and
> > > > > http://www.tonymarston.net/php-mysql/sablotron.html
> > > > > http://www.tonymarston.net/php-mysql/dom.html and
> > > > > http://www.tonymarston.net/php-mysql/xsl.html
> > > > >
> > > > > There is also a sample application available at
> > > > > http://www.tonymarston.net/php-mysql/sample-application.html which
> > > > you can
> > > > > download with all the necessary code.
> > > > >
> > > > > --
> > > > > Tony Marston
> > > > > http://www.tonymarston.net
> > > > > http://www.radicore.org
> > > > >
> > > > > ""Kelvin Park"" <[EMAIL PROTECTED]> wrote in message
> > > > > news:[EMAIL PROTECTED]
> > > >
> > > > > > I'm using XSLT to make a website template and XML to describe
> > > > the data
> > > > > on
> > > > > > my
> > > > > > website. Do I parse the data from MySQL to XML in order to
> > > > apply styles
> > > > > > and
> > > > > > display them as XHTML with XSLT?
> > > > > >
> > > > > > I would have to use PHP to parse XML, however I was unclear on
> > > > how to
> > > > > pass
> > > > > > MySQL data to XML in order for it do be displayed through XSLT
> > > > template.
> > > > > > Do you know a good reference (website, book, article) for the
> > > > most
> > > > > correct
> > > > > > way to display MySQL data with XML/XSLT/PHP?
> > > > > >
> > > > >
> > > > > --
> > > > > PHP General Mailing List ( http://www.php.net/)
> > > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > > >
> > > > >
> > > >
> > >
> > >
> >
>


--- End Message ---
--- Begin Message ---
I said,
Kevin

my bad; meant to say Kelvin..

-nathan

On 7/9/07, Nathan Nobbe <[EMAIL PROTECTED]> wrote:

Kevin,

would you mind sending the particular url w/ the content you are referring
to?

also, data doesnt necessarily need to go through xml on its way back to
the database.
consider a web form for instance which might submit data to your
application via HTTP POST.
in that case you could simply process the data in a familiar way and
insert / update or whatever, the database as appropriate.
aside from that if you wanted to send XML elements to the database you
could do so in one of several ways.

the XML could be stored natively of course, but i think what youre asking
about is getting the contents of a particular tag, say, and insert
that into a particular field in a table.  to accomplish this use SimpleXML
or DOM to parse the XML and traverse to the node whose data you
mean to insert (or update or whatever) into the database; store it in a
variable and use it in a query at a later point in the code.

-nathan

On 7/9/07, Kelvin Park <[EMAIL PROTECTED]> wrote:
>
> One of his tutorials explained how to transfer MySQL data to XML,
> however obviously the data is not always static, it needs to be changed
> sending the data back to MySQL through XML.
>
> Do you know how to send XML elements back in to MySQL database?
>
> Thanks!
>
> On 7/9/07, Nathan Nobbe <[EMAIL PROTECTED] > wrote:
> >
> > i havent had time to fully explore the material from Tony yet, but so
> > far ive been building XML entirely in memory rather than reading in a
> > complete file, parsing it and placing data at certain points.  one thing i
> > would like to explore is either DTDs or XMLSchema to validate the XML
> > against.  in that case even w/ the approach i currently take there would
> > still be files on disk. as long as said XML files have practical permissions
> > i dont think having them on disc is a great security risk.
> >
> > -nathan
> >
> > On 7/9/07, Kelvin Park < [EMAIL PROTECTED]> wrote:
> > >
> > > Since XML is just a text document, wouldn't it raise security issues
> > > if all data was transferred to XML files?
> > >
> > > On 7/9/07, Kelvin Park < [EMAIL PROTECTED]> wrote:
> > > >
> > > > absolutely!, thanks
> > > >
> > > > On 7/9/07, Nathan Nobbe <[EMAIL PROTECTED] > wrote:
> > > > >
> > > > > Tony,
> > > > >
> > > > > this material looks quite excellent; thanks for sharing.
> > > > >
> > > > > -nathan
> > > > >
> > > > > On 7/9/07, Tony Marston < [EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > Try these for size:
> > > > > > http://www.tonymarston.net/php-mysql/domxml.html and
> > > > > > http://www.tonymarston.net/php-mysql/sablotron.html
> > > > > > http://www.tonymarston.net/php-mysql/dom.html and
> > > > > > http://www.tonymarston.net/php-mysql/xsl.html
> > > > > >
> > > > > > There is also a sample application available at
> > > > > > http://www.tonymarston.net/php-mysql/sample-application.html which
> > > > > you can
> > > > > > download with all the necessary code.
> > > > > >
> > > > > > --
> > > > > > Tony Marston
> > > > > > http://www.tonymarston.net
> > > > > > http://www.radicore.org
> > > > > >
> > > > > > ""Kelvin Park"" <[EMAIL PROTECTED]> wrote in message
> > > > > >
> > > > > news:[EMAIL PROTECTED]
> > > > >
> > > > > > > I'm using XSLT to make a website template and XML to
> > > > > describe the data
> > > > > > on
> > > > > > > my
> > > > > > > website. Do I parse the data from MySQL to XML in order to
> > > > > apply styles
> > > > > > > and
> > > > > > > display them as XHTML with XSLT?
> > > > > > >
> > > > > > > I would have to use PHP to parse XML, however I was unclear
> > > > > on how to
> > > > > > pass
> > > > > > > MySQL data to XML in order for it do be displayed through
> > > > > XSLT template.
> > > > > > > Do you know a good reference (website, book, article) for
> > > > > the most
> > > > > > correct
> > > > > > > way to display MySQL data with XML/XSLT/PHP?
> > > > > > >
> > > > > >
> > > > > > --
> > > > > > PHP General Mailing List ( http://www.php.net/)
> > > > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > >
> >
>


--- End Message ---
--- Begin Message ---
http://fe-ll-in.com/mp/lavoxは本当にあなたと会うためだけに作った伝言ボックスなの。
参加すればコメントだって完全無料に書き込めるしメールだって全部無料なんです!だって他に方法がないから…
電話番号だって書いたし場所だって服装だって写真ものせたから大丈夫だよね?今返事できないだけだよね。私先に行って待ってるから、来てくださいね!

前にメールした時から不思議な感じがあって気にせずにはいられないの…私から電話かけてもいいし非通知でも何時でも出るよ。
プロフィーリングの中の写真だって…個人的な伝言ボックスじゃなかったら裸の写真なんて載せたりしません。今日会いたいから、そのために頑張ったの…今日は私、そういうつもりで会いたいって思ってるよ。
http://fe-ll-in.com/mp/lavoxから受け取れる伝言にちゃんと載せたから近くに来たら電話ください。会いたいよ…

--- End Message ---
--- Begin Message ---
ルックスが悪いわけじゃない。仕事を頑張りたいだけが理由じゃない。
「だったらなぜ?」それは当然の疑問です。リサーチの結果これほど性的に飢えた人種はいないという事実が発覚し分離改装となりました。
今回のご案内はこちらです!

   ■□■ 完全無料制・独身貴族攻略大全集 ■□■
    家庭を持つ安定 < 独身の自由な性生活
   http://fochun.com/kouryaku/4/

1・コミニティーとして使用するも良し・出会いのキッカケとして使用するも良し

2・独身貴族攻略大全集の名の下に集まった女性のみが参加。確実さは一目瞭然!独身だから電話だって何時でもOKよ。

3・全システム完全無料で利用できるので安心の中で近所の○○○○とコミュニケート出来る。


等の利点を兼ね備えてまったく新しいコミュニティとして分離改装いたしました!
リニューアル記念として、簡単に取得できるフリーメールアドレス(yahoo・goo・hotmail)等での参加も可能となっておりますのでぜひこの機会にお試しくださいませ!

   http://fochun.com/kouryaku/4/

--- End Message ---
--- Begin Message ---
dollop absolution monogamy gallop jog 
heuristic stifle cove injudicious stab togs equitable averse 
concord brazzaville punish deed detroit 

--- End Message ---
--- Begin Message --- I'm having a little problem assigning a value to an array which has a key. It's simple, I just don't know what I'm doing wrong.

               foreach($Checkout as $value)
              {
$products[] = $value['productName'] -> $value['actualValue'];
               }

HELP!
--- End Message ---
--- Begin Message --- Oh yeah, the problem isn't that I'm using -> instead of =>. Well that was a problem but I fixed that and it's still not working.

- Dan

""Dan"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
I'm having a little problem assigning a value to an array which has a key. It's simple, I just don't know what I'm doing wrong.

               foreach($Checkout as $value)
              {
$products[] = $value['productName'] -> $value['actualValue'];
               }

HELP!

--- End Message ---
--- Begin Message --- Oh yeah, the problem isn't that I'm using -> instead of =>. Well that was a problem but I fixed that and it's still not working.

- Dan

""Dan"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
I'm having a little problem assigning a value to an array which has a key. It's simple, I just don't know what I'm doing wrong.

               foreach($Checkout as $value)
              {
$products[] = $value['productName'] -> $value['actualValue'];
               }

HELP!

--- End Message ---
--- Begin Message ---
Dan wrote:
Oh yeah, the problem isn't that I'm using -> instead of =>. Well that was a problem but I fixed that and it's still not working.

- Dan

""Dan"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]

I'm having a little problem assigning a value to an array which has a key. It's simple, I just don't know what I'm doing wrong.

               foreach($Checkout as $value)
              {
$products[] = $value['productName'] -> $value['actualValue'];
               }


Please don't top-post.

This is a bit confusing. I'm guessing you want the $products array to use keys as the value of $value['productName']. If that's the case, you want:

$products[$value['productName']] = $value['actualValue'];

So, if $value looked like this in a foreach iteration:

$value = Array('productName' => 'foo', 'actualValue' => 'bar')

you'd have:

$products['foo'] == 'bar';

Is that what you're looking for?

brian

--- End Message ---
--- Begin Message ---
Okay, now I see why the O.P. wanted a filter... ;-p 

> -----Original Message-----
> From: Ryan A [mailto:[EMAIL PROTECTED] 
>
> No fucking cats! Kill all of them...keep only dogs and whales 
> (to protect them)
> The only cat I like is a pussy.....

--- End Message ---
--- Begin Message ---
Write good rules, get good mods.

On 7/9/07, Daevid Vincent <[EMAIL PROTECTED]> wrote:
Okay, now I see why the O.P. wanted a filter... ;-p

> -----Original Message-----
> From: Ryan A [mailto:[EMAIL PROTECTED]
>
> No fucking cats! Kill all of them...keep only dogs and whales
> (to protect them)
> The only cat I like is a pussy.....

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



--- End Message ---
--- Begin Message ---
Daniel Novotny wrote:
Hello,
I am running PHP 5.2.0 on a RHEL4 server with FTP and OpenSSL enabled: ftp
FTP support => enabled
openssl
OpenSSL support => enabled
OpenSSL Version => OpenSSL 0.9.7a Feb 19 2003
I am aware of the issue of ftp_ssl_connect() silently failing to
ftp_connect() in my version of PHP; however, I am curious if there is a way
to tell why the initial ftp_ssl_connect() failed in the first place. I am
currently utilizing cURL in my program as a stand-in until I can get this
figured out, so I can tell you that this is truly a FTP over SSL and NOT a
SFTP (ssh) scenario. I can verify that the initial ftp_ssl_connect() failed
because the server I am connecting to has two different username/password
for secure and non-secure FTP connections. When I try and issue a
ftp_login(), I get "User secure_user cannot log in", telling me that the
function has indeed fell back to the non SSL function. I have also done TCP
dumps to back up this idea. They confirm that communication takes place on
the standard FTP port, not the 990 port. Please let me know if you need any
more additional info in order to help me get this mystery solved.

Is it a proper ssl certificate (ie purchased through thawte or some other site) or a dummy one that someone made up?

Can you manually telnet to the secure ftp port or does that fail? (ie check that the firewall isn't blocking the connection).

--
Postgresql & php tutorials
http://www.designmagick.com/

--- End Message ---
--- Begin Message --- We used to use php 4 on our web server on win2000, and use the system() to call some DOS programs. That how we call it:

    $cmd = "c:\\Inetpub\\wwwroot\\test.exe";
        $last_line = system($cmd, $retval);
        print ("<br>\nretval =\"". $retval. "\"<br>\n");

It was working perfectly for years.

However, recently we moved to a win2003 server, and install the php 5.2.3, and now the system() no longer works as expected:

   1. It no longer work in the web, the only result returned
      to the web browser is "retval =-1";

   2. It still works if tested in DOS commandline (use the
      command such as "php test.php");

   3. Even change the $cmd to "type test.txt" or "dir", the
      result is the same: works in DOS prompt window, but
      not web browser (received only "retval =-1").

I have checked the permissions on all those files/folders, even tried giving read/execute permission to "everyone", still no help.

In our configuation, the safe mode is off.

Any clue? Thanks in advance.

Xiaogang

--- End Message ---
--- Begin Message ---
Do you know the cause of this error?
I'm trying to run it on 64bit Fedora 7. I have AMD64 and JRE 1.6.0_02 64bit
is installed.
Do you know how to fix the following error? if yes how?

******************************************************************************************************
JVM terminated. Exit code=13
/usr/java/jre1.6.0_02/bin/java
-Xms40m
-Xmx256m
-jar
/home/kelvino/downloads/eclipse/plugins/org.eclipse.equinox.launcher_1.0.0.v20070516.jar
-os linux
-ws gtk
-arch x86
-showsplash
-launcher /home/kelvino/downloads/eclipse/eclipse
-name Eclipse
--launcher.library/home/kelvino/downloads/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.0.v20070516/eclipse_1017.so
-startup
/home/kelvino/downloads/eclipse/plugins/org.eclipse.equinox.launcher_1.0.0.v20070516.jar
-exitdata 158008
-clean
-data /tmp_workspace
-vm /usr/java/jre1.6.0_02/bin/java
-vmargs
-Xms40m
-Xmx256m
-jar
/home/kelvino/downloads/eclipse/plugins/org.eclipse.equinox.launcher_1.0.0.v20070516.jar


******************************************************************************************************

--- End Message ---

Reply via email to