PHP函数大全(2)

fread
   string fread ( int fp, int length );
   读取文件里的内容。
fseek
   int fseek ( int fp, int offset );
   在fopen打开的文件里移动指针。
ftell
   int ftell ( int fp );
   返回文件指针目前的所在位置。
fwrite
   int fwrite ( int fp, string string, int [length] );
   以二进制模式写入文件。
is_dir
   boolean is_dir ( string filename );
   检查所指定的文件是否为目录。
is_executable
   boolean is_executable ( string filename );
   检查指定的文件是否为可执行文件。
is_file
   boolean is_file ( string filename );
   检查指定的文件是否为正常的文件。
is_link
   boolean is_link ( string filen );
   检查指定的文件是否为连接文件。
is_readable
   boolean is_readable ( string filename );
   检查指定的文件可否被读取。
is_writeable
   boolean is_writeable ( string filename );
   检查指定的文件可否被写入。
link
   int link ( string target, string link );
   建立硬连接。
linkinfo
   int linkinfo ( string path );
   返回文件链接信息。
lstat
   array lstat ( string filename );
   获取链接文件相关信息。
mkdir
   int mkdir ( string pathname, int mode );
   根据指定的模式建立目录。
popen
   int popen ( string command, string mode );
   根据指定模式打开指定的文件。
pclose
   int pclose ( int fp );
   关闭己经打开的文件。
readfile
   int readfile ( string filename );
   读取文件里的内容。
readlink
   string readlink ( string path );
   返回符号链接的目标文件。
rname
   int rename ( string oldname, string newname );
   更改文件名称。
rewind
   int rewind ( int fp );
   移动文件指针至最开始的地方。
rmdir
   int rmdir ( string dirname );
   删除指定的空目录。
stat
   array stat ( string filename );
   返回文件的状态信息。
set_file_buffer
   int set_file_buffer ( int fp, int buffer );
   设置文件缓冲区大小。
symlink
   int symlink ( string target, string link );
   建立符号链接。
tempnam
   string tempnam ( string dir, string prefix );
   在指定的目录下建立暂存盘。
touch
   int touch ( string filename, int [time] );
   设置文件的最后修改时间。
umask
   int umask ( int [mask] );
   改变文件属性掩码。
unlink
   int unlink ( string filename );
   删除文件。


HTTP Functions
header
   int header ( string string );
   送出网页文件头信息。
setcookie
   int setcookie ( string name, string value, int expire , string path, string domain, int secure );
   送出Cookie数据。

Hyperwave Functions
hw_Children
   array hw_children ( int connection, int objectID );
   以数组返回子对象的ID。
hw_ChildrenObj
   array hw_childrenobj ( int connection, int objectID );
   以数组返回子对象的对象记录。
hw_Close
   int hw_docbyanchor ( int connecion, int anchorID );
   关闭Hyperwave连接。
hw_Connect
   int hw_connect ( string host, int port, string [username], string [password] );
   建立Hyperwave连接。
hw_Cp
   void hw_cp ( int connection, array objrec, int dest );
   将指定的对象复制到dest,并返回己复制的对象数目。
hw_Deleteobject
   boolean hw_deleteobject ( int connection, int object_to_delete );
   删除指定的对象。
hw_DocByAnchor
   boolean hw_docbyanchor ( int connection, int anchorID );
   返回指定文件的对象ID。
hw_DocByAnchorObj
   string hw_docbyanchorobj ( int connection, int anchorID );
   返回指定文件的对象记录。
hw_DocumentAttributes
   string hw_documentattributes ( int hw_document );
   返回文件的对象属性。
hw_DocumentBodyTag
   string hw_documentbodytag ( int hw_document, string [prefix] );
   返回文件的主体标记。
hw_DocumentContent
   string hw_documentcontent ( int hw_document );
   返回文件的对象内容。
hw_DocumentSetContent
   boolean hw_documentsetcontent ( int hw_document, string content );
   重设文件的对象内容。
hw_DocumentSize
   int hw_documentsize ( int hw_document );
   返回文件的内容大小。
hw_EditText
   boolean hw_edittext ( int connection, int hw_document );
   上传纯文本文件。
hw_Error
   int hw_error ( int connection );
   返回上次错误的信息代码。
