Jump to content


  • Posts

  • Joined

  • Last visited


About Gruzin

  • Birthday 10/24/1985

Contact Methods

  • MSN
  • Website URL

Profile Information

  • Gender
  • Location

Gruzin's Achievements

Advanced Member

Advanced Member (4/5)



  1. Hey, I'm trying to log in using cURL and I need to set the session, but the cookie.txt is always emty and session is nerver set. hope someone can help... here is my code: <?php // INIT CURL $ch = curl_init(); // SET URL FOR THE POST FORM LOGIN curl_setopt($ch, CURLOPT_URL, 'http://localhost/parts/padmin/login.php'); // ENABLE HTTP POST curl_setopt ($ch, CURLOPT_POST, 1); // SET POST PARAMETERS : FORM VALUES FOR EACH FIELD curl_setopt ($ch, CURLOPT_POSTFIELDS, 'user=gio&pass=gio'); // IMITATE CLASSIC BROWSER'S BEHAVIOUR : HANDLE COOKIES curl_setopt ($ch, CURLOPT_COOKIEJAR, 'cookie.txt'); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch,CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_HEADER, TRUE); // EXECUTE 1st REQUEST (FORM LOGIN) $store = curl_exec ($ch); // CLOSE CURL curl_close ($ch); ?>
  2. www.php.net best e-book for me
  3. <?php if ($_SESSION['isAdmin'] == 1) { showAdminHyperlinks(); } elseif ($_SESSION['isStaff'] == 1) { showStaffHyperlinks(); } else { showStudentHyperlinks(); } } ?>
  4. Hey guys, How can I make simple ajax preloader, I mean I want to dislpay some GIF animation before "readyState == 4" (before ajax responseText). Thanks for any help, George
  5. Thanks guys, this information was helpfull
  6. Thanks for reply, but actually I'd like to use another method like this: src:url("assets/bkant.ttf"); but it doesn't work... maybe someone knows how can I solve that problem? thanks, George
  7. Hi guys, How can I load a font from server and use it on my site? I mean non windows standard font... Like I have a ttf file and I want to use it as a usuall font on website. thanks for helping, George
  8. Hey guys, I'am working on a project where I have a video cam and I want to dislpay live action on the web. do u have any ideas how can I do that? or just point me to the right direction... thanks, George
  9. No, I already have the string like this: 2007-6-8 and I want it to be like: 2007-06-08 Thanks, George
  10. Hey guys, Just could not figure out... I'am having some dates with following formatting: 2007-6-5 2007-6-18 how can I manipulate this string to get this: 2007-06-05 2007-06-18 thanks and I'am glad that I'am still here George
  11. Note: allow_url_fopen should be on Edit: sorry I thought he wanted to include a file form another server.... Regards, George
  12. Hey guys, Was just searching for a mobile operators and and I've found a web site (http://www.beeline.ru/index.wbp), so I've looked it up and found out that they are using WBP technology for there website. Is it a web technology or something else? Regards, George
  13. Thanks Mark, I'm gonaa try that George
  • 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.