the issue in ATOM - the editor: unable to run php-script :: guess that i miss some php-indigriends on the Linux-machine
well i guess that i need to set the php -
note: i am on MX-Linux - and i can install all what is needed via terminal
<?php
include_once('../../simple_html_dom.php');function scraping_IMDB($url){// create HTML DOM
$html = file_get_html($url);// get title
$ret['Title']= $html->find('title',0)->innertext;// get rating
$ret['Rating']= $html->find('div[class="general rating"] b',0)->innertext;// get overviewforeach($html->find('div[class="info"]')as $div){// skip user commentsif($div->find('h5',0)->innertext=='User Comments:')return $ret;
$key ='';
$val ='';foreach($div->find('*')as $node){if($node->tag=='h5')
$key = $node->plaintext;if($node->tag=='a'&& $node->plaintext!='more')
$val .= trim(str_replace("\n",'', $node->plaintext));if($node->tag=='text')
$val .= trim(str_replace("\n",'', $node->plaintext));}
$ret[$key]= $val;}// clean up memory
$html->clear();
unset($html);return $ret;}// -----------------------------------------------------------------------------// test it!
$ret = scraping_IMDB('http://imdb.com/title/tt0335266/');foreach($ret as $k=>$v)
echo '<strong>'.$k.' </strong>'.$v.'<br>';?>
whe i activate the Run in the scripts - then i get back the following ..:
unable to run
php
Did you start Atom from the command line?
atom .
Is it in your PATH?
PATH: /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin
well i guess that i need to set the php -
note: i am on MX-Linux - and i can install all what is needed via terminal
look forward to your advices
regards
btw: i want to install vscode on MX-Linux - if you have any ideas & hints - i would be more than glad. - just contact me#!
The site is pretty sparse on features / tech specs. Can I plug it into a PC/hone/Switch via USB-C and use it as an external display? If so, what's the virtual resolution of the screen, the refresh rate, PPI of the image etc? Is the text crisp enough to use for coding at say 12pt? Is it good enough for playing dark games, like say Path of Exile 2? How about fast games like car racing games?
Just how do they expect anyone to order this thing without giving out all this info?
I place most of the blame for the crappy state of gaming on smartphones. But Unreal Engine gets some of the blame also for allowing everyone and their dog to make a video game. The diamonds get buried in a massive dunghill, which from the sound of it is about to grow much larger.
Question
tarifa
dear experts,
the issue in ATOM - the editor: unable to run php-script :: guess that i miss some php-indigriends on the Linux-machine
well i guess that i need to set the php -
note: i am on MX-Linux - and i can install all what is needed via terminal
whe i activate the Run in the scripts - then i get back the following ..:
unable to run php Did you start Atom from the command line? atom . Is it in your PATH? PATH: /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbinwell i guess that i need to set the php -
note: i am on MX-Linux - and i can install all what is needed via terminal
look forward to your advices
regards
btw: i want to install vscode on MX-Linux - if you have any ideas & hints - i would be more than glad. - just contact me#!
Edited by tarifaLink to comment
https://www.neowin.net/forum/topic/1393407-in-atom-the-editor-%C2%A0unable-to-run-php-script-guess-that-i-miss-some-php-indigriends-on-the-linux-machine/Share on other sites
0 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now