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.
精彩评论