home *** CD-ROM | disk | FTP | other *** search
Wrap
Text File | 2003-05-14 | 56.4 KB | 1,248 lines
#EdHTML !Apache-specific functions class apache_lookup_uri(string URI); string apache_note(string note_name [, string note_value]); array getallheaders(void); int virtual(string filename); !Arbitrary precision mathematics functions string bcadd(string left operand, string right operand, int [scale]); int bccomp(string left operand, string right operand, int [scale]); string bcdiv(string left operand, string right operand, int [scale]); string bcmod(string left operand, string modulus); string bcmul(string left operand, string right operand, int [scale]); string bcpow(string x, string y, int [scale]); string bcscale(int scale); string bcsqrt(string operand, int scale); string bcsub(string left operand, string right operand, int [scale]); !Array functions array array(...); array array_count_values(array input); array array_flip(array trans); array array_keys(array input, mixed [search_value]); array array_merge(array array1, array array2, [ ...]); array array_pad(array input, int pad_size, mixed pad_value); mixed array_pop(array array); int array_push(array array, mixed var, [...]); array array_reverse(array array); mixed array_shift(array array); array array_slice(array array, int offset, int [length]); array array_splice(array input, int offset, int [length] , array [replacement]); int array_unshift(array array, mixed var, [...]); array array_values(array input); int array_walk(array arr, string func, mixed userdata); void arsort(array array); void asort(array array); array compact(string varname | array varnames, [...]); int count(mixed var); mixed current(array array); array each(array array); end(array array); void extract(array var_array, int [extract_type] , string [prefix]); bool in_array(mixed needle, array haystack); mixed key(array array); int krsort(array array); int ksort(array array); void list(...); mixed next(array array); mixed pos(array array); mixed prev(array array); array range(int low, int high); mixed reset(array array); void rsort(array array); void shuffle(array array); int sizeof(array array); void sort(array array); void uasort(array array, function cmp_function); void uksort(array array, function cmp_function); void usort(array array, function cmp_function); !Aspell functions int aspell_new(string master[, string personal]); int aspell_check(aspell int,string word); int aspell_check_raw(aspell int,string word); array aspell_suggest(aspell int,string word); !Calendar functions string jdtogregorian(int julianday); int gregoriantojd(int month, int day, int year); string jdtojulian(int julianday); int juliantojd(int month, int day, int year); string jdtojewish(int julianday); int jewishtojd(int month, int day, int year); string jdtofrench(int month, int day, int year); int frenchtojd(int month, int day, int year); string jdmonthname(int julianday, int mode); mixed jddayofweek(int julianday, int mode); int easter_date(int year); int easter_days(int year); !ClibPDF functions void cpdf_global_set_document_limits(int maxpages, int maxfonts, int maximages, int maxannotations, int maxobjects); void cpdf_set_creator(string creator); void cpdf_set_title(string title); void cpdf_set_subject(string subject); void cpdf_set_keywords(string keywords); int cpdf_open(int compression, string filename); void cpdf_close(int pdf document); void cpdf_page_init(int pdf document, int page number, int orientation, double height, double width, double unit); void cpdf_finalize_page(int pdf document, int page number); void cpdf_finalize(int pdf document); void cpdf_output_buffer(int pdf document); void cpdf_save_to_file(int pdf document, string filename); void cpdf_set_current_page(int pdf document, int page number); void cpdf_begin_text(int pdf document); void cpdf_end_text(int pdf document); void cpdf_show(int pdf document, string text); void cpdf_show_xy(int pdf document, string text, double x-koor, double y-koor, int mode); void cpdf_text(int pdf document, string text, double x-koor, double y-koor, int mode, double orientation, int alignmode); void cpdf_set_font(int pdf document, string font name, double size, string encoding); void cpdf_set leading(int pdf document, double distance); void cpdf_set_text_rendering(int pdf document, int mode); void cpdf_set_horiz_scaling(int pdf document, double scale); void cpdf_set_horiz_scaling(int pdf document, double scale); void cpdf_set_text_rise(int pdf document, double value); void cpdf_set_text_matrix(int pdf document, array matrix); void cpdf_set_text_pos(int pdf document, double x-koor, double y-koor, int mode); void cpdf_set_char_spacing(int pdf document, double space); void cpdf_set_word_spacing(int pdf document, double space); void cpdf_continue_text(int pdf document, string text); double cpdf_stringwidth(int pdf document, string text); void cpdf_save(int pdf document); void cpdf_restore(int pdf document); void cpdf_translate(int pdf document, double x-koor, double y-koor, int mode); void cpdf_scale(int pdf document, double x-scale, double y-scale); void cpdf_rotate(int pdf document, double angle); void cpdf_setflat(int pdf document, double value); void cpdf_setlinejoin(int pdf document, long value); void cpdf_setlinecap(int pdf document, int value); void cpdf_setmiterlimit(int pdf document, double value); void cpdf_setlinewidth(int pdf document, double width); void cpdf_setdash(int pdf document, double white, double black); void cpdf_moveto(int pdf document, double x-koor, double y-koor, int mode); void cpdf_rmoveto(int pdf document, double x-koor, double y-koor, int mode); void cpdf_curveto(int pdf document, double x1, double y1, double x2, double y2, double x3, double y3, int mode); void cpdf_lineto(int pdf document, double x-koor, double y-koor, int mode); void cpdf_rlineto(int pdf document, double x-koor, double y-koor, int mode); void cpdf_circle(int pdf document, double x-koor, double y-koor, double radius, int mode); void cpdf_arc(int pdf document, double x-koor, double y-koor, double radius, double start, double end, int mode); void cpdf_rect(int pdf document, double x-koor, double y-koor, double width, double height, int mode); void cpdf_closepath(int pdf document); void cpdf_stroke(int pdf document); void cpdf_closepath_stroke(int pdf document); void cpdf_fill(int pdf document); void cpdf_fill_stroke(int pdf document); void cpdf_closepath_fill_stroke(int pdf document); void cpdf_clip(int pdf document); void cpdf_setgray_fill(int pdf document, double value); void cpdf_setgray_stroke(int pdf document, double gray value); void cpdf_setgray(int pdf document, double gray value); void cpdf_setrgbcolor_fill(int pdf document, double red value, double green value, double blue value); void cpdf_setrgbcolor_stroke(int pdf document, double red value, double green value, double blue value); void cpdf_setrgbcolor(int pdf document, double red value, double green value, double blue value); void cpdf_add_outline(int pdf document, string text); void cpdf_set_page_animation(int pdf document, int transition, double duration); int cpdf_open_jpeg(int pdf document, string file name, double x-koor, double y-koor, double angle, double width, double height, double x-scale, double y-scale, int mode); void cpdf_place_inline_image(int pdf document, int image, double x-koor, double y-koor, double angle, double width, double height, int mode); void cpdf_add_annotation(int pdf document, double llx, double lly, double urx, double ury, string title, string content, int mode); !Compression functions int gzclose(int zp); int gzeof(int zp); array gzfile(string filename); string gzgetc(int zp); string gzgets(int zp, int length); string gzgetss(int zp, int length); int gzopen(string filename, string mode [, int use_include_path]); int gzpassthru(int zp); int gzputs(int zp, string str [, int length]); int gzread(int zp, int length); int gzrewind(int zp); int gzseek(int zp, int offset); int gztell(int zp); int gzwrite(int zp, string str [, int length]); int readgzfile(string filename [, int use_include_path]); !Database abstraction layer functions void dba_close(int handle); string dba_delete(string key, int handle); bool dba_exists(string key, int handle); string dba_fetch(string key, int handle); string dba_firstkey(int handle); bool dba_insert(string key, string value, int handle); string dba_nextkey(int handle); int dba_popen(string path, string mode, string handler, [...]); int dba_open(string path, string mode, string handler, [...]); bool dba_optimize(int handle); bool dba_replace(string key, string value, int handle); bool dba_sync(int handle); !Date and Time functions bool checkdate(int month, int day, int year); string date(string format[, int timestamp]); array getdate([int timestamp]); array gettimeofday(void); string gmdate(string format[, int timestamp]); int gmmktime(int hour, int min, int sec, int mon, int mday, int year); string gmstrftime(string format, int timestamp); string microtime(void); int mktime(int hour, int min, int sec, int mon, int mday, int year); string strftime(string format[, int timestamp]); int time(void); !dBase functions bool dbase_create(string filename, array fields); int dbase_open(string name, int mode); bool dbase_close(int identifier); bool dbase_pack(int identifier); bool dbase_add_record(int identifier, array data); bool dbase_replace_record(int dbase_identifier, array record, int dbase_record_number); bool dbase_delete_record(int dbase_identifier, int record); array dbase_get_record(int dbase_identifier, int record); array dbase_get_record_with_names (int dbase_identifier, int record); int dbase_numfields(int dbase_identifier); int dbase_numrecords(int dbase_identifier); !dbm functions int dbmopen(string filename, string flags); bool dbmclose(int dbm_identifier); bool dbmexists(int dbm_identifier, string key); string dbmfetch(int dbm_identifier, string key); int dbminsert(int dbm_identifier, string key, string value); bool dbmreplace(int dbm_identifier, string key, string value); bool dbmdelete(int dbm_identifier, string key); string dbmfirstkey(int dbm_identifier); string dbmnextkey(int dbm_identifier, string key); string dblist(void); !Directory functions int chdir(string directory); new dir(string directory); void closedir(int dir_handle); int opendir(string path); string readdir(int dir_handle); void rewinddir(int dir_handle); !Dynamic Loading functions int dl(string library); !Encryption functions string mcrypt_get_cipher_name(int cipher); int mcrypt_get_block_size(int cipher); int mcrypt_get_key_size(int cipher); string mcrypt_create_iv(int size, int source); int mcrypt_cbc(int cipher, string key, string data, int mode, string [iv]); int mcrypt_cfb(int cipher, string key, string data, int mode, string iv); int mcrypt_ecb(int cipher, string key, string data, int mode); int mcrypt_ofb(int cipher, string key, string data, int mode, string iv); !filePro functions bool filepro(string directory); string filepro_fieldname(int field_number); string filepro_fieldtype(int field_number); int filepro_fieldwidth(int field_number); string filepro_retrieve(int row_number, int field_number); int filepro_fieldcount(void); int filepro_rowcount(void); !Filesystem functions string basename(string path); int chgrp(string filename, mixed group); int chmod(string filename, int mode); int chown(string filename, mixed user); void clearstatcache(void); int copy(string source, string dest); void delete(string file); string dirname(string path); float diskfreespace(string directory); int fclose(int fp); int feof(int fp); string fgetc(int fp); array fgetcsv(int fp, int length, string [delimiter]); string fgets(int fp, int length); string fgetss(int fp, int length, string [allowable_tags]); array file(string filename, int [use_include_path]); int file_exists(string filename); int fileatime(string filename); int filectime(string filename); int filegroup(string filename); int fileinode(string filename); int filemtime(string filename); int fileowner(string filename); int fileperms(string filename); int filesize(string filename); string filetype(string filename); bool flock(int fp, int operation); int fopen(string filename, string mode, int [use_include_path]); int fpassthru(int fp); int fputs(int fp, string str, int [length]); string fread(int fp, int length); int fseek(int fp, int offset); int ftell(int fp); int fwrite(int fp, string string, int [length]); int fwrite(int fp, int buffer); bool is_dir(string filename); bool is_executable(string filename); bool is_file(string filename); bool is_link(string filename); bool is_readable(string filename); bool is_writeable(string filename); int link(string target, string link); int linkinfo(string path); int mkdir(string pathname, int mode); int pclose(int fp); int popen(string command, string mode); int readfile(string filename, int [use_include_path]); string readlink(string path); int rename(string oldname, string newname); int rewind(int fp); int rmdir(string dirname); array stat(string filename); array lstat(string filename); int symlink(string target, string link); string tempnam(string dir, string prefix); int touch(string filename, int time); int umask(int mask); int unlink(string filename); !Forms Data Format functions int fdf_open(string filename); void fdf_close(int fdf_document); int fdf_create(void); int fdf_save(string filename); string fdf_get_value(int fdf_document, string fieldname); void fdf_set_value(int fdf_document, string fieldname, string value, int isName); string fdf_next_field_name(int fdf_document, string fieldname); void fdf_set_ap(int fdf_document, string field_name, int face, string filename, int page_number); void fdf_set_status(int fdf_document, string status); string fdf_get_status(int fdf_document); void fdf_set_file(int fdf_document, string filename); string fdf_get_file(int fdf_document); !FTP functions int ftp_connect(string host, int [port]); int ftp_login(int ftp_stream, string username, string password); int ftp_pwd(int ftp_stream); int ftp_cdup(int ftp_stream); int ftp_chdir(int ftp_stream, string directory); string ftp_mkdir(int ftp_stream, string directory); int ftp_rmdir(int ftp_stream, string directory); int ftp_nlist(int ftp_stream, string directory); int ftp_rawlist(int ftp_stream, string directory); int ftp_systype(int ftp_stream); int ftp_pasv(int ftp_stream, int pasv); int ftp_get(int ftp_stream, string local_file, string remote_file, int mode); int ftp_fget(int ftp_stream, int fp, string remote_file, int mode); int ftp_put(int ftp_stream, string remote_file, string local_file, int mode); int ftp_fput(int ftp_stream, string remote_file, int fp, int mode); int ftp_size(int ftp_stream, string remote_file); int ftp_mdtm(int ftp_stream, string remote_file); int ftp_rename(int ftp_stream, string from, string to); int ftp_delete(int ftp_stream, string path); int ftp_site(int ftp_stream, string cmd); int ftp_quit(int ftp_stream); !Hash functions string mhash_get_hash_name(int hash); int mhash_get_block_size(int hash); int mhash_count(void); string mhash(int hash, string data); !HTTP functions int header(string string); int setcookie(string name, string value, int expire, string path, string domain, int secure); !Hyperwave functions strin hw_array2objrec(array object_array); array hw_children(int connection, int objectID); array hw_childrenobj(int connection, int objectID); int hw_close(int connection); int hw_connect(string host, int port, string username, string password); int hw_cp(int connection, array object_id_array, int destination id); int hw_deleteobject(int connection, int object_to_delete); int hw_docbyanchor(int connection, int anchorID); string hw_docbyanchorobj(int connection, int anchorID); string hw_documentattributes(int hw_document); string hw_documentbodytag(int hw_document); string hw_documentcontent(int hw_document); string hw_documentsetcontent(int hw_document, string content); int hw_documentsize(int hw_document); string hw_errormsg(int connection); int hw_edittext(int connection, int hw_document); int hw_error(int connection); int hw_free_document(int hw_document); array hw_getparentsobj(int connection, int objectID); array hw_getparentsobj(int connection, int objectID); array hw_getchildcoll(int connection, int objectID); array hw_getchildcollobj(int connection, int objectID); int hw_getremote(int connection, int objectID); int hw_getremotechildren(int connection, string object record); array hw_getsrcbydestobj(int connection, int objectID); array hw_getobject(int connection, [int|array] objectID, string query); string hw_getandlock(int connection, int objectID); int hw_gettext(int connection, int objectID, mixed [rootID/prefix]); array hw_getobjectbyquery(int connection, string query, int max_hits); array hw_getobjectbyqueryobj(int connection, string query, int max_hits); array hw_getobjectbyquerycoll(int connection, int objectID, string query, int max_hits); array hw_getobjectbyquerycollobj(int connection, int objectID, string query, int max_hits); array hw_getchilddoccoll(int connection, int objectID); array hw_getchilddoccollobj(int connection, int objectID); array hw_getanchors(int connection, int objectID); array hw_getanchorsobj(int connection, int objectID); int hw_mv(int connection, array object id array, int source id, int destination id); int hw_identify(string username, string password); array hw_incollections(int connection, array object_id_array, array collection_id_array, int return_collections); string hw_info(int connection); int hw_inscoll(int connection, int objectID, array object_array); int hw_insdoc(int connection, int parentID, string object_record, string text); int hw_insertdocument(int connection, int parent_id, int hw_document); int hw_insertobject(int connection, string object rec, string parameter); int hw_mapid(int connection, int server id, int object id); int hw_modifyobject(int connection, int object_to_change, array remove, array add, int mode); int hw_new_document(string object_record, string document_data, int document_size); array hw_objrec2array(string object_record); int hw_outputdocument(int hw_document); int hw_pconnect(string host, int port, string username, string password); int hw_pipedocument(int connection, int objectID); int hw_root(); int hw_unlock(int connection, int objectID); int hw_who(int connection); string hw_getusername(int connection); !Image functions array getimagesize(string filename, array [imageinfo]); int imagearc(int im, int cx, int cy, int w, int h, int s, int e, int col); int imagechar(int im, int font, int x, int y, string c, int col); int imagecharup(int im, int font, int x, int y, string c, int col); int imagecolorallocate(int im, int red, int green, int blue); int imagecolorat(int im, int x, int y); int imagecolorclosest(int im, int red, int green, int blue); int imagecolorexact(int im, int red, int green, int blue); int imagecolorresolve(int im, int red, int green, int blue); bool imagecolorset(int im, int index, int red, int green, int blue); array imagecolorsforindex(int im, int index); int imagecolorstotal(int im); int imagecolortransparent(int im, int [col]); int imagecopyresized(int dst_im, int src_im, int dstX, int dstY, int srcX, int srcY, int dstW, int dstH, int srcW, int srcH); int imagecreate(int x_size, int y_size); int imagecreatefromgif(string filename); int imagedashedline(int im, int x1, int y1, int x2, int y2, int col); int imagedestroy(int im); int imagefill(int im, int x, int y, int col); int imagefilledpolygon(int im, array points, int num_points, int col); int imagefilledrectangle(int im, int x1, int y1, int x2, int y2, int col); int imagefilltoborder(int im, int x, int y, int border, int col); int imagefontheight(int font); int imagefontwidth(int font); int imagegif(int im, string filename); int imageinterlace(int im, int [interlace]); int imageline(int im, int x1, int y1, int x2, int y2, int col); int imageloadfont(string file); int imagepolygon(int im, array points, int num_points, int col); array imagepsbbox(string text, int font, int size, int space, int width, float angle); int imagepsencodefont(string encodingfile); void imagepsfreefont(int fontindex); int imagepsloadfont(string filename); 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]); int imagerectangle(int im, int x1, int y1, int x2, int y2, int col); int imagesetpixel(int im, int x, int y, int col); int imagestring(int im, int font, int x, int y, string s, int col); int imagestringup(int im, int font, int x, int y, string s, int col); int imagesx(int im); int imagesy(int im); array ImageTTFBBox(int size, int angle, string fontfile, string text); array ImageTTFText(int im, int size, int angle, int x, int y, int col, string fontfile, string text); !IMAP, POP3 and NNTP functions int imap_append(int imap_stream, string mbox, string message, string [flags]); string imap_base64(string text); string imap_body(int imap_stream, int msg_number, int [flags]); object imap_check(int imap_stream); int imap_close(int imap_stream, int [flags]); int imap_createmailbox(int imap_stream, string mbox); int imap_delete(int imap_stream, int msg_number, int [flags]); int imap_deletemailbox(int imap_stream, string mbox); int imap_expunge(int imap_stream); string imap_fetchbody(int imap_stream, int msg_number, string part_number, flags [flags]); object imap_fetchstructure (int imap_stream, int msg_number, int [flags]); object imap_header(int imap_stream, int msg_number, int [fromlength] , int [subjectlength] , string [defaulthost]); array imap_headers(int imap_stream); array imap_listmailbox(int imap_stream, string ref, string pattern); array imap_getmailboxes(int imap_stream, string ref, string pattern); array imap_listsubscribed(int imap_stream, string ref, string pattern); array imap_getsubscribed(int imap_stream, string ref, string pattern); int imap_mail_copy(int imap_stream, string msglist, string mbox, int [flags]); int imap_mail_move(int imap_stream, string msglist, string mbox, int [flags]); int imap_num_msg(int imap_stream); int imap_num_recent(int imap_stream); int imap_open(string mailbox, string username, string password, int [flags]); int imap_ping(int imap_stream); int imap_renamemailbox(int imap_stream, string old_mbox, string new_mbox); int imap_reopen(string imap_stream, string mailbox, string [flags]); int imap_subscribe(int imap_stream, string mbox); int imap_undelete(int imap_stream, int msg_number); int imap_unsubscribe(int imap_stream, string mbox); string imap_qprint(string string); string imap_8bit(string string); string imap_binary(string string); array imap_scanmailbox(int imap_stream, string content); object imap_mailboxmsginfo(int imap_stream); string imap_rfc822_write_address (string mailbox, string host, string personal); string imap_rfc822_parse_adrlist (string address, string default_host); string imap_setflag_full(int stream, string sequence, string flag, string options); string imap_clearflag_full (int stream, string sequence, string flag, string options); string imap_sort(int stream, int criteria, int reverse, int options); string imap_fetchheader(int imap_stream, int msgno, int flags); int imap_uid(int imap_stream, int msgno); int imap_msgno(int imap_stream, int uid); array imap_search(int imap_stream, string criteria, int flags); string imap_last_error(void); array imap_errors(void); array imap_alerts(void); object imap_status(int imap_stream, string mailbox, int options); string imap_utf7_decode(string text); string imap_utf7_encode(string data); string imap_utf8(string text); array imap_fetch_overview(int imap_stream, string sequence); string imap_mail_compose(array envelope, array body); string imap_mail(string to, string subject, string message, string [additional_headers] , string [cc] , string [bcc] , string [rpath]); !Informix functions int ifx_connect(string [database] , string [userid] , string [password]); int ifx_pconnect(string [database] , string [userid] , string [password]); int ifx_close(int [link_identifier]); int ifx_query(string query, int [link_identifier] , int [cursor_type] , mixed [blobidarray]); int ifx_prepare(string query, int conn_id, int [cursor_def] , mixed blobidarray); int ifx_do(int result_id); string ifx_error(void); string ifx_errormsg(int [errorcode]); int ifx_affected_rows(int result_id); array ifx_getsqlca(int result_id); array ifx_fetch_row(int result_id, mixed [position]); int ifx_htmltbl_result(int result_id, string [html_table_options]); array ifx_fieldtypes(int result_id); array ifx_fieldproperties(int result_id); int ifx_num_fields(int result_id); int ifx_num_rows(int result_id); int ifx_free_result(int result_id); int ifx_create_char(string param); int ifx_free_char(int bid); int ifx_update_char(int bid, string content); int ifx_get_char(int bid); int ifx_create_blob(int type, int mode, string param); int ifx_copy_blob(int bid); int ifx_free_blob(int bid); int ifx_get_blob(int bid); ifx_update_blob(int bid, string content); void ifx_blobinfile_mode(int mode); void ifx_textasvarchar(int mode); void ifx_byteasvarchar(int mode); void ifx_nullformat(int mode); int ifxus_create_slob(int mode); int ifxus_free_slob(int bid); int ifxus_close_slob(int bid); int ifxus_open_slob(long bid, int mode); int ifxus_tell_slob(long bid); int ifxus_seek_blob(long bid, int mode, long offset); int ifxus_read_slob(long bid, long nbytes); int ifxus_write_slob(long bid, string content); !InterBase functions int ibase_connect(string database, string [username] , string [password]); int ibase_connect(string database, string [username] , string [password]); int ibase_close(int [connection_id]); int ibase_query(int [link_identifier] , string query , int [bind_args]); int ibase_fetch_row(int result_identifier); int ibase_fetch_object(int result_id); int ibase_free_result(int result_identifier); int ibase_prepare(int [link_identifier] , string query); int ibase_bind(int query); int ibase_execute(int query); int ibase_free_query(int query); int ibase_timefmt(string format); int ibase_num_fields(int result_id); !LDAP functions int ldap_add(int link_identifier, string dn, array entry); int ldap_mod_add(int link_identifier, string dn, array entry); int ldap_mod_del(int link_identifier, string dn, array entry); int ldap_mod_replace(int link_identifier, string dn, array entry); int ldap_bind(int link_identifier, string [bind_rdn], string [bind_password]); int ldap_close(int link_identifier); int ldap_connect(string [hostname], int [port]); int ldap_count_entries(int link_identifier, int result_identifier); int ldap_delete(int link_identifier, string dn); string ldap_dn2ufn(string dn); array ldap_explode_dn(string dn, int with_attrib); string ldap_first_attribute(int link_identifier, int result_entry_identifier, int ber_identifier); int ldap_first_entry(int link_identifier, int result_identifier); int ldap_free_result(int result_identifier); array ldap_get_attributes(int link_identifier, int result_entry_identifier); string ldap_get_dn(int link_identifier, int result_entry_identifier); array ldap_get_entries(int link_identifier, int result_identifier); array ldap_get_values(int link_identifier, int result_entry_identifier, string attribute); array ldap_get_values_len(int link_identifier, int result_entry_identifier, string attribute); int ldap_list(int link_identifier, string base_dn, string filter, array [attributes]); int ldap_modify(int link_identifier, string dn, array entry); string ldap_next_attribute(int link_identifier, int result_entry_identifier, int ber_identifier); int ldap_next_entry(int link_identifier, int result_entry_identifier); int ldap_read(int link_identifier, string base_dn, string filter, array [attributes]); int ldap_search(int link_identifier, string base_dn, string filter, array [attributes]); int ldap_unbind(int link_identifier); string ldap_err2str(int errno); int ldap_errno(int link_id); string ldap_error(int link_id); !Mail functions bool mail(string to, string subject, string message, string [additional_headers]); !Mathematical functions mixed abs(mixed number); float acos(float arg); float asin(float arg); float atan(float arg); float atan2(float y, float x); base_convert(string number, int frombase, int tobase); int bindec(string binary_string); int ceil(float number); float cos(float arg); string decbin(int number); string dechex(int number); string decoct(int number); float exp(float arg); int floor(float number); int getrandmax(void); int hexdec(string hex_string); float log(float arg); float log10(float arg); mixed max(mixed arg1, mixed arg2, mixed argn); mixed min(mixed arg1, mixed arg2, mixed argn); int mt_rand( [int min] , [int max]); void mt_srand(int seed); int mt_getrandmax(void); string number_format(float number, int decimals, string dec_point, string thousands_sep); int octdec(string octal_string); double pi(void); float pow(float base, float exp); int rand( [int min] , [int max]); double round(double val); float sin(float arg); float sqrt(float arg); void srand(int seed); float tan(float arg); !MCAL functions int mcal_open(string calendar, string username, string password, string options); int mcal_close(int mcal_stream, int flags); object mcal_fetch_event(int mcal_stream, int event_id, int [options]); array mcal_list_events(int mcal_stream, int [begin_year] , int [begin_month] , int [begin_day] , int [end_year] , int [end_month] , int [end_day]); int mcal_append_event(int mcal_stream); int mcal_store_event(int mcal_stream); int mcal_delete_event(int uid); int mcal_snooze(int uid); array mcal_list_events(int mcal_stream, int [begin_year] , int [begin_month] , int [begin_day] , int [end_year] , int [end_month] , int [end_day]); int mcal_event_init(int stream); int mcal_event_set_category(int stream, string category); int mcal_event_set_title(int stream, string title); int mcal_event_set_description (int stream, string description); int mcal_event_set_start(int stream, int year, int month, int [day] , int [hour] , int [min] , int [sec]); int mcal_event_set_end(int stream, int year, int month, int [day] , int [hour] , int [min] , int [sec]); int mcal_event_set_alarm(int stream, int alarm); int mcal_event_set_class(int stream, int class); int mcal_is_leap_year(int year); int mcal_days_in_month(int month, int leap year); int mcal_date_valid(int year, int month, int day); int mcal_time_valid(int hour, int minutes, int seconds); int mcal_day_of_weekint mcal_date_compare(int a_year, int a_month, int a_day, int b_year, int b_month, int b_day); int mcal_day_of_year(int year, int month, int day); int mcal_date_compare(int a_year, int a_month, int a_day, int b_year, int b_month, int b_day); int mcal_next_recurrence(int stream, int weekstart, array next); int mcal_event_set_recur_none (int stream); int mcal_event_set_recur_daily (int stream, int year, int month, int day, int interval); int mcal_event_set_recur_weekly (int stream, int year, int month, int day, int interval, int weekdays); int mcal_event_set_recur_monthly_mday (int stream, int year, int month, int day, int interval); int mcal_event_set_recur_monthly_wday (int stream, int year, int month, int day, int interval); int mcal_event_set_recur_yearly (int stream, int year, int month, int day, int interval); int mcal_fetch_current_stream_event (int stream); !Microsoft SQL Server functions int mssql_close(int [link_identifier]); int mssql_connect(string [servername] , string [username] , string [password]); int mssql_data_seek(int result_identifier, int row_number); int mssql_fetch_array(int result); object mssql_fetch_field(int result, int [field_offset]); int mssql_fetch_object(int result); array mssql_fetch_row(int result); int mssql_field_length(int result, int [offset]); int mssql_field_name(int result, int [offset]); int mssql_field_seek(int result, int field_offset); string mssql_field_type(int result, int [offset]); int mssql_free_result(int result); string mssql_get_last_message (void); void mssql_min_error_severity (int severity); void mssql_min_message_severity (int severity); int mssql_num_fields(int result); int mssql_num_rows(string result); int mssql_pconnect(string [servername] , string [username] , string [password]); int mssql_query(string query, int [link_identifier]); int mssql_result(int result, int i, mixed field); int mssql_select_db(string database_name, int [link_identifier]); !Miscellaneous functions int connection_aborted(void); int connection_status(void); int connection_timeout(void); int define(string name, mixed value, int [case_insensitive]); int defined(string name); void die(string message); void eval(string code_str); void exit(void); int func_get_arg(int arg_num); int func_get_args(void); int func_num_args(void); int function_exists(string function_name); object get_browser(string [user_agent]); int ignore_user_abort(int [setting]); array iptcparse(string iptcblock); void leak(int bytes); string pack(string format, mixed [args] ...); int register_shutdown_function (string func); string serialize(mixed value); void sleep(int seconds); int uniqid(string prefix, boolean [lcg]); array unpack(string format, string data); mixed unserialize(string str); void usleep(int micro_seconds); !mSQL functions int msql(string database, string query, int link_identifier); int msql_affected_rows(int query_identifier); int msql_close(int link_identifier); int msql_connect(string hostname); int msql_create_db(string database name, int [link_identifier]); int msql_createdb(string database name, int [link_identifier]); int msql_data_seek(int query_identifier, int row_number); string msql_dbname(int query_identifier, int i); int msql_drop_db(string database_name, int link_identifier); string msql_error(); int msql_fetch_array(int query_identifier, int [result_type]); object msql_fetch_field(int query_identifier, int field_offset); int msql_fetch_object(int query_identifier, int [result_type]); array msql_fetch_row(int query_identifier); string msql_fieldname(int query_identifier, int field); int msql_field_seek(int query_identifier, int field_offset); int msql_fieldtable(int query_identifier, int field); string msql_fieldtype(int query_identifier, int i); string msql_fieldflags(int query_identifier, int i); int msql_fieldlen(int query_identifier, int i); int msql_free_result(int query_identifier); int msql_list_fields(string database, string tablename); int msql_list_dbs(void); int msql_list_tables(string database); int msql_num_fields(int query_identifier); int msql_num_rows(int query_identifier); int msql_numfields(int query_identifier); int msql_numrows(void); int msql_pconnect(string hostname); int msql_query(string query, int link_identifier); int msql_result(int query_identifier, int i, mixed field); int msql_select_db(string database_name, int link_identifier); string msql_tablename(int query_identifier, int field); !MySQL functions int mysql_affected_rows(int [link_identifier]); int mysql_change_user(string user, string password, string [database] , int [link_identifier]); int mysql_close(int [link_identifier]); int mysql_connect(string [hostname [:port] [:/path/to/socket] ] , string [username] , string [password]); int mysql_create_db(string database name, int [link_identifier]); int mysql_data_seek(int result_identifier, int row_number); int mysql_db_query(string database, string query, int [link_identifier]); int mysql_drop_db(string database_name, int [link_identifier]); int mysql_errno(int [link_identifier]); string mysql_error(int [link_identifier]); array mysql_fetch_array(int result, int [result_type]); object mysql_fetch_field(int result, int [field_offset]); array mysql_fetch_lengths(int result); object mysql_fetch_object(int result, int [result_typ]); array mysql_fetch_row(int result); string mysql_field_name(int result, int field_index); int mysql_field_seek(int result, int field_offset); string mysql_field_table(int result, int field_offset); string mysql_field_type(int result, int field_offset); string mysql_field_flags(int result, int field_offset); int mysql_field_len(int result, int field_offset); int mysql_free_result(int result); int mysql_insert_id(int [link_identifier]); int mysql_list_fields(string database_name, string table_name, int [link_identifier]); int mysql_list_dbs(int [link_identifier]); int mysql_list_tables(string database, int [link_identifier]); int mysql_num_fields(int result); int mysql_num_rows(int result); int mysql_pconnect(string [hostname [:port] [:/path/to/socket] ] , string [username] , string [password]); int mysql_query(string query, int [link_identifier]); int mysql_result(int result, int row, mixed [field]); int mysql_select_db(string database_name, int [link_identifier]); string mysql_tablename(int result, int i); !Network functions int checkdnsrr(string host, string [type]); int closelog(void); int debugger_off(void); int debugger_on(string address); int fsockopen(string hostname, int port, int [errno], string [errstr], double [timeout]); string gethostbyaddr(string ip_address); string gethostbyname(string hostname); array gethostbynamel(string hostname); int getmxrr(string hostname, array mxhosts, array [weight]); int getprotobyname(string name); string getprotobynumber(int number); int getservbyname(string service, string protocol); string getservbyport(int port, string protocol); int openlog(string ident, int option, int facility); int pfsockopen(string hostname, int port, int [errno], string [errstr], int [timeout]); int set_socket_blocking(int socket descriptor, int mode); int syslog(int priority, string message); !NIS functions int yp_get_default_domain(void); int yp_order(string domain, string map); string yp_master(string domain, string map); string yp_match(string domain, string map, string key); string[] yp_first(string domain, string map); string[] yp_next(string domain, string map, string key); !ODBC functions int odbc_autocommit(int connection_id, int [OnOff]); int odbc_binmode(int result_id, int mode); void odbc_close(int connection_id); void odbc_close_all(void); int odbc_commit(int connection_id); int odbc_connect(string dsn, string user, string password, int [cursor_type]); string odbc_cursor(int result_id); string odbc_do(int conn_id, string query); int odbc_exec(int connection_id, string query_string); int odbc_execute(int result_id, array [parameters_array]); int odbc_fetch_into(int result_id, int [rownumber], array result_array); int odbc_fetch_row(int result_id, int [row_number]); string odbc_fieldname(int result_id, int field_number); string odbc_field_type(int result_id, int field_number); int odbc_field_len(int result_id, int field_number); int odbc_free_result(int result_id); int odbc_longreadlen(int result_id, int length); int odbc_num_fields(int result_id); int odbc_pconnect(string dsn, string user, string password, int [cursor_type]); int odbc_prepare(int connection_id, string query_string); int odbc_num_rows(int result_id); string odbc_result(int result_id, mixed field); int odbc_result_all(int result_id, string [format]); int odbc_rollback(int connection_id); int odbc_setoption(int id, int function, int option, int param); !Oracle functions int ora_bind(int cursor, string PHP variable name, string SQL parameter name, int length, int [type]); int ora_close(int cursor); string ora_columnName(int cursor, int column); string ora_columnType(int cursor, int column int ora_commit(int conn); int ora_commitoff(int conn); int ora_commiton(int conn); string Ora_Error(int cursor_or_connection); int ora_errorcode(int cursor_or_connection); int ora_exec(int cursor); int ora_fetch(int cursor); mixed ora_getcolumn(int cursor, mixed column); int ora_logoff(int connection); int ora_logon(string user, string password); int ora_open(int connection); int ora_parse(int cursor_ind, string sql_statement, int defer); int ora_rollback(int connection); !Oracle 8 functions int OCIDefineByName(int stmt, string Column-Name, mixed &variable, int [type]); int OCIBindByName(int stmt, string ph_name, mixed &variable, intlength, int [type]); int OCILogon(string username, string password, string [db]); int OCIPLogon(string username, string password, string [db]); int OCINLogon(string username, string password, string [db]); int OCILogOff(int connection); int OCIExecute(int statement, int [mode]); int OCICommit(int connection); int OCIRollback(int connection); string OCINewDescriptor(int connection, int [type]); int OCIRowCount(int statement); int OCINumCols(int stmt); mixed OCIResult(int statement, mixed column); int OCIFetch(int statement); int OCIFetchInto(int stmt, array &result, int [mode]); int OCIFetchStatement(int stmt, array &variable); int OCIColumnIsNULL(int stmt, mixed column); int OCIColumnSize(int stmt, mixed column); string OCIServerVersion(int conn); string OCIStatementType(int stmt); int OCINewCursor(int conn); int OCIFreeStatement(int stmt); int OCIFreeCursor(int stmt); string OCIColumnName(int stmt, int col); mixed OCIColumnName(int stmt, int col); int OCIParse(int conn, strint query); int OCIError(int [stmt|conn]); void OCIInternalDebug(int onoff); !PDF functions info pdf_get_info(string filename); void pdf_set_info_creator(info info, string creator); void pdf_set_info_title(info info, string title); void pdf_set_info_subject(info info, string subject); void pdf_set_info_keywords(info info, string keywords); void pdf_set_info_author(info info, string author); int pdf_open(int file, int info); void pdf_close(int pdf document); void pdf_begin_page(int pdf document, double height, double width); void pdf_end_page(int pdf document); void pdf_show(int pdf document, string text); void pdf_show_boxed(int pdf document, string text, double x-coor, double y-coor, double width, double height, string mode); void pdf_show_xy(int pdf document, string text, double x-coor, double y-coor); void pdf_set_font(int pdf document, string font name, double size, string encoding, int [embed]); void pdf_set_leading(int pdf document, double distance); void pdf_set_parameter(int pdf document, string name, string value); void pdf_set_text_rendering(int pdf document, int mode); void pdf_set_horiz_scaling(int pdf document, double scale); void pdf_set_text_rise(int pdf document, double rise); void pdf_set_text_matrix(int pdf document, array matrix); void pdf_set_text_pos(int pdf document, double x-coor, double y-coor); void pdf_set_char_spacing(int pdf document, double space); void pdf_set_word_spacing(int pdf document, double space); void pdf_skew(int pdf document, double alpha, double beta); void pdf_continue_text(int pdf document, string text); double pdf_stringwidth(int pdf document, string text); void pdf_save(int pdf document); void pdf_restore(int pdf document); void pdf_translate(int pdf document, double x-coor, double y-coor); void pdf_scale(int pdf document, double x-scale, double y-scale); void pdf_rotate(int pdf document, double angle); void pdf_setflat(int pdf document, double value); void pdf_setlinejoin(int pdf document, long value); void pdf_setlinecap(int pdf document, int value); void pdf_setmiterlimit(int pdf document, double value); void pdf_setlinewidth(int pdf document, double width); void pdf_setdash(int pdf document, double white, double black); void pdf_moveto(int pdf document, double x-coor, double y-coor); void pdf_curveto(int pdf document, double x1, double y1, double x2, double y2, double x3, double y3); void pdf_lineto(int pdf document, double x-coor, double y-coor); void pdf_circle(int pdf document, double x-coor, double y-coor, double radius); void pdf_arc(int pdf document, double x-coor, double y-coor, double radius, double start, double end); void pdf_rect(int pdf document, double x-coor, double y-coor, double width, double height); void pdf_closepath(int pdf document); void pdf_stroke(int pdf document); void pdf_closepath_stroke(int pdf document); void pdf_fill(int pdf document); void pdf_fill_stroke(int pdf document); void pdf_closepath_fill_stroke(int pdf document); void pdf_endpath(int pdf document); void pdf_clip(int pdf document); void pdf_setgray_fill(int pdf document, double gray value); void pdf_setgray_stroke(int pdf document, double gray value); void pdf_setgray(int pdf document, double gray value); void pdf_setrgbcolor_fill(int pdf document, double red value, double green value, double blue value); void pdf_setrgbcolor_stroke(int pdf document, double red value, double green value, double blue value); void pdf_setrgbcolor(int pdf document, double red value, double green value, double blue value); int pdf_add_outline(int pdf document, string text, int [parent], int [open]); void pdf_set_transition(int pdf document, int transition); void pdf_set_duration(int pdf document, double duration); int pdf_open_gif(int pdf document, string filename); int pdf_open_memory_image(int pdf document, int image); int pdf_open_jpeg(int pdf document, string filename); void pdf_close_image(int image); void pdf_place_image(int pdf document, int image, double x-coor, double y-coor, double scale); void pdf_put_image(int pdf document, int image); void pdf_execute_image(int pdf document, int image, double x-coor, double y-coor, double scale); void pdf_add_annotation(int pdf document, double llx, double lly, double urx, double ury, string title, string content); !Perl-compatible Regular Expression functions int preg_match(string pattern, string subject, array [matches]); int preg_match_all(string pattern, string subject, array matches, int [order]); mixed preg_replace(mixed pattern, mixed replacement, mixed subject); array preg_split(string pattern, string subject, int [limit], int [flags]); string preg_quote(string str); array preg_grep(string pattern, array input); !PHP options & information int error_log(string message, int message_type, string [destination] , string [extra_headers]); int error_reporting(int [level]); bool extension_loaded(string name); string getenv(string varname); string get_cfg_var(string varname); string get_current_user(void); long get_magic_quotes_gpc(void); long get_magic_quotes_runtime (void); int getlastmod(void); int getmyinode(void); int getmypid(void); int getmyuid(void); array getrusage(int [who]); int phpinfo(void); string phpversion(void); string php_logo_guid(void); void putenv(string setting); long set_magic_quotes_runtime (int new_setting); void set_time_limit(int seconds); string zend_logo_guid(void); !POSIX functions bool posix_kill(int pid, int sig); int posix_getpid(void); int posix_getppid(void); int posix_getuid(void); int posix_geteuid(void); int posix_getgid(void); int posix_getegid(void); bool posix_setuid(int uid); bool posix_setgid(int gid); array posix_getgroups(void); string posix_getlogin(void); int posix_getpgrp(void); int posix_setsid(void); int posix_setpgid(int pid, int pgid); int posix_getpgid(int pid); int posix_getsid(int pid); array posix_uname(void); array posix_times(void); string posix_ctermid(void); string posix_ttyname(int fd); bool posix_isatty(int fd); string posix_getcwd(void); bool posix_getcwd(string pathname, int mode); array posix_getgrnam(string name); array posix_getgrgid(int gid); array posix_getpwnam(string username); array posix_getpwuid(int uid); array posix_getrlimit(void); !PostgreSQL functions bool pg_close(int connection); int pg_cmdtuples(int result_id); int pg_connect(string host, string port, string options, string tty, string dbname); string pg_dbname(int connection); string pg_errormessage(int connection); int pg_exec(int connection, string query); array pg_fetch_array(int result, int row, int [result_type]); object pg_fetch_object(int result, int row, int [result_type]); array pg_fetch_row(int result, int row); int pg_fieldisnull(int result_id, int row, mixed field); string pg_fieldname(int result_id, int field_number); int pg_fieldnum(int result_id, string field_name); int pg_fieldprtlen(int result_id, int row_number, string field_name); int pg_fieldsize(int result_id, int field_number); int pg_fieldtype(int result_id, int field_number); int pg_freeresult(int result_id); int pg_getlastoid(int result_id); string pg_host(int connection_id); void pg_loclose(int fd); int pg_locreate(int conn); int pg_loopen(int conn, int objoid, string mode); string pg_loread(int fd, int len); void pg_loreadall(int fd); void pg_lounlink(int conn, int lobjid); int pg_lowrite(int fd, string buf); int pg_numfields(int result_id); int pg_numrows(int result_id); string pg_options(int connection_id); int pg_pconnect(string host, string port, string options, string tty, string dbname); int pg_port(int connection_id); mixed pg_result(int result_id, int row_number, mixed fieldname); string pg_tty(int connection_id); !Program Execution functions string escapeshellcmd(string command); string exec(string command, string [array] , int [return_var]); void passthru(string command, int [return_var]); string system(string command, int [return_var]); !GNU Recode functions string recode_string(string request, string string); bool recode_file(int input, int output); !Regular expression functions int ereg(string pattern, string string, array [regs]); string ereg_replace(string pattern, string replacement, string string); int eregi(string pattern, string string, array [regs]); string eregi_replace(string pattern, string replacement, string string); array split(string pattern, string string, int [limit]); !Semaphore and shared memory functions int sem_get(int key, int [max_acquire] , int [perm]); int sem_acquire(int sem_identifier); int sem_release(int sem_identifier); int shm_attach(int key, int [memsize], int [perm]); int shm_detach(int shm_identifier); int shm_remove(int shm_identifier); int shm_put_var(int shm_identifier, int variable_key, mixed variable); mixed shm_get_var(int id, int variable_key); int shm_remove_var(int id, int variable_key); !Session handling functions bool session_start(void); bool session_destroy(void); string session_name(string [name]); string session_module_name(string [module]); string session_save_path(string [path]); string session_id(string [id]); bool session_register(mixed name, mixed [...]); bool session_unregister(string name); bool session_is_registered(string name); bool session_decode(string data); bool session_encode(void); !SNMP functions string snmpget(string hostname, string community, string object_id, int [timeout], int [retries]); string snmpget(string hostname, string community, string object_id, string type, mixed value, int [timeout], int [retries]); array snmpwalk(string hostname, string community, string object_id, int [timeout] , int [retries]); array snmpwalkoid(string hostname, string community, string object_id, int [timeout] , int [retries]); boolean snmp_get_quick_print(void); void snmp_set_quick_print(boolean quick_print); !String functions string addcslashes(string str, string charlist); string addslashes(string str); string bin2hex(string str); string chop(string str); string chr(int ascii); string chunk_split(string string, int [chunklen] , string [end]); string convert_cyr_string(string str, string from, string to); mixed count_chars(string string, [mode]); string crypt(string str, string [salt]); echo(string arg1, string [argn]...); array explode(string separator, string string); void flush(void); string get_html_translation_table (int table); array get_meta_tags(string filename, int [use_include_path]); string htmlentities(string string); string htmlspecialchars(string string); string implode(string glue, array pieces); string join(string glue, array pieces); string ltrim(string str); string md5(string str); string metaphone(string str); string nl2br(string string); int ord(string string); void parse_str(string str); print(string arg); int printf(string format, mixed [args]...); string quoted_printable_decode (string str); string quotemeta(string str); string rawurldecode(string str); string rawurlencode(string str); string setlocale(string category, string locale); int similar_text(string first, string second, double [percent]); string soundex(string str); string sprintf(string format, mixed [args]...); int strcasecmp(string str1, string str2); string strchr(string haystack, string needle); int strcmp(string str1, string str2); int strcspn(string str1, string str2); string strip_tags(string str, string [allowable_tags]); string stripcslashes(string str); string stripslashes(string str); string stristr(string haystack, string needle); int strlen(string str); int strpos(string haystack, string needle, int [offset]); string strrchr(string haystack, string needle); string str_repeat(string input, int multiplier); string strrev(string string); int strrpos(string haystack, char needle); int strspn(string str1, string str2); string strstr(string haystack, string needle); string strtok(string arg1, string arg2); string strtolower(string str); string strtoupper(string string); string str_replace(string needle, string str, string haystack); string strtr(string str, string from, string to); string substr(string string, int start, int [length]); string substr_replace(string string, string replacement, int start, int [length]); string trim(string str); string ucfirst(string str); string ucwords(string str); !Sybase functions int sybase_affected_rows(int [link_identifier]); int sybase_close(int link_identifier); int sybase_connect(string servername, string username, string password); int sybase_data_seek(int result_identifier, int row_number); int sybase_fetch_array(int result); object sybase_fetch_field(int result, int field_offset); int sybase_fetch_object(int result); array sybase_fetch_row(int result); int sybase_field_seek(int result, int field_offset); int sybase_free_result(int result); int sybase_num_fields(int result); int sybase_num_rows(string result); int sybase_pconnect(string servername, string username, string password); int sybase_query(string query, int link_identifier); int sybase_result(int result, int i, mixed field); int sybase_select_db(string database_name, int link_identifier); !URL Functions string base64_decode(string encoded_data); string base64_encode(string data); array parse_url(string url); string urldecode(string str); string urlencode(string str); !Variable functions double doubleval(mixed var); int empty(mixed var); string gettype(mixed var); int intval(mixed var, int [base]); int is_array(mixed var); int is_double(mixed var); int is_float(mixed var); int is_int(mixed var); int is_integer(mixed var); int is_long(mixed var); int is_object(mixed var); int is_real(mixed var); int is_string(mixed var); int isset(mixed var); void print_r(mixed expression); int settype(string var, string type); string strval(mixed var); int unset(mixed var); void var_dump(mixed expression !Vmailmgr functions int vm_adduser(string vdomain, string basepwd, string newusername, string newuserpassword); int vm_addalias(string vdomain, string basepwd, string username, string alias); int vm_passwd(string vdomain, string username, string password, string newpassword); int vm_delalias(string vdomain, string basepwd, string alias); int vm_deluser(string vdomain, string username); !WDDX functions string wddx_serialize_value(mixed var, string [comment]); string wddx_serialize_vars(mixed var_name, mixed [...]); int wddx_packet_start(string [comment]); string wddx_packet_end(int packet_id); wddx_add_vars(int packet_id, mixed name_var, mixed [...]); mixed wddx_deserialize(string packet); !XML int xml_parser_create(string [encoding]); void xml_set_object(int parser, object &object); int xml_set_element_handler (int parser, string startElementHandler , string endElementHandler); int xml_set_character_data_handler (int parser, string handler); int xml_set_processing_instruction_handler (int parser, string handler); int xml_set_default_handler (int parser, string handler); int xml_set_unparsed_entity_decl_handler (int parser, string handler); int xml_set_notation_decl_handler (int parser, string handler); int xml_set_external_entity_ref_handler (int parser, string handler); int xml_parse(int parser, string data, int [isFinal]); int xml_get_error_code(int parser); string xml_error_string(int code); int xml_get_current_line_number (int parser); int xml_get_current_column_number (int parser); int xml_get_current_byte_index (int parser); string xml_parser_free(int parser); int xml_parser_set_option(int parser, int option, mixed value); mixed xml_parser_get_option (int parser, int option); string utf8_decode(string data); string utf8_encode(string data);