Questions tagged as 'php'

1
answer

hide div from php file

I have a function that calls a php file, this file returns a value and based on this, in the ajax success, I hide a div or not. This is a security problem and I was wondering if from the php file I'm calling from the function, I could hide the d...
asked by 26.09.2018 / 16:01
0
answers

Uncaught exception 'PHPExcel_Calculation_Exception' Formula Error: An unexpected error occured '

I'm working with the PHPExcel library and I'm trying to extract the data from an excel file using the getCalculatedValue() function, but that error comes out:    (Uncaught exception 'PHPExcel_Calculation_Exception' Formula Error:   An...
asked by 26.09.2018 / 19:59
0
answers

Problem when printing a table with JSPDF

Greetings developer friends, I am using jspdf to print a div that contains my table generated by PHP, I bring the table of a MySQL database, the point is that when I click on a button I generate a PDF with jspdf of the div that contains the tabl...
asked by 06.10.2018 / 22:08
1
answer

Change input type="radio" by input type="image" + php

good day, I currently use the input type radio with the post method to get information: <td class="borrar"> <form method="post" action="location.reload()" name="eliminado"> <input type="r...
asked by 02.10.2018 / 00:40
1
answer

Login with user privileges

I log in with privileges, that is, if it is an administrator that redirects it to another page, but I have a problem with my code since what I need to compare is my field username (username == administrator) If it is equal to administrator t...
asked by 03.10.2018 / 01:54
0
answers

OpenCart 3.0.2 Data Directory

The OpenCart 3.0.2 version forces us to have the data directory (storage) outside the public directory and with specific permissions. The issue is that installing it on free servers does not allow us to disable open_basedir for those directories...
asked by 03.10.2018 / 11:49
1
answer

Problems saving file type images, xls, doc in IBM CLOUD OBJECT STORAGE

I am doing an api in php with CURL to receive a file from a form which places it in the Cloud Object Store of IBM Cloud. All good with pdf and txt files, but when sending image or office files when downloading them from the bucket (direct fro...
asked by 26.09.2018 / 15:20
0
answers

PHP - Twitter reverse auth credentials

I am working with the Twitter API in php, with the libraría of Abraham's Twitteroauth, everything is fine until the login, but when I redirect my callback file it gives me the error:    TwitterOAuthException: Reverse auth credentials are inva...
asked by 26.09.2018 / 14:57
0
answers

Get different data with same ID in CodeIgniter with a single Query

Let's say that I have a system of categories, tags and images where when creating a post, it is sent to my table of relations: id, post_id, term_id, file_id, status, type. Obviously when there is a value in the term_id, the type is basical...
asked by 30.09.2018 / 12:43
0
answers

Create an array within another array for each different return

Maybe the title of my question is wrong, but I am commenting, I am working with PHP 7, I want to create an array within another array, but according to certain parameters, this is the code I have at this moment: $RETORNO = []; for($j=...
asked by 27.09.2018 / 01:17