Questions tagged as 'php'

2
answers

How to prevent data from being posted on google search?

I have a database. Inside, a database with data from multiple people. I have a scheduling system. In it are placed all the data of the person + day / hour of the scheduling. The problem is that this data can be viewed on google if I search the n...
asked by 26.10.2015 / 18:35
3
answers

Should I use "or die"?

I saw this question Display mysqli error using die and I was wondering should I use always the or die or is it just for those who are starting to see that it gave problem? $sql = $mysqli->query( "SELECT * FROM tabela" ) or die (...
asked by 21.07.2016 / 10:30
1
answer

Thread Safe (TS) and Non Thread Safe (NTS) - What are they, what's the difference?

When someone is going to download PHP, you have these 2 options: ts and nts , as well as language extensions. My doubts are as follows: What are Thread Safe and Non Thread Safe (NTS) ? Are there any differences between them...
asked by 27.05.2016 / 20:24
1
answer

Import, analyze and extract data from a CSV with PHP [closed]

How can I do to import a csv file with PHP and grab the data from a specific column and write that data to the database? Can you do this analysis and save only specific data (type a column, or row)?     
asked by 17.03.2016 / 14:48
1
answer

Roundup of 5 in 5 cents

In a PHP system I'm developing, I need to update a column of the price table. The price field is in float format and the administrator informs the percentage of increase. Example: Reports that it will have a 10% increase. $valor_anti...
asked by 27.02.2016 / 16:17
2
answers

How to solve an elseif that needs to be unique?

I want to create a page where when a checkbox is checked, a message is printed, but if all checkbox is checked, print another message. <!DOCTYPE html> <html lang="pt-br"> <head> <title>Form de exemplo com...
asked by 15.12.2015 / 20:11
1
answer

Block direct access to a page

Good afternoon, I'm developing a PHP site in which there is a login screen, which redirects to the admin screen, but if I try to access the admin screen directly through the url, it opens normally. I'd like to block this direct access through...
asked by 07.10.2015 / 19:17
2
answers

How to correctly save an image URL in MySQL database?

I'm testing the targeting of images with the URL. But during the tests, the URL was returned with changes as seen below: URL entered in the database: http://www.meusite.com.br/pastaimagem/logos/imageLogo.jpg URL returned by the bank: h...
asked by 23.02.2015 / 21:33
3
answers

Can I POST a file automatically?

I'm using Cron to run a PHP script. I want to do a load upload test for my server and Cron takes charge of this (the server then sends it to the Amazon). I was thinking of using file-get-contents to upload files to the server but how...
asked by 30.10.2014 / 19:12
1
answer

How to convert a date to this format in PHP?

Can anyone tell me what kind of date is this format? 2013-09-17T05:59:00+01:00 I have in the database a field of type timestamp or date. How to convert the value of it to this format using PHP?     
asked by 22.04.2015 / 16:55