Skip to content

Tag: linux

PhpUnit: how to fake an outdated file?

I have a method in a class, which checks if a file is older than a day. It achieves this by getting the last change date of the file and comparing it with “now”: I want to write a Unittest faking an outdated file. I tried to change the file date with touch: The output gives me the information that

xdebug installed successfully on linux but not working

I have installed and configured Xdebug on my Linux system, however, I can’t see “Xdebug” in my PHPinfo file despite enabling and when i put the phpinfo source code page in the xdebug wizard , shows me that: Xdebug installed: no Have you any ideas on how to solve this issue? Also, I added the…

How to serve two laravel apps on 1 domain?

I have two laravel apps like this: I’m trying to serve them on linux machine, I can’t seem to get them to work together. I want to have two urls like this: https://test.example.co https://test.example.co/dashboard Answer I succeeded serving them using another subdomain, the “/dashboard&#8221…

Linux can’t find process started by PHP [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …

Check if PDFTOHTML is installed on server

I’m trying to check before running a php script if pdftohtml is installed on server. Is there a way to check if pdftohtml is installed on server (linux or mac) from within the code. I’m looking for something similar to function_exists() Answer Perhaps, the following will solve your case: which ret…