Questions tagged as 'fopen'

1
answer

Problems with permission

I have a server where 5 sites are hosted. One of them has a system where you download a file that is in the hosting of another site, but of a same server. The file is there, but at the time of download an error appears. If I change the path o...
asked by 01.12.2017 / 19:00
1
answer

How to ignore comments in ppm P3 files?

In the function read_file_ppm_p3 (const char * filename) how would you ignore comments (# cometary) in ppm P3 files? #include <stdio.h> #include <stdlib.h> typedef struct PIXEL { int r, g, b; } PIXEL; typedef struct IMAGEM {...
asked by 21.09.2017 / 14:54
0
answers

How to create file on my PC, inside an internal network, using PHP

I'm developing software for the company that I work with and I've had a problem: I need to create a file inside my PC that is saved using any other computer on the company's internal network. Before I had made it to work on my machine. Then I us...
asked by 10.03.2017 / 19:06
0
answers

Error generating image report

I have a code that has multiple photos separated by reports. Each report can have any number of photos. When you click the button to generate this report, if you have several photos (around 60) it starts to generate errors instead of generating...
asked by 26.10.2015 / 11:49
2
answers

Problem reading txt file with PHP - fgets does not take the next line

Is everything good? I have a problem with reading a specific txt file. As you can see below my code uses fgets to read line by line. <?php extrairDadosNotificacao("arquivo1.txt"); extrairDadosNotificacao("arquivo2.txt"); function extrairDa...
asked by 21.11.2016 / 21:31
2
answers

How to capture a line from a file and then overwrite it?

I have to access a file by php, this file has a variable in the line x I want to get the contents of this variable, step to a condition, if different than expected I replace the value of this variable by php, without having access q the file man...
asked by 25.07.2014 / 13:18