Jump to content

jaymc

Members
  • Posts

    1,521
  • Joined

  • Last visited

    Never

Everything posted by jaymc

  1. When people try and connect to my site via https:// it can take 20+ seconds to load Any ideas what would cause this? Normal http: requests are instant Im wondering if its anything to do with the SSL Certificate lookup? Any ideas on how I can debug this Note: This only happens in IE and Firefox. Google Chrome it works perfect strangely? Firefox Timeout with this error while trying to load Connection Interrupted The document contains no data. The network link was interrupted while negotiating a connection. Please try again.
  2. I'm creating a site from ground up. It will have 100s of pages and a fair amount of content, some articles too I'm wondering what the best approach is to tackle the ability to have a translator change the text into another language without touching the code Mysql or Inc files to store the arrays of text My question is, what's the best way to include the text? If I put every bit of text into 1 big Lang array file it's going to be bad for resources What are the well known practical ways to accomplish this task? I care about resources but do have a lot of server power behind me Advice welcome
  3. I dont want to post URL on live board. I have messaged you it private Daniel if you think you can help My testing shows it works fine in chrom, firefox but not IE
  4. no, ive even removed the js for sanity I need a way to debug.. so IE can show me what its complaining about
  5. One of my webpages uses https: I am getting security warnings from IE about non secure items which of course means there is a mixture of secure and none secure elements on the page, e.g a http:// image Strangely, chrome and firefox say different. they say all content is secure I have went through my code a 1000 times and there is no image, js or css file etc that is coming from http:// Any ideas? Or, how can I get IE to tell me what its complaining about
  6. SELECT Age, abs(Age - $PassedAge) AS AgeDifference FROM SomeTable Order By Age Difference LIMIT 5 Worked
  7. jaymc

    https issue

    Its not me, its 1k users I cant ask them all to do that
  8. jaymc

    https issue

    My website uses global header and footers loaded via php So, the same header is called on every single page and in the header it contains javascript such as http://lite.site.com/java.js If I load my website via https:// IE gives warnings that some elements are not being sent secure (http://lite.site.com/java.js) So, to get this working its basically saying my header must be changed to https://lite.site.com/java.js but that means I will be calling dozens of files securely on none secure pages which I dont want to do How can I get around this?
  9. Hey guys. I use apache's mod_proxy to load balancer between 3 apache nodes. All seems to be working fine however sometimes my users, including me get this message Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /little_scripts/kiss.php. Reason: Error reading from remote server Apache/2.2.8 (EL) Server at www.sitename.co.uk Port 80 Any ideas why this would happen? The apache servers are up and running fine..
  10. Its peoples ages, and there is no set pattern hence the suggested of ke the absolute value of the difference between the given value and the column value may not work Basically if someone is 45 years old I want to pull out 5 people as close as possible to their age. Hence maybe 3 people are all aged 45 and there others are 46 and 44 Those are the ones I want Another case may be someone is 76 and the 5 closest are 77,72,72,71,69
  11. Hi I am trying to return 5 results of numbers that match a number I define. Kind of like a radius e,g I define the number 37 and the database pulls out: 38 36 39 40 31 I am trying to do this with one query, I dont want to run two queries using ASC for the first and DESC for the second Any ideas
  12. The developer has just signed the bot in his side and it stayed online Bare in mind the only person on its contact list is me and of course I did not speak to it..
  13. Correct The bot signs into msn, stays online for 20 seconds If you send it messages it will function as expected as in return messages back to you Strangely, by talking to it this causes it to stay online, until you stop talking Perhaps because the socket is active But no errors, just a general timeout kind of thing when there is no communication to the bot from an msn user
  14. Hi There are no errors. The msn bot will function perfectly but goes offline after 20-30 seconds. When that happens it is no longer in ps aux The guy who made it said he has heard of this issue from other people who use the bot but assures it works fine on systems he has tested which include windows/linux Hence, he believes enviroment issue such as php.ini setting / operating setting
  15. I checked ps aux and its hardly using any RAM or CPU, not to mention the machine has 5GB of ram anyway
  16. I only have one php.ini file Here are the key settings ;;;;;;;;;;;;;;;;;;; ; Resource Limits ; ;;;;;;;;;;;;;;;;;;; max_execution_time = 3600 ; Maximum execution time of each script, in seconds max_input_time = 6000 ; Maximum amount of time each script may spend parsing request data memory_limit = 3024M ; Maximum amount of memory a script may consume (16MB) ; Default timeout for socket based streams (seconds) default_socket_timeout = 3600 ; Maximum size of POST data that PHP will accept. post_max_size = 2048M ; Maximum allowed size for uploaded files. upload_max_filesize = 2048M I have also tried running it from the browser as apposed to ssh Any more ideas?
  17. I have tried it on two different servers One which is behind my own router another which is in a datacenter Both get killed after 15 seconds, tried with firewall off too Yes it does use fsocket but isnt setting the timeout based on if it cant get a connection as apposed to keeping it running for more than 15 seconds?
  18. Hi Thanks for answers Im running it via ssh php -q bot.php Its my server not a shared host. All enviroment variables such as memory, execution time are more than adequate Any other ideas?
  19. Hey, Im running an php msn bot My problem is that it loses connection after around 20 seconds. I have spoke with the developer of this and he says it works fine on 90% of servers He has advised that the script is being terminated by the OS / php My question is, what has the power to automatically kill a php script. I have checked php.ini and things such as max_execution_time , set_time_limit are both 10 minutes What other settings control when and if to terminate a php script that it thinks has been running too long
  20. Ah ok, calling mysql_affected_rows twice was the problem if (mysql_affected_rows() == "0") {echo "$password\nNoooooo";} if (mysql_affected_rows() == "1") {mp_password_generator($username, $amount);} Cheers
  21. I have edited that bit out and just called the function 100,000 times like this while($i < 100000){ $i++; mp_password_generator("jay", 300); } It still segfaults
  22. There is no recode.so in my ini file
  23. Can anyone give me any pointers as to why I am getting segmentation faults when I run this It usually dies between 10,000 - 20,000 loops I have ruled out it being include ("/home/jay/funcs/random_password.php"); or include ("/home/jay/includes/mysqlpass.php"); <? include ("/home/jay/funcs/random_password.php"); include ("/home/jay/includes/mysqlpass.php"); // #################### // GENERATOR PASSWORD # // #################### function mp_password_generator($username, $amount) { $keywords = array(150 => 'chill',300 => 'cool',500 => 'boss',1000 => 'enjoy',1500 => 'respect',2000 => 'bonus',2500 => 'power',3000 => 'loaded'); $campaign = $keywords[$amount]; $cashamount = $amount / 100; $password = random_password(9); $insert = "INSERT INTO mp_passwords_copy SET `password` = '$password', `username` = '$username', `status` = '0', `number` = '0', `rc` = '$campaign', `owner` = '$username', `referer` = '$username', `transID` = '0', `currency` = 'GBP', `transType` = 'SYSTEM', `amount` = '$cashamount', `date` = NOW()"; mysql_query($insert) or die(mysql_error()); if (mysql_affected_rows() == "0") {echo "$password\nNoooooo";} if (mysql_affected_rows() == "1") {mp_password_generator($username, $amount);} mp_password_generator($username, $amount); } while($i < 100000){ $i++; mp_password_generator("jay", 300); } ?>
  24. What is the best way to create unique passwords that will be stored in a mysql database e.g I want to create 10 unique passwords a day and store them in a mysql table. No password can ever be the same as a previous generated one Obviously I could use php rand() or something but sooner or later it will generate a duplicate password One way I thought was to check after trying to insert it if it errorer because of duplicate, if so, try and generate another one and keep looping through that until it passes. But thats not a very good way in my mind What is the best way?
×
×
  • 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.