Changing file extension for 7000 files in database [closed] - php

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')

Related

PHP Page Not Loading Content/Data [closed]

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 days ago.
Improve this question
Out of the blue, my old website stopped loading content and I can't figure out why:
https://unwork.nu/#/design/cir5-catalog/
Attached screengrab of error:
Does anyone have any ideas? It it a server issue?
I've looked into the PHP files but I'm not versed enough.

Open cart footer.twig file changes not reflecting [closed]

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.

Access to ftp image with wordpress widget [closed]

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.

Error encounter using PHP and MySQL [closed]

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 have problem about PHP and MySQL. I write information to MySQL database, but "ü,ö,ğ,ç,ş," letters change to çşöğüıə.
Looks like an encoding problem.
Try utf8_encode() function.
You may wanna refer to this: utf8_encode() manual
Hope this helps.

How to copy a file multiple time in php [closed]

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'));
}
?>

Categories