-
Content Count
13,037 -
Joined
-
Last visited
-
Days Won
299
requinix last won the day on January 13
requinix had the most liked content!
Community Reputation
959 ExcellentAbout requinix

-
Rank
Three-Headed Administrator
Profile Information
-
Gender
Not Telling
-
Location
America/Los_Angeles
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Doing what you're doing is a dated practice. The industry has moved on to templates and such. But this method isn't inherently wrong. In time, you'll probably change to do something else. And that's fine.
-
Does it work?
-
You found one of the text-transforms. Now find the others.
-
Nothing was wrong with the rewriting... I think. Nothing that I remember seeing, at least. The rewriting isn't responsible for the directory index - the fact that your files are not called "index.php" is.
-
Can't diagnose a black stroke if we can't see it. The SVG on that page you cited only uses #F7F7F7 to match the page's white background color.
-
When does PHP Buffer Post Data?
requinix replied to Drongo_III's topic in PHP Installation and Configuration
This behavior is related to the SAPI - that is, the thing PHP interacts with when it needs to do stuff like read incoming request bodies. So which are you using? php-fpm? mod_php? Does that have any relevant settings that may explain why it couldn't buffer the request body? -
Trying to connect JSON username / pw using PHP CURL
requinix replied to speckytwat2's topic in PHP Coding Help
{ "correlationId": "6c2dc370-59a0-11eb-893a-0223445bacd9" } Is that the JSON you're expecting to receive? If so, everything is going right - except for the part where you told cURL to return the response headers in its output, which you probably don't need to care about. -
Putting put string text in javascript raise syntax error
requinix replied to mstdmstd's topic in PHP Coding Help
I can't tell what you were trying to ask, but I think the answer is still what I said before. -
So what's the question? Oh, found it. Some existing framework or strategy to do what part, exactly? If the general problem is how to deal with multiple MVC frameworks, the answer is typically to have a code interface that does as much work as possible so that the framework endpoints can do as little as possible. If you're asking about literally converting JSON to HTML, I think the coolest option is to forget JSON and go with XML. Because that can use XSLT to render the data however you want.
-
Mysql query, combine command about age and separate by gender
requinix replied to nitiphone2021's topic in MySQL Help
Add the if_gender to the list of SELECTed fields as well as the GROUP BY. Then you'll get one set of results that shows the count per age range and gender. -
Okay. Well, so far all you have to work with is "Cannot POST". That's not helpful. How about getting some more information? Perhaps why it thinks it "cannot POST"?
-
Okay. What's trying to POST to it?
-
/** QUERY THE DATABASE FOR AN ENTRY FOR THIS DAY !! IF MATCHES FOUND, PRINT THEM !! **/ $sql = "SELECT * FROM $tablename WHERE $current_epoch BETWEEN $start_day AND $end_day"; /** NEED TOQUERY THE DATABASE FOR AN ENTRY FOR THIS DAY !! IF MATCHES FOUND, PRINT THEM !! If you have code outside the function that is capable of querying the database then it should be a fairly simple matter of moving that code into the function. Note that running the query requires having the $conn variable, so you'll need to pass that into the function as another argument to be able to use
-
Yeah, no. It just means you have to define a $htmlTitle variable in the code before it includes html_head.php.
-
Use index.php for all three of them.