Questions tagged as 'php'

2
answers

Two variables onclick event

I have the following problem, I am trying to put a push in an onclick event before giving the value to window.location . href="javascript:;" onclick="window.location = 'pagina.php';" But, the problem that I have, is that if I put it...
asked by 02.05.2016 / 10:18
1
answer

How to always get the last tweet [duplicate]

I would like to know how I always get the last tweet from a specific account, not exactly from mine. I have already managed to do it but in a static way, I mean, using node and locally, I make a request and I get the amount of tweets that I...
asked by 03.04.2016 / 02:36
1
answer

How to rename elements of an array in php

I want to rename the values of an array in php, change this array: $value('valor1','valor2'); to this other: $value('v1','v2');     
asked by 29.03.2016 / 21:58
2
answers

How do I validate the "Check for Directory and File Permissions" options in dotProject

Greetings, I would like you to help me since I want to install dotProject and as a requirement it is necessary that all the options of the "Check for Directory and File Permissions" are validated, and in my case not they are, the question is h...
asked by 11.05.2016 / 18:44
1
answer

PHP: Error: SQLSTATE [HY093]: Invalid parameter number: parameter was not defined

I'm doing a Login method but I can not solve this error, I would really appreciate your help <?php try { $base = new PDO("mysql:host = localhost; dbname = estimasoft", "root", ""); $base->setAttribute(PDO::ATTR_ERRMODE, PDO::ER...
asked by 16.05.2016 / 18:59
1
answer

How does spl_autoload_register () work?

I have been reading but it is not clear to me how the files are loaded automatically. My question would be if you load them all or are loading as they are required in the application.     
asked by 13.04.2016 / 21:36
1
answer

Assign unique name to a file with php

Friends I am uploading files to my server with ajax and php, what I would like is to give a unique name to the file I am uploading, in which part of the code can I do this, someone who could help me? $documento = $_FILES['file']; $data = a...
asked by 11.04.2016 / 20:21
2
answers

How to attach a file in direct PHPMailer with URL?

Today I have a problem and it is as follows, I am using PHPMailer and I am trying to attach a file that is in the following path link and my code is as follows: $url = 'http://app.pimsaseguros.com/_files/_img/_holidays/040616-160454_img0...
asked by 07.04.2016 / 21:25
1
answer

Google search API multiple input in oneself

I'm trying to make different inputs generate a Google search, but Google only creates an input but I can not edit it. Code Javascript : (function() { var cx = '010966112395912926010:u_3n5cqxw50'; var gcse = document.createElement('script')...
asked by 17.01.2016 / 19:43
1
answer

Why do not Laracast / Flash messages run on laravel 5.2?

Install Laracast / Flash in my project developed in Laravel 5.2, everything is perfect, inserted and deleted and all that, but when I want to show a message, it does not do anything, that is, it makes the option but it does not show the message....
asked by 16.02.2016 / 07:28