Skip to content

Want to get the CSRF Token from this text in CURL PHP

I’m trying to get the CSRF token from raw text, basically, I have a lot of text data on PAGE, I have almost 5-10 CSRF tokens on that page all are the same, I just want to grab one csrf token from text and save into in PHP variable. Here is the code but it’s not working. TEXT Screen: Answer

Checkout-PHP-SDK and createOrder connection issue

Trying to implement the Checkout-PHP-SDK paypal API to createOrder JS call.As far as I understand I have to send the data from php file to js approval form. But I am getting an error when I press the “PayPal Pay” button. The JS codes are like below : The php file is like this : Should I create, an…

Sending null values to php from post js

I’m trying to send values obtained from datable to a php file but sends null and return empty values from php This is what’ive tried crud_unidades.php : Now I have no idea on how to assign that javascript variable to the php one to use the phpvariable to look up stuff in my database please help An…

Only draw closePath() line

So I’m trying to draw a polygon using the arc function. I know there are better ways to draw a polygon but I’m going to use this functionality to plot points within later on. I’ve got the shape drawn no problem, however, the arc path is visible so I was wondering if there is just a simple wa…

Get values from SimpleXMLElement Object for php array

I need help with this issue, it seems I can’t get targetCurrency out of the SimpleXMLElement Object This outputs: [curr_code] should output ‘EUR’. How can I fix it? Answer You are using the same variable name for two different things: If you were running with display_errors switched on or ch…