Re: PHP for Dummies (Me being the dummy)



On Fri, 05 Aug 2005 09:01:08 -0700, rik wrote:

> Ken, you are a beautiful, beautiful man.

I don't know about that...

>
> I, am a stupid, stupid man.

Not so sure about that, either....

>
> Regards,
>
> Rick

I have one tip regarding sessions and PHP > 4.2 (maybe > 4.1 even)

Don't use "session_register()"! ONLY use $_SESSION to get data in and out
of sessions. session_register() is an evil function that needs black
voodoo magic incantations and the wind blowing in the right direction to
work (consistently, at least).

$_SESSION *always* works (well, as close to "always" as you can get when
talking about computer programming). And is *MUCH* more straightforward
than session_register().

Just a tip. Of course, you *do* have to remember to do session_start() on
each PHP page that is going to be "in session".

I also recommend putting all of your configuration information, including
the "session_start()" command, in an external file and calling that file
using include() or require() at the start of each page within the same PHP
application.

later...

--
JDS | jeffrey@xxxxxxxxxxxxxxx
| http://www.newtnotes.com
DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/

.



Relevant Pages

  • Re: Chimps And Their Control Of Their Vocalizations
    ... Mario Petrinovich wrote: ... it IS stupid to assume this behavior ... you have a beautiful table somewhere. ... > which tells that this table makes them vomit. ...
    (sci.anthropology.paleo)
  • Re: Text sizing for web pages
    ... Overriding that is just plain stupid and will drive users away. ... But this also has nothing to do with PHP. ... Make all the excuses you want. ...
    (alt.php)
  • Re: Chimps And Their Control Of Their Vocalizations
    ... > Mario Petrinovich: ... it IS stupid to assume this behavior ... you have a beautiful table somewhere. ... which tells that this table makes them vomit. ...
    (sci.anthropology.paleo)
  • Re: Yuav Niam Yau?
    ... study found that men lost judgment acuteness when they saw beautiful ... The conclusion is that men in general make stupid decisions while ... For example, car companies ... post beautiful women in showrooms to make sales because men go stupid ...
    (soc.culture.hmong)
  • Re: That darn apostrophe
    ... The solution was a php solution, not a Mysql one. ... He is totally stupid - and insists on arguing from his position of stupidity every chance he gets. ...
    (comp.lang.php)