Welcome to TalkGraphics.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2005
    Location
    Moncton, NB Canada
    Posts
    149

    Default Save files as PHP files

    Hi Everybody,

    ( using: Windows-10 and Web Designer Premium 19.0.1.65946 x64)

    My understanding is that a Web-Hosting provider will require files be named as PHP files (index.php) in order to provide PHP services. I plan to include
    several PHP and MySQL snippets throughout my project.

    If this is true, I will need to modify how the Navigation Bars will direct the calls. The WDP-19 default seems to be set to name each an "htm" file.

    Click image for larger version. 

Name:	Capture.PNG 
Views:	23 
Size:	93.6 KB 
ID:	134362

    The Navigation Bar Properties dialog box identifies the URL as Page: 1 (index) [Main] and then refers to index.htm throughout the entire project. The
    same is true for each individual page throughout the website.
    The only way that I can think of to correct this, would be a massive Search & Replace throughout the entire project.
    (strict personal focus is not a strength)

    Can I just change that WDP-19 default?
    Can anyone advise me how to go forward?
    Many Thanks,
    -Paul-
    If I wasn't so stupid, I wouldn't have to be so persistent.

  2. #2
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,842

    Default Re: Save files as PHP files

    Paul, what you do is change your index filename to index.php. [Utilities > Web Properties > Page > Page filename].
    Do the same for all other PHP pages.
    Finally, add a blank page called index as your first page.
    Xara will also export a blank index.htm file along with all your PHP pages.

    https://helpandsupport.xara.com/xara...m-or-html.html

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  3. #3
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,922

    Default Re: Save files as PHP files

    I believe I've used a contact.php file in the past and loaded it into a placeholder so the remainder of my site is still .html
    I think you may need to make a second file contact-mobile.php for the variant.

    Perhaps your host requires something different?
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

 

 

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
  •