Run a script on the server side

someone at - not how to run a script out server php with him sending variables or receive all the variables and not to open a new window.

#2030 error: end of file was encountered. This is the error I get when you use this code

What is the file php is encode flv files. He calls him self saying that all videos uploaded in the database cue list are converted. So I have download 3 videos the script takes and makes the 1st file then 2nd, then 3rd. In the flash player I get error 2030 whenever the script call it is oneself.

If I call the script php outside of flash with a browser, it works perfectly.

I use all kinds of variations of URLRequest and URLLoader really puzzled. Thank you flexperts.

private function encodeHandler(event:DataEvent):void

{

var variables: URLVariables = new URLVariables();

variables.fileName = has ';

variables.fileExt = of ';

var request: URLRequest = new URLRequest ("""http://" " + ModelLocator.SERVER + ' / scripts/videoConvert.php"")

request.method = "get";

request.data = variables;

var loader: URLLoader = new URLLoader();

loader.dataFormat = can.

loader.addEventListener (Event.COMPLETE, completeHandler);

loader.addEventListener (flash.events.HTTPStatusEvent.HTTP_STATUS, onStatus);

try

{

//status.text = "video encoding".... » ;

loader.load (request);

trace() 'start encoding');

}

catch (error: error)

{

//status.text = "unable to load URL";

trace()"coding error cannot load url");

}

function onStatus(event:HTTPStatusEvent):void

{

If (event.status! = 0) {}

//status.text = "encoding error";

    trace('encoding error');

}

}

function completeHandler(event:Event):void

{

//status.text = "complete encoding";

trace(() 'complete encoding');

    }

}

Very well, please close this thread.

Tags: Flex

Similar Questions

  • Lock a room of the script on the server side

    as the topic ~

    How can I set the parameters of the room and lock the room?

    now, I know that I can change the time-out period room with the roomAccess implementation and the "timeOut" property

    with the code as follows:

    itemVO.Add ("nodeName", "roomAccess")

    itemVO.Add ("itemID", "timeOut")

    itemVO.Add ("body", "3600")

    but I know which property to use when I want to block a room?

    roomLocked?

    Can you tell me where can I find all room setting properties and how to use them?

    Hello

    On the client, we change the parameters inside the RoomManager (you can

    Look through the RoomManager code for more details), however with dev

    Console, we make it easier to define the parameters of the room.

    In the side server, if you want to set these properties, you

    use publishItem on the collectionNode 'roomManager' using the

    AccountMaager.

    Here for your itemVO, itemID will be 'locked' and your body is a Boolean

    either true or false. For example, you will use locking

    itemVO.Add ("nodeName", "roomAccess")

    itemVO.Add ("itemID", "locked")

    itemVO.Add ("body", "true")

    Watch RoomManager.as folder on the client side

    public function set roomLocked(p_locked:Boolean):void for more details

    on this setting, or other similar.

    Hope this helps

    Thank you

    Concerning

    Hironmay Basu

  • Download without using a script on the server or incoding side

    Hello

    Is it possible to download a file on a server without having to encode them in the first place or running through PHP first?

    Scenario is just once a file has been selected using the Filereference want it to download directly on my server without being written\coded and not through all the scripts on the server side.

    Possible?

    What type of encoding offer these tutorials? You can send a picture as binary data via URLRequest/URLLoader.

    If you want to you can use utilities like corelib:

    https://github.com/mikechambers/AS3corelib

    You convert your image of a ByteArray (binary) for the transfer, which is too thin you get. It has not inflated as a base64 encode if that's what do your tutorials.

    This is an old tutorial on the use of it (although they are pointing to the older corelib, same idea).

  • Best hospitality: Script?  PL/SQL?  Script-on-the-server?

    Hello everyone,

    There may be no black-and-white answer, but I wanted to ask a quick question about scripts...

    We have developed a script SQL (in a simple text file) for the treatment of the data and that all works fine. Now plan us to hand over users and so want to "attach everything" and remove the possibility of error.

    Users may continue to call the script (as what) but I'm a little worried that the text file can mingle or users could follow the instructions of evil.

    Of course I could convert all in PL/SQL, but this would involve a major effort and we would lose so can the same to run the script (i.e. for test purposes) selective blocks.

    What would be ideal, it is if we were to "transfer" the script for the oracle database and run it there (maybe using a PL/SQL call?). Then, as and when we need to, we could replace the script.

    Does anyone have advice on this? Is there such a thing as "Script on the server? Or should it be PL/SQL?

    Best regards and many thanks,
    Alan Searle

    Cologne, Germany

    Hello Alan,.

    What does your script?

    If you can convert PL/SQL, do. It should be possible to write a package with a single point of entry for users to run. To test the script you can make public procedure calls in your test environment for conditional compilation.

    Something like

    CREATE OR REPLACE PACKAGE pp AS
    PROCEDURE user_script;
    END pp;
    

    In the package body procedure user_script name of each party

    PROCEDURE user_script IS
    BEGIN
    aa();
    bb();
    cc();
    

    For each of these test procedures you either create a packet header to test each procedure in the stock market or use you conditional compilation where calls to aa, bb,... are not public in your test database.
    http://download.Oracle.com/docs/CD/E11882_01/AppDev.112/e25519/fundamentals.htm#LNPLS00210

    Concerning
    Marcus

  • Running a script from the command line

    Hi all
    First of all, I'd like to say I'm just starting ORACLE 11 g with no prior experience of the database. I currently lectures once a week. However, I am stuck with a problem. I am trying to access my database of the United of the House so I can do some work, apparently I can only access it via the command prompt (which is good for me) I began by downloading a shell www.putty.org secure and I managed to connect to my database of test of the University from my laptop at home. However, I have a createHR.sql of script file that is stored in my C:\ORACLE directory which I try to access in order to load my test tables and start practicing with them.
    use command line

    SQL > C:\ORACLE\createHr and I get SP2-0310: unable to connect to the file "C:\ORACLE\create HR.sql".

    normally, this should load and run the script - as with the browser method guests will get the tables is created and the test data.

    I am now officially frustrated that I can't get any done practice, offered any help will be welcome.

    Concerning

    Claude

    Published by: 891128 October 12, 2011 09:33

    Published by: 891128 October 12, 2011 09:41

    Published by: 891128 October 12, 2011 09:44

    891128 wrote:
    I started by downloading a shell www.putty.org secure and I managed to connect to my database of test of the University from my laptop at home.
    However, I have a createHR.sql of script file that is stored in my phonebook C:\ORACLE

    These two sentences above are essential. If I had to bet a directory C:\ORACLE assumption is located locally on your laptop. However, it seems you have done a SSH connection to your server and connected to the database using SQL * more customer on the server. The client on the server has no idea or access to files on your machine.

    You must open the script on your laptop and copy / paste into your SQL SSH * more session or you will need to find a way to copy this script on the server, so you can run it.

    I hope this helps!

  • can we enjoy the server side langs

    can we enjoy the server side langs such as php and how, using the platform webworks

    You can if you have a server that hosts these server-side code. No, no... well enough Javascript + HTML 5 (at least with WebWorks).

  • Php script on the client side

    WebWorks does support php scripts on the client side

    N °

  • Publication of files on the server side is not visible!

    Hello

    I post an image of a device using the following code:

    PNGEncoder encoder = new PNGEncoder(bit, true);
    byte[] imageBytes = encoder.encode(true);
    
    connection = (HttpConnection)Connector.open("url");
                connection.setRequestMethod(HttpConnection.POST);
                connection.setRequestProperty("Content-Language", "en-US");
                connection.setRequestProperty("Content-Type", "multipart/form-data");
                connection.setRequestProperty(HttpProtocolConstants.HEADER_CONTENT_LENGTH, String.valueOf(imageBytes.length));
    
    OutputStream os = connection.openOutputStream();
    String newLine = "\r\n";
    String contDisp="Content-Disposition:form-data; name=\"Image.jpg\";filename=\"Image.jpg\"";
    String contEnc = "Content-Transfer-Encoding: binary";
    String type="Content-Type:image/jpeg";
    os.write(contDisp.getBytes());
    os.write(newLine.getBytes());
    os.write(type.getBytes());
    os.write(newLine.getBytes());
    os.write(contEnc.getBytes());
    os.write(newLine.getBytes());
    os.write(imageBytes);
    os.flush();  
    
    int responseCode = connection.getResponseCode();
    if(responseCode != HttpConnection.HTTP_OK){
        connection.close();
        Dialog.alert("Status: "+String.valueOf(responseCode));
    }
    

    The POST request works very well, but I can't get the file on the server side. The application has no file as an attachment, what am I doing wrong?

    Thank you

    You are not set or a border for the body in several part. In addition, the content-length header is supposed to be the length in bytes of the entire body, including the part headers. I'm surprised that the server isn't hard to refer a complaint.

    Do you need to send this as a request for several part? Looks like you send just a single file. Try to assign the image/jpeg content type and write the bytes of the image in the output stream, with no header.

    PNGEncoder encoder = new PNGEncoder(bit, true);byte[] imageBytes = encoder.encode(true);
    
    connection = (HttpConnection)Connector.open("url");connection.setRequestMethod(HttpConnection.POST);connection.setRequestProperty(HEADER_CONTENT_TYPE, CONTENT_TYPE_IMAGE_JPEG);connection.setRequestProperty(HEADER_CONTENT_LENGTH, String.valueOf(imageBytes.length));
    
    OutputStream os = connection.openOutputStream();os.write(imageBytes);os.close(); // not just flush()
    
    int responseCode = connection.getResponseCode();if(responseCode != HttpConnection.HTTP_OK){    connection.close();    Dialog.alert("Status: "+String.valueOf(responseCode));}
    

    (If you declare your class as long as HttpProtocolConstants of execution, you can use the names unqualified as I did here).

    If you need the file sideways name server, I would send it as additional path added to the URL info.

  • Error from the server side include causes in subfolders

    http://www.digitaldealershipsystem.com/index.html

    * as well as all the pages of "root".

    compared to subfolders

    http://www.digitaldealershipsystem.com/BMW/index.html

    http://www.digitaldealershipsystem.com/Saab/index.html

    The side Server includes that work in the pages of "root" causes an error in the subfolder pages.

    Inclusions on the server side are referenced in the root only

    <!-file = "includes/topright.php #include" - > "

    And in the subfolders as:

    "" <!-#include = file '... / includes/topright.php '->

    The error in the subpages is:

    [an error occurred while processing this directive]

    Please notify.

    Your server is probably not enabled parent paths. Try using the include virtual rather than include the file.

  • Transition of the side customer for features on the server side

    QUERY: I have recently decided to make the transition from the client side for features server-side and I want an overview of the forum regarding the best application for a feature on the server side.

    BACKGROUND: MobileMe from Apple Computer recently told me that they freeze all their. Mac to MobileMe accounts. This means that my entire Web site will remain visible in the address online, but I no longer able to repair some of its content. There's two possibilities: transfer all my files in the new domain name of MobileMe or abandon Apple as my host online.

    Transfer the contents of my site to the new environment of MobileMe would devastate my online presence. He was frozen in time by simply letting the. Mac field would be a slow and tragic death. Faced with this choice, I decided to find a new host that allows content server-side. In doing so I will satisfy an important long-term, although prematurely - goal also namely, features on the server side.

    Recently, I contacted Akamai Technologies and identified a reliable global service of web hosting called Rackspace. They promised to call me tomorrow with an offer, and I have to be ready. As a user of Apple dedicated with a high level of mobility, it is probably wise for me to host my own site on my own computers.

    PREFERENCE PRESENT: without any consultation from anyone I would choose PHP, simply because I remember having read that it is free and open. Furthermore, I see him often as an extension when I surfed, and he seems to be very popular. That said, I know that there's much more out there, and I'm very well versed in Adobe CS3 Master Collection.  Finally, I have until tomorrow to get ready.

    What application would you recommend and why?

    Roddy

    Jay Jhabrix is kindly asked to not post to this entry.

    Already posted in the general Forum of DW.

    Just curious, why do you think that you need a dedicated server?  Do you think that abnormally noisy or you host a great entertainment / media site with huge bandwidth needs?  Most of the people do not require a dedicated server.

    Take a look at Lunar Pages.  They offer very affordable hosting plans with unlimited space and bandwidth from as little as $5 per month.  I have a dedicated server plan with them for a media site that is priced well under the 100 $par month.  Here is the full service plans too (they maintain and upgrade of servers).  You get email accounts and an Admin Panel with lots of extras.   Check them out.  http://www.Lunarpages.com/ID/NancyO

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics |  Print | Media specialists
    www.Alt-Web.com/
    www.Twitter.com/ALTWEB

  • Check on the server side

    I have problems related to the record of the stream on the server side. Using Stream.get ("abc") to get the stream and Stream.record (false) and Stream.record () to launch the recording to stop recording on main.asc file. After the whole process, I can see the .flv file in folder of watercourses, but can't make it to play this saved .flv file. If I duplicate the same .flv file saved to the same folder, I can play the copied file.

    I can play the saved original .flv file only if I restart FCS. Somehow his problem associated with free resources for the stream, do not know what.

    Does anyone have an idea of what's going on?

    Sorry... for some reason, I got is in my head that a client has been connected to the stream.

    I don't know of a way that you can get rid of a live stream without using Stream.clear (), but in your case, it would remove the flv. As far as I know, you will need to use a starting value for your ns.play argument.

  • AF:table how to get selectedRow components on the server side

    Experts of hell,

    Is it possible to get the components of the selected line on the side server, getSelectedRowData, gives me data and all the different connections but no components.

    But, I can do JavaScript client-side

    Shooting double click event on af:Table

    var table = event.getSource ();
    rwKeySet = event.getCurrentTarget () .getSelectedRowKeys ();
    for {(rowKey in rwKeySet)
    firstRowKey = rowKey;
    break on the first selection key corresponding
    break;
    }

    cell_1 = table.findComponent ("inputTextOne", firstRowKey);
    cell_2 = table.findComponent ("inputTextTwo", firstRowKey);
    cell_3 = table.findComponent ("inputTextThree", firstRowKey);

    and call methods of ADF InputText side of client, I can do the same on the server side

    Side server even if passing cell_1, cell_2, cell_3 using serverListener it as a unique inputText (which is on the jspx), so at the client side only af:inputTexts inside the af: column renered aside with an Id separated for each line (for DOM)
    as

    1st row: input type = 'text' id = ' table1:inputTextOne:1: I'm glad. "
    second row: input type = 'text' id = ' table1:inputTextOne:2: I'm glad. "
    third row: input type = 'text' id = ' table1:inputTextOne:3: I'm glad. "

    but calling server-side inputText.getClientId () always gives table1:inputTextOne

    any help is appreicated the

    Thank you

    In addition, you need more queued to a custom event.

  • Windows XP running startup scripts displays the taskbar?

    Hi all

    I have a newly installed Server 2003 domain.

    I have also 2 machines that I have connected to the domain. One of them works very well (goes on the internet, readers of network etc.).

    The other is does not work. It connects to the domain, reboot, then I log into the admin account. After that I did a gpupdate, and then restart the system.

    The problem is, when the system starts up again, it seems to start to run startup scripts, then seems to automatically connect on a called user account $ media (Media is the name of the computer).

    It displays the windows desktop and begins to run explorer.exe, with this user account (MEDIA$), with the start of the Running of scripts loading screen and does not get more.

    (Both the Pc running Windows XP Professional SP3)

    Any fix for that?

    Hello

    Your Windows XP question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the forum TechNet for assistance:

    http://TechNet.Microsoft.com/en-us/WindowsServer/bb512919

    Hope the helps of information.

  • Run Calc Script using MaxL server location

    Hello!!

    I wonder if anyone has tried running Calc script stored on the server (not in the app folder) using MaxL?

    My research on run calculation led to run scripts associated to a particular application, but not on executing a script from a common repository such as the location of the server between multiple applications.

    Any help is greatly appreciated.

    It is sometimes useful, in my case, I had a unique scenario where I had 10 cubes

    Cube 1 essbase process information and then send to the DATA STORE, which then runs a set of calc (some detailed data movement)

    Cube 2 then consumes these data and processes to Cube 10.

    All scripts used in Essbase is the same. However, we had to keep all applications and maintenance was a nightmare. This RUNCALC scenario helps a lot.

    I had to create a dummy app/db to store all Calc and maintenance will be done on this one and a bat script will move those to the respective cubes. I can identify at the request

    Concerning

    Celvin Kattookaran

  • [CS5] Run a script on the open document

    Is it possible to run a script automatically whenever a document is open?

    Application has the "beforeOpen" event listener, which won't work, the document is not opened and Document has the "afterOpen" event listener, but which cannot be added until after the document is already open, so I'm not sure was what it serves.

    Any help would be appreciated.

    /Dan

    .. .and document has the "afterOpen" event listener, but will not be added until after the document is already open, so I'm not sure what it serves.

    You can do it-here is an example:

    #targetengine "MyEngine"
    
    var myEventListener = app.eventListeners.add("afterOpen", myDocOpen, false);
    
    function myDocOpen(myEvent)
    {
         var myDoc = app.documents[0];
        myDoc.pages.add(LocationOptions.AT_END);
    }
    

    It is important to use app.documents [0] instead of app.activeDocument when you use the afterOpen event.

    This simple script adds a new page whenever a document is open. Written and tested on CS3, windows.

    Kasyan

    P.S. I just tested on CS5 - it works here as well, but it adds two pages instead of one for a reason any.

Maybe you are looking for

  • How to start?

    How we started creating an iBook for iOS devices?

  • mg5400 does not scan. do not print remotely

    I have a mg5400 that I really like and served me no problem until recently.  It is now more communicates wireless.  It must be hard wired to accept a print command.  says the printer is offline, even if it is running.  takes immediately and prints as

  • I have a psc 1510. How to print a test page everytime I turn it on?

    I would like the 1510 PSC DO NOT automatically print a test page everytime I turn on the printer. I don't do a lot of printing, so I don't want to waste paper by the presence of an extra page printed up evry time I want to just print a few pages. Is

  • BlackBerry GPS App

    I recently downloaded Cascarun Pro and GPS is off.  Y at - it something wrong with the application or if it does not recognize my BB.  I thought it was the app so I downloaded Endomondo and once again the GPS does not work.  How can I sync the app to

  • I uninstalled Norton Antivirus by accident, is not in the Recycle Bin How do I get it back?

    I uninstalled Norton Antivirus because I was going to install AVG Antivirus but cannot find the serial number to complete registration code installation, so I canceled the installation AVGI need to recover the Norton Antivirus, but it is not in the R