Re: [PHP] How do you do the ? mark after a filename

2006-11-13 Thread Norbert Ehart

Thomas Bonham schrieb:

I keep seeing the ? mark after many file names index.php?id=234.

So what I would like to know is how do you make them. I have heard that 
they can make a programs life sampler when doing somethings with a 
database.


in my scripts, i do it with the switch-syntax

=== snip ===
switch($_GET['x'])
{
case show: include(show.php); break;
case search: include(search.php); break;
case new: include(add_entry.html); break;
default: include(show.php); break;
}
?
=== snip ===

now you can enter http://www.domain.at/index.php?x=search; or x=show;





cu,
 norbert.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] problem with php[4,5] (horde 2/3)

2006-11-10 Thread Norbert Ehart

hello,

i have some problem with horde, after my isp have upgraded php on my 
vps! i only get some error massages.



Notice: Only variable references should be returned by reference in 
/usr/share/horde3/lib/Horde/Perms.php on line 343


Notice: Only variable references should be returned by reference in 
/usr/share/horde3/lib/Horde/Auth.php on line 1193


Warning: Cannot modify header information - headers already sent by 
(output started at /usr/share/horde3/lib/Horde/Perms.php:343) in 
/usr/share/horde3/index.php on line 51



if anybody has an idee, please let me that know!




thanks,
   norbert.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php