Home Backend Development PHP Tutorial PHP顶用GD绘制饼图

PHP顶用GD绘制饼图

Jun 13, 2016 pm 12:26 PM
color gt image this xdata

PHP中用GD绘制饼图

PHP中用GD绘制饼图,绘制的类见代码:

<span style="color: #008080;">  1</span> <span style="color: #0000ff;">Class</span><span style="color: #000000;"> Chart{</span><span style="color: #008080;">  2</span>     <span style="color: #0000ff;">private</span> <span style="color: #800080;">$image</span>; <span style="color: #008000;">//</span><span style="color: #008000;"> 定义图像</span><span style="color: #008080;">  3</span>     <span style="color: #0000ff;">private</span> <span style="color: #800080;">$title</span>; <span style="color: #008000;">//</span><span style="color: #008000;"> 定义标题</span><span style="color: #008080;">  4</span>     <span style="color: #0000ff;">private</span> <span style="color: #800080;">$ydata</span>; <span style="color: #008000;">//</span><span style="color: #008000;"> 定义Y轴数据</span><span style="color: #008080;">  5</span>     <span style="color: #0000ff;">private</span> <span style="color: #800080;">$xdata</span>; <span style="color: #008000;">//</span><span style="color: #008000;"> 定义X轴数据</span><span style="color: #008080;">  6</span>     <span style="color: #0000ff;">private</span> <span style="color: #800080;">$color</span>; <span style="color: #008000;">//</span><span style="color: #008000;"> 定义条形图颜色</span><span style="color: #008080;">  7</span>     <span style="color: #0000ff;">private</span> <span style="color: #800080;">$bgcolor</span>; <span style="color: #008000;">//</span><span style="color: #008000;"> 定义图片背景颜色</span><span style="color: #008080;">  8</span>     <span style="color: #0000ff;">private</span> <span style="color: #800080;">$width</span>; <span style="color: #008000;">//</span><span style="color: #008000;"> 定义图片的宽</span><span style="color: #008080;">  9</span>     <span style="color: #0000ff;">private</span> <span style="color: #800080;">$height</span>; <span style="color: #008000;">//</span><span style="color: #008000;"> 定义图片的长</span><span style="color: #008080;"> 10</span>     <span style="color: #008080;"> 11</span>     <span style="color: #008000;">/*</span><span style="color: #008080;"> 12</span> <span style="color: #008000;">     * 构造函数 </span><span style="color: #008080;"> 13</span> <span style="color: #008000;">     * String title 图片标题</span><span style="color: #008080;"> 14</span> <span style="color: #008000;">     * Array xdata 索引数组,X轴数据</span><span style="color: #008080;"> 15</span> <span style="color: #008000;">     * Array ydata 索引数组,数字数组,Y轴数据</span><span style="color: #008080;"> 16</span>      <span style="color: #008000;">*/</span><span style="color: #008080;"> 17</span>     <span style="color: #0000ff;">function</span> __construct(<span style="color: #800080;">$title</span>,<span style="color: #800080;">$xdata</span>,<span style="color: #800080;">$ydata</span><span style="color: #000000;">) {        </span><span style="color: #008080;"> 18</span>         <span style="color: #800080;">$this</span>->title = <span style="color: #800080;">$title</span><span style="color: #000000;">;</span><span style="color: #008080;"> 19</span>         <span style="color: #800080;">$this</span>->xdata = <span style="color: #800080;">$xdata</span><span style="color: #000000;">;</span><span style="color: #008080;"> 20</span>         <span style="color: #800080;">$this</span>->ydata = <span style="color: #800080;">$ydata</span><span style="color: #000000;">;</span><span style="color: #008080;"> 21</span>         <span style="color: #800080;">$this</span>->color = <span style="color: #0000ff;">array</span>('#058DC7', '#50B432', '#ED561B', '#DDDF00', '#24CBE5', '#64E572', '#FF9655', '#FFF263', '#6AF9C4'<span style="color: #000000;">);</span><span style="color: #008080;"> 22</span> <span style="color: #000000;">    }</span><span style="color: #008080;"> 23</span>     <span style="color: #008080;"> 24</span>     <span style="color: #008000;">/*</span><span style="color: #008080;"> 25</span> <span style="color: #008000;">     * 公有方法,设置条形图的颜色 </span><span style="color: #008080;"> 26</span> <span style="color: #008000;">     * Array color 颜色数组,元素取值为'#058DC7'这种形式</span><span style="color: #008080;"> 27</span>      <span style="color: #008000;">*/</span><span style="color: #008080;"> 28</span>     <span style="color: #0000ff;">function</span> setBarColor(<span style="color: #800080;">$color</span><span style="color: #000000;">){</span><span style="color: #008080;"> 29</span>         <span style="color: #800080;">$this</span>->color = <span style="color: #800080;">$color</span><span style="color: #000000;">;</span><span style="color: #008080;"> 30</span> <span style="color: #000000;">    }</span><span style="color: #008080;"> 31</span>     <span style="color: #008080;"> 32</span>     <span style="color: #008000;">/*</span><span style="color: #008080;"> 33</span> <span style="color: #008000;">     * 绘制饼图</span><span style="color: #008080;"> 34</span>      <span style="color: #008000;">*/</span><span style="color: #008080;"> 35</span>     <span style="color: #0000ff;">function</span><span style="color: #000000;"> mkPieChart() {</span><span style="color: #008080;"> 36</span>         <span style="color: #800080;">$sum</span> = <span style="color: #008080;">array_sum</span>(<span style="color: #800080;">$this</span>->ydata); <span style="color: #008000;">//</span><span style="color: #008000;"> 获取ydata所有元素之和</span><span style="color: #008080;"> 37</span>         <span style="color: #800080;">$start</span> = 0; <span style="color: #008000;">//</span><span style="color: #008000;"> 弧的开始角度</span><span style="color: #008080;"> 38</span>         <span style="color: #800080;">$end</span> = 0; <span style="color: #008000;">//</span><span style="color: #008000;"> 弧的结束角度</span><span style="color: #008080;"> 39</span>         <span style="color: #800080;">$pieWidth</span> =  300; <span style="color: #008000;">//</span><span style="color: #008000;"> 椭圆的长轴</span><span style="color: #008080;"> 40</span>         <span style="color: #800080;">$pieHeight</span> = 220; <span style="color: #008000;">//</span><span style="color: #008000;"> 椭圆的短轴</span><span style="color: #008080;"> 41</span>         <span style="color: #800080;">$space</span> = 40; <span style="color: #008000;">//</span><span style="color: #008000;"> 椭圆与小矩形的间距</span><span style="color: #008080;"> 42</span>         <span style="color: #800080;">$margin</span> = 20; <span style="color: #008000;">//</span><span style="color: #008000;"> 图片的边距</span><span style="color: #008080;"> 43</span>         <span style="color: #800080;">$recWidth</span> = 20; <span style="color: #008000;">//</span><span style="color: #008000;"> 小矩形的宽</span><span style="color: #008080;"> 44</span>         <span style="color: #800080;">$recHeight</span> = 15; <span style="color: #008000;">//</span><span style="color: #008000;"> 小矩形的高</span><span style="color: #008080;"> 45</span>         <span style="color: #800080;">$titleHeight</span> = 50; <span style="color: #008000;">//</span><span style="color: #008000;"> 标题区域的高</span><span style="color: #008080;"> 46</span> <span style="color: #008000;">        // 图片自适应宽与高</span><span style="color: #008080;"> 47</span>         <span style="color: #800080;">$this</span>->width = <span style="color: #800080;">$pieWidth</span> + <span style="color: #800080;">$this</span>->arrayLengthMax(<span style="color: #800080;">$this</span>->xdata)*10*4/3 + <span style="color: #800080;">$space</span> + <span style="color: #800080;">$recWidth</span> +<span style="color: #800080;">$margin</span><span style="color: #000000;">;</span><span style="color: #008080;"> 48</span>         <span style="color: #800080;">$this</span>->height =  ((<span style="color: #800080;">$pieHeight</span> > <span style="color: #008080;">count</span>(<span style="color: #800080;">$this</span>->xdata)*25 ) ? <span style="color: #800080;">$pieHeight</span> : <span style="color: #008080;">count</span>(<span style="color: #800080;">$this</span>->xdata)*25) + <span style="color: #800080;">$titleHeight</span><span style="color: #000000;">;</span><span style="color: #008080;"> 49</span>         <span style="color: #008000;">//</span><span style="color: #008000;"> 椭圆中心的坐标</span><span style="color: #008080;"> 50</span>         <span style="color: #800080;">$cx</span> = <span style="color: #800080;">$pieWidth</span>/2+<span style="color: #800080;">$margin</span><span style="color: #000000;">;</span><span style="color: #008080;"> 51</span>         <span style="color: #800080;">$cy</span> = <span style="color: #800080;">$pieHeight</span>/2+<span style="color: #800080;">$titleHeight</span><span style="color: #000000;">;</span><span style="color: #008080;"> 52</span>         <span style="color: #008080;"> 53</span>         <span style="color: #800080;">$this</span>->image = imagecreatetruecolor(<span style="color: #800080;">$this</span>->width ,<span style="color: #800080;">$this</span>->height); <span style="color: #008000;">//</span><span style="color: #008000;"> 准备画布</span><span style="color: #008080;"> 54</span>         <span style="color: #800080;">$this</span>->bgcolor = imagecolorallocate(<span style="color: #800080;">$this</span>->image,255,255,255); <span style="color: #008000;">//</span><span style="color: #008000;"> 图片的背景颜色</span><span style="color: #008080;"> 55</span>         imagefill(<span style="color: #800080;">$this</span>->image,0,0,<span style="color: #800080;">$this</span>->bgcolor); <span style="color: #008000;">//</span><span style="color: #008000;"> 填充背景</span><span style="color: #008080;"> 56</span>         <span style="color: #008080;"> 57</span> <span style="color: #008000;">        // 设置条形图的颜色</span><span style="color: #008080;"> 58</span>         <span style="color: #800080;">$color</span> = <span style="color: #0000ff;">array</span><span style="color: #000000;">();</span><span style="color: #008080;"> 59</span>         <span style="color: #0000ff;">foreach</span>(<span style="color: #800080;">$this</span>->color <span style="color: #0000ff;">as</span> <span style="color: #800080;">$col</span><span style="color: #000000;">) {</span><span style="color: #008080;"> 60</span>             <span style="color: #800080;">$col</span> = <span style="color: #008080;">substr</span>(<span style="color: #800080;">$col</span>,1,<span style="color: #008080;">strlen</span>(<span style="color: #800080;">$col</span>)-1<span style="color: #000000;">);</span><span style="color: #008080;"> 61</span>             <span style="color: #800080;">$red</span> = <span style="color: #008080;">hexdec</span>(<span style="color: #008080;">substr</span>(<span style="color: #800080;">$col</span>,0,2<span style="color: #000000;">));</span><span style="color: #008080;"> 62</span>             <span style="color: #800080;">$green</span> = <span style="color: #008080;">hexdec</span>(<span style="color: #008080;">substr</span>(<span style="color: #800080;">$col</span>,2,2<span style="color: #000000;">));</span><span style="color: #008080;"> 63</span>             <span style="color: #800080;">$blue</span> = <span style="color: #008080;">hexdec</span>(<span style="color: #008080;">substr</span>(<span style="color: #800080;">$col</span>,4,2<span style="color: #000000;">));</span><span style="color: #008080;"> 64</span>             <span style="color: #800080;">$color</span>[] = imagecolorallocate(<span style="color: #800080;">$this</span>->image ,<span style="color: #800080;">$red</span>, <span style="color: #800080;">$green</span>, <span style="color: #800080;">$blue</span><span style="color: #000000;">);</span><span style="color: #008080;"> 65</span> <span style="color: #000000;">        }</span><span style="color: #008080;"> 66</span>         <span style="color: #008080;"> 67</span>         <span style="color: #008000;">//</span><span style="color: #008000;"> 设置线段的颜色、字体的颜色、字体的路径</span><span style="color: #008080;"> 68</span>         <span style="color: #800080;">$lineColor</span> = imagecolorallocate(<span style="color: #800080;">$this</span>->image ,0xcc,0xcc,0xcc<span style="color: #000000;">);</span><span style="color: #008080;"> 69</span>         <span style="color: #800080;">$fontColor</span> = imagecolorallocate(<span style="color: #800080;">$this</span>->image, 0x95,0x8f,0x8f<span style="color: #000000;">);</span><span style="color: #008080;"> 70</span>         <span style="color: #800080;">$fontPath</span> = 'font/simsun.ttc'<span style="color: #000000;">;</span><span style="color: #008080;"> 71</span>         <span style="color: #008080;"> 72</span>         <span style="color: #008000;">//</span><span style="color: #008000;"> 绘制扇形弧 </span><span style="color: #008080;"> 73</span>         <span style="color: #0000ff;">for</span>(<span style="color: #800080;">$i</span> = 0; <span style="color: #800080;">$i</span> $i++<span style="color: #000000;">) {</span><span style="color: #008080;"> 74</span>             <span style="color: #0000ff;">foreach</span>(<span style="color: #800080;">$this</span>->ydata <span style="color: #0000ff;">as</span> <span style="color: #800080;">$key</span> => <span style="color: #800080;">$val</span><span style="color: #000000;">) {</span><span style="color: #008080;"> 75</span>                 <span style="color: #800080;">$end</span> += 360*<span style="color: #800080;">$val</span>/<span style="color: #800080;">$sum</span><span style="color: #000000;">;</span><span style="color: #008080;"> 76</span>                 imagefilledarc(<span style="color: #800080;">$this</span>->image,<span style="color: #800080;">$cx</span>,<span style="color: #800080;">$cy</span>-<span style="color: #800080;">$i</span>,<span style="color: #800080;">$pieWidth</span>,<span style="color: #800080;">$pieHeight</span>, <span style="color: #800080;">$start</span>,<span style="color: #800080;">$end</span>,<span style="color: #800080;">$color</span>[<span style="color: #800080;">$key</span>%<span style="color: #008080;">count</span>(<span style="color: #800080;">$this</span>->color)],<span style="color: #000000;">IMG_ARC_PIE);        </span><span style="color: #008080;"> 77</span>                 <span style="color: #800080;">$start</span> = <span style="color: #800080;">$end</span><span style="color: #000000;">;                </span><span style="color: #008080;"> 78</span> <span style="color: #000000;">            }</span><span style="color: #008080;"> 79</span> <span style="color: #000000;">        }</span><span style="color: #008080;"> 80</span>         <span style="color: #008080;"> 81</span>         <span style="color: #008000;">//</span><span style="color: #008000;"> 绘制小矩形及之后文字说明</span><span style="color: #008080;"> 82</span>         <span style="color: #800080;">$x1</span> = <span style="color: #800080;">$pieWidth</span>+<span style="color: #800080;">$space</span><span style="color: #000000;">;</span><span style="color: #008080;"> 83</span>         <span style="color: #800080;">$y1</span> = <span style="color: #800080;">$titleHeight</span><span style="color: #000000;"> ;</span><span style="color: #008080;"> 84</span>         <span style="color: #0000ff;">foreach</span>(<span style="color: #800080;">$this</span>->ydata <span style="color: #0000ff;">as</span> <span style="color: #800080;">$key</span> => <span style="color: #800080;">$val</span><span style="color: #000000;">) {</span><span style="color: #008080;"> 85</span>             imagefilledrectangle(<span style="color: #800080;">$this</span>->image,<span style="color: #800080;">$x1</span>,<span style="color: #800080;">$y1</span>,<span style="color: #800080;">$x1</span>+<span style="color: #800080;">$recWidth</span>,<span style="color: #800080;">$y1</span>+<span style="color: #800080;">$recHeight</span>,<span style="color: #800080;">$color</span>[<span style="color: #800080;">$key</span>%<span style="color: #008080;">count</span>(<span style="color: #800080;">$this</span>-><span style="color: #000000;">color)]);        </span><span style="color: #008080;"> 86</span>             imagettftext(<span style="color: #800080;">$this</span>->image,10,0,<span style="color: #800080;">$x1</span>+<span style="color: #800080;">$recWidth</span>+5,<span style="color: #800080;">$y1</span>+<span style="color: #800080;">$recHeight</span>-2,<span style="color: #800080;">$fontColor</span>,<span style="color: #800080;">$fontPath</span>,<span style="color: #800080;">$this</span>->xdata[<span style="color: #800080;">$key</span><span style="color: #000000;">]);</span><span style="color: #008080;"> 87</span>             <span style="color: #800080;">$y1</span> += <span style="color: #800080;">$recHeight</span> + 10<span style="color: #000000;">;            </span><span style="color: #008080;"> 88</span> <span style="color: #000000;">        }</span><span style="color: #008080;"> 89</span>         <span style="color: #008080;"> 90</span>         <span style="color: #008000;">//</span><span style="color: #008000;"> 绘画标题</span><span style="color: #008080;"> 91</span>         <span style="color: #800080;">$titleStart</span> = (<span style="color: #800080;">$this</span>->width - 5.5*<span style="color: #008080;">strlen</span>(<span style="color: #800080;">$this</span>->title))/2<span style="color: #000000;">;</span><span style="color: #008080;"> 92</span>         imagettftext(<span style="color: #800080;">$this</span>->image,11,0,<span style="color: #800080;">$titleStart</span>,20,<span style="color: #800080;">$fontColor</span>,<span style="color: #800080;">$fontPath</span>,<span style="color: #800080;">$this</span>-><span style="color: #000000;">title);</span><span style="color: #008080;"> 93</span>         <span style="color: #008080;"> 94</span>         <span style="color: #008000;">//</span><span style="color: #008000;"> 输出图片</span><span style="color: #008080;"> 95</span>         <span style="color: #008080;">header</span>("Content-Type:image/png"<span style="color: #000000;">);</span><span style="color: #008080;"> 96</span>         imagepng(<span style="color: #800080;">$this</span>-><span style="color: #000000;">image);</span><span style="color: #008080;"> 97</span> <span style="color: #000000;">    } </span><span style="color: #008080;"> 98</span>     <span style="color: #008080;"> 99</span>     <span style="color: #008000;">/*</span><span style="color: #008080;">100</span> <span style="color: #008000;">     * 私有方法,求数组中元素长度最大的值 </span><span style="color: #008080;">101</span> <span style="color: #008000;">     * Array arr 字符串数组,必须是汉字</span><span style="color: #008080;">102</span>      <span style="color: #008000;">*/</span><span style="color: #008080;">103</span>     <span style="color: #0000ff;">private</span> <span style="color: #0000ff;">function</span> arrayLengthMax(<span style="color: #800080;">$arr</span><span style="color: #000000;">) {</span><span style="color: #008080;">104</span>         <span style="color: #800080;">$length</span> = 0<span style="color: #000000;">;</span><span style="color: #008080;">105</span>         <span style="color: #0000ff;">foreach</span>(<span style="color: #800080;">$arr</span> <span style="color: #0000ff;">as</span> <span style="color: #800080;">$val</span><span style="color: #000000;">) {</span><span style="color: #008080;">106</span>             <span style="color: #800080;">$length</span> = <span style="color: #008080;">strlen</span>(<span style="color: #800080;">$val</span>) > <span style="color: #800080;">$length</span> ? <span style="color: #008080;">strlen</span>(<span style="color: #800080;">$val</span>) : <span style="color: #800080;">$length</span><span style="color: #000000;">;</span><span style="color: #008080;">107</span> <span style="color: #000000;">        }</span><span style="color: #008080;">108</span>         <span style="color: #0000ff;">return</span> <span style="color: #800080;">$length</span>/3<span style="color: #000000;">;</span><span style="color: #008080;">109</span> <span style="color: #000000;">    } </span><span style="color: #008080;">110</span>     <span style="color: #008080;">111</span>     <span style="color: #008000;">//</span><span style="color: #008000;"> 析构函数</span><span style="color: #008080;">112</span>     <span style="color: #0000ff;">function</span><span style="color: #000000;"> __destruct(){</span><span style="color: #008080;">113</span>         imagedestroy(<span style="color: #800080;">$this</span>-><span style="color: #000000;">image);</span><span style="color: #008080;">114</span> <span style="color: #000000;">    }</span><span style="color: #008080;">115</span>  }
Copy after login

测试代码如下:

<span style="color: #008080;">1</span> <span style="color: #800080;">$xdata</span> = <span style="color: #0000ff;">array</span>('测试一','测试二','测试三','测试四','测试五','测试六','测试七','测试八','测试九'<span style="color: #000000;">);</span><span style="color: #008080;">2</span> <span style="color: #800080;">$ydata</span> = <span style="color: #0000ff;">array</span>(89,90,90,23,35,45,56,23,56<span style="color: #000000;">);</span><span style="color: #008080;">3</span> <span style="color: #800080;">$Img</span> = <span style="color: #0000ff;">new</span> Chart(<span style="color: #800080;">$title</span>,<span style="color: #800080;">$xdata</span>,<span style="color: #800080;">$ydata</span><span style="color: #000000;">);</span><span style="color: #008080;">4</span> <span style="color: #800080;">$Img</span>->mkPieChart();
Copy after login

 

效果图如下:

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What are the differences between Huawei GT3 Pro and GT4? What are the differences between Huawei GT3 Pro and GT4? Dec 29, 2023 pm 02:27 PM

Many users will choose the Huawei brand when choosing smart watches. Among them, Huawei GT3pro and GT4 are very popular choices. Many users are curious about the difference between Huawei GT3pro and GT4. Let’s introduce the two to you. . What are the differences between Huawei GT3pro and GT4? 1. Appearance GT4: 46mm and 41mm, the material is glass mirror + stainless steel body + high-resolution fiber back shell. GT3pro: 46.6mm and 42.9mm, the material is sapphire glass + titanium body/ceramic body + ceramic back shell 2. Healthy GT4: Using the latest Huawei Truseen5.5+ algorithm, the results will be more accurate. GT3pro: Added ECG electrocardiogram and blood vessel and safety

Fix: Snipping tool not working in Windows 11 Fix: Snipping tool not working in Windows 11 Aug 24, 2023 am 09:48 AM

Why Snipping Tool Not Working on Windows 11 Understanding the root cause of the problem can help find the right solution. Here are the top reasons why the Snipping Tool might not be working properly: Focus Assistant is On: This prevents the Snipping Tool from opening. Corrupted application: If the snipping tool crashes on launch, it might be corrupted. Outdated graphics drivers: Incompatible drivers may interfere with the snipping tool. Interference from other applications: Other running applications may conflict with the Snipping Tool. Certificate has expired: An error during the upgrade process may cause this issu simple solution. These are suitable for most users and do not require any special technical knowledge. 1. Update Windows and Microsoft Store apps

How to use Bing Image Creator for free How to use Bing Image Creator for free Feb 27, 2024 am 11:04 AM

This article will introduce seven ways to get high-quality output using the free BingImageCreator. BingImageCreator (now known as ImageCreator for Microsoft Designer) is one of the great online artificial intelligence art generators. It generates highly realistic visual effects based on user prompts. The more specific, clear, and creative your prompts are, the better the results will be. BingImageCreator has made significant progress in creating high-quality images. It now uses Dall-E3 training mode, showing a higher level of detail and realism. However, its ability to consistently produce HD results depends on several factors, including fast

How to delete images from Xiaomi phones How to delete images from Xiaomi phones Mar 02, 2024 pm 05:34 PM

How to delete images on Xiaomi mobile phones? You can delete images on Xiaomi mobile phones, but most users don’t know how to delete images. Next is the tutorial on how to delete images on Xiaomi mobile phones brought by the editor. Interested users can come and join us. Let's see! How to delete images on Xiaomi mobile phone 1. First open the [Album] function in Xiaomi mobile phone; 2. Then check the unnecessary pictures and click the [Delete] button in the lower right corner; 3. Then click [Album] at the top to enter the special area , select [Recycle Bin]; 4. Then directly click [Empty Recycle Bin] as shown in the figure below; 5. Finally, directly click [Permanent Delete] to complete.

How to Fix Can't Connect to App Store Error on iPhone How to Fix Can't Connect to App Store Error on iPhone Jul 29, 2023 am 08:22 AM

Part 1: Initial Troubleshooting Steps Checking Apple’s System Status: Before delving into complex solutions, let’s start with the basics. The problem may not lie with your device; Apple's servers may be down. Visit Apple's System Status page to see if the AppStore is working properly. If there's a problem, all you can do is wait for Apple to fix it. Check your internet connection: Make sure you have a stable internet connection as the "Unable to connect to AppStore" issue can sometimes be attributed to a poor connection. Try switching between Wi-Fi and mobile data or resetting network settings (General > Reset > Reset Network Settings > Settings). Update your iOS version:

php提交表单通过后,弹出的对话框怎样在当前页弹出,该如何解决 php提交表单通过后,弹出的对话框怎样在当前页弹出,该如何解决 Jun 13, 2016 am 10:23 AM

php提交表单通过后,弹出的对话框怎样在当前页弹出php提交表单通过后,弹出的对话框怎样在当前页弹出而不是在空白页弹出?想实现这样的效果:而不是空白页弹出:------解决方案--------------------如果你的验证用PHP在后端,那么就用Ajax;仅供参考:HTML code

Imagemagic installation Centos and Image installation tutorial Imagemagic installation Centos and Image installation tutorial Feb 12, 2024 pm 05:27 PM

LINUX is an open source operating system. Its flexibility and customizability make it the first choice of many developers and system administrators. In the LINUX system, image processing is a very important task, and Imagemagick and Image are Two very popular image processing tools, this article will introduce you to how to install Imagemagick and Image in Centos system, and provide detailed installation tutorials. Imagemagic installation Centos tutorial Imagemagick is a powerful image processing toolset, which can perform various image operations under the command line. The following are the steps to install Imagemagick on Centos system: 1

What file is xdata What file is xdata Dec 11, 2023 am 11:34 AM

xdata is a general term used to represent data on independent variables (or explanatory variables). Common xdata file types include: 1. CSV file; 2. Excel file; 3. Text file; 4. Database file, etc.

See all articles