kenleycapps 0 Newbie Poster

Ever feel the default session handling is insecure? Or do you just want some originality to show off? Well, here you are. A custom, MySQL-based session handler. It supports base64_encoding and MySQL storage.

Note: I haven't tested this thing in months so I don't know how well it'll work : Good luck, hope you like it.

Configuration: All you gotta do is edit the MySQL configurations, the expire and GC probability (if you really want. its best left as is), and just include session.php in all your session-oriented scripts. =]

Please let me know if you get ANY errors! Thanks.

kenleycapps 0 Newbie Poster

dinosaur -> jurasic park

kenleycapps 0 Newbie Poster

sorry imzac. the tutorial will have to wait. the final copy is 25% complete but I just ran into some problems (real life problems =\ ) so I will attempt to have it ready by tomorrow night. Keep checking back; I'll be providing plenty of tutorials (depending on how my first one goes) in the next few months. Sorry again!

kenleycapps 0 Newbie Poster

Howdy heck (was that right? ;) ) I'm Kenley and I've been programming with PHP for.. hmm.. 6 years now? (I'm only 17! :o ) And with MySQL for ~5 years, and I'm STILL learning. I came to this place to start offering some tutorials and stuff (even though I barely know what I'm doing =P ) over PHP, MySQL, and useful tips I've discovered dealing with the web development for so long.

So.. howdy heck! =]

kenleycapps 0 Newbie Poster
$id = $_GET['id'];

That's how you get $id on the following page.

kenleycapps 0 Newbie Poster

It should be..

"<body bg=\"graybg.jpg\" text=\"#000000\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\">";

I THINK. I don't use PHPNuke but it seems you just incorrectly escaped the string.

kenleycapps 0 Newbie Poster

hmm. sounds to me like a simple include, but that's probably inefficient.

<?php

$pages = "/path/to/pages/";
$default = 1;

if(is_file($pages.$_GET['id'].".php")) $p = $_GET['id'];
else $p = $default;

include $pages.$p.".php";
?>

Just have all your pages as ID numbers.. IE: news page = 3.html

But that's really inefficient, and probably not how you do it =P

kenleycapps 0 Newbie Poster

I know exactly what you want and I'm currently working on a tutorial to further explain in detail what one needs to understand/do to create a single file used to load other files, or a page to load other pages for a website.

It should be ready by tomorrow night. I'll be covering the query string, superglobals, dynamic file including, and basic security, all of which are involved and required when dealing with a dynamic page loader.

It's my first tutorial so I hope it works out well =]

kenleycapps 0 Newbie Poster

Man I've got a lot of learning to do before I can tackle that baby. Everything looks fine until I hit emails and up >_< So I got some work to do.