Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Lv 31,135 points

merlot7799

Favorite Answers31%
Answers183
  • This is REALLY weird (PHP Session problem)?

    I do website/database design for a company here in Las Vegas. I have several hundred web pages that the employees use after logging into the site. When they login, PHP creates a session variable called 'uid,' that I use to identify the user on each page. So, each page begins with a session_start, and I check for $_SESSION['uid'] first, and proceed if that variable passes a few tests. Right now, all of my pages start with:

    <?php

    session_start();

    echo 'Session uid: '.$_SESSION['uid'];

    ...

    ?>

    Here's my problem: When anyone in the office visits one particular page, $_SESSION['uid'] returns null, and the user is logged out (the entire session is killed). After visiting this page, they can't go anywhere in the site...they're logged out. It only happens on ONE of several hundred pages. And here's the catch: It only happens on ONE computer. Everyone in the office can visit every page, on every computer except one. On this one computer, everyone can visit every page except one. I have a mixture of XP/Vista boxes. The entire office is behind a router and the web server is at another location, so the web server only sees one IP address anyway.

    I'm really stumped. Why just one computer? Why just one page on that computer? The first several lines of code on every page (the validation lines) are identical.

    Any clue? Thanks!

    3 AnswersProgramming & Design1 decade ago
  • I'm designing a website...how much $$ is it worth? What's the going rate?

    I'm designing a website for a medium-sized company in Las Vegas. The site uses html, as well as PHP/MySQL, flash, and java. Approximately 90% of the business administration is done on the website. Thus far, I have written 25,000 lines of code, and the MySQL database has about 50 tables, the largest table has about 120,000 records. I've done all of the website design from scratch, both the art on the front end and the database in the back. I also physically host their web and db server. I also host and manage their E-mail server. Future plans are to integrate some of their administration with Medicaid.

    I've been doing the work for a little over a year. A year ago, I laid out a basic site, and asked for a (VERY small) price, and got it. But the project is getting very large, and I need to start getting paid! The trouble is, I have no idea what to ask. Hourly rate? Per line of code? Re-quote the entire project to the company?

    Does anyone have any ideas about a baseline salary or guide to estimating the cost of the work I'm doing? Thanks!

    5 AnswersProgramming & Design1 decade ago
  • Javascript Routine to Manipulate Time?

    This isn't school homework. :-) I have a rather large PHP/MySQL site that I manage, and in the middle of a major project, I'm being held up by a little routine in java that I just can't write. I know I need to learn more about it, but for now, can you PLEASE help me do this:

    - Field1 on my html form is a time.

    - Field2 is a time that is later than Field1.

    - When Field 2 loses focus, I would like Field3 to contain the difference in the two times, expressed in decimal form, and rounded to the nearest 15 minutes (.25 in decimal). I would also like Field4 to contain the number of 15 minutes intervals contained in the difference.

    For example: If Field1 = 10:00am and Field2 = 11:20am, then Field3 would be set to 1.25 hours (1 hour 20 minutes, rounded to 1 hour 15 minutes, and changed to decimal), and Field4 would be set to 5.

    All times can be assumed to be on the same date.

    Thanks for your help!

    1 AnswerProgramming & Design1 decade ago