Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I have to copy a file multiple time in a folder. I have a image in a folder with name 1.jpg. I want to copy same image(1.jpg) up to ten times and rename it with 2.jpg,3jpg and so on. Please help.
Use this:
<?php
$file = '1.jpg';
for($i=2;$i<=10;$i++)
{
copy($file, $i.'.jpg'));
}
?>
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I am working on a site http://www.lemongrasshouse.com.au/ i am changing code inside /public_html/lemongrasshouse.com.au/catalog/view/theme/lemongrasshouse/template/common/footer.twig
but its not affecting the site.
Can anyone help me in this matter
Thanks
Somdeb
Have you also edited that twig file via the built in editor in Design > Theme Editor? If so, it will use that one (which is stored in the database) rather than the file itself.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I want to get files (images) in my folder on a ftp in my wordpress site.
How can i do that ?
My path to files on ftp : "/public_html/wp-content/uploads/image.png"
Thanks for the help
If you want WordPress to use the images, you'll have to upload them through the media uploadr. otherwise, you'll have images but no Database associations. I'd strongly advice against an FTP upload.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I have a webpage weblup(dot)net/templates/template3 (replace (dot) with a '.') and it just crashes when I run it. It was working fine not long ago but I have no clue why it's crashing all of a sudden. The biggest change before this happened was that I changed a picture.
Your Website have error in logo.png and it's to big to load in website. (16620 x 9333 pixels).
Solution: Change Your Image and resolution Image
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
Laravel
What mistake am I actually doing?
Please have a look at the image below:
http://1drv.ms/1ybX4Cg
I think
$body['user_id'] = $user()->id;
should be
$body['user_id'] = $user->id;
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
I have thousands of files sitting in a MYSQLi database with extension .BLAH . I need to change the extension for all those files to .BLAH2 .
What would be the easiest way to accomplish this?
Many thanks for reading.
You can achieve this with a simple update set and replace.
UPDATE files set file = replace(file, 'blah', 'blah2')