[omahaphpusers] June handout posted

  • From: Mat Caughron <mat@xxxxxxxxxxxx>
  • To: <omahaphpusers@xxxxxxxxxxxxx>
  • Date: Fri, 6 Jun 2003 11:30:13 -0500 (CDT)

Hi Omaha PHP'ers:

At the meeting yesterday we welcomed PerlMonger Jay Hannah.

The June handout is now posted here:
        http://omaha.phpconsulting.com/

To address some of Jay's questions to the list, default variable scope is
global (even across includes and requires) meaning that it works for that
"hit".   Helpful scope examples here:
http://www.php.net/manual/en/language.variables.scope.php

For session-specific variable space, use the $_SESSION array after
initiating a session with session_start().

Here's the scoop on php documentation: to get details on a function, type
in a url http://php.net/functionname.  If the function  name exists, it
will give you the documentation for it, if not, it will redirect you to a
google lookup with your search term.  Appropriately, see:

        http://www.php.net/implode
        http://www.php.net/explode

At the end of the meeting we touched on a topic for next month, which will
be XML.  I am by no means an expert in this area, so would anyone else
want to write up a one-page handout that we can talk over?

See you next month,



Mat Caughron
PHP Consulting



On Fri, 6 Jun 2003, Jay Hannah wrote:
> r chakravarthula wrote:
> > A Test To See If You Write Sloppy Software
> >
> > http://www.phpbuilder.com/columns/perdue20030310.php3?print_mode=1
>
> I'm a tab bigot. Tabs bad. Spaces good.
>
> In this example:
>
> ----------------
> <?php
>
> function my_function () {
>     global $feedback;
>
>     //code
>     if ($error) {
>         $feedback .= 'Could Not Perform Operation XXX';
>         return false;
>     } else {
>         $feedback .= 'Operation XXX Successfully Performed';
>         return true;
>     }
> }
> ?>
> ----------------
>
> What is the scope of $feedback? Is it just global anywhere in any PHP
> code for this web hit, or is it persistant across a session?
>
> I assume PHP has a lot of fancy session management stuff? How do I store
> variables into the scope of a session if I want to?
>
> What do explode()/implode() do? How do I look up functions in a PHP
> environment on Linux? In Perl if I wanted to know what the function
> implode() did, I'd type "perldoc -f implode". Is there a PHP equivalent
> to that?
>
> How does job security fit into his 10 point rating system? -grin-
>
> Thanks from the newb,
>
> j
>
> Omaha Perl Mongers: http://omaha.pm.org
> My favorite IE error: http://www.homestarrunner.com/systemisdown.html
>
>


Other related posts: