donnikitos / vite-plugin-php

Vite's speed and tooling to preprocess PHP-files!
https://www.npmjs.com/package/vite-plugin-php
MIT License
40 stars 0 forks source link

Using XAMPP on windows #9

Closed J0T0S0 closed 9 months ago

J0T0S0 commented 9 months ago

I'm currently using xampp on windows and when i go to the register.php page it shows these errors:

Warning: Unknown: Failed to open stream: No such file or directory in Unknown on line 0

Fatal error: Failed opening required '/C:/Users/galli/OneDrive/Desktop/Locker/Projects/Websites/JTS Projects/jts-website/node_modules/vite-plugin-php/dist/router.php' (include_path='C:\xampp\php\PEAR') in Unknown on line 0

Config:

plugins: [
    usePHP({
        binary: "/xampp/php",
        entry: ["register.php", "confirm.php"],
    }),
donnikitos commented 9 months ago

Does your PHP development server start? You should see something like this: image

J0T0S0 commented 9 months ago

Nevermind, just created my own php runner with a few lines of code