php-general Digest 19 Jun 2009 08:15:12 -0000 Issue 6183

Topics (messages 294280 through 294304):

Re: about locale settings
        294280 by: Per Jessen
        294282 by: Daniel Brown

Re: aesthetic beauty in conception, execution
        294281 by: Skip Evans
        294290 by: Paul M Foster
        294292 by: Eddie Drapkin
        294298 by: Skip Evans

Re: isset question
        294283 by: Stuart
        294284 by: Steve
        294285 by: LAMP
        294286 by: Waynn Lue
        294289 by: Gary
        294293 by: LAMP
        294295 by: Martin Scotta
        294296 by: Yuri Yarlei
        294297 by: LAMP

Re: Multi-Sort -- how to do this?
        294287 by: tedd
        294288 by: Robert Cummings
        294294 by: Ashley Sheridan

need someone to bounce some thoughts with for a project!
        294291 by: bruce

sessions tutorial
        294299 by: PJ

Calendar
        294300 by: salmarayan
        294302 by: Daniel Brown

PHP 5.3.0RC4
        294301 by: Johannes Schlüter

Why does simpleXML give me nested objects for blank tags?
        294303 by: Daevid Vincent

Mastercard Securecode
        294304 by: Ian

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 ---
Daniel Brown wrote:

> On Tue, Jun 16, 2009 at 15:33, Per Jessen<[email protected]> wrote:
>>
>> Environment
>>
>> Variable => Value
>> LC_ALL => de_DE.utf8
>>
>> Is that what you were after?
> 
>     Sure is.  Unfortunately, that means it's not an environment-import
> issue as I had originally suspected.  I'll take a look on one of my
> servers and see if I can help you debug the problem in just a few
> minutes.
> 

Now Dan, I hate to be a pest, but them minutes of yours seem to be
running a teeny bit slow? :-)


/Per


-- 
Per Jessen, Zürich (25.9°C)


--- End Message ---
--- Begin Message ---
On Thu, Jun 18, 2009 at 14:52, Per Jessen<[email protected]> wrote:
>
> Now Dan, I hate to be a pest, but them minutes of yours seem to be
> running a teeny bit slow? :-)

    It's the .... uhh.... time difference between Zurich and
Scranton...?  [*blushes*]

    Sorry about that.  Let me finish this one final task and I'll take
a look at it.  Toss me a message off-list with a way to chat with you
(Google, MSN, AIM, Skype, whatever) as well, and we can hash it out
quicker.

-- 
</Daniel P. Brown>
[email protected] || [email protected]
http://www.parasane.net/ || http://www.pilotpig.net/
50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW10000

--- End Message ---
--- Begin Message ---
Okay, had to chime in here...

Jesus Christ, Vampire Hunter

See the trailer here

http://www.youtube.com/watch?v=4LRIypcaIX4

Skip

Bastien Koert wrote:
On Thu, Jun 18, 2009 at 1:34 PM, tedd<[email protected]> wrote:
At 1:16 PM -0400 6/18/09, Paul M Foster wrote:
On Thu, Jun 18, 2009 at 12:39:35PM -0400, PJ wrote:

<snip>

 American movies, for the most part and what goes with them, are
 pollution of the senses. My take, of course. ;-) :-P
Clear proof you are insane. The Matrix. Alien. Terminator. Star Wars.
Star Trek II: The Wrath of Khan. Cannibal Women in the Avacado Jungle of
Death.
And don't forget my favorite "Queen of Outer Space" staring Zsa Zsa Gabore
and a bunch of her friends -- real camp.

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




Jane Fonda as Barbarella remains a cult classic though ;-P

--
====================================
Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://bigskypenguin.com
------------------------------------
Those of you who believe in
telekinesis, raise my hand.
 -- Kurt Vonnegut

--- End Message ---
--- Begin Message ---
On Thu, Jun 18, 2009 at 01:58:26PM -0500, Skip Evans wrote:

> Okay, had to chime in here...
>
> Jesus Christ, Vampire Hunter
>
> See the trailer here
>
> http://www.youtube.com/watch?v=4LRIypcaIX4
>

Ohmygosh! That's a *real* movie! Doubtless in the fine tradition of "The
Toxic Avenger", but with an even lower budget. Priceless! ;-}

