error

18 views
Skip to first unread message

jgabios

unread,
Jun 19, 2010, 3:28:33 AM6/19/10
to 2Performant Developers RO
salut,
am luat ultima versiune de pe github si incerc sa listez campaniile.
iata eroare care imi da:
XML_Parser: Mismatched tag at XML input line 6:8
you can see it here:
http://www.e-forum.ro/2parale/gabi2.php
in changelog am asa:

* Thu Jun 10 21:21:07 EEST 2010 - Radu Spineanu <ra...@2performant.com>
- 0.2.5 released
- updated the PHP wrapper 0.2.5
....
deci am luat 0.2.5.
codul sursa este:
<?
include("2pphp/2performant.php");
$session = new TPerformant("simple", array("user" => "affiliate",
"pass" => "redbunnies"), 'http://2parale.ro');
print_r($session->campaigns_list());
?>

pe unde gresesc ?

Radu Spineanu

unread,
Jun 19, 2010, 6:02:05 AM6/19/10
to 2performant-...@googlegroups.com
Hello,

> codul sursa este:
> <?
> include("2pphp/2performant.php");
> $session = new TPerformant("simple", array("user" => "affiliate",
> "pass" => "redbunnies"), 'http://2parale.ro');
> print_r($session->campaigns_list());
> ?>
>
> pe unde gresesc ?

affiliate/redbunnies e pentru sandbox.2performant.com
url-ul ar fi api.2parale.ro sau www.2parale.ro, nu 2parale.ro care e un
redirect

--
Radu Spineanu
2Performant

p: (650) 646-5582
e: ra...@2performant.com
http://twitter.com/rspineanu

gabriel munteanu

unread,
Jun 19, 2010, 6:05:11 AM6/19/10
to 2performant-...@googlegroups.com
danke, merge acuma.

--
jgabios
http://bash.editia.info

gabriel munteanu

unread,
Jun 19, 2010, 7:10:05 AM6/19/10
to 2performant-...@googlegroups.com
inca o intrebare:
obiectul $session poate fi pus pe sesiune pentru a-l utiliza si in
requesturile urmatoare?
sau e bine sa facem new TPerforman() la fiecare procesare de request ?
nu stiu ce e in spatele obiectului, si dupa cate stiu resurse gen
dbconnections, sockets, nu prea merg sa fie persistate in sesiune.

2010/6/19 gabriel munteanu <jaja...@gmail.com>:

--
jgabios
http://bash.editia.info

gabriel munteanu

unread,
Jun 19, 2010, 7:18:27 AM6/19/10
to 2performant-...@googlegroups.com
si inca un lucru:
<?
session_start();
if(isset($_GET["username"])){
include("2pphp/2performant.php");
$session = new TPerformant("simple", array("user" => "AAAAAAA", "pass"
=> "BBBBBB"), 'http://api.2parale.ro');
$userdata = $session->user_loggedin();
}
?>
da eroarea:
Object of class stdClass could not be converted to string in
/home/gabios/2parale/2pphp/PEAR/HTTP/Request2.php on line 408


2010/6/19 gabriel munteanu <jaja...@gmail.com>:

--
jgabios
http://bash.editia.info

Radu Spineanu

unread,
Jun 19, 2010, 12:14:38 PM6/19/10
to 2performant-...@googlegroups.com

> inca o intrebare:
> obiectul $session poate fi pus pe sesiune pentru a-l utiliza si in
> requesturile urmatoare?
> sau e bine sa facem new TPerforman() la fiecare procesare de request ?
> nu stiu ce e in spatele obiectului, si dupa cate stiu resurse gen
> dbconnections, sockets, nu prea merg sa fie persistate in sesiune.
>

It's just a simple object, no fancy things.

Cred ca poti persista in sesiune, dar the best way is to try.

--
R.

Radu Spineanu

unread,
Jun 19, 2010, 12:17:45 PM6/19/10
to 2performant-...@googlegroups.com

> si inca un lucru:
> <?
> session_start();
> if(isset($_GET["username"])){
> include("2pphp/2performant.php");
> $session = new TPerformant("simple", array("user" => "AAAAAAA", "pass"
> => "BBBBBB"), 'http://api.2parale.ro');
> $userdata = $session->user_loggedin();
> }
> ?>
> da eroarea:
> Object of class stdClass could not be converted to string in
> /home/gabios/2parale/2pphp/PEAR/HTTP/Request2.php on line 408
>

works for me..

$session = new TPerformant("simple", array("user" => 'affiliate', "pass"

=> 'the password'), 'http://api.sandbox.2performant.com');
var_dump($session->user_loggedin());

Ce varianta de php folosesti? 5.3.2 here.

--
R.

gabriel munteanu

unread,
Jun 19, 2010, 3:05:29 PM6/19/10
to 2performant-...@googlegroups.com
5.2.6, hmmm.
o sa incerc si pe un 5.3.2 sa vedem.

--
jgabios
http://bash.editia.info

Reply all
Reply to author
Forward
0 new messages