Jump to content


How to run p4 groups command at P4PHP

p4 api

  • Please log in to reply
3 replies to this topic

#1 hoang.nth

hoang.nth

    Member

  • Members
  • PipPip
  • 16 posts

Posted 22 December 2015 - 09:33 AM

Hello,

When i get my source code like this:

$p4	   = $services->get('p4_admin');   
$infos = $p4->run("groups", "-u" ,"test");
echo '<pre>';
var_dump($infos);

The result is the same with
$p4	   = $services->get('p4_admin');   
$infos = $p4->run("groups");
echo '<pre>';
var_dump($infos);

So there is any way to get all groups from a specify user in p4php?

Thank you,

#2 hoang.nth

hoang.nth

    Member

  • Members
  • PipPip
  • 16 posts

Posted 07 January 2016 - 06:10 AM

Actually, i dont know this forum is available or not :(

#3 P4Shimada

P4Shimada

    Advanced Member

  • Members
  • PipPipPip
  • 831 posts

Posted 15 January 2016 - 02:00 AM

Have you checked out examples in the user guide? See the client workspace creation, for example:

    http://www.perforce....ipt/04_php.html

#4 hoang.nth

hoang.nth

    Member

  • Members
  • PipPip
  • 16 posts

Posted 27 January 2016 - 06:40 AM

View PostP4Shimada, on 15 January 2016 - 02:00 AM, said:

Have you checked out examples in the user guide? See the client workspace creation, for example:

http://www.perforce....ipt/04_php.html

Yes, i tried to read that documents for a long time. I can run these command in python very easy, but i dont know why it was so hard for running in php.
The result from  run this command
  $infos = $p4->run("groups"); 
is different between P4Python and P4PHP.





Also tagged with one or more of these keywords: p4, api

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users