Search found 104 matches

by libeco
Sun Feb 19, 2012 10:54 am
Forum: PHP
Topic: still stuck on joins for blog system :(
Replies: 6
Views: 1198

Re: still stuck on joins for blog system :(

Why don't you use foreign key constraints? http://dev.mysql.com/doc/refman/5.5/en/ ... aints.html
by libeco
Sat Dec 31, 2011 2:15 pm
Forum: General Chat
Topic: Merry Christmas
Replies: 19
Views: 2993

Re: Merry Christmas

Practice, practice, practice...
by libeco
Sat Dec 17, 2011 5:28 pm
Forum: General Chat
Topic: I tried stuff...
Replies: 6
Views: 1163

Re: I tried stuff...

I don't find CI hard at all. But there's enough choice:
- Zend
- Kohana (originally started from CI I believe)
- FuelPHP (based on CI I believe)
- Yii
- Symfony
- Drupal (CMS, but does have a API for building upon)
- ModX (don't really know it, might be a CMS or a framework)
by libeco
Sat Dec 10, 2011 12:19 pm
Forum: Other
Topic: php books
Replies: 8
Views: 1821

Re: php books

Different people learn in different ways. I really like books to get the general concept of things, while others don't. During my study we've used this book: m (I'm not saying this is the best place to buy, just did a quick Google search). The main thing to understand though, is that you should prac...
by libeco
Wed Dec 07, 2011 7:23 pm
Forum: General Chat
Topic: What is the best way to earn money easy and fast?
Replies: 6
Views: 1232

Re: What is the best way to earn money easy and fast?

white04004 wrote:Hi guys!
I want to earn money from Internet fast and easy? Is there anyway to earn?

Rob a bank?
Sell cheap brides from Eastern Europe?
Send massive loads of spam?
Sell water from Lourdes?
by libeco
Sat Nov 12, 2011 3:03 pm
Forum: Other
Topic: Which PHP framework...?
Replies: 5
Views: 1509

Re: Which PHP framework...?

Not using the newest technology does not make a framework dated. A lot of shared hosting accounts still run 5.2 or earlier so always having your framework use the latest technology will not make it very popular.
by libeco
Tue Nov 08, 2011 8:12 pm
Forum: Other
Topic: Which PHP framework...?
Replies: 5
Views: 1509

Re: Which PHP framework...?

CodeIgniter dated? Explain...
by libeco
Sun Nov 06, 2011 10:24 am
Forum: General Chat
Topic: Dystopia short stories?
Replies: 5
Views: 1158

Re: Dystopia short stories?

Since you're already reading George Orwell's 1984, isn't animal farm another Orwell classic which is comparably weird?
by libeco
Tue Oct 18, 2011 7:42 pm
Forum: PHP
Topic: PHP Frameworks
Replies: 4
Views: 873

Re: PHP Frameworks

I'm using CodeIgniter for my work and I love it. It just makes everything just that little bit easier, without adding too much. Had a very quick look at Zend and CakePHP, but never really tried them.
by libeco
Sun Oct 16, 2011 10:59 am
Forum: General Chat
Topic: New logo?
Replies: 13
Views: 1991

Re: New logo?

I don't really like it. The font does not really convey any programming or technology and the < and > look more like those ribbons you see popping up everywhere in web design the past two years.
by libeco
Sat Oct 15, 2011 12:15 pm
Forum: Code
Topic: Month Number to Month Name Function
Replies: 4
Views: 2157

Re: Month Number to Month Name Function

Or:

Multi language:
[syntax=php]function get_month_name($month){
return strftime('%B', mktime(0, 0, 0, $month, 0, 0));
}[/syntax]

English
[syntax=php]function get_month_name($month){
return date('F', mktime(0, 0, 0, $month, 0, 0));
}[/syntax]
by libeco
Thu Oct 13, 2011 8:57 pm
Forum: PHP
Topic: === and ==
Replies: 5
Views: 858

Re: === and ==

Think about it this way: in the URL you have perhaps something like id=4. How will PHP know the type from that as it might aswell be id=e4. So it probably handles a get variable as a string.
by libeco
Thu Oct 13, 2011 7:22 pm
Forum: PHP
Topic: === and ==
Replies: 5
Views: 858

Re: === and ==

The === checks for type too. It's possible that either the get or the session variable contains string data, while the other contains an integer. If you know which one to expect you can use typecasting to compare them:
[syntax=php](int)$_SESSION['user_id'] === (int)$_GET['id'][/syntax]
by libeco
Thu Oct 13, 2011 6:12 pm
Forum: (X)HTML
Topic: Wikipedia link format ?
Replies: 5
Views: 10322

Re: Wikipedia link format ?

I believe this can be used when you don't care whether http or https is used.
by libeco
Thu Oct 13, 2011 6:11 pm
Forum: PHP
Topic: difference in these queries
Replies: 2
Views: 537

Re: difference in these queries

In this case there's no difference since every condition has to evaluate to TRUE. If you want to make more complex check you need to extra ( and ) to separate different parts of a statement. You can also use it to make it more readable for yourself: [syntax=php]if ((2 == 2 || 3 == 3) && (4 =...
by libeco
Tue Oct 04, 2011 8:21 pm
Forum: General Chat
Topic: Samsung is stupid!
Replies: 8
Views: 1459

Re: Samsung is stupid!

Nexus S, no problems at al, just loving Android!

And wifi tethering worked out of the box, never tried USB tethering though. I did hear with the latest update the S2 does not support the USB host anymore, making programs like the much commented on dSLR app pointless.
by libeco
Mon Sep 12, 2011 7:26 pm
Forum: General Chat
Topic: Server Move !
Replies: 35
Views: 4981

Re: Server Move !

I don't really notice any speed difference. It was fast and still is, with occasionally a slower request.
by libeco
Thu Sep 08, 2011 9:36 pm
Forum: PHP
Topic: How to do a Count-IF
Replies: 8
Views: 1338

Re: How to do a Count-IF

There's no such function, but it would be very easy to create. What have you tried so far? Where are the numbers stored? An array, a string?
by libeco
Mon Sep 05, 2011 2:10 pm
Forum: PHP
Topic: caption under images
Replies: 5
Views: 1196

Re: caption under images

Do you understand how functions work in PHP? You define a function by using the function keyword. Next you call it by using the function name and any possible parameters in between (). You can use the return keyword inside your function to return something, or an echo to echo something out immediate...
by libeco
Sun Sep 04, 2011 9:10 pm
Forum: PHP
Topic: caption under images
Replies: 5
Views: 1196

Re: caption under images

You're defining the function _applyCaption, but are not calling it. Also, you are adding to the string $new_caption, but you're not returning it.