Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    PHP




File Automatically Being Deleted


Whenever index.php or .htaccess are created in a directory, they are automatically deleted. I'm guessing it is some kind of backdoor attack. Setting permissions to read only didn't help.

Does anyone know how to see what is deleting the file? or protect it?




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Copy() Deleted File?
I use this to upload boxart for games for my site.

How Can A Line Be Deleted From A Text File
Since, I cannot seem to delete the last line in a text database using the code below.

What other way can I delete a line from a text file?

Mkdir() How Do I Automatically Make A Index File And A Css File
using mkdir() how do i automatically make a index file and a css file. what i really mean is once the directory has been made how do i make it so i have a index and css file there, its just because im making a forum hosting service and i need all the files automatically set up in the directory. how can i do this?

Sending Information To Another File Automatically...
Im just having issues sendind some data from one file to another automatically without the users input so far I have:

   echo "<form method='post' action='contest.php'>
      <input type='hidden' name='previously_entered' value='already_entered'/>
   </form>"; }

and on the contest.php I have:

 $previously_entered = $_POST["previously_entered"];

   if ($previously_entered == already_entered) {
      echo "<td class='mediumText' valign='center'><font color='red'>Sorry, but you have already entered!!</font></td>";
   } else {
 echo "<td>", tep_draw_separator('pixel_trans.gif', '100%', '10'); "</td>"; }

But with the code I have that's action is contest.php, it doesn't automatically goto contest.php. Now, I haven't done any php or html in a while so call me a "Newbie" but I can't for the life of me remember howto setup forms to automaticly forward that data on... if you get what I mean.

File Upload From The Imagefolder Automatically. Without Prompt User
I have a problem and the problem is – I want to upload file to the
server from a folder automatically.

