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...
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...
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...
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...
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...
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...
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...
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)){...
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...
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...
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!
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...
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!
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...
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...
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...
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...
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!
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++] =...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.