Andrea

Avatar
  • Total activity 57
  • Last activity
  • Member since
  • Following 0 users
  • Followed by 0 users
  • Votes 0
  • Subscriptions 15
  • Created

    Can't use Xdebug anymore

    Since yesterday phpstorm stopped working with xDebug.Environment:- Mac OS X 10.9- MAMP PRO 2.1.4- PHP 5.4.10This, from terminal, shows nothing:netstat -an | grep 9000I'm using MAMP PRO, with PGP 5....
    • 1 follower
    • 1 comment
    • 0 votes
  • Created

    How to customize contextual menu?

    I'd like to add items to the contextual menu when in the editor.To be more specific, I'd like to have a bookmark toggler when right-clicking onm any part of my code.I need that since I can't use th...
    • 2 followers
    • 2 comments
    • 0 votes
  • Created

    WordPress prepared queries

    In WordPress you often make use of SQL statements such as this:$post_type = $wpdb->get_var($wpdb->prepare("SELECT p.post_type FROM {$wpdb->posts} p WHERE p.ID=%d", $request_id));In this case PhpSto...
    • 2 followers
    • 0 comments
    • 3 votes
  • Created

    Debugging CLI php script

    Hello,I've tried to find a way to debug a CLI php script I'm working on and the few solution I've found all require editing one or more .ini anc configurations files, that I don't want to edit, sin...
    • 3 followers
    • 14 comments
    • 0 votes
  • Created

    Define common global variables types as a project setting

    I usually add PHPDoc comments to global variables to remove all the code inspection warnings and to get intellisense, but a client a work for is complaining about them and asked me to remove all th...
    • 2 followers
    • 5 comments
    • 0 votes
  • Created

    Exclude one or more directory from inspection

    I've some recurring inspection issues caused by third part javascript and php libraries (e.g. TinyMCE, jquery, etc.).I'd like to set PhpStorm in order to ignore files and/or directories, so I can g...
    • 2 followers
    • 6 comments
    • 0 votes
  • Created

    URI is not registered: what should I do?

    I'm facing a small issue with the code below:                <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"     width=...
    • 2 followers
    • 8 comments
    • 0 votes
  • Created

    Undefined class self in included file

    Hello,I have a class that in a function has a quite long HTML part.I've decided to move this block in a separated file and include it where I need it.However, this file, to get data from some stati...
    • 6 followers
    • 6 comments
    • 2 votes
  • Created

    How to configure global external libraries?

    Hello,My development is by 99% related to WordPress or WordPress plugins.Each time I start a new project I have to configure my external libraries in order to point to a folder that contains WordPr...
    • 3 followers
    • 6 comments
    • 0 votes
  • Created

    JSLint: unexpected '?'

    Not sure if this is a bug or some mistake I don't get.PhpStomr 5.0.3 is showing me this message on each first line of any php script that obviously start with "<?php":     Name:          grand_tota...
    • 2 followers
    • 1 comment
    • 0 votes