Questions tagged as 'php'

2
answers

File download with curl and php

I have two server1 and server2 servers, server2 only accepts server1 request if it is another ip it returns 404, my site is on server1 and the files for download on server2 , I made the following script to return the server2 :...
asked by 17.07.2014 / 15:29
1
answer

Autocomplete through java doc in sublime

I do not know if I can express myself correctly, but come on. In Java, when we discussed the code, we used the default /** * @author Nome do Autor; * @method Nome do Método; */ From this, in an IDE as the sublime, we can enjoy the auto com...
asked by 03.07.2014 / 01:24
1
answer

Form does not send all variables through POST

I'm a beginner in PHP and I've created a form, and when I submit it to POST , only two variables ( DESCRICAO and CODIGO ) are being sent, the rest are blank. What is the error in this code? <form action="../function/func_...
asked by 21.08.2014 / 16:13
2
answers

Soft Delete and relationships in Laravel 4

I would like to know if there is any way to use soft delete but check if there are relationships / data / records attached to the record that will be deleted before deleting. That's clear, using only Laravel himself. So, how to check rela...
asked by 01.08.2014 / 22:00
1
answer

Error with webservice SOAP using PHP

I'm trying to learn how to webservice using this tutorial: link But my server is returning the following:    Error       Response of type text / xml: text / html This is my client.php : <?php require_once "lib/nusoa...
asked by 06.09.2014 / 05:44
1
answer

Share and tanned facebook count in the wordpress loop

Next I'm trying to put just one share count I've had on Facebook in the loop of my theme. For this I found the following function and tried to modify it for my need. Follow the function: function ia_fb_count($url_post) { //Get the transie...
asked by 09.03.2015 / 14:46
1
answer

Printing in PHP

I am developing a stock management system for the company and the customer needs the system to print the labels on a special printer for labels (Datamax I-4210) registered products. The system is web-based and stays on a server in-house and i...
asked by 06.02.2015 / 13:03
1
answer

Change the array keys returned by mysqli_result

I need to change the keys of a result obtained by mysqli_result->fetch_assoc() If I do this search: "SELECT exemplo.nome, exemplo.apelido, exemplo.idade FROM exemplo WHERE exemplo.id=1" I get this result $result["nome"]= "Ant...
asked by 09.03.2015 / 11:40
1
answer

Pass input value to PHP variable [duplicate]

I have the following problem: I'm using JavaScript to set a input type hidden in a modal window. Now I need to assign the value that was filled in this field to a PHP variable. I'm not using any form, just the field alone. I t...
asked by 05.02.2015 / 17:53
1
answer

View Camera IP video

Gentlemen, I'm no expert in PHP, I'm starting now, and would like a direction on how to display the video from my IP Camera - P2P snapshot.php <?php $img="http://usuario:senha@ipddns:portacamip/mjpeg.cgi?user=usuario&password=sen...
asked by 16.03.2015 / 12:36