I know how to use cURL, but I've always had to manually plug cookies into the script. Can cURL work off of the browsers cookies?
This would probably be very dangerous, so I doubt it can, but its worth knowing. Thanks.
Maybe there is no more space on your server to keep Session information saved? I took a very quick look through the script, and couldn't find anything wrong.
You are dealing with variables, and variable variables.
All variable names in PHP start with $.
Example:
<?
$name = 'scorpion';
echo $name; will display 'scorpion'
?>
Variable variables are just what they sound like. They are variables, with a name that's also changeable. So...
$name =...
Grr.. I've been trying to figure this out for a few days now, but I can't figure it out. I've been into PHP for about 6 months now, so I know the functions needed. I just can't convert it into code.
Here is a function I made to return the first pair of factors that isn't 1 or the number. 20...
Umm... You really aren't using PHP to the fullest.
Here is my mini-tutorial on how to use foreach statements:
foreach() is a loop in PHP that will run through arrays. It only works on arrays. It is usually set up like this:
foreach($Array_name as $key => $value) {
block of statement;
}
That...
I figured it out.
I have a question:
What I did, was make a script on my server that uses my cookies to communicate with a separate forum. I used cURL to log in as me, and change my forum signature to anything the user wanted.
If the admin looks at the logs of my username, he will notice...
Most people will tell you to use ereg(), but I personally hate that function.
What I would is get rid of the dashes, run a is_int() check on the remaining string. And then, use substr() to check for specific characters in specific places.
Look up the functions at http://www.php.net
Well, I've created a very basic online proxy. I'm having trouble setting up the proxy. This is what I have so far:
<?
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $_POST['url']);
if ($_POST['cookies'] != "") {
curl_setopt($curl, CURLOPT_COOKIE, $_POST['cookies']);
}
if...
Thanks a lot. My script worked perfectly. It connects to a specific message board, grabs the last message that was posted, and changes my signature on that forum according to the last message.
Since it doesn't redirect the browser, I used FireFox' reload every to make it do it every 15 seconds...
Wait.. cURL will run the script, but not send my browser there? That's awesome! That's exactly what I wanted.
I'll give that a try.
Kind of like inet functions of VB, except it doesn't depend on IE. Thanks!
I have cURL installed. I was going to ask about that, but I wasn't sure.
How would I use cURL do to it? I know to set set up and use cURL, just not that function.
I'm assuming you do something like:
$postvars = 'user=scorpion&pass=' . $pass;
curl_setopt($curl, CURLOPT_POST, $postvars);
Mind...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.