Welcome to TalkGraphics.com
Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 46

Thread: PHP, SHTML, etc

  1. #11
    Join Date
    Nov 2006
    Posts
    1,602

    Default Re: PHP, SHTML, etc

    John,

    This isn't true(maybe only for the preview of xwd)
    even my txt/html editor(pspad) can preview php
    (i know it will not show php scripting but the html will show)

    Hans
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	phpScreen.png 
Views:	220 
Size:	56.3 KB 
ID:	57543  

  2. #12
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: PHP, SHTML, etc

    Quote Originally Posted by haakoo View Post
    John,
    This isn't true(maybe only for the preview of xwd)
    Do links like: "page2.php" work in IE with WD exported pages locally?
    Export 2 page site, rename second page file with the php extension. Make sure that links in the first page are corrext (with php extension). Open first page in IE and click on link to the second page (the php). Does it work?
    John.

  3. #13
    Join Date
    Nov 2006
    Posts
    1,602

    Default Re: PHP, SHTML, etc

    In another editor i use,it just does.
    will try it out with xwd.

    Hans

  4. #14
    Join Date
    Nov 2006
    Posts
    1,602

    Default Re: PHP, SHTML, etc

    John,

    Tried it like this;
    create two pages in xwd
    made objects linking to page2 and back to index
    exported and opened in pspad editor
    added <?php and ?> to index and page2
    and saved both files to php extension.
    In browser,on the index page it showed the end tag ?> (only on first load,after going back and forth to index and page two it's gone)
    Deleted the endtag and worked fine.

    Opening the files worked in IE6,IE8,FF3,Opera,Safari4
    It didn't open in IE7(standalone version,thus not the official version)
    It didn't open in Chrome(Simply opened the designated editor for this filetype)

    Hans

  5. #15
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: PHP, SHTML, etc

    Did you try to do exactly what I suggest?
    Last edited by Egg Bramhill; 15 March 2009 at 02:16 AM. Reason: Deleted unnecessary quote of an earlier post ~ Egg
    John.

  6. #16
    Join Date
    Nov 2006
    Posts
    1,602

    Default Re: PHP, SHTML, etc

    Know what you mean now.
    the internal naming is html for the <a href but this you could change
    now could you?
    Or have the in page link also the option to put in the extension after the page name
    I tried instead of page link webaddress ./index_2.php
    and the backbtn to ./index.php
    This just worked fine


    Hans

  7. #17

    Default Re: PHP, SHTML, etc

    Having the option to change the extension is necessary. Many hosts have different ways of handling server side includes. A page created by XWD must have the funcionality to match the extension of the server it is being exported to

    An example would be a ecommerce site with product pages being dynamically populated from a database. The product pages extension SHTML signals the server to parse the page and pull the product detail for inclusion on the page

  8. #18
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: PHP, SHTML, etc

    Ok, thank you all, we put it on the wish list.
    John.

  9. #19
    Join Date
    Jul 2005
    Location
    Ocala, FL, USA
    Posts
    387

    Default Re: PHP, SHTML, etc

    In the program I have used for years, I get the following warning if you change the default .htm to any of the drop down alternates: php, asp, shtml for your file extension.
    http://www.samisite.com/external/preview_warning.gif

    That program creates a local preview and will also upload/publish to the website.
    The php pages do preview just like the other html pages from the local machine. The scripting functions do not work on the local machine.

    Ok, thank you all, we put it on the wish list
    Thank you!
    -Samantha
    "Try to live your life so that you wouldn't be afraid to sell the family parrot to the town gossip." Will Rogers (1879 - 1935)

  10. #20

    Default Re: PHP, SHTML, etc

    Many don't know that ALL servers have a command you can put into the .htaccess file of any website that will parse ALL pages through PHP even though the extensions are .htm or .html. BE VERY CAUTIOUS EDITING THIS FILE OR YOUR SITE WILL CRASH.
    I use includes in almost every site I do, especially for clients that like to change an area.
    However, there are MANY issues to be considered with XWD's page size formatting. You would have to know the EXACT SIZE of any included page. I have been fooling around with a little known program called Dynamic HTML Editor and these limitations are eliminated with a choice of page sizes that can be either fixed or dynamic. If this program (written in VB) can do this I am certain it won't be long before XWD does the same.
    Even though Xara is aiming for the purely visual programmer, it is rapidly becoming harder and harder to find a website that doesn't require some type of PHP, javascript, header inserts, forms or shopping cart functionality.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •