SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru
    Join Date
    Jan 2007
    Posts
    971
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    executing stored php code

    I'd like to be able store chunks of php in a mysql database, call them out on a page and execute them. Is this possible?

  2. #2
    SitePoint Member
    Join Date
    Nov 2008
    Location
    Belgium
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I can think a couple of alternatives...
    a. write it to a file, and use the include function.
    b. use the eval method

  3. #3
    SitePoint Guru
    Join Date
    Jan 2007
    Posts
    971
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thanks that looks useful. -Michael


Bookmarks

Posting Permissions

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