Ik heb deze code
Ik heb elke mogelijkheid die ik kon bedenken geprobeerd maar ik blif deze error krijgen. Hoe kan dat? Wat doe ik verkeerd?PHP Code:
<?php
include 'EpiCurl.php';
include 'EpiOAuth.php';
include 'EpiTwitter.php';
include 'secret.php';
$twitterObj = new EpiTwitter($consumer_key, $consumer_secret, $_COOKIE['oauth_token'], $_COOKIE['oauth_token_secret']);
$userInfo = $twitterObj->get_accountVerify_credentials(); echo "Your Twitter username is {$userInfo->screen_name}";
$twitterObj->post('statuses/update', array('status' => 'test2'));
PHP Code:
Your Twitter username is WouterjanS
Warning: Invalid argument supplied for foreach() in /home/cxdmrzbh/domains/a91.eu/public_html/sign_in_with_twitter/EpiOAuth.php on line 76
Warning: http_build_query() [function.http-build-query]: Parameter 1 expected to be Array or Object. Incorrect value given in /home/cxdmrzbh/domains/a91.eu/public_html/sign_in_with_twitter/EpiOAuth.php on line 140
- Php Error
-
17-04-2011, 18:18 #1
- Berichten
- 1.907
- Lid sinds
- 16 Jaar
Php Error
-
-
18-04-2011, 16:05 #2
- Berichten
- 71
- Lid sinds
- 18 Jaar
Re: Php Error
Er zit een fout in het bestand wat je oproept (Epi0Auth.php) op line 76 en 140.
Daar moet je de fout zoeken. Het script wat jij gepost hebt lijkt verder goed te werken!
Ik heb deze code
PHP Code:<?php
include 'EpiCurl.php';
include 'EpiOAuth.php';
include 'EpiTwitter.php';
include 'secret.php';
$twitterObj = new EpiTwitter($consumer_key, $consumer_secret, $_COOKIE['oauth_token'], $_COOKIE['oauth_token_secret']);
$userInfo = $twitterObj->get_accountVerify_credentials(); echo "Your Twitter username is {$userInfo->screen_name}";
$twitterObj->post('statuses/update', array('status' => 'test2'));
PHP Code:Your Twitter username is WouterjanS
Warning: Invalid argument supplied for foreach() in /home/cxdmrzbh/domains/a91.eu/public_html/sign_in_with_twitter/EpiOAuth.php on line 76
Warning: http_build_query() [function.http-build-query]: Parameter 1 expected to be Array or Object. Incorrect value given in /home/cxdmrzbh/domains/a91.eu/public_html/sign_in_with_twitter/EpiOAuth.php on line 140
Plaats een
- + Advertentie
- + Onderwerp
Marktplaats
Webmasterforum
- Websites algemeen
- Sitechecks
- Marketing
- Domeinen algemeen
- Waardebepaling
- CMS
- Wordpress
- Joomla
- Magento
- Google algemeen
- SEO
- Analytics
- Adsense
- Adwords
- HTML / XHTML
- CSS
- Programmeren
- PHP
- Javascript
- JQuery
- MySQL
- Ondernemen algemeen
- Belastingen
- Juridisch
- Grafisch ontwerp
- Hosting Algemeen
- Hardware Info
- Offtopic