Questions tagged as 'php'

1
answer

Undefined index btn php

I'm doing a page with a main view, which has the search button, load user and show user list. All finally end up calling the controller that has functions according to value of the buttons. They work perfect for me, except for the user...
asked by 30.10.2016 / 03:04
1
answer

search validation in laravel

I have a search engine in laravel for teams by its ip and by its bar code for that create two scopes public function scopeBuscarip($query, $ip) { if (trim($ip) != '') { $query = $query->where('ip', $ip); } } public...
asked by 28.11.2016 / 04:49
1
answer

mysqli-affected_rows does not work with stored procedure

I have a piece of code that inserts a record in the persona (id_persona, apellidos, nombres) table, I'm using MySQLi and PHP5 and I have the following: $query="CALL persona('".$nombres."','".$apellidos."')"; $mysqli->query($query); $...
asked by 28.12.2015 / 06:22
1
answer

Send token Jwt from php

I am developing an OpenId integration from php and I have to send a jwt token to an endpoint. I use Jwt firebase to generate and validate the jwt: $key = 'xxxx'; $data = array( "tenantId" => self::TENANT_ID, "clientId" => sel...
asked by 06.10.2016 / 22:06
3
answers

Redirect to a subdomain and keep the session started with PHP

I would like to know if it is possible to keep the session with which you entered the system and send it to a subdomain and if possible, in what way can I do this event? That is, if a user logs in dominio.com and clicks on a button w...
asked by 17.08.2018 / 20:51
1
answer

how to configure virtual hosts for cakephp on ubuntu server 12.04 LTS with apache 2

I have problems in having two web app running on the same server. The error shown is: Missing Controller Error: SchoolController could not be found. Error: Create the class SchoolController below in file: app/Controller/SchoolController.php...
asked by 15.06.2016 / 18:09
3
answers

Add class with php [duplicate]

I have a link. <a href="contacto.php?id='uno'" class="uno">contacto</a> I want to know if I can add another class to that link with php, for example. <a href="contacto.php" class="uno active">contacto</a> How...
asked by 20.08.2018 / 18:34
5
answers

Php files are not running on ubuntu

Hi, I'm working with php mvc without frameworks on ubuntu and apache . When I work with codeigniter everything works fine, but% co_of pure% no. It's weird because I can see the files in the browser at the root o...
asked by 11.06.2016 / 00:48
1
answer

Run a script with content in crontab format

It's my first question in the forum, I tell you because I want to do this, I have a little program with a view in html to redirect the incoming calls from one phone number to another, we select the date / time of passage, recipient and finally w...
asked by 23.05.2016 / 21:49
2
answers

Help does not display data from the foreach smarty table

My problem is that it does not show the data of the query friends I would like to know because, by the way I am new programming this is my index.php <?php include 'header.php'; session_start(); if(isset($_SESSION[...
asked by 19.05.2016 / 00:52