localhost

mail function is not working in localhost server

。_饼干妹妹 提交于 2019-12-01 18:10:03
问题 I am on my localhost server. I am using this code below, but I never received the email. <?php $to = "someone@example.com"; $subject = "Test mail"; $message = "Hello! This is a simple email message."; $from = "someonelse@example.com"; $headers = "From:" . $from; mail($to,$subject,$message,$headers); echo "Mail Sent."; ?> 回答1: I know its kinda late... check if your localhost is configured to send email On ubuntu terminal try executing following command # apt-get install sendmail 回答2: Make sure

Google Chrome .dev not work over http [duplicate]

笑着哭i 提交于 2019-12-01 18:06:12
This question already has an answer here: How to stop Chrome from redirecting to HTTPS? 4 answers From last update of Google Chrome 63.0.3239.84 the .dev domain of my local development machine does not work anymore becouse the browser force URL over https and I do not have a sicure certificate on my local machine. Is there a way to make it work with .dev? I do not want to use other domains like .local or .test I tried to enable/disable this chrome://flags/#allow-insecure-localhost but nothing. You shouldn't change it. Since 1999 that the Network Working Group(NWG) wrote a memorandum listing

MySQL基础常见常用语句

大城市里の小女人 提交于 2019-12-01 17:55:27
数据库 # 查看所有的数据库 SHOW DATABASES ; # 创建一个数据库 CREATE DATABASE k; # 删除一个数据库 DROP DATABASE IF EXISTS k; # 使用这个数据库 USE k; 表 # 查看所有的表 SHOW TABLES ; # 创建一个表 CREATE TABLE n(id INT, name VARCHAR(10)); CREATE TABLE m(id INT, name VARCHAR(10), PRIMARY KEY (id), FOREIGN KEY (id) REFERENCES n(id), UNIQUE (name)); CREATE TABLE m(id INT, name VARCHAR(10)); # 直接将查询结果导入或复制到新创建的表 CREATE TABLE n SELECT * FROM m; # 新创建的表与一个存在的表的数据结构类似 CREATE TABLE m LIKE n; # 创建一个临时表 # 临时表将在你连接MySQL期间存在。当断开连接时,MySQL将自动删除表并释放所用的空间。也可手动删除。 CREATE TEMPORARY TABLE l(id INT, name VARCHAR(10)); # 直接将查询结果导入或复制到新创建的临时表 CREATE TEMPORARY

Google Chrome .dev not work over http [duplicate]

若如初见. 提交于 2019-12-01 17:43:18
问题 This question already has answers here : How to stop Chrome from redirecting to HTTPS? (5 answers) Closed last year . From last update of Google Chrome 63.0.3239.84 the .dev domain of my local development machine does not work anymore becouse the browser force URL over https and I do not have a sicure certificate on my local machine. Is there a way to make it work with .dev? I do not want to use other domains like .local or .test I tried to enable/disable this chrome://flags/#allow-insecure

File not updating on localhost

末鹿安然 提交于 2019-12-01 17:40:31
I am pulling my hair here. I think I am falling into som really basic stuff but here is my error. I have built a simple webpage with the following "tree-view". in my readjson.js I read from my json-file stored in json/label.json. However! Even if I have updated my json-file it reads the FIRST version of the json-file when I started. Using Google Chrome and have tried to refresh the browser, clean my build an so on. Still wont update the json-file on localhost. Have anyone else run into this and how do I solve it? Have you tried to bring up the developer console (ctr shift j) and right click on

PHPStorm 使用 Xdebug

