SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Php & MySQL

  1. #1
    SitePoint Member
    Join Date
    Feb 2001
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was wondering if it's possible to store php code in a database and then retrieve it using php? Would that work? Essentially, it's a php script within a php script. I've tried doing this, but I don't seem to have any success with it. Can anyone shed any light on this?

    Also, I was wondering how the www.webmasterbase.com site worked. They have the subcats.php & the articles.php files. How do they work together? It seems like the subcats.php script has this php script within a php script type deal.

    Regards,

    Leo Chan

  2. #2
    AdSpeed.com Son Nguyen's Avatar
    Join Date
    Aug 2000
    Location
    Silicon Valley
    Posts
    2,241
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Check this function: www.php.net/eval
    This should be the key to do that.
    About the second question, I don't remember how the URL @ webmasterbase.com look like, but remember it could be just the value for the variable like:

    script.php?var=sub-script.php
    - Son Nguyen
    AdSpeed.com - Ad Serving and Ad Management Made Easy

  3. #3
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Also see my response to your similar post here:

    http://www.sitepointforums.com/showt...922#post110922
    Kevin Yank
    CTO, sitepoint.com
    I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
    Baby’s got back—a hard back, that is: The Ultimate CSS Reference


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
  •