---
title: "Discussion on \"Upload an image to main domain to sub domain  With Out Using Database\" | Hashnode"
description: "Discussion on \"Upload an image to main domain to sub domain  With Out Using Database\". To upload an image to one server and store it on a subdomain server, you can use cURL to perform a file transfer from one server to another. Here's a basic example of how you can structure your PHP script to achieve this:\nImage File Form\n<?php\n<form ..."
url: "https://hashnode.com/posts/upload-an-image-to-main-domain-to-sub-domain-with-out-using-database/656eee893ad9975393570744"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Upload an image to main domain to sub domain With Out Using Database](https://mushahirmohamed.hashnode.dev/upload-an-image-to-main-domain-to-sub-domain-with-out-using-database?utm_source=hashnode&utm_medium=feed)

To upload an image to one server and store it on a subdomain server, you can use cURL to perform a file transfer from one server to another. Here's a basic example of how you can structure your PHP script to achieve this: Image File Form <?php <form ...

Dec 5, 2023 · 5 min read · mushahirmohamed.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#php](https://hashnode.com/tag/php)
-   [#filesystem](https://hashnode.com/tag/filesystem)

## Written by

[Mushahir Mohamed 78](https://hashnode.com/@Mushahir)

@Mushahir · TRICHY

  
[View profile](https://hashnode.com/@Mushahir)

Web Developer

Hi, I'm Mushahir Mohamed, a passionate web developer with over 1 years of experience in building responsive and user-friendly websites and web applications. I specialize in front-end development using modern technologies such as HTML5, CSS3, JavaScript, and React.js and backend technology such as PHP Mysql.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