≯℡__Kan透↙ 提交于 2019-12-01 17:35:41
一、下载xdebug   xdebug官网:https://xdebug.org/download.php   在选择下载哪个版本的xdebug的时候需要注意了,下面有两种方法,让你准确的下载自己环境对应的xdebug文件:   1>.打印出phpinfo()信息,如下:       然后还要注意一点就是看看自己php对应的版本和操作系统的位数,结合这四点去官网找到对应的xdebug文件(本人是php是7.0.1的版本,文件名:php_xdebug-2.6.0-7.0-vc14-x86_64.dll)   2>.使用xdebug官方提供的一个检测工具:https://xdebug.org/wizard.php          这里就把phpinfo()的信息使用输出出来(注意:使用输出函数,比如var_dump()),然后就会检测你的可以下载对应的版本,如下图:    二、安装并配置xdebug   1>.将下载好的.dll文件放入指定的位置(......\php\php7.0.10\ext\)   2>.配置php.ini配置文件(这里需要注意一点,找对了php.ini文件),在网页上打印出phpinfo()的信息,查看这一条信息:          可以看到是哪个php的配置文件,然后添加一下配置:     [xdebug] zend_extension ="G:

【linux学习笔记】awk用法总结

筅森魡賤 提交于 2019-12-01 17:35:38
AWK是一种优良的文本处理工具,Linux及Unix环境中现有的功能最强大的数据处理引擎之一. 这篇博客是 http://coolshell.cn/articles/9070.html 的读书笔记。 --- // //按列输出 // 首先,用 netstat > netstat.txt 命令把netstat的结果重定向到netstat.txt中 结果类似这样: Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 localhost:37745 localhost:4730 ESTABLISHED tcp 0 0 localhost:48344 localhost:4730 ESTABLISHED tcp 0 0 localhost:4730 localhost:48344 ESTABLISHED tcp 0 0 localhost:48342 localhost:4730 ESTABLISHED tcp 0 52 ip-10-156-238-114.a:ssh li476-220.members:49359 ESTABLISHED tcp 0 0 localhost:4730 localhost:37741 ESTABLISHED tcp 0 0 localhost:48340 localhost:4730

How Do You Solve the Invalid Pointer Issue in Visual Studio 2013

对着背影说爱祢 提交于 2019-12-01 17:27:02
Ok, on the edge of frustration here... and I am having the worst time of my life. For the life of me, I cannot solve this issue with my Visual Studio 2013 installation. No matter what I've tried, it continues to throw up "Invalid Pointer" every time I attempt to preview my solution in a browser. Before I had other issues, but I uninstalled and re-installed. Updated, rebuild solution/project, set the browser to bypass the proxy for localhost, loaded the latest version of IIS and Asp.Net... you name it. And it just continues to greet me with the following: It's not telling me anything else. I

File not updating on localhost

℡╲_俬逩灬. 提交于 2019-12-01 16:56:23
问题 I am pulling my hair here. I think I am falling into som really basic stuff but here is my error. I have built a simple webpage with the following "tree-view". in my readjson.js I read from my json-file stored in json/label.json. However! Even if I have updated my json-file it reads the FIRST version of the json-file when I started. Using Google Chrome and have tried to refresh the browser, clean my build an so on. Still wont update the json-file on localhost. Have anyone else run into this

Vue项目配置跨域访问和代理proxy设置

北城余情 提交于 2019-12-01 16:35:09
Vue项目配置跨域访问和代理设置 vue-cli代理 Nodejs做中间时行路由转发 后端跨域访问 在vue单页应用项目开发时,避免不了要请求后端,这时通常就会出现跨域问题。有2种常用的解决方案 后端设置允许跨域访问 前端通过代理进行访问后端 下面我们只说说如何配置vue-cli代理访问: vue-cli代理 最简单就是配置vue conifg进行实现 下面配置3个请求的后端,分别是: 请求 http://localhost:4201/adminapi/* 会代理请求 http://localhost:8180/* 请求 http://localhost:4201/portalapi/* 会代理请求 http://localhost:8185/* 请求 http://localhost:4201/securityapi/* 会代理请求 http://localhost:8089/* 由于vue-cli是基于webpack,因此webpack的 devServer 选项都是支持配置的 module . exports = { // ... devServer : { port : 4201 , proxy : { '/adminapi' : { target : 'http://localhost:8180' , ws : true , changeOrigin : true ,