Paul

-- 
Paul M. Foster

--- End Message ---
--- Begin Message ---
It's the greatest movie I've ever seen.  Canadians, Jesus, vampires
and lesbians, what hte hell else could you ask for in a film?

On Thu, Jun 18, 2009 at 3:50 PM, Paul M Foster<[email protected]> wrote:
> On Thu, Jun 18, 2009 at 01:58:26PM -0500, Skip Evans wrote:
>
>> Okay, had to chime in here...
>>
>> Jesus Christ, Vampire Hunter
>>
>> See the trailer here
>>
>> http://www.youtube.com/watch?v=4LRIypcaIX4
>>
>
> Ohmygosh! That's a *real* movie! Doubtless in the fine tradition of "The
> Toxic Avenger", but with an even lower budget. Priceless! ;-}
>
> Paul
>
> --
> Paul M. Foster
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message --- I have to to cite one more, but that is actually quite funny and a fun watch, and not only because my nephew plays the FBI agent who gets his face blown off...

...Blood Car...!

The plot is great. In the not too distant future, like next week I think it says in the opening, gas is about $75 per gallon so no one drives, but this lofty vegan guy is working on a system that will run his car on wheat juice or some other harmless plant gunk.

But then things spin wildly out of control when he discovers his apparatus actually makes his car run on..... BLOOD!!!!

Pretty funny stuff.

Plus it was fun watching my nephew's face get blown off... he can be a little jerk some times.

Skip

PS. Just kidding about my nephew... he's a cool kid.

Paul M Foster wrote:
On Thu, Jun 18, 2009 at 01:58:26PM -0500, Skip Evans wrote:

Okay, had to chime in here...

Jesus Christ, Vampire Hunter

See the trailer here

http://www.youtube.com/watch?v=4LRIypcaIX4


Ohmygosh! That's a *real* movie! Doubtless in the fine tradition of "The
Toxic Avenger", but with an even lower budget. Priceless! ;-}

Paul


--
====================================
Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://bigskypenguin.com
------------------------------------
Those of you who believe in
telekinesis, raise my hand.
 -- Kurt Vonnegut

--- End Message ---
--- Begin Message ---
2009/6/18 Gary <[email protected]>:
> I have a form that gives the submitter a choice or either one set of
> questions, or another. I am still getting the message even if the input was
> left blank.  So on the line below,
>
> $msg.=  isset($_POST['mort']) ? "The mortgage amount is  $mort\n" : " ";
>
> I get
>
> The mortgage amount is
>
> What am I missing here?

A variable "isset" even if it's empty. Either compare it to an empty
string or test the result from strlen against 0.

-Stuart

-- 
http://stut.net/

--- End Message ---
--- Begin Message --- Use !empty($_POST['mort']) instead of isset() for form input since the form will still set an empty value if left blank.

Gary wrote:
I have a form that gives the submitter a choice or either one set of questions, or another. I am still getting the message even if the input was left blank. So on the line below,

$msg.=  isset($_POST['mort']) ? "The mortgage amount is  $mort\n" : " ";

I get

The mortgage amount is

What am I missing here?

Thanks

Gary


------------------------------------------------------------------------


No virus found in this incoming message.
Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.78/2185 - Release Date: 06/18/09 05:53:00


--- End Message ---
--- Begin Message ---
Steve wrote:
Use !empty($_POST['mort']) instead of isset() for form input since the form will still set an empty value if left blank.

Gary wrote:
I have a form that gives the submitter a choice or either one set of questions, or another. I am still getting the message even if the input was left blank. So on the line below,

$msg.=  isset($_POST['mort']) ? "The mortgage amount is  $mort\n" : " ";

I get

The mortgage amount is

What am I missing here?

Thanks

Gary


------------------------------------------------------------------------


No virus found in this incoming message.
Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.78/2185 - Release Date: 06/18/09 05:53:00


using !empty() instead isset() will work if you don't care for PHP Notice: Undefined variable... If you want to avoid PHP Notice you have to use both:

$msg.= (isset($_POST['mort']) and !empty($_POST['mort'])) ? "The mortgage amount is $mort\n" : " ";


afan

--- End Message ---
--- Begin Message ---
I notice that you're checking $_POST['mort'] but you're echoing $mort,
is that your actual code?

