Questions tagged as 'php'

1
answer

"Hotlinking is forbidden" when using file_get_contents () [closed]

This error appears when I try to use the file_get_contents() function of PHP:    failed to open stream: HTTP request failed! HTTP / 1.1 403 Hotlinking is forbidden As a parameter we have a normal PHP page, which makes some connecti...
asked by 20.09.2016 / 05:24
3
answers

Separate values from a string and perform a function with it

Hello, I have a string that has a value of zero ( $contador = 0; ), other than the value is three ( $vezes = 3; ) and another that is $numeros = "13|123456789\n14|123456780\n" . I want PHP to do a function (example ech...
asked by 21.08.2016 / 21:26
1
answer

Is there any google API to capture the highlighted search information?

Is there an API or something like that in which I can capture highlighted information from a google search? For example, when I search for "Bill Gates" some information about it appears in the right frame:     
asked by 04.09.2016 / 19:18
1
answer

how to pass data to a php function through url ajax?

People try to give me strength here, I've already looked and I do not find an answer that suits me. Come on! I'm working with classes in php, I would like to pass data from a form via ajax. But I have doubts on running the URL, I do not kn...
asked by 24.01.2016 / 18:12
3
answers

User's way to include new pages in a site without programming

Just like in WordPress you have the option of creating, editing, displaying and editing pages I know I can use WP, but for learning I would like to do programming. I'm trying to develop a function in my panel that should have the option to...
asked by 19.09.2014 / 17:05
1
answer

Convert string to array

I get data from my database that comes in this way 1,2,3,4,5 and I need to run each number, because each number is a user ID and I want it to display each separately without a comma or anything, I tried to give foreach But I could not, ho...
asked by 21.06.2014 / 17:06
2
answers

Ajax does not return text in utf-8

By ajax, I am querying the Database, but if the field has special characters, they appear wrong. I'm making the request in the following JS function, the result is shown in a div with the id="txtHint" <script charset="UTF-8"> functio...
asked by 16.06.2014 / 13:52
2
answers

Retrieve string in the database in a dynamic form_dropdown

I'm trying to retrieve a string from a form dropdown field in a update page from my database, view below. $option = array(NULL => 'Selecione uma categoria'); foreach ($categories_list->result() as $category): $option[$category-&g...
asked by 18.06.2014 / 08:24
2
answers

How to clear screen data?

I would like to know how to call the same screen only with the empty fields! That is, the same screen only from the beginning, without the information that the user informed! Example fields: Fields     
asked by 27.06.2014 / 15:48
2
answers

Sum of table fields with PHP and Codeigniter

I need to add some fields to a table. I have the transaction id and I need to sum all the amount fields with the id 224, all with 222.     
asked by 23.03.2016 / 12:19