Kleine Vragen Topic #1

Gestart doorLennard4.284 reacties15.585 weergaven

4.285 berichten · pagina 129 van 286

Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Kan iemand mij nog helpen met mijn vraag? biggrin
0
Berichten
8.602
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Mijn probleem = fixed, encode_utf8 javascript functie

toevoeging op 13 oktober 2012, 15:49:41:
Shahiem schreef:
Kan iemand mij nog helpen met mijn vraag? biggrin
array("username" => "...", "password" => "..") naar: "/CookieAuth.dll?Logon" ?

heb je dat?
0
Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
$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);
?>


Heb nu dit, inloggen werkt nu wel biggrin maar als ik probeer inhoud van https://www.portal.rocflevoland.nl/ dan krijg ik een witte pagina sadley
0
Lennard

Lid · Topicstarter

Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Krijg je ook geen Location: terug die je naar een andere pagina doorstuurt?
0
Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Zie alleen dit in me cookie.txt

# Netscape HTTP Cookie File
# http://curl.haxx.se/rfc/cookie_spec.html
# This file was generated by libcurl! Edit at your own risk.

.rocflevoland.nl TRUE / FALSE 1 cadataEA1BF72097F447E888576716CA2EE396
0
Jvdw

Lid

Berichten
4.321
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
ik wil van habbo.nl/me de gebruikersnaam van de habbo ophalen, kan dat?
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Zou je met CURL in moeten loggen, maar is niet echt betrouwbaar.
0
Berichten
8.649
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Aarclay schreef:
Zou je met CURL in moeten loggen, maar is niet echt betrouwbaar.
Hoezo niet dan?
0
Berichten
5.952
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik heb een vaag probleem.
Ik wil dat de tekst "Welkom" onder het logo komt maar dat gebeurt niet.
Voorbeeld: http://ravio.eu/werk/index.php

CSS:

#langetekst {
    width: 500px;
    float: left;
    display: block;
    padding: 30px;
    line-height: 20px;
        
}
0
Berichten
8.602
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Welkom staat hier onder het logo?
0
Jvdw

Lid

Berichten
4.321
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Aarclay schreef:
Zou je met CURL in moeten loggen, maar is niet echt betrouwbaar.
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 Jvdw
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Als je data wilt ophalen van een andere site, dan moet je cURL gebruiken. Maar het is onbetrouwbaar, doordat je je script op de site moet afstemmen.

Als die iets aanpast, dan werkt je script niet meer. In zulke gevallen kan je beter zoeken naar een API die die site gebruikt. Heeft deze dat niet, dan kan je het aan de eigenaar vragen.
0
Berichten
14
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Als he een site hebt heb je dan ook ern eigen account!
0
Berichten
5.952
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Milan schreef:
Welkom staat hier onder het logo?
Ja, ik had het zelf hierna alogelost.
0
Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
<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]


Weet iemand waarom hij de div "artikel" niet weergeeft?
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren