Search found 104 matches
- Sun Feb 19, 2012 10:54 am
- Forum: PHP
- Topic: still stuck on joins for blog system :(
- Replies: 6
- Views: 1385
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
- Sat Dec 31, 2011 2:15 pm
- Forum: General Chat
- Topic: Merry Christmas
- Replies: 19
- Views: 4262
Re: Merry Christmas
Practice, practice, practice...
- Sat Dec 17, 2011 5:28 pm
- Forum: General Chat
- Topic: I tried stuff...
- Replies: 6
- Views: 1546
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)
- 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)
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: http://www.amazon.com/Spring-Into-PHP-Steven-Holzner/dp/0131498622 (I'm not saying this is the best place to buy, just did a quick Google sear...
- 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: 1537
Re: What is the best way to earn money easy and fast?
Rob a bank?white04004 wrote:Hi guys!
I want to earn money from Internet fast and easy? Is there anyway to earn?
Sell cheap brides from Eastern Europe?
Send massive loads of spam?
Sell water from Lourdes?
- Sat Nov 12, 2011 3:03 pm
- Forum: Other
- Topic: Which PHP framework...?
- Replies: 5
- Views: 1847
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.
- Tue Nov 08, 2011 8:12 pm
- Forum: Other
- Topic: Which PHP framework...?
- Replies: 5
- Views: 1847
Re: Which PHP framework...?
CodeIgniter dated? Explain...
- Sun Nov 06, 2011 10:24 am
- Forum: General Chat
- Topic: Dystopia short stories?
- Replies: 5
- Views: 1492
Re: Dystopia short stories?
Since you're already reading George Orwell's 1984, isn't animal farm another Orwell classic which is comparably weird?
- Tue Oct 18, 2011 7:42 pm
- Forum: PHP
- Topic: PHP Frameworks
- Replies: 4
- Views: 1114
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.
- Sun Oct 16, 2011 10:59 am
- Forum: General Chat
- Topic: New logo?
- Replies: 13
- Views: 2863
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.
- Sat Oct 15, 2011 12:15 pm
- Forum: Code
- Topic: Month Number to Month Name Function
- Replies: 4
- Views: 3412
Re: Month Number to Month Name Function
Or:
Multi language:
Multi language:
function get_month_name($month){ return strftime('%B', mktime(0, 0, 0, $month, 0, 0)); }English
function get_month_name($month){ return date('F', mktime(0, 0, 0, $month, 0, 0)); }
- Thu Oct 13, 2011 8:57 pm
- Forum: PHP
- Topic: === and ==
- Replies: 5
- Views: 1096
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.
- Thu Oct 13, 2011 7:22 pm
- Forum: PHP
- Topic: === and ==
- Replies: 5
- Views: 1096
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:
(int)$_SESSION['user_id'] === (int)$_GET['id']
- Thu Oct 13, 2011 6:12 pm
- Forum: (X)HTML
- Topic: Wikipedia link format ?
- Replies: 5
- Views: 23226
Re: Wikipedia link format ?
I believe this can be used when you don't care whether http or https is used.
- Thu Oct 13, 2011 6:11 pm
- Forum: PHP
- Topic: difference in these queries
- Replies: 2
- Views: 679
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: if ((2 == 2 || 3 == 3) && (4 == 4 || 5 == ...
- Tue Oct 04, 2011 8:21 pm
- Forum: General Chat
- Topic: Samsung is stupid!
- Replies: 8
- Views: 1775
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.
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.
- Mon Sep 12, 2011 7:26 pm
- Forum: General Chat
- Topic: Server Move !
- Replies: 35
- Views: 6107
Re: Server Move !
I don't really notice any speed difference. It was fast and still is, with occasionally a slower request.
- Sun Sep 11, 2011 9:23 am
- Forum: PHP
- Topic: Forum software - Store information in a database or file?
- Replies: 2
- Views: 847
Re: Forum software - Store information in a database or file
Database, any time!
- Thu Sep 08, 2011 9:36 pm
- Forum: PHP
- Topic: How to do a Count-IF
- Replies: 8
- Views: 1661
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?
- Mon Sep 05, 2011 2:10 pm
- Forum: PHP
- Topic: caption under images
- Replies: 5
- Views: 1520
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...
- Sun Sep 04, 2011 9:10 pm
- Forum: PHP
- Topic: caption under images
- Replies: 5
- Views: 1520
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.