我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

只访问服务器访问cron job php文件

I have wrote a php file for having cronjob in my server, but the problem is that every one can access to that.

I just want to give access to cronjob file , Just to server and nothing more.

How can i do this ?

Can we do it by getting user ip and server ip and if it was not server ip file gets die?

Is it good way?

Any better way?

put this file in root home folder or every place that root has permission to access that

近期文章

  • 通过php将帖子写入postgres,托管在heroku上
  • 在PHP中使用正则表达式删除特殊字符
  • 将xml数据导入mysql数据库
  • 使用前端搜索条件查询数据库
  • 从数据库填写表单然后用更多信息更新数据库
  • 不使用查询字符串将日期从JavaScript发送到PHP
  • datepicker不在wordpress中工作
  • Zend框架1.6使用Zend Filter Input验证POST请求
  • 我如何使用下载的magento模块
  • 要使用哪种Google Drive PHP API版本?
  • 与PhpStorm自动FTP同步
  • php搜索引擎关键字不起作用
  • 根据数据库值勾选复选框
  • 将List组件转换为list
  • 简单的wordpress查询类别
  • 在php中捕获js var
  • 在同一个表中显示两个数组
  • 在PHP上将Canvas另存为图像时出现500内部服务器错误
  • 检查是否在codeigniter中选择了文件上传
  • 具有许多子数组的多维数组? 如何在值[B]中使用foreach来打印前端的值

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华