trq
Staff Alumni-
Posts
30,999 -
Joined
-
Last visited
-
Days Won
26
Everything posted by trq
-
Here.
-
Best thread ever. Your not telling cron to use php to execute your script. Its trying to use Bash to execute it and that will never work. Having said that. Why are you even using php for this? It's a couple of simple sql queries.
-
Why are you executing mysql_query once, then passing the results of that query back to mysql_query and executing that? Have you got error reporting enabled? That second call to mysql_query should error because mysql_query expects a string.
-
You didn't ask a question.
-
"no" is a string, strings need to be surrounded by quotes in sql. You also need to sanitise your input or you are leaving your code vulnerable to attack.
-
Your obviously under a rock somewhere. Laravel 4 has been making waves since it's release and the community is only getting stronger.
-
class Foo { public function bar($input) { // do something with $input } } $foo = new Foo(); $foo->bar($_POST['whatever']);
-
PHP from scheduled task can't see folders, CLI works
trq replied to raphael75's topic in PHP Coding Help
I would suggest that whatever user the scheduled task runs as does not have permission to see these drives. -
You shouldn't be accessing globals within a class. You need to pass whatever data is required by your methods in as arguments. ps: Failing to use the boards syntax highlighter or any indentation makes my eyes bleed.
-
Help with converting to OOP with MySQL queries:
trq replied to skygremlin's topic in PHP Coding Help
On a side note. You don't just convert procedural code to class based code and call it OOP. It's not. OOP is a complete paradigm, you can't simply "convert" to it. -
Yeah, clear as mud. Your question is?
-
I'm not sure where people get the idea that query strings are no good for seo.
-
Uploading images inside Dreamweaver
trq replied to Adam_Duski's topic in Editor Help (PhpStorm, VS Code, etc)
Dreamweaver is a text editor. You type code into it, and the server then executes that code.- 4 replies
-
- dreamweaver
- upload
-
(and 1 more)
Tagged with:
-
No one is going to write the code for you. I think you misunderstand the point of a help forum.
-
Uploading images inside Dreamweaver
trq replied to Adam_Duski's topic in Editor Help (PhpStorm, VS Code, etc)
Dreamweaver is a text editor, it does not have a database.- 4 replies
-
- dreamweaver
- upload
-
(and 1 more)
Tagged with:
-
Yes and Yes.
-
Understanding what a framework is doing behind the scenes.
trq replied to kutchbhi's topic in Frameworks
xdebug works fine with >= php5.3, Im not sure what your issue is. -
Which frameworks would you recommend to start with
trq replied to CrimpJiggler's topic in Frameworks
Laravel feels like a toy compared to Symfony. I don't mind it, but Symfony is definitely my preferred option. -
If you know PHP very well why don't you write some code yourself?
-
It doesn't really make any difference. The process is the same, files and things might just be in different locations.
-
Which frameworks would you recommend to start with
trq replied to CrimpJiggler's topic in Frameworks
Proem is dead, but I've only used Laravel for a few projects. I'm still mostly working with Symfony.