Searching entire Dreamweaver site for files by content

Posted by:

I often want to search my entire site for files that contain a specific word, phrase or string. The best way to do this, that I found, was to GET the entire Dreamweaver site to your computer so now you have all the files locally. Then you can use Dreamweaver search (CTRL + F) to search the entire local site for content. Hope this helps and if not here are some additional sources:

http://webdesign.about.com/od/dreamweaverhowtos/ht/dw_find_replace.htm

http://www.wrensoft.com/zoom/support/dreamweaver.html

http://helpx.adobe.com/dreamweaver/using/live-search-mac.html

Continue Reading →
0

jQuery JSONP Cross-domain AJAX Callback Function

Posted by:

There may be times where you need to make an AJAX call to a resource from another domain, but browsers will not allow a simple AJAX GET. Instead you’ll need to implement a callback function and use JSONP. Here’s an example of the requesting AJAX script:

<script>
var username = 'liljosh';
var url = '//newDomain.com/callbackScript.php?username='+username+'&output=json&callback=?';
        $.getJSON(url, function (data) {
            alert(data);
    ...
Continue Reading →
0

Texting with PHP

Posted by:

Ever needed to text someone through PHP? It’s very simple! Most cellular providers give an email address with your phone number that can be used to text that number. This is known as “email to SMS gateway”. For example if my number is (555) 555-5555 and I used AT&T then emailing 5555555555@txt.att.net would send a text to my phone. So you can probably guess how the PHP looks, but here’s an example:

<?php
    $from = "Lil ...
Continue Reading →
0

Recursion in PHP

Posted by:

Using recursion can be a little hard to grasp if you are new to the concept. In it’s simplest form it’s a function that calls upon itself to create a loop. It is commonly used for traversing tree structures. This example shows PHP using recursion to get a list of all the child pages under a folder structure.

<?php

function getPages($folder, $pages=array()) {
  //function returns everything in the folder 1 level
  $assets = getChildren($folder); 

  foreach($assets as ...
Continue Reading →
0
Page 3 of 11 12345...»