append part of php file
Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
6 posts
Page 1 of 1
What i'm trying to do is upload a file, and create a div inside of the page which has an image relating to the file depending on a setting in the program.
But I have no idea on how to achieve this.
I'll make an example of what I want as an image
![Image]()
I want it to choose the picture via the program, which will have a combobox.
Basically I want it to do create a new version of the code below for each file uploaded, with a link to the file.
But I have no idea on how to achieve this.
I'll make an example of what I want as an image

I want it to choose the picture via the program, which will have a combobox.
Basically I want it to do create a new version of the code below for each file uploaded, with a link to the file.
Code: Select all
<div class="mw3file"><img src="mw3.jpg" title="Modern Warfare 3 Render Pack" /><br /><a href="files/renderpack.zip">Modern Warfare 3 Render Pack.zip</a></div>
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that 

What is stored in the file ? what is the file? I didn't get your question too well lol
Axel wrote:What is stored in the file ? what is the file? I didn't get your question too well lolThe file is a savegame that is uploaded via the program and php, but I want when its uploaded the php file with edit another php file and insert the container posted above.
mandai wrote:Is this being used on a web server or is it offline?Its on a web server.
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that 

You might want to use a PHP script to list the files in a directory and output the HTML.
You could also use a script to upload files.
You could also use a script to upload files.
mandai wrote:You might want to use a PHP script to list the files in a directory and output the HTML.I tried making my own script using a form, but I couldn't get it to only upload a specific extension.
You could also use a script to upload files.
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that 

6 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023