A
A
Alexey Vechkanov2016-03-27 04:42:55
PHP
Alexey Vechkanov, 2016-03-27 04:42:55

How to run PHP in browser-sync (gulp)?

For building I use gulp and the browser-sync module. The work required executing PHP scripts. How can PHP scripts be processed? browser-sync creates a local server, but accordingly without PHP. Installed OpenServer. How to make PHP scripts run on local browser-sync server?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Oleg, 2016-03-27
@SmiteVils

gulp.task('browser-sync', function() {
    browserSync.init({
        proxy: "yourlocal.dev"
    });
});

A
Alexey Vechkanov, 2016-03-27
@SmiteVils

Found another cool video - https://www.youtube.com/watch?v=wE-Oi84UJXE

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question