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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: dle46163
  • Content: Threads
  • Order by date
  1. dle46163

    Epoch time compare

    Hi All, This has to be simple and I'm just missing something...I need to get the epoch time for my PC clock. I've been messing with this code: nd = new Date(); ep = nd.getTime(); document.write(ep); This works fine, however, I need the current epoch time excluding the seconds and...
  2. dle46163

    Checking for existance of an image

    Hi! I'm messing with the following code: function check(){ var connect_img=new Image(); connect_img.onload=good_connect; connect_img.onerror=bad_connect; connect_img.src="http://url/test.gif" } checkconnect=setInterval('check()',10000); For the lines...
  3. dle46163

    SAXException w/ IE in kiosk mode

    Hi All, I've got a java applet that parses XML.. Works just fine embeded in IE while in normal operation. However, when running in kiosk mode I get an error: SAXException. Thought it might be some type of rights problem but I've adjusted just about everything I can think of - even put the url...
  4. dle46163

    Strpos

    Hey all, I've got a string like this: $play_days="0123456"; I need to search for individual numbers in the string. If the number is not found, I simply echo a statement. Everything is fine except when the number found resides in the zero position in the string. I've tried the following...
  5. dle46163

    Variable problem

    Ok, I think this will be an easy one... I'm piecing together a variable like this: cb=ikey+"_cb"; This variable ends up being the name of some checkboxes in a form. I want to place the variable in the following alert statement but it won't work! alert(schedule.cb.length); If I type...
  6. dle46163

    Which OS for IIS7?

    Hi All, I'm a bit confused about new OS's which run IIS7. I'm currently running Windows 2003 Server w/ IIS6. The version of 2003 is specifically the Web Edition. I want to build an IIS7 box but don't know if I need Vista or Longhorn and if there are specific web editions of each of those OS's...
  7. dle46163

    Parsing XML - Grab enclosures

    Hi, Not sure anyone wants to take a crack at this but I'm sure it's fairly easiy if you understand parsing much better than I! I have the following script to parse XML (podast feeds). There is no facility to grab an enclosure url. I tried modifying the scritp to do so but can't get it to work...
  8. dle46163

    WHILE loop

    Hi all, I'm running a while loop on a MySql query: while ($row = mysql_fetch_assoc($rresult)){ extract($row); } Question: I want to run the while loop until a counter hits a specific number. Can this be done? I tried: while ($counter<=10 && $row = mysql_fetch_assoc($rresult)){...
  9. dle46163

    Large file download in 5.2.3?

    Hi All, I have a script for allowing web users to download files from my web site. It worked great with PHP version 5.0.4.. I had some problems with that version so upgraded to 5.2.3 - Some things seemed improved. However, now when I use this script I can't download large files. PHP just sits...
  10. dle46163

    ORDER by query problem

    Hi! In a PHP script I have this query: $query = "SELECT name, description FROM mytable WHERE file_id='$file_id' AND sector='1' OR file_id='$file_id' AND sector='2' ORDER by name"; I can't get the sort to work and am pretty sure I've got the syntax wrong for the "ORDER by" part...
  11. dle46163

    File Encryption

    Hi! I'm looking to encrypt files uploaded to my web server using a key provided by the upload user. Then, downloading the file later would require the original key. Are there any suggestions for doing this in PHP? Any open source solutions? Thanks!
  12. dle46163

    Byte conversion problem

    Hi All, I found a small script for byte conversion (to Mb, Gb, etc..). It seems to work well, however when calling the function as so: Case 1: byte_convert('1070900686'); Case 2: byte_convert('1073741824'); My results are as follows: Case 1. 1,021.29MB Case 2. 1.00GB Clearly in case 1 the...
  13. dle46163

    Virus scan - uploaded files

    Hi All! Does anyone know of a solution, other than ClamAv, to virus scan files uploaded with a PHP script? I'm running a Windows 2003 server with PHP / MySql. Thanks!
  14. dle46163

    Syntax question

    Hi! I have this javascript code inside a PHP page: var jump_name=''; for(var i=0; i < window.parent.group_array.length; i++){ jump_name = window.parent.group_array[i]; document.write(\"<div id=\" +window.parent.group_array[i]+ \" ondblclick='jump_to(jump_name)'> </div>\"); } The...
  15. dle46163

    Mysql query - two tables

    Hi All, I have two tables: Table_a and Table_b. They both have a username field. I want to pull all the usernames in Table_A as long as they are not listed in Table_b. My query for Table_a by itself looks like this: $query = "SELECT username FROM Table_a WHERE...
  16. dle46163

    Mysql query - two tables

    Hi All, I have two tables: Table_a and Table_b. They both have a username field. I want to pull all the usernames in Table_A as long as they are not listed in Table_b. My query for Table_a by itself looks like this: $query = "SELECT username FROM Table_a WHERE...
  17. dle46163

    Returning data with ajax

    Hi All, I have an html form which I'm using to send data via ajax to a PHP script. The PHP script sends data back and it's displayed on the screen between DIV tags. This works fine. However, instead of displaying the data between DIV tags, I want the data to be returned inside the forms input...
  18. dle46163

    Search string

    I can do this using PHP but not sure on syntax for javascript.. I have a variable: yo = test.jpg. I need to get all the characters after the period. In other words, I just need to get the file extension (excluding the period). Any thoughs would be great!
  19. dle46163

    Get data from array

    I had this working then broke it! Here is the code: // My function function slide_set_time(slide_set_name,run_hour){ this.slide_set_name = slide_set_name; this.run_hour = run_hour; } // My Array window.slide_schedule_array = new Array(); var ni = 0; window.slide_schedule_array[ni++] =...
  20. dle46163

    Using array data as function name

    Hi All, I have a variable set like this: var myVar = "slide_set1"; I have a working array which I'm pulling data out of. The array name is the same as the above variable. So, when I view the data in slot 0 of my array like this: alert(slide_set1[0]); my result is in fact the correct data...

Part and Inventory Search

Back
Top