Questions tagged as 'php'

0
answers

PHP coding problem, character error in PDF file

Well, I have a problem that is not very unusual, I've seen some similar questions and none of the answers helped me. I have an HTML form where the information in it is being captured via POST by PHP , so far so good. To save this data as...
asked by 09.08.2017 / 14:03
0
answers

Is there a non-angular limit for request post?

I'm doing a post request via $ http in the angle, and when my back end returns a very large json string it does not load, this makes me wonder if there is any setting limiting a request that returns a very large string. My back end is in PHP....
asked by 15.02.2017 / 14:07
0
answers

Best way to add product to shopping cart

I have a method that adds product to the cart / session. But I think I'm using a lot of code for this and would like to do it in a better or simpler way. Any tips? public function addProduto($codigo, $quantidade, $preco) { if (!isset($_S...
asked by 07.02.2017 / 13:43
0
answers

How to remove obsolete warning message for $ HTTP_RAW_POST_DATA?

We are using php://input in requests in AngularJS : //método public function putData() { $params = file_get_contents("php://input"); return json_decode($params); } How it's being used: $postData = $this->putData(); $r...
asked by 14.02.2017 / 13:30
2
answers

How to modify specific parts inside an html file?

I'm loading an html file and would like to modify urls inside it so that the system recognizes the actual path of every file the html is trying to access, so I have several different urls: <link rel="stylesheet" href="assets/vendor/font-awe...
asked by 24.03.2017 / 14:22
1
answer

Publish something on my site and automatically post to facebook

Good afternoon, I have a question that I am pondering to understand. I saw in a system something very interesting that is when the person publishes some content on her site, there is a button that you select to also publish on facebook. It's lik...
asked by 22.03.2017 / 17:19
1
answer

What is an "output_buffer"?

Reading is answer , this question came to me. What is a output_buffer ?     
asked by 17.02.2017 / 19:47
1
answer

Open a Modal with the result of MySql

And the beauty galley? I'm studying Dev Web and I'm creating a pro-boot system with customer records and reports. Let's doubt it. I have a report page and there I have an input type="date" inside a form that will do the fetching from a date i...
asked by 01.08.2017 / 23:48
4
answers

MySQLi vs PDO - Which is the most recommended to use?

With mysql_* entering the deprecated state, the PHP documentation recommends using the PDO and MySQLi. Which do you recommend for use? PDO seems to be more suitable for working with object-oriented only than at the same time I saw...
asked by 06.03.2014 / 18:10
0
answers

MVC programming in PHP [closed]

Good afternoon, I have a question about an exercise that I had taken in the course. I need to make the updated text a hyperlink that goes back to hello word , creating a loop between them, ie (hyperlink) > updated text (hyperlink) &g...
asked by 22.02.2017 / 18:01