php-general Digest 26 Oct 2012 14:01:24 -0000 Issue 8023
Topics (messages 319599 through 319607):
Re: URGENT! Need help with command line for "list all new/modified files within
the last 24 hours"
319599 by: Jim Lucas
319600 by: lamp.afan.net
319601 by: lamp.afan.net
319602 by: lamp.afan.net
319603 by: Jay Blanchard
319604 by: lamp.afan.net
319605 by: Alan Hoffmeister
Session data lost in Firefox
319606 by: John Boy
319607 by: Andrew Ballard
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
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/
--- End Message ---
--- Begin Message ---
> 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
>
>
--- End Message ---
--- Begin Message ---
> 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
>>
>
--- End Message ---
--- Begin Message ---
>
>
>> -----Original Message-----
>> From: l...@afan.net [mailto:l...@afan.net]
>> Sent: Thursday, October 25, 2012 9:16 PM
>> To: php-gene...@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!!!
:-)
--- End Message ---
--- Begin Message ---
[snip]
Third, if it is Linux, man find and you will find the answer you seek
[/snip]
RTFMP
--- End Message ---
--- Begin Message ---
> 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
>
>
--- End Message ---
--- Begin Message ---
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!
--- End Message ---
--- Begin Message ---
Hi
I have a wesite where PHP session data is passed page to page then shells
out to Paypal for payment then back to my website for completion of
transaction and update of mysql file. When using Firefox our session data
and POST data from Paypal is lost. This has happend only recently and has
worked happily in the past. Works in other browsers too. Anyone heard of
same problems?
mywebpage -> session data->mywebpage2->session data->paypal page->POST data
+ session data->mywebpage3
--
Johniboy
--- End Message ---
--- Begin Message ---
On Fri, Oct 26, 2012 at 8:49 AM, John Boy <serv...@greenholdings.co.uk>wrote:
> Hi
>
> I have a wesite where PHP session data is passed page to page then shells
> out to Paypal for payment then back to my website for completion of
> transaction and update of mysql file. When using Firefox our session data
> and POST data from Paypal is lost. This has happend only recently and has
> worked happily in the past. Works in other browsers too. Anyone heard of
> same problems?
>
> mywebpage -> session data->mywebpage2->session data->paypal page->POST data
> + session data->mywebpage3
>
> --
> Johniboy
>
Just a thought - does this depend on using third party cookies between your
site and PayPal? If so, do you have them disabled in Firefox?
Andrew
--- End Message ---