Questions tagged [tmp]

The traditional name of directories (especially on Unix and Unix-like operating systems) used to store temporary files. Also, the filename extension of temporary files.

317 questions
0
votes
2 answers

how to optimize this code in php file

Recently our server provider told us there are many tmp tables created on disk by Mysql , and cause Disk I/O abuse. I think this happens because of the below code: $features = db_get_array("SELECT DISTINCT(a.description), b.parent_id FROM…
0
votes
3 answers

posting an image to a php script that does expect it

if an image is posted to a php script but the php script isn't expecting an image to be posted to it, what happens to the posted image? does it still go into the /tmp folder on the server? example:
user1398287
  • 5,245
  • 5
  • 21
  • 25
0
votes
2 answers

PHP - /tmp permission error

Basically, I have an .htaccess file, with php_value session.auto_start set to 1. So my session will start in any file. However, now I have a script in my /functions folder, but it gives an error about the permissions of the /tmp, resulting in…
Isaiah
  • 1,852
  • 4
  • 23
  • 48
0
votes
2 answers

Mysql error : Error Code: 126. Incorrect key file for table '/tmp/#sql_52e_0.MYI'; try to repair it

When i running below query it gives me error as Error Code: 126. Incorrect key file for table '/tmp/#sql_52e_0.MYI'; try to repair it Query: Select id, first_name, last_name, communication_email,birthday,group_concat(email_template_id) as T from…
Suresh Kamrushi
  • 15,627
  • 13
  • 75
  • 90
0
votes
1 answer

Fedora 19: Best way to keep /tmp /var/tmp directories clean

Running on Fedora 19, I realized that my /tmp directory is out of space. Trying to find a solution I got confused. Most answers state that previous releases of Fedora used tmwatch as cron job, which is not the case in my Fedora 19. Other ways of…
raratiru
  • 8,748
  • 4
  • 73
  • 113
0
votes
1 answer

The file_name and raw_name came same in codeigniter , why?

I uploaded the file using codeigniter library "upload" and returned the file_name from method data() , but the file_name is the tmp_name i don't know why? any help
user2889070
  • 275
  • 1
  • 2
  • 6
0
votes
0 answers

AirPrint for unsupported formats (.doc, .ppt, .xls, etc.) works, BUT with a code-smell

Using the hint in this question one can print DOCX, PDF, ... by loading it into UIWebView: [webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:filePath]]]; Now, to get the filePath, I write the document-to-be-printed into app's…
Blaz
  • 3,548
  • 5
  • 26
  • 40
0
votes
1 answer

Casual error "can't create/write" err code 17

from a month I purchased a VPS with Centos 6 and Plesk 11.0. Since a few days (more often) happens that I get an email from cron plesk and all the sites with a mysql db fall with the error. SQLSTATE[HY000]: General error: 1 Can't create/write to…
Claudio Ɯǝıs Mulas
  • 1,116
  • 3
  • 15
  • 24
0
votes
0 answers

using the tmp folder on a apache

I just pushed my website from my local development environment to my remote server and I've run into some problems. Specifically with the use of the /tmp folder. As a test I ran this echo "the start"; $tmp = sys_get_temp_dir(); echo $tmp .…
Jeff
  • 3,943
  • 8
  • 45
  • 68
0
votes
4 answers

Downloading from /tmp folder in Heroku

I have a rake task that will generate a particular CSV file. I would like to be able to download that CSV file that is going to be placed in /tmp. My application is hosted in Heroku. How can I download that CSV file?
Hommer Smith
  • 26,772
  • 56
  • 167
  • 296
0
votes
4 answers

imagemagick - mini_magick tmp files error Ruby on Rails

Newbie Rails coder here.... spent way too much time trying to figure this one out any ideas? The following script works on my dev machine but fails in production. After this script fails - when I check /tmp folder the…
user2530431
  • 1
  • 1
  • 1
0
votes
3 answers

What are jartmp files?

I know it is probably a dumb question but I find no results in SO and no relevant results in google (here is the google search link where I searched 'what is jartmp'). I found there are many jartmp files in my folder and don't know why they…
keelar
  • 5,814
  • 7
  • 40
  • 79
0
votes
1 answer

Resize uploaded picture twice with php

I'm working on script which resizes a picture uploaded with PHP twice. I'm able to do one resize, but I would like to do another one. Here is my php code. (//600 is for the second resize). //Redimensionons l'image $source =…
casusbelli
  • 463
  • 1
  • 5
  • 22
0
votes
1 answer

Rspec test fails on Jenkins when open file from /tmp folder

I have such trouble with Jenkins. I'm trying to test PDF generation using RSpec. RSpec test failing, when trying to open receuntly generated PDF file. (File is saving into /tmp directory) //TEST pdf_generator =…
Denys Medynskyi
  • 2,353
  • 8
  • 39
  • 70
0
votes
0 answers

After alter the configuration of magento still product page connect to old database config

I recently add an new server for mysql, and moved magento database to new server. I Restore database to new mysql and alter the configuration (in Web server) in app/etc/local.xml file Removed cache, Magento admin panel > System > Cache management…