Making User Login System Secure with $

I am hoping that someone can help me out here, I am creating a PHP web app that requires a user to login to view there data in the mysql database. I just want to know if this is a good approach and is it secure enough? I know that nothing is secure in PHP scripting but I need this fairly secure. So here is what I am doing step by step, if you could point me in the right direction and tell me

用$确保用户登录系统的安全

我希望有人能帮助我,我正在创建一个PHP Web应用程序,它需要用户登录才能查看mysql数据库中的数据。 我只想知道这是否是一种好方法,足够安全吗? 我知道PHP脚本中没有什么是安全的,但我需要这个相当安全的。 所以这就是我正在一步一步做的事情,如果你能指出我正确的方向,并告诉我什么是错的,那将是伟大的! 用户使用用户和密码登录。 PHP根据数据库检查用户和密码。 如果确定,我存储$ SESSION [“username”];

SESSION) Not Working on Remote Server

I have a login page where user enters his username ans password. If successful I redirect him to index.php where I start a session: session_start(); from index.php he can navigate to a different page ("p1.php") and on top of "p1.php" I have this check: <?php if(!isset($_SESSION)) { exit; } ?> This works on my local server, but when I deploy this on remote ser

SESSION)无法在远程服务器上工作

我有一个登录页面,用户输入他的用户名和密码。 如果成功,我将他重定向到我开始会话的index.php: session_start(); 从index.php他可以导航到一个不同的页面(“p1.php”)和“p1.php”之上我有这个检查: <?php if(!isset($_SESSION)) { exit; } ?> 这适用于我的本地服务器,但是当我在远程服务器上部署时, !isset($_SESSION)总是返回true。 这里会发生什么? 编辑:我在我的托管服务提供商方找到了一个请

Session not restored

I have the following scenario File1.php starts the session and sets $_SESSION['foo'] = 'Hello'; File2.php starts the session and uses $_SESSION['foo'] without problems File3.php starts the session and uses $_SESSION['foo'] without problems Within the output produced by File3 is the following: <img id="graph" src="Graph.php" alt="Graph" /> Now when the

会话未恢复

我有以下情况 File1.php启动会话并设置$ _SESSION ['foo'] ='Hello'; File2.php启动会话并使用$ _SESSION ['foo']没有问题 File3.php启动会话并使用$ _SESSION ['foo']而没有问题在File3产生的输出内容如下: <img id="graph" src="Graph.php" alt="Graph" /> 现在,当Graph.php文件运行时,它会启动会话,但$ _SESSION ['foo']不存在。 之后,如果我刷新File3,$ _SES

SESSION being destroyed by json

I'm using sessions in php to store cart data for a website I'm building. All the data is stored as json string and is encoded/decoded using json_encode/json_decode on either end. It appears that on one page, json_decode is erasing my session data which seems really odd. Here's the relevant bit of code which I've narrowed it down to: $cart_data = $_SESSION['cart']; $cart = jso

SESSION被json销毁

我在php中使用会话来存储我正在构建的网站的购物车数据。 所有数据都以json字符串形式存储,并在两端使用json_encode / json_decode进行编码/解码。 看起来,在一个页面上,json_decode正在删除我的会话数据,这看起来很奇怪。 以下是我将代码范围缩小到的相关代码: $cart_data = $_SESSION['cart']; $cart = json_decode($cart_data, 1); 我在测试时一直在var _dumping $ _SESSION ['cart'],它看起来像json_dec

How can I tell if moodle cron is working?

I've just sended a messege to the server admin asking if he can set the cronjobs on the server and he asked me to tell him if everything is working right. How can I test whether the cronjobs are working or not? You need to output Moodle cron run to the logfile, eg your cron.d record may look like: * * * * * www-data /usr/bin/php /var/www/moodle/admin/cli/cron.php >> /var/log/vle/moo

我如何判断moodle cron是否正在运行?

我刚刚向服务器管理员发送了一封信息,询问他是否可以在服务器上设置cronjob,并要求我告诉他是否一切正常。 我如何测试cronjobs是否工作? 您需要将Moodle cron run输出到日志文件中,例如您的cron.d记录可能如下所示: * * * * * www-data /usr/bin/php /var/www/moodle/admin/cli/cron.php >> /var/log/vle/moodle-cron.log 2>&1 然后,/ /var/log/vle/moodle-cron.log的内容会立即告诉你cron是否正常运行

Find most favored area on an image