On 6/18/09, Gary <[email protected]> wrote:
> I have a form that gives the submitter a choice or either one set of
> questions, or another. I am still getting the message even if the input was
> left blank.  So on the line below,
>
> $msg.=  isset($_POST['mort']) ? "The mortgage amount is  $mort\n" : " ";
>
> I get
>
> The mortgage amount is
>
> What am I missing here?
>
> Thanks
>
> Gary
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
This is what I have now and it works. I do know that on the second line I 
have $_POST['mort']}\n" : " "; in the second half. I'm not sure I understand 
the comment about use the !empty if you dont care about PHP.

But this is working, and unless someone sees a problem with it, I will leave 
it as is.

Thank you to everyone for helping.

Gary


$msg.=  !empty($_POST['purchprice']) ? "If this information is completed, it 
is a new purchase.\n The Purchase Price is  $purchprice\n" : " ";
$msg.=  !empty($_POST['mort']) ? "The mortgage amount is 
{$_POST['mort']}\n" : " ";
$msg.=  !empty($_POST['howlong']) ? "The sellers have owned the property for 
$howlong\n\n\n" : " ";

$msg.=  !empty($_POST['mortgage']) ? "If this information is completed, it 
is a refinance.\nThe mortgage amount  is  $mortgage\n" : " ";
$msg.=  !empty($_POST['purdate']) ? "The property was originally purchased 
on  $purdate\n" : " ";
$msg.=  !empty($_POST['datefin']) ? "The property was last financed 
$datefin\n" : " ";


""Gary"" <[email protected]> wrote in message 
news:[email protected]...
>I have a form that gives the submitter a choice or either one set of 
>questions, or another. I am still getting the message even if the input was 
>left blank.  So on the line below,
>
> $msg.=  isset($_POST['mort']) ? "The mortgage amount is  $mort\n" : " ";
>
> I get
>
> The mortgage amount is
>
> What am I missing here?
>
> Thanks
>
> Gary
> 



--- End Message ---
--- Begin Message ---
Gary wrote:
This is what I have now and it works. I do know that on the second line I have $_POST['mort']}\n" : " "; in the second half. I'm not sure I understand the comment about use the !empty if you dont care about PHP.
" if you don't care about PHP Notice... "

eror_reporting:
http://us.php.net/manual/en/function.error-reporting.php
http://us.php.net/manual/en/errorfunc.constants.php#errorfunc.constants.errorlevels.e-notice

put error_reporting(E_ALL) on the begining of you page you will get errors, warnings and notices - if any. errors and warnings stop the execution of the code. notice not. notices are usually about not defined variables before you started to use them.

if you put error_reporting(E_ALL ^ E_NOTICE) it will not bother you. but I like to do everything "correctly". :-)

afan



But this is working, and unless someone sees a problem with it, I will leave it as is.

Thank you to everyone for helping.

Gary


$msg.= !empty($_POST['purchprice']) ? "If this information is completed, it is a new purchase.\n The Purchase Price is $purchprice\n" : " "; $msg.= !empty($_POST['mort']) ? "The mortgage amount is {$_POST['mort']}\n" : " "; $msg.= !empty($_POST['howlong']) ? "The sellers have owned the property for $howlong\n\n\n" : " ";

$msg.= !empty($_POST['mortgage']) ? "If this information is completed, it is a refinance.\nThe mortgage amount is $mortgage\n" : " "; $msg.= !empty($_POST['purdate']) ? "The property was originally purchased on $purdate\n" : " "; $msg.= !empty($_POST['datefin']) ? "The property was last financed $datefin\n" : " ";


""Gary"" <[email protected]> wrote in message news:[email protected]...
I have a form that gives the submitter a choice or either one set of questions, or another. I am still getting the message even if the input was left blank. So on the line below,

$msg.=  isset($_POST['mort']) ? "The mortgage amount is  $mort\n" : " ";

I get

The mortgage amount is

What am I missing here?

Thanks

Gary






--- End Message ---
--- Begin Message ---
error_reporting( E_ALL | E_STRICT );

if you want to be extremely sure about your app (only in develop)

On Thu, Jun 18, 2009 at 5:04 PM, LAMP <[email protected]> wrote:

