| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Eating Pie Join Date: Nov 2004 Location: Canada
Posts: 2,267
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Function return false? Hello, I have a dilemma. You see I need a function (logged) to return false if session admin isn't set. Here is the code PHP Code: How would I go about doing this I try many different things including return true;/false and things. iNod
__________________ I feel old. |
| |
| | #2 (permalink) |
| NamePros Expert Join Date: Nov 2003 Location: Scotland
Posts: 5,074
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | The following should do what you want. PHP Code:
__________________ Manage your portfolio using my new Domain Portfolio Management script. Securing Your Domain Name From Theft
Last edited by Peter; 08-25-2005 at 03:36 PM.
|
| |
| | #3 (permalink) |
| Account Suspended Join Date: May 2004 Location: /etc/passwd
Posts: 2,178
![]() ![]() ![]() ![]() ![]() ![]() | Id also like to add. Doing this function, logged(), make sure you challege the username/password to the ones in the database or wherever you have it stored. this way you wont have people spoofing the session to gain access. |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| All about the mail function in PHP. | bbalegere | Programming | 1 | 08-19-2005 09:25 PM |
| What is the Nice Titles Script do? | dpk87 | Programming | 0 | 07-25-2005 01:18 PM |
| 200 np for urgent help!!!! (php) | fusionweb | Programming | 22 | 05-24-2005 07:05 AM |