Jump to content

Recommended Posts

I keep getting an error message on my site that points to this line of code. It is from OSCommerece. Can someone help me clean this line up a bit. Just does not look right to me. I played with it a bit and I get some good results, just not 100Y%.

 

eval('$keys .= ' . $value['set_function'] . "'" . $value['value'] . "', '" . $key . "');");

 

Thanks in advance!

Link to comment
https://forums.phpfreaks.com/topic/272206-code-string-cleanup-help/
Share on other sites

If you do a var_dump () on the three variables for me, I can rewrite it to something proper for you.

 

eval () is evil and should never be used, and using it in the above manner is just bad on all levels. Unfortunately, the OSCommerce code is full of bad stuff. :(

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.