Jump to content

Updating extensions for DW PHP


Recommended Posts

Hi,

I have 2 questions. I posted it to the Macromedia site twice but have not received any replies. Hoping someone here knows the answer.

 

I purchased the DevNet Resource Kit #2 off the Macromedia site for the User Authorization code for PHP.

 

Is the code up to date for PHP v4+ ?

 

I would like to know before I spend to much more time trouble shooting. I am following the lessongs in the book Dreamweaver MX 2004 Web Application Recipes. Any page I apply the 'restrice user access' to becomes unavailable and I am redirected back to the login page.

 

I am finding out that the book (web aps) is already outdated but I am getting no response from the authors as to what I need to know to continue with it. I will post this for anyone else who might be having problems with the book.

 

If you are using PHP 4.3+, MySQL, WindowsXP:

Replace: session_register("MM_UserID");

With: $_SESSION['MM_UserID'] = mysql_result($LoginRS,0,'UserID');

OR, Depending on your site variables:

$_SESSION['UserID'] = mysql_result($LoginRS,0,'UserID');

 

It will not recognize anything assigned using the session_register. Took me all weekend to find that tidbit of info. Hope it saves someone else a bit of time.

 

Has anyone else used these two products? I need to know what other 'glitches' I need to know about.

 

Please let me know about the code in the DevNet Resource Kit #2. If it is outdated, do you know where I can get updated code for the PHP 4.3+ User Authorization?? Thanks. Leesa

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.