PS_ARC(3) 1 PS_ARC(3)ps_arc - Draws an arc counterclockwiseSYNOPSIS
bool ps_arc (resource $psdoc, float $x, float $y, float $radius, float $alpha, float $beta)
DESCRIPTION
Draws a portion of a circle with at middle point at ($x, $y). The arc starts at an angle of $alpha and ends at an angle of $beta. It is
drawn counterclockwise (use ps_arcn(3) to draw clockwise). The subpath added to the current path starts on the arc at angle $alpha and ends
on the arc at angle $beta.
PARAMETERS
o $psdoc
- Resource identifier of the postscript file as returned by ps_new(3).
o $x
- The x-coordinate of the circle's middle point.
o $y
- The y-coordinate of the circle's middle point.
o $radius
- The radius of the circle
o $alpha
- The start angle given in degrees.
o $beta
- The end angle given in degrees.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
SEE ALSO ps_arcn(3).
PHP Documentation Group PS_ARC(3)
Check Out this Related Man Page
IMAGEARC(3) 1 IMAGEARC(3)imagearc - Draws an arcSYNOPSIS
bool imagearc (resource $image, int $cx, int $cy, int $width, int $height, int $start, int $end, int $color)
DESCRIPTION imagearc(3) draws an arc of circle centered at the given coordinates.
PARAMETERS
o $
image -An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(3).
o $cx
- x-coordinate of the center.
o $cy
- y-coordinate of the center.
o $width
- The arc width.
o $height
- The arc height.
o $start
- The arc start angle, in degrees.
o $end
- The arc end angle, in degrees. 0o is located at the three-o'clock position, and the arc is drawn clockwise.
o $color
- A color identifier created with imagecolorallocate(3).
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
Drawing a circle with imagearc(3)
<?php
// create a 200*200 image
$img = imagecreatetruecolor(200, 200);
// allocate some colors
$white = imagecolorallocate($img, 255, 255, 255);
$red = imagecolorallocate($img, 255, 0, 0);
$green = imagecolorallocate($img, 0, 255, 0);
$blue = imagecolorallocate($img, 0, 0, 255);
// draw the head
imagearc($img, 100, 100, 200, 200, 0, 360, $white);
// mouth
imagearc($img, 100, 100, 150, 150, 25, 155, $red);
// left and then the right eye
imagearc($img, 60, 75, 50, 50, 0, 360, $green);
imagearc($img, 140, 75, 50, 50, 0, 360, $blue);
// output image in the browser
header("Content-type: image/png");
imagepng($img);
// free memory
imagedestroy($img);
?>
The above example will output something similar to:[NOT DISPLAYABLE MEDIA]Output of example : Drawing a circle with imagearc()
SEE ALSO imagefilledarc(3), imageellipse(3), imagefilledellipse(3).
PHP Documentation Group IMAGEARC(3)
Hi,
Can somebody help me with ldapsearch? I am a newbie with linux and trying to do a ldapquery to resolve a full name from Active Directory?
When i give the command ldapsearch -h sso541885 "cn=mloon"
I get the error "ldap_sasl_interactive_bind_s: can't contact ldap server
Regards,
... (6 Replies)
We have an application that uses Active directory to authenticate the users. the admins of the app. were complaining because the windows domain controller they are going against is not very stable. I wrote a shell script using ldapsearch to look up a user against the domain controller their app... (2 Replies)
Good morning,
Firstly my appologies if this post is not exactly approprate for this forum but I do not know were else to post it. If anyone knows of a better forum for this please let me know.
I need to script an ldapsearch that will interrogate both unix and windows ldap servers. When it... (1 Reply)
I have a script that iterates through all the users that have logged in to the system for the past day and pulls out their role(s), adding them to a file.
The iteration part is working just fine, but the issue I have is with the result. When I do the LDAP query, the results I get are:
... (2 Replies)
Hello all
I would like to know if it's possible to extract users from Active Directory and parse the output to obtain a XML file with specific format.
So the AD is a windows machine, and I would like to extract from a red hat linux serveur. I try ldapsearch command and ok I'm abble to extract... (5 Replies)
How can I do a ldapsearch to find a DN for a user when I know the exact cn for that user out of active directory.
I have tried several different commands (hundreds) but need the -b with the full dn to perform the search using ldapsearch from AIX. I am trying to find the OU for a user and the... (3 Replies)
Hi there everyone. I'm trying to make a bash script that accepts some arguments ans give's back some info about LDAP users and servers.
I have this function :
has_group_access(){
result=$(ldapsearch -LLL "cn=${GROUP_NAME}" cn member | cut -d"," -f1 | cut -d":" -f2 | cut -d"=" -f2 | grep... (1 Reply)
Hi
I do a very simple monitoring of our OpenLDAP (runs in cronjob and generate alerts if unsuccessfull)
$ ldapsearch -h hostname.domain -D "cn=monitor_user,ou=People,dc=organisation" -w "password" -b "dc=organisation" -x "(&(cn=monitor_user)(ou=People))" dn | grep -v version
dn:... (4 Replies)
Hello all,
Hope you all are doing good :).
First of all, I apologize for my bad English
I want to get list of all user that have 'sudoCommand: ALL'
I've tried different sed and awk combinations without success :wall:
the command for extracting the OU for sudo is:
ldapsearch -x... (4 Replies)
Using ldapsearch, I've built the following command to get what I need.
ldapsearch -x -LLL -E pr=200/noprompt -h abc-loc.somecompany.com -D "account@somecompany.com" -w password -b "ou=End Users,ou=Accounts,dc=abc,dc=somecompany,dc=com" -s sub '(distinguishedName=CN=Bob\\, Billy J,OU=End... (8 Replies)
When I execute the code below with cn set to the $adgroup variable, I get the following error:
Invalid DN syntax (34)
Additional information: 0000208F: NameErr: DSID-031001F7, problem 2006 (BAD_NAME), data 8349, best match of:
,ou=Resource,ou=groups,dc=abc,dc=somecompany,dc=com'
If I set cn... (6 Replies)
Hi,
I'm trying to make a bash script to read LDAP (from MS active directory with ldapsearch), extract the fields 'mail', 'division', 'memberOf', 'userAccountControl', 'uidNumber', 'name', 'sAMAccountName' and save in a mysql database.
I have extracted the fields with ldapsearch but I am... (2 Replies)