hw_ErrorMsg
   string hw_errormsg ( int connection );
   返回上次连接的错误信息。
hw_Free_Document
   boolean hw_FREE_document ( int hw_document );
   释放文件占用的内存。
hw_GetAnchors
   array hw_getanchors ( int connection, int objectID );
   返回文件的anchor对象ID。
hw_GetAnchorsObj
   array hw_getanchorsobj ( int connection, int objectID );
   返回文件的anchor对象记录。
hw_GetAndLock
   string hw_getandlock ( int connection, int objectID );
   返回并锁定对象。
hw_GetChildColl
   array hw_getchildcoll ( int connection, int objectID );
   获取子对象的ID。
hw_GetChildCollObj
   array hw_getchildcollobj ( int connection, int objectID );
   以数组返回对象的记录。
hw_GetChildDocColl
   array hw_getchilddoccoll ( int connection, int objectID );
   以数组返回所有的对象ID。
hw_GetChildDocCollObj
   array hw_getchilddoccollobj( int connection, int objectID );
   以数组返回所有的对象记录。
hw_GetObject
   string hw_getobject ( int connection, int objectID );
   获取对象的对象记录。
hw_GetObjectByQuery
   array hw_getobjectbyquery ( int connection, string query, int max_hits );
   利用query搜索对象,以数组返回条件相符的对象ID。
hw_GetObjectByQueryColl
   array hw_getobjectbyquerycoll ( int connection, int objectID, string query, int max_hists );
   搜索集合对象。
hw_GetObjectByQueryCollObj
   array hw_getobjectbyquerycollobj ( int connection, int objectID, string query, int max_hits );
   搜索collection里对象ID为object_id的对象,并以数组返回对象记录。
hw_GetObjectByQueryObj
   array hw_getobjectbyqueryobj ( int connection, string query, int max_hits );
   利用传入的参数query搜索对象,并以数组返回条件相符的对象记录。
hw_GetParents
   array hw_getparents ( int connection, int objectID );
   以数组返回对象的ID。
hw_GetParentsObj
   array hw_getparentsobj ( int connection, int objectID );
   以数组返回父对象的对象记录。
hw_GetRemote
   int hw_getremote ( int connection, int objectID );
   获取远程文件。
hw_GetRemoteChildren
   [array|int] hw_getremotechildren ( int connection, string object_record );
   获取远程的子文件。
hw_GetSrcByDestObj
   array hw_getsrcbydestobj ( int connection, int objectID );
   以数组返回指向此对象的连接对象记录。
hw_GetText
   int hw_gettext ( int connection, int objectID, int [rootID] );
   接收纯文本文件的对象ID。
hw_GetUsername
   string hw_getusername ( int connection );
   获取用户名称。

hw_Identify
   void hw_identify ( string username, string password );
   确认用户的身份。
hw_InCollections
   array hw_incollections ( int connection, array objids, array collids, int para );
   检查指定的对象是否属于特定的collection。
hw_Info
   string hw_info ( int connection );
   返回此次连接的信息。
hw_InsColl
   int hw_inscoll ( int connection, int objectID, array object_array );
   设置新collection的属性。
hw_InsDoc
   int hw_insdoc ( int connection, int parentID, string object_record, string [text] );
   插入新的文件。
hw_InsertDocument
   int hw_insertdocument ( int connection, int parentID, int hw_document );
   插入新文件。
hw_InsertObject
   int hw_insertobject ( int connection, string object_record, string parameter );
   插入对象记录。
hw_Modifyobject
   boolean hw_modifyobject ( int connection, int object_to_change, array remove, array add ,int [mode] );
   修改对象记录。
hw_Mv
   void hw_mv ( int connection, array objrec, int from, int dest );
   复制指定对象。
hw_New_Document
   int hw_new_document ( string object_record, string document_data, int document_size );
   建立新文件。
hw_Objrec2Array
   array hw_objrec2array ( string object_record );
   将对象转为数组。
hw_OutputDocument
   boolean hw_outputdocument ( int hw_document );
   输出文件。
hw_pConnect
   int hw_pconnect ( string host, int port, string [username], string [password] );
   建立一个Hyperwave连接。