What mean-stat-equation should I use when I have an image with N-number sample-size of selections? I have a unique problem for which i was hoping to get some advice, so that i don't miss out on anything. The Problem: To find the most favored/liked/important area on an image based on user selection of areas in different selection ratios. Scenario: Consider an Image of a dog, and hundreds

找到图像上最受欢迎的区域

当我有一个具有N个样本大小选区的图像时,应该使用什么平均值统计方程? 我有一个独特的问题,我希望得到一些建议,以便我不会错过任何事情。 问题:根据用户选择不同选择比例的区域,找到图像上最受欢迎/喜欢/重要的区域。 场景:考虑一只狗的图像,并且数百名用户以各种分辨率选择该图像上的区域,大多数选择中明显关注的区域将是包含狗的区域。 我可以记录x1,x2,y1,y2坐标,并将它们放入一个分贝,现在如果我想在一

Actions not appearing on timeline

I have seen similar questions here, but none of the answers seem to work in my case. The case is REALLY simple. I "publish" an "article" - this action is sent to fb (using PHP) (using publish_actions scope). All the calls seem fine. All set-up on FB seems ok - the objects and actions are standard. I am the admin etc. On Facebook - I can see the action in the activity l

行动没有出现在时间表上

我在这里看到了类似的问题,但没有一个答案似乎适用于我的案例。 这个案例非常简单。 我“发布”一篇文章 - 这个动作被发送到fb(使用PHP)(使用publish_actions作用域)。 所有的通话似乎都很好。 FB上的所有设置似乎都没问题 - 对象和操作都是标准的。 我是管理员等 在Facebook上 - 我可以在活动日志中看到该操作。 如果我点击活动日志中的时间戳,我可以看到整个帖子,包括og:description等。AFAICT这也是时间轴上应

Download a file in amazon s3 account to another s3 account using cakephp

I have hosted my website on amazon. I want my clients to allow following functionality. User inputs valid credentials and file path of their s3 account to my website. My website download that file in user's amazon s3 account location to my amazon s3 account. I need to do this using cake php 1.2 and these file can be over 10GB most of the time. Is their any recommended way of doing this?

使用cakephp将amazon s3帐户中的文件下载到另一个s3帐户

我已经在亚马逊上托管了我的网站。 我希望我的客户允许以下功能。 用户输入s3帐户的有效凭证和文件路径到我的网站。 我的网站将用户的亚马逊S3帐户位置中的该文件下载到我的亚马逊S3帐户。 我需要使用Cake 1.2来做到这一点,并且这些文件大部分时间都可以超过10GB。 他们推荐的方式是否是这样做的? 我谷歌这并没有找到好的解决方案呢。 我会看看AWS PHP SDK。 您可以将cakekp作为vendor lib包含在sdk中。 http://aw

source equivalent of mailing list managers such as MailChimp or ConstantContact, etc..?

MailChimp is a very nicely done service, where they tell you things like %clicked, and Google Analytics of recent email campaigns. They are similar to other sites like ConstantContact and CampaignMonitor, and many many others. Is there anything similar to MailChimp which is open-source or free? Or is there anything that could be easily modified to resemble mailchimp for use in-house? It is

相当于MailChimp或ConstantContact等邮件列表管理器的源代码。?

MailChimp是一个非常完美的服务,他们告诉你像%点击的事情,Google Analytics最近的电子邮件活动。 它们与其他网站类似,如ConstantContact和CampaignMonitor等许多其他网站。 有没有类似于开源或免费的MailChimp? 还是有什么可以很容易地修改,以类似于内部使用mailchimp? 一旦你有几千个电子邮件地址,它实在太贵了。 任何想法都会有所帮助。 我更喜欢任何语言,但最好是HTML / PHP / MySQL ... phpList * double

foreach loop not returning values from $

I have set a $_SESSION variable and cannot see why my foreach loop is not working. All I get if I echo the var $v is a white screen. If I echo my session var then I can see the data that is being passed is in the format wd10,wd11,wd12. I would be grateful if someone could check my loop and point out my mistake. Thanks I have session_start() at the top of the page and all sessions and mysql

foreach循环不会从$返回值

我已经设置了一个$ _SESSION变量,并且看不出为什么我的foreach循环不起作用。 如果我回显var $ v,我会得到的只是一个白色屏幕。 如果我回显我的会话var,那么我可以看到正在传递的数据格式为wd10,wd11,wd12。 如果有人能检查我的循环并指出我的错误,我将不胜感激。 谢谢 我在页面顶部有session_start(),所有会话和mysql查询都正常工作。 <?php foreach ($_SESSION['boxdest2'] as $key=>$value)