感谢读者 诡谲 的投稿! 本篇是News!Google App Engine For PHP 开放申请的后续,时隔四个月,终于收到Google发来的邮件,5月份申请加入PHP Runtime白名单的请求已经通过。 简单看了下邮件内容,使用上应该和python差不多,果不其然,换个SDK就好,操作上大
感谢读者 诡谲 的投稿!
本篇是News!Google App Engine For PHP 开放申请的后续,时隔四个月,终于收到Google发来的邮件,5月份申请加入PHP Runtime白名单的请求已经通过。
简单看了下邮件内容,使用上应该和python差不多,果不其然,换个SDK就好,操作上大致一样,安装SDK的教程在这里,PHP版和GO版的SDK差不多,会附带一个简单的本地服务供调试,调试完毕后再上传到GAE(Google?App Engine)上。
与PHP搭配的数据库常见的是MySQL,GAE也不例外对其做了支持,然而我在安装WordPress(官方教程)时,却遇到一个不解。首先看官方教程,简而言之,就是在本地先跑起来,然后上传PHP脚本,接着在Cloud SQL自行导入安装后的数据库。不解就在这里了,他这数据库必须使用自家的Cloud SQL,其他方式连接外部的数据库都不可以。GAE?For PHP支持的数据库类型又少得可怜,只能使用MySQL这一种数据库。
Cloud SQL是一个非常稳定高效的关系型数据库服务,在GAE平台上可搭配不同的应用使用,曾经一段时间免费,如今价格最低是每天$0.36,考虑到GAE免费配额只有1G的日流量且没什么数据量的前提,体验阶段开通了数据库,之后关闭了数据库。由于GAE免费配额比较少,在上面运行大型程序就变得不太现实(尽管它可以运行),所以还是跑一些小应用吧,除非你打算使用收费服务。最后来看一下函数支持情况看这里。
好吧,看到这里这篇也就差不多了,PaaS上跑的大多限制都很严格,例如许多函数(列表)被禁用之类的就很常见了,但作为云计算和行业的老大地位来说,还是要推出PHP平台产品来吸引眼球的。话说回来,还是那句话,对比见高低,OpenShift优势明显啊!GAE在PHP云平台服务上还要努把力啊~
Via iCodex's Blog
? musiXboy 发表于 谷奥——探寻谷歌的奥秘 ( http://www.guao.hk ), 2013. |
没有评论 |
永久链接 |
关于谷奥 |
投稿/爆料
Post tags: Cloud SQL, Google App Engine, Google App Engine For PHP, MySQL, PHP

MySQLviewshavelimitations:1)Theydon'tsupportallSQLoperations,restrictingdatamanipulationthroughviewswithjoinsorsubqueries.2)Theycanimpactperformance,especiallywithcomplexqueriesorlargedatasets.3)Viewsdon'tstoredata,potentiallyleadingtooutdatedinforma

ProperusermanagementinMySQLiscrucialforenhancingsecurityandensuringefficientdatabaseoperation.1)UseCREATEUSERtoaddusers,specifyingconnectionsourcewith@'localhost'or@'%'.2)GrantspecificprivilegeswithGRANT,usingleastprivilegeprincipletominimizerisks.3)

MySQLdoesn'timposeahardlimitontriggers,butpracticalfactorsdeterminetheireffectiveuse:1)Serverconfigurationimpactstriggermanagement;2)Complextriggersincreasesystemload;3)Largertablesslowtriggerperformance;4)Highconcurrencycancausetriggercontention;5)M

Yes,it'ssafetostoreBLOBdatainMySQL,butconsiderthesefactors:1)StorageSpace:BLOBscanconsumesignificantspace,potentiallyincreasingcostsandslowingperformance.2)Performance:LargerrowsizesduetoBLOBsmayslowdownqueries.3)BackupandRecovery:Theseprocessescanbe

Adding MySQL users through the PHP web interface can use MySQLi extensions. The steps are as follows: 1. Connect to the MySQL database and use the MySQLi extension. 2. Create a user, use the CREATEUSER statement, and use the PASSWORD() function to encrypt the password. 3. Prevent SQL injection and use the mysqli_real_escape_string() function to process user input. 4. Assign permissions to new users and use the GRANT statement.

MySQL'sBLOBissuitableforstoringbinarydatawithinarelationaldatabase,whileNoSQLoptionslikeMongoDB,Redis,andCassandraofferflexible,scalablesolutionsforunstructureddata.BLOBissimplerbutcanslowdownperformancewithlargedata;NoSQLprovidesbetterscalabilityand

ToaddauserinMySQL,use:CREATEUSER'username'@'host'IDENTIFIEDBY'password';Here'showtodoitsecurely:1)Choosethehostcarefullytocontrolaccess.2)SetresourcelimitswithoptionslikeMAX_QUERIES_PER_HOUR.3)Usestrong,uniquepasswords.4)EnforceSSL/TLSconnectionswith

ToavoidcommonmistakeswithstringdatatypesinMySQL,understandstringtypenuances,choosetherighttype,andmanageencodingandcollationsettingseffectively.1)UseCHARforfixed-lengthstrings,VARCHARforvariable-length,andTEXT/BLOBforlargerdata.2)Setcorrectcharacters


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

SublimeText3 Chinese version
Chinese version, very easy to use

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

Notepad++7.3.1
Easy-to-use and free code editor

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.
