Posts by Moises Pequeno • 69 points
11 posts
-
-3
votes2
answers56
viewsQ: Solved - Save more than one array in Mysql
I’m getting arrays and would like to save them in the database mysql and I’m not getting it, could you help me? Follow what I’m getting and how I’d like it to stay: $nomemorador =…
-
0
votes1
answer55
viewsQ: List directory files and subs-directories
Good night, I need to check files in directories and subdirectories. I am able to do, but I have to specify each directory, I would like to put only the root directory and then the code would do…
phpasked Moises Pequeno 69 -
0
votes1
answer245
viewsQ: Separate fields by TAB
I’m making an appointment SQL and returning the results in a file . txt, so far so good! It has now been requested that the contents of the file be separated by TAB (ASCII 9 ). I did a lot of…
-
3
votes2
answers284
viewsQ: Schedule Crontab task by script.sh
I want to schedule the crontab through a script.sh. I tried to add the following line inside the script.sh: echo "00 01 * * * retag /retag/licenca.sh" >> /etc/crontab It worked, but he adds a…
-
0
votes3
answers70
viewsA: SQL with two different information
I don’t know if it’s the right way, but I managed to solve it this way. SELECT x.usuario, SUM( pendente ) pendente, SUM( concluido ) concluido FROM ( SELECT COUNT( codticket ) PENDENTE, usuario, 0…
-
0
votes3
answers70
viewsQ: SQL with two different information
I have two queries in the database that work independently, but now the need to join them in a single script. I made some attempts, but without success. Who can help me, I would very much…
-
0
votes1
answer184
viewsQ: Open a directory and run a PHP action
I am trying to change the current directory to another and thus manage to perform an action. The script below is working, but only in the root directory. I would like to open, for example the /temp…
phpasked Moises Pequeno 69 -
1
votes2
answers511
viewsA: Save an array to Mysql
I decided as follows: //Executa o comando para verificar licença e armazena na variavel $line $licencas = exec(escapeshellcmd($comando), $output); reset($output); while (list(,$line) =…
-
1
votes1
answer114
viewsA: Connect and grab a file from an FTP
I was able to solve it this way: <?php $local_file = 'temp/arquivo.dat'; $server_file = '/pub/licenca/licencas96668116000172.dat'; $ftp_server="ftp.com.br"; $conn_id =…
-
0
votes1
answer114
viewsQ: Connect and grab a file from an FTP
I am trying to get a file from an FTP, however I am not able to receive and also no error message appears, by the contrary... Below the code I’m using: <?php /* Declaração de variáveis */…
-
0
votes2
answers511
viewsQ: Save an array to Mysql
I’m trying to record some information on Mysql through a Array obitda of an external execution, below the code I am using: $licencas = exec(escapeshellcmd($comando), $output); reset($output); while…