Questions tagged as 'php'

1
answer

Read RTF files and generate a TXT file

How to read an RTF file and rewrite it in TXT format using PHP? I did tests using fopen() and file_get_contents() , but the results were not what was expected.     
asked by 01.12.2015 / 20:38
1
answer

Two or more PHP forms on the same page

I'm having a little problem, I'm creating an application and I plan to have two forms on the same page. It turns out that when I run the first one, I have no problems, but when I run the second, the first one returns, and because it has no dat...
asked by 30.11.2015 / 00:20
2
answers

How do I pass dynamic parameters in a preparedStatment?

I have a function to insert data into the database dynamically. It worked fine when running query directly using only the query() function, so I started to restructure the function to work with preparedStatments , it stopped...
asked by 30.11.2015 / 16:34
2
answers

mai () function php not working under conditions

I have a PHP sending a contact form email, when it is in the captcha check condition, I receive the sent message, but the email is not delivered, and when I shoot the condition the email arrives normal. Follow the PHP code (The submit is done by...
asked by 14.06.2016 / 19:05
1
answer

Graphics in JS, error inserting DB data

I have a huge problem at hand. I have some graphs in js , where I need the data entered in them to come from the database. But as js is built, I can not find any way to allocate the database data in the charts. However, it alread...
asked by 18.06.2016 / 14:47
2
answers

How to check / uncheck checkboxes by column using JQuery

Here in the company we are doing a plant management. The apartments / units that have the same end (eg Apt 1, Apt 11, Apt 21) and so on, are one underneath the other in the construction and for that reason the plant attached to them is the same,...
asked by 14.10.2015 / 19:43
2
answers

Connection with PDO does not give error, nor with dummy bank

I'm starting with PDO. I'm trying to connect to the bank and I can not. I have the following code $host = "localhost"; $user = "root"; $pass = "root"; $dbname = "angularDB"; try { $pdo = new PDO("mysql:host=loca...
asked by 02.10.2015 / 22:34
1
answer

session time in php

Colleagues. Is there any way to determine a time when the session should remain active? The reason is that I have a system from which I use sessions, but if the user stays idle for a certain period, it seems that the session is inactive, caus...
asked by 30.09.2015 / 16:03
1
answer

Doubt with Routes and Controllers Laravel 4

I'm a beginner in Laravel and I'm having a problem with routes and controllers. I created a form with the following action: {{ Form::open(array('action' => 'MatriculasController@formulario' }} I created a route for this action: Route::...
asked by 29.10.2015 / 12:24
2
answers

edit docx file and save to PDF in php

I have a docx file, my goal is to be able to edit the docx, edit a specific string (do something like str_replace), and finally save the file to PDF. The docx as is a zipped xml file, I'm thinking of editing from there. Or would you advise anoth...
asked by 10.09.2015 / 17:02