Questions tagged php

Explore the latest questions and answers asked by our top developers.

dinamic translation, angular and PHP

I am working on an existing project assigned to me by a client. What I have a problem with are dynamic translations. Backend: backendsrcBundleApiBundleResourcestranslationsen_translation_file.yml table: morning: Good morning %name% backendsrcBundleApiBundleResourcestranslationsrs_translation_file.yml table: morning: Dobro jutro %name% So for every language, there is the translation for it, this %name% need to be sent from the frontend because […]

By HHHHHHT
Published
Categorized as angular, php Tagged ,

How to properly cancel a HTTP request with Angular and PHP

Hi I currently have a http request like this in Angular: data = await this.http.post(Globals.API_BASE_URL+’rca/obtener_equipos’, {subsistemas}) .pipe( takeUntil(this.ngUnsubscribe) ).toPromise(); then I have a while in my PHP server for this task: while (1) { Echo "n"; if (connection_status()!=0){ die; } But this didnt work, the server stuck until the task ends. pd: I checked with […]

By Cristofer Fuentes
Published
Categorized as angular, http, php Tagged , ,

net::ERR_ABORTED 404 (Not Found) Laravel 8 HELPPPP

I’m calling the files as follows <link href="{{asset(‘assets/css/themes/layout/header/base/light.css’)}}" rel="stylesheet" type="text/css" /> <link href="{{asset(‘assets/css/themes/layout/header/menu/light.css’)}}" rel="stylesheet" type="text/css" /> <link href="{{asset(‘assets/css/themes/layout/header/menu/light.css’)}}" rel="stylesheet" type="text/css" /> <link href="{{asset(‘assets/css/themes/layout/brand/dark.css’)}}" rel="stylesheet" type="text/css" /> <link href="{{asset(‘assets/css/themes/layout/aside/dark.css’)}}" rel="stylesheet" type="text/css" /> and http://asset('assets/custom/js/bootstrap-datepicker.min.js') http://asset('assets/custom/js/bootstrap-timepicker.min.js') the app.blade.php file is on the way: resourcesviewsBackendlayout I’ve already used the commands below that solved some files in the folder […]

By Andr Luiz Mardonis
Published
Categorized as angular, javascript, laravel, node.js, php Tagged , , , ,

angular – php problems

I created a test app with angular+php, just input form with 3 fields (name, email, phone) and paginated table with results. HTML file has 2 angular controllers, one for CRUD operations and another for table data fetching and pagination – done through ajax json<->php data transfer. The server PHP part works fine (I transfer form […]

By direktor
Published
Categorized as ajax, angular, javascript, php Tagged , , ,

Why are specific words causing a CORS policy error

If I try to save text from an Angular app to a MySql database via php that contains the word ‘pantoprazole’ or ‘Citalopram’ I get a CORS error : ‘has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.’ If I change just one letter in the word it saves […]

By Richard Hirstle
Published
Categorized as angular, cors, mysql, php Tagged , , ,

file_get_contents in php returns empty string

I have searched a lot about this related article . . I couldn’t find the solution passing my id in http delete request. when I have var_dump the variable its giving empty string. It didn’t give error it is just gave data deleted correctly message. but didn’t get deleted <button name="btn" value="Delete" ng-click="deletefn(x.Id)">Delete</button> $scope.deletefn=function(id) { […]

By pakila dec
Published
Categorized as angularjs, php Tagged ,

Input Type = "time" 24 hour format <input type="time" class="form-control" ng-model="c.eachDayTime[‘Time’]">

I initialized c.eachDayTime[‘Time’]= new Date(2021, 1, 24, 18, 0, 0, 0); But in the input field it showing as 06:00 PM But I want output as 18:00 if my computer is in 12 hour format the time I can able to enter range from 0 – 12 But I want to make the system irrespective […]

By ADAM MATHEW
Published
Categorized as angularjs, css, html, php Tagged , , ,

Angularjs http delete request giving status ok(200), But data not deleted

Insert and update options are working but delete is not working..I got the response message.status:200 ok… and got the message "data deleted correctly also" .But data didn’t delete from database Kindly look at my code & pls help!! here is my code <td><button name="btn" value="Delete" ng-click="deletefn(x.Id)">Delete</button></td> $scope.deletefn=function(id) { $http({ url: ‘delete.php’, method:’DELETE’, data:id, headers: { […]

By pakila dec
Published
Categorized as angularjs, php Tagged ,

How to Encrypt in PHP and Decrypt in Angular

We have system in PHP , we want to send string as get parameter and read in angular, To ensure security , we want to encrypt data php and then send with get request , then receiving in angular and decrypt, please help Source: Angular Questions

By Farhan Akhtar
Published
Categorized as angular, encryption, php Tagged , ,

Getting refresh token in the backend and refreshing ID token| OAuth2 | Google API

I authenticated using gapi in angular js and after authentication, I’m getting id_token, access token, etc response after auth which I then will pass to the server-side(PHP) and verify the id_token using google API client. $client = new Google_Client([‘client_id’ => $CLIENT_ID]); $payload = $client->verifyIdToken($id_token); if ($payload) { $userid = $payload[‘sub’]; //token is valid } else […]

By rvs1212
Published
Categorized as angular, api, javascript, oauth-2.0, php Tagged , , , ,
1 2 3 48

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq