<>
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
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
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>>
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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()
> {
> .
>
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
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
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
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
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
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
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
26 matches
Mail list logo