Everything posted by Jack Ellis
-
So, what IDE/software do you use to code?
netbeans is gorgeous
-
Which one is best Joomla or Drupal
I'm using drupal until a kohana cms becomes available.
-
v3.. this is long *cms*
Slated for not using XHTML? I really do hope you're joking? How can someone possibly slate you for not using XHTML.
-
jQuery + Ajax problem
http://groups.google.com/group/jquery-en/browse_thread/thread/32d737242b2f9c9a?pli=1 http://www.google.co.uk/search?hl=en&safe=off&client=firefox-a&hs=I8f&rls=org.mozilla%3Aen-GB%3Aofficial&q=jquery+lightbox+livequery&aq=f&aqi=&aql=&oq=
-
Autofit table cells php com
By auto fit do you mean to stretch with screen?
-
jQuery Lavalamp Help Please!
Sort me a live example mate? Will probably be an easy fix but nobody's even going to bother helping without a live example. It's so much easier to firebug stuff.
-
Creating a 'hidden' page
Problem with that is people can just find the directory from his robots.txt
-
The best PHP Freamwork
a lot faster I don't like Doctrine as much as I like Kohana's ORM. And, I know you'll know the answer to this, shouldn't Doctrine follow some sort of factory pattern? My arguments for not using zend is that it's less of a framework and more of a collection of libraries. It's also WAY too feature rich for my needs and I refer to it as bloated. However, I accept the arguments that it has everything you would need
-
The best PHP Freamwork
I'm glad they've finally moved on "PHP 4 support is removed. CodeIgniter now requires PHP 5.1.6.". $this->load->library('whatever'); is what you have to do in CodeIgniter, that's just effort right? Every time you want to load a library. Cba to turn it into an argument. It took CodeIgniter ages to move to PHP5.
-
The best PHP Freamwork
Freamework? Framework. Kohana > CodeIgniter Kohana = PHP 5 CodeIgniter = PHP 4 For documentation, CodeIgniter is fantastic, but if you can understand code and want strict OOP etc then go with Kohana.
-
Help with PHP sessions
I did this at work and I just stored IP addresses and then refreshed the ip list at the end of each day.
-
How to link to a particular DIV with this code...
I'm not sure what you mean? Which function generates the link and do you wish to modify the link?
-
Multi table sql query
Didn't read properly but I believe you're looking to use sql joins?
-
Browsing issue specific to IE on webserv (works with localhost) Please Help!
On the right div, mess around with overflow:hidden in css and adjust the width perhaps? Very weird though.
-
Code Igniter
Hahaha I meant in the future! @op - have a read: http://onwired.com/blog/exploring-kohana-as-an-alternative-to-codeigniter/
-
Code Igniter
Ditch CodeIgniter, use Kohana. And can you not just do $data = $this->input->post; then do $data->username or $data['username'] or shouldn't CodeIgniter support something like that?
-
Remove all strings after certain word in php
http://www.google.co.uk/search?q=bbcode+%2B+preg_replace&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a Not taking the micky, being dead serious. Look through those and it'll give you an idea.
-
Critical PHP Engine bug
Bump for people who may have missed, great post.
-
MVC - Should I be using one?
Kohana is lightweight, as I've said, I suggest that ;D
-
MVC - Should I be using one?
MVC is top design pattern. Use Kohana in my opinion and good luck with it.
-
no $_GET on page refresh
Not 100% sober but chucked this code together for you matey. <?php session_start(); if($_GET['act'] == "char_con") { if ($_GET['first'] == 'true') { $con = mysql_connect("#", "#", "#"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("quote", $con); $result = mysql_query( ' SELECT * FROM `quote` ORDER BY RAND()' ); $row = mysql_fetch_array($result); $_SESSION['quote'] = $row['q_quote']; header('Location:index.php?act=char_con&beginCount&cb=%3C?php%20echo%20time();?%3E'); mysql_close($con); } else { echo $_SESSION['quote'] } } ?> and then have your LINK as <a href="index.php?act=char_con&first=true&beginCount&cb=%3C?php%20echo%20time();?%3E"> LINK </a>'; Basically what I did was add an extra $_GET parameter ("first") to check if it was from the link. Remember to keep session_start at top of document. I also got rid of the while because you were only getting one quote out so there was no need for a while?
-
Trouble with sticky footer links after use of jQuery
Sorry, what is the problem?
-
User Class - Which Design Pattern?
Ahhh I see. Thank you very much. I was looking into ArrayObject class the other day because I noticed a kohana class used it. I've got that Gang of Four book so I think I need to read into the registry pattern more because it sounds good. I always had the impression that there was ONE registry on the whole site. Also, could you have the registry pattern in the same class as User. So the static methods etc are in User and then the public methods to use (in relation to the objects created) are also in there, rather than separating it into 2 classes?
-
User Class - Which Design Pattern?
Thank you so much. So it's a registry pattern.. Also what is the offsetSet bit. What is an offset etc? Excuse my dumbness. Thank you again!
-
javascript / jquery carousel problem
Upload a zip of the files matey and I'll look (if I get Pm before like 11 tonight).