Results 1 to 7 of 7

Thread: [RESOLVED] PHP Function Tag

  1. #1

    Thread Starter
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Resolved [RESOLVED] PHP Function Tag

    (Apologies if this has been asked before.)

    I often link to manual pages for functions in the PHP documentation. They use a very straightforward URL schema.
    Is it possible that we could add a [phpfunc] tag that automatically creates this link?

    For example:
    Yes you can do this, refer to the [phpfunc=mail]mail() documentation[/phpfunc].

    to produce the effect of:
    Yes you can do this, refer to the [url=php.net/manual/en/function.mail]mail() documentation[/url].


    It would be something like
    <a href="http://php.net/manual/en/function.{option}" title="PHP: {option} - Manual">{param}</a>


    Pretty please?


    - P


    P.S. The only downside to this is that they use - instead of _ in their URLs, but that is only a minor annoyance to remember when typing out the tag.
    Last edited by penagate; May 16th, 2007 at 07:02 AM.

  2. #2
    ex-Administrator brad jones's Avatar
    Join Date
    Nov 2002
    Location
    Indianapolis
    Posts
    6,614

    Re: PHP Function Tag

    It seems to me that typing in PHPFunc and an option ends up being as much work as simply typing in the URL. What is gained using a vBulletin Code?

    Brad!
    Have you given out your reputation points today? Select the Rate This Post link to give points for good posts!
    -------------------------------------------------------------
    Brad! Jones
    Lots of Software, LLC
    (I wrote: C Programming in One Hour a Day) (Dad Jokes Book) (Follow me on Twitter)

    --------------------------------------------------------------

  3. #3

    Thread Starter
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: PHP Function Tag

    Not a lot - I am just lazy.


    We could do them for .NET classes as well in the MSDN documentation. I believe they also use a straightforward naming scheme.

    System.Web.HttpRequest => http://msdn2.microsoft.com/en-us/library/system.web.httprequest.aspx (/System.Web.HttpRequest.aspx also works)


    Just a thought.
    Last edited by penagate; May 16th, 2007 at 09:14 AM.

  4. #4
    ex-Administrator brad jones's Avatar
    Join Date
    Nov 2002
    Location
    Indianapolis
    Posts
    6,614

    Re: PHP Function Tag

    Let me think about it..... Something for VB would make a lot more sense on this forum.

    Brad!
    Have you given out your reputation points today? Select the Rate This Post link to give points for good posts!
    -------------------------------------------------------------
    Brad! Jones
    Lots of Software, LLC
    (I wrote: C Programming in One Hour a Day) (Dad Jokes Book) (Follow me on Twitter)

    --------------------------------------------------------------

  5. #5
    ex-Administrator brad jones's Avatar
    Join Date
    Nov 2002
    Location
    Indianapolis
    Posts
    6,614

    Re: PHP Function Tag

    If it gets abused, it goes away:
    [.PHPdef=mail]mail()[./PHPdef] == mail()
    Have you given out your reputation points today? Select the Rate This Post link to give points for good posts!
    -------------------------------------------------------------
    Brad! Jones
    Lots of Software, LLC
    (I wrote: C Programming in One Hour a Day) (Dad Jokes Book) (Follow me on Twitter)

    --------------------------------------------------------------

  6. #6

    Thread Starter
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: PHP Function Tag

    Thanks!

  7. #7
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: [RESOLVED] PHP Function Tag

    mail() - I don't see how it can be abused. But thanks
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width