php
Generating a POST request with php curl in JSON format
Trying to get a token for the digiseller api
https://my.digiseller.com/inside/api_general.asp#token
I'm trying to form a req ...
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$server_output = curl_exec($ch);
echo $server_output;
curl_close ($ch);
php, soap, SOAP-ERROR: Parsing WSDL
I have this code
try{
$SoapClientOCR = new SoapClient (
"http://www.ocrwebservice.com/services/OCRWebService.asmx?WSD ... ork
In php ini, I have included
extension=php_openssl.dll
extension=php_curl.dll
extension=php_xmlrpc.dll
All the same error
How do I check the payment status of Yandex. Checkout?
Site on modx revo. The site has a payment form, when the form is submitted, it is redirected to the php file of the checkou ... api to regate the user programmatically, since I save the data entered by them in the fields in the payment form in cookies.
PHP - how to make a merge by key + value?
Array:
array(2) {
[0]=> array(2) {
["2020-03-27"]=> int(8)
["tags"]=> string(17 ... gt; array(2) {
["2020-03-27"]=> int(3)
["tags"]=> string(17) "STS; PTP; сервис; тест" }
}
Setting up a theme for Drupal 7
Hello.
Previously, I only made up all sorts of Landing pages, but now you need to make a template (not a landing page, but a ... aight from the layout starting, then how, what and where to cut, what comes from where?..
Thank you in advance for your help!
Translate file retrieval to curl
$ymlFileXml = '/var/www/html/upload/shina.xlsx';
$parameters = [
'access-token' => '2azoMVxNgDZl12vwXGOIvalzyHvO8A7J' ... ))));
Previously, this code was executed, now you need to translate it to curl, tell me how to rewrite the code correctly ?
References to PHP objects
I used references to objects in my code, passed them to functions, i.e.
<?php IniModule(&$site,'register'); ?>
W ... nce has been removed".
It means that the links are outdated. Why? How to replace it? Is it possible to transmit the object?
How do I compare the beginning of a link with a regular expression?
Hello there!
The task is this:
You need to compare the link contained in $_SERVER['HTTP_REFERER'] with the template, in the t ... iliar with regular expressions, the problem is created!
Tell me how to correctly compose an expression for my goal!
Thanks!
Sending emails from PHP with the mail() function as HTML
I make a form for sending a letter to the mail from the site. How to make and what to write in the function so that emails co ... br><input name='back' type='button' value='Вернуться назад' onclick='javascript:self.back();'></p>");
}
}
Laravel echo pusher does not listen to the channel front part of vue.What could be the problem
****Created an event when creating a new message record**
<?php
namespace App\Events;
use Illuminate\Broadcasting\Channe ... p')
console.log(e);
});
}
//console.log(text)
}
},
Sorting an array by value
Array(
array(
'name' => 'title 1',
'price' => '200'
)
array(
'name' => 'title 2',
... e' => '100'
)
...
)
I have such an array. How do I sort it by the value of the key price, from smaller to larger?
The Json response in" incorrect encoding " displays Russian characters
Good afternoon.
The Json response in" incorrect encoding " displays Russian characters. If the characters are English, then e ... ollowing characters: \u0418? Although then everything is displayed well in JavaScript, but I would like to remove it.
Thanks.
Find a value in a multidimensional php array
There is an array of rules:
Array
(
[0] => Array
(
[value] => 30
[description] => ... ed in 1 line without loops ?
Digging in the direction of array_map, array_search
But it's not coming out yet. Please tell me
How do I create a table in a database? (PHP+MySQL)
Hello!
I found video lessons on the course Apache+PHP+MySQL on the Internet, but all the actions take place there, as I und ... завершено";
else
echo "Таблицу создать не удалось";
}
?>
But still nothing works, and it doesn't create a table...
For the online store engine: InnoDB or MyISAM?
For the online store engine (php), which type of tables is better to do: InnoDB or MyISAM ?
What are the differences between these types?
How can you justify your choice?
How do I pass the select value in php?
You need to pass the value value in php
<select>
<option value="1">Цифра 1</option>
<option value="2">Цифра 2</option>
</select>
<?php
........
?>
MySql & phpMyAdmin
I have an Open Server installed on my computer and use it to launch a web page from which data should be entered not in its d ... ault phpmyadmin settings from Open Server. I only changed the port to 3307.
Server: 127.0.0.1:3307 "Database: a_db "Table: aa
Random with a certain probability of occurrence
There is randon(1,10); Is it possible to implement it with a certain percentage, that is, the same rand, but the 2-ki has an 80% chance of falling out, etc.
Does anyone have any ideas?
Sorting a table by html+php columns
Please tell me if it is possible to somehow sort the data in the table by columns using js rather than sql queries.
My data i ... '.table_sort thead').forEach(tableTH => tableTH.addEventListener('click', () => getSort(event)));
});
</script>
MySQL links or PHP tools
When is it better to use built-in relationships between DB tables (in my case, MySQL) (one-to-one, one-to-many, etc.), and wh ... ent for me to use php tools, because it is a more flexible structure ( as it seems to me). So I wanted to hear more opinions.