• My Pages
  • Comments
  • Add Link
  • Subscribe
  • Subscribe User
  • Edit (GUI)
  • Edit (Text)
  • Rename Page
  • Copy Page
  • Load Page
  • Save Page
  • Delete Page
  • Attachments
  • Check Spelling
  • Diffs
  • Info
  • Revert to this revision
  • XML
  • Render as Docbook
  • Print View
  • Raw Text
  • Delete Cache
  • Like Pages
  • Local Site Map
  • Remove Spam
  • Package Pages
  • Sync Pages

    Upload page content

    You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

    File to load page content from
    Page name
    Comment

    Usage:

    PrepareParameters("string")

    Example:

    PrepareParameters("This is a test")

    This function will convert a string into an array of parameters. It will split any non-whitespace character, and can handle quotes and other punctuation.

    • Example 1:
      arr = PrepareParameters("This is a test")
      echo arr
      
      Result:
      21:51:36 This,is,a,test
      21:51:37 Script stopped
      
      Example 2:
      arr = PrepareParameters("this is a /test 'with spaces and quotes'")
      echo arr
      
      21:55:17 (5) - this,is,a,/test,with spaces and quotes
      21:55:18 (5) - Script stopped
      
      Example 3:
      arr = PrepareParameters("this is a test /a=\"qqq ww\" s")
      echo arr
      
      Result:
      21:52:40 this,is,a,test,/a=qqq ww,s
      21:52:41 Script stopped


    CategoryFunctions