由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
BuildingWeb版 - how to add polling in website?
相关主题
[转载] htpasswdUNIDATA怎么连接进asp.net c#? (转载)
post problem让人头疼的http 403 access forbidden
请教如何编写一个输入用户名和密码的网页How to generate pictures from random number?
请问Facebook是用Mysql and php做的吗? (转载)about project 1
urgent!accessing remote database in asp.net请教一个'Recordset.RecordCount'的问题。
how to set up a password protection for accessing a certain hyperlink using microsoft frontpage?java <-> cgi/perl 急问
flash网页高手求助有没有人想兴建bbs站的?
请教:如何上传ASP.NET 3.5 网站[转载] SSH与MySQL冲突?
相关话题的讨论汇总
话题: polling话题: add话题: database话题: file话题: website
进入BuildingWeb版参与讨论
1 (共1页)
c*******u
发帖数: 1269
1
I like to add a small polling application on my site, any easy way to implement
it? Below is my site, it is fair immature at this point, does not have any
dynamic generated content or fancy stuff. Also I like to learn how to
connect to a database in the backend to store polling result. Thanks.
http://www.communitynetworksolution.com/index.htm
c*******u
发帖数: 1269
2
Added one, has not linked to the database yet, in php file, I need to give
database user name and password? Is that safe? Sorry to ask such beginner
question.
t*******d
发帖数: 1530
3
no need username password. no one will bother to take the poll if they have
to
go thru registration hassle.
using IP address and cookie should be sufficient for ur purpose.

【在 c*******u 的大作中提到】
: Added one, has not linked to the database yet, in php file, I need to give
: database user name and password? Is that safe? Sorry to ask such beginner
: question.

c*******u
发帖数: 1269
4
no, i mean to save polling result to database, i need write database login
and password information in php file?
s*******h
发帖数: 2148
5
yes.
usually use a separate file.

【在 c*******u 的大作中提到】
: no, i mean to save polling result to database, i need write database login
: and password information in php file?

c*******u
发帖数: 1269
6
I get the polling function working, but I have not got my
answer yet, is that safe to write username and passord in php file?
o***s
发帖数: 31
7
Yes, as long as this php file can not be accessed directly via url. This
file should always be included by a master file, a better solution is to
have all url accessible files in "public" directory while putting all
includes in another folder, say "lib"(and lib is not subfolder of public),
for instance.
c*******u
发帖数: 1269
8
good advice, thanks.
1 (共1页)
进入BuildingWeb版参与讨论
相关主题
[转载] SSH与MySQL冲突?urgent!accessing remote database in asp.net
关于网站数据库的一个问题how to set up a password protection for accessing a certain hyperlink using microsoft frontpage?
Can activeperl handle cookie on win2000?flash网页高手求助
ASP古怪问题请教:如何上传ASP.NET 3.5 网站
[转载] htpasswdUNIDATA怎么连接进asp.net c#? (转载)
post problem让人头疼的http 403 access forbidden
请教如何编写一个输入用户名和密码的网页How to generate pictures from random number?
请问Facebook是用Mysql and php做的吗? (转载)about project 1
相关话题的讨论汇总
话题: polling话题: add话题: database话题: file话题: website