Error in the upload of an image using dreamweaver file

Hi to you all!

Please I need you help PRO. My case seems similar to some of the ones I saw, but my code is completely different.

I wrote this code below using PHP in Dreamweaver and its used to download images to the MySQl database. Now when I download about 6 pictures, it shows file downloaded successfully. But if I try to download something below 6 images, it will refuse to download and will resonate Upload Failed.

<? PHP

If (isset($_POST['submit']))

{

$projid = $_POST ['PROJID"];

$projname = $_POST ["projname"];

$name = basename($_FILES['file_upload']['name']);

$t_name = $_FILES ['file_upload'] ['tmp_name'];

$dir = "upload";

If (move_uploaded_file ("$t_name, $ dir." / ". $Name"))

$nameone = basename($_FILES['file_uploadone']['name']);

$t_name = $_FILES ['file_uploadone'] ['tmp_name'];

$dir = "upload1;

If (move_uploaded_file ("$t_name, $ dir." / ". $Name"))

$nametwo = basename($_FILES['file_uploadtwo']['name']);

$t_name = $_FILES ['file_uploadtwo'] ['tmp_name'];

$dir = "upload2."

If (move_uploaded_file ("$t_name, $ dir." / ". $Name"))

$namethree = basename($_FILES['file_uploadthree']['name']);

$t_name = $_FILES ['file_uploadthree'] ['tmp_name'];

$dir = "upload3;

If (move_uploaded_file ("$t_name, $ dir." / ". $Name"))

$namefour = basename($_FILES['file_uploadfour']['name']);

$t_name = $_FILES ['file_uploadfour'] ['tmp_name'];

$dir = "upload4";

If (move_uploaded_file ("$t_name, $ dir." / ". $Name"))

$namefive = basename($_FILES['file_uploadfive']['name']);

$t_name = $_FILES ['file_uploadfive'] ['tmp_name'];

$dir = "upload5";

If (move_uploaded_file ("$t_name, $ dir." / ". $Name"))

{

@mysql_select_db ($database_ProjMonEva, $ProjMonEva);

$qur = "insert into tbl_images (imageid, PROJID, ProjectName, name, path, Name1, pathone, name2, pathtwo, namethree, paththree, namefour, pathfour, namefive, pathfive) values (", '$projid', '$projname', '$name', "upload / $nom", "$nameone", "upload / $nom1", "$nametwo", "upload / $nom2", "$namethree", "upload / $namethree", "$namefour", "upload / $namefour", "ve $namefi", "upload / $namefive") ";"

$res = mysql_query ($qur, $ProjMonEva);

ECHO 'the file downloaded successfully ';

}

on the other

{

echo ' upload failed! ';

}

}

? >

I see the problem coming from echo, but I am stock and do not know how to correct it. Can someone help me please.

Thank you, in advance, Mike

Hi Brégent,

Do you mean like this

<>

If (isset($_POST['submit']))

{

$projid = $_POST ['PROJID"];

$projname = $_POST ["projname"];

$name = basename($_FILES['file_upload']['name']);

$t_name = $_FILES ['file_upload'] ['tmp_name'];

$dir = "upload";

If (move_uploaded_file ("$t_name, $ dir." / ". $Name"))

$nameone = basename($_FILES['file_uploadone']['name']);

$t_name = $_FILES ['file_uploadone'] ['tmp_name'];

$dir = "upload1;

If (move_uploaded_file ("$t_name, $ dir." / ". $Name"))

$nametwo = basename($_FILES['file_uploadtwo']['name']);

$t_name = $_FILES ['file_uploadtwo'] ['tmp_name'];

$dir = "upload2."

If (move_uploaded_file ("$t_name, $ dir." / ". $Name"))

$namethree = basename($_FILES['file_uploadthree']['name']);

$t_name = $_FILES ['file_uploadthree'] ['tmp_name'];

$dir = "upload3;

If (move_uploaded_file ("$t_name, $ dir." / ". $Name"))

$namefour = basename($_FILES['file_uploadfour']['name']);

$t_name = $_FILES ['file_uploadfour'] ['tmp_name'];

$dir = "upload4";

If (move_uploaded_file ("$t_name, $ dir." / ". $Name"))

$namefive = basename($_FILES['file_uploadfive']['name']);

$t_name = $_FILES ['file_uploadfive'] ['tmp_name'];

$dir = "upload5";

If (move_uploaded_file ("$t_name, $ dir." / ". $Name"))

@mysql_select_db ($database_ProjMonEva, $ProjMonEva);

$qur = "insert into tbl_images (imageid, PROJID, ProjectName, name, path, Name1, pathone, name2, pathtwo, namethree, paththree, namefour, pathfour, namefive, pathfive) values (", '$projid', '$projname', '$name', "upload / $nom", "$nameone", "upload / $ Name1", "$nametwo", "upload / $nom2", "$namethree", "upload / $namethree", "$namefour", "upload / $namefour", "$namefive", "upload / $namefive") ";"

$res = mysql_query ($qur, $ProjMonEva);

ECHO 'the file downloaded successfully ';

on the other

{

echo ' upload failed! ';

}

}

