Please read this thread: http://www.talkgraphics.com/showthread.php?t=36869
Please read this thread: http://www.talkgraphics.com/showthread.php?t=36869
John.
First, I have to say that I'm bewildered that this simple feature still is not in Xara. ?!?
That said, I believe this is a complete list of your options:
- Export from Xara, rename each .HTM file to .PHP/.SHTML, as needed, & manually upload. There is free software available from sites like download.com that can mass rename files.
- Upload normally with Xara, and rename on the server. There is free CGI software from sites like superscripts.com that can be installed on your server to mass rename files.
- Upload with Xara, and tell the server to parse all .htm file types for PHP/SHTML statements. This is done by adding/modifying the .htaccess file on linux servers, although it's turned off or locked in by some hosting outfits. It goes in the area with your .htm files. Dunno if there's an equivalent on MS servers. Here's the code for the .htaccess file.
RemoveHandler .html .htm
AddType application/x-httpd-PHP .PHP .htm .html
For SSI, substitute SHTML for PHP in the above lines. Capitalization must match your file extension.
- Use iframes in a placeholder instead. (Included only for completeness.) Takes the load off the server, but it bogs down the user’s browser. And if they use an older, or non-MS browser, it may display incorrectly or not at all. Doesn’t work for some forms of dynamic content.
- Use JavaScript in a placeholder instead. (Included only for completeness.) Takes the load off the server, but it bogs down the user’s browser. And if they use an older browser, or have JavaScript turned off, it may display incorrectly or not at all. Doesn’t work for some forms of dynamic content.
In general: If you have lots of traffic, and only a few files with PHP/SSI statements in them, having the server parse all of them for PHP/SHTML statements may needlessly bog down your server. That is, you may want to rename selectively. If this is the case, and you do a lot of work on your site using Xara, you might consider setting up a script that renames just the files that actually have PHP/SHTML statements. There are lots of free and commercial scripting programs around, although most of them are elephant guns for this particular rabbit.
Pulleeeeze can we have set-able suffixes - at least site-wide, and ideally by page. It does not seem to be in XWD7. Pity.
If you mean file extension then what's the problem? You can specify any file extension for every page (except for the first page obviously).
John.
Ahah. I was doing it with a single page site. So if you want to handle PHP on the home page, you need to have index.htm (or index.html) with JavaScript or one of the other forwarding techniques to take the user straight to index.php, and then you can name any other pages contact_us.php, services.php etc.
Thanks.
Not at all! Just leave your first page blank and name it "balnk.htm", then name your second page "index.php" and fill it with content. And so on.
John.
If someone tried to make me dig my own grave I would say No.
They're going to kill me anyway and I'd love to die the way I lived:
Avoiding Manual Labour.
Why doesn't the program just allow renaming the home page to index.php ? It seems strange and inconvenient to me.
I agree, doesn't make sense tbh. But the workaround is an acceptable solution to me.
If someone tried to make me dig my own grave I would say No.
They're going to kill me anyway and I'd love to die the way I lived:
Avoiding Manual Labour.
Only thing to watch here is that naming your first page blank.htm (or balnk-htm) means your resources folder is named blank_htm_files ... better to name the first file something meaningfull like site.htm
"Why doesn't the program just allow renaming the home page to index.php ? It seems strange and inconvenient to me." Because the first page has to be *.htm for the preview to work.
JOHN -XaReg (FB) XaReg (DB - ignore prompt to register)
Windows 10 [Anniversary] pro Intel Pentium CPU G630 @ 2.70Ghz RAM: 4 GB; 64-bit x64
Bookmarks