php-general Digest 29 Sep 2011 12:17:23 -0000 Issue 7497
Topics (messages 315049 through 315060):
Re: Curl cost
315049 by: tamouse mailing lists
Re: using passthru or system() even and passing the $_FILES array
315050 by: tamouse mailing lists
book quest
315051 by: Kirk Bailey
315052 by: Bastien Koert
315053 by: Andy McKenzie
315054 by: Daniel Brown
315055 by: Christopher Lee
315057 by: Shawn McKenzie
315058 by: Jim Lucas
315059 by: Tommy Pham
315060 by: Nam Gi VU
Re: Sequential access of XML nodes.
315056 by: Ross McKay
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
On Wed, Sep 28, 2011 at 4:06 PM, tamouse mailing lists
<tamouse.li...@gmail.com> wrote:
> On Wed, Sep 28, 2011 at 3:28 AM, muad shibani <muad.shib...@gmail.com> wrote:
>> what are the costs of using PHP Curl to show another websites on my site as
>> stumbleon do ..
>> traffic, memory or what?
>
> If you use curl to suck the web page into a variable, could be
> tremendous. Better to curl it into a temporary file if you're going
> that way.
>
Just a followup -- if you want to show other websites on your own
page, a friendly way to do this is using an iframe:
<?php
$site="http://www.example.com";
?>
<h2><a href="<?php echo $site?>"><?php echo $site?></a></h2>
<iframe src="<?php echo $site?>" frameborder="0" title="<?php echo
$site?>" width="80%" height="200px"><span
style="color:red;font-weight:bold;">Your browser does not support
iframes</span></iframe>
That way, the site gets the hit, and you aren't copying anything. If
you do go this way, make sure to provide a break out so the user can
open the target site in a new window/tab.
--- End Message ---
--- Begin Message ---
On Wed, Sep 28, 2011 at 10:52 AM, Jim Lucas <li...@cmsws.com> wrote:
> On 9/28/2011 12:07 AM, Anton Heuschen wrote:
>> $command = '/usr/bin/php -f /var/www/details/Write.php '.$email.'
>> '.$actionDate.' '.$files.' >> php.log';
>> system($command,$return);
>
> At this point I would suggest that you echo $command before trying to execute
> it.
>
> I think you might find that you are trying to pass characters that the cli are
> miss interpreting.
OP: Look at http://us2.php.net/manual/en/function.escapeshellarg.php
and http://us2.php.net/manual/en/function.escapeshellcmd.php
--- End Message ---
--- Begin Message ---
The best book for a beginner? No, don't tell me php.net, I hear that
one already, and while it is indeed good, I want something in a dead
tree edition I can canny around and smoke as needed.
--
end
Very Truly yours,
- Kirk Bailey,
Largo Florida
kniht
+-----+
| BOX |
+-----+
think
--- End Message ---
--- Begin Message ---
On Wed, Sep 28, 2011 at 6:20 PM, Kirk Bailey <kbai...@howlermonkey.net> wrote:
> The best book for a beginner? No, don't tell me php.net, I hear that one
> already, and while it is indeed good, I want something in a dead tree
> edition I can canny around and smoke as needed.
>
> --
> end
>
> Very Truly yours,
> - Kirk Bailey,
> Largo Florida
>
> kniht
> +-----+
> | BOX |
> +-----+
> think
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
I had great success with Wrox PHP Programming and PHP Essentials by
Julie C. Meloni
The latter is dated, but was clearly written.
--
Bastien
Cat, the other other white meat
--- End Message ---
--- Begin Message ---
On Wed, Sep 28, 2011 at 6:20 PM, Kirk Bailey <kbai...@howlermonkey.net> wrote:
> The best book for a beginner? No, don't tell me php.net, I hear that one
> already, and while it is indeed good, I want something in a dead tree
> edition I can canny around and smoke as needed.
>
> --
> end
>
> Very Truly yours,
> - Kirk Bailey,
> Largo Florida
>
> kniht
> +-----+
> | BOX |
> +-----+
> think
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
I agree with Bastien -- I've had great luck with the PHP books.
"Beginning PHP4" has a permanent place on my shelf, even though PHP4
is outdated. "Beginning PHP5.3" hasn't quite supplanted it as a
concept book, but is my go-to for "here's a way to solve this
particular problem using a new version of PHP" book.
-Andy
--- End Message ---
--- Begin Message ---
On Wed, Sep 28, 2011 at 19:13, Andy McKenzie <amckenz...@gmail.com> wrote:
>
> I agree with Bastien -- I've had great luck with the PHP books.
> "Beginning PHP4" has a permanent place on my shelf, even though PHP4
> is outdated. "Beginning PHP5.3" hasn't quite supplanted it as a
> concept book, but is my go-to for "here's a way to solve this
> particular problem using a new version of PHP" book.
I'm still waiting for the day when folks on this list get together
and say, "let's put all of our notes together, as beginners and
intermediates, and put together a book for the newcomers, from the
newcomers, by the newcomers, who can relate to them without the taint
of overexperience."
If properly presented, it would not only be easy to shop to
publishers, but it could also be one of the first truly collaborative
publications to exist on biological remnants.
--
</Daniel P. Brown>
Network Infrastructure Manager
http://www.php.net/
--- End Message ---
--- Begin Message ---
I agree with Daniel. I would be willing to contribute to that type of
collaborative initiative.
Best,
Christopher Lee
-----Original Message-----
From: paras...@gmail.com [mailto:paras...@gmail.com] On Behalf Of Daniel Brown
Sent: Wednesday, September 28, 2011 7:24 PM
To: Andy McKenzie
Cc: php-gene...@lists.php.net
Subject: Re: [PHP] book quest
On Wed, Sep 28, 2011 at 19:13, Andy McKenzie <amckenz...@gmail.com> wrote:
>
> I agree with Bastien -- I've had great luck with the PHP books.
> "Beginning PHP4" has a permanent place on my shelf, even though PHP4
> is outdated. "Beginning PHP5.3" hasn't quite supplanted it as a
> concept book, but is my go-to for "here's a way to solve this
> particular problem using a new version of PHP" book.
I'm still waiting for the day when folks on this list get together and say,
"let's put all of our notes together, as beginners and intermediates, and put
together a book for the newcomers, from the newcomers, by the newcomers, who
can relate to them without the taint of overexperience."
If properly presented, it would not only be easy to shop to publishers, but
it could also be one of the first truly collaborative publications to exist on
biological remnants.
--
</Daniel P. Brown>
Network Infrastructure Manager
http://www.php.net/
--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php
This message is for the designated recipient only and may contain privileged,
proprietary, or otherwise private information. If you have received it in
error, please notify the sender immediately and delete the original. Any other
use of the email by you is prohibited.
--- End Message ---
--- Begin Message ---
On 09/28/2011 06:23 PM, Daniel Brown wrote:
> On Wed, Sep 28, 2011 at 19:13, Andy McKenzie <amckenz...@gmail.com> wrote:
>>
>> I agree with Bastien -- I've had great luck with the PHP books.
>> "Beginning PHP4" has a permanent place on my shelf, even though PHP4
>> is outdated. "Beginning PHP5.3" hasn't quite supplanted it as a
>> concept book, but is my go-to for "here's a way to solve this
>> particular problem using a new version of PHP" book.
>
> I'm still waiting for the day when folks on this list get together
> and say, "let's put all of our notes together, as beginners and
> intermediates, and put together a book for the newcomers, from the
> newcomers, by the newcomers, who can relate to them without the taint
> of overexperience."
>
> If properly presented, it would not only be easy to shop to
> publishers, but it could also be one of the first truly collaborative
> publications to exist on biological remnants.
>
Why are you waiting for the day Dan? Just do it!
--
Thanks!
-Shawn
http://www.spidean.com
--- End Message ---
--- Begin Message ---
On 9/28/2011 3:26 PM, Bastien Koert wrote:
> On Wed, Sep 28, 2011 at 6:20 PM, Kirk Bailey <kbai...@howlermonkey.net> wrote:
>> The best book for a beginner? No, don't tell me php.net, I hear that one
>> already, and while it is indeed good, I want something in a dead tree
>> edition I can canny around and smoke as needed.
>>
>> --
>> end
>>
>> Very Truly yours,
>> - Kirk Bailey,
>> Largo Florida
>>
>> kniht
>> +-----+
>> | BOX |
>> +-----+
>> think
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
> I had great success with Wrox PHP Programming and PHP Essentials by
> Julie C. Meloni
>
> The latter is dated, but was clearly written.
>
PHP Essentials (first edition) by Julie C. Meloni was the first book about PHP
that I ever bought. I did not find it very useful.
The second book was "Core PHP First Edition" by Leon Atkinson. It was more like
an encyclopedia/dictionary with some decent examples.
Around 2001 I started participating the general mailing list. I haven't bought
another book on PHP since. PHP.net manual, the php-general mailing list and the
wonderful members of this list, and Google have provided answers for all the
questions I have ever needed to ask since.
Jim Lucas
--- End Message ---
--- Begin Message ---
On Wed, Sep 28, 2011 at 5:29 PM, Jim Lucas <li...@cmsws.com> wrote:
> On 9/28/2011 3:26 PM, Bastien Koert wrote:
> > On Wed, Sep 28, 2011 at 6:20 PM, Kirk Bailey <kbai...@howlermonkey.net>
> wrote:
> >> The best book for a beginner? No, don't tell me php.net, I hear that
> one
> >> already, and while it is indeed good, I want something in a dead tree
> >> edition I can canny around and smoke as needed.
> >>
> >> --
> >> end
> >>
> >> Very Truly yours,
> >> - Kirk Bailey,
> >> Largo Florida
> >>
> >> kniht
> >> +-----+
> >> | BOX |
> >> +-----+
> >> think
> >>
> >>
> >> --
> >> PHP General Mailing List (http://www.php.net/)
> >> To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >>
> >
> > I had great success with Wrox PHP Programming and PHP Essentials by
> > Julie C. Meloni
> >
> > The latter is dated, but was clearly written.
> >
>
> PHP Essentials (first edition) by Julie C. Meloni was the first book about
> PHP
> that I ever bought. I did not find it very useful.
>
> The second book was "Core PHP First Edition" by Leon Atkinson. It was more
> like
> an encyclopedia/dictionary with some decent examples.
>
> Around 2001 I started participating the general mailing list. I haven't
> bought
> another book on PHP since. PHP.net manual, the php-general mailing list
> and the
> wonderful members of this list, and Google have provided answers for all
> the
> questions I have ever needed to ask since.
>
> Jim Lucas
>
>
>
Is there something wrong with the PHP.net manual? Or you just want
something physical to be able read any where and stay unplugged? If the
latter and there's nothing wrong with the official manual, try downloading
the chm or single html file and print as you go. No need to lug around
thick that manual/reference ;)
Regards,
Tommy
--- End Message ---
--- Begin Message ---
I'm a newbie in PHP technology and what I started with PHP was googling for
PHP + ~tutorial ~"getting started"
which results as this page
http://www.google.com.vn/search?aq=f&gcx=w&sourceid=chrome&ie=UTF-8&q=PHP+%2B+~tutorial+~%22getting+started%22
>From that list, I can have almost all kind of beginner stuff for a newbie
^_^
Regards,
Nam
On Thu, Sep 29, 2011 at 5:20 AM, Kirk Bailey <kbai...@howlermonkey.net>wrote:
> The best book for a beginner? No, don't tell me php.net, I hear that one
> already, and while it is indeed good, I want something in a dead tree
> edition I can canny around and smoke as needed.
>
> --
> end
>
> Very Truly yours,
> - Kirk Bailey,
> Largo Florida
>
> kniht
> +-----+
> | BOX |
> +-----+
> think
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Nam
--- End Message ---
--- Begin Message ---
Richard Quadling wrote:
>It seems that the SimpleXMLIterator is perfect for me.
>[...]
Interesting, I forget that's there... I must have a play with it
sometime. Thanks for resurfacing it :)
--
Ross McKay, Toronto, NSW Australia
"Let the laddie play wi the knife - he'll learn"
- The Wee Book of Calvin
--- End Message ---