How can I create a working PHP login on x10 hosting? For the server host do I use Chopin or a different one? Could anybody help me do this, with a tut or something? Thanks so much.
How can I create a working PHP login on x10 hosting? For the server host do I use Chopin or a different one? Could anybody help me do this, with a tut or something? Thanks so much.
Yes you can make login scripts. I would be glad to help you. For the server, I think you're talking about MySQL host? You would use "localhost"
If I have helped you, please add to my reputation () on the bottom left corner of this post.
jtwhite.me - Visit my site :D
To write a PHP login script, you first need to know what session are. Once that is covered, you can read tutorials on how to create a login system: http://www.phpeasystep.com/workshopview.php?id=6 http://www.weberdev.com/get_example-3927.html
█ Xavier L | Community Public Relations Manager (Free Hosting Support)
█ Yes, my position is too cool to even exist!
█ How am I helping? Rate this post by clicking theicon below! (this is even better than "liking" a post)
█ Terms of Service | Acceptable Use Policy | x10Hosting Wiki
ok so localhost. But when editing sql, How do I go about that? and the creation of databases. Does anybody have a code for a login and register with logout? I know it is a lot to ask, but I would love to know.
Before you dive right in, I suggest you read up on MySQL, PHP and server-sided scripting in general.
Login scripts can get a bit confusing if you type it up from the top of your head.
I suggest learning the basics from this site. And then maybe starting off with an open-forum? Also, check out the code behind some free blog/forum software like SMF etc. they help you gain a better understanding of how Login systems work.
Oh and check out the documentation for PHP and MySQL so you know what you have at hand.
I'm a newbie at MySQL and PHP, I've been reading most of the time. Just started actually coding... an open-forum a few days ago ;)
You can always expand it later to include a login system.
Note that many of the above tutorials use outdated or deprecated PHP features, such as session_register(), $HTTP_SESSION_VARS and the old MySQL driver. These days you mostly need session_start(), $_SESSION and unset() (and maybe session_destroy and setcookie) for persistent session data and PDO for database connections. I tried to find a decent authentication tutorial, but haven't found one yet.
Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.Misson, not Mission.
█ Xavier L | Community Public Relations Manager (Free Hosting Support)
█ Yes, my position is too cool to even exist!
█ How am I helping? Rate this post by clicking theicon below! (this is even better than "liking" a post)
█ Terms of Service | Acceptable Use Policy | x10Hosting Wiki
Thanks. My email is kevinwcaulfield@yahoo.com. If ya finish ur tutorial please send me the link. Thanks!
I came across this article yesterday, which I thought you might find interesting...
http://www.phpbuilder.com/columns/ma...009172009.php3
hope it helps.
--rw