Results 1 to 9 of 9
-
19th Sep 2011, 07:25 PM #1OPMember
[req] Ubuntu 11.04 PHP Curl Cookie Problems
Hi dears coders. I have a problem with PHP CURL Cookie... i am writed script and he work fine on home pc (windows 7), but when i load this script to my server (ubuntu 11.04) he did not work... cookie.txt file do not writed...
Please Help!
ps: sorry for my bad english...heppinnz Reviewed by heppinnz on . [req] Ubuntu 11.04 PHP Curl Cookie Problems Hi dears coders. I have a problem with PHP CURL Cookie... i am writed script and he work fine on home pc (windows 7), but when i load this script to my server (ubuntu 11.04) he did not work... cookie.txt file do not writed... Please Help! ps: sorry for my bad english... Rating: 5
-
19th Sep 2011, 08:36 PM #2Member
chmod them properly !
-
19th Sep 2011, 08:38 PM #3OPMemberchmod them properly !
-
19th Sep 2011, 08:46 PM #4BannedWebsite's:
worldwidexs.com.auIf i am not wrong, it is a auto bot.
chmod these folders with all files inside to 777
cookies
download
mtn
rar
logs.txt
and if any other folder or files
-
19th Sep 2011, 08:55 PM #5OPMember
nope... i am writed info grabber from one site ... all you say I did it... but it is does not help anyway... very strange ...
-
20th Sep 2011, 12:56 AM #6MemberWebsite's:
sborg.usPost the cURL function that you're using, Or else PM if you don't wanna post it publicly!
V3g3ta | Halcyon | Abhi
-
20th Sep 2011, 05:35 AM #7OPMemberPHP Code:
function getCookie($user, $pass) {
$ch = curl_init();
curl_setopt_array($ch, array(
CURLOPT_URL => 'http://blahblahblah.com/login.php',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_COOKIEJAR => 'cookie.txt',
CURLOPT_USERAGENT => 'Mozilla/5.0 (Windows NT 5.1; rv:6.0.2) Gecko/20100101 Firefox/6.0.2',
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => "user=$user&password=$pass"
));
curl_exec($ch);
curl_close($ch);
}
-
20th Sep 2011, 01:24 PM #8Respected MemberWebsite's:
DL4Everything.com Soft2050.inExecute this code to check if the dir is writable:
PHP Code:<?php
if (is_writable(dirname(__FILE__)) echo "Good"
else echo "Bad";
?>
PHP Code:function getCookie($user, $pass) {
$ch = curl_init();
curl_setopt_array($ch, array(
CURLOPT_URL => 'http://blahblahblah.com/login.php',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_COOKIEJAR => realpath('cookie.txt'),
CURLOPT_USERAGENT => 'Mozilla/5.0 (Windows NT 5.1; rv:6.0.2) Gecko/20100101 Firefox/6.0.2',
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => "user=$user&password=$pass"
));
curl_exec($ch);
curl_close($ch);
}
-
20th Sep 2011, 05:03 PM #9OPMember
Thank you all. all is well
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
UK Cookie Law Starts This Weekend
By Ladybbird1 in forum News & Current EventsReplies: 4Last Post: 27th May 2012, 09:31 AM -
Need Help In cookie
By saninokia in forum Web Development AreaReplies: 0Last Post: 21st Feb 2012, 04:10 PM -
How to add cookie in rapidleech
By djakil in forum Webmaster DiscussionReplies: 5Last Post: 14th Jan 2011, 05:00 AM -
Fix the cookie problem in vB
By Royal King in forum Tutorials and GuidesReplies: 5Last Post: 7th Feb 2010, 02:28 PM -
C is for cookie, and that's good enough for me
By Sp32 in forum General DiscussionReplies: 4Last Post: 18th Jan 2010, 05:14 AM
themaManager - edit and manage...
Version 4.18 released. Open older version (or...