-
Posts
15,288 -
Joined
-
Last visited
-
Days Won
436
Everything posted by requinix
-
i locked my own admin accounts on phpmyadmin
requinix replied to alexandre's topic in PHP Coding Help
Restart MySQL in safe mode without user authentication, reset the root password/unlock the account, then restart back in regular mode. https://dev.mysql.com/doc/refman/8.0/en/resetting-permissions.html -
Your query will return two colors. There's no way for you to know which color belonged to which flower. Or whether there were multiple rows for a given flower. You're starting with a list of flowers, right? SELECT flower, color FROM prettyflowers WHERE flower IN ('rose', 'carnation', 'orchid', 'tulip'); That will give you the list of colors but also their matching flowers. I don't know what you want to do after this, but while you go the that set of results, you can remove the flower from the list you started with. So you'll find a row of rose/red and orchid/purple, remove those from your list of flowers, and end up with carnation and tulip.
-
Programa Empresa Exportadora En Python.
requinix replied to batma3's topic in Other Programming Languages
And what is your question? -
Any $_POST data you would be able to see in your browser's developer console where it handles network monitoring. Pull that up, run your script, and see what is or isn't being sent in the requests.
-
The "common solution" would be to fix whatever incorrect configuration you have. But it's hard to know exactly what part is incorrect by guessing. You also apparently have some setup where you can simply "change" how PHP is running, and if you can "enable SEO friendly URLs" then there's some application involved that you haven't mentioned. So. What is your setup?
-
"Session variables" isn't a language. The choice is not "session variables instead of PHP" or "session variables instead of Javascript". The choice isn't even "PHP or Javascript". The choice is "session variables or data in the request". As in you can decide to put page information into the session or you can put page information into the URL. And the latter is better.
-
Is it me or are you doing pagination using session variables?
-
The error message is telling you that the first character in the "JSON" is a less-than. You know, like the kind used by HTML? Doesn't that make you wonder what the "JSON" you expected to see, actually was?
-
I know an application with lots of database tables. Each record has a blargh identifier that is unique across all blarghs in the world. Do you think they're the same as sysids? I can't tell you how to create a "sysid". I can tell you about things like UUIDs.
-
If you're running some kind of long-term process (and you expect it to run for a long time) then you need to disable the script timeout. That's to be expected. But you should consider whether you really want to be doing that for a script running through your web server.
-
Adult Content acceptance popup before viewing the site
requinix replied to elena71pa's topic in PHP Coding Help
What menu links? I don't see anything in there that looks like a menu. -
Adult Content acceptance popup before viewing the site
requinix replied to elena71pa's topic in PHP Coding Help
So you know, titling your thread "Adult Content" is a great way to get an admin's immediate attention - and not in a good way. So I've edited in something for you that's a little more specific. What kind of problems? -
Fixed.
-
It seems to be working, and the invite code isn't set to expire at all. Is there maybe something else going on? I see someone named @rain in there. Would that happen to be you?
-
Does Flywheel also have its own web server? Probably does. "Correct" is highly subjective. If you want to run both at once then all you actually need to do is make them run on different ports, say 8000 for one of them and 8001 for the other.
-
PHP filename in sub-directory not allowed to be number w include
requinix replied to Niss3's topic in PHP Coding Help
Actually what it's telling you is that \1 in a double-quoted string does something special... -
Alternatives to inheritance Question #273
requinix replied to NotionCommotion's topic in PHP Coding Help
Can't be abstract anymore. What kind of resources and what sorts of ways of controlling access do you need for them? -
Alternatives to inheritance Question #273
requinix replied to NotionCommotion's topic in PHP Coding Help
I think I might have guessed right regarding an access policy. How much "customization" does each resource need regarding its access? I would assume not much, and that they all typically pick from a small handful of possibilities. If so then you have access policies, a resource uses an access policy, every user has something to consume policies in a similar design, then you manage access through those secondary objects. user <-> permission policy <-> access policy <-> resource The principle here is that a resource does not try to decide how and where it can be used - it has a policy which manages that. And a user doesn't decide how and what it can use - it has permissions that decide. Consider a roller coaster ride. They'll have a sign saying "you must be this tall to ride" and a person who enforces that; the roller coaster is the resource and the sign is the access policy. When someone wants to ride, they present themselves; they are a user and their permissions are their physical appearance (ie. height). The person who enforces the height requirement would then be the code used to implement the system - someone who understands the access policy, the permissions, and how to evaluate the two together. -
Alternatives to inheritance Question #273
requinix replied to NotionCommotion's topic in PHP Coding Help
I mean, I guess composition makes sense here? I wouldn't think a resource "is a" access control, but it certainly could "use a" access control. But depending what "access control" is, I'm wondering if maybe what you need is an intermediate "access policy"?