Search found 65 matches

by programmermatt
Wed May 03, 2006 12:17 am
Forum: Site News
Topic: I don't use the forum search option because...
Replies: 18
Views: 32057

The forums running at area51.phpbb.com is a (relatively) stable version of Olympus. Play around with it a bit and you will see it is nothing like phpBB2.
by programmermatt
Tue May 02, 2006 10:37 pm
Forum: Site News
Topic: I don't use the forum search option because...
Replies: 18
Views: 32057

Everah wrote:The phpBB search feature is kinda limited. I am sure they will address this in Olympus (I hope they do anyway).
They haven't. Go to the Olympus Development Website, make a user account and check. Still sorted by Date, author, or etc instead of relevance.
by programmermatt
Tue May 02, 2006 8:59 pm
Forum: PHP - Code
Topic: Syntax Question
Replies: 2
Views: 538

Re: Syntax Question

I think you want:

Code: Select all

$query = "SELECT * FROM workshop WHERE type = 'Workshop' ORDER BY id  ASC LIMIT $offset, $rowsPerPage";
by programmermatt
Tue May 02, 2006 8:47 pm
Forum: PHP - Code
Topic: Beginner >>>EOD problem
Replies: 2
Views: 638

Re: Beginner >>>EOD problem

feyd | Please use , and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color] EOD must ...
by programmermatt
Sat Apr 22, 2006 5:20 pm
Forum: Installation and Configuration
Topic: Mod_Rewrite
Replies: 15
Views: 3782

You have it backwards, it is going to rewrite any request from 'domain.com/genre/whatever' to 'genre.php?g=whatever'
by programmermatt
Sat Apr 22, 2006 5:14 pm
Forum: PHP - Security
Topic: How secure is my user authentification concept
Replies: 4
Views: 2886

The basics will work, but they won't do much to keep someone who really wants to get in from getting in. Personally I think that IP and timeout functionality are a must for any authentication design (though it is a nice touch to add a 'remeber me' option that they can use when they are on a computer...
by programmermatt
Tue Apr 04, 2006 10:03 am
Forum: General Discussion
Topic: Coding Contest
Replies: 30
Views: 5859

Wow, now I feel dumb..

Code: Select all

function getFibanacci($n){
    if($n == 1 || $n == 2) return 1;
    return getFibanacci($n-1) + getFibanacci($n-2);
}
High values of $n will not work very well, but my calculator can't handle that either, so it is ok :)
by programmermatt
Tue Apr 04, 2006 9:42 am
Forum: Linux
Topic: Help me pick a distro.
Replies: 16
Views: 9368

I have been using Fedora Core since its first release, it is a really good distro and they just released FC5. It also has one of the larger community bases, so finding help won't be that difficult either.

Make sure you install apt-get for those questionable downloads like mp3 and dvd support :0
by programmermatt
Tue Apr 04, 2006 9:38 am
Forum: General Discussion
Topic: Coding Contest
Replies: 30
Views: 5859

There is actually an error in my code, it should be testing for $n==0 in addition to testing for $n==1. Anyway, I think that for a coding contest the challenge should be more difficult than a well known sequence (with a defined function) being implemented. I remember doing this when I first started ...
by programmermatt
Tue Apr 04, 2006 8:40 am
Forum: General Discussion
Topic: Coding Contest
Replies: 30
Views: 5859

Code: Select all

function getFibanacci($n){
    if($n == 1) return 1;
    return getFibanacci($n-1) + getFibanacci($n-2);
}
by programmermatt
Wed Nov 02, 2005 6:18 pm
Forum: Installation and Configuration
Topic: Run PHP4 *and* PHP5 on a single apache installation
Replies: 7
Views: 2226

AddHandler application/x-httpd-php4 .php AddHandler application/x-httpd-php5 .php5 In httpd.conf or, if your configuration allows, .htaccess will work. I have it run all scripts in php4, and if I need a php directory I just: .htaccess AddHandler application/x-httpd-php5 .php As it overwrites the ht...
by programmermatt
Wed Nov 02, 2005 5:10 pm
Forum: PHP - Code
Topic: Uploading Files
Replies: 6
Views: 784

Apache doesn't have permission to put the file in that directory apperently
by programmermatt
Wed Nov 02, 2005 4:13 pm
Forum: General Discussion
Topic: PHPDN Project
Replies: 18
Views: 3362

Best reference to my idea is http://codestriker.sourceforge.net/index.html, but that is just my CVS idea implemented, and it should be extensible.
by programmermatt
Wed Nov 02, 2005 7:20 am
Forum: General Discussion
Topic: PHPDN Project
Replies: 18
Views: 3362

You mean an interface like http://cvs.php.net/ ? Similar, but that doesn't allow one to submit patches to be reviewed and comitted upon review completion. That looks like viewCVS to me. I also think my idea could be extended into a developers website if it had support for roadmaps, discussion, API,...
by programmermatt
Wed Nov 02, 2005 7:10 am
Forum: Miscellaneous
Topic: inneficient c++ code
Replies: 4
Views: 1482

Might consider creating a vector of a struct of something like this:

Code: Select all

struct StudentGrades{
     char *studentName;
     vector<int> grades;
};
vector<StudentGrades> students;
Then you can interact with the variable 'students' for all your needs. (Allowing nearly unlimited records)