User Profile

Collapse

Profile Sidebar

Collapse
LacrosseB0ss
LacrosseB0ss
Last Activity: May 7 '08, 05:04 AM
Joined: Oct 12 '06
Location: Brampton, ON, Canada
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • LacrosseB0ss
    replied to PHP code for "forgot your password"?
    in PHP
    Marcus, your suggestions is a good one but that doesn't prove the person requesting the password is actually the person trying to log in (identity theft as an example).

    What I would suggest is set up another column in your user table and save a secret answer or code. When the account is set up or the password is changed they are assigned a question/answer or a generated code. When "request a password" is clicked, display...
    See more | Go to post

    Leave a comment:


  • LacrosseB0ss
    replied to Can I use DFD ?
    UML always helps plan everything out for you. Depending on the size of the project and how long you'll be spending will determine if you need diagramming. As said though, it's a good practice to do even with the smallest of tasks.

    As for the DFD, there is not really enough info here to explain how to go about making this diagram, sorry. Hope the first part of the reply helps though.

    - LB
    See more | Go to post

    Leave a comment:


  • LacrosseB0ss
    started a topic Jump to Spot in Audio - Podcasting

    Jump to Spot in Audio - Podcasting

    Hey all;

    This question is a bit of a weird one I hope I can find an answer. Google was of not much help but it was hard to search. I am the webmaster for my church and we have been recording sermons and posting them online as podcasts since October (07). Since the new year hit we have been recording the entire service and posting excerpts up.

    Now, what I would like to do is with the audio file posted (mp3 format, embed...
    See more | Go to post

  • LacrosseB0ss
    replied to PHP Session Resetting on 2nd Page
    in PHP
    it does help explain why session_start() goes on every page. Still haven't had a chance to look at the solutions above yet. But when I do, as mentioned I'll report back. By the sounds of what you're talking about it could be different session IDs which could suck.

    I've also been reading about session_registe r(); what does that do? And how does HTTP_SESSION_VA R something like that differ from $_SESSION (which I've seen around). I'm...
    See more | Go to post

    Leave a comment:


  • LacrosseB0ss
    replied to PHP Session Resetting on 2nd Page
    in PHP
    thanks again. Yeah, I couldn't see anything in the code either that would be causing any of these problems. Hence me coming here. Except that I have only been using PHP full time for about 3 months.

    Clarification: If I'm using a session variable, do I need session_start() at the top of EVERY page? When I originally heard this, I assumed that would create a new session each time. Is there not a session_continu e? Or is it not implied...
    See more | Go to post

    Leave a comment:


  • LacrosseB0ss
    replied to PHP Session Resetting on 2nd Page
    in PHP
    oh yeah, and I am not the server owner so I don't have access to the php.ini file. Please tell me that's not the issue. Lie if you have to ...
    See more | Go to post

    Leave a comment:


  • LacrosseB0ss
    replied to PHP Session Resetting on 2nd Page
    in PHP
    I have 3 separate sections where Sessions are used. $_SESSION['userID'] for a user that logs in, $_SESSION['newPwd'] which is used when a user is setting a new password and finally $_SESSION['matchedIDs'] which comes from an XML file based on a search.

    In each case the opening 2 lines of the page are:
    [php]
    <?php session_start() ;
    //depending on the page, one of the next 3 lines
    $_SESSION['userID'] =...
    See more | Go to post
    Last edited by LacrosseB0ss; Dec 14 '07, 03:28 AM. Reason: forgot to thank clai83

    Leave a comment:


  • LacrosseB0ss
    started a topic PHP Session Resetting on 2nd Page
    in PHP

    PHP Session Resetting on 2nd Page

    Hey folks;
    I have PHP session variables that are having some troubles. I posted in a few other forums but couldn't really find one dedicated to my specific issue. I am using a few session variables throughout my website and am using the following two lines at the top of every session related page:

    [php]
    <?php
    session_start() ;
    $_SESSION['userID'] = ""; //initialization on first page...
    See more | Go to post

  • LacrosseB0ss
    started a topic Update XML Data with PHP code
    in PHP

    Update XML Data with PHP code

    Hey community;

    What I would like to do is open an XML document and change whatever is in a given node using PHP. I have read some stuff on DOM but can't really figure it out. As well in the past all I've used is simplexml_file_ load() to work with XML files.

    I was trying ->asXML() and ->asXML($path) but they overwrote the entire file. Is there a better way to do this? Basically what is to happen is a user is trying...
    See more | Go to post

  • LacrosseB0ss
    replied to PHP5 Include Doesn't Work?
    in PHP
    $_SESSION['userID'] is set with an XML node called <ID>. The user is asked for their name and password which are saved in the XML file and if they match for a given <member> the <ID> node is returned. This is saved in $_SESSION['userID'] to symbolize the user who is logged in.

    On the next page, another XML file is loaded which contains all the user's information. So I am trying to load "filepath/" &...
    See more | Go to post

    Leave a comment:


  • LacrosseB0ss
    replied to PHP5 Include Doesn't Work?
    in PHP
    thanks for the tip. This has actually sped up the process. And it still works (as far as I can tell). Thanks.

    However, as you suggested, it didn't help my session variable error. Thanks to anyone who can advise.
    See more | Go to post

    Leave a comment:


  • I'm also having this problem. This post is mostly so I can subscribe and watch for answers here that may help me as well. Thanks!
    See more | Go to post

    Leave a comment:


  • LacrosseB0ss
    replied to PHP5 Include Doesn't Work?
    in PHP
    So I am baffled again! I tried the session_start() ; at the beginning and, guess what! IT WORKED! However, when I transfer to the 2nd page, the variable is reset to what I initialized it as. Originally I set $_SESSION['userID'] = -1;
    then it goes to the XML file and picks up whatever the ID is. I know this b/c I changed the action on the form to itself with an echo $_SESSION['userID'];. It displayed fine.

    Knowing the session...
    See more | Go to post

    Leave a comment:


  • LacrosseB0ss
    replied to PHP5 Include Doesn't Work?
    in PHP
    I have not tried this yet but that would make sense. All my php has been in between the </head> and <body> html tags. I'll give it a shot later this evening and let you all know. Thanks for the help!...
    See more | Go to post

    Leave a comment:


  • LacrosseB0ss
    replied to PHP5 Include Doesn't Work?
    in PHP
    I fixed the include late last night. I took out the ../ before the cgi-bin and it works now. The problem I am having now is in the included file, my session variables are not working. I'm baffled by it honestly. I originally had the "session_start( );" line however it produced the following 2 errors:


    Removing the session_start() ; line removed the errors but in both situations the $_SESSION['userID'] resulted in an...
    See more | Go to post

    Leave a comment:


  • LacrosseB0ss
    replied to PHP5 Include Doesn't Work?
    in PHP
    as an aside, does anyone know of any good, free php debuggers out there? Right now I'm doing my HTML in Dreamweaver and I'm coding my php stuff in EditPlus. I'm not overly found of having to upload to the server whenever I want to test my code. Thanks for this as well!
    See more | Go to post

    Leave a comment:


  • LacrosseB0ss
    replied to PHP5 Include Doesn't Work?
    in PHP
    I am getting 2 consistently. I tried a few other things before replying back but they did no good. The error messages are:


    I also got an e-mail from our server owner/operator. According to him, php5 is installed. However, he did not know about HTTP includes (is this the entire path?) or why I was getting the include() error as he hasn't worked much with php.

    I have tried removing the php file from the cgi-bin...
    See more | Go to post
    Last edited by LacrosseB0ss; Nov 15 '07, 05:36 AM. Reason: milestone announcement :D

    Leave a comment:


  • LacrosseB0ss
    replied to PHP5 Include Doesn't Work?
    in PHP
    The reason for the XML was because I was originally going to code it as a servlet modifying an example from a college class. So I made up the XML files and then found out servlets won't work on our server.

    Having said that, here's the code:
    [php]
    <?php session_start;
    //include("../cgi-bin/PHP/dirlogin.php");
    //include("../other/dirlogin.php");

    $_SESSION['usedID']="Not...
    See more | Go to post

    Leave a comment:


  • LacrosseB0ss
    started a topic PHP5 Include Doesn't Work?
    in PHP

    PHP5 Include Doesn't Work?

    I'm currently working on an online directory system using PHP (due to server constraints). Normally I would use something else but c'est la vie! I have my pages on the server (Login.php, SomethingElse.p hp, etc.php). All of them have some form of php code associated with them.
    In my cgi-bin folder, I have the code which references my data files (XML for now, may switch to MySQL later). I am getting errors that say
    "cannot open...
    See more | Go to post

  • LacrosseB0ss
    replied to problems with my login
    in PHP
    From my previous experiences, ASP and such will not work on Linux servers. Is the same true for the reverse? i.e. Will PHP work on a Windows server? Off the top of my head that's what I am thinking.

    This Article claims some versions of Windows do not support PHP. And some PHP versions aren't set up to run. You can read the article for more.

    Now, I could just be blowing smoke. I don't really know if this is correct...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...