We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
  • Pages:
  • 1
  • 2
  • 4
PHP Support Topic
Topic Started: Apr 5 2005, 05:42 PM (2,074 Views)
Das
Member Avatar
Smells of rich mahogany
[ *  *  *  *  *  *  * ]
So do you use HTML in PHP? Is MySlq a progam and if so is it free? are the on-line tutorials for MySlq any good? Are there any other things that are good to know for php? Do you know a free host the lets you use php(if you can't post the link can you pm it to me? I am a little fuzzy on if you can post links to help)
Offline Profile Quote Post Goto Top
 
Seth
Member Avatar
I has a pony
[ *  *  *  *  *  *  *  *  * ]
PHP only outputs HTML. It's MySQL, stop misspelling it :P http://mysql.com The manual is easy. Not really. No.
Offline Profile Quote Post Goto Top
 
Das
Member Avatar
Smells of rich mahogany
[ *  *  *  *  *  *  * ]
Sorry. I can pick up a book on either onn wedenesday, any suggestions?
Offline Profile Quote Post Goto Top
 
Seth
Member Avatar
I has a pony
[ *  *  *  *  *  *  *  *  * ]
PHP and MySQL Bible, the only one I recommend.
Offline Profile Quote Post Goto Top
 
dbzlotrfan
Member
[ *  *  *  *  *  *  * ]
is => 'smarty'? and if so what the heck is 'smarty'. if not then what is it.
Offline Profile Quote Post Goto Top
 
Seth
Member Avatar
I has a pony
[ *  *  *  *  *  *  *  *  * ]
Huh?

Smarty is a markup language.
Offline Profile Quote Post Goto Top
 
dbzlotrfan
Member
[ *  *  *  *  *  *  * ]
don't some of the IPB files have => in them like /soruce/topics.php or admin_pages.php ?. I was asking someone on AIM if they could make some mods for a forum and they asked if any of the files of the source has => in them. I said yes and this is what he said back:
[17:23]: Well, then I can't help you. See, that's a very advanced source, most likly using "Smarty" in the code, which is a template system. I don't know Smarty, and don't plan to learn it, and if you don't know Smarty, then it is very hard to... um... work around it.
Offline Profile Quote Post Goto Top
 
Das
Member Avatar
Smells of rich mahogany
[ *  *  *  *  *  *  * ]
Seth
April 12, 2005 02:44 PM
Smarty is a markup language.

Here is probably the biggest n00b question you will ever here, what is a markup language?
Offline Profile Quote Post Goto Top
 
Seth
Member Avatar
I has a pony
[ *  *  *  *  *  *  *  *  * ]
DLF: Oh. Well whoever told you that was really dumb :P

=> is an key-value link. In an array, you do something like $members = array( "DuffMan" => 1, "Seth" => 2);

Das Ein: a language that changes the look or presentation of the content it delivers.
Offline Profile Quote Post Goto Top
 
KodeCing
Member
[ * ]
I thought it was array( 1 => 'Bleh', 2 => 'Umm?' );
Bleh.
I'm losing it.
Offline Profile Quote Post Goto Top
 
Jeremy
Member Avatar
Member
[ *  *  *  *  *  * ]
Seth is talking about creating an associative array that has the key (username) point to a number (value).
Offline Profile Quote Post Goto Top
 
Seth
Member Avatar
I has a pony
[ *  *  *  *  *  *  *  *  * ]
Yep, they both are very valid (but different).
Offline Profile Quote Post Goto Top
 
kingy
1 in 10 people understands binary, the other 1 doesn't
[ *  *  *  *  *  * ]
i use 100 webspace for my site for the forum locator, has always been good for me

and now for my problems!!!

Login Sessions

I am making a login system for my site (a non IF one) that refers to an mysql database of members. I have the login.php page working, but i want it to set a cookie (session) to keep a user logged in while they browse. If somebody could write me one, or point me in the direction of a good one, i would appreciate it.

All it needs to do is keep somebody logged in!

Offline Profile Quote Post Goto Top
 
Jory
Member Avatar
Member
[ *  *  *  *  *  * ]
Code:
 
setcookie("something","else",time()+3600*3);

That would set a cookie that lasts 3 hours.
Not sure how the timething works exactly.
(Think you can just enter any number of seconds but I'm not sure about that)

*Qj is working on something like that.
(I want a multi topic guestbook alike thing where peolpe can join and have a edit function and stuff like that, and wanna make it myself)

Not working on the loggin part yet.
(But it can't be that hard :/ )
Offline Profile Quote Post Goto Top
 
Seth
Member Avatar
I has a pony
[ *  *  *  *  *  *  *  *  * ]
Don't use cookies, use sessions.

Look up startsession() and the $_SESSION superglobal.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Technology Chat · Next Topic »
Add Reply
  • Pages:
  • 1
  • 2
  • 4