Well i’m trying to implement in laravel 5.1 the login with google using socialite and i don´t have problems with the scopes but i need to implement the access_type as offline, somebody know, how can …
Stripe charge issue with stripe payment
What I’m doing is simple, using stripes JS code to charge a customer, like so.
How to fetch 3 columns from the same row in the result?
I’m trying to fix a code in an osCommerce store which is giving the following error on PHP 5.4: mysql_result(): supplied argument is not a valid MySQL result resource This is the code: I tried to change it and there are no more errors, but it’s still not working. Is this the correct way to do it? …
WooCommerce shipping price INCLUSIVE tax
In WooCommerce I can only enter the shipping price excluding tax. How can I make the given price including tax? The settings to show ‘prices including tax’ only applies to the products. So for …
Split array of strings on first space and make new array grouping by first word
I have the following array: What I’d like to do is split this array up, separating the brand from the model of phone, so in the end I can build an array that would give me this: So far, I have the following unfinished code: But this isn’t working correctly at all. Answer Try with – Output
is there a Doctrine rollback event? i.e. do stuff to entities on a changelist where there’s a rollback
working with Doctrine on Symfony 2.6 is there a way to ‘detect’ a transaction rollback on entities that have been persisted? my original problem: I create new entities which represent files on the …
Laravel 5.0 – Shared Hosting – Artisan not working as it should
I actually wanted to follow up on this question, but I guess It’s better to start a new question. I installed a fresh copy of my own laravel(5.0), and I tried running php artisan route:list, which works. Now I have downloaded the compressed repository of a project I want to deploy on a shared hosting en…
Connection between phpstorm and xdebug
I configured phpstorm-xdebug and I was able to debug my code with breakpoints. These days I updated php (through brew) and xdebug and now I have php 5.5.26 with xdebug 2.3.3. When I try to debug tests …
Symfony2 app.php receiving POST request as GET app_dev.php works fine
So I’m creating a route that requires posting. The route is as follows: So I use postman to hit app_dev.php/myroute/login and I get the correct response that I am looking for, currently the page just returns “hello world”. Now when I change postman to just hit app.php/myroute/login I get an …
PHP Apache crashes while executing a STORED PROCEDURE
Problem When I execute the following code (I’m calling a stored procedure with 5 IN parameters and 1 OUT parameter) $conn->query(“SET @res = ””); $mysqli=$conn; if (!($stmt = $mysqli->…