Jump to content

bcoffin

Members
  • Posts

    130
  • Joined

  • Last visited

Everything posted by bcoffin

  1. Why is it that on IIS I can't do: <form method="POST" action="http://www.domain.com/form/" but rather have to do: <form method="POST" action="http://www.domain.com/form/index.php" ? Is there a config setting in IIS to assume the index.php? It's assuming it for the root directory... http://www.domain.com/ loads http://www.domain.com/index.php But not for my form actions. Ideas?
  2. Even though I don't understand regex, it looks so much cleaner than these if(strrchr) or if(strrpos) tests. Thanks all.. it's super now.
  3. I'm horrid at regex.. Will the one you offered work?
  4. Thanks.. That's what I'm currently using.. it's just some ugly code. No other ideas, eh?
  5. You can build a javascript array: tunes = new Array; tunes[0] = "MaryHadALittleLamb.mp3"; tunes[1] = "LondonBridgesFallingDown.mp3"; ... tunes[1000] = "TwinkleTwinkleLittleStar.mp3"; Then when your media player loads, you can assign the clip using javascript. <embed name="player" id="player" pluginspage="http://www.microsoft.com/windows/windowsmedia/download/" type="application/x-mplayer2" src="" width="320" height="240" ShowControls=1 ShowDisplay=0 ShowStatusBar=0 autostart=1 autorewind=0 ShowPositionControls=1 ShowTracker=0> </embed> then in your body tag, call a cue function: onload = chooseRandom(); chooseRandom could look like this: function chooseRandom() { var tunesnum = tunes.length - 1; do { var randnum = Math.random(); rand1 = Math.round((tunesnum - 1) * randnum) + 1; } while (rand1 == useRand); useRand = rand1; document.getElementById("player").src=tunes[rand1]; } The same should work for vid files. Make sure you have the path to the files correct in your js array.
  6. If I pass an email in my GET string (such as: www.mysite.com?my_email_address@hotmail.com), I noticed that parsing the GET gives me: Array ( [my_email_address@hotmail_com] => ) What's the easiest means of changing that LAST underscore ("_") back to a period (".") ? Thanks
  7. Tom's js just initiates a call using a local/installed client. Which apparently must be the current release.
  8. bcoffin is a character from Rent.
  9. Hoooray! It seems to work just fine! Thanks, Tom. I've gotta checkout the Skype4Py to see if i can get this talking to my linux server. But very very cool.
  10. 2.5.0.151 i can upgrade tomorrow and report, if you like.
  11. No, sorry, Tom. Never saw the prompt.
  12. I'm seeing "Failed to load Skype4COM control." at the top of the page, and a JS error saying: Line: 23 Char: 4 Error: 'Skype' is undefined using WINXP IE v6.0.2900.2180.xpsp_sp2_gdr.070227-2254
  13. Rats.. I don't know the first thing about Python. Are you able to communicate with local (win,etc) skype clients to dial numbers and such?
  14. BTW.. i just learned that skype4com/web is only available for WIN, not *nix yet. So I guess I'll sit tight.
  15. I got moved to Misc (where this does actually seem more appropriate, thanks), and am hoping to integrate skype4com into my web application (php5) to trigger/place calls using a locally installed skype client. Ideas?
  16. https://developer.skype.com/Docs/Skype4COMLib/Call_php Seems to let you make a call directly from your web application, communicating with your local client? I'd love to see examples of this in production or suggestions about how to implement..
  17. Suppose my table looks like this: id|firstname|lastname and example rows looks like this: 1|adam|anderson 2|adam|allen 3|adam|allen 4|bob|barker 5|bob|barker 6|bob|brown ..but there's 100s of 1000s of records... What's a good, fast query to select the rows that have duplicate first and last names? So that only rows with IDs 2,3,4,5 are returned? is there a
  18. I've never set it up, so I don't know the ins/outs, but hear that GACL was designed for such a need: http://phpgacl.sourceforge.net/
  19. I've got scores in my MySQL table {A+, A, A-, B+, B, B-, ..., F} And when I order by score, I'm getting: A A+ A- B B+ B- etc. Does anyone know any tricks to get this to order differently, so that it appears: A+ A A- B+ B B- ... and so on? I know that's non-standard, but I'm sure we can figure out a trick? Perhaps storing A or something like that? Ideas? Thanks, Benny
  20. Thanks, Tom. I will definitely look into both of those. I appreciate the links.
  21. I'm using AJAX to pass a div's innerhtml (called 'logdata' via GET) to a php script that writes that information to a text file. It looks like Firefox is re-coding some of the styles. When I alert the logdata, I see it's different. Also, it appears that it's not writing out in firefox, whereas it is in IE.. Anybody experience this?
  22. I realize this isn't the most appropriate forum for this question, but you guys have helped me loads in the past with your advice. What kind of technology would be recommended to build a site capable of streaming media to a large number of concurrent end users?We would need the ability to easily add programming and automate the preparation of the material and the corresponding site update. The site would potentially have several hundreds hours of programming available at any point in time. Thnks B
  23. The ids can be any length from 1 digit to 4 digits, currently. I didn't mean to put those sunglassed-smilies, it's supposed to be ( 8 )...
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.