gajus / xhprof.io

GUI to analyze the profiling data collected using XHProf – A Hierarchical Profiler for PHP.
http://xhprof.io/
Other
429 stars 103 forks source link

Trying locally but nothing shows up #5

Closed gabrielstuff closed 11 years ago

gabrielstuff commented 11 years ago

Hi ! Just installed on OSX. UI brings up, but nothing show.

The code seems not to be correctly parsed :

<body class="template-<?=$template['file']?>">
    <div id="navigation">
    <div class="button-filter">Filter</div>
    <div class="button-summary">Summary</div>

    <a href="<?=$e['url']?>" class="<?=$e['class']?>"><?=$e['name']?></a>
    <a href="<?=$e['url']?>" class="<?=$e['class']?>"><?=$e['name']?></a>
    <a href="<?=$e['url']?>" class="<?=$e['class']?>"><?=$e['name']?></a>

</div>

    <?=\ay\display_messages()?>

    <?=$template['body']?>

    <div id="footer">
    <p><a href="http://xhprof.io/" target="_blank">XHProf.io</a> (v<?=VERSION?>) is developed and maintained by <a href="http://anuary.com/gajus" target="_blank">Gajus Kuizinas</a>.<br>This software is distributed under the <a href="https://github.com/anuary/xhprof.io/blob/master/LICENSE" target="_blank">GNU General Public License</a>.</p>
</div></body>

Any help would be appreciate. Your work looks nice :)

gajus commented 11 years ago

What makes you say that the code seems to be not correctly parsed? There is nothing wrong with the code extract that you have pasted.

gabrielstuff commented 11 years ago

Hi thanks for your prompt reply.

<?=$e['class']?> looks like non-parsed php code to me.

Also this : <?=\ay\display_messages()?>

Finally the fact that I do not see anything popup :) in the UI

gajus commented 11 years ago

What is the PHP version that you are using?

gabrielstuff commented 11 years ago

Hey !

PHP 5.3.17 (cli) (built: Nov  5 2012 17:17:36) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
    with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans
gajus commented 11 years ago

PHP introduced namespace support in PHP 5.3 (http://www.php.net/manual/en/language.namespaces.rationale.php). Therefore, \ay\display_messages() is perfectly valid. As for the short tags, you need to modify your php.ini configuration, http://stackoverflow.com/questions/1386620/php-echo-vs-php-short-tags.

gabrielstuff commented 11 years ago

ok, then we might add that to the readme :) testing with a php.ini custom file per site.

Thx

Le mardi 6 novembre 2012 à 15:42, Gajus Kuizinas a écrit :

PHP introduced namespace support in PHP 5.3 (http://www.php.net/manual/en/language.namespaces.rationale.php). Therefore, \ay\display_messages() is perfectly valid. As for the short tags, you need to modify your php.ini configuration, http://stackoverflow.com/questions/1386620/php-echo-vs-php-short-tags.

— Reply to this email directly or view it on GitHub (https://github.com/anuary/xhprof.io/issues/5#issuecomment-10112806).