?>

Tags: Dreamweaver

Similar Questions

  • PS_Exec (P): Error of the command batch with reason: no such file or directory (2)

    We have symantec pgp installed in our system and trying to decrypt a file through the app engine.

    our process procedure.

    1 FTP the source files.

    2. search files

    3. use pgp to decrypt the file by file

    trying to decipher runs aground and always gives following error

    PS_Exec (P): Error of the command batch with reason: no such file or directory (2)

    When I run the same command using the command line it goes thru very well.

    running order: decrypt pgp - q - passphrase "xxxxxxxxxxxxxxxxxxxx exit»--/data/staging/bank_statements/Reconciliation_files/BAI2_20150618155803.bai.asc--/data/staging/bank_statements/Reconciliation_files/BAI2_20150618155803.bai.

    any help is really appreciated

    Hi all

    I finally understood what happened. The installation of PGP directory is located in/usr/local /. So we moved the installation from this location PS_HOME location and he started to work very well.

    so our installation location current symantec pgp is pgp/PS_HOME /.

    Another point to note was if we are trying to encrypt or decrypt using PeopleSoft PSExec() and these files are under/usr directory structure order Symantec PGP fails to do. the same command works fine through command line, but not through PSExec(). Indeed, the user has full access, but even he couldn't do anything. . But if we use our own custom directories the file gets encrypted and decrypted as you wish.

    Hope these little things help.

  • Measurement error of the County of edge by using the external sample clock

    Hello

    I'm trying to measure the number of edges (rising) on a square wave at 5 kHz with a generator function on a device of the NI PCIe-6363. I configured a channel of County of front edge of counter at the entrance of the PFI8 device. I use an external sample clock that is provided by the output of the meter of a NI USB-6211 housing channel. If I acquire for 10secs then ideally I would expect to see a total of 50000 edges measured on the meter inlet channel. However, my reading is anywhere between 49900 and 50000.

    When I use the internal clock of time base to measure the edges, the measure is accurate and almost always exactly 50000. I understand that when you use the external sample clock, the precision of the measurements is subject to noise level of the clock signal. However, I checked the clock signal is stable and not very noisy. Any reason why there is an error of measurement and how tolerance should I expect when using an external sample clock compared to when you use the internal time base clock?

    Also, what is best clock Frequency (with respect to the frequency of the input signal) when using an external clock?

    Thank you

    Noblet

    Hi all

    Thanks for all your sugggestions. I was using an input signal with a function generator which had a range of 8V. It turns out that the reduction of the amplitude to 5V solves the problem. I was able to get accurate numbers with the 6211 external clock.

    Thank you

    Noblet

  • I want to compare the 'brightness' of two images using a template image and an image acquired

    For the most part looking for suggestions on the best way to go about it. Im trying to run a test that will allow me to compare the brightness of an LCD screen using a webcam. Essentially, I let power on the screen, and from time to time, the screen will be incredibly dim. IM thinking I should be able to use the functionality of the subtraction with both images and if I have a normal screen it should produce a closure to 0 results, while the dark screen should give a non zero value (pixel wise) but have so far not been successful.

    http://zone.NI.com/reference/en-XX/help/370281AA-01/imaqvision/imaq_light_meter__point/  I used the rectangle version but this block instead of going with a subtraction! Being new on and auto teaching labview I often oversteps these easy solutions

  • Error in the capture of several channels using pre-trigger

    I have problems of acquiring data with pre-trigger samples during the capture of several channels, using hardware NOR-PXI-6071E and Analog Input VIs in Labview (inheritance OR-DAQ).

    My goal is to trigger a signal, while capturing another. Unfortunately, I can't use the PFI0 for external triggering, as our cables/material have already been built, so I have to use an analog input as the trigger channel. I understand that to do this I must capture the two strings and the string I want to trigger outside must be the first string in the list.

    If I trigger and capture on the same channel (I tried 1-4) then it works very well, regardless of the number of samples before relaxation together. If I capture more than one channel (the channel of the relaxation to a first), with no pre-trigger samples, then trigger and capture both work very well. However, if I do the same thing with pre-trigger > 0 sample I get the following error:

    Error-10621 to AI control. Possible reasons:
    NOR-DAQ LV: The specified trigger signal cannot be assigned to the resource for the trigger.

    I don't have to such limitation explained in the user manual, and the forum search, I found a few other people who have had the same problem but they had no solutions. Any ideas?

    Hi Jackson,

    Unfortunately, this is a hardware limitation when you reference analog trigger via one of the lines to HAVE.

    Please see this knowledge base. Particularly the second paragraph says

    The error-10621 appears immediately when the VI running if you try to assign scans of relaxation before while scanning multiple channels and using one of the entries as your trigger channel.

    Details are explained in the third paragraph:

    Because all the entries are multiplexed before being sent for analog triggering circuit, it is possible that the trigger on the trigger channel conditions might miss while the device is multiplexing by another channel. In this case, the trigger will not be detected.

    It is explained in the E-Series user manual page 10-3.  Specifically the second paragraph of the section entitled "Analog Input Channel".

    Eric S.

  • Application not found error-choose the program you want to use to open this file

    Soon all the world.

    I really hope that someone will post a reply to my question as soon as possible. I will try to be as descriptive as I could possibly, in order to solve my problems.

    The main problem is that I can't open some, if all the program files, applications on my windows 7, 32-bit laptop. I'm constantnly get application not found error, showing in a small window address, I was trying to do. Whenever I want to open a program, like the Adobe reader, word of microsoft, excel, mozilla firefox, google chrome - basically everthing, a window opens and is telling me this: choose the program you want to use to open this file: file: acad.exe... and recommend me acrobat from adobe program, any program I was trying to enter (in this case autoCAD).

    Cannot open cmd, when I go to system recovery, it says: System Restore could not start. I normally post records in: C and: D sheet music, play music, watch videos and see photos. I found a "hole" not being able to go to the internet via a browser. I discovered it when I went to an online help in some of the trobleshoots. It would open tab in google chrome by itself and then on it, I can browse the internet normally, but only through the said track.

    Currently, the microsoft security essentials performs a custom analysis (: C and: D), because I suspect it is a malware, or some kind of virus. It happened when I tried to download a program from CAD Solidworks 2012 via a site that I'm not sure I'm allowed to mention, that I don't want. Unless it's okay with you :) It begins with a letter t. By the way, I noticed that my: partition D has accumulated 10 GB + more in the space of a few days, because I remember two weeks ago I had close to 70 GB of free space, now it's about 56.3 GB. Curious, because I know that I did nothing so great in this period. Maybe I need to tell you that I get this window, from time to time, when I browse the internet (I never visit suspicious sites, or at least I don't me remember more I visited one in a very long time, like 4-5 months):

    [url=http://canadaalltax.com/z/?f=pjrKrjr7vTw8qi5FrTxXrjr4qdgHqjrHqE%3D%3D&eid=727&hid=15769845847361013151&pid=0&ch=666&rf=http%3A%2F%2Fwww.boldride.com%2Fbrand%2Fwilliams-racing&s=px.pluginh&r=0.13960388134319002]http://canadaalltax.com/z/?f=pjrKrjr7vTw8qi5FrTxXrjr4qdgHqjrHqE%3D%3D&eid=727&hid=15769845847361013151&pid=0&ch=666&rf=http%3A%2F%2Fwww.boldride.com%2Fbrand%2Fwilliams-racing&s=px.pluginh&r=0.13960388134319002[/url]

    I found this in my story, be very careful what you do with this link, I don't want that take you anything ;)

    That's on my side, please ask anything and everything, I'll visit this page when I can.

    Good bye!

    P.S. forgot to mention that when I download a program (mozilla Firefox), I can not run it due to: Application not found. I hope I found the right place for it.

    Original title: Windows 7 - Application not found. A big problem or easy-peasy?

    Hello

    Thanks for posting your query in Microsoft Community.

    1. What is the complete error message you get when opening a file?
    2. What happens when you try to open the command prompt?
    3. What happens when you try to access the internet by using Internet Explorer?
    4. You did changes to the computer before the show?

    According to the description of problem errors you get "application not found error" and "choose the program you want to use to open this file" and not being is not able to do system restore, it seems that some windows file is corrupted. I also suggest you to post back the results of analysis.

    I would suggest trying the following methods and check if this is useful:

    Method 1:  Run SFC scan and check for corrupted Windows files and violations of integrity.

    Use the System File Checker tool to repair missing or corrupted system files

    http://support.Microsoft.com/kb/929833

    Method 2:

    For any question, where his prompting you to select the default program
    Try to set the default values for the program
    Change the programs that Windows uses by default

    For any question, where you are not able to download and install firefox, download the file and save it and then try to install firefox.

    I hope this helps. Please let us know the results. Feel free to write us again for any help.

  • Windows Update Standalone Installer: error 0x80073afc the resource loader failed to find MUI file. Windows 7 64 bit

    I have a desktop PC running Windows 7 Professional 64-bit.  There is an update which is unable to complete, causing the PC to undo changes to before the update.  It usually takes an extreme amount of time, and of course, I've always updates installed.  I tried to use the Microsoft Fixit tool, which came back with error 0 x 80070057.  I saw in a community forum that I could try the tool of microsoft SURT, but after the long scan he came back with the following error:

    Windows Update Standalone install

    Setup has encountered an error: 0x80073afc

    The resource loader failed to find MUI file.

    Please help.

    Hello

    Thanks for posting your question on the Microsoft community.

    Thank you for details on the question and your efforts to resolve.

    This problem can occur because of corrupted Windows Update files and components.

    I suggest you to reset the Windows update components and check if that helps.
    Refer to this article:
    How to reset the Windows Update components?
    https://support.Microsoft.com/en-us/KB/971058

    Note: Serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:
    http://Windows.Microsoft.com/en-us/Windows/back-up-registry#1TC=Windows-7

    I hope this information helps.

    Please let us know if you need more help.

    Thank you

  • How to automate the process of loading data using load file &amp; Task Scheduler

    Hello

    I do the automated processes to load the data into Hyperion Planning application using the file data_Load.bat & Scheduler of tasks.

    I created Data_Load.bat file, but the rest of the process, I cannot complete.

    Could help you me, how to automate the process of loading data using the file Data_load.bat & task Scheduler or what are the rest of the file is require it to achieve.

    Thank you

    In response to your question using the maxl for loading scripts?

    If Yes, I've seen and deliver in the batch (ex: load_data.bat) that is you do not have the path of the maxl script complete with a batch when passing through the event the task scheduler will work, but the log file and / or error will not be created. Which means lots claims it linked task scheduler, although he did not do what you need to.

    If you use maxl use this as the batch

    "essmsh C:\data\DataLoad.mxl" or you can also use the full path for the maxl or work elsewhere. The only reason why I think that the maxl can then not work is if you do not have the updated batch updated to call on all LANE changes maxl or if you need to update your environment variables to correct the command essmsh to work in a command prompt.

  • Impossible to download images using Dreamweaver CS5

    Hello

    I use Dreamweaver CS5 and configuration information of the remote site for my Web site. While I download the HTML file directly on the server using the Site-> Put function, it never downloads the image on the HTML files. When I insert Images in the HTML file, they are by default saved to the local site folder.

    However, I also have Dreamweaver CS4 installed on my Macbook. When I open Dreamweaver CS4 and reopen the same file and download the same file on the remote server, this time the image files copied successfully.

    I don't understand this. If anyone can help?

    When I insert Images in the HTML file, they are by default saved to the local site folder.

    This is how it should be.

    While I download the HTML file directly on the server using the Site---> was able to function, this never downloads the image on the HTML files.

    You are prompted to download dependent files?  If not then go to PREFERENCES > Site and activate the prompt on Put / Get.  The next time you download a file, you will be asked if you want to download dependent files, and if you say yes, the images will be put on the server.  If you still want to download dependent files, then you can click on the option "never ask again"...

  • How can I trigger a slideshow lightbox with a single image using Dreamweaver?

    I'm currently building a page for a cosmetics company in which clicking a color swatch opens a lightbox-style shots of model slide show using this color makeup. Each sample must trigger a slide show. I use Dreamweaver (CS6), and I'm sure that there must be an easy way to do it, but I didn't think about her again. (It would be a snap in Flash, but alas, the site needs to work on a wide range of devices).

    I appreciate any ideas and please do your easy to follow instuction if possible - pretend you speak of a dog or an eighty-six-year-old - because I am not as much experience that I must be. Probably not.

    Thanks in advance for any advice.

    best,

    Wendy

    DW does not for you.

    Download the Fancybox jQuery plugin.

    See this primer for using jQuery Plugins

    http://ALT-Web.blogspot.com/2012/11/Primer-for-using-jQuery-plug-ins.html

    Nancy O.

  • error in the identification of control for 11g update files...

    No 64-bit RAC ASM OEL4 Oracle10gR2

    Hi all

    I try to update our data base to 11g and I get the following error when I try to start the database with the command START UPGRADE. I make a manual level and following the upgrade guide:


    SQL > startup pfile='/opt/app/oracle/product/11.1.0/db_1/dbs/initFPRCTEMP.ora upgrade ';
    ORACLE instance started.

    Total System Global Area 4275781632 bytes
    Bytes of size 2151248 fixed
    2617248944 variable size bytes
    1644167168 of database buffers bytes
    Redo buffers 12214272 bytes
    ORA-00205: error in the identification of control files, see log alerts for more information

    When I checked the alertlog I found the following:

    ORA-00210: could not open the specified control file
    ORA-00202: control file: "+ FLASH1/fprctemp/controlfile/ctrl02_fprctemp.ctl".
    * Ksfdopn:2-ORA-17503: could not open the file +FLASH1/fprctemp/controlfile/ctrl02_fprctemp.ctl*
    ORA-15001: diskgroup "FLASH1" does not exist or is not mounted
    ORA-15077: could not locate instance ASM serving a required diskgroup
    ORA-29701: unable to connect to the Cluster Manager
    ORA-00210: could not open the specified control file
    ORA-00202: control file: "+ DATA1/fprctemp/controlfile/ctrl01_fprctemp.ctl".
    * Ksfdopn:2-ORA-17503: could not open the file +DATA1/fprctemp/controlfile/ctrl01_fprctemp.ctl*
    ORA-15001: diskgroup 'DATA1' does not exist or is not mounted
    ORA-15077: could not locate instance ASM serving a required diskgroup
    ORA-29701: unable to connect to the Cluster Manager
    Thu Aug 28 14:54:49 2008
    Running the Checker found 2 new failures of persistent data
    ORA - 205 marked during: ALTER DATABASE MOUNT...


    What's weird, is that I checked and the ASM instance is running. I checked all the environment variables (PATH and new home of 11g ORACLE_HOME) and I also put the oratab entry to point to the new home of the Oracle, as indicated in the documentation. Here are my entries in the .bash_profile file and the oratab file.

    # .bash_profile

    # Get the aliases and functions
    If [~/.bashrc - f]; then
    . ~/.bashrc
    FI

    # Specific programs startup and user environment

    $PATH = path: $HOME/bin

    stty erase ^ H

    ORACLE_BASE = / opt/app/oracle
    ORA_HTTP_HOME=/opt/app/Oracle/product/10.2.0/http_1
    ORACLE_HOME=/opt/app/Oracle/product/11.1.0/Db_1
    ORACLE_ASM_HOME=/opt/app/Oracle/product/10.2.0/asm_1
    ORACLE_SID = FPRCTEMP
    ORA_NLS10=$ORACLE_BASE/product/10.2.0/Db_1/NLS/data
    TNS_ADMIN=$ORACLE_BASE/product/10.2.0/Db_1/network/admin
    LD_LIBRARY_PATH=$ORACLE_BASE/product/11.1.0/Db_1/lib:$ORACLE_BASE/product/10.2.0/http_1/lib
    TEMP = / tmp

    export ORA_HTTP_HOME
    export ORACLE_SID
    export ORACLE_BASE
    Export ORACLE_HOME
    export ORACLE_ASM_HOME
    export ORA_NLS10
    Export TNS_ADMIN
    export LD_LIBRARY_PATH
    Export TMP
    export of TEMP

    username not defined

    $PATH = path: $HOME/BIN: $ORACLE_HOME/bin: $ORACLE_HOME/OPatch: $ORA_HTTP_HOME/opmn/bin: $LD_LIBRARY_PATH

    export PATH
    umask 022
    username not defined


    the oratab file entry:

    *:/opt/app/Oracle/product/10.2.0/http_1:N
    +ASM:/opt/app/Oracle/product/10.2.0/asm_1:Y
    FPRCTEMP:/opt/app/Oracle/product/11.1.0/Db_1:Y


    Thanks to you all.

    HM... Please take a look at ML -Note: 337737.1 (I just mention the combinations with an 11 g database)-I noticed that you do not have a RAC installation but nevertheless you CSS running to your instance of the DSO.

    CRS... ASM............ DB... Certified
    ------------------------------------------------
    11.1___11.1___11.1___Y
    11.1.___10.2___11.1___Y
    11.1___10.1.0.3__11.1___Y

    If upgrading the ASM instance should first solve this problem. The upgrade of the ASM means: you stop your database running in ASM and upgrade ASM with the DBUA instance. It'll take a few minutes, because there is no dictionary database in ASM.

    Kind regards
    Mike

    Published by: Mike Dietrich on August 29, 2008 17:26

  • Blu - Ray OK, DVD version gives 'General error' on the construction of disc image

    When you generate the final .iso file of the DVD disc image, I got a warning of 'General error' during one of the final steps. The Blu - Ray since the same project worked perfectly. The error occurred not during video transcoding, but just after the attempt to transcode a file audio small .wav for background music on the menu. Yet once, it worked well for the Blu - Ray, it's 16 bits, 48 kHz, etc.. All menus and video and audio previews also showed no sign of distress.

    Any ideas what to look for? Final for the .iso to DVD transcoding took like 6 hours so I want as supposition little and check the work as possible! Thank you!

    How long is the audio? It may be simply too short to encode a correct DVD. If so, open it in Soundbooth and add silence at the end.

    Mylenium

  • Need help to set up the text over an image using skin

    As I understand this book.  For page numbers, the master page I use an image with the Page number marker current at the top of the image.  I want to be able to define the image so that the text on other pages will wrap around it.  The problem is that it pushes the current Page number marker, so I can't keep the number on top of the image.

    How can I set this up properly?

    Select the block of text with page number. Object > text frame Options. Click ignore skin.

  • How to display the name of file or the path of the photos on my screensaver when the value for 'My images' using Vista?

    I simply marked the box in 'settings' of the screen saver under Windows XP, but Vista does not display this option!

    When an image appears on my screen saver, I want to find it among the thousands of photos by reading the name of the file or the path at the top of the screen.

    Hello

    This screensaver Vista version doesn't have this option.

    The feature is now part of the Windows Live Photo Gallery.  You can go to http://get.live.com to download the program.  .

  • error message: "the printer is configured to use o2 ink cartridges.

    My HP C7280 all-in-one printer was purchased in Australia and was then introduced to the South Africa. O2 cartridges are not available in South Africa, the printer can be reconfigured to use the local cartridges?

    Hello FANaude.

    You must contact the HP support by phone in your country for assistance in obtaining the printer reset to accept cartridges from a different region.

    Use the link below to find how to contact HP phone support in your country.

    http://WWW8.HP.com/us/en/HP-information/summary/WW-contact-us.html

    See you soon!

Maybe you are looking for