Search found 590 matches

by Ree
Fri Oct 05, 2007 3:44 am
Forum: Databases
Topic: Connecting from command line fails
Replies: 2
Views: 309

I tracked the problem down to ntwdblib.dll. You must have the correct ntwdblib.dll not only in your system32 directory, but in the directory where your php.exe is present as well since CLI seems to check the latter one when using dlls.
by Ree
Fri Oct 05, 2007 3:06 am
Forum: Databases
Topic: Connecting from command line fails
Replies: 2
Views: 309

Connecting from command line fails

Hello, Here's a small test script I use to test connecting to an SQL Express server: $connection = @mssql_connect('.\SQLEXPRESS', 'sa', '123123123'); echo $connection === false ? 'Failure.' : 'Connected.'; The above script connects fine when running it via Apache, but it fails via CLI. I have no ide...
by Ree
Fri Jun 08, 2007 3:41 am
Forum: General Discussion
Topic: Best way to include mpg video
Replies: 7
Views: 1097

If you asked me (as an end-user) what video format I prefer on the web, I would say Flash. No extra plugins required, works in all browsers and you can be pretty sure most of your visitors will have it installed. So my suggestion would be convert any videos you have to Flash.
by Ree
Sun Apr 29, 2007 12:32 pm
Forum: PHP - Code
Topic: Acessing class constants dynamically
Replies: 17
Views: 3013

yes, your code looks kind of weird. It's not production code, it's just an example... You guys really amaze me. The problem is so simple and yet you make it look so complicated. I'm really trying to figure out what you're so confused about that it 'smells' or 'looks weird' to you. You don't seem to...
by Ree
Sun Apr 29, 2007 10:27 am
Forum: PHP - Code
Topic: Acessing class constants dynamically
Replies: 17
Views: 3013

Show us the code where you are using this "dynamic constant" and I guarantee you it can be rewritten without using such esoteric cack-handedness. It's not a dynamic constant at all... We're definately not getting each other. All right, one more example: <?php class Request { const GET = '...
by Ree
Sat Apr 28, 2007 12:42 pm
Forum: PHP - Code
Topic: Acessing class constants dynamically
Replies: 17
Views: 3013

You should never need to do this because constants are fixed name and value... If you expanded this statement and filled in the info related to the topic, it would look like this: You should never need to read class constants because constants are fixed name and value... :roll: if you are accessing...
by Ree
Sat Apr 28, 2007 11:00 am
Forum: PHP - Code
Topic: Acessing class constants dynamically
Replies: 17
Views: 3013

No, as a constant:

Code: Select all

class someClass
{
  const someConstant = 'constant';
}
by Ree
Sat Apr 28, 2007 5:02 am
Forum: PHP - Code
Topic: Acessing class constants dynamically
Replies: 17
Views: 3013

Acessing class constants dynamically

Everyone knows you can do this in PHP: $object = new Object(); $method = 'someMethod'; $object->$method(); //Object::someMethod() must be declared Now I thought something like this would work as well: $constant = 'someConstant'; $value = Object::$constant; //Object::someConstant must be declared But...
by Ree
Wed Apr 25, 2007 11:37 am
Forum: General Discussion
Topic: LCD Monitor
Replies: 8
Views: 2828

why you dislike them ?? What I know that it give low radiation , good portability and some other pros over usual screens Actually, I probably expressed myself a bit wrong. It's not that I dislike them as such - I simply find them not acceptable for me personally. It all depends on your needs. I'm s...
by Ree
Wed Apr 25, 2007 1:49 am
Forum: General Discussion
Topic: LCD Monitor
Replies: 8
Views: 2828

Since I dislike LCDs strongly, I won't recommend any of them. However, 17'' is just too small these days. Definately get 19'' or a bigger one.
by Ree
Tue Apr 24, 2007 12:41 pm
Forum: General Discussion
Topic: PHP Frameworks
Replies: 10
Views: 2367

Re: PHP Frameworks

So far, symfony looks to be the best. I happen to have the same opinion at this point. I have started a project with symfony and so far I am pretty happy with it. As a prominent example, (in symfony documentation), there are numerous references to the pagination class (which is pretty darn importan...
by Ree
Mon Apr 16, 2007 4:28 pm
Forum: General Discussion
Topic: Angry German Kid - Counter-Strike
Replies: 8
Views: 1095

I almost died from laughing.
by Ree
Tue Feb 20, 2007 2:29 am
Forum: General Discussion
Topic: The Ultimate Vista Change
Replies: 5
Views: 1449

I personally have vista installed at the moment, and have been pleasently suprised with Microsoft.. for once. 8) What is it that you are suprised about? Personally I don't see a single reason to take Vista over XP (besides DX10 and the inevitability factor). And you can't buy me with a 3d interface...
by Ree
Fri Feb 09, 2007 1:29 am
Forum: General Discussion
Topic: I opened a blog.
Replies: 13
Views: 1765

Your text is difficult to read (dark font on black background).
by Ree
Wed Feb 07, 2007 2:52 pm
Forum: General Discussion
Topic: Seeking an IDE with a certain function
Replies: 11
Views: 1588

I have tried PHP IDE with Eclipse. It's really nice, it just bothers me a bit that I have to use CTRL+SPACE too often to get the autocompletion list. But overall it's pretty good, especially compared to the version I remember from the past. I even noticed the bug I submitted long ago is indeed fixed...