I want write data to my sheet: But in log i see: What am I doing wrong? I will be grateful for the example code that works for you 🙂 In the examples there is not enough information( https://developers.google.com/sheets/api/guides/values#writing_to_a_single_range) Answer You’re almost there. Don’t …
Tag: php
Generate PHP Documentation for different access levels
I’m working in a php project that needs to generate 3 or more documentations, ones more restrictive than others. For documentation, I use PhpDocumentor 2. The only way I’ve found is for 2 level of …
Laravel 5.4 Passport: unsupported_grant_type
Hello I try to do a web application and I have a problem. When I request the token from /oauth/token I receive this response: And my code is: And the request header: Response header: Post data: I don’t have any other detail. Answer You need to install a password client for Passport. Assuming you’v…
How to protect ASSETS FOLDER in codeigniter
I just wanna protect my assets folder in client side. All of my files can access public. I wanna protect it. I have rules .htaccess like below, any wrong rules there? Answer You can do two things via .htaccess (Not Tested) via index.html 1. .htaccess add .htaccess inside the assets folder 2. index.html Create…
No reaction to website login with Selenium
I can login to the PHP website https://panel-support.oasgames.com/panel/ajaxrela/login manually, which will show a bird animation and on failed login show “Failed to login” on the website, whereas on successful login it will redirect to the main page. Login happens via POST, which returns JSON. Bu…
Get WooCommerce featured products with a custom shortcode
I tried to get array of featured products to use theme in my own plugin with jquery slider I have made this function and get attrs from class-wc-shortcodes.php but no results what I must add or change to get it works I use it now as shortcode in welcome page just for testing Answer There was some errors in yo…
“ MySQL Service detected with wrong path ” After opening xampp
I install Mysql server in my pc to practice j2ee and after some days i uninstalled it and installed xampp for PHP development but it is showing port not free error. I already try using cmd and …
How to implode subarrays in a 2-dimensional array?
I want to implode values in to a comma-separated string if they are an array: I have the following array: $my_array = [ “keywords” => “test”, “locationId” => [ 0 => “1”, 1 => “2”]…
PhpStorm external tools before commit
I have an External Tools entry php-cs-fixer and I want run it before commit. I found only after, but why after? I need before. I want after work with file, commit it and don’t worry about code style, I want to know that my PhpStorm run external tools php-cs-fixer before committed file. How to add run ex…
How to apply Rich Text formatting in Podio comments while adding comments through comments API
I want to apply rich-text formatting (Markdown language) on comments which added through Podio-Comments API. I’ve added but it didn’t work for me. How can I do that? Answer Formatting works when we leave a space before and after of a special charector, In this comment developer have to add space b…