How do I add PHP Script to an XHTML Page?

I am tring to add a PHP script to my XTHML page in Dream
Weaver. The tag starts <?php and ends ?>. I have uploaded the
script on to another site which I use for testing and it shows the
whole code not the intended presentation. I did read that the
server should support PHP scripts..I have been trying to research
it online however I have had no luck.
I have also tried publishing it to a local folder and it
still didn't work. I am really lost!!!
I am very new to building websites in dreamweaver so laymens
terms would be great!!
Thanks so much!
John

1. are you adding the php script in design view or code view?
2. is the file name a .php?
3. does your server support php?
Dan Mode
--> Adobe Community Expert
*Flash Helps*
http://www.smithmediafusion.com/blog/?cat=11
*THE online Radio*
http://www.tornadostream.com
<--check this
*Must Read*
http://www.smithmediafusion.com/blog
"jbravo1224" <[email protected]> wrote in
message
news:f32956$fj7$[email protected]..
>I am tring to add a PHP script to my XTHML page in Dream
Weaver. The tag
>starts
> <?php and ends ?>. I have uploaded the script on
to another site which I
> use
> for testing and it shows the whole code not the intended
presentation. I
> did
> read that the server should support PHP scripts..I have
been trying to
> research
> it online however I have had no luck.
>
> I have also tried publishing it to a local folder and it
still didn't
> work. I
> am really lost!!!
>
> I am very new to building websites in dreamweaver so
laymens terms would
> be
> great!!
>
> Thanks so much!
>
> John
>

Similar Messages

  • How do I add an electronic signature to a pages document

    how do I add an electronic signature to a pages document?

    Sergio
    Glad you stepped in and elucidated my inadequate explanation.
    Step by Step explanations of the problem will get Step by Step instructions, but its been a week and the O.P. hasn't elaborated on what they actually want.
    You may consider it a horrible answer, what was your opinion of the question?
    Peter
    PS I looked hard but couldn't find a reference to Preview in my post.

  • How do I add OIC presense into my web page?

    How do I add OIC presence into my web page? with Oracle Messenger (RTC) we can use the href=rtcmsgr:sendmsg?<login_ID> what is the equivalent for Oracle Instant Chat (OIC)?

    Unfortunately, this functionality was lost in the conversion from RTC to OIC. This feature was available because of a http web presence. Oracle did not license that component in OIC.

  • How do I add an album to the album page

    How do I add an album on my album page with iweb
    thanks

    Open the Media drawer, click on Photos, select the iPhoto album you want to add and drag it into the iWeb album page.
    OT

  • How do I add links to my social media pages within Dreamweaver?

    how do I add links to my social media pages within Dreamweaver?

    As you would for any other link. What is the precise problem? Can you give us an example?

  • How can i run unix script from my apex page

    how can i run unix script from my apex page and take the output of unix script as a hidden variable and display it on the report region of that page

    I had a requirement to run a Fortran program against some data that woudl be extracted from the database after the user set up their filtering criteria and made some additional input. SInce the program was to complex to conver to PL/SQL, we decided to try and invoke it from Apex. This is how I did it.
    1. I followed the steps in Tim Archer's excellent article "Oracle External Procedure to Run Host Commands" (http://www.timarcher.com/?q=node/9). If the link does nto work, google the article's title.
    Using this steps I created a function which accepts any OS command, including calling my own shell scripts, and runs them. I called my PL/SQL function "shell" instead of "USF_RUN_HOST_CMD " as Tim did in his example (step 9).
    2. In Apex,
    a. I created a button to run my shell command. (I named it P2_RUN_SHELL)
    b. I created a PL/SQL process whose source looks as follows:
    shell('/home/ackness/scripts/cr_xcf_file.sh > /tmp/cr_scfp_file.log');
    and which was conditioned on the the button P2_RUN_SHELL.
    It works like a charm.
    Note: since you can run your own scripts using this method, you can encapsulate a series of commands in a UNIX shell script and invoke that script from Apex. This allows you to be able to test or run you commands from the command line as well as Apex and makes it easier to develop/debug/enhance the scripts in the future.
    Ackness

  • How do I add a Related Link to a page?

    I tried asking this on the Spry forum, but the only answer I got was from someone who never used Dreamweaver, so I'll try here...
    I have 5 main pages on my  site.   When I bring up four of them in Dreamweaver, all the related  files show up in the Related Files Bar, and the SpryMenuBar.js is one of them.
    But in the fith main page, there is no SpryMenuBar.js showing up in the Related Files Bar.   As a result the submenu additions I just made to my Spry Horizonatal  Menu is not working properly. (At least this is the assumption I have  made from reading a previous forum topic that had the same problem.  And  my other 4 pages DO have the SpryMenuBar.js as a related  file and the submenu changes worked wonderfully.  Obviously the  SpryMenuBar.js is on my webserver or the other four pages wouldn't work,  right?)
    So what I am trying to do is get the SpryMenuBar.js to show up as a related file whenever I open this  particular page. (Page 5)
    So the main question is: how do I add a file to  the Related Files Bar? (SpryMenuBar.js)
    Do  I open this 5th page (that is missing the SpryMenyBar.js) and then go  to the File menu and hit "open"?  I thought that was for  opening new pages not related to the one you are  working on.
    As a newbee I need step by step  directions....
    Have I made my question clear?  Or just  muddied the water?

    In your Home Page you have this:
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    Your ABC's page shows this:
    <script src="ABC-Article-Page.html" type="text/javascript"></script>
    <link href="../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    "ABC-Article-Page.html" is NOT a javascript file.  It is an HTML file so it doesn't belong there.
    Change it to the following and should work.
    <script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • How can I add javascript text fields to Acrobat pages from Applescript please?

    I have a real need to add text fields to Acrobat document pages from Applescript. I can't access the Headers and Footers from Applescript in Acrobat XI. I can set watermarks using the following script, but cannot for the life of me work out how to add text fields. Any advice please?
    Regards
    set TempAttachmentName to "(20140717121212Z)"
    set PreserveFileName to "This is a test"
    set bypass to false
    tell application "Adobe Acrobat Pro"
      activate
      set CountOfPages to count of pages
      repeat with PageCounter from 1 to CountOfPages
      tell application "System Events" to tell process "AdobeAcrobat"
      try
      click menu item "Page..." of menu 1 of menu item "Go To" of menu 1 of menu bar item "View" of menu bar 1
      tell current application to delay 0.1
      keystroke PageCounter as text
      tell current application to delay 0.1
      keystroke return
      if not bypass then
      my ADDHeaderFooter(TempAttachmentName, PreserveFileName & " " & CountOfPages, PageCounter)
      end if
      end try
      end tell
      end repeat
    end tell
    on ADDHeaderFooter(The_String1, The_String2, currentPage)
      tell application "Adobe Acrobat Pro"
      activate
      set myDocument to document 1
      tell myDocument
      tell page currentPage
      set cbox to crop box
      set item 2 of cbox to (item 2 of cbox) + 44
      set item 4 of cbox to (item 4 of cbox) - 44
      set media box to cbox
      set crop box to cbox
      set theResult1 to my Add_WaterMarkText(The_String1, "IDAutomationHC39M", 12, 1, 1, 1, 0, 3, 10, 3, 0)
      do script theResult1
      set theResult2 to my Add_WaterMarkText(The_String2, "Times", 16, 1, 1, 1, 0, 4, 10, -6, 0)
      do script theResult2
      end tell
      end tell
      end tell
    end ADDHeaderFooter
    on Add_WaterMarkText(cText, cFont, nFontSize, nS, nE, nTA, nHA, nVA, nHV, nVV, nR)
      set Params to "cText: '" & cText & "'," & return
      set Params to Params & "cFont: '" & cFont & "'," & return
      set Params to Params & "nFontSize: '" & nFontSize & "'," & return
      if class of nS is integer then set Params to Params & "nStart: " & (nS - 1) & "," & return
      if class of nE is integer then set Params to Params & "nEnd: " & (nE - 1) & "," & return
      -- 0 = left, 1 = centre, 2 = right
      if class of nHA is integer then set Params to Params & "nHorizAlign: " & nHA & "," & return
      -- 3 = top, 4 = bottom
      if class of nVA is integer then set Params to Params & "nVertAlign: " & nVA & "," & return
      -- offset in points
      if class of nHV is integer then set Params to Params & "nHorizValue: " & nHV & "," & return
      -- offset in points
      if class of nVV is integer then set Params to Params & "nVertValue: " & nVV & "," & return
      if class of nR is integer then set Params to Params & "nRotation: " & nR & "," & return
      set javascript to "this.addWatermarkFromText({" & Params & "});"
      return javascript
    end Add_WaterMarkText

    G'day
    Unfortunately I don't have the API. My Adobe Reader installation updating to version XI failed, and subsequent attempts to fall back on the X version are blocked by the partial install of XI. Damn Adobe stuff.
    Could someone please post the relevant part of the API to give me some pointers, please.
    I ha mucked about with some information I found on the Web, and come up with the following, which fails because I can't work out how to address the current document with the variable myDoc.
    Regards, Brian
    set Params to Params & "var myDoc = this;" & return
    set TempAttachmentName to "(20140717121212Z)"
    set PreserveFileName to "This is a test"
    set bypass to false
    tell application "Adobe Acrobat Pro"
      activate
      set CountOfPages to count of pages
      repeat with PageCounter from 1 to 1 # CountOfPages
      tell application "System Events" to tell process "AdobeAcrobat"
      try
      click menu item "Page..." of menu 1 of menu item "Go To" of menu 1 of menu bar item "View" of menu bar 1
      tell current application to delay 0.1
      keystroke PageCounter as text
      tell current application to delay 0.1
      keystroke return
      if not bypass then
      my ADDHeaderFooter(TempAttachmentName, PreserveFileName & " " & CountOfPages, PageCounter)
      end if
      end try
      end tell
      end repeat
    end tell
    on ADDHeaderFooter(The_String1, The_String2, currentPage)
      tell application "Adobe Acrobat Pro"
      activate
      set myDoc to document 1
      tell myDoc
      tell page currentPage
      set cbox to crop box
      set item 2 of cbox to (item 2 of cbox) + 44
      set item 4 of cbox to (item 4 of cbox) - 44
      set media box to cbox
      set crop box to cbox
      set theResult1 to my Add_WaterMarkText(The_String1, "IDAutomationHC39M", 12, 1, 1, 1, 0, 3, 10, 3, 0, myDoc)
      do script theResult1
      set theResult2 to my Add_WaterMarkText(The_String2, "Times", 16, 1, 1, 1, 0, 4, 10, -6, 0, myDoc)
      do script theResult2
      end tell
      end tell
      end tell
    end ADDHeaderFooter
    on Add_WaterMarkText(cText, cFont, nFontSize, nS, nE, nTA, nHA, nVA, nHV, nVV, nR, myDoc2)
      #set Params to "var myDoc = app.newDoc();" & return
      set Params to ""
      set Params to Params & "var myDoc = this;" & return
      set Params to Params & "var inch = 72;" & return
      set Params to Params & "var Bbox = this.getPageBox(" & "\"Crop\"" & ");" & return
      set Params to Params & "var f = myDoc.addField(" & "\"Text1\"" & ", " & "\"" & cText & "\"" & ", 0, [72, Bbox[1]-inch, Bbox[2]-2*inch, Bbox[1]-2*inch ] );" & return
      set Params to Params & "f.strokecolor = color.black;" & return
      set Params to Params & "f.richText = true;" & return
      set javascript to Params
      return javascript
    end Add_WaterMarkText

  • How can i add filename on a document in pages 5.1 ?

    I am allways using a template to make documents, that I save under different names. How can I add the (changed) filename in the footer of a saved document ?
    It is important to me to print the filename on document, to find and edit it on my mac later.
    In MS Word it is easy to automaticaly add filenames, path, author and other filedata to the document. I can't find how to do that automatically in Pages templates.
    I saw earlyer answers to this question on this community, but they don't work as I expect, or only on earlier versions of pages.....  I trust there is an easy way to do this.
    Can someone help me please ?

    That function, present in "Pages 09" (i.e. Pages 4.3) , was not included in Pages 5.0-5.1.  (Nor were nearly 100 other such features, from mail merge and bookmarks to non-contiguous text selection, 2-up page viewing and the ability to set alternating left/right margins, headers & footers.Version 5.1 is also notably buggy. One work around, or partial work around, is to click the file name at the top of the window document. You can then select the filename, copy it  and paste it whereever you like. As far as I can see, however, there is no way to include the path: all you get is the filename and extension.

  • How to Use the JAVA SCRIPT code in .htm page of the component

    Hi .
    In my requirement i have to use Java Script Function in .htm code ..how to use the java script code and functions in .htm???
    thank you
    B.Mani

    Check this document  [Arun's Blog|http://wiki.sdn.sap.com/wiki/display/CRM/CRMWebClientUI-TalkingwithJava+Script]
    Regards
    Kavindra

  • How do I add a tracking code to my page?

    I want to add a tracking code to my page but iWeb doesn't seem to allow it. I copied the html code from a 3rd party site (Google Analytic) and tried pasting into the html widget in iWeb but when I check the tracking report it keeps telling me the code has not been installed. I have tried placing the text block at various places on the page and still no luck. The directions at Google Analytic tell me where I need to paste it into the html code but to do that I need an html editor or a text editor that can read html.
    Am I doing something wrong with the html widget? If a tracking code can't be added with a widget is there a way I can edit the source code directly? A text editor, maybe? I tried Word but but it wouldn't open the page.
    Thanks for any help!
    Rikki

    There's a way to add Google Analytic to pages without having to edit the page. It's a little bit of work but it's a one time process. Read about it here: http://www.wyodor.net/blog/archives/2010/05/entry_316.html
    Or you could add StatCounter to each page to get not only the number of hits but lots more information:
    Click to view full size
    This tutorial describes how to add it: Old Toad's Tutorial #13 - Adding a StatCounter as an HTML Snippet.
    OT

  • How do I add a site to my home page?

    How do I add a link to a special site on my home page?

    I don't know what the "about:newtab" is?
    When using IE I was able to put a link to specific site on my home page. When I wanted to reference it, all I did was go to home page and click on icon.
    Thanks for trying to help me!!

  • How do I add a banner on my iweb page

    I have a website published thru iWeb and an FTP server... I'm trying to add a banner for which I do not have a swf file. Here is the banner:
    http://files.slamcom.com/Ricard/Banner-560x120-Boule-NYC.8.html
    How can I add the banner on my site? I tried just copying the source code but it didn't work. Do I have to change the code?

    There are copyright issues when you use someone else's banner. Other than that use iFrame code and the URL you posted. You can find out more about iFrame and HTML snippets at http://web.mac.com/catucker/InsideOutside/iFrame.html.
    OT

  • How can I add logo (image) to headers in Pages 5.1

    Hi,
    How I can add a logo (image) to header in documents in Pages 5.1
    It seems every time I try to copy and paste any image it doesnt go into header (not appearing on other pages in the document)
    Thanks

    That was removed from Pages 5 by Apple along with over 90 other features.
    Pages '09 should still be in your Applications/iWork folder.
    Peter

  • I have a problem with a php script for loading dynamic pages using flash as menu bar, but the urls in the flash is not processed by the php script only in firefox

    '''php script:'''
    <?php
    $page = $_GET['page'];
    if ($page)
    include ("inc/".$page.".php");
    else
    include ("inc/home.php");
    ?>
    '''Action script 2.0 in flash:'''
    on(release){
    getURL("index.php?page=new");
    }

    A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
    The helpers at that forum are more knowledgeable about web development issues.
    You need to register at the mozillaZine forum site in order to post at that forum.
    See http://forums.mozillazine.org/viewforum.php?f=25

Maybe you are looking for

  • Why do I get duplicate events in iCal when I input them on my iPhone?

    Every time I add a new event on my iPhone (as opposed to my iPad or desktop) I get a duplicate entry. This started to occur a few days ago for no apparent reason. This does not happen if I input the event on any other device. Is there a way to solve

  • Isse with using Grouping Sets in SQL Server 2008 R2

    Hi, I created a query in SQL Server 2012 using grouping sets that works fine.  When I try to use the same query in SQL Server 2008 I get an error ("Inccorrect syntax near SETS"). I researched using grouping sets in 2008 and didn't see any issue with

  • Sync-Async Integration

    Hi friends, I have a scenario where two sides are web services.  One WS is Sync and other side is Async.  Is there any way to do Sync-Async integration other than ccBPM ? You suggestions are welcome.

  • First Person Shooter Games for Macbook

    Hi, I've been looking for a good FPS games. there are few that meet the components that the Macbook have. i have the GMA X3100 graphics card. i wanted to get Medal of Honor or Unreal Tournament 2004 but both require a GeForce graphics card. Is there

  • Volume level on line-in at 100% but still low sound level when I rec

    For many years and hundreds of times I have successfully recorded wave files using a wave editor (Goldwave). I have transferred albums, tapes, and now satellite radio by running stereo cables from my receiver into my line-in on my sound card (using a