Komodo edit syntax highlightening - php

I just installed Active state's komodo edit on my Windows. It's running fine but unable to detect syntax errors in php file. Like this code
<?php>
phpinfo() foo[] is my name
?>
There must be a red error highlighted line beneath the error.
Any idea?

Should help you this forum thread?
http://community.activestate.com/forum/php-syntax-checking-komodo

Related

intelephense undefined constant/ vscode

code completion doesn't work (vscode on mac) when php open/ closing tags are on one line.
code completion works when three lines are used. please see screenshot.
how could this be resolved?
php code completion
cheers
PJ
What extension do you use? This one works fine for me (see screenshot). Also you should be able to activate it manually with CTRL+SPACE

Using Brackets and MAMP to preview php file

I need help to preview my php file. I've been trying for days now and can't get it to work. My apache and mySQL servers are both connecting.
I've set up my Brackets and it did open up a preview screen in Chrome but whatever i have in the file just won't show up.
Please help me out, thanks!
Angel
From here, it appears that you're probably getting a silent PHP parse error, you can check the PHP log in MAMP to confirm.
The standard PHO opening tag is
Give this a try:
<?php
echo "Hello world";
?>

Netbeans does not show error messages

Helo,
my Netbeans does not show error messages when some error occurred in code. It used to show red icon on the line where error (eg. syntax error) occurred. Now it shows icon only next to filename in file tab. I do not remember if I changed some IDE settings - there was no reason to disable error messages.
I expect red icon on the line number 85, like it is here
Maybe I am missing some option in netbeans preferences. I have tried to find it but with no result.
This doesn't apply to OP because they are using .php extensions, but it might help someone else...
For me the issue was because I'm developing with drupal and so most files don't end with php. To fix my issue:
Tools | Options | Miscellaneous | Files
Click New next to File Extension and choose 'text/x-php5' as the associated file type.
Restart IDE
I do not know if you have fixed the problem, but I had the same issue here.
I finally successed in fixing it.
In "Tools" > "Options" > "Editor tab", then in "Hints" tab, I disabled the "Braces" section for PHP language.
I don't know why, but now syntax errors are shown in the left side bar as your screenshot shows.
I hope this can help you!
EDIT: I'm using Netbeans v8.1 for Linux.

Xdebug on ubuntu and phpStorm doesn't show any erros

So I am new in ubuntu and I installed LAMP and get it to work with phpsotrm properly. The only problem i have is that when i have errors in my code it doesn't show me any errors, just a blank page.
Now with phpstorm I manged to connect with xDebug and when I checked phpinfo() I found:
http://imgur.com/zZnAi7d
Here is the phpstorm connection:
http://imgur.com/ckrkeHp
I changed proper php.ini file and I added following line at the end of the file:
[XDebug]
;zend_extension="/usr/lib/php5/20121212/xdebug.so"
;xdebug.remote_enable=1
;xdebug.remote_port="9000"
;xdebug.profiler_enable=1
;xdebug.profiler_output_dir="<AMP home\tmp>"
Still noting is shown, not even in the console or in the page source. Is there any fix for this issue? I tried to search the internet but couldn't find anything.
Just follow those intructions:
Let PHP show all errors
It seems that you've got disabled showing any errors.
I am such a dummy it actually works just the certain errors that i was trying to simulated didn't really effect xDebug.
I am so sorry for wasting your time.

PHP error don't display on Opensuse 11 Firefox

On opensuse 11, Firefox isn't displaying php errors. For exemple, I have correct.php and broken.php :
correct.php
<?php echo("test"); ?>
broken.php
<?php echo("toto ?>
Loading correct.php, displaying "test"
Loading broken.php, displaying "test" again
In fact, the loaded page seems the same.
I tried on Windows 7 Firefox and it's showing :
PHP Parse error: syntax error...
My PC is on Opensuse, I borrowed the Windows one to test this thing...
And I don't have access to the server (only a ftp on a sub-folder of the website)
Thanks a lot if you help me, if you don't thanks anyway cause stackoverflow's helping me a lot (even without asking 8D )
edit : If I'm going to broken.php with a link (), the URL isn't changing on OpenSuse FF, on Windows FF it's going to the page with the php error
at the php.ini check if the display_error = on
if not change it to on then restart the web server
then try again
Try putting this at the top of your file:
error_reporting(E_ALL);

Categories