1. Nebula Nebula
  2. /
  3. PHP
  4.  (Page 12)

video_meta()

This function returns an array that includes data such as "raw", "title", "safetitle", "description", "thumbnail", "author", "date", "url", "duration" (which is an array of "time" and "seconds"). This function includes two aliases: and . Sidenote: Remember that Youtube and Vimeo have their own APIs for JavaScript integration. It is recommended to read through these as Read More »

weather()

Brief warning that the Yahoo API (from my experience) is not very reliable as far as up-time. Nebula caches the data and prevents long timeouts, but the weather data itself may not always be available- it is important to have a fallback! Read More »

relative_time()

This is used for more general time-of-day functions. The breakdown is as follows: Early Morning: 6am, 7am, 8am Late Morning: 9am, 10am, 11am Early Afternoon: 12pm, 1pm, 2pm Late Afternoon: 3pm, 4pm, 5pm Early Evening: 6pm, 7pm, 8pm Late Evening: 9pm, 10pm, 11pm Early Night: 12am, 1am, 2am Late Night: 3am, 4am, 5am Note: Thinking of Read More »