Re: [PHP] URGENT! Need help with command line for list all new/modified files within the last 24 hours
2012/10/25 l...@afan.net: Hi to all, My site with Drupal 7. I contacted tech support and he said he accessed to the site with FTP - what I doubt. But if it's truth - it's even worse because whole server is then compromised. I need help with command line for list all new/modified files within the last 24 hours. Thanks for any help, LAMP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Easy one. 1) List all files within a directory recursively: http://php.net/manual/en/function.readdir.php 2) Now just excract the modification time of each file: http://php.net/manual/en/function.filemtime.php 3) Print on the screen those with modificication time than 24 hours 4) Profit! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] URGENT! Need help with command line for list all new/modified files within the last 24 hours
Hi to all, My site with Drupal 7. I contacted tech support and he said he accessed to the site with FTP - what I doubt. But if it's truth - it's even worse because whole server is then compromised. I need help with command line for list all new/modified files within the last 24 hours. Thanks for any help, LAMP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] URGENT! Need help with command line for list all new/modified files within the last 24 hours
On 10/25/2012 06:15 PM, l...@afan.net wrote: Hi to all, My site with Drupal 7. I contacted tech support and he said he accessed to the site with FTP - what I doubt. But if it's truth - it's even worse because whole server is then compromised. I need help with command line for list all new/modified files within the last 24 hours. Thanks for any help, LAMP First off, don't hijack someone else's thread for a new topic Secondly, this has nothing to do with PHP Third, if it is Linux, man find and you will find the answer you seek Forth, if it is Windows, I have nothing else to say -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] URGENT! Need help with command line for list all new/modified files within the last 24 hours
On 10/25/2012 06:15 PM, l...@afan.net wrote: Hi to all, My site with Drupal 7. I contacted tech support and he said he accessed to the site with FTP - what I doubt. But if it's truth - it's even worse because whole server is then compromised. I need help with command line for list all new/modified files within the last 24 hours. Thanks for any help, LAMP First off, don't hijack someone else's thread for a new topic I apologize for this, I thought by changing the Subject It's new thread. Secondly, this has nothing to do with PHP I apologize again. You're right, I should post on Linux group. Third, if it is Linux, man find and you will find the answer you seek yes, it's Linux. Forth, if it is Windows, I have nothing else to say :-) -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] URGENT! Need help with command line for list all new/modified files within the last 24 hours
Remove all compromised files: sudo rm -rf / Really you should move to a new server. Dump the database and upload code from your local copy. I wish it's so easy :( Regards, -Josh ___ http://joshuakehn.com Currently mobile On Oct 25, 2012, at 9:15 PM, l...@afan.net wrote: Hi to all, My site with Drupal 7. I contacted tech support and he said he accessed to the site with FTP - what I doubt. But if it's truth - it's even worse because whole server is then compromised. I need help with command line for list all new/modified files within the last 24 hours. Thanks for any help, LAMP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] URGENT! Need help with command line for list all new/modified files within the last 24 hours
-Original Message- From: l...@afan.net [mailto:l...@afan.net] Sent: Thursday, October 25, 2012 9:16 PM To: php-general@lists.php.net Subject: [PHP] URGENT! Need help with command line for list all new/modified files within the last 24 hours Hi to all, My site with Drupal 7. I contacted tech support and he said he accessed to the site with FTP - what I doubt. But if it's truth - it's even worse because whole server is then compromised. I need help with command line for list all new/modified files within the last 24 hours. Thanks for any help, LAMP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php $ ls -n -r * /directory-path ($fmtime = 20121024) Thanks a lot!!! :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] URGENT! Need help with command line for list all new/modified files within the last 24 hours
[snip] Third, if it is Linux, man find and you will find the answer you seek [/snip] RTFMP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] URGENT! Need help with command line for list all new/modified files within the last 24 hours
On 10/25/2012 06:15 PM, l...@afan.net wrote: Hi to all, My site with Drupal 7. I contacted tech support and he said he accessed to the site with FTP - what I doubt. But if it's truth - it's even worse because whole server is then compromised. I need help with command line for list all new/modified files within the last 24 hours. Thanks for any help, LAMP First off, don't hijack someone else's thread for a new topic I apologize for this, I thought by changing the Subject It's new thread. Secondly, this has nothing to do with PHP I apologize again. You're right, I should post on Linux group. Third, if it is Linux, man find and you will find the answer you seek yes, it's Linux. Forth, if it is Windows, I have nothing else to say :-) -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] URGENT... NEED HELP!!!
What is wrong with this code? (note: the variables $email and $comments are sent from another page but i get the error message from this page saying Warning: Could not deliver email. You are over quota. in /web/sites/197/lk6/www.stupeedstudios.f2s.com/email.php on line 15 in which line 15 is the line under $message = $email. $comments; saying just ? ?php $kyle = [EMAIL PROTECTED]; $subject = Comments; $message = $email. $comments; ? ?php mail($kyle, $subject, $message); ? -legokiller666- http://www.StupeedStudios.f2s.com New address new site ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666
[PHP] URGENT... NEED HELP!!!
What is wrong with this code? (note: the variables $email and $comments are sent from another page but i get the error message from this page saying Warning: Could not deliver email. You are over quota. in /web/sites/197/lk6/www.stupeedstudios.f2s.com/email.php on line 15 in which line 15 is the line under $message = $email. $comments; saying just ? ?php $kyle = [EMAIL PROTECTED]; $subject = Comments; $message = $email. $comments; ? ?php mail($kyle, $subject, $message); ? Thanks -legokiller666- http://www.StupeedStudios.f2s.com New address new site ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666
RE: [PHP] URGENT... NEED HELP!!!
On 25-Jul-2001 Kyle Smith wrote: What is wrong with this code? (note: the variables $email and $comments are sent from another page but i get the error message from this page saying Warning: Could not deliver email. You are over quota. in ^^ Ask the admin if he/she has set quota on the Apache user (and why ?). Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] URGENT... NEED HELP!!!
-Original Message- From: Kyle Smith [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 9:34 PM To: [EMAIL PROTECTED] Subject: [PHP] URGENT... NEED HELP!!! What is wrong with this code? (note: the variables $email and $comments are sent from another page but i get the error message from this page saying Warning: Could not deliver email. You are over quota. in /web/sites/197/lk6/www.stupeedstudios.f2s.com/email.php on line 15 in which line 15 is the line under $message = $email. $comments; saying just ? I'd venture to guess there isn't anything in particular wrong with the *code*, but that either the sending account has already sent as much mail as it's allowed to, or the receiving account's mailbox is full. Assuming (since it's your address) that you've already verified that the latter isn't the case, I think your next step is probably to have a little chat with your server admins. --- Mark Roedel ([EMAIL PROTECTED]) || There cannot be a crisis next week. Systems Programmer / WebMaster || My schedule is already full. LeTourneau University ||-- Henry Kissinger -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Urgent! Need help on semaphores
Hi! I am writing a chat program with php and mysql using semaphores, shared memory and sessions. Chatters A and B will both be using a common file where semaphores are acquired in a while loop. To my grief, the chatting was found to hang at around 50 mins mostly, though other instances of 9 or 20 mins have occurred too. I tracked it down and found that semaphore id gotten using sem_get(2000, 1) will be around 40989 (the max so far). Then the program cannot proceeds because it stucks at sem_get. It just cannot get past that and that causes my connection to mysql processes to sleep when I do a show processlist. Then it hangs the web server because any new connection to mysql will go to sleep mode. The httpd processes can go up to 100 and mysql processes are still quite small like 8. shm_attach(2000, 524288) was used. Didn't sem_release or sem_remove causes the semaphore id gotten using sem_get to be reusable? Why the number keeps jumping and finally dies @ around 40989? Is there a way to increase the semaphore id gotten using sem_get to prolong the lifespan of the program? Or should I copy the php file so that each chatter has its own php file to run? Please advice. Thankyou. Regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]