-
Posts
15,288 -
Joined
-
Last visited
-
Days Won
436
Everything posted by requinix
-
Yes, you mentioned that already. What do you mean that porn sites are "indexing on your PHP script"?
-
FYI it doesn't have to be a PHP object: PHP's arrays will serialize into a JSON object when they are associative (have keys). So you can remove the (object) typecast. Having that array looks right to me. You're definitely passing $operationsObject to the API, right, and not $operations? What's your full code look like now?
-
Why are porn sites "indexing" your site? That doesn't make sense.
-
...Why are you adding a json_decode? Read the docs: the request body is an object containing an "operations" key whose value is an array of the operations to perform. You have the array of operations to perform already. What you don't have is them inside an object.
-
The Mailchimp SDK isn't the smartest thing around. When you give it requests to execute, you have to match exactly what the API says you're supposed to use. Here, the API wants the request body to be an object with an "operations" key that is the array of operations. You almost but not quite have that.
-
All you'll be able to find on Google is people saying that it's as simple as looking at the hierarchy your var_dump() output is showing you: array(16) { <--- this is $cert ... ["extensions"]=> <--- this is $cert["extensions"] array(9) { ... ["subjectAltName"]=> <--- this is $cert["extensions"]["subjectAltName"] string(32) "email:[email protected]"
-
SSL_CLIENT_CERT is a string value containing the certificate data. It is not a file.
-
I'm not sure you understand how users work. Or at least what "users" it is that you need. If you don't want the "competition" to see things then there are a few options, but none of them involve creating users on the server or changing file ownerships or permissions. For instance, if you want something really easy to set up and that it's not something you'll need to change often, then htpasswd-style authentication is quick. Example
-
Which file was not found? What are you doing to get that error? Is it coming from the webserver or from PHP? Why do you have all those users and why are they owning these files? What are the file permissions?
-
I believe the SSL_CLIENT_CERT value is the cert as a string, so try plugging that into what gizmola showed. Beyond that, if you have problems getting code to work, then posting that code would make it a lot easier for us to help fix it.
-
openssl_x509_parse looks relevant. What have you tried with that?
-
I don't know much about them, but Queues could potentially be useful for this. The standard solution is to have something running in the background, as in via a cronjob, that periodically looks for tasks and executes them until it runs out. The API server responds to a request with some sort of task identifier that can be polled later, and only queues up the job to be run. When the background process runs it eventually gets around to that job, it updates the status (which could be returned by a poll) and then does whatever it needs to do.
-
No offense but this is a very basic math question. https://www.google.com/search?q=how+to+convert+numbers+between+different+units
-
Any PHP Script for complete cyber security mitigation?
requinix replied to SaydiSG's topic in PHP Coding Help
And what, may I ask, do you think "complete cyber security mitigation" is? If you are good with Python and Java then use Python and Java. Why PHP? -
Why - php logged in user is root, not www-data?
requinix replied to SLSCoder's topic in Apache HTTP Server
Read the documentation for get_current_user() and tell me what it says. -
$_SERVER["DOCUMENT_ROOT"] will be the path to your public_html.
-
Just make sure not to put ginerjm's code onto a real server running on the internet.
-
Looks like your problem is that you're using regular expressions for parsing HTML instead of PHP's other features. https://3v4l.org/6mIfq
-
What's outdated is not the include() function itself but how you use files and write the code inside them. But first things first: see if you can track down the conflicting $serial variable and change it to be something else.
-
You're probably using the $serial variable for something in another file. If you use this outdated pattern of including files then you have to make sure you don't accidentally reuse variables.
-
Trying to use php rand() function (newbie)
requinix replied to DavidAbineri's topic in PHP Coding Help
Separately, XHTML has been dead for years. Longer than it was alive, I think. Learn and use HTML 5 instead. -
No clue.
-
The Content-Length in the request header (if there even is one) does not describe the file. It describes the entire request. Take a look at how multipart/form-data requests are structured and that might help explain what's going on. https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST Could very well be. But these things are also frequently dependent upon the application itself. Maybe what you need is not so much a library but a curated database you can read. Assuming you validated that the provided type was correct, because if not then you shouldn't be storing it at all, then you would use it instead of whatever type you tried to guess it was. Sure. Why would it matter if they were different?