Like- I have a folder & name is- `imagefolder' and there have 10 or
more file (e.g. gif, jpeg etc.). And I have a `Upload' button. When I
will click on this `Upload' button the Fill upload process will be
start without prompt user, and file will upload from the 'imagefolder' automatically.

Directory Deleted
So far i m using following code for deleting folders and files.But it will
only delete those folders which r empty.I want to delete those folders also
which has some files.pls give me the solution

<?php
error_reporting(0);
include("../connection.php");
$date = date("m/d/Y"); //For finding current current
function dateDiff($dformat, $endDate, $beginDate)
{
$date_parts1=explode($dformat, $beginDate);
$date_parts2=explode($dformat, $endDate);
$start_date=gregoriantojd($date_parts1[0], $date_parts1[1],
$date_parts1[2]);
$end_date=gregoriantojd($date_parts2[0], $date_parts2[1], $date_parts2[2]);
return $end_date - $start_date;
}
?>
....................

Get ID Of Deleted Items
I wonder if there is anything similar to "mysql_insert_id();"
for deleted/updated id's?

If i do a query and DELETE WHERE text_field="",
can i get the id's of the fields that were deleted?

Session Files Will Not Be Deleted
My problem:

- i dont wan´t to destroy the session
- i want that the session will be deleted by "php" when the gc maxlifetime parameter hits
- i can turn this parameter on what i want - nothing will be deleted!
- in my specail case - i make use of session_save_path - i use my own

Could it be, that "php" doesnt delete session files in own session_save_paths ?

Deleted Php.ini And Cant Produce An Error
I deleted every instance of php.ini on my computer and restarted IIS. I was hoping i could envoke an error so I can figure out which php.ini it was using. But my application runs normally.

Help! Need To Recover Deleted Tables!
Im not sure if Im in the right place here but ..

I am using a unusual combo of PHP MSSQL ODBC and MSAcess on a windows
server 2003 box. All my tables in a database were deleted using the
SQL "DROP TABLE" command. Can these be recovered? And if so, how?

Deleted Record Still Being Counted.
Can anyone see any reason why this query would not return the number of rows containing the correct "EID" "CID" where email address is "cs.com" or "webtv.com".....

for some reason it always returns 1 even if the database is empty. The only other flaw that I see is that I had a record that matched this criteria, then I deleted it from the database, but it still seems to want to count it for some reason. PHP Code:

$_SESSION['data'] Not Being Deleted?
I got a login script that basically does that: checks wether username and password is in a mysql file and then sets the variable loged_in to 1 like that PHP Code:

Filling In For Deleted Images
I am creating an image gallary where the images are numbered 1, 2, 3 etc. Users will be uploading the images so if i need to delete an image, I need the code to be able to check if that number has been deleted and replace it with the next uploaded image. I have the code pulling from a txt file with a counter to name each file.


The problem is that if images "36", "29" and "2" are removed... I need those slots to replaced in numerical order with the next uploaded images. So the next image will be named image "2" and will show up as the 2nd image on the page. Code:

Info Deleted Itself From Database?
I got some info (news system) in a SQL database but after some days it deletes by itself it happened to me once but i thought i didnt remembered that i deleted it but today it happened again...it deleted by itself! lol

I have other tables in the same database so its a table problem...

How can i fix this? Did i miss something at the table configuration?

I've Deleted Admin Username And Password,
I've deleted my admin username and password which was initially set at test. Now I can't log into my website as the administrator. How do I put Username and Password back so that I can set my own password and username again, log in to my website and edit it. Which file do I have to edit, and where do I re-set the Username and Password?

Updating Id Numbers To Be Consecutive After Deleted Some
I have a list of ip addresses that have accessed my web site and i have check boxes next to them so i can delete whichever ones i want. after i delete them, i want the name_id field to re-autoincrament after the other rows have been deleted. does anyone know how to do this? i know this line can set the autoinc to a new number, but how do i re autoinc the whole table?

Character Deleted And Mail Function
I use the mail function in order to send mail on a LAN Lotus Notes
server (SMTP). I send big html mail with the "MIME-Version: 1.0
Content-type: text/html; charset=iso-8859-1" format.
But, in the message, some characters are deleted, one for 10 lines.

After a test, (message with 1234567890), a character is deleted
approximately every 1000 character.
Have you some ideas ? The problem is coming from php or Lotus Notes ?

Script To Access Expired/deleted Domains?
Does anyone know if there is a script available to access expired/deleted domains? If not, does anyone know how do you get access to the daily expired/deleted domains database?

Reset Row "id's" After Arbitrary Value Deleted
Is there a way to reset the auto_increment value and all subsequent values for that table if you delete an arbitrary row?
example:

row 0 - test info
row 1 - test info
row 2 - test info
row 3 - test info

new auto_increment value = 4

I delete row 2, so table looks like:
row 0 - test info
row 1 - test info
row 3 - test info

the auto_increment is still 4, but there are only 3 rows in the table and the values are not correct. Is there a function or easy way to "reorganize" the row values and reset the auto_increment?

A "few" Old Session Files Never Deleted?
I have session files stored in a special tmp directory specific to a
virtual host instance. The Max_lifetime is long 86400 (1 day) which I
don't suppose is the problem.

Anyway the sessions do indeed expire and "most" of the old session
files disappear as expected.

Not all however. I am finding several old session files with Unix
last mod times weeks in the past.

This behavior observed on PHP 4.2 and 4.3.

PHP Add Crontab Automatically
I need to create an install file, the purpose is that user don't have to go to CPANEL and add CRON JOBS manually. I need one file, that add CRON JOBS automatically without log into CPANEL.

Here is my function :

function addLynxCron() {
$time = time();
//dump crontab list to text file
$command1 = "crontab -l > ./tempCronLynx$time.txt &";
exec($command1);
chmod ("./tempCronLynx.txt", 0777);
$forFile = "";
$url = $_SERVER['SERVER_NAME'];
$path = $_SERVER['PHP_SELF'];
$cronCommand1 = "lynx -dump */15 * * * * http://$url/cron.php";
$cronCommand2 = "lynx -dump */15 * * * * http://$url/email_cron.php";
$forFile .="$cronCommand1";
$forFile .="$cronCommand2";
$fp2=fopen("./tempCronLynx2$time.txt", "w");
fwrite($fp2, $forFile);
fclose($fp2);
//create new cron jobs
$command1 = "crontab tempCronLynx2$time.txt ";
exec($command1);
echo "crontab successfully added.";
}

The function above is not working...

when I check the file tempCronLynx2$time.txt is correctly written with the
cron jobs I want. But it failed when added the new cron jobs using that files

$command1 = "crontab tempCronLynx2$time.txt ";
exec($command1);

anyone please help with this problems...

Run Program Automatically
I want to create the option for my clients to create their own e-mail address. When I do this in Telnet, I have to run the command 'vadduser' It then asks me for a username, I want to assign this automatically. (1,2,3,4 etc etc)

It then asks me for a password, I want this to be something the user has already given in a form (before the script was run). It then has to be retyped. Those two things can be done automatically. It then asks if I want to assign a disk quota (YES) and then asks for the number of megabytes (1) That's it. Are there any examples available of how to do this?

Best Way To Automatically Log Out After Certain Time
What is the best practice for automatically logging out users after certain amount time after the last page request?

Is this a php job or a javascript job? It seems that javascript can't be relied on, and that php might have to store something in a database.

Perhaps the php version could use a $_session var. I could be reset every page request and compared. But then that wouldn't change the browser display. Maybe a mixture of php and javascript?

Automatically Add Slashes
Is there a function that automatically adds the extra slashes needed for html inside echo statements and such? It's a real pain to go back and edit. There has to be an easier way besides using template systems.

Automatically Thumnailing
I am writing a PHP script that can automatically thumnailing an image.

How To Automatically End A Session ?
how to automatically end a session ? i want the session to end automatically instead of the user clicking on log out ? how do i run session_destroy(); automatically ?

Automatically Update .zip?
Is there a way to make a dynamic zip file that updates along with changes to a folder? I have a folder with about 75 images that grows/changes every other day,and I'd like to offer them as a download. My problem is that I don't want to waste time manually doing this, so is there a PHP way to do it (or any other language, if not PHP)?

Automatically Adding 1
I have created a database for a house points system. Everything is working fine, but there is one thing I can't do. I want to be able to click a link, and for the person to have 1 point added to them. It goes like this so far: Code:

How Do I Reduce An Image Automatically?
I did a script that generates a thumb of the normal image( is not well a thumb, why the image is great ), but the matter is that I catch the image size, I multiply by 70 and divide for 100 to generate an image a little smaller of the original. That I happens wanted this image was generated with a maximum size.

Example: If I have an image with 1536px and do that process, she stays with 1075px. But I wanted her to get at most with 500px. How Could I do that?( If I decrease the 70 the smaller images stay very small )

Looping Through Incrementing Automatically
Before I ask its propably best to show you my code PHP Code:

Automatically Check Email Acc
I am still looking for a script (preferably PHP) that automatically POPs (checks) my email account every 20 minutes and sits serverside.

How To Automatically Link And Shorten Url??
I know how to automatically link the url. I saw the past log and figured it out. PHP Code:

Automatically Linking URL's
When somebody enters info into a form on my page how do I make the script I am using automatically make URL's into links?

Automatically Print The Corresponding Value In The Same Page
i have 5 sets of text boxes in the table. what i was thinking to happen is like, when i input something in the text box 1, and hit a certain key (tab-key or whatever key), it'll automatically check the database, and when it reaches it's corresponding value, the value will be printed out in the same page i'm accessing.. and then, i can type again to fill other text boxes.

Automatically Running A Script
Can anyone tell me how to run a set script which will be a mysql query at a certain time each day?

Automatically Detecting Tables In A Db
Is it possible to write a script that, when provided with a database,
it will return all the tables names?

I will go onto try and put together a script that will not only output
the table names but also output the sql code required to CREATE the
table (i.e. CREATE TABLE example (exampleid auto_increment not null
primary key integer, name text, email text);) - Is this pretty simple
to do? Are there any free scripts online that would do this?

Automatically Creating Pages
I was wondering how to , when a page gets filled up too much with comments by visitors, add the next batch of messages on a new page. For example, you know how this forum has a minimum post length for each page and then starts putting the newly created posts on a new page: how do you do that?

Add Backslashes To Every HTML Automatically?
Is it possible to add backslashes to every HTML and PHP special character automatically?
There are many functions that do this partially, like "addslashes", and "quotemetadata", but isn't there a single function that does does it all?

Treemenu Append Automatically
Here i got a problem to append my treemenu file automatically. this mean that the user haven't need to click the main title of menu to display their subtitle(allow the user to done other funtions on it).

Automatically Reshuffling The IDs In MySQL?
Everytime I make a new table, I would firstly declare an ID field. (yeah I guess thats the root of the problem.) Take for example, we have 5 entries. If I delete entry 3, then the IDs will still be...

1
2
4
5

instead of getting the favoured 1,2,3,4 How, or what should I do to prevent this? I don't see any default ID fields in MySQL...is there any?

How To Automatically Display From A List Box?
I am working on a PHP/HTML form which supports End User queries.

I need the user to select a combination of Airline and corresponding
place of Origin. i,e
Delta - Madison, Dallas, Atlanta
KLM - Amsterdam, Houston, Detroit
Brit - New York, London, Seattle

I have a list of Airlines in a list box. The moment the user selects an
Airline(Delta) from the List box, the list box below it needs to have
(Dallas, Atlanta, Madison) as its options.

How is this done? How do I use a listbox selection as a trigger an
automatically start the next activity?

Automatically Clear A Table
Is it possible to have a table automatically clear its contents at a set time everyday?

Create A New Table Automatically
How do i create a new table automatically using php code in a script ?

Automatically Send Email
Is it possible in php to automatically send an email out on someone's birthday?  I mean without anyone clicking a button to do so?  If so, please let me know.

Automatically Determine A Swf Dimensions
I am not sure whether you are actually able to retrieve the dimensions of a flash game from code.

But is done seem that Miniclip.com are able to do it, but I am still not sure whether the dimensions are being retrieved from the database or not. Code:

Running A Script Automatically
I have a script which I need to run automatically.. Literally what it does is add data from one database into the other. Literally between a forum and a e-commerce script. So when they sign up which the forum they are also signed up at the e-commerce site. How would I make it so the script ran automatically every 15 minutes.

List Into MySQL Automatically?
I want to insert the names of these links into my MySQL database, and assign them an auto-incrementing id number. The auto-increment isn't a problem, I want to know if there is a way to insert the names of these school names, without having to type them in individually which would be a very painstaking process.

Making Vars Global, Automatically.
Is there any way to specify that a global variable can be used in function scope instead of having to explicitly say it's 'global' in every function that uses it?

PHP/mySQL Running Tasks Automatically?
I have a MySQL DB with all my client details (name, email address etc).

I want to use PHP to retrieve records from the DB and email each of these clients (easy enough) BUT I want the system to automatically do this at pre-defined times.

I have thought about using the UNIX/Linux CRON utility to perhaps call a PHP script that would retrieve specific records (based on a timestamp perhaps?) and then have it email based upon those records.

Does this sound feasible? Are there better ways to do this?


Copyright © 2005-08 www.BigResource.com, All rights reserved