How to extend access token validity since offline_access deprecation

PHP
Since the offline_access Permission is deprecated in Facebook's Authentication flow, we have problem geting the so called long lived access tokens wit...
3 years ago

How i do custom Yii2 gridview sort?

PHP
How can I sort with a customized gridview header? Please give the difference between label and header in the Yii2 gridview widget dataprovider. Here...
3 years ago

How to show JSON array data by using javascript?

PHP
I have a ajax returning json array data like this, [{ "UserName": "John", "Total": "45", "Correct(%)": "71.1111", "Incorrect(%)": "28...
3 years ago

How to create clean url using .htaccess

PHP
This is my .htaaccess code. RewriteEngine On RewriteRule ^([a-zA-Z0-9]+)/$ movie.php?name=$1 RewriteEngine on RewriteCond %{HTTP_HOST} ^www.example\....
3 years ago

php require method wont display css styling

PHP
I created a index.php file that's uses <?php require("sidebar.html"); ?> to include a sidebar; the HTML element of the sidebar shows, however t...
3 years ago

Doctrine/Symfony entity generator and generating entity from one table

PHP
I have already a few entities, but now a new table appeared in a database, and I'd like to generate an entity on only this one table. I already saw t...
3 years ago

How can i change opencart order email content as our wish ? is it possible?

PHP
Can I change the content of order email, which file it exactly refers? This is a confirmation of an online transaction placed with ######. The AuthOnl...
3 years ago

PHP's Infinit value in Bitwise Operations returns strange values

PHP
Today I just made an interesting discovery while testing what happens calculating bitwisely in php like INF ^ 0 (^ => Bitwise Operator for Exclusive O...
3 years ago

Can not load css sometimes

PHP
I can not load css on my web-page sometimes. Actually, yesterday it was working so fine but today it was not loading. So, I have deleted that whole fo...
3 years ago

Troubleshooting "syntax error, unexpected T_ELSE" in Wordpress template

PHP
I'm trying to create an "if" statement in PHP that prevents a single post in Wordpress from displaying on a certain page. The page I would like the po...
3 years ago

Add check-box to remove from database in for each loop

PHP
I'm learning PHP at the moment, started a practice project to make a todo list. The list allows the user to enter data into the database with an input...
3 years ago

How do I display the answer of my PHP and HTML program?

PHP
I have my code for my PHP: <?php $num1= $_REQUEST["number1"]; $num2= $_REQUEST["number2"]; $arithmetic = $_POST['arithmetic']; switch ($arithmet...
3 years ago

Define getter/setter methods with eval and __call in PHP

PHP
The code I provide beliow is pointless, because I edited in a way it's easy to do tests with. Btw in my case the ParentClass is the database class an...
3 years ago

Get users associated with MIN/MAX SUM value

PHP
I have this query: SELECT MIN(totalDuration) AS lowestTotalDuration, MAX(totalDuration) AS highestTotalDuration FROM (SELECT S...
3 years ago

Convert from UTF-8 to Shift-JIS

PHP
The current email is in UTF-8. It's not working on Shift-JIS. How can I convert from UTF-8 to SHIFT-JIS. The solution needs to be a PHP solution. Th...
3 years ago

PHP Fatal error: Call to a member function find() on a non-object however my function work

PHP
I am getting this error on Line 71 of my code, however the function of this line is executed correctly and it does what I expect it to do. However, I...
3 years ago

How to simply check if servers PHP version is 5 or above?

PHP
I'm creating a pre-installation checklist for a program. The program requires PHP5, so I need the checklist-script to check for PHP5's availability. T...
3 years ago

Youtube API v3 , how to get video durations?

PHP
I'm using Youtube API v3 to search youtube. https://developers.google.com/youtube/v3/docs/search As you can see the response JSON doesn't contains ...
3 years ago

Select Unique value related to another column

PHP
I have a table like this: ╔════╦════════════╦══════════╗ ║ id ║ project_id ║ document ║ ╠════╬════════════╬══════════╣ ║ 1 ║ 1 ║ 3 ║...
3 years ago

json_encode Change My Array Into stdClass Object, Is This Normal?

PHP
I have this code : <?php $array = array ( array ('pcs'=>'23', 'kg'=>'3'), array ('pcs'=>'24', 'kg'=>'4'), ...
3 years ago