Fetch content of google scholar page with php

PHP
This is my journal page in Google Scholar: https://scholar.google.com/citations?user=F4z6guYAAAAJ I can check the page with browser. But can not get ...
1 year ago

data submitted using JavaScript's FormData object returns entire html

PHP
I'm submitting data from a form using JavaScript's FormData Object. Basically, I have the following code: HTML <form action='test.php' id='test' ...
1 year ago

Yii: How to get multiple data from db

PHP
I am a yiibie. I am trying to get data from database onto the front page. The table name is story and i want to get the title and story from the table...
1 year ago

PHP Combine Arrays By Value

PHP
I have the following arrays: [review] => Array ( [14829] => 0 [14840] => 1 [14844] => 1 [14846] =...
1 year ago

Read from one database and write to another php/laravel

PHP
i'm learning Laravel and would know howto read data from a db and write it automatically to a second db. First i read from db1 and it works: $pacien...
1 year ago

PHP broken timezone "echo"

PHP
I'm working on a CMS. One of the options of the installation process is choosing the timezone. The default value that displays is America/Chicago. Th...
1 year ago

PHP cURL to login to facebook

PHP
I am attempting to login to facebook using curl, but everything I have tried has ended up in Facebook saying "Cookies are not enabled on your browser....
1 year ago

Classic ASP Function equivalent to PHP's

PHP
Using PHP and ASP on a project. A form in PHP captures the day, month and year of a birth date. Then it's inserted into a database as the variable cur...
1 year ago

Converting an array to a new array to meet template

PHP
I have an old file. I would like to integrate it into a new template I bought. I have a list of links. I store them in a Session array. The array has...
1 year ago

Convert binary to hexadecimal using PHP

PHP
How do I convert a binary number (i.e. 1111111) to hexadecimal (i.e. 7f) using PHP? I recognize I could do dechex(bindec('1111111'));, however, I am c...
1 year ago

Response logging in AWS PHP SDK v3

PHP
In v2 of the AWS PHP SDK, I was able to setup logging of request and response information by simply doing this: <?php use Monolog\Logger; use Guzz...
1 year ago

why sometimes json output is wrapped with parentheses

PHP
I just started using JSON, sometimes I am still a little in over my head. When I retrieve data from this link, there is a pair of parentheses wrappin...
1 year ago

How to filter multi-dimensional array (with more than two levels) by value?

PHP
Assuming the following three-dimensional array is given: Array ( [0] => Array ( [0] => Array ( ...
1 year ago

$_FILES["file"]["size"] returning 0?

PHP
I am trying to upload something using PHP and set a limit on the total size that I allow to be uploaded. I want to limit my uploads to 2MB but for som...
1 year ago

running a single process in the bakground at all times

PHP
How can I run process in the background at all times? I want to create a process that manages some work queues based on the info from a database. I'...
1 year ago

Laravel 5.1: Guzzle 6 return response is not working

PHP
I'm using Gazzle 6 with Laravel 5.1 and I'm having a strange behaviour returning my data from the APIs I'm using. This is my code: $data = array( ...
1 year ago

Getting started with Symfony2.8 as a MicroFramework (MicroKernel)

PHP
So I want to give this new version of Symfony (2.8.0) a try by using one of its new features: Symfony as a Microframework. The tutorial on Symfony's ...
1 year ago

php adding 1d array to 2d array

PHP
I have two arrays : Array 1 ( [0] => 976504282322 [1] => 976530000022 ) ===== Array 2 ( [0] => Array ( [...
1 year ago

Rewrite DELETE statement into a SELECT statement in MYSQL

PHP
I was trying to rewrite a delete statement into a select statement, but I kept getting errors. Here's the delete statement that I was trying to rewrit...
1 year ago

Can't parse 0:30 AM/PM correctly in PHP

PHP
So, I was trying to convert a string to a datetime in PHP using the code written below. When I run this code, the result is 1:00 instead of 0:30 as i...
1 year ago