Jump to content

brodwilkinson

Members
  • Posts

    12
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

brodwilkinson's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. it returned Parse error: syntax error, unexpected T_VARIABLE in /www/110mb.com/t/e/a/m/b/r/o/d/teambrod/htdocs/index.php on line 72 (line 72) <?php $cleanname = preg_replace('/[^a-z0-9]/sim', '', $_POST['nfile']).".ipa"; ?>
  2. when you upload something it will save here: "upload/filename.ipa" but i want it so there is a submit field (i think) that will allow you to type in a name for it, eg. the file is called "blah" but you type in the form "game" then it changes it to: "upload/game.ipa" with the .ipa being default. Script <?php $path1= "upload/".$HTTP_POST_FILES['ufile']['name'][0]; copy($HTTP_POST_FILES['ufile']['tmp_name'][0], $path1); echo " Download Link, http://teambrod.110mb.com/upload/".$HTTP_POST_FILES['ufile']['name'][0]."<BR/>"; $filesize1=$HTTP_POST_FILES['ufile']['size'][0]; if($filesize1 != 0) { echo "Upload Complete"; } ?>
  3. everything is working but i want some things changed.. i want to only accept .ipa and if possible how can i make it so the "Download Link, http://teambrod.110mb.com/upload/" doesnt show up before you upload something Script <?php $path1= "upload/".$HTTP_POST_FILES['ufile']['name'][0]; copy($HTTP_POST_FILES['ufile']['tmp_name'][0], $path1); echo " Download Link, http://teambrod.110mb.com/upload/".$HTTP_POST_FILES['ufile']['name'][0]."<BR/>"; $filesize1=$HTTP_POST_FILES['ufile']['size'][0]; if($filesize1 != 0) { echo "Upload Complete"; } ?> also when you upload something it will save here: "upload/filename.extension" but i want it so there is a submit field (i think) that will allow you to type in a name for it, eg. the file is called "blah" but you type in the form "game" then it changes it to: "upload/game.ipa" thanks a bunch. the site, http://teambrod.110mb.com
  4. also is having a website with many different php scripts on what file a bad idea? i dont have my files like: upload.php --> process.php mines more like index.php --> index.php#process like its all on the one page, is it a bad idea?
  5. everything is working but i want some things changed.. i want to only accept .ipa and if possible how can i make it so the "Download Link, http://teambrod.110mb.com/upload/" doesnt show up before you upload something Script <?php $path1= "upload/".$HTTP_POST_FILES['ufile']['name'][0]; copy($HTTP_POST_FILES['ufile']['tmp_name'][0], $path1); echo " Download Link, http://teambrod.110mb.com/upload/".$HTTP_POST_FILES['ufile']['name'][0]."<BR/>"; $filesize1=$HTTP_POST_FILES['ufile']['size'][0]; if($filesize1 != 0) { echo "Upload Complete"; } ?> also when you upload something it will save here: "upload/filename.extension" but i want it so there is a submit field (i think) that will allow you to type in a name for it, eg. the file is called "blah" but you type in the form "game" then it changes it to: "upload/game.ipa" thanks a bunch. the site, http://teambrod.110mb.com
  6. yeah mate, thats very very close to perfect. i tweaked it a little and wahlah all good, you want any credits on the site or script?(i basically did copy and paste the script, only minor changes)
  7. thanks, its told me quite abit you cant just explain. what about something that searches the words in a script eg: i have a index.php file which displays whats in the directory its located in: http://teambrod.110mb.com/upload/ now how about i have a search at the top, could i make it so it finds all the matches to: "app 01.ipa""app 02"
  8. to be honest, its from php scripts i found on the internet.. do you have any ideas of what i need to do to make the search?
  9. you want a form that asks for: Name:__________ Email:__________ Subject:__________ Message:________________________ ________________________________ ________________________________ that style thing?
  10. ohk so after 2 days of coding i just cant get it to work, im trying to make a search which displays files in a directory with a filter. eg: you search " gun ", the php looks for all file names with " gun " in it. also the results can only show .ipa files and in a specific directory and if possible can all the coding be on one .php sheet. i'm assuming this must be quite simple.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.