Questions tagged as 'file-put-contents'

2
answers

How to save facebook profile photo in the database?

I have a button that when I click, connects to facebook and displays the person's data in a registration form, in that form to a text field that returns the following: http://graph.facebook.com/'.$fb_id.'/picture?width=300 I would like...
asked by 06.04.2015 / 18:07
2
answers

Adding information to a file on a specified line

I'm using file_put_contents to create a file, but in a certain part of my process I need to add things to this file but only from line 2, I searched the PHP documentation for file_put_contents and found nothing , can anyone help me...
asked by 29.08.2016 / 19:24
1
answer

Problems with reading and writing

Assuming you have an access log, each request will create or add values to the log file. Simulating multiple requests via ajax, I've found that there is always a problem. If you enter the browser console and run the code below, a request will...
asked by 08.12.2014 / 02:51
1
answer

Problems with file_put_contents ()

I have a script that runs every time a particular page loads. Basically, it does a search in the database and saves the values in a file: $servicos = $db->prepare('SELECT id_servico, UNIX_TIMESTAMP(data) dia, user, cliente, situacao FROM...
asked by 25.11.2016 / 18:39
0
answers

File_Put_Contents writes only half of the data

So I'm having a problem with my code, query, for, foreach and if work perfectly. However file_put_contents writes only half of the reported data. My goal with this code is basically to make a query of the bank, to return the result and in array...
asked by 18.09.2018 / 03:40
1
answer

Scroll through a .txt file and extract a "PK" from the file

I started shortly with programming in PHP and I have some difficulty in understanding some functions anyway, I'm participating in a project, and as part of the project I need to store a array I want to use the serialize function so that...
asked by 04.10.2016 / 17:42