Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: PHP Advice

  1. #1
    Join Date
    Nov 2007
    Location
    London
    Posts
    1,577
    Tokens
    36

    Latest Awards:

    Default PHP Advice

    Hello,

    I have got a page on a separate server on separate hosting (obviously) and I want to connect to the URL by http://blahblah.com/blah.php and send stuff from a form by POST to it, then I want to store all the text/source of the content that appears when this data is posted to the file as a variable.

    How can I do that?

    Kind Regards,

    Guy
    __________________

    Since 2007. Unbelievable Uptime. Web hosting, resellers, master resellers, linux VPS, windows VPS, shoutcasts, at the lowest prices on the net.
    Tech-Hosts.co.uk.


  2. #2
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    Just collect it normally like
    PHP Code:
    $txtSource $_POST['txtSource']; 
    Unless I'm misunderstanding something.
    How could this hapen to meeeeeeeeeeeeeee?lol.

  3. #3
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    Just collect it normally like
    PHP Code:
    $txtSource $_POST['txtSource']; 
    Unless I'm misunderstanding something.
    How could this hapen to meeeeeeeeeeeeeee?lol.

  4. #4
    Join Date
    Nov 2007
    Location
    London
    Posts
    1,577
    Tokens
    36

    Latest Awards:

    Default

    No, I want the PHP on my page to post information from a form on my page to a page on another website, and store what the website shows as a variable on my page. so it's posting to another host and getting the page from another host. it's not getting posted to.
    Kind Regards,

    Guy
    __________________

    Since 2007. Unbelievable Uptime. Web hosting, resellers, master resellers, linux VPS, windows VPS, shoutcasts, at the lowest prices on the net.
    Tech-Hosts.co.uk.


  5. #5
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default

    http://uk.php.net/manual/en/function.fwrite.php

    But I think you gota open the file before writing
    http://uk.php.net/fopen

  6. #6
    Join Date
    Apr 2005
    Posts
    4,614
    Tokens
    1,290

    Latest Awards:

    Default

    Take a look at cURL

  7. #7
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default

    You don't need cURL? You can just to a normal form that submits to another site, then on the other site write the data to a file normally.
    Lets set the stage on fire, and hollywood will be jealous.

  8. #8
    Join Date
    Apr 2005
    Posts
    4,614
    Tokens
    1,290

    Latest Awards:

    Default

    Oh yeah I thought he was doing it from just a script and not from a form Misunderstood

  9. #9
    Join Date
    Jun 2008
    Location
    Manchester
    Posts
    766
    Tokens
    0

    Default

    Quote Originally Posted by Jack120 View Post
    http://uk.php.net/manual/en/function.fwrite.php

    But I think you gota open the file before writing
    http://uk.php.net/fopen
    I don't think you can fopen on remote urls.

  10. #10
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default

    Quote Originally Posted by Unhappyness View Post
    I don't think you can fopen on remote urls.
    oops, didnt read that

Page 1 of 2 12 LastLast

Posting Permissions

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