File path issues

OS info

Problem description

issue 1: the backslash in from of the path is creating issues
Issue 2: the backslash in from the path is creating issues href="/dmxAppConnect/dmxBootstrap4TableGenerator/dmxBootstrap4TableGenerator.css">

bebugger:
GET https://dispatcherpro.com/dmxAppConnect/dmxAppConnect.js net::ERR_ABORTED 404 (Not Found)
database2.php:10 GET https://dispatcherpro.com/dmxAppConnect/dmxBootstrap4TableGenerator/dmxBootstrap4TableGenerator.css net::ERR_ABORTED 404 (Not Found)

File path in windows to working directory: C:\Users\rcher\OneDrive\Documents\Portal
File path on server: dispatcherpro.com/mtsportal/
URL https://dispatcherpro.com/mtsportal/database2.php
Query runs fine inside Wappler

Steps to reproduce

  1. Create any php file with database/query connection
  2. upload file, get errors

To correct I remove the leading / from the path using notepad and upload FTP and all works fine. When I open the file in Wappler and save it reverts back to / in front of path
I searched for severla hours and could not find solution, sorry.
Thanks

Community Page
Last updated: