Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PHP/SQL forum

0 views
Skip to first unread message

Edo

unread,
Oct 24, 2006, 3:53:27 PM10/24/06
to
Hi !

I will try to program php/sql forum for the software engineering project at
University.
Can you tell me something useful about programming such thing as a forum, or
give me some tips how to start, design patterns, links, source codes,
books...? Anything will help...

Regards, Edo


Message has been deleted

pittendrigh

unread,
Oct 24, 2006, 5:22:46 PM10/24/06
to

Edo wrote:
> Hi !
>
> I will try to program php/sql forum for the software engineering project at
> University.

Go to phpclasses.org and study the sources for any one of several
small open source forums listed there.

Pedro Graca

unread,
Oct 25, 2006, 6:17:02 AM10/25/06
to

Use

error_reporting(E_ALL);
ini_set('display_errors', '1');

at the very top of *all* your scripts, right after the first <?php tag.
When the script produces no warnings or notices, you won't even need to
remove those lines :)

--
I (almost) never check the dodgeit address.
If you *really* need to mail me, use the address in the Reply-To
header with a message in *plain* *text* *without* *attachments*.

Jerry Stuckle

unread,
Oct 25, 2006, 6:51:20 AM10/25/06
to
Pedro Graca wrote:
> Edo wrote:
>
>>I will try to program php/sql forum for the software engineering project at
>>University.
>>Can you tell me something useful about programming such thing as a forum, or
>>give me some tips how to start, design patterns, links, source codes,
>>books...? Anything will help...
>
>
> Use
>
> error_reporting(E_ALL);
> ini_set('display_errors', '1');
>
> at the very top of *all* your scripts, right after the first <?php tag.
> When the script produces no warnings or notices, you won't even need to
> remove those lines :)
>

You should NEVER leave these lines in on a production server. Should
something untoward happen (i.e. database crash), the error messages can
easily expose information you don't wish to be public.

Additionally, I can always tell a sloppy programmer when I get default
messages like this. Good programmers detect and handle errors,
providing meaningful messages to users.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstu...@attglobal.net
==================

Willem Bogaerts

unread,
Oct 25, 2006, 7:19:48 AM10/25/06
to
>> error_reporting(E_ALL);
>> ini_set('display_errors', '1');


These lines will prevent the script from running in safe mode, so you'd
want to do this in the server config, not in your scripts.

0 new messages