Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


Advertisements:




SuperbHosting.net & Arvixe.com have generously sponsored dedicated servers and web hosting to ensure a reliable and scalable dedicated hosting solution for BigResource.com.







SIMPLE Mp3 Upload Mgr Script


i need to allow for users to upload their [mp3] file (client side folder browsing would be awesome, but i would guess that makes it not "simple"). once i get the files into my db (assuming MySQL 4.1 can do it?).

i'm going to need to do some custom script of my own which i want to be able to allow the user who uploaded that file to make comment about it. i'd also like to add just small-- even varchar for file title-- so the [mp3] file can then be downloaded by another user easily based on file-name. Code:


View 9 Replies (Posted: 11-08-2005, 08:20 AM)

Sponsored Links:

Related Forum Messages:
Changing A Simple Upload Form To A Multiple Upload Form?
I have the following code that works fine:

<?php 
error_reporting(0);
$change="";
$abc="";
define ("MAX_SIZE","400");

[Code]....

But i would like to tweak it so that it there are two image upload forms and these two images are both resized and stored.

example:

what the script does now is: form 1 => (processing) => resized image + thumb

what i want it to do is

form1 + 2 => (processing) => (resized image 1 + thumb 1) + (resized image2 + thumb2)

Posted: July 05, 2010, 01:29:46 PM

View 1 Replies!   View Related
File Upload - Not So Simple...
I can't find an answer to a seemingly simple question. I have three files:

form.php:
<form enctype="multipart/form-data" action="process.php" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="1024000" />
Send this file: <input name="userfile" type="file" />
<input type="submit" name="Submit" value="Send File" />
</form>

index.php:
if ($mode == 'addfile') include ('form.php');

process.php:
if ($Submit == "Send File") {
$uploaddir = '/katalog/'
$uploadfile = $uploaddir . basename($_FILES['userfile']['name']);
echo '<pre>'
if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
echo "File is valid, and was successfully uploaded.
";
} else { echo "Possible file upload attack!
";}
echo 'Here is some more debugging info:'
print_r($_FILES);
print "</pre>";}

When I run form.php - the upload is working fine, I don't understand why the
identical form, which is printed at "index.php?mode=addfile", doesn't work
(message "Possible file upload attack!", array $_FILES empty). The same
happens when the upload form is printed with "echo" instead of "include
('form.php')". Does anyone know what is going on?

Posted: July 17th, 2005 09:37 AM

View 1 Replies!   View Related
Simple Image Upload
<?php
require('admin_nav_left.html');
$mode=$_POST["mode"];
//***********************************
//SUBMIT FORM
//***********************************
if ($mode == "submit")
{
//FORM DATA
$wholesaler_id=$_POST['featured_wholesaler_id'];
$text=$_POST['description'];//Image
if ($_FILES['featured_retailer_image']['size'] != 0)
{

$f=$_FILES['featured_retailer_image']['name'];
$filename="images/".$f;
...

Posted: 01-09-2006, 06:01 PM

View 7 Replies!   View Related
Simple Upload And Save Jpeg
this is my first time trying to let folks upload a picture and save
it. I use a very basic html file input from

<form action="picact.php" method="post" enctype="multipart/form-data">
<input name="picture_name" type="file" id="picture_name">
<input type="submit" name="Submit" value="Submit">
</form>

In picact.php I try to run a simply copy function

if(!(copy($picture_name, "images/picupload.jpeg"))){
echo "trouble"; }
else {
echo "worked";}

it tells me it worked, but there is no file in the images folder, so I
don't know what is going wrong. does anyone have any advice?

I am using a static file name for now, to avoid any trouble with
variable names.

Posted: July 17th, 2005 11:24 AM

View 1 Replies!   View Related
Write A Simple Upload Script
I am trying to write a simple upload script, I will be making it a lot more involved later on, for now I just want it to work. The php code seems to cause nothing on the page to display: Code:

Posted: March 12, 2007, 09:43:54 AM

View 14 Replies!   View Related
Simple Text Upload Script
PHP Code:

if ( $_POST['type'] == "editor" )
    {
    $fh = fopen("doghousecomics/dhcstylesheet.css", "w");
    fwrite ($fh, $_POST['style']);
    fclose($fh);
    header("Location: member/styleeditor.php");
    exit();
    }


For some reason, nothing about that works. I know for a fact that the if returns true, but neither the file overwrite nor the redirect are working. Could it be a problem with my path references? Or my server configuration? I've made sure the permission on that file is 777.

Posted: 02-15-2007, 09:21 PM

View 5 Replies!   View Related
Issues With A Simple FTP Upload Script
I'm kinda new to PHP, and I'm trying to make a simple FTP upload script. It successfully connects to the server and logs in, but it can't upload. The transfer mode I use normally is ASCII (like I have it in the script), and for now, I have the mode set to passive (although I'll give a choice later on when I actually implement the script). (I starred out the password here, it is in the file, though.)

<?php
$source_file='C:Documents and SettingsP J.PJCOMPUTERDesktopdl.txt'
$destination_file='dl.txt'
// set up basic connection
$conn_id = ftp_connect('ftp.pehjota.com');
// login with username and password
$login_result = ftp_login($conn_id,'pehjotauploads','******');
// check connection
if (!$conn_id){
echo "Connection failed!<br />";
exit;
} else {
echo "Connected.<br />";
}
if (!$login_result){
echo "Login failed!<br />";
exit;
} else {
echo "Logged in.<br />";
}

// upload the file
$passive=ftp_pasv($conn_id,true);
$upload=ftp_put($conn_id,$destination_file,$source_file,FTP_ASCII);
// check upload status
if (!passive){
echo 'Failed to enter passive mode.<br />'
}
else {
echo 'Entered passive mode.<br />'
}
if (!$upload) {
echo 'Upload failed! Could not upload "'.$source_file.'" to "http://www.pehjota.com/uploads/'.$destination_file.'"'
} else {
echo 'Uploaded "'.$source_file.'" to "http://www.pehjota.com/uploads/'.$destination_file.'"'
}
// close the FTP stream
ftp_close($conn_id);
?>

Posted: 04-19-2007, 03:24 AM

View 1 Replies!   View Related
Simple Image Upload To Work
I have been through several different lots of code and done so many searches on google that i'm beginning to give up. I just want a simple image upload to work. I want my users to be able to choose "browse" and when they click submit there image is added to my web server in a folder called upload. If anyone can poiint me in the right direction or have actually found some code that works please let me know!

Posted: 04-17-2007, 12:24 PM

View 8 Replies!   View Related
Simple File Upload And Display
I'm trying to put together a simple file upload script that will allow a user to upload a file (maybe multiple files if it's not too hard) and have the page display the files.

