Questions tagged as 'php'

3
answers

Rotate text and replace first link

I have a variable named $text where it stores texts that the user writes.    '$ text="Hahahha that cool this site, I was able to answer all my   questions there link " ' What do I need? I have a function named makelink ($ url...
asked by 30.06.2014 / 16:12
1
answer

Pass values to PHP file with JSON

I have the following code that runs on any PC and requests information for a PHP file on a remote server. How do I pass a parameter to this PHP using this my JSON code? So I can send a die and get a processed render. I know it sounds li...
asked by 25.06.2014 / 21:57
2
answers

Get form data

How can I get data from all existing forms on a page? I have a form with the name "budgets" that I can send the fields but I have at least three more that are inserted via include and the fields of these forms I can not retrieve. I would like...
asked by 25.06.2014 / 12:51
2
answers

How to pass the business id from angular to php?

Hello I need to pass the business id from angular to api in php. How do I do? Here is the code: Angular: app.controller('UploadCtrl', ['$scope', '$window', 'Upload', function($scope, $window, Upload) { var formData = new FormData(); var...
asked by 18.12.2017 / 13:58
2
answers

PHP - Convert XML to Object

Is there a way with PHP to transpose an XML into an object and object in xml? Example: ** Classe (objeto) ** <?php class Telefone { private $codigoArea; private $numero; public function setCodigoArea($codigoArea) { $this->c...
asked by 03.08.2018 / 16:36
1
answer

Generate report with page break in print

I have form which generates a list that I need to print. This list, sometimes I will only print a few pages , so on each page, I need to have some data: page number previous page balance Caption Header records final balance...
asked by 24.07.2018 / 14:59
1
answer

Problem trying to download large files

I am using this code to download with php, small files works, now as big as 1Gb end up coming corrupted. $arquivo = $_GET['nome']; //nome do Arquivo $local = $_GET['dir']; //pasta onde está o arquivo header('Cache-control: private'); header('...
asked by 07.08.2018 / 02:47
2
answers

Column Visibility DataTables

I'm using DataTables to display and export my tables, one of the types of datatables I use and this one here:    link I would like to know if it is possible to set at startup which columns should be omitted and then optionally di...
asked by 04.07.2018 / 14:32
1
answer

Image compression without changing the content format (png, jpeg, gif, webp)

The difference between this question and duplicates: keep the format of the content (png, jpeg, gif, webp) in order not to harm images with layers, transparency, etc. The others do not. I have a file upload script , where I save the file to...
asked by 10.07.2018 / 15:50
1
answer

Returning object item from an array

Well, I need to loop through an array and return an object's property from that item. My array has this format: Itriedtosolvethiswiththefollowingfunction:publicfunctionreturnObjectByDayAndTrip($links,$trip,$dayOperation){$newArray=array_f...
asked by 09.07.2018 / 15:08