Manual de php

  • 674 views
Uploaded on

 

More in: Education
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
674
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
13
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Manual de PHPStig Sæther BakkenAlexander Aulbach Egon Schmid Jim WinsteadLars Torben Wilson Rasmus Lerdorf Andrei Zmievski Jouni Ahto
  • 2. Editado por Rafael Martínez (Coordinador) Víctor Fernández Leonardo Boshell 08-07-2002 Copyright © 1997, 1998, 1999, 2000, 2001, 2002 por por el Grupo de documentación de PHPCopyrightEste manual es © Copyright 1997, 1998, 1999, 2000, 2001, 2002 por el Grupo dedocumentación de PHP. Los miembros de este grupo se encuentran listados en laprimera página de este manual.Este manual puede ser redistribuido bajo los términos de la "GNU General PublicLicense" publicada por la "Free Software Foundation"; tanto bajo la versión 2 deesta licencia o bajo versiones posteriores.La sección ’Extendiendo PHP 4.0’ de este manual es copyright © 2000 por ZendTechnologies, Ltd. Este material puede ser distribuido solamente bajo losterminos y condiciones de la Open Publication License, v1.0 ó posterior (la últimaversión está disponible en http://www.opencontent.org/openpub/).
  • 3. Manual de PHPpor Stig Sæther Bakken, Alexander Aulbach, Egon Schmid, Jim Winstead, Lars Torben Wilson, Rasmus Lerdorf,Andrei Zmievski, y Jouni AhtoporEditado por Rafael Martínez (Coordinador)Editado por Víctor FernándezEditado por Leonardo BoshellPublicado 08-07-2002Copyright © 1997, 1998, 1999, 2000, 2001, 2002 por por el Grupo de documentación de PHPCopyrightEste manual es © Copyright 1997, 1998, 1999, 2000, 2001, 2002 por el Grupo de documentación de PHP. Losmiembros de este grupo se encuentran listados en la primera página de este manual.Este manual puede ser redistribuido bajo los términos de la "GNU General Public License" publicada por la "FreeSoftware Foundation"; tanto bajo la versión 2 de esta licencia o bajo versiones posteriores.La sección ’Extendiendo PHP 4.0’ de este manual es copyright © 2000 por Zend Technologies, Ltd. Este materialpuede ser distribuido solamente bajo los terminos y condiciones de la Open Publication License, v1.0 ó posterior (laúltima versión está disponible en http://www.opencontent.org/openpub/).
  • 4. Tabla de contenidos Prefacio ........................................................................................................................................................i I. Conceptos Básicos ..................................................................................................................................1 1. Introducción ...................................................................................................................................1 Qué es PHP? .............................................................................................................................2 Qué se puede hacer con PHP? ..................................................................................................2 2. Instalación ......................................................................................................................................5 Bajándose la última versión......................................................................................................6 Instalación en sistemas UNIX ..................................................................................................6 Instrucciones Rápidas de Instalación (Versión Módulo de Apache) ..............................6 Configuración..................................................................................................................7 Módulo del Apache.........................................................................................................7 Módulo fhttpd .................................................................................................................7 CGI version.....................................................................................................................7 Opciones de soporte para Base de Datos ........................................................................8 Adabas D ...............................................................................................................8 dBase .....................................................................................................................8 filePro ....................................................................................................................8 mSQL ....................................................................................................................8 MySQL..................................................................................................................9 iODBC...................................................................................................................9 OpenLink ODBC...................................................................................................9 Oracle ....................................................................................................................9 PostgreSQL ...........................................................................................................9 Solid ....................................................................................................................10 Sybase..................................................................................................................10 Sybase-CT ...........................................................................................................10 Velocis .................................................................................................................10 Una librería a medida de ODBC .........................................................................11 ODBC Unificado .................................................................................................11 LDAP...................................................................................................................11 Otras opciones de configuración...................................................................................11 --with-mcrypt=DIR.............................................................................................12 --enable-sysvsem .................................................................................................12 --enable-sysvshm.................................................................................................12 --with-xml............................................................................................................12 --enable-maintainer-mode ...................................................................................12 --with-system-regex.............................................................................................12 --with-config-file-path .........................................................................................13 --with-exec-dir.....................................................................................................13 --enable-debug.....................................................................................................13 --enable-safe-mode..............................................................................................13 --enable-track-vars...............................................................................................13 --enable-magic-quotes .........................................................................................14 --enable-debugger................................................................................................14 --enable-discard-path...........................................................................................14 iv
  • 5. --enable-bcmath...................................................................................................14 --enable-force-cgi-redirect ..................................................................................14 --disable-short-tags..............................................................................................15 --enable-url-includes ...........................................................................................15 --disable-syntax-hl...............................................................................................15 CPPFLAGS y LDFLAGS ...................................................................................15 Construyendo ................................................................................................................16 Probando .......................................................................................................................16 Comprobando la velocidad ...........................................................................................16 Instalación en sistemas Windows 95/98/NT...........................................................................16 Pasos Generales de Instalación .....................................................................................16 Windows 95/98/NT y PWS/IIS 3..................................................................................17 Windows NT e IIS 4 .....................................................................................................18 Windows 9x/NT y Apache 1.3.x...................................................................................19 Omni HTTPd 2.0b1 para Windows ..............................................................................19 Módulos del PHP ..........................................................................................................19 ¿Problemas?............................................................................................................................20 Lea las PMF (FAQ) .......................................................................................................20 Informes de error...........................................................................................................20 Otros problemas ............................................................................................................203. Configuración...............................................................................................................................22 El archivo de configuración ....................................................................................................23 Directivas Generales de Configuración.........................................................................23 Directivas de Configuración de Correo.........................................................................27 Directivas de Configuración de Modo Seguro ..............................................................28 Directivas de Configuración del Debugger ...................................................................28 Directivas de Carga de Extensiones ..............................................................................28 Directivas de Configuración de MySQL.......................................................................29 Directivas de Configuración de mSQL .........................................................................29 Directivas de Configuración de Postgres ......................................................................29 SESAM Configuration Directives.................................................................................30 Directivas de Configuración de Sybase ........................................................................30 Directivas de Configuración de Sybase-CT ..................................................................31 Directivas de Configuración de Informix......................................................................32 Directivas de Configuración de Matemática BC...........................................................33 Directivas de Configuración de Capacidades de los Navegadores................................33 Directivas Unificadas de Configuración de ODBC.......................................................334. Seguridad......................................................................................................................................35 Binarios CGI...........................................................................................................................36 Posibles ataques ............................................................................................................36 Caso 1: solamente se sirven ficheros publicos ..............................................................37 Caso 2: usando --enable-force-cgi-redirect...................................................................37 Caso 3: Usando doc_root or user_dir............................................................................37 Caso 4: Analizador PHP fuera del arbol web. ..............................................................38 Modulo Apache ......................................................................................................................38 v
  • 6. II. Referencia del Lenguaje.....................................................................................................................40 5. Síntaxis básica..............................................................................................................................40 Saliendo de HTML .................................................................................................................41 Separación de instrucciones ...................................................................................................42 Comentarios............................................................................................................................43 6. Types ............................................................................................................................................44 Enteros....................................................................................................................................45 Números en punto flotante......................................................................................................45 Cadenas...................................................................................................................................45 Conversión de cadenas..................................................................................................47 Arrays .....................................................................................................................................48 Arrays unidimensionales...............................................................................................48 Arrays Multidimensionales...........................................................................................49 Objetos....................................................................................................................................50 Inicialización de Objetos...............................................................................................51 Type juggling..........................................................................................................................51 Forzado de tipos............................................................................................................52 7. Variables.......................................................................................................................................54 Conceptos Básicos..................................................................................................................55 Variables predefinidas.............................................................................................................56 Variables de Apache......................................................................................................56 Variables de entorno......................................................................................................58 Variables de PHP...........................................................................................................58 Ambito de las variables ..........................................................................................................59 Variables variables..................................................................................................................61 Variables externas a PHP........................................................................................................62 Formularios HTML (GET y POST) .............................................................................62 IMAGE SUBMIT variable names.......................................................................63 Cookies HTTP ..............................................................................................................63 Variables de entorno......................................................................................................64 Puntos en los nombres de variables de entrada.............................................................64 Determinando los tipos de variables .............................................................................65 8. Constantes ....................................................................................................................................66 Sintaxis ...................................................................................................................................67 Constantes predefinidas ..........................................................................................................68 9. Expresiones ..................................................................................................................................69 10. Operadores .................................................................................................................................73 Operadores Aritméticos..........................................................................................................74 Operadores de Asignación......................................................................................................74 Operadores Bit a bit................................................................................................................74 Operadores de Comparación ..................................................................................................75 Operador de ejecución............................................................................................................76 Operadores de Incremento/decremento ..................................................................................76 Operadores Lógicos................................................................................................................77 Precedencia de Operadores.....................................................................................................77 Operadores de Cadenas ..........................................................................................................78 11. Estructuras de Control................................................................................................................80 if ............................................................................................................................................81 vi
  • 7. else .......................................................................................................................................81 elseif ...................................................................................................................................82 Sintaxis Alternativa de Estructuras de Control.......................................................................82 while .....................................................................................................................................83 do..while .............................................................................................................................84 for ..........................................................................................................................................85 foreach .................................................................................................................................86 break .....................................................................................................................................88 continue ...............................................................................................................................89 switch ...................................................................................................................................90 require() ..................................................................................................................................92 include()..................................................................................................................................93 require_once().........................................................................................................................96 include_once() ........................................................................................................................98 12. Funciones .................................................................................................................................100 Funciones definidas por el usuario .......................................................................................101 Parámetros de las funciones .................................................................................................101 Pasar parámetros por referencia..................................................................................101 Parámetros por defecto ...............................................................................................102 Lista de longitud variable de parámetros ....................................................................103 Devolver valores ...................................................................................................................103 old_function ....................................................................................................................104 Funciones variable................................................................................................................104 13. Clases y Objetos.......................................................................................................................106 class ...................................................................................................................................107 14. References Explained...............................................................................................................110 What References Are............................................................................................................111 What References Do.............................................................................................................111 What References Are Not.....................................................................................................112 Passing by Reference............................................................................................................112 Returning References ...........................................................................................................113 Unsetting References............................................................................................................114 Spotting References..............................................................................................................114 global References.....................................................................................................114 $this ..........................................................................................................................115III. Características.................................................................................................................................116 15. Manejando errores....................................................................................................................116 16. Creando y manipulando imágenes ...........................................................................................121 17. Autentificación HTTP con PHP ...............................................................................................123 18. Cookies.....................................................................................................................................126 19. Manejo de envío de ficheros.....................................................................................................128 Envío de archivos con el método POST ...............................................................................129 Errores comunes ...................................................................................................................131 Envío de multiples ficheros ..................................................................................................131 Soporte del método PUT ......................................................................................................132 20. Usando archivos remotos .........................................................................................................134 21. Manejando conexiones.............................................................................................................137 vii
  • 8. 22. Conexiones persistentes a bases de datos.................................................................................139 23. Modo Seguro (Safe Mode).......................................................................................................142 Funciones restringidas/inhabilitadas por Modo Seguro .......................................................144 24. Using PHP from the command line .........................................................................................149IV. Referencia de las Funciones ...........................................................................................................162 I. Funciones específicas de Apache................................................................................................162 apache_child_terminate........................................................................................................163 apache_lookup_uri ...............................................................................................................163 apache_note ..........................................................................................................................164 apache_setenv .......................................................................................................................164 ascii2ebcdic ..........................................................................................................................164 ebcdic2ascii ..........................................................................................................................164 getallheaders .........................................................................................................................165 virtual....................................................................................................................................165 II. Funciones de matrices ...............................................................................................................167 array_change_key_case ........................................................................................................169 array_chunk ..........................................................................................................................169 array_count_values...............................................................................................................170 array_diff ..............................................................................................................................171 array_fill ...............................................................................................................................172 array_filter ............................................................................................................................172 array_flip...............................................................................................................................174 array_intersect ......................................................................................................................174 array_key_exists ...................................................................................................................175 array_keys.............................................................................................................................175 array_map .............................................................................................................................176 array_merge_recursive .........................................................................................................179 array_merge ..........................................................................................................................180 array_multisort .....................................................................................................................181 array_pad ..............................................................................................................................182 array_pop..............................................................................................................................183 array_push ............................................................................................................................183 array_rand.............................................................................................................................184 array_reduce .........................................................................................................................185 array_reverse ........................................................................................................................185 array_search..........................................................................................................................186 array_shift.............................................................................................................................186 array_slice.............................................................................................................................187 array_splice...........................................................................................................................188 array_sum .............................................................................................................................189 array_unique .........................................................................................................................190 array_unshift.........................................................................................................................191 array_values..........................................................................................................................192 array_walk ............................................................................................................................192 array......................................................................................................................................193 arsort .....................................................................................................................................194 asort ......................................................................................................................................194 viii
  • 9. compact.................................................................................................................................195 count .....................................................................................................................................195 current...................................................................................................................................196 each.......................................................................................................................................196 end ........................................................................................................................................198 extract ...................................................................................................................................198 in_array.................................................................................................................................199 key ........................................................................................................................................200 krsort.....................................................................................................................................200 ksort ......................................................................................................................................201 list .........................................................................................................................................201 natcasesort ............................................................................................................................202 natsort ...................................................................................................................................202 next .......................................................................................................................................203 pos.........................................................................................................................................204 prev .......................................................................................................................................204 rango .....................................................................................................................................204 reset.......................................................................................................................................205 rsort.......................................................................................................................................205 shuffle ...................................................................................................................................205 sizeof.....................................................................................................................................206 sort ........................................................................................................................................206 uasort ....................................................................................................................................206 uksort ....................................................................................................................................207 usort ......................................................................................................................................207III. Funciones Aspell [deprecated].................................................................................................209 aspell_check-raw ..................................................................................................................210 aspell_check .........................................................................................................................210 aspell_new ............................................................................................................................210 aspell_suggest.......................................................................................................................211IV. Funciones matemáticas de precisión arbitraria BCMath .........................................................212 bcadd.....................................................................................................................................213 bccomp .................................................................................................................................213 bcdiv .....................................................................................................................................213 bcmod ...................................................................................................................................213 bcmul ....................................................................................................................................213 bcpow....................................................................................................................................214 bcscale ..................................................................................................................................214 bcsqrt ....................................................................................................................................214 bcsub.....................................................................................................................................214V. Funciones de compresión Bzip2 ...............................................................................................216 bzclose ..................................................................................................................................218 bzcompress ...........................................................................................................................218 bzdecompress .......................................................................................................................218 bzerrno..................................................................................................................................219 bzerror...................................................................................................................................219 bzerrstr..................................................................................................................................220 bzflush...................................................................................................................................220 ix
  • 10. bzopen...................................................................................................................................220 bzread ...................................................................................................................................221 bzwrite ..................................................................................................................................221VI. Funciones de calendario...........................................................................................................223 cal_days_in_month...............................................................................................................225 cal_from_jd...........................................................................................................................225 cal_info .................................................................................................................................225 cal_to_jd ...............................................................................................................................225 easter_date ............................................................................................................................225 easter_days ...........................................................................................................................226 FrenchToJD ..........................................................................................................................227 GregorianToJD .....................................................................................................................227 JDDayOfWeek......................................................................................................................228 JDMonthName .....................................................................................................................228 JDToFrench ..........................................................................................................................229 JDToGregorian .....................................................................................................................229 JDToJewish...........................................................................................................................229 JDToJulian ............................................................................................................................229 jdtounix.................................................................................................................................229 JewishToJD...........................................................................................................................230 JulianToJD ............................................................................................................................230 unixtojd.................................................................................................................................230VII. Funciones del API de CCVS ..................................................................................................232 ccvs_add ...............................................................................................................................233 ccvs_auth ..............................................................................................................................233 ccvs_command .....................................................................................................................233 ccvs_count ............................................................................................................................233 ccvs_delete ...........................................................................................................................234 ccvs_done .............................................................................................................................234 ccvs_init................................................................................................................................234 ccvs_lookup..........................................................................................................................235 ccvs_new ..............................................................................................................................235 ccvs_report ...........................................................................................................................235 ccvs_return ...........................................................................................................................236 ccvs_reverse..........................................................................................................................236 ccvs_sale...............................................................................................................................236 ccvs_status............................................................................................................................237 ccvs_textvalue ......................................................................................................................237 ccvs_void ..............................................................................................................................237VIII. soporte de las funciones COM para Windows ......................................................................239 COM .....................................................................................................................................240 VARIANT.............................................................................................................................241 com_addref ...........................................................................................................................242 com_get ................................................................................................................................242 com_invoke...........................................................................................................................243 com_isenum..........................................................................................................................243 com_load_typelib .................................................................................................................243 com_load ..............................................................................................................................243 x
  • 11. com_propget .........................................................................................................................244 com_propput.........................................................................................................................244 com_propset .........................................................................................................................244 com_release ..........................................................................................................................244 com_set.................................................................................................................................244IX. Funciones de Clases/Objectos .................................................................................................245 call_user_method_array .......................................................................................................248 call_user_method..................................................................................................................248 class_exists ...........................................................................................................................249 get_class_methods................................................................................................................249 get_class_vars.......................................................................................................................250 get_class ...............................................................................................................................252 get_declared_classes.............................................................................................................252 get_object_vars.....................................................................................................................252 get_parent_class ...................................................................................................................254 is_a........................................................................................................................................254 is_subclass_of.......................................................................................................................254 method_exists .......................................................................................................................254X. Funciones de ClibPDF ..............................................................................................................256 cpdf_add_annotation ............................................................................................................259 cpdf_add_outline ..................................................................................................................259 cpdf_arc ................................................................................................................................259 cpdf_begin_text ....................................................................................................................260 cpdf_circle ............................................................................................................................260 cpdf_clip ...............................................................................................................................260 cpdf_close.............................................................................................................................261 cpdf_closepath_fill_stroke....................................................................................................261 cpdf_closepath_stroke ..........................................................................................................261 cpdf_closepath......................................................................................................................261 cpdf_continue_text ...............................................................................................................262 cpdf_curveto .........................................................................................................................262 cpdf_end_text .......................................................................................................................262 cpdf_fill_stroke.....................................................................................................................263 cpdf_fill.................................................................................................................................263 cpdf_finalize_page................................................................................................................263 cpdf_finalize .........................................................................................................................263 cpdf_global_set_document_limits........................................................................................264 cpdf_import_jpeg .................................................................................................................264 cpdf_lineto............................................................................................................................264 cpdf_moveto .........................................................................................................................265 cpdf_newpath........................................................................................................................265 cpdf_open .............................................................................................................................265 cpdf_output_buffer ...............................................................................................................266 cpdf_page_init ......................................................................................................................266 cpdf_place_inline_image......................................................................................................266 cpdf_rect ...............................................................................................................................267 cpdf_restore ..........................................................................................................................267 cpdf_rlineto...........................................................................................................................267 xi
  • 12. cpdf_rmoveto........................................................................................................................267 cpdf_rotate_text ....................................................................................................................268 cpdf_rotate............................................................................................................................268 cpdf_save_to_file..................................................................................................................268 cpdf_save ..............................................................................................................................269 cpdf_scale .............................................................................................................................269 cpdf_set_action_url ..............................................................................................................269 cpdf_set_char_spacing .........................................................................................................269 cpdf_set_creator ...................................................................................................................270 cpdf_set_current_page..........................................................................................................270 cpdf_set_font_directories .....................................................................................................270 cpdf_set_font_map_file ........................................................................................................270 cpdf_set_font ........................................................................................................................271 cpdf_set_horiz_scaling .........................................................................................................271 cpdf_set_keywords ...............................................................................................................271 cpdf_set_leading...................................................................................................................271 cpdf_set_page_animation .....................................................................................................272 cpdf_set_subject ...................................................................................................................272 cpdf_set_text_matrix ............................................................................................................272 cpdf_set_text_pos .................................................................................................................272 cpdf_set_text_rendering .......................................................................................................273 cpdf_set_text_rise.................................................................................................................273 cpdf_set_title ........................................................................................................................273 cpdf_set_viewer_preferences ...............................................................................................273 cpdf_set_word_spacing ........................................................................................................274 cpdf_setdash .........................................................................................................................274 cpdf_setflat ...........................................................................................................................274 cpdf_setgray_fill ...................................................................................................................274 cpdf_setgray_stroke..............................................................................................................275 cpdf_setgray .........................................................................................................................275 cpdf_setlinecap .....................................................................................................................275 cpdf_setlinejoin ....................................................................................................................275 cpdf_setlinewidth..................................................................................................................276 cpdf_setmiterlimit.................................................................................................................276 cpdf_setrgbcolor_fill.............................................................................................................276 cpdf_setrgbcolor_stroke .......................................................................................................276 cpdf_setrgbcolor ...................................................................................................................276 cpdf_show_xy.......................................................................................................................277 cpdf_show.............................................................................................................................277 cpdf_stringwidth...................................................................................................................277 cpdf_stroke ...........................................................................................................................278 cpdf_text ...............................................................................................................................278 cpdf_translate .......................................................................................................................278XI. Crack functions ........................................................................................................................279 crack_check ..........................................................................................................................281 crack_closedict .....................................................................................................................281 crack_getlastmessage ...........................................................................................................281 crack_opendict......................................................................................................................282 xii
  • 13. XII. CURL, Client URL Library Functions ...................................................................................283 curl_close..............................................................................................................................284 curl_errno .............................................................................................................................284 curl_error ..............................................................................................................................284 curl_exec...............................................................................................................................284 curl_getinfo...........................................................................................................................285 curl_init.................................................................................................................................285 curl_setopt ............................................................................................................................285 curl_version ..........................................................................................................................288XIII. Funciones de pago electrónico ..............................................................................................289 cybercash_base64_decode....................................................................................................290 cybercash_base64_encode....................................................................................................290 cybercash_decr .....................................................................................................................290 cybercash_encr .....................................................................................................................290XIV. Crédit Mutuel CyberMUT functions ....................................................................................291 cybermut_creerformulairecm ...............................................................................................292 cybermut_creerreponsecm....................................................................................................292 cybermut_testmac.................................................................................................................293XV. Cyrus IMAP administration functions ...................................................................................295 cyrus_authenticate ................................................................................................................296 cyrus_bind ............................................................................................................................296 cyrus_close ...........................................................................................................................296 cyrus_connect .......................................................................................................................296 cyrus_query ..........................................................................................................................297 cyrus_unbind ........................................................................................................................297XVI. Character type functions .......................................................................................................298 ctype_alnum .........................................................................................................................299 ctype_alpha...........................................................................................................................299 ctype_cntrl ............................................................................................................................299 ctype_digit ............................................................................................................................299 ctype_graph ..........................................................................................................................299 ctype_lower ..........................................................................................................................300 ctype_print............................................................................................................................300 ctype_punct...........................................................................................................................300 ctype_space...........................................................................................................................300 ctype_upper ..........................................................................................................................301 ctype_xdigit ..........................................................................................................................301XVII. Funciones de la capa de abstraccion de bases de datos (dbm-style)....................................302 dba_close ..............................................................................................................................304 dba_delete.............................................................................................................................304 dba_exists .............................................................................................................................304 dba_fetch ..............................................................................................................................304 dba_firstkey ..........................................................................................................................305 dba_insert .............................................................................................................................305 dba_nextkey..........................................................................................................................305 dba_open...............................................................................................................................306 dba_optimize ........................................................................................................................306 dba_popen.............................................................................................................................306 xiii
  • 14. dba_replace...........................................................................................................................307 dba_sync ...............................................................................................................................307XVIII. Funciones de fecha y hora ..................................................................................................309 checkdate ..............................................................................................................................310 date .......................................................................................................................................310 getdate...................................................................................................................................311 gettimeofday .........................................................................................................................312 gmdate ..................................................................................................................................312 gmmktime.............................................................................................................................313 gmstrftime.............................................................................................................................313 localtime ...............................................................................................................................313 microtime..............................................................................................................................314 mktime..................................................................................................................................314 strftime..................................................................................................................................315 strtotime................................................................................................................................316 time .......................................................................................................................................317XIX. Funciones para dBase ...........................................................................................................319 dbase_add_record .................................................................................................................320 dbase_close...........................................................................................................................320 dbase_create .........................................................................................................................320 dbase_delete_record .............................................................................................................321 dbase_get_record_with_names.............................................................................................321 dbase_get_record..................................................................................................................321 dbase_numfields ...................................................................................................................322 dbase_numrecords ................................................................................................................322 dbase_open ...........................................................................................................................322 dbase_pack ...........................................................................................................................323 dbase_replace_record ...........................................................................................................323XX. Funciones dbm .......................................................................................................................324 dblist .....................................................................................................................................325 dbmclose...............................................................................................................................325 dbmdelete .............................................................................................................................325 dbmexists ..............................................................................................................................325 dbmfetch ...............................................................................................................................325 dbmfirstkey ...........................................................................................................................325 dbminsert ..............................................................................................................................326 dbmnextkey ..........................................................................................................................326 dbmopen ...............................................................................................................................326 dbmreplace ...........................................................................................................................327XXI. dbx functions.........................................................................................................................328 dbx_close..............................................................................................................................331 dbx_compare ........................................................................................................................331 dbx_connect..........................................................................................................................332 dbx_error ..............................................................................................................................333 dbx_query .............................................................................................................................334 dbx_sort ................................................................................................................................337XXII. DB++ Functions ..................................................................................................................339 dbplus_add............................................................................................................................343 xiv
  • 15. dbplus_aql.............................................................................................................................343 dbplus_chdir .........................................................................................................................343 dbplus_close .........................................................................................................................344 dbplus_curr ...........................................................................................................................344 dbplus_errcode .....................................................................................................................345 dbplus_errno .........................................................................................................................345 dbplus_find ...........................................................................................................................345 dbplus_first ...........................................................................................................................346 dbplus_flush..........................................................................................................................346 dbplus_freealllocks...............................................................................................................347 dbplus_freelock ....................................................................................................................347 dbplus_freerlocks .................................................................................................................347 dbplus_getlock......................................................................................................................348 dbplus_getunique..................................................................................................................348 dbplus_info ...........................................................................................................................349 dbplus_last............................................................................................................................349 dbplus_lockrel ......................................................................................................................349 dbplus_next...........................................................................................................................350 dbplus_open..........................................................................................................................350 dbplus_prev ..........................................................................................................................351 dbplus_rchperm ....................................................................................................................351 dbplus_rcreate.......................................................................................................................351 dbplus_rcrtexact....................................................................................................................352 dbplus_rcrtlike ......................................................................................................................352 dbplus_resolve ......................................................................................................................353 dbplus_restorepos .................................................................................................................353 dbplus_rkeys.........................................................................................................................353 dbplus_ropen ........................................................................................................................354 dbplus_rquery .......................................................................................................................354 dbplus_rrename ....................................................................................................................355 dbplus_rsecindex ..................................................................................................................355 dbplus_runlink......................................................................................................................355 dbplus_rzap...........................................................................................................................356 dbplus_savepos .....................................................................................................................356 dbplus_setindex ....................................................................................................................357 dbplus_setindexbynumber ....................................................................................................357 dbplus_sql.............................................................................................................................357 dbplus_tcl .............................................................................................................................358 dbplus_tremove ....................................................................................................................358 dbplus_undo .........................................................................................................................358 dbplus_undoprepare .............................................................................................................359 dbplus_unlockrel ..................................................................................................................359 dbplus_unselect ....................................................................................................................359 dbplus_update.......................................................................................................................360 dbplus_xlockrel ....................................................................................................................360 dbplus_xunlockrel ................................................................................................................360XXIII. Direct IO functions.............................................................................................................362 dio_close...............................................................................................................................363 xv
  • 16. dio_fcntl................................................................................................................................363 dio_open ...............................................................................................................................363 dio_read ................................................................................................................................364 dio_seek................................................................................................................................364 dio_stat .................................................................................................................................365 dio_truncate ..........................................................................................................................365 dio_write...............................................................................................................................365XXIV. Funciones con directorios ..................................................................................................367 chdir......................................................................................................................................368 chroot....................................................................................................................................368 dir..........................................................................................................................................368 closedir .................................................................................................................................369 getcwd...................................................................................................................................369 opendir..................................................................................................................................369 readdir...................................................................................................................................369 rewinddir...............................................................................................................................370XXV. Funciones de DOM XML....................................................................................................371 DomAttribute->name ...........................................................................................................372 DomAttribute->specified ......................................................................................................372 DomAttribute->value............................................................................................................372 DomDocument->add_root [deprecated]...............................................................................372 DomDocument->create_attribute .........................................................................................373 DomDocument->create_cdata_section.................................................................................373 DomDocument->create_comment .......................................................................................373 DomDocument->create_element..........................................................................................374 DomDocument->create_entity_reference ............................................................................374 DomDocument->create_processing_instruction ..................................................................374 DomDocument->create_text_node.......................................................................................375 DomDocument->doctype .....................................................................................................375 DomDocument->document_element ...................................................................................375 DomDocument->dump_file..................................................................................................376 DomDocument->dump_mem...............................................................................................377 DomDocument->get_element_by_id ...................................................................................378 DomDocument->get_elements_by_tagname .......................................................................378 DomDocument->html_dump_mem .....................................................................................378 DomDocumentType->entities ..............................................................................................379 DomDocumentType->internal_subset..................................................................................379 DomDocumentType->name .................................................................................................379 DomDocumentType->notations ...........................................................................................380 DomDocumentType->public_id...........................................................................................380 DomDocumentType->system_id..........................................................................................381 DomElement->get_attribute_node .......................................................................................381 DomElement->get_attribute .................................................................................................381 DomElement->get_elements_by_tagname...........................................................................382 DomElement->has_attribute.................................................................................................382 DomElement->remove_attribute ..........................................................................................382 DomElement->set_attribute .................................................................................................383 DomElement->tagname........................................................................................................383 xvi
  • 17. DomNode->append_child ....................................................................................................383 DomNode->append_sibling .................................................................................................385 DomNode->attributes ...........................................................................................................386 DomNode->child_nodes.......................................................................................................386 DomNode->clone_node .......................................................................................................386 DomNode->dump_node .......................................................................................................386 DomNode->first_child..........................................................................................................387 DomNode->get_content .......................................................................................................387 DomNode->has_attributess ..................................................................................................387 DomNode->has_child_nodes ...............................................................................................387 DomNode->insert_before.....................................................................................................388 DomNode->is_blank_node...................................................................................................388 DomNode->last_child ..........................................................................................................389 DomNode->next_sibling ......................................................................................................389 DomNode->node_name .......................................................................................................390 DomNode->node_type .........................................................................................................390 DomNode->node_value........................................................................................................391 DomNode->owner_document ..............................................................................................391 DomNode->parent_node ......................................................................................................392 DomNode->prefix.................................................................................................................392 DomNode->previous_sibling ...............................................................................................393 DomNode->remove_child ....................................................................................................393 DomNode->replace_child ....................................................................................................394 DomNode->replace_node.....................................................................................................394 DomNode->set_content........................................................................................................394 DomNode->set_name...........................................................................................................395 DomNode->unlink_node......................................................................................................395 DomProcessingInstruction->data .........................................................................................395 DomProcessingInstruction->target.......................................................................................395 domxml_new_doc ................................................................................................................396 domxml_open_file................................................................................................................396 domxml_open_mem .............................................................................................................397 domxml_version ...................................................................................................................397 domxml_xmltree...................................................................................................................398 xpath_eval_expression..........................................................................................................398 xpath_eval.............................................................................................................................398 xpath_new_context ...............................................................................................................399 xptr_eval ...............................................................................................................................399 xptr_new_context .................................................................................................................399XXVI. .NET functions ...................................................................................................................401 dotnet_load ...........................................................................................................................402XXVII. Error Handling and Logging Functions ............................................................................403 error_log ...............................................................................................................................404 error_reporting......................................................................................................................405 restore_error_handler ...........................................................................................................405 set_error_handler..................................................................................................................405 trigger_error..........................................................................................................................408 user_error..............................................................................................................................408 xvii
  • 18. XXVIII. FrontBase Functions........................................................................................................410 fbsql_affected_rows..............................................................................................................412 fbsql_autocommit .................................................................................................................412 fbsql_change_user ................................................................................................................412 fbsql_close............................................................................................................................413 fbsql_commit........................................................................................................................413 fbsql_connect........................................................................................................................413 fbsql_create_blob .................................................................................................................414 fbsql_create_clob..................................................................................................................415 fbsql_create_db.....................................................................................................................415 fbsql_data_seek ....................................................................................................................416 fbsql_database_password .....................................................................................................417 fbsql_database ......................................................................................................................418 fbsql_db_query .....................................................................................................................418 fbsql_db_status .....................................................................................................................418 fbsql_drop_db.......................................................................................................................419 fbsql_errno............................................................................................................................419 fbsql_error ............................................................................................................................420 fbsql_fetch_array..................................................................................................................420 fbsql_fetch_assoc .................................................................................................................421 fbsql_fetch_field ...................................................................................................................422 fbsql_fetch_lengths...............................................................................................................423 fbsql_fetch_object ................................................................................................................423 fbsql_fetch_row ....................................................................................................................424 fbsql_field_flags ...................................................................................................................425 fbsql_field_len ......................................................................................................................425 fbsql_field_name ..................................................................................................................425 fbsql_field_seek....................................................................................................................426 fbsql_field_table ...................................................................................................................426 fbsql_field_type ....................................................................................................................426 fbsql_free_result ...................................................................................................................427 fbsql_get_autostart_info .......................................................................................................427 fbsql_hostname.....................................................................................................................428 fbsql_insert_id ......................................................................................................................428 fbsql_list_dbs........................................................................................................................429 fbsql_list_fields.....................................................................................................................429 fbsql_list_tables....................................................................................................................430 fbsql_next_result ..................................................................................................................430 fbsql_num_fields ..................................................................................................................431 fbsql_num_rows ...................................................................................................................431 fbsql_password .....................................................................................................................432 fbsql_pconnect......................................................................................................................432 fbsql_query ...........................................................................................................................433 fbsql_read_blob ....................................................................................................................434 fbsql_read_clob ....................................................................................................................435 fbsql_result ...........................................................................................................................435 fbsql_rollback .......................................................................................................................436 fbsql_select_db .....................................................................................................................436 xviii
  • 19. fbsql_set_lob_mode..............................................................................................................437 fbsql_set_transaction ............................................................................................................437 fbsql_start_db .......................................................................................................................437 fbsql_stop_db .......................................................................................................................438 fbsql_tablename....................................................................................................................438 fbsql_username.....................................................................................................................439 fbsql_warnings .....................................................................................................................439XXIX. Funciones filePro................................................................................................................440 filepro_fieldcount..................................................................................................................441 filepro_fieldname..................................................................................................................441 filepro_fieldtype....................................................................................................................441 filepro_fieldwidth .................................................................................................................441 filepro_retrieve......................................................................................................................441 filepro_rowcount...................................................................................................................441 filepro....................................................................................................................................442XXX. Funciones del sistema de ficheros .......................................................................................443 basename ..............................................................................................................................444 chgrp .....................................................................................................................................444 chmod ...................................................................................................................................444 chown....................................................................................................................................445 clearstatcache........................................................................................................................445 copy ......................................................................................................................................445 delete.....................................................................................................................................446 dirname .................................................................................................................................446 disk_free_space ....................................................................................................................447 disk_total_space ...................................................................................................................447 diskfreespace ........................................................................................................................447 fclose.....................................................................................................................................448 feof........................................................................................................................................448 fflush .....................................................................................................................................448 fgetc ......................................................................................................................................449 fgetcsv...................................................................................................................................449 fgets ......................................................................................................................................450 fgetss.....................................................................................................................................450 file_exists ..............................................................................................................................451 file_get_contents...................................................................................................................451 file_get_wrapper_data ..........................................................................................................451 file_register_wrapper ............................................................................................................452 file .........................................................................................................................................453 fileatime ................................................................................................................................453 filectime ................................................................................................................................454 filegroup................................................................................................................................454 fileinode ................................................................................................................................454 filemtime...............................................................................................................................454 fileowner ...............................................................................................................................455 fileperms ...............................................................................................................................455 filesize...................................................................................................................................455 filetype ..................................................................................................................................455 xix
  • 20. flock ......................................................................................................................................455 fopen .....................................................................................................................................456 fpassthru ...............................................................................................................................457 fputs ......................................................................................................................................458 fread......................................................................................................................................458 fscanf ....................................................................................................................................458 fseek......................................................................................................................................459 fstat .......................................................................................................................................460 ftell........................................................................................................................................460 ftruncate................................................................................................................................460 fwrite.....................................................................................................................................461 glob .......................................................................................................................................461 is_dir .....................................................................................................................................462 is_executable ........................................................................................................................462 is_file ....................................................................................................................................462 is_link ...................................................................................................................................462 is_readable............................................................................................................................463 is_uploaded_file....................................................................................................................463 is_writable ............................................................................................................................464 is_writeable...........................................................................................................................464 link........................................................................................................................................465 linkinfo .................................................................................................................................465 lstat .......................................................................................................................................465 mkdir.....................................................................................................................................466 move_uploaded_file..............................................................................................................466 parse_ini_file ........................................................................................................................467 pathinfo.................................................................................................................................469 pclose....................................................................................................................................470 popen ....................................................................................................................................470 readfile ..................................................................................................................................470 readlink .................................................................................................................................471 realpath .................................................................................................................................471 rename ..................................................................................................................................472 rewind ...................................................................................................................................472 rmdir .....................................................................................................................................472 set_file_buffer .......................................................................................................................472 stat.........................................................................................................................................473 symlink .................................................................................................................................473 tempnam ...............................................................................................................................474 tmpfile...................................................................................................................................474 touch .....................................................................................................................................475 umask....................................................................................................................................475 unlink....................................................................................................................................475XXXI. Funciones Forms Data Format (Formato de Datos de Formularios)..................................476 fdf_add_template..................................................................................................................478 fdf_close ...............................................................................................................................478 fdf_create..............................................................................................................................478 fdf_get_file ...........................................................................................................................479 xx
  • 21. fdf_get_status .......................................................................................................................479 fdf_get_value ........................................................................................................................479 fdf_next_field_name.............................................................................................................479 fdf_open................................................................................................................................480 fdf_save ................................................................................................................................480 fdf_set_ap .............................................................................................................................480 fdf_set_encoding ..................................................................................................................481 fdf_set_file............................................................................................................................481 fdf_set_flags .........................................................................................................................481 fdf_set_javascript_action......................................................................................................481 fdf_set_opt............................................................................................................................482 fdf_set_status........................................................................................................................482 fdf_set_submit_form_action.................................................................................................482 fdf_set_value ........................................................................................................................482XXXII. FriBiDi functions ..............................................................................................................484 fribidi_log2vis ......................................................................................................................486XXXIII. Funciones FTP.................................................................................................................487 ftp_cdup................................................................................................................................488 ftp_chdir ...............................................................................................................................488 ftp_close ...............................................................................................................................488 ftp_connect ...........................................................................................................................488 ftp_delete ..............................................................................................................................488 ftp_exec ................................................................................................................................489 ftp_fget .................................................................................................................................489 ftp_fput .................................................................................................................................489 ftp_get_option.......................................................................................................................489 ftp_get...................................................................................................................................490 ftp_login ...............................................................................................................................490 ftp_mdtm ..............................................................................................................................491 ftp_mkdir ..............................................................................................................................491 ftp_nlist.................................................................................................................................491 ftp_pasv ................................................................................................................................491 ftp_put...................................................................................................................................492 ftp_pwd.................................................................................................................................492 ftp_quit .................................................................................................................................492 ftp_rawlist.............................................................................................................................492 ftp_rename............................................................................................................................493 ftp_rmdir...............................................................................................................................493 ftp_set_option .......................................................................................................................493 ftp_site ..................................................................................................................................494 ftp_size .................................................................................................................................494 ftp_systype............................................................................................................................494XXXIV. Function Handling functions...........................................................................................496 call_user_func_array ............................................................................................................497 call_user_func.......................................................................................................................497 create_function .....................................................................................................................498 func_get_arg .........................................................................................................................500 func_get_args........................................................................................................................501 xxi
  • 22. func_num_args .....................................................................................................................501 function_exists......................................................................................................................502 get_defined_functions...........................................................................................................502 register_shutdown_function .................................................................................................503 register_tick_function...........................................................................................................503 unregister_tick_function.......................................................................................................504XXXV. GNU Gettext.....................................................................................................................505 bind_textdomain_codeset .....................................................................................................506 bindtextdomain .....................................................................................................................506 dcgettext ...............................................................................................................................506 dcngettext .............................................................................................................................506 dgettext .................................................................................................................................507 dngettext ...............................................................................................................................507 gettext ...................................................................................................................................507 ngettext .................................................................................................................................508 textdomain ............................................................................................................................508XXXVI. GMP functions ................................................................................................................509 gmp_abs................................................................................................................................510 gmp_add ...............................................................................................................................510 gmp_and ...............................................................................................................................510 gmp_clrbit.............................................................................................................................510 gmp_cmp ..............................................................................................................................510 gmp_com ..............................................................................................................................510 gmp_div_q ............................................................................................................................511 gmp_div_qr...........................................................................................................................511 gmp_div_r.............................................................................................................................512 gmp_div ................................................................................................................................512 gmp_divexact........................................................................................................................512 gmp_fact ...............................................................................................................................512 gmp_gcd ...............................................................................................................................513 gmp_gcdext ..........................................................................................................................513 gmp_hamdist ........................................................................................................................513 gmp_init................................................................................................................................513 gmp_intval ............................................................................................................................514 gmp_invert............................................................................................................................514 gmp_jacobi ...........................................................................................................................514 gmp_legendre .......................................................................................................................515 gmp_mod..............................................................................................................................515 gmp_mul...............................................................................................................................515 gmp_neg ...............................................................................................................................515 gmp_or..................................................................................................................................515 gmp_perfect_square .............................................................................................................516 gmp_popcount ......................................................................................................................516 gmp_pow ..............................................................................................................................516 gmp_powm ...........................................................................................................................516 gmp_prob_prime ..................................................................................................................516 gmp_random.........................................................................................................................517 gmp_scan0............................................................................................................................517 xxii
  • 23. gmp_scan1............................................................................................................................517 gmp_setbit ............................................................................................................................517 gmp_sign ..............................................................................................................................517 gmp_sqrt ...............................................................................................................................518 gmp_sqrtrm...........................................................................................................................518 gmp_strval ............................................................................................................................518 gmp_sub ...............................................................................................................................518 gmp_xor................................................................................................................................519XXXVII. Funciones HTTP ............................................................................................................520 header ...................................................................................................................................521 headers_sent .........................................................................................................................521 setcookie ...............................................................................................................................522XXXVIII. Funciones para Hyperwave...........................................................................................524 hw_Array2Objrec .................................................................................................................529 hw_changeobject ..................................................................................................................529 hw_Children .........................................................................................................................529 hw_ChildrenObj ...................................................................................................................529 hw_Close ..............................................................................................................................529 hw_Connect..........................................................................................................................530 hw_connection_info .............................................................................................................530 hw_Cp...................................................................................................................................530 hw_Deleteobject ...................................................................................................................531 hw_DocByAnchor................................................................................................................531 hw_DocByAnchorObj..........................................................................................................531 hw_Document_Attributes.....................................................................................................531 hw_Document_BodyTag ......................................................................................................532 hw_Document_Content........................................................................................................532 hw_Document_SetContent...................................................................................................532 hw_Document_Size..............................................................................................................532 hw_dummy ...........................................................................................................................533 hw_EditText..........................................................................................................................533 hw_Error...............................................................................................................................533 hw_ErrorMsg........................................................................................................................533 hw_Free_Document .............................................................................................................534 hw_GetAnchors....................................................................................................................534 hw_GetAnchorsObj..............................................................................................................534 hw_GetAndLock ..................................................................................................................534 hw_GetChildColl..................................................................................................................534 hw_GetChildCollObj............................................................................................................535 hw_GetChildDocColl ...........................................................................................................535 hw_GetChildDocCollObj .....................................................................................................535 hw_GetObject.......................................................................................................................535 hw_GetObjectByQuery ........................................................................................................536 hw_GetObjectByQueryColl .................................................................................................536 hw_GetObjectByQueryCollObj ...........................................................................................537 hw_GetObjectByQueryObj ..................................................................................................537 hw_GetParents......................................................................................................................537 hw_GetParentsObj................................................................................................................538 xxiii
  • 24. hw_getrellink........................................................................................................................538 hw_GetRemote .....................................................................................................................538 hw_GetRemoteChildren .......................................................................................................539 hw_GetSrcByDestObj ..........................................................................................................539 hw_GetText ..........................................................................................................................539 hw_Username .......................................................................................................................540 hw_Identify...........................................................................................................................540 hw_InCollections..................................................................................................................540 hw_Info.................................................................................................................................541 hw_InsColl ...........................................................................................................................541 hw_InsDoc............................................................................................................................541 hw_insertanchors..................................................................................................................541 hw_InsertDocument .............................................................................................................542 hw_InsertObject ...................................................................................................................542 hw_mapid .............................................................................................................................542 hw_Modifyobject .................................................................................................................543 hw_Mv..................................................................................................................................545 hw_New_Document .............................................................................................................546 hw_Objrec2Array .................................................................................................................546 hw_Output_Document .........................................................................................................546 hw_pConnect........................................................................................................................546 hw_PipeDocument ...............................................................................................................547 hw_Root ...............................................................................................................................547 hw_setlinkroot ......................................................................................................................547 hw_stat..................................................................................................................................548 hw_Unlock ...........................................................................................................................548 hw_Who ...............................................................................................................................548XXXIX. Hyperwave API functions ...............................................................................................549 hw_api_attribute->key..........................................................................................................551 hw_api_attribute->langdepvalue ..........................................................................................551 hw_api_attribute->value .......................................................................................................551 hw_api_attribute->values .....................................................................................................551 hw_api_attribute ...................................................................................................................551 hw_api->checkin ..................................................................................................................552 hw_api->checkout ................................................................................................................552 hw_api->children..................................................................................................................553 hw_api_content->mimetype .................................................................................................553 hw_api_content->read ..........................................................................................................553 hw_api->content ...................................................................................................................553 hw_api->copy .......................................................................................................................554 hw_api->dbstat .....................................................................................................................554 hw_api->dcstat .....................................................................................................................554 hw_api->dstanchors..............................................................................................................554 hw_api->dstofsrcanchors......................................................................................................555 hw_api_error->count ............................................................................................................555 hw_api_error->reason...........................................................................................................555 hw_api->find.........................................................................................................................555 hw_api->ftstat.......................................................................................................................556 xxiv
  • 25. hwapi_hgcsp .........................................................................................................................556 hw_api->hwstat ....................................................................................................................556 hw_api->identify ..................................................................................................................556 hw_api->info ........................................................................................................................557 hw_api->insert......................................................................................................................557 hw_api->insertanchor ...........................................................................................................558 hw_api->insertcollection ......................................................................................................558 hw_api->insertdocument ......................................................................................................558 hw_api->link.........................................................................................................................559 hw_api->lock........................................................................................................................559 hw_api->move ......................................................................................................................559 hw_api_content.....................................................................................................................559 hw_api_object->assign .........................................................................................................560 hw_api_object->attreditable .................................................................................................560 hw_api_object->count ..........................................................................................................560 hw_api_object->insert ..........................................................................................................560 hw_api_object.......................................................................................................................560 hw_api_object->remove .......................................................................................................561 hw_api_object->title.............................................................................................................561 hw_api_object->value ..........................................................................................................561 hw_api->object .....................................................................................................................561 hw_api->objectbyanchor ......................................................................................................563 hw_api->parents ...................................................................................................................563 hw_api_reason->description.................................................................................................563 hw_api_reason->type ...........................................................................................................563 hw_api->remove...................................................................................................................563 hw_api->replace ...................................................................................................................564 hw_api->setcommitedversion...............................................................................................565 hw_api->srcanchors..............................................................................................................565 hw_api->srcsofdst.................................................................................................................565 hw_api->unlock....................................................................................................................565 hw_api->user ........................................................................................................................566 hw_api->userlist ...................................................................................................................566XL. Funciones para ICAP - Internet Calendar Application Protocol ............................................567 icap_close .............................................................................................................................568 icap_create_calendar ............................................................................................................568 icap_delete_calendar ............................................................................................................568 icap_delete_event .................................................................................................................568 icap_fetch_event ...................................................................................................................569 icap_list_alarms....................................................................................................................569 icap_list_events ....................................................................................................................570 icap_open..............................................................................................................................570 icap_rename_calendar ..........................................................................................................571 icap_reopen...........................................................................................................................571 icap_snooze ..........................................................................................................................571 icap_store_event ...................................................................................................................571XLI. iconv functions ......................................................................................................................573 iconv_get_encoding..............................................................................................................574 xxv
  • 26. iconv_set_encoding ..............................................................................................................574 iconv .....................................................................................................................................574 ob_iconv_handler .................................................................................................................575XLII. Funciones para imágenes .....................................................................................................576 exif_imagetype .....................................................................................................................577 exif_read_data ......................................................................................................................577 exif_thumbnail......................................................................................................................580 GetImageSize .......................................................................................................................580 image_type_to_mime_type ..................................................................................................581 image2wbmp ........................................................................................................................582 imagealphablending..............................................................................................................582 ImageArc ..............................................................................................................................583 ImageChar ............................................................................................................................583 ImageCharUp .......................................................................................................................583 ImageColorAllocate .............................................................................................................583 ImageColorAt .......................................................................................................................584 ImageColorClosest ...............................................................................................................584 imagecolorclosestalpha.........................................................................................................584 imagecolorclosesthwb ..........................................................................................................585 imagecolordeallocate............................................................................................................585 ImageColorExact..................................................................................................................585 imagecolorexactalpha ...........................................................................................................586 ImageColorResolve ..............................................................................................................586 imagecolorresolvealpha ........................................................................................................586 ImageColorSet......................................................................................................................586 ImageColorsForIndex...........................................................................................................587 ImageColorsTotal .................................................................................................................587 ImageColorTransparent ........................................................................................................587 imagecopy.............................................................................................................................587 imagecopymerge...................................................................................................................588 imagecopymergegray............................................................................................................588 imagecopyresampled ............................................................................................................589 ImageCopyResized...............................................................................................................589 ImageCreate..........................................................................................................................589 imagecreatefromgd2 .............................................................................................................589 imagecreatefromgd2part.......................................................................................................590 imagecreatefromgd ...............................................................................................................590 ImageCreateFromGif............................................................................................................590 imagecreatefromjpeg ............................................................................................................591 imagecreatefrompng .............................................................................................................592 imagecreatefromstring..........................................................................................................593 imagecreatefromwbmp .........................................................................................................593 imagecreatefromxbm............................................................................................................594 imagecreatefromxpm............................................................................................................594 imagecreatetruecolor ............................................................................................................594 ImageDashedLine.................................................................................................................594 ImageDestroy .......................................................................................................................595 imageellipse..........................................................................................................................595 xxvi
  • 27. ImageFill...............................................................................................................................595imagefilledarc .......................................................................................................................595imagefilledellipse..................................................................................................................596ImageFilledPolygon .............................................................................................................596ImageFilledRectangle...........................................................................................................596ImageFillToBorder ...............................................................................................................597ImageFontHeight ..................................................................................................................597ImageFontWidth ...................................................................................................................597imageftbbox..........................................................................................................................597imagefttext ............................................................................................................................598imagegammacorrect..............................................................................................................598imagegd2 ..............................................................................................................................598imagegd ................................................................................................................................599ImageGif...............................................................................................................................599ImageInterlace ......................................................................................................................599imagejpeg .............................................................................................................................600ImageLine.............................................................................................................................600ImageLoadFont.....................................................................................................................600imagepalettecopy ..................................................................................................................601imagepng ..............................................................................................................................601ImagePolygon.......................................................................................................................602ImagePSBBox ......................................................................................................................602ImagePSCopyFont................................................................................................................603ImagePSEncodeFont ............................................................................................................603imagepsextendfont................................................................................................................604ImagePSFreeFont .................................................................................................................604ImagePSLoadFont ................................................................................................................604imagepsslantfont...................................................................................................................604ImagePSText.........................................................................................................................605ImageRectangle ....................................................................................................................605imagesetbrush .......................................................................................................................606ImageSetPixel.......................................................................................................................606imagesetstyle ........................................................................................................................606imagesetthickness .................................................................................................................607imagesettile...........................................................................................................................608ImageString ..........................................................................................................................608ImageStringUp .....................................................................................................................608ImageSX ...............................................................................................................................609ImageSY ...............................................................................................................................609imagetruecolortopalette ........................................................................................................609ImageTTFBBox....................................................................................................................609ImageTTFText ......................................................................................................................610imagetypes............................................................................................................................611imagewbmp ..........................................................................................................................612iptcembed .............................................................................................................................612iptcparse................................................................................................................................613jpeg2wbmp ...........................................................................................................................613png2wbmp ............................................................................................................................613 xxvii
  • 28. read_exif_data ......................................................................................................................614XLIII. Funciones IMAP .................................................................................................................615 imap_8bit..............................................................................................................................616 imap_alerts ...........................................................................................................................616 imap_append.........................................................................................................................616 imap_base64 .........................................................................................................................616 imap_binary..........................................................................................................................616 imap_body ............................................................................................................................617 imap_bodystruct ...................................................................................................................617 imap_check...........................................................................................................................617 imap_clearflag_full...............................................................................................................618 imap_close............................................................................................................................618 imap_createmailbox .............................................................................................................618 imap_delete...........................................................................................................................619 imap_deletemailbox .............................................................................................................619 imap_errors...........................................................................................................................619 imap_expunge.......................................................................................................................619 imap_fetch_overview ...........................................................................................................620 imap_fetchbody ....................................................................................................................621 imap_fetchheader .................................................................................................................621 imap_fetchstructure ..............................................................................................................622 imap_get_quota ....................................................................................................................623 imap_getmailboxes...............................................................................................................624 imap_getsubscribed ..............................................................................................................625 imap_header .........................................................................................................................625 imap_headerinfo ...................................................................................................................627 imap_headers........................................................................................................................629 imap_last_error.....................................................................................................................629 imap_listmailbox ..................................................................................................................629 imap_listsubscribed ..............................................................................................................630 imap_mail_compose.............................................................................................................630 imap_mail_copy ...................................................................................................................631 imap_mail_move ..................................................................................................................631 imap_mail .............................................................................................................................631 imap_mailboxmsginfo..........................................................................................................632 imap_mime_header_decode .................................................................................................632 imap_msgno .........................................................................................................................633 imap_num_msg ....................................................................................................................633 imap_num_recent .................................................................................................................633 imap_open ............................................................................................................................633 imap_ping .............................................................................................................................634 imap_popen ..........................................................................................................................634 imap_qprint...........................................................................................................................635 imap_renamemailbox ...........................................................................................................635 imap_reopen .............................................................................................