I would like images (jpg, gif, or png) resized and displayed, and I would like pdf's accessible by a link. Here is the script I currently have: Code:

Posted: 09-18-2007, 02:33 PM

View 3 Replies!   View Related
Simple File Upload Via Form.
I grabbed this code of the net. Just trying to do a simple file upload via form. Code:

<form enctype="multipart/form-data" action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="2048000">
File: <input name="userfile" type="file" /><br />
<input type="submit" value="Upload" />
</form>
<?php
if (@is_uploaded_file($_FILES["userfile"]["tmp_name"])) {
copy($_FILES["userfile"]["tmp_name"], "/images/" . $_FILES["userfile"]["name"]);
echo "<p>File uploaded successfully.</p>";
}
?>

Posted: 08-08-2005, 06:19 PM

View 3 Replies!   View Related
Upload A Simple Photo Via HTTPS?
I'm am completely stumped. I'm trying to upload a simple photo via HTTPS. I've done this countless times, but this one time it's not working.Here's the situation. I'm using a very simple yet robust file upload script, simple input=file, etc. and submit button to upload using POST, from there PHP takes over and does the rest. Once over on the php side I went through some problem solving/debugging and noticed that the file name was a bunch of goopI'm not sure if this is a problem with the SSL, HTML5, or PHP. All other data passed through ends up very readable in the DB.I've noticed something new in the file upload box of c:fakepath, i've used HTML5 for the past several months and haven't seen this, looked it up and saw it's an HTML5 security feature. dont know if that's causing the problem or not?

Posted: Jun 26 at 16:34

View 2 Replies!   View Related
Rename Simple Upload File?
i have a simple triple upload file script that upload files with its own name it works fine but what i want is to be able to specify the name of the image like file 1 give name (blue) file 2 name (tree) file 3 name (sky)

<?php
//set where you want to store files
//in this example we keep file in folder upload

[code]...

Posted: September 26, 2010, 10:48:24 PM

View 5 Replies!   View Related
Simple File Upload/Download
I really only know the bare basics of PHP. I can usually get stuff done with tons of looking up other's code snippets and piecing stuff together.I would like to create something like this, http:[url].... but with some modifications.

I really like the simple design. Just a more organized directory listing pretty much. The things I would like to do with it though is have an upload function on it to upload to any specific folder, and be able to create new folders. Also, when someone uploads a file, I would like the ability to include a description and the ability to put in a name of who uploaded it. No delete function will be necessary, as that could really be abused.

