trq
Staff Alumni-
Posts
30,999 -
Joined
-
Last visited
-
Days Won
26
Everything posted by trq
-
Adding a Uncertain Amount of Parameters to a Function
trq replied to timothyarden's topic in PHP Coding Help
or call_user_func_array('func', $args); -
That makes no sense. Why are you outputting anything if all you are going to do is try and redirect the user to another page? You need to fix your logic.
- 14 replies
-
CI is definitely on it's last legs. It has failed to keep up with PHP's development, is poorly deigned and not very well tested. Out of all the major frameworks around, CI is probably the worst of the lot. For my money, Symfony2 and Laravel are the only options. From a technical stand point, Symfony is pretty much as good as it gets at the moment, while Laravel is very well designed and still easy to use.
-
pear has a command line installer. There is no need to install packages manually. Having said that, pear is dated. Take a look at http://getcomposer.org
-
I'm not sure what line numbers your talking about. I don't see any. Anyway, the errors are clearly seen. None of your array elements are separated by comas except for the first couple.
-
Is it better to store everything in a single table?
trq replied to CrimpJiggler's topic in MySQL Help
Take a look into database normalisation techniques. Adding new fields is almost always not the right answer. -
It would help if you told us what line is line 46 and only posted relavant code.
-
This is the basics of a front controller. This pattern is used a lot.
-
Nothing in that code logs in a user.
-
Lets put this another way then. Do you know how you are currently logging your users in? If so, simply don't do it for accounts that are not confirmed. If you don't know how you are currently logging your users in, you best investigate that first.
-
Table design: Sum+grouping values by date and time of day. (500k+ rows)
trq replied to Christian F.'s topic in MySQL Help
Yeah. Open your own thread with some more specific questions. -
No one said anything about trying to advertise some company Monkuar. I'm not sure you understand what your ranting on about. Please, never mention web2.0 again. It is a myth.
-
Chromes dev tools are way better than anything available for FF including firebug.
-
You seriously need to get managed hosting.
-
First attempt at designing an MVC for my new project
trq replied to MySQL_Narb's topic in Application Design
It is a VERY basic MVC that doesn't really follow any decent coding practices, but yeah... what was the question? -
1) It redirects the output of "spamassassin spam_input" into a file called spam_output 2) locate spamassassin
-
Don't use user inputed data directly in database queries anyway, your opening all sorts of cans of worms in relation to security issues. What database engine are you using there? Surely it has mechanisms for escaping data properly?
-
You might want to post some relevant code and a question.
-
diff php variable for each field in each db row
trq replied to PatrickLawler's topic in PHP Coding Help
You need to post some relevant code or a better description of your issue. -
diff php variable for each field in each db row
trq replied to PatrickLawler's topic in PHP Coding Help
Sounds like you might need an array but without code, your on your own. -
Close, but not really. It has nothing to do with Apache, but yeah, it is a daemon that can execute commands at specific scheduled times. PHP is just one of thousands of different commands cron could possible execute.
-
Amongst a bunch of other things that your assuming are setup properly.
-
preg_replace. The manual is a programmers best friend.