Questions tagged as 'php'

2
answers

How to install PHP server with separate components

A stupid doubt but I researched here and found nothing. I already have MySQL running on my computer, how do I install PHP without installing EasyPHP, Xampp? Because usually these programs already bring MySQL together. How do I?     
asked by 30.12.2014 / 22:20
2
answers

Can anyone tell me what is causing this error

The email field in the database is unique <?phprequire_once("conexao.php"); $nome = $_REQUEST['nome']; $email =$_REQUEST['email']; $telefone = $_REQUEST['telefone']; try{ $conexao = new PDO($banco,$user,$senha); $sql = "INSERT IN...
asked by 02.07.2018 / 00:46
1
answer

How to change this PHP 5.3 code to PHP 5.4?

How can I change the code below to work in versions 5.3 and 5.4 of PHP? Currently works only in version 5.3. I'm having the following error:    Strict Standards: Only variables should be passed by reference in   /home/public_html/admin/add...
asked by 05.01.2015 / 20:28
1
answer

Best way to find out if the user is online / offline

Well, I have the login and home pages, when I log in the user is set as online in the BD and is taken to home, at home, by clicking the logout button the user is set as offline and taken to login. So far so good, however, when the user clicks...
asked by 08.07.2018 / 15:46
1
answer

Error creating a file with fopen

When trying to create a JSON file with fopen me, a permission error is returned with the following message:   Warning: fopen (/json/9.json): failed to open stream: No such file or directory in C: \ xampp \ htdocs \ apil \ Controllers \...
asked by 20.09.2018 / 15:36
1
answer

Error creating variable inside IF

I was creating a script that always worked for me, however, I made a small change that almost exploded my mind because I did not understand what happened and I did not find anything on the subject. It is as follows: This code works perfectly:...
asked by 15.09.2018 / 22:55
1
answer

Active link with CSS: active

Folks, I 'm going to make a php code inside my class to display bold for example a specific menu that is active. <div class="menu-up"> <ul> <a href="index.php?url=menu"><li class="li-up fr <?php if ($_GET["u...
asked by 06.08.2014 / 08:36
1
answer

How to call code in jQuery from a form request?

I have a system with several forms calling jQuery and ajax to solve the problems and register the data retrieved in the mysql database. Since I am a beginner, I am having problems due to lack of knowledge. What I learned: <script src="jQuer...
asked by 07.08.2014 / 04:21
1
answer

Validation CSRF giving error after a time without use

I have an application already running with codeigniter and I have csrf enabled on the system. The problem is in a page that has a form that sends to itself, is a filter, but it is the following, the user does the post and has the results on the...
asked by 13.08.2014 / 15:07
1
answer

How do I "explode" sometimes receive more values?

I have a code that reads a txt and saves it in the database, but sometimes it will receive more values, eg: I have the following txt: |texto|texto|texto| |texto|texto|texto|texto| If I use to receive the 4 fields, it gives error in hav...
asked by 20.08.2018 / 13:27