ko-n / Mp3StreamTitle

This repository contains two PHP libraries Mp3StreamTitle and Radio101RuTitle.
Apache License 2.0
6 stars 0 forks source link

Executing PHP script only returns int(0) #1

Closed shelomito12 closed 3 years ago

shelomito12 commented 3 years ago

I have 2 VPS, both running Ubuntu 18.04. I was doing some tests on one VPS and the scripts work fine.

VPS 1 and 2 both have the same php version:

$ php -v
PHP 7.2.24-0ubuntu0.18.04.7 (cli) (built: Oct  7 2020 15:24:25) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.24-0ubuntu0.18.04.7, Copyright (c) 1999-2018, by Zend Technologies

On VPS 1, I execute the script and returns the tittle just fine:

$ php -f radio101rutitle.php 
string(32) "Slider & Magnit - Out Of My Mind"

but on the VPS 2, I execute the script and the output is:

$ php -f mp3streamtitle.php
int(0)

Could you maybe shed some light here? - Thanks

shelomito12 commented 3 years ago

Never mind. I got it fixed by installing the following modules (I think curl was the main one needed here): sudo apt-get install php-{bcmath,curl,gd,mbstring} -y