Manipulate JSON data using AngularJS

hope you well.. I have an API made using php, to grab from SQL and convert it to JSON which is working fine. My only problem was, i can't manipulate this php to fetch JSON like i wanted. The solution i believe just a placement in the $outp at my api...
more »

2017-11-11 23:11 (1) Answers

Instagram.com/username/media no longer working

I created a small web app a few months ago that would create stylized instagram galleries for public profiles by accessing the JSON from instagram.com/username/media (not via the API). I went to my personal website today and realized that the gallery...
more »

2017-11-11 17:11 (1) Answers

Regx for Domain with 'www' or without 'www'

I want to search domain name from given string. Lorem www.example.in ipsum #web-developer dolor sit amet, consectetur adipiscing elit. Donec suraj@mishra.com consequat sem eros, et volutpat google.com lacus dignissim ac. Pellentesque ac nisl et e...
more »

2017-11-11 12:11 (1) Answers

Magento theme not displaying all search results

Search function is working fine, the title shows "511 products found", it shows the correct number of products returned by search function, but in the grid below this title it only shows one product and layout breaks after showing title of first prod...
more »

2017-11-11 12:11 (0) Answers

Change the action name to slug in yii

I want to make YII controller and action name SEO friendly for my website. e.g. I have this URL http://localhost/my_website/AboutUs/OurHistory. Where AboutUs is the controller and OurHistory is the action. Now, I want to change it to -> http://localh...
more »

2017-11-11 10:11 (0) Answers

Prestashop redirection issue on other domain

I have uploaded local to live server for prestashop project and there are two shop in this. test.elem6.com/cs/ This is the first shop test2.elem6.com/cs/ This is the second shop Issue is that second url goes to another site instead of my theme....
more »

2017-11-11 06:11 (0) Answers

Soap Client Complex Type PHP Request

I have a web-service with following link I'm trying to access the function name with SubmitRequestType but it seems the function is not exist instead submitAnsiSingle this is the correct function name what I tried so far is , $wsdl = 'https://ww3.na...
more »

2017-11-11 05:11 (2) Answers

How to check if the product is downloadable?

I would like to check if the product is downloadable and has no weight so I can check it besides if the product isSaleable to solve a bug. This is the check that I want to add condition to it <?php if ($_product->isSaleable()): ?> ...
more »

2017-11-10 22:11 (1) Answers

Apache Mod_Rewrite Define URL Variables

I've search high and low for a solution to this. More than likely I'm just not using the right keywords. I'm trying to rewrite some image urls to clean them up. Easy stuff. I've managed to get urls from http://example.com/img/thumb.php?h=400&...
more »

2017-11-10 19:11 (1) Answers

Stored procedure return parameter

The SQL guy wrote a stored procedure that is suppose to return a list of item that'd be affected by the request. If I call the stored procedure within SQL Server Management Studio like the example below, I can see the list in a column named after t...
more »

2017-11-10 16:11 (1) Answers

Narrow return type in PHP7

Is it somehow possible to narrow return type in PHP7.1 type hints? The following code causes fatal error Declaration of A::foo(): Obj must be compatible with IA::foo(): IObj, even through narrowing the return type does not break inheritance typing p...
more »

2017-11-10 15:11 (1) Answers

CakePHP 2.x not producing json response

I have a Cake 2.x application. I need to provide a JSON encoded response from a PHP array, but it's not working as expected. In app/Config/routes.php I have Router::parseExtensions('json'); In my Controller I have this code: public function ajaxTa...
more »

2017-11-10 15:11 (1) Answers

PHP validator getting 0 from AJAX

Essentially, I'm trying to send an email to a PHP script to check for availability using ajax and an onKeyUp event in HTML. So far I've tried about everything I can think of doing for the past several hours trying to troubleshoot this issue to no av...
more »

2017-11-10 14:11 (1) Answers

Run long Oracle stored procedure from PHP

I have a stored procedure which I run from PHP using: //Request does not change $sql = 'BEGIN SP_GET_MY_DATA(:POP, :SEG, :DUR, :VIEW, :PAGE, :OUTPUT_CUR); END;'; //Statement does not change $stmt = oci_parse($conn,$sql); ...
more »

2017-11-10 14:11 (2) Answers

import Json to html (table)

im trying to import a json url to html in a table. The problem is when i get the data i get 25 rows i get this on the web console: Object { data: Array[25], paging: Object } I also have the following code which is designed for only one row i guess...
more »

2017-11-10 02:11 (2) Answers

Doubts about environment - migration

I have for many years an application running Linux (PHP + MySQL) that has always had a single develop performing the maintenances, but due to the demand, I need to expand the team. With this comes the problem of code management, I have ROOT access on...
more »

2017-11-10 01:11 (0) Answers

Pass PHP array onto Vue component using props

Building a Laravel app with a few Vue components Want to pass a PHP array onto a Vue component using props Here's an example of such PHP array: ["Foo" => 100, "Bar" => 50] Great. Here's my attempt at passing them onto the Chart component: ...
more »

2017-11-10 00:11 (1) Answers

Symfony 3 : Select with relation many to many

I have two Entity with a relation many to many (car and dealer). I have a working SQL request : Select c.id, c.nom FROM car as c WHERE c.id NOT IN (Select car_id FROM dealer_car where dealer_id = 16); But with querybuilder I can't do this bec...
more »

2017-11-09 16:11 (2) Answers

How does Reflection in Laravel work?

How does reflection in Laravel actually work? I tried to debug it to see how Laravel uses reflection in a controller's constructor or methods to resolve their dependencies and sub-dependencies and then and give it back to us. But I found it hard, a...
more »

2017-11-09 12:11 (2) Answers