hw_PipeDocument
   int hw_pipedocument ( int connection, int objectID );
   接收指定的文件。
hw_Root
   int hw_root ();
   返回要对象的对象ID。
hw_Unlock
   boolean hw_unlock ( int connection, int objectID );
   解除文件锁定状态。
hw_Who
   array hw_who ( int connection );
   列出目前用户。


Image Functions
GetImageSize
   array getimagesize ( string filename, array [imageinfo] );
   获取图片的大小。
ImageCreate
   int imagecreate ( int x_size, int y_size );
   创建指定尺寸的新图形。
ImageArc
   int imagearc ( int im, int cx, int cy, int w, int h, int s, int e, int col );
   以x,y为圆心画出椭圆。
ImageChar
   int imagechar ( int im, int font, int x, int y, string c, int col );
   在x,y处显示字符。
ImageCharUp
   int imagecharup ( int im, int font, int x, int y, string c, int col );
   在x,y处显示字符,并逆时针旋转90度写出直式的字符。
ImageColorAllocate
   int imagecolorallocate ( int im, int red, int green, int blue );
   分别利用RGB的值来配置颜色。
ImageColorAt
   int imagecolorat ( int im, int x, int y );
   获取图中指定点的颜色的索引值。
ImageSetPixel
   int imagesetpixel ( int im, int x, int y, int col );
   指定坐标处的颜色。
ImageColorClosest
   int imagecolorcloseset ( int im, int red, int green, int blue );
   计算色表中与指定颜色最接近者。
ImageColorExact
   int imagecolorexect ( int im, int red, int green, int blue );
   计算色表上指定颜色的索引值。
ImageColorResolve
   int imagecolorresolve ( int im, int red, int green, int blue );
   计算色表上指定或最接近颜色的索引值。
ImageColorSet
   boolean imagecolorset ( int im, int index, int red, int green, int blue );
   设置色表上指定索引的颜色。
ImageColorsForIndex
   array imagecolorsforindex ( int im, int index );
   获取色表上指定索引的颜色。
ImageColorsTotal
   int imagecolorstotal ( int im );
   计算图的颜色数。
ImageColorTransparent
   int imagecolortransparent ( int im, int [col] );
   指定透明背景色。
ImageCopyResized
   int imagecopyresized ( int dst_im, int src_im, int dstX, int dstY, int srcX, int srcY, int dstW, int dstH, int srcW, int srcH );
   截取图形里的一部分矩形范围并帖在dstX,dstY处。
ImageCreateFromGIF
   int imagecreatefromgif ( string filename );
   根据指定的GIF图形文件建立新图形。
ImageGIF
   int imagegif ( int im, string [filename] );
   将图形保存至GIF文件,未指定文件则会直接输出至浏览器。
ImageCreateFromPNG
   int imagecreatefrompng ( string filename );
   取出PNG图形。
ImagePNG
   int imagepng ( int im, string [filename] );
   建立PNG图形。
ImageDestroy
   int imagedestroy ( int im );
   删除图形,释放系统资源。
ImageDashedLine
   int imagedashedline ( int im, int x1, int y1,int x2, int y2, int col );
   从x1,y1处画一条虚线至x2,y2处。
ImageFill
   int imagefill ( int im, int x, int y, int col );
   在坐标处填满颜色。
ImagePolygon
   int imagepolygon ( int im, array points, int num_points, int col );
   根据输入的points数组绘制多边形。
ImageFilledPolygon
   int imagefilledpolygon ( int im, array points, int num_points, int col );
   根据参数画出多边形并填充颜色。
ImageRectangle
   int imagerectange ( int im, int x1, int y1, int x2, int y2, int col );
   绘制矩形。
ImageFilledRectangle
   int imagefilledrectangle ( int im, int x1, int y1, int x2, int y2, int col );
   画出矩形并填充颜色。
ImageFillToBorder
   int imagefilltoborder ( int im, int x, int y, int border, int col );
   画出边线。
ImageFontHeight
   int imagefontheight ( int font );
   返回字体的高度。
ImageFontWidth
   int imagefontwidth ( int font );
   返回字体的宽度。
ImageInterlace
   int imageinterlace ( int im, int [interlace] );
   打开或关闭交错效果。
