• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

linux path problem with linking in script

A

alekhin

Guest
hi everyone...

i got a problem..

there are some include file scripts in my php files like include("/script.php")... there is no dot because my links are like domain.com/asdasd/Asdasdas/asdasd.html...

but i cant use them like that.. i have to write the path /srv/www/vhosts/.... it is too long and i cant work in my local pc like that... how can i solve it. thanks....

(sorry for bad english)
 
so include files without leading slash, i.e. as 'folder/file', not as '/folder/file'
 
Back
Top