balamda Posted May 1, 2010 Share Posted May 1, 2010 there are several problems with this site but this is the first one i want to solve, the others probably involve links, as the site was changed from one host's server to another. http://www.miniartgallery.com/ it is showing the last 2 lines of this script, i figure it has to do with the -> but am not sure <?php require_once("class_arraytojs.php"); include("includes/skdata_p1_inc.php"); $myarray = $navlist; $easyconvert = new array_to_js(); $easyconvert->add_array($myarray, "p_array"); echo $easyconvert->output_all(); ?> Link to comment https://forums.phpfreaks.com/topic/200396-total-newbee/ Share on other sites More sharing options...
mikesta707 Posted May 1, 2010 Share Posted May 1, 2010 what errors are you getting. Link to comment https://forums.phpfreaks.com/topic/200396-total-newbee/#findComment-1051632 Share on other sites More sharing options...
ialsoagree Posted May 1, 2010 Share Posted May 1, 2010 The object method access operator "->" shouldn't be the problem as it's interpreted by the PHP parser (HTML is interpreted by the browser, and the browser doesn't get any information to interpret until the server has sent it a response, which is after the PHP parser gets to do it's thing). Instead, your problem is probably within one of your functions (either how the output is being prepared, or how it's being written to the browser). You should check your method here: $easyconvert->output_all(); As well as how your output is being prepared. Link to comment https://forums.phpfreaks.com/topic/200396-total-newbee/#findComment-1051633 Share on other sites More sharing options...
balamda Posted May 1, 2010 Author Share Posted May 1, 2010 i c that there is no prob with the php script but why is it printing: add_array($myarray, "p_array"); echo $easyconvert->output_all(); when u visit the site? www.miniartgallery.com thx for the quick responses, i'm really new at all web programming languages. Link to comment https://forums.phpfreaks.com/topic/200396-total-newbee/#findComment-1051643 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.