xampp problem

hello
23 Replies
NIMA
NIMAOP2mo ago
i just donllowd php storm and when i open xampp i see it wont load any file it will only load the file u selected not any style or script i even unsital php storm and it still same it only show the index file and not any other thing
NIMA
NIMAOP2mo ago
my older file are fix but every new file i create have this problem i think php storm make me this bug even in live server for html everything work fine but in xamp .... it cant read links from other files anyone knwo why
ἔρως
ἔρως2mo ago
how in hell did you created a file with / in the name!??!?!??!
NIMA
NIMAOP2mo ago
😳 i dont
ἔρως
ἔρως2mo ago
or am i missing something?
NIMA
NIMAOP2mo ago
it automat add
ἔρως
ἔρως2mo ago
oh, wait, that's the chrome thing
NIMA
NIMAOP2mo ago
i dont know what happen but my pc if full of bug rn after i donllowd php storm i cant do anything wtf idk why all the links from other file in un readlbel
NIMA
NIMAOP2mo ago
im linking login style to the index and its not loading any of the files
Jochem
Jochem2mo ago
likely a relative vs absolute path issue
NIMA
NIMAOP2mo ago
should i unstisal xammp ? and re donllowd it
Jochem
Jochem2mo ago
no in the file /test/index.html, if you refer to the file /swad/style.css, it's not going to look for /test/swad/style.css, but for /swad/style.css remove the / at the start of your href in your header
NIMA
NIMAOP2mo ago
if i remove it it wont work .
NIMA
NIMAOP2mo ago
../ <link rel="stylesheet" href="../login/login.css"> it work now but idk why it happen cuse it was working fine beffor this suddenly it glitched
Jochem
Jochem2mo ago
likely because the live server serves the folder you activate it in at the root, and xampp is configured to serve one level higher because you want to use it for multiple projects learning the differences between absolute and relative paths in HTML is essential and you will have to have a solid understanding of them going forward. I suggest you do some research
NIMA
NIMAOP2mo ago
ye i have big problem with it i never undestand the diffrent tnx for help
ἔρως
ἔρως2mo ago
when the path of the files starts with / in the html file, it will look for the root of where the server is serving from when it starts with ./ or nothing, it is in the same directory as the html file when it starts with ../, it is 1 directory above instead of login/login.css, you have to use ./login.css or just login.css same for the form action: start with ./ or nothing
NIMA
NIMAOP2mo ago
tnx for help i know how to use it now i fix all problem i was using it in all the links for mistake
ἔρως
ἔρως2mo ago
you're welcome
Want results from more Discord servers?
Add your server