Skip to content

Tag: php

get PHP function (Symfony 4.2)

I have the following error that I do not understand: “Attempted to call function “pasPointer” from namespace “AppController”.” The code that goes with it: public …

Apache unique Vhost user, PHP sessions not working

I am looking to run an number of Apache server which will host websites for multiple clients. I have installed the libapache2-mpm-itk module and have created unique users/groups for each clients set of files. And configured their corresponding vhost file to run the process with that user/group. This works fin…

Remove /public after https redirect laravel .htaccess

I have a Laravel Page Deployed in a Shared Hosting and when I force http request to redirect to https the url contains /public My root .htaccess is: And my /public .htaccess is: The only problem here is: when you type the url like example.com it will redirect to https://example.com/public and everything works…

Secure way for PHP REST api?

I am developing the PHP based REST api. I have android app which will send some key parameters to server and the server will respond with the data. In this case, the email is the key element to get all the relevant data. If I want to make it secure, I can save password in sharedPreferences and send it at