hi ,
i am getting file content from file_get_content funtion in php.
and want to store that file in particular folder.
how could i store that file in particular folder.
$image = file_get_contents('http://www.affiliatewindow.com/logos/1961/logo.gif');
i want to save this image in particular folder.
any idea abt it?
I have a Apache + Haproxy + Mongrel setup for my rails application. When I hit a particular server page, mongrel takes around 100ms to process the request and I get the page in around 5 secs due to data transmission time on my slow home connection.
Now I see that during these 5 secs of data transmission, mongrel does not serve any other…
I don't know how to explain this correctly but just some sample for you guys so that you can really get what Im trying to say.
Today is April 09, 2010
7 days from now is April 16,2010
Im looking for a php code, which can give me the exact date giving the number of days interval prior to the current date.
I've been looking for a thread…
I have a strange issue in which on rotating the Screen to Landscaped mode the Views present inside Remain at the same place But I cannot scroll them inside the screen.
How can I make them Scroll so that every thing that move out should be displayed properly to the user.
Should there be any more attribute to be set for allowing such kind…
hi,
i am using php/mysql.
i have a product table .
in which most product have starting name with number.
i want to listout all products start with any number.
any one have idea about it....
I have Windows 7 installed on my laptop. I want to know what is the best way to install MOSS 2007 on my laptop?
I heard that MOSS 2007 can be directly installed on Windows 7. I want to know if there are ny problems if I do this
Or should I install Windows SErver 2008 on VM and then install MOSS 2007 on Windows Server 2008. Is it…
I want to take a backup of my existing site and restore it on a different Sharepoint server. I know its easily possible through stsadm backup restore. But I dont want the content of my lists to appear in the restored sites. Is there any way to achieve this using backup or export command????
I'm using a thumbnail loader in my project the one mentioned below. The problem is that the it loads all the thumbnails properly except the ones who's size is of about 40K. When our back end is giving that sort of thumbnails are not generated and sometimes this eventually leads to a Crash too.
What m I supposed to do with this ?
…
How can I see a list of what global variables are defined in Matlab? (I am using R2009a).
I have hunted unfruitfully for this on Google and SO, so apologies if it has been asked before.
In my code I crated two UIView View1 and View2 out of which View2 rotates on finger touch using CGAffineTransform and View1 is drawn like Arrow shaped (triangle) using CGContext. The View1 is steady view (fixed) which Points (shown directed Up) to the Surface of View2 , So I want to detect the View2 surface points when it stopped…
Ok, here's the thing, I am creating an application in DevC++ that will read in a batch file. then, one by one parsing it using:
system(getline(myfile,line));
After setting everything up, I save the newly created file as "main.cpp".
The problem is, I want to compile it into an exe, from my program, for the end user.
So…
hi,
i have a query regarding to insert data in multiple table..
i have a two tables. one is item table and second is field table.
i want to insert data in both table with one query at a time.
any idea about it.
I am looking to host multiple ruby on rails apps and want to use lighttpd or nginx.How do I do multiple name server configuration. ?
I know how to do it in apache through webmin control panel.But trying to move away from apache here
In this catalog.xml file i have two books who have the same inventory i.e 20 . I want to write a xsl file that will display the most number of copies of a book in a catalog .if there are two or more books of the same inventory then they have to be displayed .
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl"…
I am new to PHP and regular expression. I was going thorugh some online examples and came with this example:
<?php
echo preg_replace_callback('~-([a-z])~', function ($match) {
return strtoupper($match[1]);
}, 'hello-world');
// outputs helloWorld
?>
in php.net but to my surprise it does not work and keep…
I am reading an .xls file using Spreadsheet::ParseExcel and was able to get data as is.
But,when reading an .xlsx file using Spreadsheet::XLSX, the read values are truncated.
E.g., 2.4578 in .xls and .xlsx file is read as 2.4578 and 2.45, respectively.
Please suggest why .xlsx file data is corrupted.
Hello all
I am using HTMLTable of import com.google.gwt.user.client.ui.HTMLTable
I instantiated it like below:
HTMLTable table = new Grid(rows, col);
Number of rows and columns are decided by the user input.
Now I want to used colspan for the specific rows of the table.
One way to this is apply css to the that…
hi,
i want to find values in array according to alphabate and want to make list in of array values according to alphabate order.
my array is like that:
Array (
[0] = Array
(
[0] = Adidas
[1] = AKG
[2] = Apple
[3] = Barrats
…
I have three models where a basiccase has a form. Basic case can create a new form.
class User < ActiveRecord::Base
has_many :basiccases
end
class Basiccase < ActiveRecord::Base
belongs_to :user
has_one :basiccases
end
class Form3C < ActiveRecord::Base
belongs_to :basiccases
end
I want…
Prior to submitting a form, I would like to check if a file has been attached and pop up a warning message saying that a file needs to be attached if it hasn't been. I was wondering how to accomplish this using JavaScript or Prototype or JQuery etc?