I am using Codeigniter 3 framework how can handle multiple request same time
I am making on API multiple user enter data through app. same time 200 request to save data how can handle this ?
Related
I'm still quite new to angular2/4 so forgive me if I'm missing something obvious.
I am trying to update a booking process and we are doing this with angular2/4. Currently the booking process starts on a php website, once some basic information is filled out the angular app is supposed to take over. What I'm not sure of is how I'm supposed to take the form data from PHP and receive that data in my angular app.
There is an express.js back end for the angular app, but I don't understand how I would be able to post from the PHP site and return the result to the angular app.
Again sorry, I'm still new to angular so I'm not sure how I should approach this.
Create an API (http://localhost:8080/bookings/) in your existing PHP application which your angular app can access via a GET/POST request using angulars HTTP client. https://angular.io/guide/http.
Or
Alternatively, use the express backend to talk to the MySql DB / Or other DB that your php application is using. Use express as an API similar to the above or simply render the page with the data obtained from the DB. https://expressjs.com/en/guide/database-integration.html
I'm trying to build a chat application using short polling with ajax/php.
the problem that I have is when a user is connected in two devices (or two open session) he doesent receive a notification that he received a message.
is that problem related to the Ajax?
I am developing a web application that having a blogs section.
My client requirement is that he want to submit the blog post to facebook after inserting to DB.
That means automatically needs to post in Facebook with web application.
My Doubts are,
Is there any possibilities in this ?
If Yes, How can we done with PHP ?
Thanks.
You need to use the facebook graph api.
At https://developers.facebook.com/docs/pages/publishing you can read more about it.
Basicly, right before or after your db insert you should uae the api to post it to the facebookpage by sending POST request with proper parameters.
http://php.net/manual/en/function.stream-context-create.php
You can use this to send these POST requests
I'm using BreezeJS w/ a PHP backend API and am curious if two or more entities are being created at the same time that have a relationship with each other - if they all get sent to the server at the same time when the request is sent to the server - how do you:
Know which item needs to be created first for the relationship constraints to succeed
If one entity is created successfully, but there is some problem w/ the other entity (ie: 400, 401, 500, etc...) what would be an appropriate response to send back in the response?
This is what my current request looks like:
Is there a better way to break these up and if so - does breeze (with its knowledge of metadata) know to send requests in the appropriate order?
I'm developing backend system for iPhone app providing JSON data for each request for iPhone app. This is Cakephp based backend system and I was wondering if there was a good Cake way to receive POST request?
I understand using Router::mapResources(), Router::parseExtensions(), requestHandler component, Xml and Javascript helper is the correct way of creating RESTful application? If so, I was wondering how we could set them up to accept POST requests and potentially XML and/or JSON aswell.
Thank you
I was wondering if there was a good Cake way to receive POST request?
send a POST request to the correct url, and you can process it as normal. The POST data is in $this->data in the controller.
If so, I was wondering how we could set them up to accept POST requests and potentially XML and/or JSON aswell.
XML and JSON are not in the same category as POST. Read about REST setup here