Go Back   Gaming Gutter


» Site Navigation
» Home
» FAQ
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Advertisement
» Recent Threads
Go to first new post UNLEGIT GAIA GOLD....
11-04-2008 07:22 AM
by Duckii
Last post by Shade
Today 03:10 PM
26 Replies, 317 Views
Go to first new post What song popped up when...
Today 01:05 AM
by Stalkur
Last post by Zombies
Today 03:09 PM
4 Replies, 25 Views
Go to first new post In My Pants
07-30-2008 05:19 PM
by Husky
Last post by Shade
Today 03:08 PM
101 Replies, 818 Views
Go to first new post Its my Birthday tomorrow.
Today 07:23 AM
by Zombies
Last post by Zombies
Today 03:07 PM
15 Replies, 40 Views
Go to first new post Funny things to say when...
11-30-2008 02:19 PM
by Zombies
Last post by Zombies
Today 03:03 PM
12 Replies, 85 Views
View Single Post

 [need help] PM posting Curl
Old 02-17-2008, 06:59 PM   #1 (permalink)
bug14
Banned

Male bug14 is offline
 
Join Date: Oct 2007
Location: bugmenot.com
Posts: 1,536
GPoints: 46
iTrader: 2 / 100%
bug14 Is a Lord of Awesomenessbug14 Is a Lord of Awesomenessbug14 Is a Lord of Awesomeness
Rep Power: 0
[need help] PM posting Curl

Since the curl Alex showed me worked perfectly with my fake Gaia editing program. I decided to play around with curl and try to make something that actually isn't a scam for a change. I want to make a webpage that will post PMs on Gaia. Now before I go setting up the array of names and a timer to post a new PM every 30 seconds (that is the max amount of time allowed between PMs on Gaia, last time I checked), I want to see if it's even possible first. This is the script I set up in a file called pmer.php:
PHP Code:
//pm from here
$postfields2 "username=".$_POST['username']."&subject=".$_POST['subject']."&message=".$_POST['message']."&attach_sig=".$_POST['attach_sig'].'&post=&mode=post&src=&folder=inbox&id=';

$reffer2 $data_url;
$ch curl_init(); 
curl_setopt($chCURLOPT_URL,$pm_post_url);
curl_setopt($chCURLOPT_USERAGENT$agent);
curl_setopt($chCURLOPT_POST1); 
curl_setopt($chCURLOPT_POSTFIELDS$postfields2);  
curl_setopt($chCURLOPT_RETURNTRANSFER1); 
curl_setopt($chCURLOPT_FOLLOWLOCATION1);
curl_setopt($chCURLOPT_REFERER$reffer2);
curl_setopt($chCURLOPT_COOKIEFILE$cookiefile);
curl_setopt($chCURLOPT_COOKIEJAR$cookiefile);
$result curl_exec ($ch);
curl_close ($ch); 
As you can tell by the title of my thread it's not working. Am I even going about this the right way? I don't need you to write the code for me, just point out my flaws with this and/or suggest a better way about going about it.

Last edited by bug14; 02-21-2008 at 12:56 PM..
  Reply With Quote
 
Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -7. The time now is 03:11 PM.


vBulletin skin developed by: eXtremepixels
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

Page generated in 0.08394194 seconds (100.00% PHP - 0% MySQL) with 18 queries