freetype FT_Set_Transform函数

freetype 2中这个函数的使用原理是什么,看了文档没有搞清楚,请哪位高手解释一下,多谢。

FT_Set_Transform

Defined in FT_FREETYPE_H (freetype.h).
FT_EXPORT( void )
FT_Set_Transform( FT_Face face,
FT_Matrix* matrix,--------------这个结构体中的xx xy yx yy 是什么??
FT_Vector* delta );-----这里x和y就是坐标嘛??

1个回答

FreeType是一个广泛使用的字符显示工具库。我们可以做许多地方找到FreeType的身影,Qt,Ubuntu,GTK,OGRE等等。FreeType开源10余年,现在最新的版本为2.4.3。
FreeType的使用十分方便,通过官方给的例子我们可以轻松地把文字显示出来,所以我就不详细介绍了。显示如图1。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
freetype FT_New_Memory_Face 使用问题

在《freetype教程》中有这么几句话: 3.装载一个字体face _ a.从一个字体文件装载 ..........(此处我省略了若干字) b.从内存装载 如果你已经把字体文件装载到内存,你可以简单地使用 FT_NEW_Memory_Face_为它新建一个face对象,如下所示: _ FT_Library library; /* 库的句柄 */ FT_Face face; /* face对象的句柄 */ error = FT_Init_FreeType( &library ); if ( error ) { ... } error = FT_New_Memory_Face( library, _buffer, /* 缓存的第一个字节 */ size, /* 缓存的大小(以字节表示) */ 0, /* face索引 */ &face ); if ( error ) { ... } __ 如你所看到的,FT_New_Memory_Face简单地用字体文件缓存的指针和它的大小(以字节计算)代替文件路径。除此之外,它与FT_New_Face的语义一致。 我的问题是: 1、“如果你已经把字体文件装载到内存”,就这句话而言,如何把一个字体文件,如通过什么方法把字库文件 “zang.ttf”加载到内存。 2、通过调用函数 “FT_New_Memory_Face( library, _buffer, /* 缓存的第一个字节 */ size, /* 缓存的大小(以字节表示) */ 0, /* face索引 */ &face ); ”获取FreeType库实例的句柄时,第二个参数 buffer和第三个参数size 具体传入什么值,是否可以举例说明,谢谢各位!

使用freetype中的FT_Set_Pixel_Sizes(...)返回的错误码是35

使用freetype中的FT_Set_Pixel_Sizes(...)返回的错误码是35代表什么意思

交叉编译freetype问题?

