Questions tagged as 'php'

1
answer

Register data using ComboBox

I'm trying to create an On-Line real estate, I've been able to build the structure, but I have no idea how to register the States, Cities and Neighborhoods using a ComboBox. For those of you who can give a review I leave the address link to...
asked by 17.11.2015 / 12:47
2
answers

Convert date format [duplicate]

Galera, I need to convert the data format of the fields from my form to write to my bank. As the data is coming from the form by array I am not able to capture them and convert before writing. The date field is on my form marked " " and masked...
asked by 20.11.2015 / 05:15
1
answer

Split and search for older and newer messages

I have a table . In it to 4 columns ID with high increment, id_user1 would be the id of the user who sent the message, id_user2 would be the id of the user that received and the mensagem to which it receives the...
asked by 15.07.2015 / 14:48
3
answers

Get the first and last date of an array

In PHP I have this array: $locados = array('2016-01-01', '2016-01-02', '2016-01-03', '2016-01-06', '2016-01-07', '2016-01-08'); These dates within the array represent two different apartment rentals: Rent 1: 2016-01-01 until 2016-01-03...
asked by 29.10.2015 / 21:06
1
answer

Print HTML page in mobile browsers

I'm building a system that will work on the web in PHP, where I have to make some impressions of some vouchers. The system can print the pages in HTML when I am on the computer, when I am accessing the system by a Smartphone or tablet the print...
asked by 18.11.2015 / 16:05
2
answers

PHP variables with erroneous values after String manipulation

I have the following code: $respostaXML = "<data-hora>2015-11-10T11:33:41.086-02:00</data-hora>"; $posTag = strpos($respostaXML,"<data-hora>"); $comprimento = (strpos($respostaXML,"</data-hora>") - strpos($respostaXML,"...
asked by 11.11.2015 / 11:46
1
answer

Advantages and disadvantages of using INI files

Could you tell me the possible advantages and disadvantages of using a .INI file to configure an application? Preferably, PHP applications.     
asked by 05.07.2015 / 03:22
2
answers

Install Image Magick (imagick)

I have a local web server that uses Windows Server 2008 R2, IIS7 is the web services manager. I installed an application that needs to convert PDF to JPG, but for this I need Imagick to be properly installed and configured in PHP on hosting se...
asked by 06.07.2015 / 19:19
3
answers

Read a txt file by php and mysql and viewed by each user

I'm a beginner PHP programmer, I accepted a challenge from a job and I'm in need of help right now. They send me a monthly expense report for each user in a single file (a list), in the txt format. I need to convert the rows separately from each...
asked by 27.10.2015 / 18:12
1
answer

Place Laravel on Default Level / Directory [duplicate]

I have a Laravel application and I deploy it via git to my server. But the problem is that the server always throws the deploy into the public folder , and Laravel originally is meant to stay up . .htaccess or Laravel itsel...
asked by 26.10.2015 / 16:07