Kan iemand mij nog helpen met mijn vraag? 


Shahiem schreef:array("username" => "...", "password" => "..") naar: "/CookieAuth.dll?Logon" ?Kan iemand mij nog helpen met mijn vraag?
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, https://portal.rocflevoland.nl/CookieAuth.dll?GetLogon?curl=Z2FmijnroosterZ2F&reason=0&formdir=3);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, username= . $user . &password= . $pass);
curl_setopt($ch, CURLOPT_HEADER, FALSE);
curl_setopt($ch, CURLOPT_COOKIEJAR, cookie.txt);
curl_setopt($ch, CURLOPT_COOKIEFILE, cookie.txt);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_USERAGENT, Mozilla/4.0);
curl_exec($ch);
curl_setopt($ch, CURLOPT_URL, https://www.portal.rocflevoland.nl/);
curl_setopt($ch, CURLOPT_POST, 0);
$curl = curl_exec($ch);
echo $curl;
curl_exec($ch);
?>
maar als ik probeer inhoud van https://www.portal.rocflevoland.nl/ dan krijg ik een witte pagina 
Aarclay schreef:Hoezo niet dan?Zou je met CURL in moeten loggen, maar is niet echt betrouwbaar.
#langetekst {
width: 500px;
float: left;
display: block;
padding: 30px;
line-height: 20px;
} Aarclay schreef:maar ik wil zo iets van als jij bv naar een website gaat (bv jeone2xsnaam.nl) dat er dan iets van he je naam is Aarclay, of he je naam is onbekend want je bent neit ingelogd en wanneer ik naar die site ga er op staat he je naam is JvdwZou je met CURL in moeten loggen, maar is niet echt betrouwbaar.
Milan schreef:Ja, ik had het zelf hierna alogelost.Welkom staat hier onder het logo?
<link href="/style/style.css" rel="stylesheet" type="text/css" />
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/class"]class[/URL] show[COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/public"]public[/URL] [COLOR= #007700]function[/COLOR] belangrijk[COLOR= #007700](){[/COLOR]
[COLOR= #0000BB]$sQuery[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM system_news WHERE nStick = 1 ORDER BY nDatum DESC"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sFetch[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sQuery[/COLOR][COLOR= #007700])){[/COLOR]
[COLOR= #0000BB]$rQuery[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM system_reacties WHERE rNieuws = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$sFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nId[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$rRows[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$rQuery[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<div class="artikel"><a href=[/COLOR][COLOR= #007700].[/COLOR]_ROOT_[COLOR= #007700].[/COLOR][COLOR= #DD0000]news.php?n=[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$sFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"nId"[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]><b>[/COLOR][COLOR= #007700].[/COLOR]htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$sFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"nOnderwerp"[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]</b></a>[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uId[/COLOR][COLOR= #007700]])){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]" - <a href="[/COLOR][COLOR= #007700].[/COLOR]_ROOT_[COLOR= #007700].[/COLOR][COLOR= #DD0000]"admin/index.php?del="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$sFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nId[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]">Verwijder</a></div>"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]</div>[/COLOR][COLOR= #007700];
}[/COLOR]