lee sands's Profile
Reputation: 0
Neutral
- Group:
- Members
- Active Posts:
- 132 (0.2 per day)
- Joined:
- 14-August 10
- Profile Views:
- 3,299
- Last Active:
Feb 23 2012 01:46 PM- Currently:
- Offline
My Information
- Member Title:
- Dedicated Member
- Age:
- 21 years old
- Birthday:
- June 19, 1990
- Gender:
-
Male
- Location:
- Gosport, Hampshire, UK
- Interests:
- HTML CSS JAVASCPRIT PHP MYSQL
Contact Information
- E-mail:
- Click here to e-mail me
- MSN:
-
leesandz@msn.com
- Website URL:
-
http://Under Constuction
- Skype:
-
lee.sands
Users Experience
- Experience:
- Beginner
- Area of Expertise:
- Coder
Topics I've Started
-
PHPBB Standalone Template Engine
14 February 2012 - 06:56 PM
Hi All i have followed this guide here
phpBB Standalone Template Engine
but it dosent work any ideas why
edit: all i get is a blank screen
please help -
mod_rewrite
13 February 2012 - 03:22 PM
hi all sorry if this is in the wrong section
i am wondering if there is a mod_rewrite rule that will allow the following to happen
about-us.php becomes /about-us
services.php becomes /services
etc etc -
dynamic switch
05 February 2012 - 02:15 PM
hi all is it possable to make a php swich from a mysql statement ie
<?php $s = "SQL CODE"; $r = mysql_query("sql); switch($p) { while ($row = mysql_fetch_array($result)) { case '$row[\'case\']': $pg = $row['pg']; $title = $row['title']; break; } } ?> -
PHP Questions
26 January 2012 - 07:41 PM
Hi All I Am Writing My Own CMS And I have a few questions
1. Is it safe to have all globals set in one file ie :<php global $var1; global $var2; //ect ?>
2. dose anyone know where i can learn securty in php
3. in phpbb the use<!-- include site_html.html -->
how do i recreate that -
PHP Sessions Code Stopping Sessions
23 January 2012 - 04:11 PM
Hi All I Have A File Called session.php
<?php function _open() { global $_sess_db; $_sess_db = mysql_connect(CUR_HOST, SYS_USER , SYS_PASS); mysql_select_db(CUR_DB, $_sess_db); } function _close() { global $_sess_db; return mysql_close($_sess_db); } function _read($id) { global $_sess_db; if ($db_result= mysql_query("SELECT data FROM cms_sessions WHERE id = '$id'",$_sess_db)) { if (mysql_num_rows($db_result)) { $record = mysql_fetch_assoc($db_result); return $record['data']; } } return ''; } function _write($id, $data) { global $_sess_db; global $id; global $data; $access = time(); $sql = "REPLACE INTO cms_sessions VALUES ('$id', '$access', '$data')"; return mysql_query($sql, $_sess_db); } function _destroy($id) { global $_sess_db; $sql = "DELETE FROM cms_sessions WHERE id = '$id'"; return mysql_query($sql, $_sess_db); } function _clean($max) { global $_sess_db; $old = time() - $max; $old = mysql_real_escape_string($old); $sql = "DELETE FROM cms_sessions WHERE access < '$old'"; return mysql_query($sql, $_sess_db); } session_set_save_handler('_open','_close','_read','_write','_destroy','_clean'); session_start(); ?>
but when i use my site none of the$_SESSION['value']
it dont work it just shows error messages like
Quote
Notice: Undefined variable: _SESSION in C:\xampp\htdocs\cms\library\login.class.php on line 49
any ideas to get it working
Help




Find My Content
Display name history
Comments
lee sands has no profile comments yet. Why not say hello?