> Gary wrote:
>
>> This is what I have now and it works. I do know that on the second line I
>> have $_POST['mort']}\n" : " "; in the second half. I'm not sure I understand
>> the comment about use the !empty if you dont care about PHP.
>>
>>
> " if you don't care about PHP Notice... "
>
> eror_reporting:
> http://us.php.net/manual/en/function.error-reporting.php
>
> http://us.php.net/manual/en/errorfunc.constants.php#errorfunc.constants.errorlevels.e-notice
>
> put error_reporting(E_ALL) on the begining of you page you will get errors,
> warnings and notices - if any.
> errors and warnings stop the execution of the code. notice not. notices are
> usually about not defined variables before you started to use them.
>
> if you put error_reporting(E_ALL ^ E_NOTICE) it will not bother you. but I
> like to do everything "correctly". :-)
>
> afan
>
>
>
>
>  But this is working, and unless someone sees a problem with it, I will
>> leave it as is.
>>
>> Thank you to everyone for helping.
>>
>> Gary
>>
>>
>> $msg.=  !empty($_POST['purchprice']) ? "If this information is completed,
>> it is a new purchase.\n The Purchase Price is  $purchprice\n" : " ";
>> $msg.=  !empty($_POST['mort']) ? "The mortgage amount is
>> {$_POST['mort']}\n" : " ";
>> $msg.=  !empty($_POST['howlong']) ? "The sellers have owned the property
>> for $howlong\n\n\n" : " ";
>>
>> $msg.=  !empty($_POST['mortgage']) ? "If this information is completed, it
>> is a refinance.\nThe mortgage amount  is  $mortgage\n" : " ";
>> $msg.=  !empty($_POST['purdate']) ? "The property was originally purchased
>> on  $purdate\n" : " ";
>> $msg.=  !empty($_POST['datefin']) ? "The property was last financed
>> $datefin\n" : " ";
>>
>>
>> ""Gary"" <[email protected]> wrote in message
>> news:[email protected]...
>>
>>
>>> I have a form that gives the submitter a choice or either one set of
>>> questions, or another. I am still getting the message even if the input was
>>> left blank.  So on the line below,
>>>
>>> $msg.=  isset($_POST['mort']) ? "The mortgage amount is  $mort\n" : " ";
>>>
>>> I get
>>>
>>> The mortgage amount is
>>>
>>> What am I missing here?
>>>
>>> Thanks
>>>
>>> Gary
>>>
>>>
>>>
>>
>>
>>
>>
>>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Martin Scotta

--- End Message ---
--- Begin Message ---
The isset or empty, it's return a boolean (true 1, false 0), the isset will 
return true if the variable will have been initiated, the empty will return 
true if the variable is empty, but for that the variable need to be initiated. 
You can do it in a many ways, like:


$msg.= (isset($_POST['mort']) && !empty($_POST['mort']) ? "The mortgage amount 
is  $mort\n" : " ");

or

$msg.= ($_POST['mort'] == '' ? "The mortgage amount is  $mort\n" : " ");

or

$msg.= (strlen($_POST['mort']) > 0 ? "The mortgage amount is  $mort\n" : " ");



Yuri Yarlei.
Programmer PHP, CSS, Java, PostregreSQL;
Today PHP, tomorrow Java, after the world.
Kyou wa PHP, ashita wa Java, sono ato sekai desu.



> Date: Thu, 18 Jun 2009 20:07:09 +0100
> From: [email protected]
> To: [email protected]
> CC: [email protected]
> Subject: Re: [PHP] isset question
> 
> 2009/6/18 Gary <[email protected]>:
> > I have a form that gives the submitter a choice or either one set of
> > questions, or another. I am still getting the message even if the input was
> > left blank.  So on the line below,
> >
> > $msg.=  isset($_POST['mort']) ? "The mortgage amount is  $mort\n" : " ";
> >
> > I get
> >
> > The mortgage amount is
> >
> > What am I missing here?
> 
> A variable "isset" even if it's empty. Either compare it to an empty
> string or test the result from strlen against 0.
> 
> -Stuart
> 
> -- 
> http://stut.net/
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

_________________________________________________________________
Conheça os novos produtos Windows Live! Clique aqui.
http://www.windowslive.com.br

--- End Message ---
--- Begin Message ---
Martin Scotta wrote:
error_reporting( E_ALL | E_STRICT );

if you want to be extremely sure about your app (only in develop)
Actually, I use error_reporting(E_ALL) while developing
:-)

