five-server-vscode icon indicating copy to clipboard operation
five-server-vscode copied to clipboard

.php get request not working

Open BishBish123 opened this issue 3 years ago • 4 comments

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

BishBish123 avatar Apr 09 '22 06:04 BishBish123

Can you share your fiveserver config file?

yandeu avatar Apr 10 '22 16:04 yandeu

// 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" };

BishBish123 avatar Apr 10 '22 21:04 BishBish123

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

kyubson avatar Apr 05 '23 14:04 kyubson

@kyubson You're welcome :)

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

yandeu avatar Apr 05 '23 15:04 yandeu