开发者

jquery access to my server host var?

is it possible to use

开发者_如何学C$.post("/home/ACOUNT_NAME/ACOUNT_DOMAIN/script.php")

to access a php file outside the main domain BUT on the same webserver?

with php I can do that, wich is very good since I need to use the same file in many domains.

Now I need to have access to the same file but using jquery, but browser doesn't go there, he always uses

domain/home/ACOUNT_NAME/ACOUNT_DOMAIN/script.php

any sugestion?

Thanks in advance


Javascript cannot access server files.

You can try to post to a php file that is in the domain which would then read from that server file and output it to the user.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