Afan



On Thu, Jun 18, 2009 at 5:04 PM, LAMP <[email protected] <mailto:[email protected]>> wrote:

    Gary wrote:

        This is what I have now and it works. I do know that on the
        second line I have $_POST['mort']}\n" : " "; in the second
        half. I'm not sure I understand the comment about use the
        !empty if you dont care about PHP.
    " if you don't care about PHP Notice... "

    eror_reporting:
    http://us.php.net/manual/en/function.error-reporting.php
    
http://us.php.net/manual/en/errorfunc.constants.php#errorfunc.constants.errorlevels.e-notice

    put error_reporting(E_ALL) on the begining of you page you will
    get errors, warnings and notices - if any.
    errors and warnings stop the execution of the code. notice not.
    notices are usually about not defined variables before you started
    to use them.

    if you put error_reporting(E_ALL ^ E_NOTICE) it will not bother
    you. but I like to do everything "correctly". :-)

    afan




        But this is working, and unless someone sees a problem with
        it, I will leave it as is.

        Thank you to everyone for helping.

        Gary


        $msg.=  !empty($_POST['purchprice']) ? "If this information is
        completed, it is a new purchase.\n The Purchase Price is
         $purchprice\n" : " ";
        $msg.=  !empty($_POST['mort']) ? "The mortgage amount is
        {$_POST['mort']}\n" : " ";
        $msg.=  !empty($_POST['howlong']) ? "The sellers have owned
        the property for $howlong\n\n\n" : " ";

        $msg.=  !empty($_POST['mortgage']) ? "If this information is
        completed, it is a refinance.\nThe mortgage amount  is
         $mortgage\n" : " ";
        $msg.=  !empty($_POST['purdate']) ? "The property was
        originally purchased on  $purdate\n" : " ";
        $msg.=  !empty($_POST['datefin']) ? "The property was last
        financed $datefin\n" : " ";


        ""Gary"" <[email protected] <mailto:[email protected]>> wrote in
        message news:[email protected]...
            I have a form that gives the submitter a choice or either
            one set of questions, or another. I am still getting the
            message even if the input was left blank.  So on the line
            below,

            $msg.=  isset($_POST['mort']) ? "The mortgage amount is
             $mort\n" : " ";

            I get

            The mortgage amount is

            What am I missing here?

            Thanks

            Gary






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




--
Martin Scotta


--- End Message ---
--- Begin Message ---
At 1:45 PM -0400 6/18/09, Robert Cummings wrote:
Thanks to Rob and Daniel for also playing, better luck next time. :-) <- note smiley -- I do appreciate your time.

Mine version retains key associations. It wasn't a complete waste of time.

Cheers,
Rob.

Rob:

Nothing you provide me is a complete waste of time -- see here:

http://www.webbytedd.com/bbbb/multisort-rob/

Many thanks for your code.

Cheers,

tedd

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

--- End Message ---
--- Begin Message ---
tedd wrote:
At 1:45 PM -0400 6/18/09, Robert Cummings wrote:
Thanks to Rob and Daniel for also playing, better luck next time. :-) <- note smiley -- I do appreciate your time.
Mine version retains key associations. It wasn't a complete waste of time.

Cheers,
Rob.

Rob:

Nothing you provide me is a complete waste of time -- see here:

http://www.webbytedd.com/bbbb/multisort-rob/

Many thanks for your code.

I meant to have a smiley at the end of it. I don't mind doing it, even thought he solution existed for multisort, thinking through the process is invaluable :)

Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP

