phpstorm

How can i setup remote project with PhpStorm with Google Compute Engine running LEMP?

别说谁变了你拦得住时间么 提交于 2019-12-25 08:47:19
问题 I was working on a web cloud app and setup Google compute Engine with micro instance (Ubuntu 14.4) with nginx, Laravel, MySQL and PHP. Now I want to setup my PhpStorm IDE with this setup to make development fast. Kindly help me with this thing. 回答1: To make development faster with PHPStorm follow the steps below: Make sure you generate a SSH key-pair(public+private) with PuttyGen. Paste the contents of your public key in GCE in the SSH Key section. You can find that section when you go to

Why i can't check my input and register my data into database?

試著忘記壹切 提交于 2019-12-25 08:18:04
问题 It does not show any error output and validate the input field. I don't know what going on here within this code. Hopefully there someone can figure out what happen. Thanks... here the database connection <?php // this will avoid mysql_connect() deprecation error. error_reporting( ~E_DEPRECATED & ~E_NOTICE ); // but I strongly suggest you to use PDO or MySQLi. define('DBHOST', 'localhost'); define('DBUSER', 'root'); define('DBPASS', ''); define('DBNAME', 'loginquestdb'); $conn = mysqli

How to launch scripts in browser from PhpStorm with correct address?

余生颓废 提交于 2019-12-25 07:03:15
问题 Test scripts are located in ...\Apache\htdocs\myproject.local\web\tests\ , web in PhpStorm project is marked as Resources, for Apache it is site's DocumentRoot, everywhere in PhpStorm settings server is set to myproject.local:80 (domain of my web-application on the local server), but when I launch script from PhpStorm using Open in browser I see address like this: http://localhost:49845/myproject.local/tests/NativeSandbox.php Where did it come from? I need address like http://myproject.local

How to launch scripts in browser from PhpStorm with correct address?

我是研究僧i 提交于 2019-12-25 07:02:33
问题 Test scripts are located in ...\Apache\htdocs\myproject.local\web\tests\ , web in PhpStorm project is marked as Resources, for Apache it is site's DocumentRoot, everywhere in PhpStorm settings server is set to myproject.local:80 (domain of my web-application on the local server), but when I launch script from PhpStorm using Open in browser I see address like this: http://localhost:49845/myproject.local/tests/NativeSandbox.php Where did it come from? I need address like http://myproject.local

PhpStorm Initialize Fields context menu not showing

徘徊边缘 提交于 2019-12-25 03:16:37
问题 I have recently uninstalled (also deleted PhpStorm ~/Library/*/PhpStorm2019.1 files) and reinstalled the IDE (2019.1.2) from scratch. I am on a Mac with Mojave 10.14.5. This was due to the fact the Material Theme UI screwed up my themes. When I started working and noticed that my beloved initialize fields option is no longer showing. I've been using initialize fields for a very long time and I can't explain what is causing it not to show. The whole context menu is not showing at all. I'm

Symfony CreateProccess Error

十年热恋 提交于 2019-12-25 01:35:14
问题 I started using Symfony today and I wanted to use the CLI. So I have installed PHPstorm. Followed all instructions. Added an up to date php 5.4 Now when I try to run: > $ php app/console generate:bundle --namespace=Acme/HelloBundle --format=yml Cannot run program "$" (in directory "E:\wamp\www\Symfony"): CreateProcess error=2, The system cannot find the specified map Any ideas on how to fix this? Edit > php app/console generate:bundle --namespace=Acme/HelloBundle --format=yml Cannot run

PhpStorm/Xdebug not stop in breakpoints

不想你离开。 提交于 2019-12-24 19:09:43
问题 I have problem to make xdebug working with PhpStorm, from log it's looks like that xdebug working fine, but PhpStorm from some reason not oblivious from it. Also, the debugger working if I check "Break at first line in PHP scripts" from PHP->Debug setting menu, but than if I click "Resume program[F9]) it's skip my breakpoint, the telephone icon ("listen for PHP Debug connections") I think I configure everything right and also pass the validation check: my 20-xdebug.ini: zend_extension=xdebug

XAMPP PhpStorm XDebug not stopping on breakpoints

試著忘記壹切 提交于 2019-12-24 15:26:48
问题 I have a Windows 7 machine with XAMPP(Apache 2.4.4 - Win32 PHP 5.4.16) and PHPStorm 6.0.3 For the life of me I cannot get XDebug working on this machine!! I look at my PHPInfo page: This tells me that I need to download XDebug "PHP 5.4 VC9 TS (64 bit)" I download and copy to produce: C:\xampp\php\ext\php_xdebug-2.2.3-5.4-vc9-x86_64.dll My PHP.ini has: [XDebug] zend_extension_ts = "C:\xampp\php\ext\php_xdebug-2.2.3-5.4-vc9-x86_64.dll" xdebug.profiler_append = 0 xdebug.profiler_enable = 1

How do I disable html closing tag completion?

纵饮孤独 提交于 2019-12-24 11:40:55
问题 In phpstorm whenever I type </ it automatically closes what it thinks is the appropriate tag to close but I'd like to turn this off, but I cannot find the setting to do this. Does anyone know what setting this is? 回答1: Settings | Editor | Smart Keys | Automatically insert closing tag P.S. Settings screen has very handy search box which will narrow possible settings a lot . 来源: https://stackoverflow.com/questions/22486549/how-do-i-disable-html-closing-tag-completion

GIt preCommit (maybe with help PhpStorm) and php-cs-fixer

最后都变了- 提交于 2019-12-24 10:10:08
问题 I want automatic process, when I commit file my php-cs-fixer trn and fix all files which add to commit, maybe PhpStorm have some opportunity, running external tools before commit or push. I found only after commit, but I don't need after, need before. And I try tune my git, using pre-commit event I create in my project file, like example, just without extension sudo gedit .git/hooks/pre-commit then add code #!/usr/bin/env bash ROOT="/home/ivan/host/master" echo "php-cs-fixer pre commit hook