home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2003 July / PCpro_2003_07.ISO / vollvers / edhtml / EdHTMLv5.0.exe / Main / PHP4.DAT < prev    next >
Encoding:
Text File  |  2003-05-14  |  56.4 KB  |  1,248 lines

  1. #EdHTML
  2.  
  3. !Apache-specific functions
  4. class apache_lookup_uri(string URI);
  5. string apache_note(string note_name [, string note_value]);
  6. array getallheaders(void);
  7. int virtual(string filename);
  8.  
  9. !Arbitrary precision mathematics functions
  10. string bcadd(string left operand, string right operand, int [scale]);
  11. int bccomp(string left operand, string right operand, int [scale]);
  12. string bcdiv(string left operand, string right operand, int [scale]);
  13. string bcmod(string left operand, string modulus);
  14. string bcmul(string left operand, string right operand, int [scale]);
  15. string bcpow(string x, string y, int [scale]);
  16. string bcscale(int scale);
  17. string bcsqrt(string operand, int scale);
  18. string bcsub(string left operand, string right operand, int [scale]);
  19.  
  20. !Array functions
  21. array array(...);
  22. array array_count_values(array input);
  23. array array_flip(array trans);
  24. array array_keys(array input, mixed [search_value]);
  25. array array_merge(array array1, array array2, [ ...]);
  26. array array_pad(array input, int pad_size, mixed pad_value);
  27. mixed array_pop(array array);
  28. int array_push(array array, mixed var, [...]);
  29. array array_reverse(array array);
  30. mixed array_shift(array array);
  31. array array_slice(array array, int offset, int [length]);
  32. array array_splice(array input, int offset, int [length] , array [replacement]);
  33. int array_unshift(array array, mixed var, [...]);
  34. array array_values(array input);
  35. int array_walk(array arr, string func, mixed userdata);
  36. void arsort(array array);
  37. void asort(array array);
  38. array compact(string varname | array varnames, [...]);
  39. int count(mixed var);
  40. mixed current(array array);
  41. array each(array array);
  42. end(array array);
  43. void extract(array var_array, int [extract_type] , string [prefix]);
  44. bool in_array(mixed needle, array haystack);
  45. mixed key(array array);
  46. int krsort(array array);
  47. int ksort(array array);
  48. void list(...);
  49. mixed next(array array);
  50. mixed pos(array array);
  51. mixed prev(array array);
  52. array range(int low, int high);
  53. mixed reset(array array);
  54. void rsort(array array);
  55. void shuffle(array array);
  56. int sizeof(array array);
  57. void sort(array array);
  58. void uasort(array array, function cmp_function);
  59. void uksort(array array, function cmp_function);
  60. void usort(array array, function cmp_function);
  61.  
  62. !Aspell functions
  63. int aspell_new(string master[, string personal]);
  64. int aspell_check(aspell int,string word);
  65. int aspell_check_raw(aspell int,string word);
  66. array aspell_suggest(aspell int,string word);
  67.  
  68. !Calendar functions
  69. string jdtogregorian(int julianday);
  70. int gregoriantojd(int month, int day, int year);
  71. string jdtojulian(int julianday);
  72. int juliantojd(int month, int day, int year);
  73. string jdtojewish(int julianday);
  74. int jewishtojd(int month, int day, int year);
  75. string jdtofrench(int month, int day, int year);
  76. int frenchtojd(int month, int day, int year);
  77. string jdmonthname(int julianday, int mode);
  78. mixed jddayofweek(int julianday, int mode);
  79. int easter_date(int year);
  80. int easter_days(int year);
  81.  
  82. !ClibPDF functions
  83. void cpdf_global_set_document_limits(int maxpages, int maxfonts, int maximages, int maxannotations, int maxobjects);
  84. void cpdf_set_creator(string creator);
  85. void cpdf_set_title(string title);
  86. void cpdf_set_subject(string subject);
  87. void cpdf_set_keywords(string keywords);
  88. int cpdf_open(int compression, string filename);
  89. void cpdf_close(int pdf document);
  90. void cpdf_page_init(int pdf document, int page number, int orientation, double height, double width, double unit);
  91. void cpdf_finalize_page(int pdf document, int page number);
  92. void cpdf_finalize(int pdf document);
  93. void cpdf_output_buffer(int pdf document);
  94. void cpdf_save_to_file(int pdf document, string filename);
  95. void cpdf_set_current_page(int pdf document, int page number);
  96. void cpdf_begin_text(int pdf document);
  97. void cpdf_end_text(int pdf document);
  98. void cpdf_show(int pdf document, string text);
  99. void cpdf_show_xy(int pdf document, string text, double x-koor, double y-koor, int mode);
  100. void cpdf_text(int pdf document, string text, double x-koor, double y-koor, int mode, double orientation, int alignmode);
  101. void cpdf_set_font(int pdf document, string font name, double size, string encoding);
  102. void cpdf_set leading(int pdf document, double distance);
  103. void cpdf_set_text_rendering(int pdf document, int mode);
  104. void cpdf_set_horiz_scaling(int pdf document, double scale);
  105. void cpdf_set_horiz_scaling(int pdf document, double scale);
  106. void cpdf_set_text_rise(int pdf document, double value);
  107. void cpdf_set_text_matrix(int pdf document, array matrix);
  108. void cpdf_set_text_pos(int pdf document, double x-koor, double y-koor, int mode);
  109. void cpdf_set_char_spacing(int pdf document, double space);
  110. void cpdf_set_word_spacing(int pdf document, double space);
  111. void cpdf_continue_text(int pdf document, string text);
  112. double cpdf_stringwidth(int pdf document, string text);
  113. void cpdf_save(int pdf document);
  114. void cpdf_restore(int pdf document);
  115. void cpdf_translate(int pdf document, double x-koor, double y-koor, int mode);
  116. void cpdf_scale(int pdf document, double x-scale, double y-scale);
  117. void cpdf_rotate(int pdf document, double angle);
  118. void cpdf_setflat(int pdf document, double value);
  119. void cpdf_setlinejoin(int pdf document, long value);
  120. void cpdf_setlinecap(int pdf document, int value);
  121. void cpdf_setmiterlimit(int pdf document, double value);
  122. void cpdf_setlinewidth(int pdf document, double width);
  123. void cpdf_setdash(int pdf document, double white, double black);
  124. void cpdf_moveto(int pdf document, double x-koor, double y-koor, int mode);
  125. void cpdf_rmoveto(int pdf document, double x-koor, double y-koor, int mode);
  126. void cpdf_curveto(int pdf document, double x1, double y1, double x2, double y2, double x3, double y3, int mode);
  127. void cpdf_lineto(int pdf document, double x-koor, double y-koor, int mode);
  128. void cpdf_rlineto(int pdf document, double x-koor, double y-koor, int mode);
  129. void cpdf_circle(int pdf document, double x-koor, double y-koor, double radius, int mode);
  130. void cpdf_arc(int pdf document, double x-koor, double y-koor, double radius, double start, double end, int mode);
  131. void cpdf_rect(int pdf document, double x-koor, double y-koor, double width, double height, int mode);
  132. void cpdf_closepath(int pdf document);
  133. void cpdf_stroke(int pdf document);
  134. void cpdf_closepath_stroke(int pdf document);
  135. void cpdf_fill(int pdf document);
  136. void cpdf_fill_stroke(int pdf document);
  137. void cpdf_closepath_fill_stroke(int pdf document);
  138. void cpdf_clip(int pdf document);
  139. void cpdf_setgray_fill(int pdf document, double value);
  140. void cpdf_setgray_stroke(int pdf document, double gray value);
  141. void cpdf_setgray(int pdf document, double gray value);
  142. void cpdf_setrgbcolor_fill(int pdf document, double red value, double green value, double blue value);
  143. void cpdf_setrgbcolor_stroke(int pdf document, double red value, double green value, double blue value);
  144. void cpdf_setrgbcolor(int pdf document, double red value, double green value, double blue value);
  145. void cpdf_add_outline(int pdf document, string text);
  146. void cpdf_set_page_animation(int pdf document, int transition, double duration);
  147. 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);
  148. void cpdf_place_inline_image(int pdf document, int image, double x-koor, double y-koor, double angle, double width, double height, int mode);
  149. void cpdf_add_annotation(int pdf document, double llx, double lly, double urx, double ury, string title, string content, int mode);
  150.  
  151. !Compression functions
  152. int gzclose(int zp);
  153. int gzeof(int zp);
  154. array gzfile(string filename);
  155. string gzgetc(int zp);
  156. string gzgets(int zp, int length);
  157. string gzgetss(int zp, int length);
  158. int gzopen(string filename, string mode [, int use_include_path]);
  159. int gzpassthru(int zp);
  160. int gzputs(int zp, string str [, int length]);
  161. int gzread(int zp, int length);
  162. int gzrewind(int zp);
  163. int gzseek(int zp, int offset);
  164. int gztell(int zp);
  165. int gzwrite(int zp, string str [, int length]);
  166. int readgzfile(string filename [, int use_include_path]);
  167.  
  168. !Database abstraction layer functions
  169. void dba_close(int handle);
  170. string dba_delete(string key, int handle);
  171. bool dba_exists(string key, int handle);
  172. string dba_fetch(string key, int handle);
  173. string dba_firstkey(int handle);
  174. bool dba_insert(string key, string value, int handle);
  175. string dba_nextkey(int handle);
  176. int dba_popen(string path, string mode, string handler, [...]);
  177. int dba_open(string path, string mode, string handler, [...]);
  178. bool dba_optimize(int handle);
  179. bool dba_replace(string key, string value, int handle);
  180. bool dba_sync(int handle);
  181.  
  182. !Date and Time functions
  183. bool checkdate(int month, int day, int year);
  184. string date(string format[, int timestamp]);
  185. array getdate([int timestamp]);
  186. array gettimeofday(void);
  187. string gmdate(string format[, int timestamp]);
  188. int gmmktime(int hour, int min, int sec, int mon, int mday, int year);
  189. string gmstrftime(string format, int timestamp);
  190. string microtime(void);
  191. int mktime(int hour, int min, int sec, int mon, int mday, int year);
  192. string strftime(string format[, int timestamp]);
  193. int time(void);
  194.  
  195. !dBase functions
  196. bool dbase_create(string filename, array fields);
  197. int dbase_open(string name, int mode);
  198. bool dbase_close(int identifier);
  199. bool dbase_pack(int identifier);
  200. bool dbase_add_record(int identifier, array data);
  201. bool dbase_replace_record(int dbase_identifier, array record, int dbase_record_number);
  202. bool dbase_delete_record(int dbase_identifier, int record);
  203. array dbase_get_record(int dbase_identifier, int record);
  204. array dbase_get_record_with_names (int dbase_identifier, int record);
  205. int dbase_numfields(int dbase_identifier);
  206. int dbase_numrecords(int dbase_identifier);
  207.  
  208. !dbm functions
  209. int dbmopen(string filename, string flags);
  210. bool dbmclose(int dbm_identifier);
  211. bool dbmexists(int dbm_identifier, string key);
  212. string dbmfetch(int dbm_identifier, string key);
  213. int dbminsert(int dbm_identifier, string key, string value);
  214. bool dbmreplace(int dbm_identifier, string key, string value);
  215. bool dbmdelete(int dbm_identifier, string key);
  216. string dbmfirstkey(int dbm_identifier);
  217. string dbmnextkey(int dbm_identifier, string key);
  218. string dblist(void);
  219.  
  220. !Directory functions
  221. int chdir(string directory);
  222. new dir(string directory);
  223. void closedir(int dir_handle);
  224. int opendir(string path);
  225. string readdir(int dir_handle);
  226. void rewinddir(int dir_handle);
  227.  
  228. !Dynamic Loading functions
  229. int dl(string library);
  230.  
  231. !Encryption functions
  232. string mcrypt_get_cipher_name(int cipher);
  233. int mcrypt_get_block_size(int cipher);
  234. int mcrypt_get_key_size(int cipher);
  235. string mcrypt_create_iv(int size, int source);
  236. int mcrypt_cbc(int cipher, string key, string data, int mode, string [iv]);
  237. int mcrypt_cfb(int cipher, string key, string data, int mode, string iv);
  238. int mcrypt_ecb(int cipher, string key, string data, int mode);
  239. int mcrypt_ofb(int cipher, string key, string data, int mode, string iv);
  240.  
  241. !filePro functions
  242. bool filepro(string directory);
  243. string filepro_fieldname(int field_number);
  244. string filepro_fieldtype(int field_number);
  245. int filepro_fieldwidth(int field_number);
  246. string filepro_retrieve(int row_number, int field_number);
  247. int filepro_fieldcount(void);
  248. int filepro_rowcount(void);
  249.  
  250. !Filesystem functions
  251. string basename(string path);
  252. int chgrp(string filename, mixed group);
  253. int chmod(string filename, int mode);
  254. int chown(string filename, mixed user);
  255. void clearstatcache(void);
  256. int copy(string source, string dest);
  257. void delete(string file);
  258. string dirname(string path);
  259. float diskfreespace(string directory);
  260. int fclose(int fp);
  261. int feof(int fp);
  262. string fgetc(int fp);
  263. array fgetcsv(int fp, int length, string [delimiter]);
  264. string fgets(int fp, int length);
  265. string fgetss(int fp, int length, string [allowable_tags]);
  266. array file(string filename, int [use_include_path]);
  267. int file_exists(string filename);
  268. int fileatime(string filename);
  269. int filectime(string filename);
  270. int filegroup(string filename);
  271. int fileinode(string filename);
  272. int filemtime(string filename);
  273. int fileowner(string filename);
  274. int fileperms(string filename);
  275. int filesize(string filename);
  276. string filetype(string filename);
  277. bool flock(int fp, int operation);
  278. int fopen(string filename, string mode, int [use_include_path]);
  279. int fpassthru(int fp);
  280. int fputs(int fp, string str, int [length]);
  281. string fread(int fp, int length);
  282. int fseek(int fp, int offset);
  283. int ftell(int fp);
  284. int fwrite(int fp, string string, int [length]);
  285. int fwrite(int fp, int buffer);
  286. bool is_dir(string filename);
  287. bool is_executable(string filename);
  288. bool is_file(string filename);
  289. bool is_link(string filename);
  290. bool is_readable(string filename);
  291. bool is_writeable(string filename);
  292. int link(string target, string link);
  293. int linkinfo(string path);
  294. int mkdir(string pathname, int mode);
  295. int pclose(int fp);
  296. int popen(string command, string mode);
  297. int readfile(string filename, int [use_include_path]);
  298. string readlink(string path);
  299. int rename(string oldname, string newname);
  300. int rewind(int fp);
  301. int rmdir(string dirname);
  302. array stat(string filename);
  303. array lstat(string filename);
  304. int symlink(string target, string link);
  305. string tempnam(string dir, string prefix);
  306. int touch(string filename, int time);
  307. int umask(int mask);
  308. int unlink(string filename);
  309.  
  310. !Forms Data Format functions
  311. int fdf_open(string filename);
  312. void fdf_close(int fdf_document);
  313. int fdf_create(void);
  314. int fdf_save(string filename);
  315. string fdf_get_value(int fdf_document, string fieldname);
  316. void fdf_set_value(int fdf_document, string fieldname, string value, int isName);
  317. string fdf_next_field_name(int fdf_document, string fieldname);
  318. void fdf_set_ap(int fdf_document, string field_name, int face, string filename, int page_number);
  319. void fdf_set_status(int fdf_document, string status);
  320. string fdf_get_status(int fdf_document);
  321. void fdf_set_file(int fdf_document, string filename);
  322. string fdf_get_file(int fdf_document);
  323.  
  324. !FTP functions
  325. int ftp_connect(string host, int [port]);
  326. int ftp_login(int ftp_stream, string username, string password);
  327. int ftp_pwd(int ftp_stream);
  328. int ftp_cdup(int ftp_stream);
  329. int ftp_chdir(int ftp_stream, string directory);
  330. string ftp_mkdir(int ftp_stream, string directory);
  331. int ftp_rmdir(int ftp_stream, string directory);
  332. int ftp_nlist(int ftp_stream, string directory);
  333. int ftp_rawlist(int ftp_stream, string directory);
  334. int ftp_systype(int ftp_stream);
  335. int ftp_pasv(int ftp_stream, int pasv);
  336. int ftp_get(int ftp_stream, string local_file, string remote_file, int mode);
  337. int ftp_fget(int ftp_stream, int fp, string remote_file, int mode);
  338. int ftp_put(int ftp_stream, string remote_file, string local_file, int mode);
  339. int ftp_fput(int ftp_stream, string remote_file, int fp, int mode);
  340. int ftp_size(int ftp_stream, string remote_file);
  341. int ftp_mdtm(int ftp_stream, string remote_file);
  342. int ftp_rename(int ftp_stream, string from, string to);
  343. int ftp_delete(int ftp_stream, string path);
  344. int ftp_site(int ftp_stream, string cmd);
  345. int ftp_quit(int ftp_stream);
  346.  
  347. !Hash functions
  348. string mhash_get_hash_name(int hash);
  349. int mhash_get_block_size(int hash);
  350. int mhash_count(void);
  351. string mhash(int hash, string data);
  352.  
  353. !HTTP functions
  354. int header(string string);
  355. int setcookie(string name, string value, int expire, string path, string domain, int secure);
  356.  
  357. !Hyperwave functions
  358. strin hw_array2objrec(array object_array);
  359. array hw_children(int connection, int objectID);
  360. array hw_childrenobj(int connection, int objectID);
  361. int hw_close(int connection);
  362. int hw_connect(string host, int port, string username, string password);
  363. int hw_cp(int connection, array object_id_array, int destination id);
  364. int hw_deleteobject(int connection, int object_to_delete);
  365. int hw_docbyanchor(int connection, int anchorID);
  366. string hw_docbyanchorobj(int connection, int anchorID);
  367. string hw_documentattributes(int hw_document);
  368. string hw_documentbodytag(int hw_document);
  369. string hw_documentcontent(int hw_document);
  370. string hw_documentsetcontent(int hw_document, string content);
  371. int hw_documentsize(int hw_document);
  372. string hw_errormsg(int connection);
  373. int hw_edittext(int connection, int hw_document);
  374. int hw_error(int connection);
  375. int hw_free_document(int hw_document);
  376. array hw_getparentsobj(int connection, int objectID);
  377. array hw_getparentsobj(int connection, int objectID);
  378. array hw_getchildcoll(int connection, int objectID);
  379. array hw_getchildcollobj(int connection, int objectID);
  380. int hw_getremote(int connection, int objectID);
  381. int hw_getremotechildren(int connection, string object record);
  382. array hw_getsrcbydestobj(int connection, int objectID);
  383. array hw_getobject(int connection, [int|array] objectID, string query);
  384. string hw_getandlock(int connection, int objectID);
  385. int hw_gettext(int connection, int objectID, mixed [rootID/prefix]);
  386. array hw_getobjectbyquery(int connection, string query, int max_hits);
  387. array hw_getobjectbyqueryobj(int connection, string query, int max_hits);
  388. array hw_getobjectbyquerycoll(int connection, int objectID, string query, int max_hits);
  389. array hw_getobjectbyquerycollobj(int connection, int objectID, string query, int max_hits);
  390. array hw_getchilddoccoll(int connection, int objectID);
  391. array hw_getchilddoccollobj(int connection, int objectID);
  392. array hw_getanchors(int connection, int objectID);
  393. array hw_getanchorsobj(int connection, int objectID);
  394. int hw_mv(int connection, array object id array, int source id, int destination id);
  395. int hw_identify(string username, string password);
  396. array hw_incollections(int connection, array object_id_array, array collection_id_array, int return_collections);
  397. string hw_info(int connection);
  398. int hw_inscoll(int connection, int objectID, array object_array);
  399. int hw_insdoc(int connection, int parentID, string object_record, string text);
  400. int hw_insertdocument(int connection, int parent_id, int hw_document);
  401. int hw_insertobject(int connection, string object rec, string parameter);
  402. int hw_mapid(int connection, int server id, int object id);
  403. int hw_modifyobject(int connection, int object_to_change, array remove, array add, int mode);
  404. int hw_new_document(string object_record, string document_data, int document_size);
  405. array hw_objrec2array(string object_record);
  406. int hw_outputdocument(int hw_document);
  407. int hw_pconnect(string host, int port, string username, string password);
  408. int hw_pipedocument(int connection, int objectID);
  409. int hw_root();
  410. int hw_unlock(int connection, int objectID);
  411. int hw_who(int connection);
  412. string hw_getusername(int connection);
  413.  
  414. !Image functions
  415. array getimagesize(string filename, array [imageinfo]);
  416. int imagearc(int im, int cx, int cy, int w, int h, int s, int e, int col);
  417. int imagechar(int im, int font, int x, int y, string c, int col);
  418. int imagecharup(int im, int font, int x, int y, string c, int col);
  419. int imagecolorallocate(int im, int red, int green, int blue);
  420. int imagecolorat(int im, int x, int y);
  421. int imagecolorclosest(int im, int red, int green, int blue);
  422. int imagecolorexact(int im, int red, int green, int blue);
  423. int imagecolorresolve(int im, int red, int green, int blue);
  424. bool imagecolorset(int im, int index, int red, int green, int blue);
  425. array imagecolorsforindex(int im, int index);
  426. int imagecolorstotal(int im);
  427. int imagecolortransparent(int im, int [col]);
  428. int imagecopyresized(int dst_im, int src_im, int dstX, int dstY, int srcX, int srcY, int dstW, int dstH, int srcW, int srcH);
  429. int imagecreate(int x_size, int y_size);
  430. int imagecreatefromgif(string filename);
  431. int imagedashedline(int im, int x1, int y1, int x2, int y2, int col);
  432. int imagedestroy(int im);
  433. int imagefill(int im, int x, int y, int col);
  434. int imagefilledpolygon(int im, array points, int num_points, int col);
  435. int imagefilledrectangle(int im, int x1, int y1, int x2, int y2, int col);
  436. int imagefilltoborder(int im, int x, int y, int border, int col);
  437. int imagefontheight(int font);
  438. int imagefontwidth(int font);
  439. int imagegif(int im, string filename);
  440. int imageinterlace(int im, int [interlace]);
  441. int imageline(int im, int x1, int y1, int x2, int y2, int col);
  442. int imageloadfont(string file);
  443. int imagepolygon(int im, array points, int num_points, int col);
  444. array imagepsbbox(string text, int font, int size, int space, int width, float angle);
  445. int imagepsencodefont(string encodingfile);
  446. void imagepsfreefont(int fontindex);
  447. int imagepsloadfont(string filename);
  448. 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]);
  449. int imagerectangle(int im, int x1, int y1, int x2, int y2, int col);
  450. int imagesetpixel(int im, int x, int y, int col);
  451. int imagestring(int im, int font, int x, int y, string s, int col);
  452. int imagestringup(int im, int font, int x, int y, string s, int col);
  453. int imagesx(int im);
  454. int imagesy(int im);
  455. array ImageTTFBBox(int size, int angle, string fontfile, string text);
  456. array ImageTTFText(int im, int size, int angle, int x, int y, int col, string fontfile, string text);
  457.  
  458. !IMAP, POP3 and NNTP functions
  459. int imap_append(int imap_stream, string mbox, string message, string [flags]);
  460. string imap_base64(string text);
  461. string imap_body(int imap_stream, int msg_number, int [flags]);
  462. object imap_check(int imap_stream);
  463. int imap_close(int imap_stream, int [flags]);
  464. int imap_createmailbox(int imap_stream, string mbox);
  465. int imap_delete(int imap_stream, int msg_number, int [flags]);
  466. int imap_deletemailbox(int imap_stream, string mbox);
  467. int imap_expunge(int imap_stream);
  468. string imap_fetchbody(int imap_stream, int msg_number, string part_number, flags [flags]);
  469. object imap_fetchstructure (int imap_stream, int msg_number, int [flags]);
  470. object imap_header(int imap_stream, int msg_number, int [fromlength] , int [subjectlength] , string [defaulthost]);
  471. array imap_headers(int imap_stream);
  472. array imap_listmailbox(int imap_stream, string ref, string pattern);
  473. array imap_getmailboxes(int imap_stream, string ref, string pattern);
  474. array imap_listsubscribed(int imap_stream, string ref, string pattern);
  475. array imap_getsubscribed(int imap_stream, string ref, string pattern);
  476. int imap_mail_copy(int imap_stream, string msglist, string mbox, int [flags]);
  477. int imap_mail_move(int imap_stream, string msglist, string mbox, int [flags]);
  478. int imap_num_msg(int imap_stream);
  479. int imap_num_recent(int imap_stream);
  480. int imap_open(string mailbox, string username, string password, int [flags]);
  481. int imap_ping(int imap_stream);
  482. int imap_renamemailbox(int imap_stream, string old_mbox, string new_mbox);
  483. int imap_reopen(string imap_stream, string mailbox, string [flags]);
  484. int imap_subscribe(int imap_stream, string mbox);
  485. int imap_undelete(int imap_stream, int msg_number);
  486. int imap_unsubscribe(int imap_stream, string mbox);
  487. string imap_qprint(string string);
  488. string imap_8bit(string string);
  489. string imap_binary(string string);
  490. array imap_scanmailbox(int imap_stream, string content);
  491. object imap_mailboxmsginfo(int imap_stream);
  492. string imap_rfc822_write_address (string mailbox, string host, string personal);
  493. string imap_rfc822_parse_adrlist (string address, string default_host);
  494. string imap_setflag_full(int stream, string sequence, string flag, string options);
  495. string imap_clearflag_full (int stream, string sequence, string flag, string options);
  496. string imap_sort(int stream, int criteria, int reverse, int options);
  497. string imap_fetchheader(int imap_stream, int msgno, int flags);
  498. int imap_uid(int imap_stream, int msgno);
  499. int imap_msgno(int imap_stream, int uid);
  500. array imap_search(int imap_stream, string criteria, int flags);
  501. string imap_last_error(void);
  502. array imap_errors(void);
  503. array imap_alerts(void);
  504. object imap_status(int imap_stream, string mailbox, int options);
  505. string imap_utf7_decode(string text);
  506. string imap_utf7_encode(string data);
  507. string imap_utf8(string text);
  508. array imap_fetch_overview(int imap_stream, string sequence);
  509. string imap_mail_compose(array envelope, array body);
  510. string imap_mail(string to, string subject, string message, string [additional_headers] , string [cc] , string [bcc] , string [rpath]);
  511.  
  512. !Informix functions
  513. int ifx_connect(string [database] , string [userid] , string [password]);
  514. int ifx_pconnect(string [database] , string [userid] , string [password]);
  515. int ifx_close(int [link_identifier]);
  516. int ifx_query(string query, int [link_identifier] , int [cursor_type] , mixed [blobidarray]);
  517. int ifx_prepare(string query, int conn_id, int [cursor_def] , mixed blobidarray);
  518. int ifx_do(int result_id);
  519. string ifx_error(void);
  520. string ifx_errormsg(int [errorcode]);
  521. int ifx_affected_rows(int result_id);
  522. array ifx_getsqlca(int result_id);
  523. array ifx_fetch_row(int result_id, mixed [position]);
  524. int ifx_htmltbl_result(int result_id, string [html_table_options]);
  525. array ifx_fieldtypes(int result_id);
  526. array ifx_fieldproperties(int result_id);
  527. int ifx_num_fields(int result_id);
  528. int ifx_num_rows(int result_id);
  529. int ifx_free_result(int result_id);
  530. int ifx_create_char(string param);
  531. int ifx_free_char(int bid);
  532. int ifx_update_char(int bid, string content);
  533. int ifx_get_char(int bid);
  534. int ifx_create_blob(int type, int mode, string param);
  535. int ifx_copy_blob(int bid);
  536. int ifx_free_blob(int bid);
  537. int ifx_get_blob(int bid);
  538. ifx_update_blob(int bid, string content);
  539. void ifx_blobinfile_mode(int mode);
  540. void ifx_textasvarchar(int mode);
  541. void ifx_byteasvarchar(int mode);
  542. void ifx_nullformat(int mode);
  543. int ifxus_create_slob(int mode);
  544. int ifxus_free_slob(int bid);
  545. int ifxus_close_slob(int bid);
  546. int ifxus_open_slob(long bid, int mode);
  547. int ifxus_tell_slob(long bid);
  548. int ifxus_seek_blob(long bid, int mode, long offset);
  549. int ifxus_read_slob(long bid, long nbytes);
  550. int ifxus_write_slob(long bid, string content);
  551.  
  552. !InterBase functions
  553. int ibase_connect(string database, string [username] , string [password]);
  554. int ibase_connect(string database, string [username] , string [password]);
  555. int ibase_close(int [connection_id]);
  556. int ibase_query(int [link_identifier] , string query , int [bind_args]);
  557. int ibase_fetch_row(int result_identifier);
  558. int ibase_fetch_object(int result_id);
  559. int ibase_free_result(int result_identifier);
  560. int ibase_prepare(int [link_identifier] , string query);
  561. int ibase_bind(int query);
  562. int ibase_execute(int query);
  563. int ibase_free_query(int query);
  564. int ibase_timefmt(string format);
  565. int ibase_num_fields(int result_id);
  566.  
  567. !LDAP functions
  568. int ldap_add(int link_identifier, string dn, array entry);
  569. int ldap_mod_add(int link_identifier, string dn, array entry);
  570. int ldap_mod_del(int link_identifier, string dn, array entry);
  571. int ldap_mod_replace(int link_identifier, string dn, array entry);
  572. int ldap_bind(int link_identifier, string [bind_rdn], string [bind_password]);
  573. int ldap_close(int link_identifier);
  574. int ldap_connect(string [hostname], int [port]);
  575. int ldap_count_entries(int link_identifier, int result_identifier);
  576. int ldap_delete(int link_identifier, string dn);
  577. string ldap_dn2ufn(string dn);
  578. array ldap_explode_dn(string dn, int with_attrib);
  579. string ldap_first_attribute(int link_identifier, int result_entry_identifier, int ber_identifier);
  580. int ldap_first_entry(int link_identifier, int result_identifier);
  581. int ldap_free_result(int result_identifier);
  582. array ldap_get_attributes(int link_identifier, int result_entry_identifier);
  583. string ldap_get_dn(int link_identifier, int result_entry_identifier);
  584. array ldap_get_entries(int link_identifier, int result_identifier);
  585. array ldap_get_values(int link_identifier, int result_entry_identifier, string attribute);
  586. array ldap_get_values_len(int link_identifier, int result_entry_identifier, string attribute);
  587. int ldap_list(int link_identifier, string base_dn, string filter, array [attributes]);
  588. int ldap_modify(int link_identifier, string dn, array entry);
  589. string ldap_next_attribute(int link_identifier, int result_entry_identifier, int ber_identifier);
  590. int ldap_next_entry(int link_identifier, int result_entry_identifier);
  591. int ldap_read(int link_identifier, string base_dn, string filter, array [attributes]);
  592. int ldap_search(int link_identifier, string base_dn, string filter, array [attributes]);
  593. int ldap_unbind(int link_identifier);
  594. string ldap_err2str(int errno);
  595. int ldap_errno(int link_id);
  596. string ldap_error(int link_id);
  597.  
  598. !Mail functions
  599. bool mail(string to, string subject, string message, string [additional_headers]);
  600.  
  601. !Mathematical functions
  602. mixed abs(mixed number);
  603. float acos(float arg);
  604. float asin(float arg);
  605. float atan(float arg);
  606. float atan2(float y, float x);
  607. base_convert(string number, int frombase, int tobase);
  608. int bindec(string binary_string);
  609. int ceil(float number);
  610. float cos(float arg);
  611. string decbin(int number);
  612. string dechex(int number);
  613. string decoct(int number);
  614. float exp(float arg);
  615. int floor(float number);
  616. int getrandmax(void);
  617. int hexdec(string hex_string);
  618. float log(float arg);
  619. float log10(float arg);
  620. mixed max(mixed arg1, mixed arg2, mixed argn);
  621. mixed min(mixed arg1, mixed arg2, mixed argn);
  622. int mt_rand( [int min] , [int max]);
  623. void mt_srand(int seed);
  624. int mt_getrandmax(void);
  625. string number_format(float number, int decimals, string dec_point, string thousands_sep);
  626. int octdec(string octal_string);
  627. double pi(void);
  628. float pow(float base, float exp);
  629. int rand( [int min] , [int max]);
  630. double round(double val);
  631. float sin(float arg);
  632. float sqrt(float arg);
  633. void srand(int seed);
  634. float tan(float arg);
  635.  
  636. !MCAL functions
  637. int mcal_open(string calendar, string username, string password, string options);
  638. int mcal_close(int mcal_stream, int flags);
  639. object mcal_fetch_event(int mcal_stream, int event_id, int [options]);
  640. 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]);
  641. int mcal_append_event(int mcal_stream);
  642. int mcal_store_event(int mcal_stream);
  643. int mcal_delete_event(int uid);
  644. int mcal_snooze(int uid);
  645. 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]);
  646. int mcal_event_init(int stream);
  647. int mcal_event_set_category(int stream, string category);
  648. int mcal_event_set_title(int stream, string title);
  649. int mcal_event_set_description (int stream, string description);
  650. int mcal_event_set_start(int stream, int year, int month, int [day] , int [hour] , int [min] , int [sec]);
  651. int mcal_event_set_end(int stream, int year, int month, int [day] , int [hour] , int [min] , int [sec]);
  652. int mcal_event_set_alarm(int stream, int alarm);
  653. int mcal_event_set_class(int stream, int class);
  654. int mcal_is_leap_year(int year);
  655. int mcal_days_in_month(int month, int leap year);
  656. int mcal_date_valid(int year, int month, int day);
  657. int mcal_time_valid(int hour, int minutes, int seconds);
  658. 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);
  659. int mcal_day_of_year(int year, int month, int day);
  660. int mcal_date_compare(int a_year, int a_month, int a_day, int b_year, int b_month, int b_day);
  661. int mcal_next_recurrence(int stream, int weekstart, array next);
  662. int mcal_event_set_recur_none (int stream);
  663. int mcal_event_set_recur_daily (int stream, int year, int month, int day, int interval);
  664. int mcal_event_set_recur_weekly (int stream, int year, int month, int day, int interval, int weekdays);
  665. int mcal_event_set_recur_monthly_mday (int stream, int year, int month, int day, int interval);
  666. int mcal_event_set_recur_monthly_wday (int stream, int year, int month, int day, int interval);
  667. int mcal_event_set_recur_yearly (int stream, int year, int month, int day, int interval);
  668. int mcal_fetch_current_stream_event (int stream);
  669.  
  670. !Microsoft SQL Server functions
  671. int mssql_close(int [link_identifier]);
  672. int mssql_connect(string [servername] , string [username] , string [password]);
  673. int mssql_data_seek(int result_identifier, int row_number);
  674. int mssql_fetch_array(int result);
  675. object mssql_fetch_field(int result, int [field_offset]);
  676. int mssql_fetch_object(int result);
  677. array mssql_fetch_row(int result);
  678. int mssql_field_length(int result, int [offset]);
  679. int mssql_field_name(int result, int [offset]);
  680. int mssql_field_seek(int result, int field_offset);
  681. string mssql_field_type(int result, int [offset]);
  682. int mssql_free_result(int result);
  683. string mssql_get_last_message (void);
  684. void mssql_min_error_severity (int severity);
  685. void mssql_min_message_severity (int severity);
  686. int mssql_num_fields(int result);
  687. int mssql_num_rows(string result);
  688. int mssql_pconnect(string [servername] , string [username] , string [password]);
  689. int mssql_query(string query, int [link_identifier]);
  690. int mssql_result(int result, int i, mixed field);
  691. int mssql_select_db(string database_name, int [link_identifier]);
  692.  
  693. !Miscellaneous functions
  694. int connection_aborted(void);
  695. int connection_status(void);
  696. int connection_timeout(void);
  697. int define(string name, mixed value, int [case_insensitive]);
  698. int defined(string name);
  699. void die(string message);
  700. void eval(string code_str);
  701. void exit(void);
  702. int func_get_arg(int arg_num);
  703. int func_get_args(void);
  704. int func_num_args(void);
  705. int function_exists(string function_name);
  706. object get_browser(string [user_agent]);
  707. int ignore_user_abort(int [setting]);
  708. array iptcparse(string iptcblock);
  709. void leak(int bytes);
  710. string pack(string format, mixed [args] ...);
  711. int register_shutdown_function (string func);
  712. string serialize(mixed value);
  713. void sleep(int seconds);
  714. int uniqid(string prefix, boolean [lcg]);
  715. array unpack(string format, string data);
  716. mixed unserialize(string str);
  717. void usleep(int micro_seconds);
  718.  
  719. !mSQL functions
  720. int msql(string database, string query, int link_identifier);
  721. int msql_affected_rows(int query_identifier);
  722. int msql_close(int link_identifier);
  723. int msql_connect(string hostname);
  724. int msql_create_db(string database name, int [link_identifier]);
  725. int msql_createdb(string database name, int [link_identifier]);
  726. int msql_data_seek(int query_identifier, int row_number);
  727. string msql_dbname(int query_identifier, int i);
  728. int msql_drop_db(string database_name, int link_identifier);
  729. string msql_error();
  730. int msql_fetch_array(int query_identifier, int [result_type]);
  731. object msql_fetch_field(int query_identifier, int field_offset);
  732. int msql_fetch_object(int query_identifier, int [result_type]);
  733. array msql_fetch_row(int query_identifier);
  734. string msql_fieldname(int query_identifier, int field);
  735. int msql_field_seek(int query_identifier, int field_offset);
  736. int msql_fieldtable(int query_identifier, int field);
  737. string msql_fieldtype(int query_identifier, int i);
  738. string msql_fieldflags(int query_identifier, int i);
  739. int msql_fieldlen(int query_identifier, int i);
  740. int msql_free_result(int query_identifier);
  741. int msql_list_fields(string database, string tablename);
  742. int msql_list_dbs(void);
  743. int msql_list_tables(string database);
  744. int msql_num_fields(int query_identifier);
  745. int msql_num_rows(int query_identifier);
  746. int msql_numfields(int query_identifier);
  747. int msql_numrows(void);
  748. int msql_pconnect(string hostname);
  749. int msql_query(string query, int link_identifier);
  750. int msql_result(int query_identifier, int i, mixed field);
  751. int msql_select_db(string database_name, int link_identifier);
  752. string msql_tablename(int query_identifier, int field);
  753.  
  754. !MySQL functions
  755. int mysql_affected_rows(int [link_identifier]);
  756. int mysql_change_user(string user, string password, string [database] , int [link_identifier]);
  757. int mysql_close(int [link_identifier]);
  758. int mysql_connect(string [hostname [:port] [:/path/to/socket] ] , string [username] , string [password]);
  759. int mysql_create_db(string database name, int [link_identifier]);
  760. int mysql_data_seek(int result_identifier, int row_number);
  761. int mysql_db_query(string database, string query, int [link_identifier]);
  762. int mysql_drop_db(string database_name, int [link_identifier]);
  763. int mysql_errno(int [link_identifier]);
  764. string mysql_error(int [link_identifier]);
  765. array mysql_fetch_array(int result, int [result_type]);
  766. object mysql_fetch_field(int result, int [field_offset]);
  767. array mysql_fetch_lengths(int result);
  768. object mysql_fetch_object(int result, int [result_typ]);
  769. array mysql_fetch_row(int result);
  770. string mysql_field_name(int result, int field_index);
  771. int mysql_field_seek(int result, int field_offset);
  772. string mysql_field_table(int result, int field_offset);
  773. string mysql_field_type(int result, int field_offset);
  774. string mysql_field_flags(int result, int field_offset);
  775. int mysql_field_len(int result, int field_offset);
  776. int mysql_free_result(int result);
  777. int mysql_insert_id(int [link_identifier]);
  778. int mysql_list_fields(string database_name, string table_name, int [link_identifier]);
  779. int mysql_list_dbs(int [link_identifier]);
  780. int mysql_list_tables(string database, int [link_identifier]);
  781. int mysql_num_fields(int result);
  782. int mysql_num_rows(int result);
  783. int mysql_pconnect(string [hostname [:port] [:/path/to/socket] ] , string [username] , string [password]);
  784. int mysql_query(string query, int [link_identifier]);
  785. int mysql_result(int result, int row, mixed [field]);
  786. int mysql_select_db(string database_name, int [link_identifier]);
  787. string mysql_tablename(int result, int i);
  788.  
  789. !Network functions
  790. int checkdnsrr(string host, string [type]);
  791. int closelog(void);
  792. int debugger_off(void);
  793. int debugger_on(string address);
  794. int fsockopen(string hostname, int port, int [errno], string [errstr], double [timeout]);
  795. string gethostbyaddr(string ip_address);
  796. string gethostbyname(string hostname);
  797. array gethostbynamel(string hostname);
  798. int getmxrr(string hostname, array mxhosts, array [weight]);
  799. int getprotobyname(string name);
  800. string getprotobynumber(int number);
  801. int getservbyname(string service, string protocol);
  802. string getservbyport(int port, string protocol);
  803. int openlog(string ident, int option, int facility);
  804. int pfsockopen(string hostname, int port, int [errno], string [errstr], int [timeout]);
  805. int set_socket_blocking(int socket descriptor, int mode);
  806. int syslog(int priority, string message);
  807.  
  808. !NIS functions
  809. int yp_get_default_domain(void);
  810. int yp_order(string domain, string map);
  811. string yp_master(string domain, string map);
  812. string yp_match(string domain, string map, string key);
  813. string[] yp_first(string domain, string map);
  814. string[] yp_next(string domain, string map, string key);
  815.  
  816. !ODBC functions
  817. int odbc_autocommit(int connection_id, int [OnOff]);
  818. int odbc_binmode(int result_id, int mode);
  819. void odbc_close(int connection_id);
  820. void odbc_close_all(void);
  821. int odbc_commit(int connection_id);
  822. int odbc_connect(string dsn, string user, string password, int [cursor_type]);
  823. string odbc_cursor(int result_id);
  824. string odbc_do(int conn_id, string query);
  825. int odbc_exec(int connection_id, string query_string);
  826. int odbc_execute(int result_id, array [parameters_array]);
  827. int odbc_fetch_into(int result_id, int [rownumber], array result_array);
  828. int odbc_fetch_row(int result_id, int [row_number]);
  829. string odbc_fieldname(int result_id, int field_number);
  830. string odbc_field_type(int result_id, int field_number);
  831. int odbc_field_len(int result_id, int field_number);
  832. int odbc_free_result(int result_id);
  833. int odbc_longreadlen(int result_id, int length);
  834. int odbc_num_fields(int result_id);
  835. int odbc_pconnect(string dsn, string user, string password, int [cursor_type]);
  836. int odbc_prepare(int connection_id, string query_string);
  837. int odbc_num_rows(int result_id);
  838. string odbc_result(int result_id, mixed field);
  839. int odbc_result_all(int result_id, string [format]);
  840. int odbc_rollback(int connection_id);
  841. int odbc_setoption(int id, int function, int option, int param);
  842.  
  843. !Oracle functions
  844. int ora_bind(int cursor, string PHP variable name, string SQL parameter name, int length, int [type]);
  845. int ora_close(int cursor);
  846. string ora_columnName(int cursor, int column);
  847. string ora_columnType(int cursor, int column
  848. int ora_commit(int conn);
  849. int ora_commitoff(int conn);
  850. int ora_commiton(int conn);
  851. string Ora_Error(int cursor_or_connection);
  852. int ora_errorcode(int cursor_or_connection);
  853. int ora_exec(int cursor);
  854. int ora_fetch(int cursor);
  855. mixed ora_getcolumn(int cursor, mixed column);
  856. int ora_logoff(int connection);
  857. int ora_logon(string user, string password);
  858. int ora_open(int connection);
  859. int ora_parse(int cursor_ind, string sql_statement, int defer);
  860. int ora_rollback(int connection);
  861.  
  862. !Oracle 8 functions
  863. int OCIDefineByName(int stmt, string Column-Name, mixed &variable, int [type]);
  864. int OCIBindByName(int stmt, string ph_name, mixed &variable, intlength, int [type]);
  865. int OCILogon(string username, string password, string [db]);
  866. int OCIPLogon(string username, string password, string [db]);
  867. int OCINLogon(string username, string password, string [db]);
  868. int OCILogOff(int connection);
  869. int OCIExecute(int statement, int [mode]);
  870. int OCICommit(int connection);
  871. int OCIRollback(int connection);
  872. string OCINewDescriptor(int connection, int [type]);
  873. int OCIRowCount(int statement);
  874. int OCINumCols(int stmt);
  875. mixed OCIResult(int statement, mixed column);
  876. int OCIFetch(int statement);
  877. int OCIFetchInto(int stmt, array &result, int [mode]);
  878. int OCIFetchStatement(int stmt, array &variable);
  879. int OCIColumnIsNULL(int stmt, mixed column);
  880. int OCIColumnSize(int stmt, mixed column);
  881. string OCIServerVersion(int conn);
  882. string OCIStatementType(int stmt);
  883. int OCINewCursor(int conn);
  884. int OCIFreeStatement(int stmt);
  885. int OCIFreeCursor(int stmt);
  886. string OCIColumnName(int stmt, int col);
  887. mixed OCIColumnName(int stmt, int col);
  888. int OCIParse(int conn, strint query);
  889. int OCIError(int [stmt|conn]);
  890. void OCIInternalDebug(int onoff);
  891.  
  892. !PDF functions
  893. info pdf_get_info(string filename);
  894. void pdf_set_info_creator(info info, string creator);
  895. void pdf_set_info_title(info info, string title);
  896. void pdf_set_info_subject(info info, string subject);
  897. void pdf_set_info_keywords(info info, string keywords);
  898. void pdf_set_info_author(info info, string author);
  899. int pdf_open(int file, int info);
  900. void pdf_close(int pdf document);
  901. void pdf_begin_page(int pdf document, double height, double width);
  902. void pdf_end_page(int pdf document);
  903. void pdf_show(int pdf document, string text);
  904. void pdf_show_boxed(int pdf document, string text, double x-coor, double y-coor, double width, double height, string mode);
  905. void pdf_show_xy(int pdf document, string text, double x-coor, double y-coor);
  906. void pdf_set_font(int pdf document, string font name, double size, string encoding, int [embed]);
  907. void pdf_set_leading(int pdf document, double distance);
  908. void pdf_set_parameter(int pdf document, string name, string value);
  909. void pdf_set_text_rendering(int pdf document, int mode);
  910. void pdf_set_horiz_scaling(int pdf document, double scale);
  911. void pdf_set_text_rise(int pdf document, double rise);
  912. void pdf_set_text_matrix(int pdf document, array matrix);
  913. void pdf_set_text_pos(int pdf document, double x-coor, double y-coor);
  914. void pdf_set_char_spacing(int pdf document, double space);
  915. void pdf_set_word_spacing(int pdf document, double space);
  916. void pdf_skew(int pdf document, double alpha, double beta);
  917. void pdf_continue_text(int pdf document, string text);
  918. double pdf_stringwidth(int pdf document, string text);
  919. void pdf_save(int pdf document);
  920. void pdf_restore(int pdf document);
  921. void pdf_translate(int pdf document, double x-coor, double y-coor);
  922. void pdf_scale(int pdf document, double x-scale, double y-scale);
  923. void pdf_rotate(int pdf document, double angle);
  924. void pdf_setflat(int pdf document, double value);
  925. void pdf_setlinejoin(int pdf document, long value);
  926. void pdf_setlinecap(int pdf document, int value);
  927. void pdf_setmiterlimit(int pdf document, double value);
  928. void pdf_setlinewidth(int pdf document, double width);
  929. void pdf_setdash(int pdf document, double white, double black);
  930. void pdf_moveto(int pdf document, double x-coor, double y-coor);
  931. void pdf_curveto(int pdf document, double x1, double y1, double x2, double y2, double x3, double y3);
  932. void pdf_lineto(int pdf document, double x-coor, double y-coor);
  933. void pdf_circle(int pdf document, double x-coor, double y-coor, double radius);
  934. void pdf_arc(int pdf document, double x-coor, double y-coor, double radius, double start, double end);
  935. void pdf_rect(int pdf document, double x-coor, double y-coor, double width, double height);
  936. void pdf_closepath(int pdf document);
  937. void pdf_stroke(int pdf document);
  938. void pdf_closepath_stroke(int pdf document);
  939. void pdf_fill(int pdf document);
  940. void pdf_fill_stroke(int pdf document);
  941. void pdf_closepath_fill_stroke(int pdf document);
  942. void pdf_endpath(int pdf document);
  943. void pdf_clip(int pdf document);
  944. void pdf_setgray_fill(int pdf document, double gray value);
  945. void pdf_setgray_stroke(int pdf document, double gray value);
  946. void pdf_setgray(int pdf document, double gray value);
  947. void pdf_setrgbcolor_fill(int pdf document, double red value, double green value, double blue value);
  948. void pdf_setrgbcolor_stroke(int pdf document, double red value, double green value, double blue value);
  949. void pdf_setrgbcolor(int pdf document, double red value, double green value, double blue value);
  950. int pdf_add_outline(int pdf document, string text, int [parent], int [open]);
  951. void pdf_set_transition(int pdf document, int transition);
  952. void pdf_set_duration(int pdf document, double duration);
  953. int pdf_open_gif(int pdf document, string filename);
  954. int pdf_open_memory_image(int pdf document, int image);
  955. int pdf_open_jpeg(int pdf document, string filename);
  956. void pdf_close_image(int image);
  957. void pdf_place_image(int pdf document, int image, double x-coor, double y-coor, double scale);
  958. void pdf_put_image(int pdf document, int image);
  959. void pdf_execute_image(int pdf document, int image, double x-coor, double y-coor, double scale);
  960. void pdf_add_annotation(int pdf document, double llx, double lly, double urx, double ury, string title, string content);
  961.  
  962. !Perl-compatible Regular Expression functions
  963. int preg_match(string pattern, string subject, array [matches]);
  964. int preg_match_all(string pattern, string subject, array matches, int [order]);
  965. mixed preg_replace(mixed pattern, mixed replacement, mixed subject);
  966. array preg_split(string pattern, string subject, int [limit], int [flags]);
  967. string preg_quote(string str);
  968. array preg_grep(string pattern, array input);
  969.  
  970. !PHP options & information
  971. int error_log(string message, int message_type, string [destination] , string [extra_headers]);
  972. int error_reporting(int [level]);
  973. bool extension_loaded(string name);
  974. string getenv(string varname);
  975. string get_cfg_var(string varname);
  976. string get_current_user(void);
  977. long get_magic_quotes_gpc(void);
  978. long get_magic_quotes_runtime (void);
  979. int getlastmod(void);
  980. int getmyinode(void);
  981. int getmypid(void);
  982. int getmyuid(void);
  983. array getrusage(int [who]);
  984. int phpinfo(void);
  985. string phpversion(void);
  986. string php_logo_guid(void);
  987. void putenv(string setting);
  988. long set_magic_quotes_runtime (int new_setting);
  989. void set_time_limit(int seconds);
  990. string zend_logo_guid(void);
  991.  
  992. !POSIX functions
  993. bool posix_kill(int pid, int sig);
  994. int posix_getpid(void);
  995. int posix_getppid(void);
  996. int posix_getuid(void);
  997. int posix_geteuid(void);
  998. int posix_getgid(void);
  999. int posix_getegid(void);
  1000. bool posix_setuid(int uid);
  1001. bool posix_setgid(int gid);
  1002. array posix_getgroups(void);
  1003. string posix_getlogin(void);
  1004. int posix_getpgrp(void);
  1005. int posix_setsid(void);
  1006. int posix_setpgid(int pid, int pgid);
  1007. int posix_getpgid(int pid);
  1008. int posix_getsid(int pid);
  1009. array posix_uname(void);
  1010. array posix_times(void);
  1011. string posix_ctermid(void);
  1012. string posix_ttyname(int fd);
  1013. bool posix_isatty(int fd);
  1014. string posix_getcwd(void);
  1015. bool posix_getcwd(string pathname, int mode);
  1016. array posix_getgrnam(string name);
  1017. array posix_getgrgid(int gid);
  1018. array posix_getpwnam(string username);
  1019. array posix_getpwuid(int uid);
  1020. array posix_getrlimit(void);
  1021.  
  1022. !PostgreSQL functions
  1023. bool pg_close(int connection);
  1024. int pg_cmdtuples(int result_id);
  1025. int pg_connect(string host, string port, string options, string tty, string dbname);
  1026. string pg_dbname(int connection);
  1027. string pg_errormessage(int connection);
  1028. int pg_exec(int connection, string query);
  1029. array pg_fetch_array(int result, int row, int [result_type]);
  1030. object pg_fetch_object(int result, int row, int [result_type]);
  1031. array pg_fetch_row(int result, int row);
  1032. int pg_fieldisnull(int result_id, int row, mixed field);
  1033. string pg_fieldname(int result_id, int field_number);
  1034. int pg_fieldnum(int result_id, string field_name);
  1035. int pg_fieldprtlen(int result_id, int row_number, string field_name);
  1036. int pg_fieldsize(int result_id, int field_number);
  1037. int pg_fieldtype(int result_id, int field_number);
  1038. int pg_freeresult(int result_id);
  1039. int pg_getlastoid(int result_id);
  1040. string pg_host(int connection_id);
  1041. void pg_loclose(int fd);
  1042. int pg_locreate(int conn);
  1043. int pg_loopen(int conn, int objoid, string mode);
  1044. string pg_loread(int fd, int len);
  1045. void pg_loreadall(int fd);
  1046. void pg_lounlink(int conn, int lobjid);
  1047. int pg_lowrite(int fd, string buf);
  1048. int pg_numfields(int result_id);
  1049. int pg_numrows(int result_id);
  1050. string pg_options(int connection_id);
  1051. int pg_pconnect(string host, string port, string options, string tty, string dbname);
  1052. int pg_port(int connection_id);
  1053. mixed pg_result(int result_id, int row_number, mixed fieldname);
  1054. string pg_tty(int connection_id);
  1055.  
  1056. !Program Execution functions
  1057. string escapeshellcmd(string command);
  1058. string exec(string command, string [array] , int [return_var]);
  1059. void passthru(string command, int [return_var]);
  1060. string system(string command, int [return_var]);
  1061.  
  1062. !GNU Recode functions
  1063. string recode_string(string request, string string);
  1064. bool recode_file(int input, int output);
  1065.  
  1066. !Regular expression functions
  1067. int ereg(string pattern, string string, array [regs]);
  1068. string ereg_replace(string pattern, string replacement, string string);
  1069. int eregi(string pattern, string string, array [regs]);
  1070. string eregi_replace(string pattern, string replacement, string string);
  1071. array split(string pattern, string string, int [limit]);
  1072.  
  1073. !Semaphore and shared memory functions
  1074. int sem_get(int key, int [max_acquire] , int [perm]);
  1075. int sem_acquire(int sem_identifier);
  1076. int sem_release(int sem_identifier);
  1077. int shm_attach(int key, int [memsize], int [perm]);
  1078. int shm_detach(int shm_identifier);
  1079. int shm_remove(int shm_identifier);
  1080. int shm_put_var(int shm_identifier, int variable_key, mixed variable);
  1081. mixed shm_get_var(int id, int variable_key);
  1082. int shm_remove_var(int id, int variable_key);
  1083.  
  1084. !Session handling functions
  1085. bool session_start(void);
  1086. bool session_destroy(void);
  1087. string session_name(string [name]);
  1088. string session_module_name(string [module]);
  1089. string session_save_path(string [path]);
  1090. string session_id(string [id]);
  1091. bool session_register(mixed name, mixed [...]);
  1092. bool session_unregister(string name);
  1093. bool session_is_registered(string name);
  1094. bool session_decode(string data);
  1095. bool session_encode(void);
  1096.  
  1097. !SNMP functions
  1098. string snmpget(string hostname, string community, string object_id, int [timeout], int [retries]);
  1099. string snmpget(string hostname, string community, string object_id, string type, mixed value, int [timeout], int [retries]);
  1100. array snmpwalk(string hostname, string community, string object_id, int [timeout] , int [retries]);
  1101. array snmpwalkoid(string hostname, string community, string object_id, int [timeout] , int [retries]);
  1102. boolean snmp_get_quick_print(void);
  1103. void snmp_set_quick_print(boolean quick_print);
  1104.  
  1105. !String functions
  1106. string addcslashes(string str, string charlist);
  1107. string addslashes(string str);
  1108. string bin2hex(string str);
  1109. string chop(string str);
  1110. string chr(int ascii);
  1111. string chunk_split(string string, int [chunklen] , string [end]);
  1112. string convert_cyr_string(string str, string from, string to);
  1113. mixed count_chars(string string, [mode]);
  1114. string crypt(string str, string [salt]);
  1115. echo(string arg1, string [argn]...);
  1116. array explode(string separator, string string);
  1117. void flush(void);
  1118. string get_html_translation_table (int table);
  1119. array get_meta_tags(string filename, int [use_include_path]);
  1120. string htmlentities(string string);
  1121. string htmlspecialchars(string string);
  1122. string implode(string glue, array pieces);
  1123. string join(string glue, array pieces);
  1124. string ltrim(string str);
  1125. string md5(string str);
  1126. string metaphone(string str);
  1127. string nl2br(string string);
  1128. int ord(string string);
  1129. void parse_str(string str);
  1130. print(string arg);
  1131. int printf(string format, mixed [args]...);
  1132. string quoted_printable_decode (string str);
  1133. string quotemeta(string str);
  1134. string rawurldecode(string str);
  1135. string rawurlencode(string str);
  1136. string setlocale(string category, string locale);
  1137. int similar_text(string first, string second, double [percent]);
  1138. string soundex(string str);
  1139. string sprintf(string format, mixed [args]...);
  1140. int strcasecmp(string str1, string str2);
  1141. string strchr(string haystack, string needle);
  1142. int strcmp(string str1, string str2);
  1143. int strcspn(string str1, string str2);
  1144. string strip_tags(string str, string [allowable_tags]);
  1145. string stripcslashes(string str);
  1146. string stripslashes(string str);
  1147. string stristr(string haystack, string needle);
  1148. int strlen(string str);
  1149. int strpos(string haystack, string needle, int [offset]);
  1150. string strrchr(string haystack, string needle);
  1151. string str_repeat(string input, int multiplier);
  1152. string strrev(string string);
  1153. int strrpos(string haystack, char needle);
  1154. int strspn(string str1, string str2);
  1155. string strstr(string haystack, string needle);
  1156. string strtok(string arg1, string arg2);
  1157. string strtolower(string str);
  1158. string strtoupper(string string);
  1159. string str_replace(string needle, string str, string haystack);
  1160. string strtr(string str, string from, string to);
  1161. string substr(string string, int start, int [length]);
  1162. string substr_replace(string string, string replacement, int start, int [length]);
  1163. string trim(string str);
  1164. string ucfirst(string str);
  1165. string ucwords(string str);
  1166.  
  1167. !Sybase functions
  1168. int sybase_affected_rows(int [link_identifier]);
  1169. int sybase_close(int link_identifier);
  1170. int sybase_connect(string servername, string username, string password);
  1171. int sybase_data_seek(int result_identifier, int row_number);
  1172. int sybase_fetch_array(int result);
  1173. object sybase_fetch_field(int result, int field_offset);
  1174. int sybase_fetch_object(int result);
  1175. array sybase_fetch_row(int result);
  1176. int sybase_field_seek(int result, int field_offset);
  1177. int sybase_free_result(int result);
  1178. int sybase_num_fields(int result);
  1179. int sybase_num_rows(string result);
  1180. int sybase_pconnect(string servername, string username, string password);
  1181. int sybase_query(string query, int link_identifier);
  1182. int sybase_result(int result, int i, mixed field);
  1183. int sybase_select_db(string database_name, int link_identifier);
  1184.  
  1185. !URL Functions
  1186. string base64_decode(string encoded_data);
  1187. string base64_encode(string data);
  1188. array parse_url(string url);
  1189. string urldecode(string str);
  1190. string urlencode(string str);
  1191.  
  1192. !Variable functions
  1193. double doubleval(mixed var);
  1194. int empty(mixed var);
  1195. string gettype(mixed var);
  1196. int intval(mixed var, int [base]);
  1197. int is_array(mixed var);
  1198. int is_double(mixed var);
  1199. int is_float(mixed var);
  1200. int is_int(mixed var);
  1201. int is_integer(mixed var);
  1202. int is_long(mixed var);
  1203. int is_object(mixed var);
  1204. int is_real(mixed var);
  1205. int is_string(mixed var);
  1206. int isset(mixed var);
  1207. void print_r(mixed expression);
  1208. int settype(string var, string type);
  1209. string strval(mixed var);
  1210. int unset(mixed var);
  1211. void var_dump(mixed expression
  1212.  
  1213. !Vmailmgr functions
  1214. int vm_adduser(string vdomain, string basepwd, string newusername, string newuserpassword);
  1215. int vm_addalias(string vdomain, string basepwd, string username, string alias);
  1216. int vm_passwd(string vdomain, string username, string password, string newpassword);
  1217. int vm_delalias(string vdomain, string basepwd, string alias);
  1218. int vm_deluser(string vdomain, string username);
  1219.  
  1220. !WDDX functions
  1221. string wddx_serialize_value(mixed var, string [comment]);
  1222. string wddx_serialize_vars(mixed var_name, mixed [...]);
  1223. int wddx_packet_start(string [comment]);
  1224. string wddx_packet_end(int packet_id);
  1225. wddx_add_vars(int packet_id, mixed name_var, mixed [...]);
  1226. mixed wddx_deserialize(string packet);
  1227.  
  1228. !XML
  1229. int xml_parser_create(string [encoding]);
  1230. void xml_set_object(int parser, object &object);
  1231. int xml_set_element_handler (int parser, string startElementHandler , string endElementHandler);
  1232. int xml_set_character_data_handler (int parser, string handler);
  1233. int xml_set_processing_instruction_handler (int parser, string handler);
  1234. int xml_set_default_handler (int parser, string handler);
  1235. int xml_set_unparsed_entity_decl_handler (int parser, string handler);
  1236. int xml_set_notation_decl_handler (int parser, string handler);
  1237. int xml_set_external_entity_ref_handler (int parser, string handler);
  1238. int xml_parse(int parser, string data, int [isFinal]);
  1239. int xml_get_error_code(int parser);
  1240. string xml_error_string(int code);
  1241. int xml_get_current_line_number (int parser);
  1242. int xml_get_current_column_number (int parser);
  1243. int xml_get_current_byte_index (int parser);
  1244. string xml_parser_free(int parser);
  1245. int xml_parser_set_option(int parser, int option, mixed value);
  1246. mixed xml_parser_get_option (int parser, int option);
  1247. string utf8_decode(string data);
  1248. string utf8_encode(string data);