--- End Message ---
--- Begin Message ---
On Thu, 2009-06-18 at 13:04 -0400, tedd wrote:
> >  > Ash:
> >>
> >>  You missed the point. I could use the built-in sort (i.e., sort() )
> >>  and sort the $d array. However, I would like the indexes of the other
> >>  arrays to match the new sort.
> >>
> >>  Cheers,
> >>
> >  > tedd
> >  >
> >I think I might need a for-instance here, as you lost me!
> >
> >Thanks
> >Ash
> 
> 
> Ash:
> 
> You can sort any array by using the "built-in" php function sort() -- try it.
> 
> After you try it, you'll find that the array is sorted but the order 
> of the values are not as they were before. In other words, the 
> index-value pairs are different. Here's an example:
> 
> http://www.webbytedd.com/bbbb/sort/
> 
> Before the sort, the value 'red' is located in the $a array under index 0
> 
> After the sort, the value 'red' is still in the $a array but under 
> index 2. Note, the values of the indexes have changed.
> 
> My query was simply how to sort one array (order it) while ordering 
> the values of other arrays in the same manner.
> 
> The multisort() function does that as seen here:
> 
> http://www.webbytedd.com/bbbb/multisort/
> 
> Cheers,
> 
> tedd
> 
> -- 
> -------
> http://sperling.com  http://ancientstones.com  http://earthstones.com
> 
I know about the sort() function, I just didn't fully understand the
question. I guess that's what late nights can do to ya!

Thanks
Ash
www.ashleysheridan.co.uk


--- End Message ---
--- Begin Message ---
hi list...

sorry to post here, but i figured you might be able to help...

i'm working on a project, that deals with building a crawler, and i'm
working out the details for the mgmt app for the crawler. i'm currently
looking at how to deal with the status/actions of the crawler, and how the
different components of what i call a job would be compiled, and reported
back to the batabase.

i'm wondering.. is there anyone on this list that i might be able to email
with, talk to about this.. while i've got a few ideas, never hurts to be
able to talk/share thoughts with others..

thanks much!