I also really like the search ability, and all of the details about the file. (name, size, dimensions if it is an image). Also, the BB code creator is a really nice touch.Something I do not like though is when you click an image file, it opens up a gallery. I would like that to just go straight to the image and open in a new tab.how to do most of these things separately, I just go insane trying to incorporate it all together.

Posted: July 12, 2010, 12:32:14 AM

View 1 Replies!   View Related
FTP - Upload - Print Simple Percentage?
i know there are a lot of "for-me-too-complicated" versions of progress-bars for php uploads out there. however i have only a really basic knowledge of php and i have no idea how to implement this stuff. i did a working file-upload script that transferres files from the user to my ftp-server. i'm using ftp_connect and ftp_put to do so.

i wonder how complicated it is to print a SIMPLE percentage value on to the page, to let the user know how far the upload has progressed. i don't want any animated javascript stuff, just a simple percentage that shows the progress. do you know a tutorial or something, or can you maybe give me a little explanation how i could do that. at least which methods return a progress value.

Posted: Sep 6 10 at 3:55

View 2 Replies!   View Related
Add Simple Image Upload To A Form?
I have a html form and i wanna to add a simple image upload to it ....and it will be send to a php page called "next.php"

Posted: Dec 12 10 at 14:49

View 2 Replies!   View Related
Simple Upload Not Working (using Xampp)
I am testing a really basic upload script and it doesn't seem to be working. I am using xampp.

After upload, I do a print_r on $_FILE. There are no errors (i.e. error code = 0). However, the tmp_name points to a file that doesn't exist. I checked my tmp directory and it doesn't contain the tmp_name file. I also checked my php.ini file to ensure the tmp upload directory was set properly.
Dave

Posted: Jul 2, 2010, 16:18

View 2 Replies!   View Related
Simple Image Upload To Server?
i am using for simple image upload to server.At the moment the script works fine and will allow upload of JPG files, i want to extend on this to allow GIF and PNG files to be uploaded aswell.This is the script i am using...

