Questions tagged as 'php'

1
answer

Is it possible to code row by row in base64?

I have code that takes binary files and converts them to base64, but there are very large files and this ends up using a lot of the machine's memory (and even the process). To read large files usually (without converting them) I do this: $hand...
asked by 19.01.2015 / 13:56
1
answer

Is the use_include_path parameter replaced with the flags parameter?

I usually use the English documentation of PHP, as it seems to me that it is always updated, but when I access the documentation of file_get_contents in Portuguese, I noticed the following messages: string file_get_contents ( string $fi...
asked by 27.05.2015 / 21:00
1
answer

How to pass a GET request to a file that does not belong to wordpress

Wordpress does not recognize files that do not belong to it, even though it's there in the theme folder, which is my case. How can I make an external file receive this information? For example: I am in .page and there exists a button w...
asked by 26.05.2015 / 19:11
1
answer

Create an existing array array

I have the following line of code: $valores = implode(", ", array_values($dados)); and by giving var_dump(array($valores)); the following information is returned:    array (1) {     [0] = >     string (26) "Igor, Teste, i@hotma...
asked by 18.04.2015 / 21:13
1
answer

Check if you have the string and include your tags

I would like to take the content of the site, remove only the text and insert my tags, but in this code I did, when he finds the text "Art" it does not leave the if, and then only the first ones are tagged li, the rest are all tagged ul. Some...
asked by 18.04.2015 / 21:48
1
answer

Notice: Undefined index in file type field

I have a form with fields of type text and file : <form id="first-setup" method="post" enctype="multipart/form-data" data-toggle="validator"> <input type="hidden" id="userkey" value="{userKey}"> <label for=...
asked by 18.04.2015 / 21:34
1
answer

Assign the id according to the content of the text

I do not know if Javascript is better, PHP, or even the sublime text, but, I copied the cf text and pasted it into a txt (to get rid of those strange tags) Then in the sublime text, I: I selected everything crt + to alt...
asked by 20.04.2015 / 23:12
3
answers

Wordpress error: "Not enough permission to access this page"

My Wordpress site with WooCommerce shows the following message when I access the login :    .. "Not enough permission to access this page." What I've tried, to no avail: Delete that translation file in the languages folder as repor...
asked by 23.04.2015 / 02:32
2
answers

Help with Stack in PHP

I am having a question about a structure type in PHP. More precisely in an exercise. Write a program to give you three P1, P2, and P3 batteries. The stack P1 has n any integers. The batteries P2 and P3 are empty. It is desired to pass all...
asked by 18.04.2015 / 02:58
1
answer

Get url parameter with $ _GET coming from an iframe - WORDPRESS

I have a difficulty, inside my site I put a iframe that has a button that directs to another page within my site via GET . But this button is already preset. ex.: The link you have inside the iframe goes to link I thin...
asked by 29.01.2015 / 13:33