yandeu / five-server-vscode

⚡ VSCode Extension for Five Server.
https://marketplace.visualstudio.com/items?itemName=yandeu.five-server
Other
121 stars 9 forks source link

.php get request not working #16

Open BishBish123 opened 2 years ago

BishBish123 commented 2 years ago

when I preview html with get requests, preview shows change in url as expected. When changed to php, it does not work(nothing happens). I tried uninstalling and installing brew php and other versions of php, but nothing is working

yandeu commented 2 years ago

Can you share your fiveserver config file?

BishBish123 commented 2 years ago

// fiveserver.config.js module.exports = { highlight: true, // enable highlight feature injectBody: true, // enable instant update remoteLogs: true, // enable remoteLogs remoteLogs: "yellow", // enable remoteLogs and use the color yellow injectCss: true, // disable injecting css navigate: true, // enable auto-navigation php: "/opt/homebrew/bin/php", //php: "/Applications/XAMPP/bin/php" };

kyubson commented 1 year ago

Hi @yandeu, thanks for this amazing extension.

I am having some issues with the GET request as well. The href is created correctly. When clicked, the new page is loaded with the parameter which is added to the url, but I am unable to read the value of the parameter.

Below my config file:

// fiveserver.config.js
module.exports = {
    highlight: true, // enable highlight feature
    injectBody: true, // enable instant update
    remoteLogs: true, // enable remoteLogs
    remoteLogs: "yellow", // enable remoteLogs and use the color yellow
    injectCss: false, // disable injecting css
    navigate: true, // enable auto-navigation
    php: "C:\\xampp\\php\\php.exe"   // Windows
  };

Thank for checking on this. Best, JK

yandeu commented 1 year ago

@kyubson You're welcome :)

Please see and read https://github.com/yandeu/five-server-with-php