<?php
//?heck that we have a file
if((!empty($_FILES["uploaded_file"])) && ($_FILES['uploaded_file']['error'] == 0)) {
[code].........

Posted: January 24, 2011, 09:37:43 AM

View 4 Replies!   View Related
Simple Way To Upload A File And Set It As A Users Picture?
does anyone know a good tutorial or simple way to upload a file and set it as a users picture?

Posted: May 23, 2007, 12:03:47 AM

View 2 Replies!   View Related
Make A Simple Upload Progress Bar Meter.
I am trying to make a simple upload progress bar meter. I have found alot of resources but none that I can seem to understand. I have spent hours fooling around and trying to get something to work. I have read recently that php 5.2.0 supports this function. what I need to do to get started. Does anyone have a working example that would be willing to describe how they got it set up and working?

Posted: 1:02 am on Mar. 7, 2007

View 1 Replies!   View Related
Simple Script That Will Just Upload One File To A Web Server.
I've looked online for a long time now and I can't seem to find a very simple upload script. I have the form but I can't get the actual file to upload. Does anyone have a real simple script that will just upload one file to a web server.

Posted: 10-16-2005, 09:53 PM

View 3 Replies!   View Related
Simple Image Upload Isnt Working?
im working on a simple image upload script (my first try) well i noticed that for some reason its not even recognizing a file being uploaded...ive tried using the phpfreaks simple image upload tutorial but that wont seem to work for me. Code:

Posted: November 18, 2007, 01:37:43 PM

View 2 Replies!   View Related
Simple Image Gallery That Allow File Upload?
I am looking for a really simple PHP image gallery system that allows file uploads and provides easy integration into any existing PHP script. I only found full galleries with database backend and templating systems for integration and the too simple ones that just take a folder with (FTP uploaded) images and show it but don't provide the possibilities for file uploads. I'm quite close on writing my own, cause I didn't find anything yet

Posted: Jul 6 10 at 18:50

View 1 Replies!   View Related
Upload A Simple Swf For Flash Game Site?
Swf and I want to upload a picture file. Codes are as follows. What is the problem?

if ($_FILES["o_img"]["error"] > 0 and $_FILES["o_swf"]["error"] > 0)
{
echo "Return Code: " . $_FILES["o_img"]["error"] . "<br />";[code]....

My errors=

Warning: move_uploaded_file(upload/71IwNCX6PhL__SL1500_.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in C:AppServwww asarimadmpanelyeni.php on line 65

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:WindowsTempphpD014.tmp' to 'upload/71IwNCX6PhL__SL1500_.jpg' in C:AppServwww asarimadmpanelyeni.php on line 65

Warning: Cannot modify header information - headers already sent by (output started at C:AppServwww asarimadmpanelyeni.php:6) in C:AppServwww asarimadmpanelyeni.php on line 77

Posted: Jul 7 at 18:28

View 1 Replies!   View Related
Create Simple Form That Will Also Upload Only Xml Data?
i'm trying to create simple form that will also upload only xml data. first, the user will need to upload an xml document only by clicking submit, the data will be posted to the server and the user will be redirected to uploader.php. This PHP file is going
to process the form data and do all the work.

#upload.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<body>
<form enctype="multipart/form-data" action="uploader.php" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="500" />

[Code]...

Posted: November 24, 2010, 01:31:34 PM

View 4 Replies!   View Related
Simple Image Upload, Resize And Rename Script?
I have a simple script that I found online that uploads and resizes a photo, but as of now it keeps the initial file name. I just need to modify it so that it renames it to something.jpg each time, and then it will overwrite it the next time around.Could any of you guys help me out with this?PHP Code:

<form action="<?php echo $_server['php-self'];  ?>" method="post" enctype="multipart/form-data" id="something" class="uniForm">
<input name="new_image" id="new_image" size="30" type="file" class="fileUpload" />

[code]...

Posted: Jan 30, 2009, 10:58

View 5 Replies!   View Related
Make Simple Image Upload Page Work?
I'm trying to make a simple image upload page work. I have created a database(MySQL), and I'm trying to upload the images to a directory on my server, and the image info (including the file path to the image), in my DB. I am very new to php(as in, I know squat), and this is entirely a learning exercise. I'm guessing that my file paths are incorrect, and/or I need to set up my directory differently. But who knows? I guess that's why I'm posting here. Also, when the data goes into my DB, it says "array" under "files" and nothing else. I'm trying to keep it as simple as possible, so that I understand what each line of code is doing. Here is what I got:

[code]...

btw, this is my first post ever to a php forum, so if I should be doing something differently

Posted: 04-27-2010, 04:45 PM

View 1 Replies!   View Related
Simple Script For Doing A Simple Photo Album And Journal?
I'm looking to quickly get a photo album online. Very simple, thumbnails,
a few pages, maybe a description, but hopefully a small script that's easy
to edit and work into my existing site. I know about hot scripts, etc. but
I was wondering if any one could recommend one?

Secondly, I also want to setup a journal. It's not really a "blog"
although I guess blog software may work. But it isn't going to be a
message board or anything like that. Just a place to put out random bits
of news. Once again, same premise, I'm trying to find the most simple
script possible that could basically traverse a directory of simple
textfiles and produce a list.

I know all about Blosxom and stuff like that, but I'd like a script that
just did the above and didn't overtake my site like PHPNuke or something
like that. I'll probably roll my own, but I thought I'd check first.

Posted: July 17th, 2005 07:19 AM

View 1 Replies!   View Related
Simple XML Xpath Directly Integrating Response Into Simple Xml?
Integrating the Google checkout response into simple XML to pull the data item names Bridges:Liquids and Gases, Bridges:Habitats of Australia

SimpleXML = http://url/private/qtmbsgtinv7x5g6ikrzq
SimpleXMLElement($raw_xml);
}

[code]...

Posted: May 17 at 2:54

View 1 Replies!   View Related
Simple HTML DOM Parser Fails On A Simple Example ?
I'm trying to select either a class or an id using PHP Simple HTML DOM Parser with absolutely no luck.  My example is very simple and seems to comply to the examples given in the manual(http://simplehtmldom.sourceforge.net/manual.htm) but it just wont work, it's driving me up the wall.

Here is my example: http://schulnetz.nibis.de/db/schulen/schule.php?schulnr=94468&lschb=

I think the HTML is invalid: i cannot parse it. Well i need more examples - probly i have overseen something!

Posted: December 05, 2010, 09:39:25 AM

View 14 Replies!   View Related
Making A Simple Multiply Script - Not So Simple?
I am designing a carpet website for a friend but am having a problem.[URL]... On this page ^^^ I want to make a simple script so that a person can enter a number, press calculate and it calculates the cost of the flooring. I.E: This flooring is: £17.88 per metre (its stored in the database under price). 

maybe something like:

<?PHP 
echo "<FORM><input type=input></FORM>*.$row['imageloc'].";
echo"<INPUT TYPE=SUBMIT></FORM";
?>

Posted: November 29, 2010, 12:30:22 PM

View 6 Replies!   View Related
Simple Simple String Question
When I take the input from a textarea and insert it into a mysql-base and then retrieve it and show it, all the line feeds/breaks are gone.

It is shown as one giant string. How can this be fixed, so the text will be shown as it was entered? Does it have something to do with stripslashes/addslashes or am I way off?

Posted: 7:11 pm on Oct. 12, 2005

View 1 Replies!   View Related
Jquery - HTML Upload Form Will Only Upload Files Found In The Directory Of The File
I have an image uploader that uses the [URL] API and jQuery's .ajax() function to upload images to their servers. However, if I browse for an image using the <input type="file"/> element of the form, it will only be successful in uploading an image if the image file is found in the same directory as the page.php file that the form is found in (shown below). How can I allow the form to upload images from any directory on my computer?

page.php:
<form action="page.php" method="post">
<input type="file" name="doc" id="doc" /><br/>
<input type="image" src="go.gif" name="submit" id="submit" />
</form>

Posted: Apr 12 10 at 21:00

View 3 Replies!   View Related
Concurrent File Upload - Upload Word Document To Different Folders On Webspace At Same Time
There will be more than 3000 users will upload word document to different folders on my webspace at SAME TIME. How should handle it? I did file uploads but not for more than 4 or 5 user uploded at a time.

Posted: Jan 1st, 2010

View 4 Replies!   View Related
FTP Upload - Enables Users To Upload Files To Network Hard Drive
set up a php form on our website, which enables users to upload files to our network hard drive in our office. It works a treat, but I am looking to improve it. When uploading larger files, the page continues to display the form. There's no indication that it is uploading, some users think that it has crashed so keep trying.

Ideally I want the form page - a page informing the file is been uploaded - then a status report that the file has/hasn't been uploaded.

Posted: June 21, 2011, 03:39:26 AM

View 2 Replies!   View Related
Any Browser Based Upload Progress Bars That Can Upload Multiple Folders?
I'm aware of upload progress bars that can upload multiple files (ex. [URL] but I haven't been able to find any that can select multiple folders. I'm working on a music analysis site, so it would be great if people could upload multiple albums at once (like in iTunes.)

Posted: Jun 18 at 3:26

View 2 Replies!   View Related
Create An Upload Section That Limits Users To Upload The File Types?
I'm creating an upload section that limits users to upload the following file types:

.pdf
.zip
.rar
[code]...

If this is the case, how can I check the extension of the file before the user is able to upload it. I was thinking of somehow capturing the last 3 letters of the filename, and then doing the check that way, except I'm not sure how to go about this.

Posted: 08-06-2010, 10:48 PM

View 8 Replies!   View Related
Upload Images In A Normal Insert Form (MySql) After Upload The Image Should Have Three Versions Of Different Sizes And Different Names
Now I have an insert form just like that:

$sql="INSERT INTO products (pname, pcat, pimg1, pimg2, pimg3, pnotes, pclient, pclientaddress, pclientphone)
VALUES
('$_POST[pname]','$_POST[pcat]','$_POST[pimg1]','$_POST[pimg2]','$_POST[pimg3]','$_POST[pnotes]','$_POST[pclient]','$_POST[pclientaddress]','$_POST[pclientphone]')";

Instead of entering the URL value of three different images, is there a way I can upload one image and have there different sizes of it, the original one to be named 1001a and two other 1001 and 1001b?

Posted: Jun 21 at 7:20

View 2 Replies!   View Related
Use PHPs Upload Feature To Upload Files To My Server Via A Webpage
I'm trying to use PHPs upload feature to upload files to my server via a webpage. Is there a max file size that can be uploaded? Right now my app seems to freeze on anything bigger then 20k. Here is the form I'm using to submit:

<form action="index.php?viewBy=uploadEmail" method="post" enctype="multipart/form-data">
<input type=file name=cdFile>
<input type=hidden name=MAX_FILE_SIZE value=24000><br><br>
<input type=submit value=" Upload Email List ">
</form>

I'd like to be able to upload files of around 200k in size.. is this possible?

Posted: February 20th, 2003, 04:54 PM

View 1 Replies!   View Related
Upload Script Stores Reference To Image And Upload To Directory
I have a php upload script that stores a reference to an image in a mysql database and uploads the image to a specified directory. I am hosting a site on yahoo and the script uploads the image successfully and stores the appropriate data in the database without a problem. However, when I go to view the image, i get an "unauthorized" error returned from the webserver.

If I upload an image with yahoo's online file manager, I have no problems. Forcing users to use the yahoo file manager is not acceptable. Yahoo is blaming my script stating that my script is the problem. If that is true, what could the problem with the script be? I personally think this is a permissions issue on their side.

Posted: October 14, 2007, 12:10:13 PM

View 4 Replies!   View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved