Search results

  1. W

    Php/Msql

    If you change DROP to TRUNCATE, you'll clear all data and maintain table structure.
  2. W

    Process PHP from a MySQL array

    "If eval() is the answer, you're almost certainly asking the wrong question" - Rasmus Lerdorf (Creator of PHP) With that said, the answer to your question is eval() :P http://www.php.net/manual/en/function.eval.php eval() can be used to evaluate a string of php code, however it's very...
  3. W

    Html =s

    Try taking "float: left;" out of the css for fieldsets.
  4. W

    checking whether something in online or not?

    They store the error number and error string returned. You have to pass variables there in order to set the timeout since the function requires a reference if the parameters are given. But anyway, it looks like php just doesn't support the mms protocol by default...
  5. W

    Help?

    He was using SAM Broadcaster and icecast2, though. Aside from the port forwarding part, that information is specific to MMS.
  6. W

    Help?

    You should leave it as port 8000. And your current icecast and SAM config should be alright. If you're able to connect to the stream on the server itself(your computer), then it's set up correctly. Other computers in your network would connect to the stream using your static internal IP...
  7. W

    checking whether something in online or not?

    I think this would work: if (fsockopen('mms://***.***.***.***', 5190, $errno, $errstr, 5)) { //whatever you want to happen if the server is online } Of course you'll have to put your server's IP there instead of the asterisks. The 5 as the last argument is for a 5 second wait time...
  8. W

    Online shop help/ Registerd globals

    As I said in my previous post, you need to replace the html entities. Also, it looks like there's some useless code with those require statements at the bottom. I believe this would work as intended: <?php /* $Id: application.php,v 1.5 2003/07/09 01:11:05 hpdl Exp $ osCommerce, Open Source...
  9. W

    PHP Pagination, can someone help please?

    I don't know how your db is set up, but perhaps you need to change "FROM pages" to "FROM users" in this line: $total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM pages"),0);
  10. W

    Online shop help/ Registerd globals

    They have an error in the code here: http://www.magic-seo-url.com/oscommerce/tips/running-oscommerce-with-register-globals-off.html Wherever you see "&amp;", replace it with "&". And wherever you see "&lt;", replace it with "<". You can do this quickly by just using a Replace All after copying...
  11. W

    Help?

    So does that mean that you've set up the new rule or what? You can probably delete those other rules you made, by the way.
  12. W

    Help?

    Alright, this is what you should have for adding the rule before you click Apply: Where "your comp's ip" is the *internal* ip of your computer. To get this, you need to go to Start>Run and type 'cmd' and hit enter. Then in the console that opens up, type 'ipconfig' and hit enter. Whatever IP...
  13. W

    Help?

    So this is the guide you were following? http://www.portforward.com/english/routers/port_forwarding/BT/Voyager2091/Icecast.htm Which part did you get confused at? Perhaps I can clarify it for you.
  14. W

    enctype not working....

    Would they really have the server set up to give a 500 error for something that's disabled? That seems like an odd and, in my mind, stupid idea. At the very least you'd imagine that they would have the cause entered in the error log. But regardless, if that is the cause, then solution is easy...
  15. W

    Help?

    You should only need one rule I believe, unless your router has a strange way of doing things. What router are you using? Did you completely follow the guide for it on portforward.com? Also, when I asked how your router is messed up, I meant what is different that would make you think it's...
  16. W

    enctype not working....

    I don't get it either. What are we talking about now? :P I only said it's *possible* that a misconfigured php.ini could cause a 500 error, but I wouldn't bet that that's the problem. A 500 is just too ambiguous. The code is definitely not causing it, though, so there's nothing any of us can do...
  17. W

    .htaccess

    As far as I know, this behavior is already defined in the server's httpd.conf file(which we don't have access to). I myself have never had to make any changes for this to occur. If for some reason it isn't working for you, then try adding this to the .htaccess file in your public_html...
  18. W

    Help?

    What do you mean by 5 separate ones? Five separate port forwarding rules? And how exactly has your router been messed up?
  19. W

    enctype not working....

    The server's giving a 500 error when he tries to upload, not a 404. Anyway, this is rather strange, but I don't believe it has anything to do with the code. That has no flaws, and I've never known a php script to generate a 500 error under any circumstance. A misconfiged php.ini *might*, but I...
  20. W

    integrate pdf reader in my site

    You may be able to make a pdf reader using php's pdf functions. But I'm not sure if these are available with x10's php package. As for the flash player, while it could be theoretically done, it's incalculably more efficient and easier to just have them install the flash plugin. I would say...
Top