Skip to content

PHP passthru execution status

I’m trying to use the PHP passthru function to execute an OS command on Linux. I am using it as follows. The Linux command is just to list files in a directory I know does not exist and then I am just echoing the status to make sure it’s not 0. However the status seems to be the entire output

Get the size of a folder in Linux server

While the following code works well in windows, in Linux server (of pythonanywhere) the function only returns 0, without errors. What am I missing? Ref: Code from https://stackoverflow.com/a/37367965/6546440 Answer The solution was given by @gilen-tomas in the comments: A complete path is needed!

Find usage % of a directory in the disk [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 …

How to transfer data with high speed through USB?

I’m trying to find a way to send/receive data through USB port of an ARM processor on a zynq board (ZC706) running petalinux. I searched on the net and I’m totally confused where to begin. I found solutions but those did not consider USB to be connected to ARM processor, high-speed data transfer o…

Zip Junk Paths Option Not Working

I have a bit of an odd one that I can’t seem to figure out. Here’s the setup. I am downloading a bunch of files given to a script via array. The files are not necessarily in the same folder, so I don’t think just using cd to change directory and then add the files I want is going to