FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Logic behind this?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Logic behind this? [message #171535 is a reply to message #171534] Sat, 08 January 2011 01:30 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 1/7/2011 7:54 PM, Denis McMahon wrote:
> On 07/01/11 21:22, Modafinil wrote:
>
>> Yep, wanting to send querystrings to included local PHP files was my
>> shortcut to calling included files' functions, and supplying them with
>> parameters. Thinking about it, that might be a tidier solution than
>> using parent script variables, that appear as globals in the included
>> script, as parameter containers. I can't guarantee that
>> REGISTER_GLOBALS will always be enabled, though it appears to be on
>> the server I'm using, and included file functions may be called more
>> than once. It seems you only get one shot at running code in the
>> global scope, when executing it by inclusion from a parent script.
>
> assuming the function "functionName" is declared in file "filename":
>
> <?php
> require_once (filename);
> $result = functionName(functionParams);
> ?>
>
> is how some php coders might do it, myself included.
>
> Jerry probably does it another way, because anything I'd do always seems
> to meet with his disapproval.
>
> Rgds
>
> Denis McMahon

Not at all. I do things according to good programming practices. This
is a good way of doing things.

I don't do things in a stoopid way - like you seem to do so often -
however. Which is why not only I, but any good programmer, will
disagree with you.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: the changeover to mysqli
Next Topic: [urgent] need solution of Questions, in context of PHP5
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 11:48:09 GMT 2024

Total time taken to generate the page: 0.04796 seconds