php storm file not opening - phpstorm

I installed xampp, composer, nodejs and npm, created a project.
But when I used the command php storm, it shows as follows:
C:\Users\Hp>cd freeCodeGram
C:\Users\Hp\freeCodeGram>php storm .
Could not open input file: storm

try without the space between php and storm
phpstorm .
you are now trying to run the file storm as a php command or whatever - that doesnt work :)

Related

Update Yii2 project to php 7.2

I have are project writed on php 7.1 https://github.com/triest/Yii-curse
When you run on the server PHP version 7.2, you get the error:
(W:\domains\Yii-curse\yii\basic\web/../vendor/autoload.php): failed to open stream: No such file or directory in W:\domains\Yii-curse\yii\basic\web\index.php on line 7
But these files are in place!
Your server pointing to right file but it is unable to find autoload.php in vendor, so make sure to double check.
As I can see you have composer.json on two places so probably you done composer install from wrong folder.

how to run dotnet core's standalone program on mac

a rudimentary question, but please let me know.
I want to run the following program which will process and return the result by json when accessed by GET or POST.
FileManagerController.cs
For example, in PHP you just need to place it in the htdocs folder of Apache.
I would like to do the same thing with dot net core mvc.
but I don't know what kind of words to search.
Also, in the near future we would like ruby to work the same way in another project.(In a way that doesn't use a framework such as rails)
So, please tell me how to find out how to run various languages alone on a web server.
You need to make a "project" (file type .csproj) that you can build and run on your machine. Check out the Getting Started with ASP.NET page for instructions to install the SDK and create a new project and run it.
To run your code file above, you can:
$ dotnet new mvc
Copy the above FileManagerController.cs file into the generated Controllers folder.
$ dotnet run
Your app will be running on http://localhost:5000, you can hit your web site using the url /FileManager.

YII2 : kartik Select2

i have worked on project in advanced yii2 , it works fine in localhost but after i upload it there is a message appear that says :
Class 'kartik\select2\select2' not found
the weird thing is : select2 works fine in localhost and i upload all the files
Your solution could be:
use kartik\select2\Select2;
Maybe you are using Windows on localhost and Linux on the remote server.
I assume, that you didn't something like "download to localhost kartik select2, then just copy&paste /vendor/kartik-v/yii2-widget-select2 to server. I hope. Because you shouldn't do like that.
Add this line to require section in project-directory/composer.json file
"kartik-v/yii2-widget-select2": "#dev"
Then run in project directory command:
composer update
If you don't have access to a command line interface in your server to run the composer update command, you need to upload the folder "vendor/composer/" and the "vendor/autoload.php" file to your web server.
When moving your code to production, you have to install all libraries used by composer with
composer install
or
php composer.phar install
Then the same versions of libraries get installed as on your dev site where you tested the application.
This is the reason why in .gitignore the file composer.lock is NOT included: Just to ensure the same lib versions on dev and prod sites.

Install Laravel 5 on Openshift - gives blank page

I installed Laravel 5 on Openshift via Git. Hitting my app (the clean install) in a browser returns a blank page. Any idea what could be the cause?
Here is the URL: http://dev-rogercreasy.rhcloud.com/
Looks like you have old composer. I had the same error. To fix it go to your php dir and update composer.
In my case I gone to folder where placed my php.exe and ran command composer self-update:
cd d:\work\OpenServer\modules\php\PHP-5.5>D:\work\OpenServer\modules\php\PHP-5.5\
composer self-update
After it I gone back to folder with project and composer install command completed without any errors.
Check out the Laravel 5 QuickStart. The QuickStart uses a custom version of the standard OpenShift PHP 5.4 cartridge. The only difference is the included version of Composer has been updated.

Preview a PHP app on nitrous.io

I'm using the cloud IDE nitrous.io for developing a php app,
and I want to ask if it's possible to preview my app using the preview menu?
thanks for help.
Edit: PHP is now available on Nitrous.IO. PHP5, Apache2, and Composer can be installed with the Autoparts package manager. To install these tools, run each of the following commands within the console:
parts install php5
parts install apache2
parts install composer
You will also need to start the Apache server once installed.
parts start apache2
Take a look at the PHP guide for more information.
set in php.ini:
short_open_tag = On
or use <?php