I try to create a very simple web application on 000webhosting, but when I try to implement this:
<?php
include_once("JSON.php");
$json = new Services_JSON();
$link = mysql_pconnect("******", "******", "******") or die("Could not connect");
mysql_select_db("******") or die("Could not select database");
$arr = array();
$rs = mysql_query("SELECT * FROM users");
while($obj = mysql_fetch_object($rs)) {
$arr[] = $obj;
}
Echo $json->encode($arr);
?>
But I got this warning/error. Could you help me please?
Warning: include_once(JSON.php) [function.include-once]: failed to open stream: No such file or directory in /home/a1622045/public_html/index.php on line 3
Warning: include_once() [function.include]: Failed opening 'JSON.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a1622045/public_html/index.php on line 3
Fatal error: Class 'Services_JSON' not found in /home/a1622045/public_html/index.php on line 4