Re: [PHP] Re: functions versus includes

2007-11-14 Thread Frank Lopes
<> Stut, You pointed me in the right direction, thank you. "Stut" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Frank Lopes wrote: No takers on this topic? The question is not one of performance since while it will be quicker to call a function than include a file the diffe

Re: [PHP] Re: functions versus includes

2007-11-12 Thread Stut
Frank Lopes wrote: No takers on this topic? The question is not one of performance since while it will be quicker to call a function than include a file the difference is going to be inconsequential. If you were to use a function where would you put it? You imply it needs to be used from m

RE: [PHP] Re: functions versus includes

2007-11-11 Thread Bastien Koert
Wouldn't it be simpler to add some timers in and check for yourself? Bastien > To: php-general@lists.php.net> From: [EMAIL PROTECTED]> Date: Sun, 11 Nov 2007 18:02:58 -0500> Subject: [PHP] Re: functions versus includes>>

Re: [PHP] Re: functions versus includes

2007-11-11 Thread Nathan Nobbe
On Nov 11, 2007 6:02 PM, Frank Lopes <[EMAIL PROTECTED]> wrote: > No takers on this topic? > > > ""Frank Lopes"" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >I just started using PHP and got to think... > > > > Without getting into the discussion of "best practices", strictly f

[PHP] Re: functions versus includes

2007-11-11 Thread Frank Lopes
No takers on this topic? ""Frank Lopes"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I just started using PHP and got to think... Without getting into the discussion of "best practices", strictly from a performance perspective, what is faster: a function or an include? For

Re: [PHP] Re: Functions vs html outpuit

2006-09-03 Thread Larry Garfield
On Sunday 03 September 2006 09:00, Alex Turner wrote: > I would go for the optimize late philosophy. Once you have a site > running, load testing it with - eg - JMeter. If a PHP page is taking a > lot of the time and it could easily be converted to static HTML, do it > at that point. If you cod

Re: [PHP] Re: Functions vs html outpuit

2006-09-03 Thread Alex Turner
Dave Goodchild wrote: Thanks, that was what I needed to hear. Cheers. On 03/09/06, Ivo F.A.C. Fokkema <[EMAIL PROTECTED]> wrote: On Fri, 01 Sep 2006 16:44:19 +0200, M. Sokolewicz wrote: > Dave Goodchild wrote: >> Hi all, this may seem like a silly question, but I am creating a library of >> h

Re: [PHP] Re: Functions vs html outpuit

2006-09-03 Thread Dave Goodchild
Thanks, that was what I needed to hear. Cheers. On 03/09/06, Ivo F.A.C. Fokkema <[EMAIL PROTECTED]> wrote: On Fri, 01 Sep 2006 16:44:19 +0200, M. Sokolewicz wrote: > Dave Goodchild wrote: >> Hi all, this may seem like a silly question, but I am creating a library of >> html form element genera

[PHP] Re: Functions vs html outpuit

2006-09-03 Thread Ivo F.A.C. Fokkema
On Fri, 01 Sep 2006 16:44:19 +0200, M. Sokolewicz wrote: > Dave Goodchild wrote: >> Hi all, this may seem like a silly question, but I am creating a library of >> html form element generation function, for example a textarea fucntion that >> takes rows and cols as parameters, a function that gener

[PHP] Re: Functions vs html outpuit

2006-09-01 Thread M. Sokolewicz
Dave Goodchild wrote: Hi all, this may seem like a silly question, but I am creating a library of html form element generation function, for example a textarea fucntion that takes rows and cols as parameters, a function that generates a day, month and year select box, etc. My question is - is it

[PHP] Re: functions classes

2006-08-25 Thread Alex Turner
Bigmark, I have been involved in the evolution of the development process and architecture called functional normalization. I do intend to post some detail on this at funkifunctions.blogspot.com very soon. Anyhow, using this method might help you some what. The trick being to look through

[PHP] Re: functions classes

2006-08-25 Thread Mourad Boulahboub
Hi Bigmark, Bigmark schrieb am 25.08.2006 11:39: > Can anyone tell me if it is relatively an easy process for an experienced > coder (not me) to convert a php script to mainly functions/classes. > I have my own script that i would like to make more streamlined as it is > becoming very difficult to

[PHP] Re: Functions Returning large strings

