Jump to content

Search the Community

Showing results for tags 'eval'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 2 results

  1. How can I save a little PHP code to $Tom, and then evaluate $Tom and save that to a variable as attempted below:? $Tom = "echo 'blah'"eval($Tom); When I try and use eval here, I get the following error: Parse error: syntax error, unexpected $end, expecting ',' or ';' Worse still, I want to save the result of eval to an array element. as for saving the value to an array, I tried $bob = eval($Tom);and array_push($myarray, $varone, "'".eval($Tom)."'") Didn't work. I am very frustrated with eval. How can I do what I am trying to do? That is, save the result of eval to an array eleme
  2. I am currently creating an e-learning application for my honours project (This will not go live or be distributed for profit) that teaches php to brand new users however there will obviously be experienced users using the application as well and they will try to attack it or bring it down. My code to process the user input for malicious code strings before it is run thru an eval(); is below.If any of the banned words are found it returns false and the user input never gets near an eval() function. If no banned words are found then it returns true and the input (PHP CODE) is run thru an eval();
×
×
  • Create New...