Search found 590 matches
- Fri Oct 05, 2007 3:44 am
- Forum: Databases
- Topic: Connecting from command line fails
- Replies: 2
- Views: 390
- Fri Oct 05, 2007 3:06 am
- Forum: Databases
- Topic: Connecting from command line fails
- Replies: 2
- Views: 390
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...
- Fri Jun 08, 2007 3:41 am
- Forum: General Discussion
- Topic: Best way to include mpg video
- Replies: 7
- Views: 1193
- Sun Apr 29, 2007 12:32 pm
- Forum: PHP - Code
- Topic: Acessing class constants dynamically
- Replies: 17
- Views: 3222
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...
- Sun Apr 29, 2007 10:27 am
- Forum: PHP - Code
- Topic: Acessing class constants dynamically
- Replies: 17
- Views: 3222
- Sat Apr 28, 2007 12:42 pm
- Forum: PHP - Code
- Topic: Acessing class constants dynamically
- Replies: 17
- Views: 3222
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...
- Sat Apr 28, 2007 11:00 am
- Forum: PHP - Code
- Topic: Acessing class constants dynamically
- Replies: 17
- Views: 3222
No, as a constant:
Code: Select all
class someClass
{
const someConstant = 'constant';
}- Sat Apr 28, 2007 5:02 am
- Forum: PHP - Code
- Topic: Acessing class constants dynamically
- Replies: 17
- Views: 3222
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...
- Wed Apr 25, 2007 11:37 am
- Forum: General Discussion
- Topic: LCD Monitor
- Replies: 8
- Views: 2937
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...
- Wed Apr 25, 2007 1:49 am
- Forum: General Discussion
- Topic: LCD Monitor
- Replies: 8
- Views: 2937
- Tue Apr 24, 2007 12:41 pm
- Forum: General Discussion
- Topic: PHP Frameworks
- Replies: 10
- Views: 2618
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...
- Mon Apr 16, 2007 4:28 pm
- Forum: General Discussion
- Topic: Angry German Kid - Counter-Strike
- Replies: 8
- Views: 1183
- Tue Feb 20, 2007 2:29 am
- Forum: General Discussion
- Topic: The Ultimate Vista Change
- Replies: 5
- Views: 1542
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...
- Fri Feb 09, 2007 1:29 am
- Forum: General Discussion
- Topic: I opened a blog.
- Replies: 13
- Views: 1985
- Wed Feb 07, 2007 2:52 pm
- Forum: General Discussion
- Topic: Seeking an IDE with a certain function
- Replies: 11
- Views: 1695
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...