[PHP] Still not working: PHP4 running on server, but not on dev box (SuSE 9.2)

2005-04-08 Thread Whil Hentzen
Hi folks, Been through the suggestions offered here, have compared the config files on my development box and my server, and I'm still stuck. To recap, I set up SuSE 9.2 with Apache 2 and PHP 4.3.8 on a server and it's running fine. When I installed, I included Apache and PHP from the very

[PHP] PHP config issues when moving from Fedora to SuSe

2005-04-05 Thread Whil Hentzen
Hi folks, I've done a bit of work with PHP/MySQL on a Fedora Core server over the past few months and just about the time I got comfortable, it was time to change the server to SuSE. What a delight! Installed Apache 2, PHP and MySQL and I was processing pages within minutes. So now I switched

Re: [PHP] Re: PHP config issues when moving from Fedora to SuSe

2005-04-05 Thread Whil Hentzen
There's /etc/apache2/httpd.conf that basically just has a bunch of includes. Don't wanna touch that. There's /etc/apache2/default-server.conf that looks like it's where the action is. And there's a /etc/apache2/conf.d/php4.conf file that has specific php commands, such as IfModule

[PHP] Function declaration failing on return value

2004-10-04 Thread Whil Hentzen
Don't get too excited; this is an awfully lame newbie question. I'm trying out my first functions and can't get past some sort of stupid syntax mistake I'm making. I've cut the following snippet directly out of the online PHP manual and put it in a PH page, like so: html headtitleTest

Re: [PHP] Function declaration failing on return value

2004-10-04 Thread Whil Hentzen
On Monday 04 October 2004 16:43, Matthew Sims wrote: Don't get too excited; this is an awfully lame newbie question. Too late, I'm already excited. Sorry 'bout that. ?php function square($num) { return $num * $num; } echo square(4); // outputs '16'. ? br /body

Re: [PHP] Function declaration failing on return value

2004-10-04 Thread Whil Hentzen
On Monday 04 October 2004 17:00, Matthew Fonda wrote: Howdy, It seems to work just fine for me, perhaps you have a syntax error somewhere else, such as a missing ; or $ or {. Check and make you you have no typo's, it seems to work perfectly for me. I cut this directly out of the online

Re: [PHP] Conceptual ?: using 'multi-purpose' form for validation

2004-09-26 Thread Whil Hentzen
On Sunday 26 September 2004 04:35, Marek Kilimajer wrote: Whil Hentzen wrote: I can get a single form to call itself again if there's nothing fancy going on. This code will prompt the user for their mail if it doesn't already exist, and if the email does exist, provides some data out

[PHP] Conceptual ?: using 'multi-purpose' form for validation

2004-09-25 Thread Whil Hentzen
I can get a single form to call itself again if there's nothing fancy going on. This code will prompt the user for their mail if it doesn't already exist, and if the email does exist, provides some data out of database. ?php if ( !isset($_POST['email']) ): ? !-- No email, so prompt the user