Questions tagged as 'php'

1
answer

Read Word and Generate a PDF with PHP

I'm using the library PHPWord to open a Word template has some data that is generated dynamically and result in a Word that the user downloads, my question would be, instead of sending a Word send a PDF of the template generated? And if y...
asked by 20.04.2017 / 13:58
1
answer

Problem running a shell in php

I want to run a shell file from php using this command: system('./12.sh'); And the content of that shell file is as follows: #!/bin/bash source ~/.virtualenvs/cv/bin/activate python /home/raul-pc/Documentos/codigo/rec_face.py When...
asked by 04.05.2017 / 20:00
1
answer

Send by POST

Good morning, I have a problem, because I was using a website sending the data by GET and of course now I am aware of this and I want to modify it to POST so that the data is not displayed. The GET data sent them via URL as follows: <td>...
asked by 28.04.2017 / 06:44
3
answers

Product blocked by sale limete

Realizing a project they sent me to block products that exceed the sales limit, I explain: I have two tables, producto and ventas , where there is a list of products for sale which if you reach the limit of sale diaria can...
asked by 30.04.2017 / 21:28
2
answers

Export to .csv from Table

I am currently trying to do a job for a friend, but I can not do the following. I have a table where everything is in the database. And the code of that page is this (Ask for a connection that works): index.php <?php require('c...
asked by 24.05.2017 / 12:12
2
answers

500 (Internal Server Error) with AJAX and PHP

I have a form which sends 3 data to the file php guardar_lugar.php and at the moment of pressing the button guardar the error occurs to me. I have read several responses from different forums but I have not been able to solve the p...
asked by 23.05.2017 / 14:55
1
answer

Make a generic validation method in laravel

I am trying to improve my code a bit and since I have to validate several methods of several controllers, I would like to do a generic method in the Controller Controller, and redirect the validations there. I have tried several options but I ca...
asked by 08.04.2017 / 10:29
1
answer

Token that does not expire in facebook api

I'm doing a sigle page. for which I am using facebook api graph to get the last 3 posts I made on my facebook page, I managed to get the .json with the post but it turns out that I have to generate a token every so often to keep access to the in...
asked by 08.04.2017 / 02:08
2
answers

Read Excel file with PHP

Good, I need to create a form where users can upload an xlsx file, and the web app validate the file then read it, and finally I need to put the information after evaluating it in a database, I'm using a PHPExcel library , the problem is that it...
asked by 30.03.2017 / 19:43
1
answer

Error "Undefined property:" in php

   (!) Notice: Undefined property: stdClass :: $ documentP in   C: \ wamp64 \ www \ mathematchy \ mathematchy \ controller \ logincontroller.php   online 48 I submit this error when I try to make another login on my page (localhost) ....
asked by 30.03.2017 / 02:28