The actual code is as follows:
if (file_exists($filename)) {echo $player; } else { echo 'something';
but it displays the player even if the identifier is not called from the URL
I need something like this:
check if $filename exists and $id it is not empty then echo $player if else echo something else
i check if $ id is empty with
if(empty($id)) echo "text";
but I donβt know how to combine them
Can someone help me?
Thanks for all your code examples, but I still have a problem:
How can I check if $ id is not empty and then repeat the rest of the code
source share