[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 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 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