Questions tagged as 'php'

0
answers

Problems with the token

I've been trying to use security tokens created randomly but when I type $token = crypt($_POST['token']); In the browser I get:    Notice: Undefined index: token in C: \ xampp \ htdocs \ test \ token.php on line 20 This is the c...
asked by 10.08.2016 / 10:11
1
answer

Problems with NGINX and PHP

Hi, I'm working on a personal project, the subject is the following, the application itself is mounted in NodeJS by topics that I need to use Socket.io and the application connects with API REST in PHP CodeIgniter...
asked by 10.08.2016 / 20:11
1
answer

Resolving error "Primary script unknown" with Nginx

When configuring a LEMP (Nginx, MySQL, FPM) on Ubuntu 16.04, version 7 of PHP and FPM and when I went to do a test with php, the nginx log throws this at me.    2016/08/08 22:54:50 [error] 2251 # 2251: * 4 FastCGI sent in stderr: "Primary scr...
asked by 08.08.2016 / 21:15
0
answers

Implement different types of discounts to Products - PHP

how are you? I'm doing a PHP shop with CodeIgniter and I have a problem with the following: I want my products to receive 2 types of discounts: a discount% of the total price or a fixed amount. To achieve this, I thought of something like this:...
asked by 09.08.2016 / 18:39
0
answers

Problems with permissions when using the tempnam () php function

I am creating a pdf in a temporary directory with the tempnam function As follows: $tmpfname=tempnam("/tmp","argprocesor"); file_put_contents($tmpfname.".rtf", $pdf); exec("unoconv -f pdf ".$tmpfname.".rtf"); header("Pragma:"); header("Cach...
asked by 15.08.2016 / 20:22
1
answer

httping as logged in user

I'm doing performance tests on a website I'm doing and for that I use httping link What I would like is to be able to do that but to a section for which it is required to be logged and the truth is that it only occurs to me to remove the se...
asked by 18.08.2016 / 15:14
1
answer

Advanced Search

I'm trying to do an advanced search for a particular site. I have already created and the form is functional, which would be something like this: The idea is that the "title" field look only in the post_title, which is the title of the...
asked by 05.07.2016 / 22:06
2
answers

Retrieve the value of a select from a form

I have a form with a single select where it is automatically filled with a mysql table, the detail is that I want that when someone selects an option and clicks on the send button, I can recover that value to be able to make a consult and show t...
asked by 05.07.2016 / 01:22
2
answers

Laravel | Problem with different cipher bcrypt

In the user registry I save the key with bcrypt, and in the authentication I make a return of the password and it gives me a different hash value of how the key is in the database, look: db key: $ 2y $ 10 $ 5HZ4raSDAB8WHJgG07yXU.1.9t2M / V3rt...
asked by 05.07.2016 / 19:11
1
answer

Shopping cart type listing in PHP and mysqli

I am working on a list where the user will add items to the list shopping cart type, is what I can think of to explain it better, you can search and add articles and their details (key, description, quantity and cost ) but when I want to add ano...
asked by 18.07.2016 / 21:35