How-toAre you a beginner? Let's start learning!
Search
Guestbook
AdvertisingYou have to be registered to post messages
This topic's problem has been solved
| Page 1 | |||||||
| Author | Message | ||||||
|---|---|---|---|---|---|---|---|
| 1 visitor on this topic (1 anonymous user) | |||||||
| Page 1 | |||||||
yabberyabber
|
# Posted on 02/03/2008 11:26:51 PM | ||||||
i found pink mold in my trash![]() Group : Members |
i was doing a test to see if i could do some sort of login thing on my website, i cant get it to display my name variable...
here are my troubled scripts with url of moopher.php?name=yabberyabber Code: PHP - Show / hide line numbering
my problem is that when i ttest it out (logging in from a separate page using PHP of course) instead if displaying yabberyabber, it displays account... and the link doesn't change to logout...
Edited
on 02/04/2008 06:15:51 AM
by yabberyabber
i need a french pen pal to show my fiend I'm cool ![]() |
||||||
Lil'Gaß
|
# Posted on 02/04/2008 05:27:28 AM | ||||||
![]() Group : Read only |
Hello, first in the page where you will get the veriables, use a ting like that for the links :
Code: PHP - Show / hide line numbering
And for the page will receive te veriable, use a ting like that : Code: PHP - Show / hide line numbering Edit : I think you have miss to put the signe ; after your $_Get. Try this : Code: PHP - Show / hide line numbering
I'm not sure about the last ting. See you next time.
Edited
on 02/04/2008 05:31:18 AM
by Lil'Gaß
Act naturally - The Beatles They're gonna put me in the movies They're gonna make a big star out of me We'll make a film about a man that's sad and lonely And all I gotta do is act naturally |
||||||
yabberyabber
|
# Posted on 02/04/2008 06:08:12 AM | ||||||
i found pink mold in my trash![]() Group : Members |
no, it doesn't like that...
i need a french pen pal to show my fiend I'm cool ![]() |
||||||
speedking
|
# Posted on 02/05/2008 01:21:32 AM | ||||||
I saw an Angel ...![]() ![]() |
$_GET must always be in upper case
![]() |
||||||
yabberyabber
|
# Posted on 02/05/2008 02:06:55 AM | ||||||
i found pink mold in my trash![]() Group : Members |
thanks speedking, but i have a new problem now. i decided to use cookies (with the tizag tutoreal...) but the tutoreal didn't explain very well... and i cant get my script to pick up the cookie (web developer tool bar doesn't say it was even made...) so here is my new troubled code:(using the basic code from the protecting website from intruders tutoreal...)
Code: PHP - Show / hide line numbering
Code: PHP - Show / hide line numbering
srry if i missed something redundant and/or obvious... ohh yea, and the example on Tizag doesn't work... thanks in advance ![]() ok so i just figured out that it is creating cookies, but they are only working for the file that created it... and the cookie wont stay for my 'home page'fixed it! i just had to have them in the same folder... (i wish Tizag would have told me that in their tutoreal...)
Edited
on 02/16/2008 08:31:57 PM
by yabberyabber
|
||||||
yabberyabber
|
# Posted on 03/13/2008 04:39:29 AM | ||||||
i found pink mold in my trash![]() Group : Members |
sorry for unearthing and adding yet another question to this topic but...
is there a way to made cookies last forever? i finally got the hang of them and i was trying to make the member zone (from the php tutoreal example) so that it would automatically log in when i went there (and no its still on my hard drive...) i need a french pen pal to show my fiend I'm cool ![]() |
||||||
mwsaz
|
# Posted on 03/13/2008 07:10:27 AM | ||||||
Tremulous : open source FPS![]() ![]() |
You cannot set a cookie forever, but you can make it last, hum, let's say 50 years
![]() Code: PHP - Show / hide line numbering Or 10 years Code: PHP - Show / hide line numbering or 100 Code: PHP - Show / hide line numbering etc... Computers are like air conditioned : they stop working when you open windows. About tutorial validation: I deal with newly submitted tutos every Monday, Wednesday and Thursday. |
||||||
speedking
|
# Posted on 03/15/2008 12:22:51 AM | ||||||
I saw an Angel ...![]() ![]() |
Won't go further than 2036 though (that's the maximum the 32-bits unix counter can handle).
![]() |
||||||
mwsaz
|
# Posted on 03/15/2008 08:38:46 AM | ||||||
Tremulous : open source FPS![]() ![]() |
...unless your server has a 64x processor and that your version of php handles it (php6?)
Edited
on 03/15/2008 08:39:47 AM
by mwsaz
Computers are like air conditioned : they stop working when you open windows. About tutorial validation: I deal with newly submitted tutos every Monday, Wednesday and Thursday. |
||||||
yabberyabber
|
# Posted on 05/07/2008 07:29:03 AM | ||||||
i found pink mold in my trash![]() Group : Members |
sorry for again unearthing and adding yet another question to this topic but...
does NP use sessions or cookies for account login stuff? i have a good source and understand both of them, but which one is most standard (i hate being off standard). and how does NP keep account info secure so you cannot hack into others accounts? is it simply hashing (md5();) user name and password then checking with the database on each page load? or is it something more. is that kind of info even safe to share with people (is security of accounts that important if its not really anything dealing with money?). next time i have a question on php should i start a new topic or just keep adding on this for a while?
Edited
on 05/07/2008 07:31:38 AM
by yabberyabber
i need a french pen pal to show my fiend I'm cool ![]() |
||||||
Delroth
|
# Posted on 05/07/2008 11:12:15 PM | ||||||
|
Group : Members |
yabberyabber: when you log in on NP, it compares your password's sha1 hash with the one stocked in the database. If you can log in, it will place a variable in the session data (like for example $_SESSION['logged_in']), which will be used to make the website remember you are logged in.
|
||||||
yabberyabber
|
# Posted on 05/09/2008 01:36:23 AM | ||||||
i found pink mold in my trash![]() Group : Members |
so $_SESSION['logged_in'] is just a bool value? and then when they leave it just says "session destroy"
i need a french pen pal to show my fiend I'm cool ![]() |
||||||
alex.css
|
# Posted on 05/16/2008 09:22:52 PM | ||||||
Trust nobody, do it yourself !![]() Group : Members |
$_SESSION may contain chars like : "A b c d, 0 1 2 3 4 ... , TRUE / FALSE". (If not, It works for me xD)
I don't know if it's solved but $_SESSION is a way easier than $_COOKIE (for me) . Code: PHP
Create a form which will create a member access (just a simple): Code: PHP
After, go to the page where the first code was placed. If the sessions work correctly, you should see : You are logged. However, if the session doesn't work, it should return you : You are not logged After, you can create a page which will destroy all session vars : Code: PHP
If you still get the "You are logged" message, it means that the session_destroy() doesn't work (for any reason). Alex.css
Edited
on 05/16/2008 09:24:45 PM
by alex.css
|
||||||
Back to "PHP" or to the boards list
You have to be registered to post messages
Change your template |
Learn more about NP |
Site map |
Terms of use |
Rules |
RSS feed |
XHTML 1.0 |
CSS 2.0
Powered by Simple IT SARL:
Contact us
There is nothing else to read, you have to go up now !
Do you want to be published here? Contact us.
3 Newbies Connected |
8 Requests |
0.0605s (0.0503s)
