简体   繁体   English

是否可以在Google App Engine PHP上运行整洁

[英]Is it possible to run tidy at google app engine PHP

It seems like google app engine php doesn't have tidy extension, my question is , is there any way to use tidy on google app engine php? 看来Google App Engine php没有整洁的扩展名,我的问题是,有什么方法可以在Google App Engine php上使用整洁吗?

Thanks, 谢谢,

The tidy extension is bundled with PHP 5 and greater, and is installed using the --with-tidy configure option. tidy扩展与PHP 5和更高版本捆绑在一起,并使用--with-tidy configure选项安装。 So if phpinfo() does not mention tidy I guess there's no (easy) way to be able to use it. 因此,如果phpinfo()没有提及整洁,我想那是没有(简单)的使用方法。

App Engine includes the PHP 5.4 standard library. App Engine包括PHP 5.4标准库。 You can include other pure PHP libraries with your application by putting the code in your application directory. 通过将代码放在应用程序目录中,可以在应用程序中包括其他纯PHP库。 If you make a symbolic link to a module's directory in your application directory, appcfg.py will follow the link and include the module in your app. 如果您在应用程序目录中建立了指向模块目录的符号链接,则appcfg.py将跟随该链接并将模块包含在您的应用程序中。 Maybe this approach would work with the (old) PECL tidy package , although I'm not really sure about that. 也许这种方法适用于(旧的) PECL整齐的软件包 ,尽管我不确定。

Unfortunately you can't use tidy package at all in Google App Engine. 不幸的是,您根本无法在Google App Engine中使用tidy软件包。 You can see all enabled extensions from https://cloud.google.com/appengine/docs/standard/php/runtime#enabled_extensions 您可以从https://cloud.google.com/appengine/docs/standard/php/runtime#enabled_extensions查看所有已启用的扩展

Few extensions you can enable though but tidy is not one of them. 尽管可以启用的扩展很少,但tidy扩展不是其中之一。 I would recommend to find some alternatives of tidy. 我建议找到一些整洁的替代方法。 You can also take a look at An alternative to php tidy? 您还可以看看php tidy的替代方法?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM