Jump to content

php_tom

Members
  • Posts

    264
  • Joined

  • Last visited

    Never

Posts posted by php_tom

  1. I'm just saying that PHP runs on the server, so any commands done with exec() are also run on the server.

     

    If you want to run a program on the clients computer, it must be done with a client-side script like JS or vbscript, or activex or something.

     

    No hard feelings... just trying to help.  :)

  2. Thorpe is right, you need to use JS. But how will you know how long to wait before redirecting/closing the window? It will depend on the clients connection speed, buffering rates, etc... I really don't know how you will do this without kicking a user off before they have finished watching the movie...

     

    You need to figure something else out, maybe like keeping a bandwidth counter in a session variable and using PHP filesize()... I dunno.

  3. Oh, specify the height in the row (tr) not the column (td). Then it should make the heights the same. As in:

    <tr>
    <td height='10'>
    </td>
    </tr>
    
    <tr height='100%'>
    ...
    

    Typically you specify height in <tr> and width in <td>.

  4. I'm pretty sure that wouldn't work actually... because PHP is server-side, so if anything, it will try to run sound recorder on the remote server.

     

    Try this:

    <a href='file://c:/WINDOWS/system32/sndrec32.exe'>record sound</a>
    

    it seems to work in IE (but you have to click 'run'). In FF you can only 'save' the file...

     

    Hope the above helps.

  5. [code]Here's you problem: change 
    

    if (isset($_POST['tellsubmit'])) {

    doTell($notice, $adminEmail, $subject, $websiteName, $defaultMessageClose, $link);

    }

    else {

    doTellForm($privacyPolicyLinkText, $privacyPolicyLinkURL, $defaultMessageIntro, $link);

    }

    [/code]

     

    to

     

    if (isset($_POST['Submit'])) {
    doTell($notice, $adminEmail, $subject, $websiteName, $defaultMessageClose, $link);
    }
    else {
    doTellForm($privacyPolicyLinkText, $privacyPolicyLinkURL, $defaultMessageIntro, $link);
    }
    

     

    (It's at the bottom of the script.)

     

    Hope that helps.

  6. It looks like your table is set to have three columns. So you need this code to make the second row span the entire table:

    <tr>
    <td height='10' colspan='3'>
    </td>
    </tr>
    

    I'm sure there's a way to do it in CSS too, I just didn't feel like looking it up. ;D

     

    Hope that helps.

  7. ME?

    You gotta be kidding me. :D

    Oh, I though anyone who finds that joke funny must be married... sry. 8)

    Me, I used to run Single 1.0, but I've upgraded to Single 1.2 because the new Over-The-Sink-Dining plugin is really nice.

  8. Maybe implement your 'support' link...

     

    Also, for security, block the following directories:

    1 ) http://www.trancehosts.com/images/

    2 ) http://www.trancehosts.com/pages/

    3 ) http://trancehosts.com/support/

    4 ) http://trancehosts.com/support/chat/config/

    5 ) http://trancehosts.com/support/chat/lib/

    6 ) http://trancehosts.com/support/chat/lib/commands/

    7 ) http://trancehosts.com/support/chat/lib/database/

    8 ) http://trancehosts.com/support/chat/images/

    9 ) http://trancehosts.com/support/chat/admin/

     

    I didn't really TRY to hack it, but I'm sure it's possible the way you've got it configured.

     

    A few other notes:

    1) How can you say "99.7% uptime" when you're not running the server, LiquidWeb is?

    2) I would do a lighter background with darker letters, but that's just my preference.

  9. Try this:

    <html>
    <head>
    <script type='text/javascript'>
    function changeFont() { document.getElementById('txt').style.fontFamily="Sans"; }
    </script>
    </head>
    <body>
    <textarea onclick='changeFont()' id='txt'>Here is some text whose font will be changed if you click here.</textarea>
    </body>
    </html>
    

     

    It shouldn't be too hard to modify it to work with a select dropdown.

    Hope that helps.

×
×
  • 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.