basically:
 my methodology is that i create a batchfile
  (the batchfile consists of the underlying apps that do the crawling)
 each batchfile can be run by multiple jobs (as required)
 i'm creating the piece of the mgmt app that will track/manage the jobs
 i'm lookin at being able to track the health of the 'jobs' as they run

 i'm considering the 'actions' as well as the 'status'

 i'm thinking of:
        disable/enable
        stop/restart
        waiting to start
        running
        complete/finished

 status might have things like:
        success/complete (no errs at all)
        complete/errs (ran through all the scripts, but some had errs)
        failed (didn't complete all the scripts)
        etc...


 i'm looking for someone i might be able to talk to, or exchange a few
ideas/emails with on this..

thanks much!


ps.. and yeah.. the web app is all in php!!!



--- End Message ---
--- Begin Message ---
Top of the list is for real dummies at tizag.com.
So I don't have to search 282,000 entries for php sessions tutorial
(doesn't this say something about the stupidity on the internet - just
how many of those entries could possibly be real and worth looking at?
Since you "gurus" (I kowtow) have been there, done that, I would
appreciate hearing of a tutorial that will give something more than "you
can use sessions in to store information"; like what kind of
information, just how is it used e.g. whatis this, where did it come
from, what does it mean? -- if (isset($_REQUEST["ReturnToBooksList"]))
and  if (!isset($_SESSION["addNewBooks"])) - in these examples it come
from inputs. They were not specifically declared or is this a
declaration by itself... how can I find this information so I can
understand how to use it?
I really don't want to bother you guys but do you see the futility here?
My little programs are advancing little by little, but boy is it a
struggle to get any information. I eventually dig it out but, frankly,
it might be more productive digging salt mines in the Urals. :-(
PJ "the bitcher"

-- 
Hervé Kempf: "Pour sauver la planète, sortez du capitalisme."
-------------------------------------------------------------
Phil Jourdan --- [email protected]
   http://www.ptahhotep.com
   http://www.chiccantine.com/andypantry.php


--- End Message ---
--- Begin Message ---
Does Any body please have the code of A Java Script Calendar that works with
a PHP Html  Form.. 
if yes can you please send it as i have one but does not work that
Efficiently.

Thanks in advance
-- 
View this message in context: 
http://www.nabble.com/Calendar-tp24099681p24099681.html
Sent from the PHP - General mailing list archive at Nabble.com.


--- End Message ---
--- Begin Message ---
On Thu, Jun 18, 2009 at 18:16, salmarayan<[email protected]> wrote:
>
> Does Any body please have the code of A Java Script Calendar that works with
> a PHP Html  Form..

    No.

> if yes can you please send it as i have one but does not work that
> Efficiently.

    No.

-- 
</Daniel P. Brown>
[email protected] || [email protected]
http://www.parasane.net/ || http://www.pilotpig.net/
50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW10000

--- End Message ---
--- Begin Message ---
Hello!

we have packaged PHP 5.3.0RC4, which you can find here:
http://downloads.php.net/johannes/

Windows binaries are available here:
http://windows.php.net/qa/

This fourth release candidate focused on bug fixes and stability
improvements and we hope to only require minimal changes ahead
of the next release. Many, but not all,  of the new features are
already integrated in the official documentation on php.net.

We aim to release PHP 5.3.0 next week. In case of critical issues we
will continue producing weekly RCs. For most users there will not be a
noticeable change meaning that now is the time to really do the final
testing of PHP 5.3.0 before it gets released with any unnecessary
incompatibilities with your project.

Some additional links to get started:
http://cvs.php.net/viewvc.cgi/php-src/NEWS?view=markup&pathrev=PHP_5_3
http://cvs.php.net/viewvc.cgi/php-src/UPGRADING?revision=PHP_5_3

Best Regards,
Lukas and Johannes
PHP 5.3 Release Managers


--- End Message ---
--- Begin Message ---
I'm trying to use
http://us2.php.net/manual/en/function.simplexml-load-string.php
 
$xml_url =
file_get_contents('http://myserver/cgi-bin/dart.cgi?request=c901c906e4d06a0d
4bd4e2932379d7c6');
try
{
 $xml = simplexml_load_string($xml_url, 'SimpleXMLElement', LIBXML_NOBLANKS
& LIBXML_COMPACT & LIBXML_NOEMPTYTAG);
 print_r( $xml);
}
catch (Exception $e)
{
 echo "bad xml";
}
 
If I have this XML file:
 
<issue>
<crstatus>i_field_submitted</crstatus>
<problem_number>151827</problem_number>
<problem_synopsis_field>title</problem_synopsis_field>
<problem_description_field>description2</problem_description_field>
<fi_priority>High</fi_priority>
<assignee/>
<create_time>5/12/2009 22:53:10</create_time>
<fi_notes_oem/>
<fi_sw_part_name>sw_part_name</fi_sw_part_name>
<fi_general_reference>general_reference</fi_general_reference>
<fi_sw_part_number>sw_part_num</fi_sw_part_number>
<fi_customer_ecd_date>1244703600</fi_customer_ecd_date>
<fi_sw_part_version>sw_part_version</fi_sw_part_version>
<fi_required_date>1243839600</fi_required_date>
<ac_type/>
</issue>
 
Why does it give me sub-objects and not just empty strings for tags that
have no values as I'd expect??!
I tried all those options above and none of them make a difference.
SimpleXMLElement Object

(

    [crstatus] => i_field_submitted

    [problem_number] => 151827

    [problem_synopsis_field] => title

    [problem_description_field] => description2

    [fi_priority] => High

    [assignee] => SimpleXMLElement Object

        (

        )



    [fi_notes_oem] => SimpleXMLElement Object

        (

        )



    [fi_sw_part_name] => sw_part_name

    [fi_general_reference] => general_reference

    [fi_sw_part_number] => sw_part_num

    [fi_customer_ecd_date] => 1244703600

    [fi_sw_part_version] => sw_part_version

    [fi_required_date] => 1243839600

    [ac_type] => SimpleXMLElement Object

        (

        )



)



--- End Message ---
--- Begin Message ---
Hi,

A search of google has been unsuccessfull so I am posting here in the hope 
someone 
can help.

We have recently been told that we must implement the Mastercard Securecode 
'feature' 
for all our Maesto transactions or face fines of up $25000 per month. Our 
merchant has 
provided a SDK which has APIs in C, COM or Java (specifically the "Arcot 
Transfort 
Merchant Software").

We previously moved away from a Java API into our merchant in favour of a pure 
PHP 
implementation using XML and would rather not take a step back again.


Is anyone aware of a pure PHP implementation of the Mastercard Securecode 
'feature'?


I am aware I can link into COM & Java from PHP, and even take the C API and 
make my 
own extension but I would rather not pursue these options unless I really have 
to!

Regards

Ian
-- 


--- End Message ---

Reply via email to