Copy link to clipboard
Copied
I'd like your help understanding what's in front of me with DW CC 17.
I've updated a .php page having an SSI. The page is in the "Acts" directory; it's titled "week22.php." Both can be seen here:
I also updated the SSI's dated menu item itself. It's titled "actsPart2_menu.html" and here's its screen shot.
On line 13 (shown above) I've entered the updated "week22.php" menu item that goes with August 22 in the "Acts" directory.
With both pages updated and uploaded, and the "week22.php" page open, I went to Tools > Library > Update pages. The following window opened up.
For no apparent reason, . . .
1. After activating Update Pages, none of my "Acts" directory files that use that SSI get updated, especially my newly updated "week22.php" page. Am I to do something differently to update pages that have an SSI that's been modified?
2. Further, while none of my "Acts" directory files appear in the Update Pages widow (despite the fact that I've updated them), I see 100+ files names in that window related to two other directories: "Corinthians" and "Luke." There are numerous "Corinthian" and "Luke" entries stating that each file "was not found." Yet, I'm pretty sure that I see them inside my XAMMP folder in the Apps folder.
••• Add to that the fact that in the "Corinthian" and "Luke" directories, there are NO SSIs and NO .php pages!
Here's a screen shot of my Local Files window showing those three directories and others, along with the before-mentioned SSI and "week22.php" page from within the "Luke" directory.
Can one of you see what I'm failing to do or understand? I need to upload that one .php page with an updated SSI menu change, however, I cannot get the change to appear online. ( ; - (
Please enlighten me as to the process updating of SSIs and .php pages.
I'll very much appreciate your help learning sorting this out. Thanks.
Warren
A resounding YES!
Library Items, fagetabout-it! You don't need them for PHP includes.
Nancy
Copy link to clipboard
Copied
index.html contains PHP code and should therefore have a PHP extension such as index.php
Copy link to clipboard
Copied
Hello, Ben:
I hadn't referenced an "index.html" page in my post. Please tell me which "index.html" page you're looking at that has PHP code page and needs to be given a ".php" extension.
Thank you.
Warren
Copy link to clipboard
Copied
My bad, when I saw this I came to the wrong conclusion, apologies.
Also the library bit confused me as this is not required for an include file.
Basically, when the interpreter hits an include 'foo.html'; statement, it opens the specified file, reads all its content, replaces the "include" bit with the code from 'foo.html'.
Copy link to clipboard
Copied
Library Items?!? NO.
Server-Side Includes replace the need for Library Items. Remove Library Items from your workflow.
Server-side includes are relative to the parent document in which the include statements occur. It's easier if everything is in the same folder.
Nancy
Copy link to clipboard
Copied
Hello, Nancy!
I'm unsure of your e-reply's suggested fix. Before I spend a great deal of time making changes that might not be needed, let me ask you to clarify a few concens.
1. You introduced me to SSIs and PHP code half a year ago. At that time, I'd begun to create pages in my then-current "Acts" directory. Up until this week's problem with the Update Pages feature, every time I added a page and changed the dated menu accordingly, the Update Pages feature worked flawlessly.
2. The other directories within my parent directory (called "heartyBoys," are static sites and pages; there won't be any changes made to them
3. Are you suggesting that I, nevertheless, convert all of my 100+ HTML pages in the other static directories to .php pages that have an SSI in each. even though I don't plan to change anything on those 100+ pages?
Please explain fully what you suggest that I do, now that you know more details about about how my parent directory has subdirectories that are predominantly static HTML pages, with only the "Acts" directory being filled with an ever-changing SSI on its .php pages.
Thanks for your understanding, Nancy.
Warren
The Hearty Boys Bible Study and Summary of Luke's "Book of Acts" | Part 2 | Acts 11:19–30
Copy link to clipboard
Copied
Only pages containing PHP code need a .php extension.
What happens when you upload week22.php and your updated menu to your remote server & test it?
What errors are you seeing?
When something that had worked suddenly stops working, it's usually code or path related errors.
Nancy
Copy link to clipboard
Copied
[Only pages containing PHP code need a .php extension.]
That I understand. Thanks.
[What happens when you upload week22.php and your updated menu to your remote server & test it? What errors are you seeing?]
Last week, for two full days, every time I activated the Update Pages feature from the Tools menu, absolutely nothing happened. No error message appeared. Every attempt I made to check whether the update had been recognized and implemented resulted in no recognition of the changed include file, no matter if I checked while online or with XAMMP's "localhost."
[When something that had worked suddenly stops working, it's usually code or path related errors.]
Yes. I've found that to b the case often. However, I'd changed nothing related to the pathway or page names in my "Acts" directory.
Question: When the Update Pages feature is activated, causing all modified SSI-related pages to be updated, can we expect the dates in DW's "Modified" list of files to change to the "updated" date? Or do the dates in that list change only when the code is manually changed on each page? I ask because the dates (as shown in my fourth screen shot from the top) have not changed for those six files that are directly above the color-highlighted "week22.php" file that had its date change.
Wondering Warren
Copy link to clipboard
Copied
I don't know what you mean by Update Pages feature. I just PUT files to server (UP arrow) in my Files Panel. Bada bing! Selected files transfer to the server Also refresh your browser to clear the memory cache. In Chrome, it takes more effort to reload pages because Chrome has a sticky cache.
Nancy
Copy link to clipboard
Copied
[I don't know what you mean by Update Pages feature.]
Update Pages is found in Tools > Library > Update Pages. I've been using that approach before you started me on PHP and SSIs. Is your "Bada bing!" expression suggesting that I need only put the modified files and that I no longer need to use the Update Pages feature with .php pages?
If that's the case, great!!!! I'll see how that process works, going forward.
Please lemmeeeenodat, okay? Thanks.
Warren
Copy link to clipboard
Copied
A resounding YES!
Library Items, fagetabout-it! You don't need them for PHP includes.
Nancy
Copy link to clipboard
Copied
Hoooooooray!!!!
I'll keep an eye on my next menu modification so I'll simply "put" the .php file(s) and not be concerned with taking the Library Items approach that I'd taken habitually.
Thank you, Nancy!
Warren