U wanna download image by url from other server?

|
coder 2021-07-25 12:01:53
Gallant 2021-07-25 11:59:41
Good afternoon

I want to get the URI of my file like this mydomain/images/img.82736.png, but I have only the name or the image stored in MySQL with the $_FILES[“file”][“name”]

How do I encode or Maybe concatenate my json response to echo the URI of my image on my server a uri

Stuck on this for like 3 weeks now
I can’t get around it

alvisabit 2021-07-25 12:38:15
Somebody give me work. I will do PHP.
lolnloll 2021-07-25 17:10:06
Gallant 2021-07-25 11:59:41
Good afternoon

I want to get the URI of my file like this mydomain/images/img.82736.png, but I have only the name or the image stored in MySQL with the $_FILES[“file”][“name”]

How do I encode or Maybe concatenate my json response to echo the URI of my image on my server a uri

When you are storing $_FILES[“file”][“name”] in database , you should move tmp file to your directory on your server.

You can use this method in php

move_uploaded_file();

Search this method in google

lolnloll 2021-07-25 17:14:33
Arpan Kumawat 2021-07-24 15:49:38
How can I connect remote MySQL??
Anybody…..

At first You should add your remote script address(domain) to your db host cPanel or some one.
Then create a user grant.

Search in google. There are many ways.

denishkoyani 2021-07-25 18:31:18
codeslide-39001.jpg

denishkoyani 2021-07-25 18:31:38
codeslide-39002.jpg

kscs2020 2021-07-25 19:12:22
Anyone know id google ads can slow down a site? Handles ok upto about 600 users then juat starts hanging and timeing out…
Jordans_Telegram 2021-07-25 21:18:33
denishkoyani 2021-07-25 18:31:18

Please use ()

Jordans_Telegram 2021-07-25 21:18:45
Before empty
denishkoyani 2021-07-25 21:19:56
denishkoyani 2021-07-25 18:31:18

Bro i already used

Phpdev21 2021-07-25 21:23:49
Space remove in first name = first_name
Jordans_Telegram 2021-07-25 21:26:11
denishkoyani 2021-07-25 21:19:56
Bro i already used

Use with every empty()

denishkoyani 2021-07-25 21:26:32
Okk
Tania2a 2021-07-25 21:53:48
kscs2020 2021-07-25 19:12:22
Anyone know id google ads can slow down a site? Handles ok upto about 600 users then juat starts hanging and timeing out…

600 users? You mean the visitors? Or registered users.

Likely the cause of workers is something else, try look more into it

Gallant 2021-07-25 21:56:25
lolnloll 2021-07-25 17:10:06
When you are storing $_FILES[“file”][“name”] in database , you should move tmp file to your directory on your server.

You can use this method in php

move_uploaded_file();

Search this method in google

Thanks alot
But I’m talking about how to get the image as a uri

lolnloll 2021-07-25 22:24:06
Gallant 2021-07-25 21:56:25
Thanks alot
But I’m talking about how to get the image as a uri

U wanna download image by url from other server?

If u wanna download image by url in your server, you should use cURL(for any small or large file) and file_get_contents and file_put_contents (for small files)

lolnloll 2021-07-25 22:30:05
Gallant 2021-07-25 21:56:25
Thanks alot
But I’m talking about how to get the image as a uri

But if u wanna make your image uri so at first store image path like( upload/images/image-000.png) in your database.

After u can make uri : http:// localhost/upload/images/image-000.png

lolnloll 2021-07-25 22:39:52
ukforizone 2021-07-21 21:19:34

Change …on(‘submit’) to $(‘btn’).on(‘click’) and test it.

yash14x2 2021-07-25 23:31:48
codeslide-39026.jpg

yash14x2 2021-07-25 23:32:25
codeslide-39027.jpg

yash14x2 2021-07-25 23:32:49
It’s giving an error that undefined index Id?
Gallant 2021-07-26 03:18:42
lolnloll 2021-07-25 22:30:05
But if u wanna make your image uri so at first store image path like( upload/images/image-000.png) in your database.

After u can make uri : http:// localhost/upload/images/image-000.png

Emm
Thanks alot

Seo J 2021-07-26 04:37:15
where is a mistake here?
Shubham Bhatia 2021-07-26 09:09:54
codeslide-39058.jpg

lolnloll 2021-07-26 09:12:43
What’s your problem?
Hey_moonblis 2021-07-26 10:02:12
Hlo
S Sam 2021-07-26 10:30:20
My database queries taking much hours to execute , and loading more time so wt is the solution
lolnloll 2021-07-26 10:32:05
S Sam 2021-07-26 10:30:20
My database queries taking much hours to execute , and loading more time so wt is the solution

This depends to many different things.
Like your system resources, your query and so on

S Sam 2021-07-26 10:32:39
lolnloll 2021-07-26 10:32:05
This depends to many different things.
Like your system resources, your query and so on

Hmm my query is taking much time so wt to do how can I reduce that

lolnloll 2021-07-26 10:33:07
S Sam 2021-07-26 10:32:39
Hmm my query is taking much time so wt to do how can I reduce that

Send your query

Hamza Pervaiz 2021-07-26 11:55:28
codeslide-39086.jpg

Hamza Pervaiz 2021-07-26 11:55:45
Ya issue arha h sara data request payload m show ho rha h plz ya bata dy is ko kysy hide karo
Hamza Pervaiz 2021-07-26 11:56:34
How to hide request payload
Hamza Pervaiz 2021-07-26 11:57:02
Plz help me this api make on laravel 8 or passport
Swetha Sri 2021-07-26 14:32:24
Hi can anyone tell how to specify the uploaded time and date for each file in directory while uploading
|