G
G
green1762016-01-23 13:16:56
ubuntu
green176, 2016-01-23 13:16:56

How to change XAMPP ubuntu relative path?

I used denwer on windows, and there, if you set a relative path in the project, then it goes relative to the project, not the root directory, there is no denwer under ubuntu, I use xampp, but there the relative path goes relative to the root directory.
For example, the project is

/some/folders/htdocs/myProject/

when I display the image, it turns out the path
localhost/picture.jpg

necessary
localhost/myProject/picture.jpg

How to implement in xampp?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zooks, 2016-01-23
@zooks

The relative path always comes from the root directory of the site.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question