Отправка из PHP в гугл таблицу - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of Отправка из PHP в гугл таблицу.php
- <?php
- $id_table = "FLASH";
- $data_to_google_sheet = array('ID_TABLE'=> $id_table, 'text' => $html);
- $param = array('http' => array('method' => 'POST',
- 'header' => "Content-type: application/x-www-form-urlencoded\r\n",
- 'content' => json_encode($data_to_google_sheet)
- ));
- $url = "https://script.google.com/macros/s/AKfycbzK5ZwvwoC9A7b6c60J2GCvme_AOvs18O9FXwOLdg/exec";
- $mad = @stream_context_create($param);
- $fp = @fopen($url, 'rb', false, $mad);
- echo (json_encode($data_to_google_sheet));
File Description
- Отправка из PHP в гугл таблицу
- PHP Code
- 29 Dec-2020
- 493 Bytes
You can Share it:
Latest PHP Pastes