Questions tagged as 'php'

1
answer

How to add a button that runs an application with php?

How do I create a button to run an application on my server through php? What I want is through a webpage I can execute a script or application (* .vbs, * .exe) on my server.     
asked by 18.04.2018 / 04:38
2
answers

I can not extract information from Json in Laravel

I get a request like this ... public function store(Request $request) { return response()->json($request->all()); } The output is this: anexoPdfGuia: {} guiaFiscal: "{"empresas_id":"40","tributo_id":4,"mes_referencia":4,"vencime...
asked by 11.05.2018 / 14:55
1
answer

Remove images that are not present in the database

I started working on a site already made by an old programmer that has a page for insertion and removal of images. However, when it removes, it only takes the database leaving the image there, ie, it takes up space. It's been 2 years since the p...
asked by 29.06.2018 / 12:43
1
answer

Error executing script in python in Laravel controller

Currently my scripts work perfectly within the schedule that run at specific times within my server's cron. The problem is occurring when I try to execute the method inside the controller, this method basically uses a shell_exec () that e...
asked by 29.06.2018 / 22:36
1
answer

How they work and what the concept of streams in PHP

I would like to know how it works and what the concept of streams is. I already used streams to get the input, I also know there are others to control the output. However, I would like to know the theory and where the idea comes from in PHP....
asked by 13.07.2018 / 03:47
1
answer

Connection in separate databases PDO - (multi-tenancy)

I have the following example for my application: I have a PHP + MySql application, with PDO connection, I need the application to be shared with all registered companies, however each company will have its database separately. APPLICATION ST...
asked by 28.06.2018 / 03:40
1
answer

How to set var JS value for html field?

I have the following code that: When a field goes into focus it calls a function to check which field is in focus to change the value of a variable in a tooltip! Example: //Aqui quando o campo entra no focus ele chama a função Aalerta p...
asked by 12.12.2014 / 17:05
1
answer

Can I declare a constructor in child classes when the parent class is abstract and already has a constructor?

My question is this: If I can declare a constructor in a class abstract and also in the child classes. And also how to access their values. For example: abstract class Animal { private $nome; private $idade; public funtion...
asked by 28.12.2014 / 06:19
2
answers

How to find source Url

I need a function that shows me the url of the origin of the visitor of my page. I've already tried $_SERVER['HTTP_REFERER'] , but it seems to only work when the source comes from a clicked link. Currently working with an affiliate syst...
asked by 04.01.2018 / 16:14
2
answers

URL rewriting in .htacces

I have the following URL: http://<site>/application/views/ambiente_teste/assets-teste/... And I wanted to re-add it to: http://<site>/assets-teste/... I tried the following in my .htaccess: RewriteRule ^assets-teste/?$ /a...
asked by 16.12.2014 / 20:20