Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by MattNeeley

  1. MattNeeley

    Win 2003 applications installed using vbscript

    try HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
  2. MattNeeley

    win XP problem

    Just use the telephone activation method and explain the issue to MS (if they even ask) and they'll let you reactivate XP on the machine again.
  3. MattNeeley

    Can't Uninstall

    Asset Management failed to install properly, there's no option to uninstall though and I cannot reinstall with it installed.
  4. MattNeeley

    highlighting a mysql row if == 1

    Easily, Instead of echoing out everything, save them to a variable (minus the tr and /tr) and then at the end if completed == 1 then do an echo with a different tr color.
  5. MattNeeley

    imagecopyresampled images are too big

    I don't know what BLOCK_WIDTH and BLOCK_HEIGHT are set to but the easy way is to do it using specialized math similar to this: if ($image_width > $target_width) { $scale = $target_width/$image_width; $new_image_width = $image_width*$scale; $new_image_height = $image_height*$scale; } else {...
  6. MattNeeley

    Invoice Date - Sorting Expiring

    Assuming that this file format stays perfect and no errors come up it should be easy using these functions. fopen,fclose,fread,explode Read up on these functions and you should be able to create your page in no time at all.
  7. MattNeeley

    image resize question

    There is no function to do this, you must manually program the GD library function (which I've done several times). It's not easy for a beginner to do but after a couple of times you get the math down and it's a cakewalk. Give it a shot if you feel adventurous (it pays off in the end) or find...
  8. MattNeeley

    Secure my login script with MD5?

    First, it appears that you have register_globals set to on, this is a security risk in itself and should be turned off. Turning off register_globals will probably break your pages until you properly code it using the $_GET and $_POST superglobals. After that is done you probably should use...
  9. MattNeeley

    delete data after X number of days?

    Generally for something like this instead of saving the time it was put in in XX/XX/XXXX format I just use the unix timestamp. The timestamp is completely numeric and so you would then just subtract the known constant (how long in seconds 2 weeks is) from the the current time and if the value...
  10. MattNeeley

    display variables passed through href

    replace $_GET with $_POST in that case
  11. MattNeeley

    Alternate to file_get_contents()

    It sounds as though your hosting company has disabled the ability of PHP to access files that are not on the server. I believe it's called the fopen wrapper. I do not know of any ways around it other then using direct port connections, which, would be very difficult. Hopefully someone else...
  12. MattNeeley

    Export to MSExcel Format

    another way is to just use HTML tags ie <table border="1"> <tr> <td>column 1</td> <td>column 2</td> </tr> </table> This will create a table in excel using the table's TR as rows and TD as cells just like in html.
  13. MattNeeley

    div background when printing

    URL is unavailable at the moment for reasons I cannot go into. I might dive into tearing out some of the code a little later if my next idea doesn't work. Firefox appears to be affected but not IE. I've no idea why unless IE is correcting it automatically. Thanks for pointing me in a...
  14. MattNeeley

    div background when printing

    This seems to be a firefox only problem. The background image appears fine when viewed normally in firefox, but, when I print it the image shrinks to a very small size. Any ideas? div.month4_logo { width: 400px; height: 50px; background-image: url(logo.jpg); background-position: center...
  15. MattNeeley

    Completely lost with set up of php

    Try using command.com (ms dos prompt) and get yourself to the php folder. Now type in php.exe -i. If php is able to run properly then it'll spit out a bunch of html into the ms dos prompt.

Part and Inventory Search

Back
Top