trq
Staff Alumni-
Posts
30,999 -
Joined
-
Last visited
-
Days Won
26
Everything posted by trq
-
Means that the function cannot do not have a body, they don't actually implement the functionality. eg; abstract protected function exampleFunction();
-
/usr/bin/env php Should can generally be relied upon.
-
If you are so limited for time, why not try reading the manual instead of asking your questions here and waiting for a reply? It would be a lot more efficient. http://php.net/manual/en/ref.pdo-sqlite.php
-
Poor OOP practices that programmers should avoid
trq replied to Hall of Famer's topic in Miscellaneous
Its comments like these that make your threads so hilarious HOF. Unfortunately for you though, the more you repeat these sentiments, the more watered down your opinions become and eventually, it gets to the point where they have no worth at all. -
Can anyone suggest a good "dealer area" script?
trq replied to Ben_in_CA's topic in Third Party Scripts
You missed this pinned topic?- 1 reply
-
- php
- dealers area
-
(and 2 more)
Tagged with:
-
Have you tried the sqlite3 extension or PDO?
-
Where do you see this message? You need to provide information if you want help.
-
Is my PHP background task / Cron idea a good way to do this?
trq replied to johnsmith153's topic in PHP Coding Help
Sounds feasible. I would personally prefer to use a queuing system of some sort, but whatever floats your boat. -
And your code?
-
You probably should have mentioned that then. The title of your thread is very misleading.
-
Do you just want access to this sqlite db file? Is that what you are actually asking? PHP ships with an sqlite extension: see http://php.net/sqlite More specifically take a look at http://php.net/manual/en/function.sqlite-open.php. Once you have the opened the database, you can execute sql queries against it.
-
I created a simple static site generator a while back (initially to document my framework), maybe that'll be of some use: https://github.com/trq/gen
-
So.. where exactly are you stuck?
-
Detect Mobile Devices - PHP - $_SERVER['HTTP_ACCEPT']
trq replied to Jayram121's topic in PHP Coding Help
I'm not sure what that statement means. -
Detect Mobile Devices - PHP - $_SERVER['HTTP_ACCEPT']
trq replied to Jayram121's topic in PHP Coding Help
None. -
Poor OOP practices that programmers should avoid
trq replied to Hall of Famer's topic in Miscellaneous
Hilarious. -
You wouldn't use php for that. Its a client side issue, use Javascript. <html> <head> <script src="http://codeorigin.jquery.com/jquery-1.10.2.min.js"></script> <script> $(document).ready( function() { $('#select').change( function() { location.href = $(this).val(); }); }); </script> </head> <body> Select Your School: <form method="post"> <select> <option value="lccc.php">Lorain County Community College</option> <option value="csu.php">Cleveland State University</option> </select> </form> </body> </html>
-
What do you want to import it into?
-
No it can't. Not without editing your code. Kinda misses the entire point of using a class.
- 14 replies
-
Cool, thanks for sharing.
-
I removed your link the first time because this smelt a bit of spam, please don't keep adding it back in to your posts. You can add it to your signature if you like.
-
No need to reinvent the wheel here IMO. Composer ships with a perfectly capable autoloader, use it.
-
Tell them its breaking shit. We backport fixes to old versions, but that bumps the minor version number. Thats how it works.
- 3 replies
-
- repository
- svn
-
(and 3 more)
Tagged with:
-
Where is $state set?
-
selected is not a valid attribute that belong to a select element. You need to put it on the option element. eg; <option value="ACT"<?php ($State == 'ACT') ? ' "selected"' : '';?>>ACT</option>