Welcome to Geeklog, Anonymous Tuesday, April 22 2025 @ 11:12 pm EDT
Geeklog Forums
Newbie Help for PHP and GL programming
Anonymous
Anonymous
i'm new to the GL and PHP programming in general, can someone let me know how to get the logged in name and user id from a standalone script.
Also what is the best way to start learning geeklog programming?
2
7
Quote
Status: offline
Tony
Site Admin
Admin
Registered: 12/17/01
Posts: 405
Location:Urbandale, Iowa
<?php
require_once '/path/to/geeklog/public_html/lib-common.php';
echo $_USER['username']
?>
That's all.---The reason people blame things on previous generations is that there's only one other choice.
The reason people blame things on previous generations is that there's only one other choice.
The reason people blame things on previous generations is that there's only one other choice.
6
7
Quote
Status: offline
Tony
Site Admin
Admin
Registered: 12/17/01
Posts: 405
Location:Urbandale, Iowa
Oh, and this gets you the ID:
echo $_USER['uid'];
--Tony---The reason people blame things on previous generations is that there's only one other choice.
The reason people blame things on previous generations is that there's only one other choice.
The reason people blame things on previous generations is that there's only one other choice.
8
8
Quote
Anonymous
Anonymous
Thank You, Thank You, Thank You!!!!
6
7
Quote
All times are EDT. The time is now 11:12 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content