Jump to content

slipperyfish

Members
  • Posts

    40
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

slipperyfish's Achievements

Member

Member (2/5)

0

Reputation

  1. i downloaded the script at that link you sent me, but im getting errors when i try to run it: [QUOTE] Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in e:\domains\s\store02.newbiestyle.co.uk\user\htdocs\ajax-example3\dl\AjaxFileUploader.inc.php on line 16 Fatal error: Cannot instantiate non-existent class: ajaxfileuploader in e:\domains\s\store02.newbiestyle.co.uk\user\htdocs\ajax-example3\dl\index.php on line 15 [/QUOTE] -------------------------------- is there actually a way of uploading/transferring/copying a file without using the $_FILES[] array? -Thanks
  2. I see, I see. Is it possibile to upload a file without using the $_FORMS variable?
  3. Well, im using this inconjunction with an AJAX script. Im passing the file location in the url, for example: [CODE] fileupload.php?loc=C:\files\file.txt [/CODE] Then letting this script take over, except it won't work? [CODE] <?php if (isset($_GET['loc'])) { $thetransfer = copy($_FILES[$_GET['loc']]['tmp_name'], 'uploads/'.$_FILES[$_GET['loc']]['name']); If (!$thetransfer) { echo 'Upload Failed!'; } else { echo "File uploaded!"; } } ?> [/CODE] Does anybody know why?? -Thanks
  4. Well I've been learning PHP for quite some time now. I've never really had to use regular expressions, but if i want to be a good web programmer i'm going to have to learn them i guess -- although they look like they are gunna make my head hurt. does anybody know a good introduction tutorial? -Thanks!
  5. hi. im trying to create a form uploader script using AJAX technology. I want it all to happen on the same page without refreshing any pages or iframes. Using AJAX to call the php script, i want to send in the filename the location in a variable. for example: uploadfile.php?loc=C:\folder\file.jpg but in the script... how do i use that in the files array? ( $_FILES[] ) -Thanks
  6. does anybody know of a javascript function that works the same as php's die() function?
  7. Well, on some forums and websites, i have noticed that the textareas have varied styled text. For example clicking a bold button will make some of the text in the textarea bold-- but not all of it! I'm assuming this is done using JavaScript. Does anybody know how to do it? -Thanks
  8. ahh, i've heard about SMART templates. It has a downlaods page, do i have to install anything into my PHP config, because I don't have access....
  9. Hey everyone. Im wanting to create a website using ".tpl" files, and have variables like: "{HEADER}". However I'm not sure how to create this, I've looked around and I can't find anything that makes it simple, or gives a complete scirpt to be able to modify. So does anybody have some links, quick tips or snippets of code I could use? -Thanks.
  10. ___Sorry, just trying to get this seen___
  11. I wrote a fairly simple procedure to work it out: [CODE] $file = "test.jpg"; $extension = substr(strrchr($file, "."), 0); [/CODE] that returns ".jpg". It's not ideal, but it works fine. And if you have an extension with 4 digits (eg jpeg) it still allows you to run IFs or/we you want on it.
  12. if that fails still, try putting the "equipment_type" into a variable be4 running the if-- but i myab e wrong in that.
  13. Unfortunately, adding the trim function didn't work. it will says: "Invalid Image Source". Anybody any more ideas why it's does that?
×
×
  • 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.