Questions tagged as 'php'

1
answer

Apache Exchange for IIS: How to Display Errors

I have a fairly basic web page (type a questionnaire), in which it stores the information in a MySql database. While it was allocated in Apache (provided by xampp) was working, now that I went to an IIS server the part of the post stopped wor...
asked by 12.01.2017 / 17:05
1
answer

Search for file and view content

I need to get a arquivo.txt , print it on the screen and enter the total number of lines, but I would like to "search" the file in any system directory <?php $arquivo = fopen('arquivo.txt', 'r'); while (!feof ($arquivo)) { $linha...
asked by 16.05.2017 / 02:47
1
answer

Login via facebook SDK

Well recently I made a login page where you have the normal login and the facebook login, but the facebook login when you click redirects the application to allow access, okay until then, okay, only when it clicks and lets it returns to the page...
asked by 11.05.2017 / 15:19
1
answer

Return of "?" instead of special characters in a SELECT [duplicate]

I have a problem, I have already coded everything with utf-8, I tried in many ways to sort this out and I can not, in a% of HTML, I pull a table from the database, but it returns with a symbol of special characters instead of the accents as in...
asked by 30.06.2017 / 20:55
1
answer

Get only part of the Cookies string

I have the cookie: twid which is returning in the browser as well. %22u%3D859186139894337536%22 I would like to just get this: 859186139894337536 You can do this in PHP . PS: I'm getting cookies of Twi...
asked by 01.07.2017 / 18:11
1
answer

Consultations with laravel

I recently started with laravel and I have a terrible doubt. I've done several google searches that only left me more confused yet. I have a news table and a photo table. Each news item has several photos. In home you have to see the last two...
asked by 05.07.2017 / 14:53
1
answer

Is it possible to list the columns used in a SELECT in mysqli PHP?

I have the query SELECT coluna1, coluna2... FROM tabela I wonder if there is any method in the mysqli class to return those columns that were used in the query, even though query does not return records. In a% return% of reco...
asked by 19.12.2016 / 13:03
1
answer

CLASS="active" according to a selected tab

Hello I intend to create a notepad, where a title and a note will be inserted. For each note entered, a tab will be created. I want to click on the tab and load the title and note into an input and text area automatically. To recover...
asked by 15.12.2016 / 16:25
1
answer

Javascript to close menu accordion

I have the following code: * { margin:0; padding: 0; border: 0; font-family: sans-serif; font-size:14px; list-style: none; text-decoration: none; } .nav a, .nav label { display: block; padding: 10px; color...
asked by 15.12.2016 / 16:13
2
answers

Check if input file is filled

I have a difficulty that I can not solve even though it is a simple situation. I'm trying to validate a input field with%, the field needs to be filled, what I have: Form: <form enctype="multipart/form-data" class="form-horizontal" id=...
asked by 19.12.2016 / 12:38