-
Posts
15,229 -
Joined
-
Last visited
-
Days Won
427
Everything posted by requinix
-
I'm partial to x = 1 - x. Are you sure you need a cronjob for this? Very many "I need a cronjob to do X" problems can be resolved in a way that doesn't need a cronjob...
-
Post your code and we'll tell you what's wrong with it.
-
Did you see the part of mac_gyver's post about having the button submit a unique ID from your database?
-
Stop supposing and actually find the answer. It's documented very clearly if you look for it. Yes, Bootstrap v3 and v4 define the sizes differently. Because apparently nobody over there has any idea what "backwards compatibility" is.
-
You're expecting way, way too much from it. PHP isn't a human being. It can't look at all your code at once and understand how every little thing is connected. It definitely won't be able to know that a particular button that you outputted is related to some particular code, let alone what the code was doing at a very specific moment while it was running. If you want things to work a certain way then you must be absolutely explicit about it every step of the way. Want a button to correspond to a certain row? Make sure that the button itself includes some value from the row, then write code that takes the value and looks up the row data. Then think about what you've done and ask yourself whether you've told PHP to do exactly what you wanted to happen.
-
$_SESSION["Title"] = $row['Title']; $_SESSION["PerfDate"] = $row['PerfDate']; $_SESSION["PerfTime"] = $row['PerfTime']; How do you expect this to work when you are dealing with multiple rows? What do you think it will do?
-
Where did you get those numbers? From the Bootstrap v3 documentation?
-
How about my second question? Did you find an answer to that?
-
PHP can do a lot of very different things so there isn't just one particular place you could start. My advice is to think of a small project you'd like to make for yourself and start working on it. Break it down into small tasks you can accomplish one at a time, and check with PHP: The Right Way if you're not sure how to do something.
-
A basic understanding of what glob() is and how it works. The kind of understanding one should be able to pick up by reading the documentation for a few seconds.
-
Not everything has to go through dependency injection. It's okay to hardcode some class names. You can always refactor later. If, on the other hand, you know right now that you want to inject those SomeOtherClass instances, pass the container to your constructor and configure the container to create them. Regarding not creating things in a constructor, that's not quite right. What's not necessarily good is creating dependencies in the class. Which is sometimes a nebulous term - see also my first sentence.
-
How wide is your display? What are the thresholds for what Bootstrap considers to be sm and md?
-
can i rssify the postings here that i post on this board
requinix replied to dil_bert's topic in Miscellaneous
Use notifications. -
That all sounds very consistent with the "putting code which creates the array into an include file" strategy.
-
In PHP, it's basically either associative or not. An array. Sometimes "list". Not just string. Associative is when the keys have some sort of particular meaning. You could have an associative array for weekday names. You could also have a non-associative ("list") array for weekday names. And they could even be the same thing. What matters is how the array is used. Yes: by creating an array where you define the first entry.
-
Good.
-
I don't know, you tell me. Does it work?
-
Still the same thing.
-
As long as your files only ever have the one period in their names, I guess. Otherwise I would tell you to get the name without the extension, add your suffix, and then add the extension. pathinfo() would help with that.
-
Use glob().
-
Write your own authentication provider that queries the SMF database.
-
o rly?
-
RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule .* $0.php [L]
-
I'm tired. RewriteCond %{REQUEST_FILENAME} !-f RewriteRule client1/gallery/(.*)$ client1/gallery/photo-gallery.php?gallery-id=$1 [L,R=301] That was your original code. Remove the [R] flag and only the [R] flag. Then make your link look like what I put in my last post.
-
Think of another .php file you have on the site. Pick any one. Do you want to be able to access that one without the .php extension too?