Skip to content

Tag: php

Run one file or map in phpunit

I’m using laravel and I’ve written some test files. But how can I exec only one file? When I do for example: phpunit tests/resulttesting/school/deleteSchoolForRealTest It throws an error: Cannot …

find in set in laravel ? example

I am new in laravel. My query is i need to find out value from comma separated field. Here is my table: tags_value ╔════╦══════════════╗ ║ id ║ tags ║ ╠════╬══════════════╣ ║ 1 ║ css,html,…

PhpStorm built-in server: Debug incoming requests

I am (locally) hosting a PHP script with PhpStorms built-in Server. Is there a way to debug an incoming HTTP request? I know that there is the “PHP HTTP Request” run-configuration, which allows you to perform a request and debug it, but somehow my problem only occurs when the requests is coming fr…

ffmpeg not detecting video file duration

Am using the following code to detect video duration before uploading using ffmpeg, but it doesn’t seem to work: I need to echo video duration as text input to sql before uploading file to server. Answer i used https://github.com/wseemann/FFmpegMediaMetadataRetriever with following code to retrive video…