Questions tagged as 'php'

1
answer

Generate thumbnail of video in php [duplicate]

I wanted to get the thumbnail of a video after the video has been uploaded on the site, I've already looked for a lot and only what I think is about ffmpeg and the "tutorials" basically tell you the commands (do not teach or install). Would it...
asked by 05.06.2017 / 18:25
0
answers

Problems with AJAX

I'm trying to delete a photo with ajax. I was able to collect the data (location of the photo) and now I was trying to receive the same location with another .php file. What is failing me is this same "transfer". I think I did everything r...
asked by 28.06.2017 / 16:47
1
answer

Why are you returning this error?

I'm using the jQuery Datatable plugin and started server-side activation but when loading it it informs an alert:    DataTables warning: table id = example - Invalid JSON response. For more information about this error, please see link...
asked by 29.06.2017 / 22:49
0
answers

Permission problem uploading files

I've created a product listing that contains a upload function for images. The operation is being done normally, the file goes to the given folder, and through the system until I can see the image from which I did the upload . The problem...
asked by 03.07.2017 / 18:47
1
answer

Select to return JSON [closed]

Hello! I have the following code in PHP: login.php <?php $msg; if (isset($_POST['login']) && isset($_POST['senha'])) { $login = str_replace(" ", "", $_POST['login']); $senha = str_replace(" ", "", $_POST[...
asked by 14.06.2017 / 14:24
3
answers

How to redirect user after login according to user type?

In the system there are 2 types of users 1 = admin and 2 = teacher, and after logging in I need to redirect each one to a different page. This is my php and html code.        require "lib/authenticate.php"; $error = false; $password = $email =...
asked by 08.06.2017 / 19:46
2
answers

PDF Upload by ajax

I have a form with several input text and 1 input file (where I send a PDF file). If I send by ajax it does not send the "FILE", I tried sending it without ajax, just by submit, and it worked. The question is even in the ajax submission. I did s...
asked by 07.06.2017 / 20:33
1
answer

How to modify the list in the wordpress code?

Good afternoon, I have development problems. I want to know how I modify the appearance of the menu I'm making. In function.php is the following code: <?php //menu function register_my_menus() { register_nav_menus( array(...
asked by 20.08.2017 / 20:46
1
answer

Slim error BadRouteException

Checking the logs on the server found the following error: Slim Application Error: Type: FastRoute\BadRouteException Message: Static route "/client/schedules" is shadowed by previously defined variable route "/client/([^/]+)" for method "GET"...
asked by 22.08.2017 / 10:41
0
answers

Is it possible to set a task in the task scheduler using php?

I'm not talking about running a php, but creating a new task in the scheduler, through php script executed by the user, when browsing the site. It's possible? If not, what alternative do I have to do this on windows? (schedule a task via php)  ...
asked by 30.03.2017 / 03:57