Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This just not an ISSUE but just an START UP help request #9

Closed
byman64 opened this issue Nov 15, 2013 · 3 comments
Closed

This just not an ISSUE but just an START UP help request #9

byman64 opened this issue Nov 15, 2013 · 3 comments
Labels

Comments

@byman64
Copy link

byman64 commented Nov 15, 2013

Hi, I am trying to use php-console.
I installed the chrome plug-in and in my php project I just added the following lines.

Are good enough to see something in the chrome console?

thanks
ciao

require_once($_SERVER['DOCUMENT_ROOT'].'/myproject/php/php-console/src/PhpConsole/__autoload.php');
$handler = PhpConsole\Handler::getInstance();
$handler->start();
$handler->debug('called from handler debug', 'some.three.tags');

@barbushin
Copy link
Owner

Hi

Not $SERVER['DOCUMENTROOT'] but $_SERVER['DOCUMENT_ROOT'] :) you missed _ after $ and between DOCUMENT_ROOT :)

@byman64
Copy link
Author

byman64 commented Nov 15, 2013

sorry but the undescore disappear during the past in the chat...I think.....my source it's correct...infact I dont have php error...
BTW I just solved myself...

I just moved the php code on top, so the above script starts from as 1st line of my php page...

I think I will love your console ;-)

thanks

@barbushin
Copy link
Owner

You're wellcome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants