Muse of PHP - file loading.

Hello world!

Here another question:

I have this code to download (of course I put my personal data inside... works well):

<? PHP

include 'Services/Twilio/Capability.php ';

Put your credentials Twilio API here

$accountSid = "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";

$authToken = "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy";

Put your Twilio app Sid here

$appSid = "APzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz";

$capability = new Services_Twilio_Capability ($accountSid, $authToken);

$capability-> allowClientOutgoing ($appSid);

$capability-> allowClientIncoming ('jenny');

$token = $capability-> generateToken();

? >

<! DOCTYPE html >

< html >

< head >

Hello customer Monkey 3 < title > < / title >

< script type = "text/javascript".

SRC="//static.Twilio.com/libs/twiliojs/1.2/Twilio.min.js" > < / script >

< script type = "text/javascript".

      src=" https://AJAX.googleapis.com/AJAX/libs/jQuery/1.7.2/jQuery.min.js ">

< /script >

" < link href =" http://static0.Twilio.com/bundles/QuickStart/client.CSS "" "

Type = "text/css" rel = "stylesheet" / >

< script type = "text/javascript" >

Twilio.Device.setup ("<?") PHP echo $token;? > ");"

Twilio.Device.ready (function (device) {}

$("#log").text ("Ready");

});

Twilio.Device.error (function (error) {}

$("#log").text ("error:" + error.message);

});

Twilio.Device.connect (function (conn) {}

$("#log").text ("successfully established call");

});

Twilio.Device.disconnect (function (conn) {}

$("#log").text ("call ended");

});

Twilio.Device.incoming (function (conn) {}

$("#log").text ("incoming connection of" + conn.parameters.From);

accept the incoming connection and start two-way audio

Conn.Accept ();

});

function call() {}

Twilio.Device.connect ();

}

hangup() {} function

Twilio.Device.disconnectAll ();

}

< /script >

< / head >

< body >

< button class = 'call' onclick = "call (); ">

Call

< / button >

< button class = "hang up" onclick = "hangup (); ">

Hang up

< / button >

< div id = "log" > loading pigeons... < / div >

< / body >

< / html >


Metadata download result:


result.png



Muse can not run scripts php natively. Won't work at all on a hosted site BusinessCatalyst. To run it on a 3rd party host, you will need to rename the file from .html to .php page name and there is no guarantee that it will work properly after that. Another problem is that muse will republish all changes on the site using the .html extension, so you need to keep the renaming.

I hope this helps.

David

http://creativemuse.co

Tags: Adobe Muse

Similar Questions

  • You can add a .php file in muse, hosted by BC?

    Designed a site in muse for a B & B - the reservation file that must be included in the site is a .php file.

    How can I handle this?

    Thank you

    Shelley

    Baseline account BC does not any customizations. Unless you are willing to pay for a pro account, you can do none of this. and even in this case you must use the functions and widgets provided by BC as extended forms long before entering custom PHP.

    Mylenium

  • I can upload a php file to my host with a html contact form embedded in Muse for it to work?

    I can upload a php file to my host with a html contact form embedded in Muse for it to work?

    This would require to know his needs and your hosting provider. And who are also lies the answer: you can not blindly create a form in Muse and just that it will work, you need to know this stuff in advance and design "spec".

    Mylenium

  • Muse of the .php files creates instead of .html files when they are uploaded directly on the host in the program

    When I use reCaptcha in Adobe Muse, it creates the files index.php when I click Download ftp host. If I export it to HTML, then it works properly.

    For my own Web site, it is not a problem (Hoststar.ch), but it seems to be a problem for the other hosting providers (Genotec.ch).

    Also if there is a file .htdocs in the folder I'm exporting to, he wrote a "Muse generated redirects', but it will still not for Genotec.ch.

    If there is no .htdocs file in the folder, it also will not create a.

    This problem is fixable or what should I do?

    Hello

    Adobe Muse generates no file .htdocs. Do you have it checked with your host, if it is available for you on the server?

  • XML from a php file does not load

    Hello
    I have a php file this xml output, in order to to use in flash.
    When I test the php file in the browser, I get the XML that I need, but in flash I get this error message:

    TypeError: Error #1088: the markup in the document following the root element must be well-formed.
    at taakexml_fla::MainTimeline/seexml()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()


    I took the xml I get it's a separate file (an xml one) and I can load it.
    what I am doing wrong?

    Best regards

    Ron

    makexml2.php

    success that helps a filepath - IE http://server/makexml2.php (even if the Apache server is running on your computer).

    It must be compiled on a server (even a local instance) - not directly referenced in an independent file. In addition, if you are running in a browser (on the server) instead of in local test mode, it should work.

    HmcH

  • Failed to connect to a PHP file

    I get an error when downloading a site Web of MUSE to my hosting provider. When I publish the Web site, and error appears when FTP is finished and he said: 'failed to connect in the PHP file. Impossible to check if the webserver supports PHP required by forms of the Muse.

    This who should I tell the hosting provider to resolve this error?

    Thank you

    Jim

    Assuming that there no error or warning earlier in the download process, you should check with your hosting provider that PHP is installed and activate your account.

    As part of the download process Muse downloads a small test using FTP .php file, then load it down with HTTP to confirm the file was available and ran PHP code. This criterion is apparently a failure on your hosting.

  • Firefox keeps asking me to open/download PHP file when she used to be able to display properly.

    I use to be able to view local PHP files normally in Firefox with parts PHP not rendered, HTML elements are. Now he's asking if I want to open or save.

    I tried FF editing options so that it presents a preview in FF, but it does not accept the changes. I cleared my cache and everything. I tried to delete the mimeTypes.rdf file thing, but I can not find the folder, in that it is. I tried deactivating/activating "prompts.tab_modal.enabled" in subject: config then restarting FF.

    All are prohibited.

    Web PHP pages load correctly, this problem only when I am trying to load local PHP files. I don't want to install XAMPP or PHP on my computer just to view the files them that I've never had this problem before.

    In the meantime, I installed Chrome and it loads a local simple PHP file very well while FF asks me to save/download when you open the SAME file. Thanks in advance for any help.

    You can use this button to go to the Firefox profile folder:

    • Help > troubleshooting information > profile directory: see file

    Try to delete the mimeTypes.rdf file in the Firefox profile folder to reset all the actions file.

  • Is it possible to have a block of text from an external source (ex. TextWrangler file) load in multiple pages (file TW exodus as an "insert" in 4 different pages on a site)?

    Is it possible to have a block of text from an external source (ex. TextWrangler file) load in several pages on a site in the 'performance' (e.g. TW file as an "insert" in various pages)

    Use SSI. If you're on a PHP server just use the PHP include, if not take a look on SSI: the command Include

  • variables php correctly loaded in flash and poster DEFY the If - then statements

    path = "http://localhost/xampp/nwjv/php/";

     

    //declare path to php files

    lvOut = new LoadVars();     //create lv object sending variables OUT to php

    lvIn = new LoadVars(); //create lv object receiving variables IN from php 

     

    lvIn.onLoad = function (success) {

    if(success)

    {

         //PHP variable value to textbox 

     

         InVal = lvIn.returnVal;

         InTxt = lvIn.retVal; 

     

         output.text = InVal;

         output1.text = InTxt; 

        

         /* 

        output1.text = "No Value"; 

         if(InTxt == 'lo' ) { output1.text = "Low Value"; } 

         if(InTxt == 'hi') { output1.text = "High Value"; }

          */

    } else { //...or notify of failure output.text = "fail"; }

     


    myBtn.onRelease = function()

      {

          //assign user-input value to lv property called years

         lvOut.years = years.text; //send to a blank window //

         lvOut.send(path + "dogyears_new1.php",lvIn,"GET");

         lvOut.sendAndLoad(path + "dogyears_new1.php",lvIn,"GET");

    };

    And simple PHP code

    PHP code:

    <?php$calculation = $_GET["years"]*2;
    if(
    $calculation <=10 ) $retVal="lo";
    if(
    $calculation > 10$retVal="hi";
    echo
    "&returnVal=$calculation &retVal=$retVal" ;?>

    PHP returns two values that are perceived by the flash in InVal and InTxt variables. The collected values are correct and are thus displayed in boxes of 2 outputs. If the value in the input box is 5 or less, the outbox1.text shows "lo" and if the entrance area is greater than 5 the output1.text shows 'hi. '

    Now, if yew commented then block in the code is activated by removing the / * / of all about him and the program is run, the If Then block fails because the comparison of the InTxt fails.  SO even if the value of InTxt is "hi" or "lo" as seen on the 1st round, but the value does not change to the 'Value' but high 'low value' according to the value of InTxt in the If Then comparison bloac.


    It has completely failed me why this is happening. While I can see the values correctly, I can't use it in conditional loops. I even tried the instructions box switch with the same frustrating result. (The output1.text is equal to 'No value' when it should change to 'High value' or 'Low value')

    Earlier I was using numbers and faulty when I tried to use strings because I thought that for some reason any PHP returns everything as strings. But as can be seen, even the string comparison fails.

    Can someone please comment on this problem and suggest a solution.

    All thanks loads!


    PS. I wanted to download the small fla for this but I could not find a way to add a file here. Please suggest if I can do and how and I'll upload my fla for this code. Thank you.

    which is caused by some problems/string number (not in your case), or a white space (probably your situation).

    to confirm that it is the white space, check the length of returned variables to see if they are more than 2.

  • Don't get a PHP file - no code mode Code

    I am trying to open documents on my newly installed php Dreamweaver CS6 64-bit (Windows 8.1 Pro), and they are all loading in totally blank code view; However, when I go to view the same files online, it shows very well.  I have even pulled up different types of files in Dreamweaver from my FTP connection without any problem, it's just my php files.  I changed the Windows/Mac/Unix settings with nothing does, and I'm certainly in code view.  What could cause PHP files with his code in them to not shoot to the top of any code in Dreamweaver CS6?  Let me know what you need and I'll get it for you.  Thanks in advance for your help.

    No doubt.

    DW wants local copies of the files within a Site definition for the edition that are then uploaded later. It is not intended to modify files on a live server.

  • Loads PHP vars loading cache

    Hello

    I have a program that loads the PHP variables.  At the end of the day, I will be responsible for producing the PHP but I have to be sure that the flash load variables.  In my own tests using a simple PHP file, once the variables are laoded, subsequent changes to the variables don't have not recorded until I cleared my cahce.  I was leading these test on my local server so maybe that is not a question online.

    But if anyone has any knowledge about this or knows how to make sure new variables are loaded each time the flash application to load PHP, I'd be gateful for the information.

    Best,

    Chris

    If you asssign a random variable to the url string for the php file it does not load the cache... something like...

    var fileToLoad: String ="http://www.domain.com/yourData.php?nocache=" + Math.Random ();

  • Why Firefox will open link hotkeyed a Web site as a Web page on my PC but download a php file that opens in the language machine when using Firefox on my Mac?

    If I use Safari as my browser, the hotkey opens on another Web page, as it should, without going through a php file download process when the Firefox browser is used. What gives?

    Oops, I need to sign up for anything on the site...

    Here are a few things you can do additional tests:

    (1) when you download the newsletter, it is in PDF format?

    (A) on your Mac, you may need to name the file downloaded with a .pdf at the end of the file name extension so that it can open in Adobe Reader (or an extract or other PDF reader that you use).

    (B) on your PC, can you say display the newsletter if it's displaying in the plugin Adobe Acrobat, PDF Viewer integrated Firefox or another plugin?

    (2) more suggestions if necessary.

  • Firefox (yet) open several tabs when I open any PHP file

    I tried all of the fixes suggested in your article, including removing mimeTypes.rdf, change the default browser for files PHP and my PC for malware analysis. The problem is still ongoing. Any ideas? Thank you.

    Thanks much for the reply, cor - el. I've been teaching myself PHP for the last month or two, so I downloaded on my PC at home of Apache and PHP files are mine. In fact, the problem of multiple tabs started right after I updated Firefox to version earlier this week. The strange thing is that the same PHP files open perfectly fine before the update.

    In any case, I found a workaround on www.bleepingcomputer.com. Instead of double-clicking the PHP file, which causes the problem of multiple tabs, I type the path of the PHP (for example, localhost/index.php) file in the URL in Firefox toolbar. The file works as before without having to open the tabs. It is not an ideal solution, but it will do for now.

  • How can I add a php file type?

    I use windows xp. There was a file type "php" but used with 'Print Shop quick print' which I removed because of the conflict. I want the "php" that is used with "hyper text preprocessor. I tried just to add "php" as a new type of file, but without any criteria, I don't think that it is recognized.

    What do you do with your php files?  What application you want to use to handle (for example, modify) them? Normally, the php files are used by php on a web server engine. If you want to edit or create php files, you can use the Notepad Notepad ++or application such as Dreamweaver web development.

    Assuming that you have an application in mind that you want to use to open the php files, the best thing to do is:

    • Find a php file
    • Right-click on it and select open with > choose program
    • Locate the executable file of the application you want to use
    • Check the box "always use this program to open this type of file.
    • Click OK
  • conflict of .php file

    I still have Microsoft "Picture It" installed on my computer (because I love it), but it causes a conflict with the .php files. i.e. the php files get saved to the "Picture It". Is there a way around that does not uninstall Picture It?

    Files don't get saved to the 'of some application."

    However, Windows uses the file extension to determine what application should be used to open a file when you double-click the file or choose 'Open' from the context menu.  That a single application can be associated with a file extension given... but this does not mean that different applications may not use the files with the same extension.

    Go on filext.com and get no matter what file extension.  Many - including php - are associated with several different applications.  It is not a problem except for the double-click behavior.

    You have one real problem other than to see a PictureIt icon associated with a php file which is really a web page?

    What is the conflict that you encounter?

Maybe you are looking for

  • Need to run an application on an older operating system (10.6.8)

    The last BONE, one of my most often used applications can run on is OS 10.6.8.  Which makes more sense: partition the drive and put 10.6.8 on a partition and the latest OS on the other partition for my general uses. or put on a bootable hard drive la

  • Not DAY. E AIR 1000 RSS image slide show of the internet server support?

    Hello I would like to know if air journ.e 1000 is able to display a slideshow of images generated from an intranet server rss recalling an http page(http://server/RSSGenerate.aspx) Thank youIvan

  • Upgrade of RAM for Satellite A110-274

    Hello I have a laptop Toshiba Satellite A110-274 currently with 2 x 512 MB (1 GB) of RAM.What is the best/most RAM upgrade (i.e. 2, 3, 4 GB) I can buy?

  • Reading data external pc

    Hi guys, I'm kinda new to the instruments OR, and I need to understand how to read data from a PXI-1042 q, which has a PXI-8187 embedded controller and an array of the PXI-4472. I need to read the data to an external computer via one of the serial po

  • Set the color of the element table (active/inactive)

    Hello I have an array whose elements are in the date format. is it possible to programmatically change the color of the elements for the active/inactive States? Thank you