我在交叉编译后有些文件中的函数 前面是 FT_EXPORT_DEF( void ) FT_List_Finalize( FT_List list, FT_List_Destructor destroy, FT_Memory memory, void* user ) 导致在调用此函数时提示找不到这个文件: ![图片说明](https://img-ask.csdn.net/upload/202001/17/1579237009_408332.png) 是编译条件不对吗,如何解决? 我的编译过程: ./configure CC=/opt/hisi-linux/x86-arm/aarch64-himix100-linux/bin/aarch64-himix100-linux-gcc --host=aarch64-himix100-linux --prefix=/homefont/test/freetype --enable-shared=no --enable-static=yes make && make install

VC++ CLR 函数参数问题

封装freetype库,到初始化 FT____Library时出错,错误提示如下,求个大神解释一下 private: FT_Library (&m_ftlLibrary); void FreeType::InitFreetypeLib(void) { m_iLibCount++; if (m_ftlLibrary==NULL) { //这样写就OK FT_Library library; FT_Init_FreeType(&library); m_ftlLibrary = &library; //FT_Init_FreeType(&m_ftlLibrary); 无法初始化 提示 //FreeType.cpp(50): error C2664: “FT_Init_FreeType”: 不能将参数 1 从“cli::interior_ptr<Type>”转换为“FT_Library *” } }

用freetype转换字符串成位图数据问题?

这是我的转化代码,转换出来的效果图: ![图片说明](https://img-ask.csdn.net/upload/202001/22/1579661860_266102.png) 我是转换一个字符串:HELLO,但是为什么最后成了两个,而且宽和高似乎都给成了两倍,以下是代码,请大神分析下下面的代码有问题吗?如何修改 ``` static int GetBitmap( char* szFontFile, wchar_t* swText, int ulLen, int nFontSize, int nSpace, BITMAP_S *stBitmap) { FT_Library ftLib = NULL; FT_Face ftFace = NULL; FT_Error ftError = 0; FT_Bitmap ftBitmap; FT_BitmapGlyph ftBmpGlyph; FT_Glyph ftGlyph; FT_GlyphSlot ftGlyphslot; int i, j, k, temp; int start_x = 0, start_y = 0; int nChHeight = 0, nChWidth = 0, nTextWidth = 0; size_t size = 0; unsigned char** pTextAlpha = NULL; int BgHeight = nFontSize + 5; /* 背景图形的高度,这个高度要大于字体的高度,所以是+5 */ ftError = FT_Init_FreeType(&ftLib); if (ftError) { printf("FT_Init_FreeType() Failed!\n"); ftLib = 0; return -1; } printf("========fontfile=%s\n", szFontFile); ftError = FT_New_Face(ftLib, szFontFile, 0, &ftFace); /*if (ftError == FT_Err_Unknown_File_Format) { printf("FT_New_Face() Failed! FT_Err_Unknown_File_Format\n"); return -2; } else */if (ftError) { printf("FT_New_Face() Failed %d! Other Error!\n", ftError); return -3; } pTextAlpha = (uint8_t**)malloc(sizeof(uint8_t*)*BgHeight); //分配内存,用于存储字体背景的数据 if (NULL == pTextAlpha) { printf("malloc() Failed!\n"); return -1; } for (i=0; i < BgHeight; i++) { pTextAlpha[i] = (uint8_t*)malloc(sizeof(uint8_t)*1); //为背景图的每一行分配内存 if (NULL == pTextAlpha[i]) { printf("malloc() Failed! %d\n", i); return -1; } } ftError = FT_Select_Charmap(ftFace, FT_ENCODING_UNICODE); //设置字体的编码方式 if (ftError) { printf("FT_Select_Charmap() Failed! error=%d\n", ftError); return ftError; } ftError = FT_Set_Pixel_Sizes(ftFace, 0, nFontSize); //设置字体大小 if (ftError) { printf("FT_Set_Pixel_Sizes() Failed! error=%d\n",ftError); return ftError; } uint8_t *data; ftGlyphslot = ftFace->glyph; printf("======================ulen = %d\n", ulLen); for (temp = 0; temp < ulLen; temp++) { printf("#######################swText[%d]=%04x\n", temp,swText[temp]); ftError = FT_Load_Char(ftFace, swText[temp], FT_LOAD_RENDER | FT_LOAD_NO_AUTOHINT);//提取一个字形图像 if (ftError) { printf("FT_Load_Char() Failed!, ftError=%d\n", ftError); continue; } ftError = FT_Get_Glyph(ftFace->glyph, &ftGlyph); if (ftError) { printf("FT_Get_Glyph() Failed!"); return ftError; } if (swText[temp] == L' ')//如果取得的为空格 { printf("M MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM M\n"); k = 0; nChWidth = (nFontSize - 2) / 2; nChHeight = nFontSize; nTextWidth = start_x + nChWidth; start_y = 0; for (i = 0; i < BgHeight; i++) { pTextAlpha[i] = (uint8_t*)realloc(pTextAlpha[i], sizeof(uint8_t)*nTextWidth); memset(pTextAlpha[i], 0 ,sizeof(uint8_t)*nTextWidth); for (j = start_x - nSpace; j < nTextWidth; j++) { pTextAlpha[i][j] = 0; } } for (i = 0; i < nChHeight; i++) { for (j=0; j< nChWidth; j++) { pTextAlpha[start_y+i][start_x+j] = 0; k++; } } start_x += (nChWidth + nSpace); /* 画笔向右边移动 */ } else { /* 256级灰度字形转换成位图 */ ftError = FT_Glyph_To_Bitmap(&ftGlyph, FT_RENDER_MODE_NORMAL , NULL, 1); if (ftError) { printf("FT_Glyph_To_Bitmap() Failed!\n"); } ftBmpGlyph = (FT_BitmapGlyph)ftGlyph; ftBitmap = ftBmpGlyph->bitmap; k = 0; printf("XXXXXXXXXX:nFontSize = %d, bitmap_top = %d\n", nFontSize, ftGlyphslot->bitmap_top); printf("XXXXXXXXXX:ftBitmap.rows = %d, BgHeight = %d\n", ftBitmap.rows, BgHeight); start_y = nFontSize - ftGlyphslot->bitmap_top + 2; /* 获取起点的y轴坐标 */ //start_y = nFontSize - ftBitmap.rows + 2; if(start_y < 0) { start_y = 0; } if (ftBitmap.rows > BgHeight) { nChHeight = nFontSize; } else { nChHeight = ftBitmap.rows; } if (nChHeight + start_y > BgHeight) { nChHeight = BgHeight - start_y; } nChWidth = ftBitmap.width; nTextWidth = start_x + ftBitmap.width; printf("XXXXXXXXXX:nChHeight = %d, nChWidth = %d, nTextWidth = %d\n",nChHeight, nChWidth, nTextWidth); for (i=0; i<BgHeight; i++) { pTextAlpha[i] = (uint8_t*)realloc(pTextAlpha[i], nTextWidth); for (j = start_x - nSpace; j < nTextWidth; j++) { if(j < 0) j = 0; pTextAlpha[i][j] = 0; } } for (i = 0; i < BgHeight; i++) { for (j = 0; j < nChWidth; j++) { if (i >= start_y && i < start_y + nChHeight) { pTextAlpha[i][start_x + j] = ftBitmap.buffer[k]; k++; } else { pTextAlpha[i][start_x + j] = 0; } } } start_x += (nChWidth + nSpace); FT_Done_Glyph(ftGlyph); printf("FT_Done_Glyph() Success!\n"); ftGlyph = NULL; } } FT_Done_Face(ftFace); ftFace = NULL; FT_Done_FreeType(ftLib); ftLib = NULL; stBitmap->u32Width = nTextWidth; stBitmap->u32Height = BgHeight; size = sizeof(uint8_t) * nTextWidth * BgHeight; stBitmap->pData = (uint8_t*)malloc(size); memset(stBitmap->pData, 0, size); printf("===================nTextWidth = %d\n", nTextWidth); printf("===================BgHeight = %d\n", BgHeight); printf("===================nChHeight = %d\n", nChHeight); k = 0; for (i = 0; i < BgHeight; i++) { memcpy(((char*)stBitmap->pData) + k, pTextAlpha[i], nTextWidth); k += nTextWidth; free(pTextAlpha[i]); pTextAlpha[i] = NULL; } free(pTextAlpha); pTextAlpha = NULL; return 0; } ```

如何用vs2017配置freetype?

想使用opencv和freetype在图片上加中文,但是下载的是2017版的visual studio,没办法打开freetype的项目,求问各位大佬怎么解决?

openjdk 编译不通过,mac

ERROR: FreeType version 2.3.0 or higher is required. /bin/mkdir -p /Users/apple/desktop/openjdk/build/btbins rm -f /Users/apple/desktop/openjdk/build/btbins/freetype_versioncheck Failed to build freetypecheck.

MFC与VTK,各个库和依赖项填写完整,报错error LNK2019、2001

![![![![![![图片说明](https://img-ask.csdn.net/upload/201605/30/1464617821_173174.jpg)图片说明](https://img-ask.csdn.net/upload/201605/30/1464617808_108129.jpg)图片说明](https://img-ask.csdn.net/upload/201605/30/1464617798_381636.jpg)图片说明](https://img-ask.csdn.net/upload/201605/30/1464617783_175564.jpg)图片说明](https://img-ask.csdn.net/upload/201605/30/1464617767_377094.jpg)图片说明](https://img-ask.csdn.net/upload/201605/30/1464617751_484068.jpg)![![图片说明](https://img-ask.csdn.net/upload/201605/30/1464617719_689853.jpg)图片说明](https://img-ask.csdn.net/upload/201605/30/1464617529_11835.jpg) 报错如下: 1>vtkSDIDoc.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall vtkSmartPointerBase::vtkSmartPointerBase(void)" (__imp_??0vtkSmartPointerBase@@QAE@XZ),该符号在函数 "public: __thiscall vtkSmartPointer<class vtkImageData>::vtkSmartPointer<class vtkImageData>(void)" (??0?$vtkSmartPointer@VvtkImageData@@@@QAE@XZ) 中被引用 1>vtkSDIView.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall vtkSmartPointerBase::vtkSmartPointerBase(void)" (__imp_??0vtkSmartPointerBase@@QAE@XZ) 1>vtkSDIDoc.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall vtkSmartPointerBase::~vtkSmartPointerBase(void)" (__imp_??1vtkSmartPointerBase@@QAE@XZ),该符号在函数 "public: __thiscall vtkSmartPointer<class vtkImageData>::~vtkSmartPointer<class vtkImageData>(void)" (??1?$vtkSmartPointer@VvtkImageData@@@@QAE@XZ) 中被引用 1>vtkSDIView.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall vtkSmartPointerBase::~vtkSmartPointerBase(void)" (__imp_??1vtkSmartPointerBase@@QAE@XZ) 1>vtkSDIDoc.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class vtkSmartPointerBase & __thiscall vtkSmartPointerBase::operator=(class vtkObjectBase *)" (__imp_??4vtkSmartPointerBase@@QAEAAV0@PAVvtkObjectBase@@@Z),该符号在函数 "public: class vtkSmartPointer<class vtkImageData> & __thiscall vtkSmartPointer<class vtkImageData>::operator=(class vtkImageData *)" (??4?$vtkSmartPointer@VvtkImageData@@@@QAEAAV0@PAVvtkImageData@@@Z) 中被引用 1>vtkSDIDoc.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class vtkSmartPointerBase & __thiscall vtkSmartPointerBase::operator=(class vtkSmartPointerBase const &)" (__imp_??4vtkSmartPointerBase@@QAEAAV0@ABV0@@Z),该符号在函数 "public: class vtkSmartPointer<class vtkImageData> & __thiscall vtkSmartPointer<class vtkImageData>::operator=(class vtkSmartPointer<class vtkImageData> const &)" (??4?$vtkSmartPointer@VvtkImageData@@@@QAEAAV0@ABV0@@Z) 中被引用 1>vtkSDIView.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: class vtkSmartPointerBase & __thiscall vtkSmartPointerBase::operator=(class vtkSmartPointerBase const &)" (__imp_??4vtkSmartPointerBase@@QAEAAV0@ABV0@@Z) 1>vtkSDIDoc.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) protected: __thiscall vtkSmartPointerBase::vtkSmartPointerBase(class vtkObjectBase *,class vtkSmartPointerBase::NoReference const &)" (__imp_??0vtkSmartPointerBase@@IAE@PAVvtkObjectBase@@ABVNoReference@0@@Z),该符号在函数 "protected: __thiscall vtkSmartPointer<class vtkImageData>::vtkSmartPointer<class vtkImageData>(class vtkImageData *,class vtkSmartPointerBase::NoReference const &)" (??0?$vtkSmartPointer@VvtkImageData@@@@IAE@PAVvtkImageData@@ABVNoReference@vtkSmartPointerBase@@@Z) 中被引用 1>vtkSDIView.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) protected: __thiscall vtkSmartPointerBase::vtkSmartPointerBase(class vtkObjectBase *,class vtkSmartPointerBase::NoReference const &)" (__imp_??0vtkSmartPointerBase@@IAE@PAVvtkObjectBase@@ABVNoReference@0@@Z) 1>vtkSDIDoc.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class vtkImageData * __cdecl vtkImageData::New(void)" (__imp_?New@vtkImageData@@SAPAV1@XZ),该符号在函数 "public: static class vtkSmartPointer<class vtkImageData> __cdecl vtkSmartPointer<class vtkImageData>::New(void)" (?New@?$vtkSmartPointer@VvtkImageData@@@@SA?AV1@XZ) 中被引用 1>vtkSDIDoc.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class vtkImageData * __thiscall vtkImageAlgorithm::GetOutput(void)" (__imp_?GetOutput@vtkImageAlgorithm@@QAEPAVvtkImageData@@XZ),该符号在函数 "public: void __thiscall CvtkSDIDoc::OnFileOpen(void)" (?OnFileOpen@CvtkSDIDoc@@QAEXXZ) 中被引用 1>vtkSDIDoc.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class vtkJPEGReader * __cdecl vtkJPEGReader::New(void)" (__imp_?New@vtkJPEGReader@@SAPAV1@XZ),该符号在函数 "public: static class vtkSmartPointer<class vtkJPEGReader> __cdecl vtkSmartPointer<class vtkJPEGReader>::New(void)" (?New@?$vtkSmartPointer@VvtkJPEGReader@@@@SA?AV1@XZ) 中被引用 1>vtkSDIView.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class vtkImageViewer2 * __cdecl vtkImageViewer2::New(void)" (__imp_?New@vtkImageViewer2@@SAPAV1@XZ),该符号在函数 "public: static class vtkSmartPointer<class vtkImageViewer2> __cdecl vtkSmartPointer<class vtkImageViewer2>::New(void)" (?New@?$vtkSmartPointer@VvtkImageViewer2@@@@SA?AV1@XZ) 中被引用 1>vtkSDIView.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class vtkRenderWindowInteractor * __cdecl vtkRenderWindowInteractor::New(void)" (__imp_?New@vtkRenderWindowInteractor@@SAPAV1@XZ),该符号在函数 "public: static class vtkSmartPointer<class vtkRenderWindowInteractor> __cdecl vtkSmartPointer<class vtkRenderWindowInteractor>::New(void)" (?New@?$vtkSmartPointer@VvtkRenderWindowInteractor@@@@SA?AV1@XZ) 中被引用 1>G:\Example_VTK\vtkSDI\vtkSDI\Debug\vtkSDI.exe : fatal error LNK1120: 10 个无法解析的外部命令 这是我第一个VTK与MFC集成的程序,后期要用这两个做医学图像处理。我基本上把网上与这个相关的方法都试,每次改动配置都会有新的错误出现,为了解决新的错误进行配置改动,最终又回到这个错误。 ``` ```

freetype字体缩放显示问题

用freetype做的字体在调整大小时候在某些特定像素下显示不了,比如在33像素到65像素之间 就显示不清楚,不能自由缩放。在其他像素时候可以自由缩放大小,跪求大神指点。已经 纠结两个星期了。

windows下编译openjdk7报freetype版本低的问题,请教大神指点

ERROR: FreeType version 2.3.0 or higher is required. make[2]: Entering directory '/cygdrive/f/openjdk-jdk7u-jdk7u/openjdk-jdk7u-jdk7u/jdk/make/tools/freetypecheck' make[2]: Leaving directory '/cygdrive/f/openjdk-jdk7u-jdk7u/openjdk-jdk7u-jdk7u/jdk/make/tools/freetypecheck' Failed to build freetypecheck.

freetype 使用小字体会模糊

用的freetype字体引擎,用的example2给出的转tga方案, 但是我在将字体缩小到一定程度如12号字体 80dpi时字体出现模糊和重叠, 请问有什么办法可以解决?

PHP:调用未定义的函数mb_strlen() - 在启用了mbstring的自定义编译的PHP上

<div class="post-text" itemprop="text"> <p>I have this custom compiled PHP (v5.3.3) with the following extensions enabled (via configure):</p> <pre><code>./configure --prefix=/usr/local/php5.3.3 --with-config-file-path=/usr/local/apache2/conf --with-apxs2=/usr/local/apache2/bin/apxs --with-bz2 --with-curl=/usr/lib --with-curlwrappers --with-freetype-dir=/usr/local --with-gd=/usr/local --with-gettext --with-gmp --with-iconv=/usr/local --with-imap=/usr/local/imap2007e --with-imap-ssl --with-jpeg-dir=/usr/local/lib --with-kerberos --with-libxml-dir=/usr/lib --with-mcrypt=/usr/local --with-mhash --with-mysql=/usr/lib/mysql --with-mysql-sock=/var/lib/mysql/mysql.sock --with-mysqli=/usr/lib/mysql/mysql_config --with-openssl=/usr --with-pcre-dir=/usr/local/lib --with-pear --with-png-dir=/usr/local/lib --with-readline --with-sqlite --with-xmlrpc --with-xsl=/usr/local --with-zlib-dir=/usr/local/lib --with-zlib=/usr/local --without-pgsql --enable-bcmath --enable-calendar --enable-exif --enable-embedded-mysqli=shared --enable-ftp --enable-gd-jis-conv --enable-gd-native-ttf --enable-mbstring=all --enable-mbregex --enable-shared --enable-sockets --enable-soap --enable-sqlite-utf8 --enable-zend-multibyte --enable-zip --disable-pdo --disable-phar </code></pre> <p><strong>phpinfo()</strong> clearly states that mbstring is enabled: <img src="https://i.stack.imgur.com/jHhgr.png" alt="alt text"></p> <p>Funny thing is when I try to run some PHP scripts (SugarCRM updates), it reports the following error:</p> <blockquote> <p>PHP Fatal error: Call to undefined function mb_strlen() in crm/include/pclzip/pclzip.lib.php on line 4165</p> </blockquote> <p>Can anyone throw some light into WHY this is happening and how to fix this?</p> <p>Thanks, m^e</p> </div>

无法在centos上安装带有yum的php-gd和freetype

<div class="post-text" itemprop="text"> <p>I'm unable to install GD and Freetype for PHP on centos.</p> <p>I've read many similar questions like this one <a href="https://stackoverflow.com/questions/21216129/install-gd-library-and-freetype-on-linux">Install GD library and freetype on Linux</a> But I'm still having no luck..</p> <pre><code> [root@media modules]# sudo yum install php-gd Loaded plugins: fastestmirror, priorities, replace, security Setting up Install Process Loading mirror speeds from cached hostfile * base: mirror.overthewire.com.au * extras: mirror.nsw.coloau.com.au * ius: ius.mirror.digitalpacific.com.au * remi-php56: mirror.innosol.asia * rpmforge: mirror.ventraip.net.au * updates: mirror.overthewire.com.au Resolving Dependencies --&gt; Running transaction check ---&gt; Package php-gd.x86_64 0:5.6.20-1.el6.remi will be installed --&gt; Processing Dependency: gd-last(x86-64) &gt;= 2.1.1 for package: php-gd-5.6.20-1.el6.remi.x86_64 --&gt; Processing Dependency: libvpx.so.1()(64bit) for package: php-gd-5.6.20-1.el6.remi.x86_64 --&gt; Processing Dependency: libgd.so.3()(64bit) for package: php-gd-5.6.20-1.el6.remi.x86_64 --&gt; Running transaction check ---&gt; Package libvpx.x86_64 0:1.3.0-5.el6_5 will be installed ---&gt; Package php-gd.x86_64 0:5.6.20-1.el6.remi will be installed --&gt; Processing Dependency: gd-last(x86-64) &gt;= 2.1.1 for package: php-gd-5.6.20-1.el6.remi.x86_64 --&gt; Processing Dependency: libgd.so.3()(64bit) for package: php-gd-5.6.20-1.el6.remi.x86_64 --&gt; Finished Dependency Resolution Error: Package: php-gd-5.6.20-1.el6.remi.x86_64 (remi-php56) Requires: gd-last(x86-64) &gt;= 2.1.1 Error: Package: php-gd-5.6.20-1.el6.remi.x86_64 (remi-php56) Requires: libgd.so.3()(64bit) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest sudo apt-get install freetype*[root@media modules]# sudo apt-get install freetype* sudo: apt-get: command not found [root@media modules]# sudo yum install freetype* Loaded plugins: fastestmirror, priorities, replace, security Setting up Install Process Loading mirror speeds from cached hostfile * base: mirror.overthewire.com.au * extras: mirror.nsw.coloau.com.au * ius: ius.mirror.digitalpacific.com.au * remi-php56: remi.conetix.com.au * rpmforge: repoforge.mirror.digitalpacific.com.au * updates: mirror.overthewire.com.au Package freetype-2.3.11-15.el6_6.1.x86_64 already installed and latest version Package freetype-devel-2.3.11-15.el6_6.1.x86_64 already installed and latest version Package freetype-demos-2.3.11-15.el6_6.1.x86_64 already installed and latest version Nothing to do [root@media modules]# service httpd restart Stopping httpd: [ OK ] Starting httpd: [ OK ] [root@media modules]# sudo yum install php56-gd Loaded plugins: fastestmirror, priorities, replace, security Setting up Install Process Loading mirror speeds from cached hostfile * base: mirror.overthewire.com.au * extras: mirror.nsw.coloau.com.au * ius: syd.mirror.rackspace.com * remi-php56: remi.conetix.com.au * rpmforge: mirror.ventraip.net.au * updates: mirror.overthewire.com.au No package php56-gd available. Error: Nothing to do [root@media modules]# yum install php-gd --enablerepo=remi,remi-php56 Loaded plugins: fastestmirror, priorities, replace, security Setting up Install Process Loading mirror speeds from cached hostfile * base: mirror.overthewire.com.au * extras: mirror.nsw.coloau.com.au * ius: ius.mirror.digitalpacific.com.au * remi-php56: remi.conetix.com.au * rpmforge: repoforge.mirror.digitalpacific.com.au * updates: mirror.overthewire.com.au Resolving Dependencies --&gt; Running transaction check ---&gt; Package php-gd.x86_64 0:5.6.20-1.el6.remi will be installed --&gt; Processing Dependency: gd-last(x86-64) &gt;= 2.1.1 for package: php-gd-5.6.20-1.el6.remi.x86_64 --&gt; Processing Dependency: libvpx.so.1()(64bit) for package: php-gd-5.6.20-1.el6.remi.x86_64 --&gt; Processing Dependency: libgd.so.3()(64bit) for package: php-gd-5.6.20-1.el6.remi.x86_64 --&gt; Running transaction check ---&gt; Package libvpx.x86_64 0:1.3.0-5.el6_5 will be installed ---&gt; Package php-gd.x86_64 0:5.6.20-1.el6.remi will be installed --&gt; Processing Dependency: gd-last(x86-64) &gt;= 2.1.1 for package: php-gd-5.6.20-1.el6.remi.x86_64 --&gt; Processing Dependency: libgd.so.3()(64bit) for package: php-gd-5.6.20-1.el6.remi.x86_64 --&gt; Finished Dependency Resolution Error: Package: php-gd-5.6.20-1.el6.remi.x86_64 (remi-php56) Requires: gd-last(x86-64) &gt;= 2.1.1 Error: Package: php-gd-5.6.20-1.el6.remi.x86_64 (remi-php56) Requires: libgd.so.3()(64bit) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest </code></pre> <p>My web app still shows</p> <pre><code>PHP GD Extension: Not Found PHP FreeType Support: Not Found </code></pre> <p>And I'm pretty confident about this because it work before I uninstalled PHP and installed a different version and lost these extensions :/</p> </div>

PHP中的FreeType扩展

<div class="post-text" itemprop="text"> <p>I have a Linux Shared Hosting on a server that FreeType is not installed on that. But I need to use this extension(imagettftext) for writing texts on images with a specific font. Now admin of this server said that can't installed that.</p> <p>So What can I do now??????</p> <p>Would you please explain about dl function in PHP(Where to put extension and how to use)?</p> <p>Please Answer A.S.A.P.</p> <p>Thanks in advance.</p> </div>

MFC 64位下OpenGL使用FreeType 绘制文字编译不通过

如题,默认库函数名称冲突,使用的是FreeType 2.6.5版本, 用控制台测试32位正常,然后将FreeType编译成64位,再去控制台测试就报错(无法正常启动程序0x000000c7,可能是我编译FreeType库lib错了吧,请问这个64位怎么编译?)

错误:需要支持FreeType的GD PHP扩展或支持PNG的ImageMagick PHP扩展

<div class="post-text" itemprop="text"> <p>I'm on MacOS Mojave with Apache. I'm getting following error on a fresh yii 2 install on contact page</p> <p>Invalid Configuration – yii\base\InvalidConfigException Either GD PHP extension with FreeType support or ImageMagick PHP extension with PNG support is required</p> <p>I've gd enabled with PNG support. I've php7</p> <p>What else I need to do to fix this error?</p> <p><a href="https://i.stack.imgur.com/y3Ayp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/y3Ayp.png" alt="GD config"></a></p> </div>

有哪个知道MAC PHP5.6 怎么安装GD库的FREETYPE啊?

必须是MAC笔记本上自带的PHP5.6,这个好麻烦,网上找的都不成功,就算用BREW的方法也不解决问题,CSRUTRIL Disable 都不管用还给系统弄坏了,这是新装的MAC系统,求解怎么能把MAC自带的PHP5.6 的GD库安装FREETYPE?

MSSQL_CONNECT什么也不返回 - 没有错误但没有响应

<div class="post-text" itemprop="text"> <p>I have MSSQL and an IIS7 server but would like to write a PHP website that can retrieve data from my database.</p> <p>I have switched all my <code>mysql_</code> instances with <code>mssql_</code>, but it simply won't connect when I try:</p> <pre><code>$this-&gt;connection = mssql_connect(DB_HOST, DB_USER, DB_PASSWORD); </code></pre> <p>I have echo'd out the 3 pieces of data above and all are correct. I cannot echo anything after the line above, it completely kills it.</p> <p>I have custom error reporting and have even tried taking it off, to no avail - just a blank page:</p> <pre><code>set_error_handler("customError"); error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE); </code></pre> <p>Can some one point me in the right direction for setting up IIS to be able to connect through <code>mssql_connect</code> please? I enjoy programming but server config is not my forte!</p> <p>Here is the mssql block in my php.ini file located: C:\Program Files (x86)\PHP\v5.3</p> <pre><code>[MSSQL] ; Allow or prevent persistent links. mssql.allow_persistent = On ; Maximum number of persistent links. -1 means no limit. mssql.max_persistent = -1 ; Maximum number of links (persistent+non persistent). -1 means no limit. mssql.max_links = -1 ; Minimum error severity to display. mssql.min_error_severity = 10 ; Minimum message severity to display. mssql.min_message_severity = 10 ; Compatibility mode with old versions of PHP 3.0. mssql.compatability_mode = Off ; Connect timeout ;mssql.connect_timeout = 5 ; Query timeout ;mssql.timeout = 60 ; Valid range 0 - 2147483647. Default = 4096. ;mssql.textlimit = 4096 ; Valid range 0 - 2147483647. Default = 4096. ;mssql.textsize = 4096 ; Limits the number of records in each batch. 0 = all records in one batch. ;mssql.batchsize = 0 ; Specify how datetime and datetim4 columns are returned ; On =&gt; Returns data converted to SQL server settings ; Off =&gt; Returns values as YYYY-MM-DD hh:mm:ss ;mssql.datetimeconvert = On ; Use NT authentication when connecting to the server mssql.secure_connection = Off ; Specify max number of processes. -1 = library default ; msdlib defaults to 25 ; FreeTDS defaults to 4096 ;mssql.max_procs = -1 ; Specify client character set. ; If empty or not set the client charset from freetds.comf is used ; This is only used when compiled with FreeTDS ;mssql.charset = "ISO-8859-1" </code></pre> <p>Here is my phpinfo(INFO_MODULES)</p> <pre><code> bcmath BCMath support enabled Directive Local Value Master Value bcmath.scale 0 0 calendar Calendar support enabled cgi-fcgi Directive Local Value Master Value cgi.check_shebang_line 1 1 cgi.discard_path 0 0 cgi.fix_pathinfo 1 1 cgi.force_redirect 0 0 cgi.nph 0 0 cgi.redirect_status_env no value no value cgi.rfc2616_headers 0 0 fastcgi.impersonate 1 1 fastcgi.logging 1 1 com_dotnet COM support enabled DCOM support disabled .Net support enabled Directive Local Value Master Value com.allow_dcom 0 0 com.autoregister_casesensitive 1 1 com.autoregister_typelib 0 0 com.autoregister_verbose 0 0 com.code_page no value no value com.typelib_file no value no value Core PHP Version 5.3.6 Directive Local Value Master Value allow_call_time_pass_reference Off Off allow_url_fopen On On allow_url_include Off Off always_populate_raw_post_data Off Off arg_separator.input &amp; &amp; arg_separator.output &amp; &amp; asp_tags Off Off auto_append_file no value no value auto_globals_jit On On auto_prepend_file no value no value browscap no value no value default_charset no value no value default_mimetype text/html text/html define_syslog_variables Off Off disable_classes no value no value disable_functions no value no value display_errors On On display_startup_errors Off Off doc_root no value no value docref_ext no value no value docref_root no value no value enable_dl Off Off error_append_string no value no value error_log C:\Windows\temp\php53_errors.log C:\Windows\temp\php53_errors.log error_prepend_string no value no value error_reporting 32767 32767 exit_on_timeout Off Off expose_php On On extension_dir C:\Program Files (x86)\PHP\v5.3\ext\ C:\Program Files (x86)\PHP\v5.3\ext\ file_uploads On On highlight.bg #FFFFFF #FFFFFF highlight.comment #FF8000 #FF8000 highlight.default #0000BB #0000BB highlight.html #000000 #000000 highlight.keyword #007700 #007700 highlight.string #DD0000 #DD0000 html_errors On On ignore_repeated_errors Off Off ignore_repeated_source Off Off ignore_user_abort Off Off implicit_flush Off Off include_path .;C:\php\pear .;C:\php\pear log_errors On On log_errors_max_len 1024 1024 magic_quotes_gpc Off Off magic_quotes_runtime Off Off magic_quotes_sybase Off Off mail.add_x_header On On mail.force_extra_parameters no value no value mail.log no value no value max_execution_time 300 300 max_file_uploads 20 20 max_input_nesting_level 64 64 max_input_time 60 60 memory_limit 128M 128M open_basedir no value no value output_buffering 4096 4096 output_handler no value no value post_max_size 8M 8M precision 14 14 realpath_cache_size 16K 16K realpath_cache_ttl 120 120 register_argc_argv Off Off register_globals Off Off register_long_arrays Off Off report_memleaks On On report_zend_debug On On request_order GP GP safe_mode Off Off safe_mode_exec_dir no value no value safe_mode_gid Off Off safe_mode_include_dir no value no value sendmail_from no value no value sendmail_path no value no value serialize_precision 17 17 short_open_tag Off Off SMTP localhost localhost smtp_port 25 25 sql.safe_mode Off Off track_errors On On unserialize_callback_func no value no value upload_max_filesize 2M 2M upload_tmp_dir C:\Windows\temp C:\Windows\temp user_dir no value no value user_ini.cache_ttl 300 300 user_ini.filename .user.ini .user.ini variables_order GPCS GPCS xmlrpc_error_number 0 0 xmlrpc_errors Off Off y2k_compliance On On zend.enable_gc On On ctype ctype functions enabled curl cURL support enabled cURL Information 7.21.2 Age 3 Features AsynchDNS Yes Debug No GSS-Negotiate No IDN No IPv6 Yes Largefile Yes NTLM Yes SPNEGO No SSL Yes SSPI Yes krb4 No libz Yes CharConv No Protocols dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, pop3, pop3s, rtsp, scp, sftp, smtp, smtps, telnet, tftp Host i386-pc-win32 SSL Version OpenSSL/0.9.8r ZLib Version 1.2.3 libSSH Version libssh2/1.2.7 date date/time support enabled "Olson" Timezone Database Version 2011.4 Timezone Database internal Default timezone Europe/Minsk Directive Local Value Master Value date.default_latitude 31.7667 31.7667 date.default_longitude 35.2333 35.2333 date.sunrise_zenith 90.583333 90.583333 date.sunset_zenith 90.583333 90.583333 date.timezone Europe/Minsk Europe/Minsk dom DOM/XML enabled DOM/XML API Version 20031129 libxml Version 2.7.7 HTML Support enabled XPath Support enabled XPointer Support enabled Schema Support enabled RelaxNG Support enabled ereg Regex Library Bundled library enabled exif EXIF Support enabled EXIF Version 1.4 $Id: exif.c 308362 2011-02-15 14:02:26Z pajoye $ Supported EXIF Version 0220 Supported filetypes JPEG,TIFF Directive Local Value Master Value exif.decode_jis_intel JIS JIS exif.decode_jis_motorola JIS JIS exif.decode_unicode_intel UCS-2LE UCS-2LE exif.decode_unicode_motorola UCS-2BE UCS-2BE exif.encode_jis no value no value exif.encode_unicode ISO-8859-15 ISO-8859-15 filter Input Validation and Filtering enabled Revision $Revision: 306939 $ Directive Local Value Master Value filter.default unsafe_raw unsafe_raw filter.default_flags no value no value ftp FTP support enabled gd GD Support enabled GD Version bundled (2.0.34 compatible) FreeType Support enabled FreeType Linkage with freetype FreeType Version 2.4.3 GIF Read Support enabled GIF Create Support enabled JPEG Support enabled libJPEG Version 6b PNG Support enabled libPNG Version 1.2.44 WBMP Support enabled XBM Support enabled Directive Local Value Master Value gd.jpeg_ignore_warning 0 0 gettext GetText Support enabled hash hash support enabled Hashing Engines md2 md4 md5 sha1 sha224 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru snefru256 gost adler32 crc32 crc32b salsa10 salsa20 haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5 iconv iconv support enabled iconv implementation "libiconv" iconv library version 1.11 Directive Local Value Master Value iconv.input_encoding ISO-8859-1 ISO-8859-1 iconv.internal_encoding ISO-8859-1 ISO-8859-1 iconv.output_encoding ISO-8859-1 ISO-8859-1 imap IMAP c-Client Version 2007e SSL Support enabled json json support enabled json version 1.2.1 libxml libXML support active libXML Compiled Version 2.7.7 libXML Loaded Version 20707 libXML streams enabled mbstring Multibyte Support enabled Multibyte string engine libmbfl HTTP input encoding translation disabled mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1. Multibyte (japanese) regex support enabled Multibyte regex (oniguruma) version 4.7.1 Directive Local Value Master Value mbstring.detect_order no value no value mbstring.encoding_translation Off Off mbstring.func_overload 0 0 mbstring.http_input pass pass mbstring.http_output pass pass mbstring.http_output_conv_mimetypes ^(text/|application/xhtml\+xml) ^(text/|application/xhtml\+xml) mbstring.internal_encoding no value no value mbstring.language neutral neutral mbstring.strict_detection Off Off mbstring.substitute_character no value no value mcrypt mcrypt support enabled mcrypt_filter support enabled Version 2.5.8 Api No 20021217 Supported ciphers cast-128 gost rijndael-128 twofish cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes arcfour Supported modes cbc cfb ctr ecb ncfb nofb ofb stream Directive Local Value Master Value mcrypt.algorithms_dir no value no value mcrypt.modes_dir no value no value mhash MHASH support Enabled MHASH API Version Emulated Support mysql MySQL Support enabled Active Persistent Links 0 Active Links 0 Client API version mysqlnd 5.0.8-dev - 20102224 - $Revision: 308673 $ Directive Local Value Master Value mysql.allow_local_infile On On mysql.allow_persistent On On mysql.connect_timeout 60 60 mysql.default_host no value no value mysql.default_password no value no value mysql.default_port no value no value mysql.default_socket no value no value mysql.default_user no value no value mysql.max_links Unlimited Unlimited mysql.max_persistent Unlimited Unlimited mysql.trace_mode Off Off mysqli MysqlI Support enabled Client API library version mysqlnd 5.0.8-dev - 20102224 - $Revision: 308673 $ Active Persistent Links 0 Inactive Persistent Links 0 Active Links 0 Directive Local Value Master Value mysqli.allow_local_infile On On mysqli.allow_persistent On On mysqli.default_host no value no value mysqli.default_port 3306 3306 mysqli.default_pw no value no value mysqli.default_socket no value no value mysqli.default_user no value no value mysqli.max_links Unlimited Unlimited mysqli.max_persistent Unlimited Unlimited mysqli.reconnect Off Off mysqlnd mysqlnd enabled Version mysqlnd 5.0.8-dev - 20102224 - $Revision: 308673 $ Compression supported SSL supported Command buffer size 4096 Read buffer size 32768 Read timeout 31536000 Collecting statistics Yes Collecting memory statistics No Tracing n/a Client statistics bytes_sent 0 bytes_received 0 packets_sent 0 packets_received 0 protocol_overhead_in 0 protocol_overhead_out 0 bytes_received_ok_packet 0 bytes_received_eof_packet 0 bytes_received_rset_header_packet 0 bytes_received_rset_field_meta_packet 0 bytes_received_rset_row_packet 0 bytes_received_prepare_response_packet 0 bytes_received_change_user_packet 0 packets_sent_command 0 packets_received_ok 0 packets_received_eof 0 packets_received_rset_header 0 packets_received_rset_field_meta 0 packets_received_rset_row 0 packets_received_prepare_response 0 packets_received_change_user 0 result_set_queries 0 non_result_set_queries 0 no_index_used 0 bad_index_used 0 slow_queries 0 buffered_sets 0 unbuffered_sets 0 ps_buffered_sets 0 ps_unbuffered_sets 0 flushed_normal_sets 0 flushed_ps_sets 0 ps_prepared_never_executed 0 ps_prepared_once_executed 0 rows_fetched_from_server_normal 0 rows_fetched_from_server_ps 0 rows_buffered_from_client_normal 0 rows_buffered_from_client_ps 0 rows_fetched_from_client_normal_buffered 0 rows_fetched_from_client_normal_unbuffered 0 rows_fetched_from_client_ps_buffered 0 rows_fetched_from_client_ps_unbuffered 0 rows_fetched_from_client_ps_cursor 0 rows_affected_normal 0 rows_affected_ps 0 rows_skipped_normal 0 rows_skipped_ps 0 copy_on_write_saved 0 copy_on_write_performed 0 command_buffer_too_small 0 connect_success 0 connect_failure 0 connection_reused 0 reconnect 0 pconnect_success 0 active_connections 0 active_persistent_connections 0 explicit_close 0 implicit_close 0 disconnect_close 0 in_middle_of_command_close 0 explicit_free_result 0 implicit_free_result 0 explicit_stmt_close 0 implicit_stmt_close 0 mem_emalloc_count 0 mem_emalloc_amount 0 mem_ecalloc_count 0 mem_ecalloc_amount 0 mem_erealloc_count 0 mem_erealloc_amount 0 mem_efree_count 0 mem_efree_amount 0 mem_malloc_count 0 mem_malloc_amount 0 mem_calloc_count 0 mem_calloc_amount 0 mem_realloc_count 0 mem_realloc_amount 0 mem_free_count 0 mem_free_amount 0 mem_estrndup_count 0 mem_strndup_count 0 mem_estndup_count 0 mem_strdup_count 0 proto_text_fetched_null 0 proto_text_fetched_bit 0 proto_text_fetched_tinyint 0 proto_text_fetched_short 0 proto_text_fetched_int24 0 proto_text_fetched_int 0 proto_text_fetched_bigint 0 proto_text_fetched_decimal 0 proto_text_fetched_float 0 proto_text_fetched_double 0 proto_text_fetched_date 0 proto_text_fetched_year 0 proto_text_fetched_time 0 proto_text_fetched_datetime 0 proto_text_fetched_timestamp 0 proto_text_fetched_string 0 proto_text_fetched_blob 0 proto_text_fetched_enum 0 proto_text_fetched_set 0 proto_text_fetched_geometry 0 proto_text_fetched_other 0 proto_binary_fetched_null 0 proto_binary_fetched_bit 0 proto_binary_fetched_tinyint 0 proto_binary_fetched_short 0 proto_binary_fetched_int24 0 proto_binary_fetched_int 0 proto_binary_fetched_bigint 0 proto_binary_fetched_decimal 0 proto_binary_fetched_float 0 proto_binary_fetched_double 0 proto_binary_fetched_date 0 proto_binary_fetched_year 0 proto_binary_fetched_time 0 proto_binary_fetched_datetime 0 proto_binary_fetched_timestamp 0 proto_binary_fetched_string 0 proto_binary_fetched_blob 0 proto_binary_fetched_enum 0 proto_binary_fetched_set 0 proto_binary_fetched_geometry 0 proto_binary_fetched_other 0 init_command_executed_count 0 init_command_failed_count 0 com_quit 0 com_init_db 0 com_query 0 com_field_list 0 com_create_db 0 com_drop_db 0 com_refresh 0 com_shutdown 0 com_statistics 0 com_process_info 0 com_connect 0 com_process_kill 0 com_debug 0 com_ping 0 com_time 0 com_delayed_insert 0 com_change_user 0 com_binlog_dump 0 com_table_dump 0 com_connect_out 0 com_register_slave 0 com_stmt_prepare 0 com_stmt_execute 0 com_stmt_send_long_data 0 com_stmt_close 0 com_stmt_reset 0 com_stmt_set_option 0 com_stmt_fetch 0 com_deamon 0 bytes_received_real_data_normal 0 bytes_received_real_data_ps 0 odbc ODBC Support enabled Active Persistent Links 0 Active Links 0 ODBC library Win32 Directive Local Value Master Value odbc.allow_persistent On On odbc.check_persistent On On odbc.default_cursortype Static cursor Static cursor odbc.default_db no value no value odbc.default_pw no value no value odbc.default_user no value no value odbc.defaultbinmode return as is return as is odbc.defaultlrl return up to 4096 bytes return up to 4096 bytes odbc.max_links Unlimited Unlimited odbc.max_persistent Unlimited Unlimited openssl OpenSSL support enabled OpenSSL Library Version OpenSSL 0.9.8r 8 Feb 2011 OpenSSL Header Version OpenSSL 0.9.8r 8 Feb 2011 pcre PCRE (Perl Compatible Regular Expressions) Support enabled PCRE Library Version 8.11 2010-12-10 Directive Local Value Master Value pcre.backtrack_limit 100000 100000 pcre.recursion_limit 100000 100000 PDO PDO support enabled PDO drivers mysql, sqlite pdo_mysql PDO Driver for MySQL enabled Client API version mysqlnd 5.0.8-dev - 20102224 - $Revision: 308673 $ pdo_sqlite PDO Driver for SQLite 3.x enabled SQLite Library 3.7.4 Phar Phar: PHP Archive support enabled Phar EXT version 2.0.1 Phar API version 1.1.1 SVN revision $Revision: 307915 $ Phar-based phar archives enabled Tar-based phar archives enabled ZIP-based phar archives enabled gzip compression enabled bzip2 compression disabled (install pecl/bz2) OpenSSL support enabled Phar based on pear/PHP_Archive, original concept by Davey Shafik. Phar fully realized by Gregory Beaver and Marcus Boerger. Portions of tar implementation Copyright (c) 2003-2009 Tim Kientzle. Directive Local Value Master Value phar.cache_list no value no value phar.readonly On On phar.require_hash On On Reflection Reflection enabled Version $Revision: 307971 $ session Session Support enabled Registered save handlers files user Registered serializer handlers php php_binary wddx Directive Local Value Master Value session.auto_start Off Off session.bug_compat_42 Off Off session.bug_compat_warn Off Off session.cache_expire 180 180 session.cache_limiter nocache nocache session.cookie_domain no value no value session.cookie_httponly Off Off session.cookie_lifetime 0 0 session.cookie_path / / session.cookie_secure Off Off session.entropy_file no value no value session.entropy_length 0 0 session.gc_divisor 1000 1000 session.gc_maxlifetime 1440 1440 session.gc_probability 1 1 session.hash_bits_per_character 5 5 session.hash_function 0 0 session.name PHPSESSID PHPSESSID session.referer_check no value no value session.save_handler files files session.save_path C:\Windows\temp C:\Windows\temp session.serialize_handler php php session.use_cookies On On session.use_only_cookies On On session.use_trans_sid 0 0 SimpleXML Simplexml support enabled Revision $Revision: 308262 $ Schema support enabled soap Soap Client enabled Soap Server enabled Directive Local Value Master Value soap.wsdl_cache 1 1 soap.wsdl_cache_dir /tmp /tmp soap.wsdl_cache_enabled 1 1 soap.wsdl_cache_limit 5 5 soap.wsdl_cache_ttl 86400 86400 SPL SPL support enabled Interfaces Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject Classes AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException standard Dynamic Library Support enabled Internal Sendmail Support for Windows enabled Directive Local Value Master Value assert.active 1 1 assert.bail 0 0 assert.callback no value no value assert.quiet_eval 0 0 assert.warning 1 1 auto_detect_line_endings 0 0 default_socket_timeout 60 60 from no value no value safe_mode_allowed_env_vars PHP_ PHP_ safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH url_rewriter.tags a=href,area=href,frame=src,input=src,form=fakeentry a=href,area=href,frame=src,input=src,form=fakeentry user_agent no value no value tidy Tidy support enabled libTidy Release 25 March 2009 Extension Version 2.0 ($Id: tidy.c 306939 2011-01-01 02:19:59Z felipe $) Directive Local Value Master Value tidy.clean_output no value no value tidy.default_config no value no value tokenizer Tokenizer Support enabled wddx WDDX Support enabled WDDX Session Serializer enabled xml XML Support active XML Namespace Support active libxml2 Version 2.7.7 xmlreader XMLReader enabled xmlrpc core library version xmlrpc-epi v. 0.51 php extension version 0.51 author Dan Libby homepage http://xmlrpc-epi.sourceforge.net open sourced by Epinions.com xmlwriter XMLWriter enabled zip Zip enabled Extension Version $Id: php_zip.c 308107 2011-02-07 16:20:16Z pajoye $ Zip version 1.9.1 Libzip version 0.9.0 zlib ZLib Support enabled Stream Wrapper support compress.zlib:// Stream Filter support zlib.inflate, zlib.deflate Compiled Version 1.2.5 Linked Version 1.2.5 Directive Local Value Master Value zlib.output_compression Off Off zlib.output_compression_level -1 -1 zlib.output_handler no value no value Additional Modules Module Name 1 </code></pre> </div>

安装freetype时,./config 这个命令无效是什么原因?

1. C:\jvm\freetype-2.5.2>make -v GNU Make 4.0 Built for i686-pc-cygwin Copyright (C) 1988-2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. C:\jvm\freetype-2.5.2>[color=red]./configure[/color] '.' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 -------- 【问题】 看的《深入理解jvm》第一章,说要安装freetype来着,书上也没说怎么安装,然后看到自带的install.unit文件,跟着它做就出现了上面的问题,请问该如何解决?谢谢~

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

再不跳槽,应届毕业生拿的都比我多了!

跳槽几乎是每个人职业生涯的一部分,很多HR说“三年两跳”已经是一个跳槽频繁与否的阈值了,可为什么市面上有很多程序员不到一年就跳槽呢?他们不担心影响履历吗? PayScale之前发布的**《员工最短任期公司排行榜》中,两家码农大厂Amazon和Google**,以1年和1.1年的员工任期中位数分列第二、第四名。 PayScale:员工最短任期公司排行榜 意外的是,任期中位数极小的这两家公司,薪资...

我以为我学懂了数据结构,直到看了这个导图才发现,我错了

数据结构与算法思维导图

数据库——玩转SQL语句(以MySQL为例)

一、前言 照着大学的SQL server来学

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

华为初面+综合面试(Java技术面)附上面试题

华为面试整体流程大致分为笔试,性格测试,面试,综合面试,回学校等结果。笔试来说,华为的难度较中等,选择题难度和网易腾讯差不多。最后的代码题,相比下来就简单很多,一共3道题目,前2题很容易就AC,题目已经记不太清楚,不过难度确实不大。最后一题最后提交的代码过了75%的样例,一直没有发现剩下的25%可能存在什么坑。 笔试部分太久远,我就不怎么回忆了。直接将面试。 面试 如果说腾讯的面试是挥金如土...

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

讲一个程序员如何副业月赚三万的真实故事

loonggg读完需要3分钟速读仅需 1 分钟大家好,我是你们的校长。我之前讲过,这年头,只要肯动脑,肯行动,程序员凭借自己的技术,赚钱的方式还是有很多种的。仅仅靠在公司出卖自己的劳动时...

上班一个月,后悔当初着急入职的选择了

最近有个老铁,告诉我说,上班一个月,后悔当初着急入职现在公司了。他之前在美图做手机研发,今年美图那边今年也有一波组织优化调整,他是其中一个,在协商离职后,当时捉急找工作上班,因为有房贷供着,不能没有收入来源。所以匆忙选了一家公司,实际上是一个大型外包公司,主要派遣给其他手机厂商做外包项目。**当时承诺待遇还不错,所以就立马入职去上班了。但是后面入职后,发现薪酬待遇这块并不是HR所说那样,那个HR自...

总结了 150 余个神奇网站,你不来瞅瞅吗?

原博客再更新,可能就没了,之后将持续更新本篇博客。

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

程序员写出这样的代码,能不挨骂吗?

当你换槽填坑时,面对一个新的环境。能够快速熟练,上手实现业务需求是关键。但是,哪些因素会影响你快速上手呢?是原有代码写的不够好?还是注释写的不够好?昨夜...

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

HTTP与HTTPS的区别

面试官问HTTP与HTTPS的区别,我这样回答让他竖起大拇指!

程序员毕业去大公司好还是小公司好?

虽然大公司并不是人人都能进,但我仍建议还未毕业的同学,尽力地通过校招向大公司挤,但凡挤进去,你这一生会容易很多。 大公司哪里好?没能进大公司怎么办?答案都在这里了,记得帮我点赞哦。 目录: 技术氛围 内部晋升与跳槽 啥也没学会,公司倒闭了? 不同的人脉圈,注定会有不同的结果 没能去大厂怎么办? 一、技术氛围 纵观整个程序员技术领域,哪个在行业有所名气的大牛,不是在大厂? 而且众所...

程序员为什么千万不要瞎努力?

本文作者用对比非常鲜明的两个开发团队的故事,讲解了敏捷开发之道 —— 如果你的团队缺乏统一标准的环境,那么即使勤劳努力,不仅会极其耗时而且成果甚微,使用...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

终于懂了TCP和UDP协议区别

终于懂了TCP和UDP协议区别

无代码时代来临,程序员如何保住饭碗?

编程语言层出不穷,从最初的机器语言到如今2500种以上的高级语言,程序员们大呼“学到头秃”。程序员一边面临编程语言不断推陈出新,一边面临由于许多代码已存在,程序员编写新应用程序时存在重复“搬砖”的现象。 无代码/低代码编程应运而生。无代码/低代码是一种创建应用的方法,它可以让开发者使用最少的编码知识来快速开发应用程序。开发者通过图形界面中,可视化建模来组装和配置应用程序。这样一来,开发者直...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

《Oracle Java SE编程自学与面试指南》最佳学习路线图(2020最新版)

01、Java入门(Getting Started);02、集成开发环境(IDE);03、项目结构(Eclipse JavaProject);04、类和对象(Classes and Objects);05:词法结构(Lexical Structure);06:数据类型和变量(Data Type and Variables);07:运算符(Operators);08:控制流程语句(Control Flow Statements);

Java岗开发3年,公司临时抽查算法,离职后这几题我记一辈子

前几天我们公司做了一件蠢事,非常非常愚蠢的事情。我原以为从学校出来之后,除了找工作有测试外,不会有任何与考试有关的事儿。 但是,天有不测风云,公司技术总监、人事总监两位大佬突然降临到我们事业线,叫上我老大,给我们组织了一场别开生面的“考试”。 那是一个风和日丽的下午,我翘着二郎腿,左手端着一杯卡布奇诺,右手抓着我的罗技鼠标,滚动着轮轴,穿梭在头条热点之间。 “淡黄的长裙~蓬松的头发...

大牛都会用的IDEA调试技巧!!!

导读 前天面试了一个985高校的实习生,问了他平时用什么开发工具,他想也没想的说IDEA,于是我抛砖引玉的问了一下IDEA的调试用过吧,你说说怎么设置断点...

立即提问
相关内容推荐