首页 \ 问答 \ 在ubuntu上为php7.1安装imap(installing imap on ubuntu for php7.1)

在ubuntu上为php7.1安装imap(installing imap on ubuntu for php7.1)

如何在ubuntu for php7.1中安装imap for php,最好是在终端中。

在php.net手册上有一些关于此的信息,但它有点过时了。

它讨论了c-client库,然后重新启动了apache等

我还是linux的新手


How can one install imap for php in ubuntu for php7.1 preferably in the terminal.

There's some info on this on the php.net manual but it's a bit dated.

It talks about the c-client library and restarting apache afterwards etc

I'm still pretty new with linux


原文:https://stackoverflow.com/questions/45196524
更新时间:2022-06-08 07:06

最满意答案

Skype,Facebook和其他人正在使用开放式图形协议来获取这些。 您可以在线找到有关Open Graph Protocol的更多信息,以及实现它的小代码:

<meta property="og:image" content="/image.jpg"/>
<meta property="og:image:secure_url" content="https://mywebsite.com/image.jpg" />

这两个应该出现在<head />标记中。 还要确保将XML NameSpace添加到<html>标记:

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:og="http://ogp.me/ns#"
      xmlns:fb="https://www.facebook.com/2008/fbml">  

您还可以使用多个图像,只需按照希望它们出现的顺序添加多个图像元标记。然后,用户将在Facebook中显示图像选择器对话框。


Skype, Facebook, and others are using Open Graph Protocol to get those. You can find more information about Open Graph Protocol online and a small code to achieve it is:

<meta property="og:image" content="/image.jpg"/>
<meta property="og:image:secure_url" content="https://mywebsite.com/image.jpg" />

These two should be present in your <head /> tag. Also make sure you add the XML NameSpace to the <html> tag:

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:og="http://ogp.me/ns#"
      xmlns:fb="https://www.facebook.com/2008/fbml">  

You can also use multiple images, you just need to add multiple image meta tags in the order you want them to appear in. The user will then be presented with an image selector dialog in Facebook.

相关问答

更多
  • Skype平台不允许您执行始终由用户启动的操作(密码)的登录。 SkypeKit API(C#)允许您在用户授权后从正在运行的Skype应用程序中检索联系人列表。 您还可以使用此API发起呼叫。 SkypeKit API已被弃用,微软正在拔掉它。 我建议你考虑转移到一个保证API可用性的平台。 https://stackoverflow.com/questions/17708758/alternatives-for-deprecated-net-skypekit The Skype platform doe ...
  • Skype,Facebook和其他人正在使用开放式图形协议来获取这些。 您可以在线找到有关Open Graph Protocol的更多信息,以及实现它的小代码: 这两个应该出现在标记中。 还要确保将XML NameSpace添加到< ...
  • 首先,我试图让它与图像一起工作。 我是Unity的新手,不熟悉C#。 我能够将所有媒体文件源(图像)都放到一个数组中,但接下来我需要将它们转换为纹理并放在RawImage组件上。 我坚持这部分。 您正在寻找Texture2D.LoadImage函数。 它将图像字节转换为Texture2D,然后您可以将Texture2D分配给RawImage。 您必须询问有关如何使用视频执行此操作的新问题。 那要复杂得多。 public RawImage rawImage; Texture2D[] textures = nu ...
  • 我能够通过使用MimePartContentDescription(新的ContentType(“multipart / alternative”))来解决它。 我不能为了合理的原因粘贴工作代码 - 但是如果你寻找MimePartContentDescription(新的ContentType(“multipart / alternative”),你应该看到能够阅读使用的文档/例子。 我确实有限制显示基于大小的图像 - 任何小于40kb的作品。 它对我来说不是一个展示塞,因为在我的使用案例中图像实际上很小。 ...
  • 要解决此问题,您需要更改用于生成数字的模板,以便Skype不会将其解释为表情符号。 如果在类上添加此注释:[Template(TemplateUsage.EnumSelectOne,ChoiceFormat =“{0}。{1}”)]这将解决单个选择的问题。 或者,您可以在builder.Configuration.Templates中更改默认模板。 如果你想修复EnumSelectMany,你也可以添加它。 您运行的是哪个版本的SDK? 如果您正在运行最新版本,除非您已经调整了选择样式,否则默认情况下您应该 ...
  • 使用Xvfb很容易设置虚拟X11显示器('服务器'),如下所示: Xvfb :1 -screen 0 1280x1024x24 & sleep 3 skype -display :1 & 您甚至可以使用VNC查看虚拟缓冲区上发生了什么。 请注意,虚拟服务器非常简单,不支持硬件加速,因此某些程序可能会抱怨缺少扩展等。但大多数常规桌面应用程序应该没问题。 It is easy to set up a virtual X11 display ('server') with Xvfb, like so: Xvfb ...
  • 使用SendKeys.Send方法,您可以通过实际的Skype应用程序将剪贴板中的图片粘贴到消息中。 我是这样做的: My.Computer.Clipboard.SetImage(PicBox.Image) SkypeClient.Client.OpenMessageDialog("") SkypeClient.Client.Focus() SendKeys.Send("^(V){ENTER}") 将替换
  • 根据此评论 ,要获取附件,GET请求应包含bot的JwtToken作为授权标头: var attachment = activity.Attachments?.FirstOrDefault(); if (attachment?.ContentUrl != null) { using (var connectorClient = new ConnectorClient(new Uri(activity.ServiceUrl))) { var token = await (con ...
  • 看起来问题是关于文件格式,而不是直接我的代码应该工作。 这是我在skype论坛上得到的答案: http : //devforum.skype.com/t5/Developer-Corner/Skype4COM-and-C-Sending-audio-on-current-call-through-input/td- p / 8414?utm_source = Subsciption&utm_medium = Subsciption&utm_campaign = Subsciption 它工作,我建立了16位 ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)