Advertisement Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

167 Neutral

About ju2wheels

  • Rank

Personal Information

  • Interests
  1. Set your error log level to E_ALL | E_STRICT. Then go through your pages and see if any warning suggestions pop up, maybe one of your pages is doing something that PHP will let slide by but is causing an effect you dont want somewhere in one of the pages. Other than that without code theres not much else I can think of. I mean it looks like you are using the plain old vanilla session handler so its not an issue of you using a custom session handling function.
  2. ju2wheels

    [web] Trying to seach file content

    A better approach IMO would be preg_match(). If you are going to be parsing textual data for the existence of something then regular expressions provide the most flexibility.
  3. The cookie seems fine to me. It always registers as / as it should which is read that this cookie is good for any page (and sub page/directory) under / or in your web root. If this value had changed to a different directory then it would be a sign of a setting issue. Its most likely an issue with your code and not the session. Do you have error logging to a file enabled, it can be very useful to track issues.
  4. I think your best bet is to do a phpinfo dump and analyze the default settings of your hosting service. In particular pay attention to session.cookie_path . If this is not set correctly you may run into situations where you have multiple unique sessions for different branches on your webroot as opposed to one session for any branch on the web root which is what is typically wanted. [edit] Sorry spoke before I actually looked at the site. The cookie path is set correctly at least on the cookie that Im sent and its not erased on viewing the home page although the home page says im not logged in. Are you sure you call session_start() on the home page?
  5. A java servlet requires an application server to be running services or applications in the background which are waiting to be queried or run and are always available. Thus your connection pool would be an application running in the background that has already allocated connections and is waiting to process queries for you. A common use for this is abstracting the data retrieval backend from your application to allow the data to be retrieved from different types of applications. For example, if you have a website and stand alone applications that need access to your companies data, they will have no clue as to whether the data they request is coming from files, databases, or other servers. The only thing they know is a common interface they can use to request the said data, and the application with the connection pool would know all the details on where to get it as quickly as possible. On the other hand a typical web server is the opposite. Things (pages or cgi modules) start to run as they are requested from the web server (Apache for example), and are only running as long as they are needed to complete the requested task. The only condition in which this may differ is if you have a custom setup where your server is internally running applications already that your scripts interact with through IPC or by executing them directly from the scripts. But obviously there are many different possible configurations in cases like that depending on the environment and the needs of the application.
  6. You are most likely getting a PHP error which is causing your page to stop at some point and not even continue executing the MySQL commands, which has nothing to do with MySQL. You probably dont have error logging enabled or display errors enabled (which you really dont want to do anyway as file logging is preferred). I would suggest that you open your php.ini, search for "log_errors" and set the value to "On" and also look for "error_log" and set the value to a file in a directory you have access and write permissions to such as "C:\PHP\error_log.txt". Restart your Apache/PHP so the new settings are loaded, then run your PHP page again and see if the error log file appears and check what it says.
  7. Honestly if you want to find where the problem lies, you should technically be error checking in there at each point where necessary, which will most likely shed more light on where your problems lies... $sql="insert into users (FirstName, LastName, Birthday, Email, Phone) values ('$FirstName', '$LastName', '$Birthday', '$Email', '$Phone')"; $rresult = mysql_query($sql); if(!$rresult) { die("Error on query: " . mysql_error()); } $sql_id="select * from users where FirstName='".$FirstName."' and LastName='".$LastName."'"; $rresult_id = mysql_query($sql_id); if(!$rresult_id) { die("Error on query: " . mysql_error()); } $arr_id=mysql_fetch_row($rresult_id); $UserID=$arr_id[0]; $sql_log="insert into login (UserName,Password,UserID) values ('$Username','$Password','$UserID')"; $rresult_log= mysql_query($sql_log); if(!$rresult_log) { die("Error on query: " . mysql_error()); } $sql_ship="insert into shipping_addresses (Address, City, State, Zip, Primary, UserID) values ('$Address', '$City', '$State', '$Zip', '$Primary', '$UserID')"; $rresult_ship=mysql_query($sql_ship); if(!$rresult_ship) { die("Error on query: " . mysql_error()); } You didnt mention which were PK/FK, and if applicable if null is allowed or autoincrement is set. You might just be trying to insert something thats already there so its failing as it should since you arent really doing error checking.
  8. Could you post the schema for the shipping_addresses table... [edit] Also if you have logging enabled, the posting the error might help shed light on the problem... [Edited by - ju2wheels on March 11, 2008 3:45:53 AM]
  9. ju2wheels

    [web] Virtual Learning Environments

    Well I honestly think you overlook the fact that what they are really paying for a support service and most likely access to future updates. They pay for a secure CMS that suits their needs and dont have to worry about maintaining it but rather just maintaining their content. You might be surprised by this but companies across the world do this internally to provide their employees with tons of learning material on company products, and many other technologies. Where we have the developers mentality and see a need and the simple tools we can develop to fill that need, in business they see their need and a mature enterprise service that easily fills it (and most likely comes with the bonus of support and updates).
  10. 1. Did you try traversing the snapshot backwards? Im not sure how the internal of all this works and how references are kept, but if you remove from front->back you may invalidate the position of everything after the first one you remove where as removing back->front may not invalidate its preceding siblings in your result set (at least not the ones you care about removing). 2. Are the parameters for "//br" and "br" case sensitive? For example, does "//BR" and "BR" produce a different result? 3. Also, Im not sure you if saw it in the Wiki you linked me to, but they prefer to copy the snapshot into a separate array for doing work on, it doesnt say why however... link Ive never used this but seeing how the documentation describes this as a tree im guessing something might be going wrong with node referencing after a remove is done. Hope that helps point you in the right direction.
  11. Im not too sure of what GreaseMoney is but I do see a potential issue with what you are describing. If you remove the BR and then try to access its nextSibling, then I would expect it to be null because it (the BR you just removed) no longer exists, which I also expect is what is happening in your case. You would need to either store BR's next sibling or delete from the bottom up using recursion: func remove(curObj) { if(curObj.hasSibling) remove(curObj.sibling); end if delete curObj; } Using the above pseudo, you would need to check if each object is of type "BR" accordingly. Your BR's will then be removed starting with the last one in the consecutive sequence of BR's.
  12. If I recall correctly, the + should only be changed to an empty space in the case of a GET request, not a POST as these are passed in the header as is.
  13. Hi all, Im trying to decide and figure out on how to password protect access to my web root directory (and everything under it). I was originally looking at the documentation for the Basic authentication type, however one of the drawbacks that it mentions is that it asks for the password upon an attempt to retreive any file. Now to me this sounds like I could potentially be asked for my login credentials multiple times for a page that loads images as the documentation suggests. Is this true or does the browser cache your credentials and send it back upon subsequent requests? I dont want to have to re-enter it a million times to just view one page. Thanks
  14. How about a paragraph tag with a border, bg color and a little padding. Add an on mouseclick event which calls javascript to submit the form (document.form.submit())? Sounds more like what you want anyway if you aren't looking for a real button.... [edit] Sorry, missed the part where you said you wanted a solution in absence of javascript, but the above should fix that border highlighting problem. You could also use the 'cursor' property to make the pointer turn into a button click icon instead of the text selection icon.
  15. Our production and development site are on the same server since it is the only one we have. The reason we create two unique setups is that it allows us to do development and be able to modify configuration settings on everything without affecting or needing to restart the production site. It also helps in upgrading by allowing us to test new versions of Apache/PHP and get them properly configured for our site before migrating them over to production.
  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!