Questions tagged as 'php'

1
answer

How to set the path to access files in the procedural system

I would like to know how to use path in a procedural system, the correct way to define the paths, and to access the files, and what else is important to know about it. Researching found more examples in OOP, and found nothing here on this...
asked by 02.10.2015 / 02:31
2
answers

Add consecutive fouls

I am creating a journal module on line, I need to get students with 3 consecutive absences, follow the input select, when the student has more than 2 hours of class, select displays different. <select name="d_status[<?=$i?>]" size="1"...
asked by 24.09.2015 / 13:37
1
answer

Insert php with object as parameter

I would like to understand how I can do an insert function in php that uses an object as a parameter. Example: class Aluno{ private $nome; private $curso; } getters e setters... public function insere(Aluno $aluno){ // suponho que aqui...
asked by 28.11.2015 / 00:54
3
answers

Send parameters via GET

I am making a request as follows. http://localhost/sistema-agenda-server/tarefas/listAll?id=1 I asked to see the response in the generated sql and got the following answer: SELECT * FROM tarefas WHERE idu_tar=:id : id was not changed to...
asked by 05.11.2015 / 01:05
1
answer

Is there a parameter passing in a trigger?

I have two tables, one with the sessions and another with the activities. Within the activities table I have two fields, available and salable and within session I have vacancies. I would like to get the id of the session to be able to do the...
asked by 23.07.2015 / 20:33
1
answer

Get event click inside of iframe with jQuery

I'm using Google Forms to do a satisfaction survey on a website. On this site I show a bar at the top, asking the user to participate. If it closes the message, a cookie that expires in 24 hours is saved so that it no longer sees the message o...
asked by 21.08.2015 / 03:35
1
answer

Allow access to a PHP page only 1 user at a time

I am creating a call answering system, and to avoid confusion when answering a request, I need to restrict the PHP page containing the call data to 1 access at a time for each caller user, so when someone another user on the same team can not ac...
asked by 29.05.2015 / 16:54
4
answers

Codeigniter 3.0 giving 404 not found

I've installed CodeIgniter 3.0 in my apache and when I have access link it returns me error 404 not found . The files of controller is correct and views too (only has HTML). What happens to give this problem in version 3....
asked by 26.05.2015 / 05:56
1
answer

Deleting local product image Laravel

Well I have a product and I have an image being recorded locally. I need the backend when the product is deleted the local image is deleted. When I delete it, it deletes the data from the database, deletes the image information in the da...
asked by 17.06.2015 / 20:57
1
answer

Configuring Vagrant for Small Teams

I have a small team of PHP developers and want to set up their development environment using Vagrant . However, I have some doubts. How do I make a Vagrant configuration available so that other developers can download and start a VM with...
asked by 24.07.2014 / 16:13