2005-09-29 Thread zzapper
On Thu, 29 Sep 2005 11:48:10 +0200, wrote: >Hi >> I have a series of nested functions which recursively return a large string >> (as apposed >> to working on global string) , is this inefficient? Or is PHP clever enough >> to just pass a pointer? > >> $large_string=fn_one(fn_two(fn_three($some_l

[PHP] Re: Functions in replacement string of eregi_replace

2005-01-11 Thread M. Sokolewicz
Ville Mattila wrote: Hi there! I'm looking for a workaround to carry out a feature similar to that I could use any PHP function inside the replacement string in eregi_replace (or ereg_replace). I have a set of HTML code with some -headers. Now I should convert all HTML headers to uppercase stri

[PHP] Re: functions using other functions inside of classes?

2003-10-06 Thread Kirk Babb
I'm reading up on OO and PHP, so I'll retract the previous question until I can ask something better. Just ignore it. Thanks, Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: functions and

2003-03-03 Thread Monty
You can't call a PHP function directly from an HTML tag. You'll instead need to do something like this: Then create a logout.php file that has your logout code. > From: [EMAIL PROTECTED] (Martin Johansson) > Newsgroups: php.general > Date: Mon, 3 Mar 2003 23:32:16 +0100 > To: [EMAIL PROTEC

Re: [PHP] Re: functions and

2003-03-03 Thread Martin Johansson
it logs somone out of a session.. "Ray" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] does the function logout() log someone out of a session, or does it return the url for where they go to logout? and what about it isn't working? On Monday 03 March 2003 16:32, you wrote: > Ok t

Re: [PHP] Re: functions and

2003-03-03 Thread Leif K-Brooks
PHP is server-side, the PHP script has already executed by the time the client sees your output. Try having the logout link call a page that calls the function. Martin Johansson wrote: Ok to make it simplier, this is what I wanna do! echo "Logout"; function logout() { . } ?> How do I

Re: [PHP] Re: functions and

2003-03-03 Thread Ray
does the function logout() log someone out of a session, or does it return the url for where they go to logout? and what about it isn't working? On Monday 03 March 2003 16:32, you wrote: > Ok to make it simplier, this is what I wanna do! > > > echo "Logout"; > > function logout() > { > . >

[PHP] Re: functions and

2003-03-03 Thread Martin Johansson
Ok to make it simplier, this is what I wanna do! Logout"; function logout() { . } ?> How do I do it!!! /M > Hi > I want to call a function logout() inside an statement: > > \">logout > > function logout() > { > > } > ?> > > but this doesnt work.. how shall I do it > /M > > -- P

[PHP] Re: Functions list

2002-07-09 Thread Derick Rethans
Hello, César aracena wrote: > > I have the PHP manual in my PDA but its extraordinary large to search > for a function. Does anybody know a Functions list that I can download > for my PDA? I'm looking for something which shows the function and a > short description of what it works for. > > f

[PHP] Re: functions and scoping

2002-05-23 Thread David Huyck
The idea is to allow an application to be distributed easily without any reconfiguration. If it doesn't need any variables to tell it where it is in the directory structure, it won't matter where it is placed in someone else's application-- it will just work because of the relative includes. Fur

[PHP] Re: functions and scoping

2002-05-22 Thread Michael Virnstein
Why not simply define a set of variables for root dir and the other directories, and use full paths in your includes? $root = "/wwwroot/mydomain/public/"; $homepageroot = "/"; $mydir = "subdir/"; now you can do: include $rootpath.$mydir."inc.php"; and ">Link or ">Link Regards Michael "Dav

[PHP] Re: functions

2002-04-12 Thread Michael Virnstein
like you call every function in php. "Alia Mikati" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi > i would like now how can we call a function within another function in > php? > thx a lot > > -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: Functions

2002-02-13 Thread Jason Whitaker
Ok, thanks, both of you :) -- Jason Whitaker "Jason Whitaker" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... : Is there a website that lists all the default functions and variables? : : EI: $REMOTE_ADDR AND $PHP_SELF : : -- : : Jason Whitaker : : -- PHP Gen

[PHP] Re: functions and quotes

2001-08-22 Thread Gabe da Silveira
Well, just off the top of my head, you seem to be mostly storing data. None of the strings you are storing contain any variable values, so they don't need to be double quoted. I would even take it a step further, and move all your HTML data into raw text files, then use the readfile() functi