Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

helllp

Featured Replies

please lock to attachment

give my the result by php

thank u

What exactly is your question?

Execute the PHP code entered through textbox or textarea

 

echo "echo 'test';"; //just prints echo 'test';

 

Above line just prints echo ‘test’; , you can’t do it from that way. For executing the php code entered form textarea, you have to take the help of useful PHP function called eval() . Take a look at few examples of eval() function to execute the PHP code which is supplied as a string.

 

eval("echo 'test';"); // prints test in browser
eval(" phpinfo(); "); //outputs the information provided by phpinfo()

 

Isn’t that easy to do? eval() comes handy when you’ve to execute the PHP code which is supplied as a string . But always be careful, there are a lot of dangerous things can be done if PHP code can be executed from eval() to invade the security of your website.

 

Quoted from this page.

 

Hope that answers your question!

  • Author

does not work

$fg have constant

can apply your in the code shown below


<textarea name="cod" id="cod2" cols="38" rows="25">
 <?php print "$fg"  ; ?>
    </textarea>
    <?

[code]

[/code]

thank u so much

I understand your not so fluent in English, but you need to be more specific in what you're trying to ask for.

 

Nobody may respond because they don't know what your asking for exactly.

  • 2 weeks later...

I'd be ultra careful with eval, can open up a huge security hole on your server.

 

Agreed, but I'll leave it to OP to decide.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.