I recently wrote a code which uses file_get_contents along with some USER_AGENT headers and other headers to get a source of a m3u8 file , when echoed it looks like following #EXTM3U #EXT-X-STREAM-INF:…
Why I can’t connect to a MySQL 5.3.36 shared server using mysqli_connect and PHP 7.4, but it will work using php 7.1?
I have this shared account on Hostgator. Using PHP 7.1 and mysqli_connect, I have no issue connecting to the MySQL 5.3.36 database. The PHP script should be fine. The hosting company sent me an email …
how to get value inside JsonObject
im trying this new method Ion. with PDO and I got stuck where I want to get value inside JsonObject. I previously used Volly with msqli but I find Ion. more organized and PDO more safe. whenever I try …
Code 124 (Invalid access token) received for Zoom API calls using JWT
When using either dynamically created JWT tokens, or even hard-copying the one provided from the App Marketplace for my app, my API requests always fail due to an ‘invalid access token’. I am currently working on the Meetings endpoint, specifically trying to create a meeting. The endpoint is: https://eu01api-…
PHP separate values by comma
I am trying to separate my JSON Array: WHERE What i need is if one column like “Front_glass”:”X, XXX_or_XX, G” has three values it should be or any thing that is possible Thanks. Answer You can use array_map function in your case. Look here live PHP sandbox
How to combine search text and checkboxes using sql bootstrap php
What I have so far: I’m working on a database based website. So far, I have a search-text-form with bootstrap and a submit button in index.php. In search.php, I get an output according to the word I …
Populating a HTML table using JQUERY, PHP and AJAX
I am trying to populate a HTML table using JQUERY, AJAX and PHP code. When I run my code, my table is displayed but it is filled with ‘undefined’. I have three pieces of code. Here is my HTML and …
App crashes when receiving notification from firebase PHP API
I want to send a notification to a user via firebase PHP API. I followed a tutorial but the app crashes when the API runs and if the app it’s not open nothing will happen. this is the code: <?php …
PHP Regex Match Specific Pattern between Quotes
I have strings with the following pattern: adfadfadfadfadfadfafdadfa”externalId”:”UCEjBDKfrqQI4TgzT9YLNT8g”afadfadfafadfdaffzfzfzxf Basically, I need to find “externalId” and extract it’s value in between the quotes that follow. The length of the value can change so i…
How to receive Fetch() POST in php?
So i got this POST json method here, but can’t understand how to get my json data It’s packed in BLOB which is packed in FormData How to receive such POST in php? (and convert this FormData(Blob) back to json?) JS I’m big noobo, so i can’t even receive it Seems like it works differentl…