Questions tagged as 'php'

1
answer

Problems connecting to the Mysql database

I'm trying to create a system for college, however I'm having an error while trying to connect with Mysql, I'm using PHP and Xampp. Error:    Fatal error: Call to undefined function mysqli_conect () in   C: \ xampp \ htdocs \ Courses \ Tes...
asked by 10.05.2015 / 07:49
2
answers

Destroying sessions in PHP

I was researching about logout functions in php and I saw examples like: if(isset($_SESSION)) { unset($_SESSION['minhaSessao']); //repetir para cada sessao session_unregister(); session_destroy(); } I wanted to know if t...
asked by 24.03.2015 / 18:32
1
answer

Insert into the database by recording in half

I get the name of the news and insert it in another table, but one of the fields is going in half, follow the image of print : Database Sourcecodewhereyousend:<inputname="nomenoticia" type="hidden" id="nomenoticia" value="PC realiz...
asked by 15.03.2015 / 19:29
1
answer

What is "cacert.pem"?

In the code where an API call is executed, the following line exists: curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); When executing the code the following error is returned:    SSL certificate problem: unable to get local issuer certifi...
asked by 26.03.2015 / 14:27
1
answer

Execute functions inside variables in PHP

In a certain project I'm having an error trying to create a variable as a function, for example: namespace Classes; class Teste { public static function abc() { return 'teste'; } } Calling the function usually works: \Classes\Teste::...
asked by 03.02.2015 / 03:52
1
answer

How to store values of a recursive function in an array?

I've tried to pass an array as a parameter, but returned only the first value of the counter. What is the correct way to return an array with all the values inside a recursive function? Here is the array return function: The initial function...
asked by 24.01.2015 / 23:00
1
answer

Xampp as a corporate solution for a web server with php applications [closed]

I have a machine that will serve as a web server, with applications in php and applications with embedded server such as pentaho and odoo erp, which will be used as intranet and extranet systems. As far as xampp is concerned, would someone wi...
asked by 04.02.2015 / 17:07
3
answers

How not to show img element where src is equal to null

I am making a system where the user can post images, texts, etc ... however in the system every image posted must be uploaded to the server and the user can delete them. With the deletion of the image from the server, the posts that contain s...
asked by 07.10.2014 / 01:37
1
answer

How to perform a paging with PDO?

I'm developing an application in PHP but I just started in PDO and I have no idea how to make a paging using it. I was able to set up a small query with example of the information to be printed and would like an help to f...
asked by 03.10.2014 / 18:00
1
answer

Identify element in an image with PHP?

Is there any tool or way to check if an element exists inside an image in PHP? The system needs to identify that the element of the first image is also in the second image. Example:     
asked by 25.09.2014 / 17:47