我有一份正向文字发送标识的URL文字。
//open connection
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url;
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_fields1);
//execute post
$result = curl_exec($ch);
//close connection
curl_close($ch);
//open connection
该书有一套功能。
setcookie("cookie_email",$email,time()+(3600*24*$i),"/");
setcookie("cookie_password",$password,time()+(3600*24*$i),"/");
当我使用表格对表格进行标识时,一切照预期。 出于某种原因,当你管理着“URL”时,它跳了 set的功能。
我已走过网,我无法找到解决办法。 我不敢肯定为什么它未能建立 co。
非常赞赏朝着正确方向迈出的任何一步。
Thanks, Phil
UPDATE! - 接近
Okay I have made some changes that grab cookies and put them into a cookie file. Two Issues I set.
1. The cookied password in the file reads: deleted
2. The cookies aren t being set in the browser.
How do I get the md5($password) into the file and how does: curl_setopt($ch, CURLOPT_COOKIEFILE, cookies/cookies.txt ); set the cookies in the browser?