PageRenderTime 52ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/umfrage/auswertung/docs/html/A01codedef.html

http://flaimo-php.googlecode.com/
HTML | 129 lines | 118 code | 0 blank | 11 comment | 0 complexity | 9eccf25c9c93a423484bad77af83369e MD5 | raw file
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
  2. <HTML>
  3. <HEAD>
  4. <TITLE>JpGraph Manual (ver:30 Oct 2002 09:48)</TITLE>
  5. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-8859-1">
  6. <STYLE TYPE="text/css"><!--
  7. BODY { font-family: serif }
  8. H1 { font-family: sans-serif }
  9. H2 { font-family: sans-serif }
  10. H3 { font-family: sans-serif }
  11. H4 { font-family: sans-serif }
  12. H5 { font-family: sans-serif }
  13. H6 { font-family: sans-serif }
  14. SUB { font-size: smaller }
  15. SUP { font-size: smaller }
  16. PRE { font-family: monospace }
  17. A { text-decoration: none }
  18. --></STYLE>
  19. </HEAD>
  20. <BODY>
  21. <IMG src="img/JpGraph_Logo.png">
  22. <A HREF="index.html">Contents</A>
  23. <A HREF="A00utilities.html">Previous</A>
  24. <HR>
  25. <H1><A NAME="13">13 Code defines in JpGraph</A></H1>
  26. Various settings in JpGraph are controilled by overall DEFINEs at the
  27. top of jpgraph.php. Most of these defines should not have to be changed
  28. by the regular user but left at their defualt values. Below is a
  29. complete table of all defines and their meaning.
  30. <TABLE cellspacing="3" style="border:blue solid 2pt;">
  31. <TR style="background-color:blue;color:white;"><TH>Define, default value</TH><TH>
  32. Comment</TH></TR>
  33. <TR><TD valign="top">&quot;CACHE_DIR&quot;,&quot;/tmp/jpgraph_cache/&quot;</TD><TD>The full
  34. absolute name of directory to be used as a cache. This directory<STRONG>
  35. must</STRONG> be readable and writable for PHP. Must end with '/'</TD></TR>
  36. <TR><TD valign="top">&quot;TTF_DIR&quot;,&quot;/usr/local/fonts/ttf/&quot;</TD><TD>Directory
  37. for jpGraph TTF fonts. Must end with '/' Note: The fonts must follow
  38. the naming conventions as used by the supplied TTF fonts in JpGraph.</TD>
  39. </TR>
  40. <TR><TD valign="top">&quot;USE_LIBRARY_GD2&quot;,false</TD><TD>Specify if we
  41. should use GD 2.x or GD 1.x If you have GD 2.x installed it is
  42. recommended that you use it since it will give a slightly, slightly
  43. better visual apperance for arcs. If you don't have GD2 installed this
  44. must be set to false!</TD></TR>
  45. <TR><TD valign="top">'USE_TRUECOLOR',true</TD><TD>Should the image be a
  46. truecolor image? Note 1: Can only be used with GD 2.0.2 and above. Note
  47. 2: GD 2.0.1 + PHP 4.0.6 on Win32 crashes when trying to use trucolor.
  48. Truecolor support is to be considered alpha since GD 2.x is still not
  49. considered stable (especially on Win32). Note 3: MUST be enabled to get
  50. background images working with GD2 Note 4: If enabled then truetype
  51. fonts will look very ugly =&gt; You can't have both background images and
  52. truetype fonts in the same image until these bugs has been fixed in GD
  53. 2.01</TD></TR>
  54. <TR><TD valign="top">&quot;USE_CACHE&quot;,false</TD><TD>Should the cache be used
  55. at all? By setting this to false no files will be generated in the
  56. cache directory. The difference from READ_CACHE being that setting
  57. READ_CACHE to false will still create the image in the cache directory
  58. just not use it. By setting USE_CACHE=false no files will even be
  59. generated in the cache directory.</TD></TR>
  60. <TR><TD valign="top">&quot;READ_CACHE&quot;,true</TD><TD>Should we try to find an
  61. image in the cache before generating it? Set this define to false to
  62. bypass the reading of the cache and always regenerate the image. Note
  63. that even if reading the cache is disabled the cached will still be
  64. updated with the newly generated image. Set also &quot;USE_CACHE&quot; below.</TD>
  65. </TR>
  66. <TR><TD valign="top">&quot;DEFAULT_GFORMAT&quot;,&quot;auto&quot;</TD><TD>Deafult graphic
  67. format set to &quot;auto&quot; which will automtically choose the best available
  68. format in the order png,gif,jpg (The supported format depends on what
  69. your PHP installation supports)</TD></TR>
  70. <TR><TD valign="top">&quot;USE_IMAGE_ERROR_HANDLER&quot;,true</TD><TD> Determine
  71. if the error handler should be image based or purely text based. Image
  72. based makes it easier since the script will always return an image even
  73. in case of errors.</TD></TR>
  74. <TR><TD valign="top">&quot;USE_APPROX_COLORS&quot;,true</TD><TD>If the color
  75. palette is full should JpGraph try to allocate the closest match? If
  76. you plan on using background image or gradient fills it might be a good
  77. idea to enable this. If not you will otherwise get an error saying that
  78. the color palette is exhausted. The drawback of using approximations is
  79. that the colors might not be exactly what you specified. Note1: This
  80. does only apply to paletted images, not truecolor images since they
  81. don't have the limitations of maximum number of colors.</TD></TR>
  82. <TR><TD valign="top">&quot;LANGUAGE_CYRILLIC&quot;,false</TD><TD>Special unicode
  83. language support</TD></TR>
  84. <TR><TD valign="top">&quot;ERR_DEPRECATED&quot;,false</TD><TD>Should usage of
  85. deprecated functions and parameters give a fatal error? (Useful to
  86. check if code is future proof.)</TD></TR>
  87. <TR><TD valign="top">&quot;BRAND_TIMING&quot;,false</TD><TD>Should the time taken
  88. to generate each picture be branded to the lower left in corner in each
  89. generated image? Useful for performace measurements generating graphs</TD>
  90. </TR>
  91. <TR><TD valign="top">&quot;BRAND_TIME_FORMAT&quot;,&quot;Generated in: %01.3fs&quot;</TD><TD>
  92. What format should be used for the timing string?</TD></TR>
  93. </TABLE>
  94. <P> The following defines should very rarely need to be changed</P>
  95. <P></P>
  96. <TABLE cellspacing="3" style="border:blue solid 2pt;">
  97. <TR style="background-color:blue;color:white;"><TH>Define, default value</TH><TH>
  98. Comment</TH></TR>
  99. <TR><TD valign="top">&quot;CACHE_FILE_GROUP&quot;,&quot;wwwadmin&quot;</TD><TD>What group
  100. should the cached file belong to (Set to &quot;&quot; will give the default group
  101. for the &quot;PHP-user&quot;) Please note that the Apache user must be a member
  102. of the specified group since otherwise it is impossible for Apache to
  103. set the specified group.</TD></TR>
  104. <TR><TD valign="top">&quot;CACHE_FILE_MOD&quot;,0664</TD><TD>What permissions
  105. should the cached file have (Set to &quot;&quot; will give the default
  106. persmissions for the &quot;PHP-user&quot;)</TD></TR>
  107. <TR><TD valign="top">&quot;USE_BRESENHAM&quot;,false</TD><TD>Decide if we should
  108. use the bresenham circle algorithm or the built in Arc(). Bresenham
  109. gives better visual apperance of circles but is more CPU intensive and
  110. slower then the built in Arc() function in GD. Turned off by default
  111. for speed</TD></TR>
  112. <TR><TD valign="top">&quot;JPG_DEBUG&quot;,false</TD><TD>Enable some extra
  113. internal debug information to be shown. (Should only be changed if your
  114. first name is Johan and you happen to know what you are doing. You have
  115. been warned.)</TD></TR>
  116. <TR><TD valign="top">&quot;_CSIM_SPECIALFILE&quot;,&quot;_csim_special_&quot;</TD><TD>
  117. Special file name to indicate that we only want to calc the image map in
  118. the call to Graph::Stroke() used internally from the GetHTMLCSIM()
  119. method.</TD></TR>
  120. <TR><TD valign="top">&quot;_CSIM_DISPLAY&quot;,&quot;_jpg_csimd&quot;</TD><TD>HTTP GET
  121. argument that is used with image map to indicate to the script to just
  122. generate the image and not the full CSIM HTML page.</TD></TR>
  123. </TABLE>
  124. <HR>
  125. <IMG src="img/JpGraph_Logo.png">
  126. <A HREF="index.html">Contents</A>
  127. <A HREF="A00utilities.html">Previous</A>
  128. </BODY>
  129. </HTML>