Posts Tagged "php" — 3 Results

Showing post excerpts only. Click any title to go check out that post.

Fix Dreamweaver Double-Spaced Code

Posted

Due to Unix/Linux/Windows server environments, when you are editing code locally in Dreamweaver you’ll sometimes find your code double-spaced for the whole file. A quick fix is to run this find/replace command to remove the extra spaces. Hit CTRL-F or command F to bring up the Find/Replace dialog box. In the Find box enter “[\r\n]{2,}” […]

PHP Snippet: Display If In Date Range

Posted

One of my client’s websites requires regular updates where a “Sale” graphic is shown to visitors between certain dates. Rather than manually updating the site at those specific dates (and having to be in front of the computer on those dates) I wrote a little script so the graphic just pops up if the current […]