Jump to content

Recommended Posts

Can you use/execute a php script like (echo"test";) that you $get from a mysql table?

 

What do you mean $get from a mysql table?

 

You can store file names/paths in the DB and call the scripts whenever you want.  I'm not exactly sure what you mean.

Why should I be dissuaded from trying to use it?

To start with, it slows down your scripts.

In addition, you lose control over the code that is being executed by your scripts, especially if you allow users to write their own PHP code that you then eval() which means that joe hacker could get your script to execute malicious code.

I don't want to use it a lot, and it wouldn't be used by players, just myself.

 

It's more complex then just typing blah, that was just an example.

 

Thanks for the help guys!

 

If you describe exactly what you're trying to accomplish, we can give you a better solution.

I'd like to give ya a better description but I don't really wanna give out to much details.

 

Been programming for 6 years, and I did think of another way. Was just looking at my options and that came to mine, made me curious if it was possible or not.

Was just looking at my options and that came to mine, made me curious if it was possible or not.

Well for one, why not simply have a set of include files, each of which is a block of code that you would otherwise store on the database... but executed when you do the include() rather than eval().... or dynamically created functions generated and called within your code

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.