Results 1 to 7 of 7

Thread: Getting info from the web page

  1. #1
    Join Date
    Aug 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Getting info from the web page

    I need to do such thing: when user press the button, information (html text of the page) from the given link is taken, then this information is given to server to work with it using php.
    An Ajax Includes Script is good for me, but it doesn't allow to access to other domain's pages. Please, help me to solve this problem.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Nothing in Javascript is capable of doing cross-domain requests. Pass the URL to PHP and download it server-side.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    get_file_contents("absolute-url") i believe is the php function to use

  4. #4
    Join Date
    Aug 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by boogyman View Post
    get_file_contents("absolute-url") i believe is the php function to use
    yes, but I need to do the same from userside. Because every user in my local network has got a unique parameter and it is avaliable only from userside.
    Need more ideas.

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Send the "unique parameter" to the PHP script?
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #6
    Join Date
    Aug 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey View Post
    Send the "unique parameter" to the PHP script?
    Yes, thats what I need. I need to open a web page from userside and send this "unique parameter" to serverside php script. The problem is that this parameter looks like:
    <input type="hidden" name="anticode" value="c14518adb3cebfe91d3c52eb3d11a73f">...

    I need to get this "value". I can get it using php, but it can't get userside "value", because php opens it from serverside. That is why I need to open this web page on userside and send it's contents to the serverside php script. Please help me to do it.

  7. #7
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    It's the same on both sides. You cannot open the page from the client side.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •