Questions tagged as 'php'

1
answer

Problems with laravel 5.3

I'm having trouble setting and grabbing items from a sessão , in this case I'm setting which page should I mark in the menu as active . No __contruct of my controller I'm doing this: public function __construct() {...
asked by 06.01.2017 / 11:47
1
answer

Paging problem

I'm doing a pagination. So far so good, but when I'm on the homepage, it shows the results, everything ok. But when I click to go to the page 2 , it only changes the last result of the page. example products.php id 45,46,47,48,49...
asked by 06.01.2017 / 15:11
1
answer

PDO Insert multiple row in same insert using bindParam

I have a default function that I use for all my inserts (when they only have 1 insert at a time), which would be: insereRegistro($sql, $param=NULL) { $query = $conn->prepare($sql); //Converte os parâmetros para bindParam if ( i...
asked by 06.01.2017 / 13:18
2
answers

Convert XML into php [closed]

I am making a request in php via curl, and the answer is returning an xml, however I can not work with this xml .. REQUIREMENT: <br> curl = curl_init('http://ws.targetmailing.com.br/consulta');<br> curl_setopt($curl, CURLOPT_HEA...
asked by 07.07.2016 / 19:57
1
answer

XAMPP is not working properly [closed]

Hello, I want to learn php but I'm having a hard time making XAMPP work. I use Debian Jessie , as I'm not really crazy, I downloaded mysql , php and apache through a (LAMP) package. However, I have now gone...
asked by 17.01.2017 / 22:53
1
answer

How do I get the client's position on the map?

I can only get the approximate location of the client, but would there be a way that I could locate it on a map, with that data I have? I only get location data such as City, state, latitude, longitude etc. With this site and this code: $...
asked by 17.01.2017 / 01:15
1
answer

Solutions to count downloads from a file

Suppose for this case the apache server and php language. The Problem I have a file on my server (eg: formular.pdf ) and there is a page ( formular.php ) that has a button to download this file. I need to get periodic information of th...
asked by 17.06.2016 / 16:14
2
answers

Get anchor url with PHP

I need to get the data of an anchor in the url, follow link: link I need this ID 8 that is in the anchor, the problem is that I can not use Javascript to get it. I need to use only PHP. I'm using Codeigniter, however, if I u...
asked by 28.06.2016 / 22:10
1
answer

Composer with XDEBUG - PHP

I have XDEBUG installed on my PHP . In this scenario, when composer installation is done, I get an error message about runtime performance, according to the picture below: Myquestioniswhatisthescopeofthisperformancedrop?Itwouldonlybeinc...
asked by 18.06.2016 / 21:55
1
answer

How to export a specific table from an html to another html via php?

I have an HTML file with multiple tables throughout the code. The function of this file is to export these same files to other HTML files (one file per each table). So this file works as a kind of information bank where I later want, I just have...
asked by 26.06.2016 / 22:48