Jump to content

jaymc

Members
  • Posts

    1,521
  • Joined

  • Last visited

    Never

Everything posted by jaymc

  1. I have a flash player, it works fine apart from if I give it an mp3 file through php by setting the headers header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Content-Type: audio/mpeg"); readfile("folder/$id.mp3"); This works, the song plays ok, however, 1 in 10 times, sometimes more, sometimes less, the flash internet explorer is crashing with a send error report window, you know which one I mean Its 100% fine in firefox If I give it a pure mp3 file defined in the object params, it works fine It looks like its an IE problem and it must have something to do with the way Im streaming the mp3 file via php, or the headers etc Any ideas? Perhaps there is another way to stream rather than using readfile() Maybe this is a known issue and I need to change the headers?
  2. None of them work.. tried them all. I could use ob_start(); but Im not running it in a browser to flush the raw output to a VAR Command line based
  3. That stopped it from forcefully outputting, but did not send the output to the VAR <? $command = "/usr/sbin/apachectl configtest &> /dev/null"; passthru($command, $result); echo $result; ?> The output of $result was "0", not sure why as the reuslt of the command is "Syntax OK" Any more ideas?
  4. Did not work, it still outputs it without an echo, and, $result does not contain the return or any value
  5. I dont mind them being seen, I just dont want to include all my functions. It would be nice to just call the function where ever I like Not to bothered about portability, it is a bespoke application running on a bespoke server for that application
  6. I am running a php script via the command line, for example php -f script.php However, it is forcefully outputting the return of the command, without me echoin it etc Here is script content <? $command = "/usr/sbin/apachectl configtest"; $result = shell_exec($command); ?> I want $result to contain the output from the $command, at the moment, it does not and the output from the command is forcefully dumped In the manual, it is meant to output the return to the given VAR. This is not working. I have tried system, exec, passthru They all do the same Any idea why?
  7. Reverand, are you a bot? Ha
  8. $name = mysql_real_escape_string($_GET['name']); That will do everything needed to make sure dynamic user controlled input cant screw your query up
  9. I create a function, I dont want to have to include(); it every time I want to use it in a script Is there a way to have it stored in the php core library, if so, how?
  10. Good stuff Thanks dude
  11. Just to cover any problems before I get started Im right in saying that to create a capture I just need to set a unique number/word in a SESSION/COOKIE and match that visually on screen via an image? Then just compare user input vrs stored SESSION/COOKIE I guess not to use cookie as the bot can read a cookie thats saved on its machine? HAve I missed anything... any tips etc?
  12. In my opinion, yes. Simplicity for the original poster, no. If I update it in the DB, that will lock every computer from logging into that account But if I base it on SESSIONS, it will lock the "attackers" computer out I guess a captcha after 3 attempts is a nice comprimise Thanks again
  13. I disagree, if the site is used enough, it should be implemented~ Yeh true, I would love to avoid them at all costs, but avoiding them leaves you open to intrusion or DOS attacks I guess web standards of today must force implementation of captcha's this the script kiddy world of the internet has gone BOT mad
  14. Yes I know, I hate these dam script kiddies Thanks for tips guys I think session is a good one Maybe 5 failed attempts per IP Address too
  15. Im creating a feature on why website where as if a user enters the wrong password 5 times their account is locked for an hour, to prevent people trying 100's of passwords until they gain access, or a bot trying a dictionary attack All seemed well, although I've just thought, any of my members has the potential to lock someone elses account which in turn, stops the genuine member from loggin in I dont think there is a way around this.. maybe there is Is this just how it works, or is there a better way to stop people trying 100s of passwords to gain control of an account / bot doing a dictionary attack Cheers
  16. Ah yeh, just read that, looks like it should work although the DEMO did not work Will look into that Cheers
  17. How is it possible to give a % of uploaded/remaining I can tell the user how much they have uploaded.. but someone who is not computer lit wont know if uploaded so far = 4.7mb means they are roughly 5% through uploading a 100mb file.. I need some way to let them know the status of upload, not how much they have uploaded
  18. I believe in php 5.2 there is a new parametre to return the temp file location of a file upload, for example /tmp/4gvb4t5gFdfs This gives the ability to probe that file at intervales to check file size, which in turn tells us how much has uploaded... I want to create a live upload status/loading bar, for example, 57% complete For that, I need to know the TOTAL file size so I can do TOTAL_SIZE - UPLOADED_SO_FAR = mb remaining I know javascript cant do this without installing active x etc, is there a way in PHP to read the initial headers or something to get the file size?
  19. This forum does not use captcha's for new topics and posts etc How are you protecting your self from bots? Im currently going through the process of security my website from bot attacks, but really dont want to use captcha's as they are annoying!! Is there another way?
  20. This does not work if there is no space between words it will break the specific td size
  21. helloooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo Ah ok, this forum use overflow and forced a internal scroll bar. But how can I stop it from stretching the table, I want it to just drop onto the next line..
×
×
  • 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.