ImageLine
   int imageline ( int im, int x1, int y1, int x2, int y2, int col );
   从x1,y2画一条直线到x2,y2。
ImageLoadFont
   int imageloadfont ( string file );
   加载一个点阵字体。
ImagePSLoadFont
   int imagepsloadfont
   加载PostScript字体。
ImagePSFreeFont
   void imagepsfreefont ( int fontindex );
   卸载PostScript字体。
ImagePSEncodeFont
   int imagepsencodefont ( string encodingfile );
   PostScript字体转成矢量字。
ImagePSText
   array imagepstext ( int image, string text, int font, int size, int foreground, int background, int x, int y, int space, int tightness, float angle, int antialias_steps );
   写入PostScript文字到图中。
ImagePSBBox
   array imagepsbbox ( string text, int font, int size, int space, int width, float angle );
   计算PostScript文字所占区域。
ImageString
   int imagestring ( int im, int font, int x, int y, string s, int col );
   根据指定的文字颜色、字体将字符显示在网页里。
ImageStringUp
   int imagestringup ( int im, int font, int x, int y, string s, int col );
   以x,y为基点绘制逆时针旋转90度的字符串。
ImageSX
   int imagesx ( int im );
   返回图形宽度。
ImageSY
   int imagesy ( int im );
   返回图形高度。
ImageTTFBBox
   array ImageTTFBBox ( int size, int angle, string fontfile, string text );
   返回字体字符串周围的方框。
ImageTTFText
   array ImageTTFText ( int im, int size, int angle, int x, int y, int col, string fontfile, string text );
   用TrueType字体绘制字符串。


IMAP Funictions
imap_open
   int imap_open ( string mailbox, string username, string password, int [flags] );
   建立一个IMAP stream。
imap_close
   int imap_close ( int imap_stream, int [flags] );
   关闭指定的IMAP stream。
imap_ping
   int imap_ping ( int imap_stream );
   测试IMAP是否己经连接。
imap_reopen
   int imap_reopen ( string imap_stream, string mailbox, string [flags] );
   重新建立IMAP连接。
imap_headers
   array imap_headers ( int imap_stream );
   获取全部信件的文件头信息。
imap_header
   object imap_header ( int imap_stream, int msg_number, int [fromlength], int [subjectlength], int [defaulthost] );
   以对象数据类型返回信息的文件头。
imap_fetchheader
   string imap_fetchheader ( int imap_stream, int msg_no, int [options] );
   获取原始文件头。
imap_alerts
   array imap_alerts ( void );
   返回所有的警告信息。
imap_errors
   array imap_errors ( void );
   返回所有的错误信息。
imap_last_error
   string imap_last_error ( void );
   返回最后的错误信息。
imap_append
   int imap_append ( int imap_stream, string mbox, string message, string [flags] );
   将message附加到邮箱里。
imap_base64
   string imap_base64 ( string text );
   将Base64编码过的文字进行译码。
imap_binary
   string imap_binary ( string string );
   将8位字符串转换为Base64编码字符串。
imap_qprint
   string imap_qprint ( string string );
   将qp编码转成8位字符串。
imap_8bit
   string imap_8bit ( string string );
   将8位字符串转为qp编码的字符串。
imap_body
   string imap_body ( int imap_stream, int msg_number, int [flags] );
   返回信息主体的部分。
imap_check
   object imap_check ( int imap_stream );
   返回目前邮箱的状态。
imap_mailboxmsginfo
   object imap_mailboxmsginfo ( int imap_stream );
   获取邮件邮箱的信息。
imap_createmailbox
   int imap_createmailbox ( int imap_stream, string mbox );
   建立新的电子邮件邮箱。
imap_deletemailbox
   int imap_deletemailbox ( int imap_stream, string mbox );
   删除所指定的邮件邮箱。
imap_delete
   int imap_delete ( int imap_stream, int msg_number );
   将指定的信息标记成“删除”。
imap_expunge
   int imap_expunge ( int imap_stream );
   删除所有被标为“删除”标记的信息。
imap_undelete
   int imap_undelete ( int imap_stream, int msg_number );
   取消信息的“删除”标记。 

你可能感兴趣的:(PHP,object,Stream,String,IM,postscript)