Jump to content

rygonet

Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

rygonet's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. So I have a script that connects to a remote site in my web network, and uploads an image via an online form that is setup on the remote site. The script connects to the remote webpage just fine (via curl) and grabs the information fine. I have an image (/images/image.jpg) that I want to upload (via curl) through the form on the remote webpage. Is this at all possible? -Ryan
  2. What do you mean? You are worried that mysql will crash if it tries to access 1 table with a large array of information? I wouldn't worry about it unless you are query overloading..
  3. Can be done with Curl.. http://www.php.net/curl Not to hard.. use some regular expressions to set the user-set inputs as vars (or in an array).
  4. [quote author=moberemk link=topic=89614.msg359678#msg359678 date=1143646208] MySpace is ColdFusion powered, not PHP. Can't be done, period. [/quote] Wrong.. Every heard of Curl or filesystem functions ??
  5. How do I get this text into a variable: blah blah from <h2>blah blah</h2> I know this is very noob, but I suck at regex. using preg_match() { return var }
  6. Okay, so I have: <input type="hidden" name="__FIELDPUT" id="__FIELDPUT" value="/abunchofrandomnumbersandvarshere" /> How do I put "abunchofrandomnumbersandvarshere" in a variable? Here's what I got so far (by the way, abunchofrandomnumbersandvarshere is random and can be anything). if(preg_match("/id=\"__FIELDPUT\" value=\"(.*)\" /s", $html, $matches)) { $viewstate = $matches[1]; } echo $fieldput; I know this is wrong..
  7. Nevermind, problem fixed! Forgot "RETURNTRANSFER" option to be set to true..
  8. Hey everyone, First of all, thanks for such an awesome community, I have a passion for PHP and I love to see such a large community full of people who are similar to me! Here's my code snippet: $ch = curl_init(); // set URL and other appropriate options curl_setopt($ch, CURLOPT_URL, "http://formtogoto.com/form.asp"); // Do a POST $data = array('var1' => 'FALSE', 'var2' => '2'); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); // grab URL, and return output $output = curl_exec($ch); // close curl resource, and free up system resources curl_close($ch); $output = strtoupper($output); echo $output; Now, I am trying to be able to manipulate the OUTPUT so that it doesn't look like the webpage that I am POSTing to.. I would like to make everything uppercase, in this case.. When I run this script, I see the whole webpage (not in uppercase) and the number "1" at the very bottom (which is not on the original form that im POSTing to).. What the heck am I doin' wrong? Thanks in advance.. -Ryan
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.