I have two servers:
I’ve decided to switch from PHP’s native session management based on
$_SESSION to use my own, due to many different issues I’ve had so far with PHP’s possibilities, and also because I’m building an API that must be compatible with mobile app requests; so I cannot rely on
I know that there are frameworks as symfony etc. out there for this, but using sth like that for these baby operations would be overkill.
I’m building client server REST application.
Client side is based on Angular while server is PHP (not that it matters much anyhow).
I’m trying to learn Laravel and my goal is to be able to build a RESTful API (no use of views or blade, only JSON results. Later, an AngularJS web app and a Cordova hybrid mobile app will consume this api.
$http request executes successfully, yet the PHP script on the other end receives an empty
$_POST array when it should receive ‘test’ and ‘testval.’ Any ideas?
I’ve got a problem with an image upload in AngularJS. I found this question on here: Angularjs – File upload with php
How do I stop Smarty throwing an error when I’m using AngularJS in the same template. I have a Smarty page template with this code:
I’m starting my first project with yo + grunt + angular.js.
I have a service which needs to read some data from my server; I built it using angular $http service.
I’ve also built a RESTful web service (implemented in PHP, but it could be Java, C, Perl, …, it doesn’t matter) which exposes an API to get the data.
The server from which grunt serves my ng-app is currently (and probably will ever be) the same from where the PHP web service is run (by apache).
An example of how my JSON data is like:
In AngularJS, I have my Restful API in a subdomain but I am having the problem where the cookie/session is not being shared across domains. For Angular I am doing this: