Search found 21 matches

by chrismicro
Fri Jan 07, 2011 4:49 pm
Forum: PHP - Code
Topic: adding days to date for new date with correct month stamp
Replies: 1
Views: 44

Re: adding days to date for new date with correct month stam

this worked: $aud1hour = "13"; $aud1day = "23"; $aud1month = "12"; $add = "12"; $stamp = mktime($aud1hour,0,0,$aud1month,$aud1day,0); $formatted_date = date('g:ia, M jS',$stamp); $end_date = date("g:ia, M jS",strtotime("+".$add." days&...
by chrismicro
Fri Jan 07, 2011 4:26 pm
Forum: PHP - Code
Topic: adding days to date for new date with correct month stamp
Replies: 1
Views: 44

adding days to date for new date with correct month stamp

I currently have this working to post the correct format: the hour format is 00 -23 the day format is 0-31 month format is from 01-12 code: $aud1hour = "09"; $aud1day = "20"; $aud1month = "10"; $stamp = mktime($aud1hour,0,0,$aud1month,$aud1day,0); $formatted_date = date...
by chrismicro
Fri Jan 07, 2011 12:37 pm
Forum: PHP - Code
Topic: convert 3 variables into timestamp format
Replies: 4
Views: 85

Re: convert 3 variables into timestamp format

This worked:

$stamp = mktime($aud1hour,0,0,$aud1month,$aud1day,0);
$formatted_date = date('g:ia, M jS',$stamp);

Thanks for all your help guys
by chrismicro
Thu Jan 06, 2011 12:22 am
Forum: PHP - Code
Topic: convert 3 variables into timestamp format
Replies: 4
Views: 85

Re: convert 3 variables into timestamp format

this still has issues: the hour format is 00 -23 the day format is 0-31 month format is from 01-12 $aud1hour = "00"; $aud1day = "20"; $aud1month = "09"; $hour = date('GA',mktime($aud1hour)); $month = date('F',mktime($aud1month)); $day = date('jS',mktime($aud1day)); echo...
by chrismicro
Wed Jan 05, 2011 11:09 pm
Forum: PHP - Code
Topic: convert 3 variables into timestamp format
Replies: 4
Views: 85

convert 3 variables into timestamp format

ok here is the problem I have 3 numbers for hour, day, and month example: $aud1hour = "09"; $aud1day = "15"; $aud1month = "10"; basically meaning 9:00am, Oct, 15th whats the easiest way to take those varibles and convert them to this format with the least amount of code...
by chrismicro
Mon Dec 20, 2010 3:04 pm
Forum: PHP - Code
Topic: Upload file return selction box of upload files
Replies: 1
Views: 115

Re: Upload file return selction box of upload files

I do realize this is a tuff one, but any help would be great , i have played with the idea of utilizing jquery, even iframes, but because this is going within a ajax based wizard it makes that difficult, becuase its not letting me utilize a submit button without resetting the wizard
by chrismicro
Sat Dec 18, 2010 3:07 pm
Forum: PHP - Code
Topic: Upload file return selction box of upload files
Replies: 1
Views: 115

Upload file return selction box of upload files

Here is what i need... I need a way to upload a file via php ( which I have done ) yet when the submit button is pressed, I need ajax to return a selection box of the uploaded files I have done this with a simple form, submit accesses upload.php, the upload.php uploads file to server then, creates a...
by chrismicro
Tue Dec 14, 2010 4:29 pm
Forum: PHP - Code
Topic: how to get the time length of a sound file
Replies: 9
Views: 472

Re: how to get the time length of a sound file

I got it working:)the above code I showed works......
by chrismicro
Tue Dec 14, 2010 4:22 pm
Forum: PHP - Code
Topic: how to get the time length of a sound file
Replies: 9
Views: 472

Re: how to get the time length of a sound file

yes...perfectly
by chrismicro
Tue Dec 14, 2010 3:46 pm
Forum: PHP - Code
Topic: how to get the time length of a sound file
Replies: 9
Views: 472

Re: how to get the time length of a sound file

Keeps giving me the error: There was an error uploading the file, please try again! Here is what I have it setup as: <?php include 'vdattcon.php'; function wavDur($file) { $fp = fopen($file, 'r'); if (fread($fp,4) == "RIFF") { fseek($fp, 20); $rawheader = fread($fp, 16); $header = unpack('...
by chrismicro
Tue Dec 14, 2010 3:00 pm
Forum: PHP - Code
Topic: how to get the time length of a sound file
Replies: 9
Views: 472

Re: how to get the time length of a sound file

I know its a function, I am just not sure where I would put the call of it within the code...somewhat confusing.

Please be more specific
by chrismicro
Tue Dec 14, 2010 2:56 pm
Forum: PHP - Code
Topic: how to get the time length of a sound file
Replies: 9
Views: 472

Re: how to get the time length of a sound file

That sir is exactly what i need...

what would be the way to utilize this within my code?
by chrismicro
Tue Dec 14, 2010 2:16 pm
Forum: PHP - Code
Topic: how to get the time length of a sound file
Replies: 9
Views: 472

how to get the time length of a sound file

I am using an upload script to upload sound files to a server, yet I need a way to do this all in 1 shot basically once the file is selected from the browse button and upload is pressed, I need the php to upload the file, calculate how long the sound file is time wise. for instance if test.wav is up...
by chrismicro
Sat Dec 11, 2010 4:15 am
Forum: PHP - Code
Topic: Call Java onclick function from Addoutput
Replies: 2
Views: 138

Re: Call Java onclick function from Addoutput

I figured it out: if ($hideHex4) { $m1->AddOutput("<input type='hidden' id='Hex4' value='".$hex4."'>\n"); } else { $m1->AddOutput("<input type='text' id='Hex4' value='".$hex4."'> &nbsp;&nbsp; <img src='aud.png' width='35' height='30' onclick=\"javascri...
by chrismicro
Sat Dec 11, 2010 3:54 am
Forum: PHP - Code
Topic: Call Java onclick function from Addoutput
Replies: 2
Views: 138

Call Java onclick function from Addoutput

This is for making a 400 x 200 window open with a specified page I need from the output of $hidehex4 = False ( utilizing the else statement ) Here is my if statement: if ($hideHex4) { $m1->AddOutput("<input type='hidden' id='Hex4' value='".$hex4."'>\n"); } else { $m1->AddOutput(&...