fastshell icon indicating copy to clipboard operation
fastshell copied to clipboard

PHP?

Open jamesburt85 opened this issue 6 years ago • 4 comments

Hi, I am a relative newbie, so please bear with me.

Can I use PHP on FastShell? Or is it just html in the index.html file?

jamesburt85 avatar Oct 18 '17 10:10 jamesburt85

Hi, yes you can use PHP in FastShell. Just change the gulpfile.js

gulp.task('browser-sync', ['css', 'js'], function() {
    browserSync.init({
        proxy: "localhost"
    });
});

HosseinKarami avatar Oct 18 '17 10:10 HosseinKarami

Thanks for the quick response.

Do I add that code to the gulpfile.js and then rename the index.html to index.php?

jamesburt85 avatar Oct 18 '17 10:10 jamesburt85

yes 👍

HosseinKarami avatar Oct 18 '17 10:10 HosseinKarami

Hmm. I did that but in my localhost I get this on the screen 'Cannot GET /'

jamesburt85 avatar Oct 18 '17 10:10 jamesburt85