Skip to content

Commit

Permalink
update readmes
Browse files Browse the repository at this point in the history
  • Loading branch information
unfulvio committed Jul 9, 2015
1 parent aad71bb commit cdfb67b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,15 @@ In the JavaScript console you will see printed any PC::debug() information, PHP
## FAQ

#### Is this an official plugin from PHP Console author?

>No, but it makes use of Sergey's PHP Console library as it is.
#### Does it work with Firefox, IE, Opera or other browsers?

>No it doesn't, unless PHP Console browser extension is ported, for example, as a Firefox add-on.
#### Can I use PHP Console in a live production environment?

>You *can* but it is probably not a good idea. You should do your debugging and testing on a development/testing environment on a staging server or local machine. Likewise, you normally wouldn't want to turn on PHP error reporting or set `WP_DEBUG` to `true` in a live site as you wouldn't want to display error information to public. Furthermore, PHP Console allows execution of any remote PHP code through terminal - for this you can set a strong password and restrict the IP address range to access the terminal, but still it's not advisable. Besides putting your site at risk, you will also add more load to your server.
>You *can* but it is definitely not a good idea. You should do your debugging and testing on a development/testing environment on a staging server or local machine. Likewise, you normally wouldn't want to turn on PHP error reporting or set `WP_DEBUG` to `true` in a live site as you wouldn't want to display error information to public. Furthermore, PHP Console allows execution of any remote PHP code through terminal - for this you can set a strong password and restrict the IP address range to access the terminal, but still it's not advisable. Besides putting your site **at risk**, you will also add more load to your server.
#### Why are PHP arrays shown as objects?

>The JavaScript console prints PHP variables as JavaScript variables. Associative PHP arrays such as `['key1' => 'var2', 'key2' => 'var2', ... ]` are shown as objects; automatically indexed arrays like `[ 'var1', 'var2', ... ]` are shown as arrays.
#### I got `Fatal error: Class 'PC' not found in 'my code'` - what's that?
Expand All @@ -92,7 +88,6 @@ You could move your debug code or either do something like
PC::my_tag($my_var);
});


or

// PHP Console autoload
Expand Down
4 changes: 4 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ None yet.

== Upgrade Notice ==

= 1.3.7 =
To improve compatibility with other plugins, now stores session data in a file.
You need to be able to write inside WP PHP Console plugin dir for better compatibility.

= 1.3.5 =
PHP 5.4.0 is the minimum PHP required version to run this plugin.

Expand Down

0 comments on commit cdfb67b

Please sign in to comment.