Skip to content

Tag: php

Load JSON File and print specific Parts

im building a simple webpage for school. Sadly ive got several problem. Im using an Apache Webserver with XAMPP. I got a JSON-File like: This file is on my Webserver too. I want to load this file especially with XHTML Request and then want to print several parts of this JSON File into HTML/PHP Code. I watched…

php array: if identical key values then choose highest by other key value

I have an array with the given Keys like above. I need a new array that gives me the highest Version IF module is same. How would I do that? This is what I tried Answer I tried to debug your code though.The problem is that you try to access element [0] of $moduleF. You should change $moduleF[$j][‘Module…

why is curl waiting for a keypress?

I simply want to run the following command: It seems to connect just fine, but it hangs waiting for a keypress. How can I automatize this in a script? EDIT: I have absolutely no idea but it solved by erasing the — part of the URL. Can someone explain to me why? Answer In bash, you must use quotes (singl…