Web Design Forum: helllp - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

helllp Rate Topic: *---- 1 Votes

#1 User is online   ehsan_cs 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 19
  • Joined: 24-November 11
  • Reputation: 0

Posted 22 December 2011 - 06:08 PM

please lock to attachment
give my the result by php
thank u

Attached File(s)


0

#2 User is offline   Samus 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 367
  • Joined: 05-August 11
  • Reputation: 27
  • Gender:Male
  • Location:Hackney, London, UK
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 22 December 2011 - 09:55 PM

edit:

nvm..

This post has been edited by Samus: 22 December 2011 - 09:55 PM

0

#3 User is offline   rBlack42 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 25
  • Joined: 25-May 11
  • Reputation: 0
  • Gender:Male
  • Location:Fife, Scotland
  • Experience:Beginner
  • Area of Expertise:Web Designer

Posted 22 December 2011 - 09:57 PM

View Postehsan_cs, on 22 December 2011 - 06:08 PM, said:

please lock to attachment
give my the result by php
thank u

What exactly is your question?
0

#4 User is online   rallport 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 3,818
  • Joined: 03-January 10
  • Reputation: 266
  • Gender:Male
  • Location:England, UK
  • Experience:Advanced
  • Area of Expertise:Web Developer

Posted 22 December 2011 - 10:18 PM

Ask a naff question, get a crap response. :(
0

#5 User is online   ehsan_cs 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 19
  • Joined: 24-November 11
  • Reputation: 0

Posted 22 December 2011 - 11:36 PM

View PostrBlack42, on 22 December 2011 - 09:57 PM, said:

What exactly is your question?

how i can display the output of script when click to run button
0

#6 User is offline   Samus 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 367
  • Joined: 05-August 11
  • Reputation: 27
  • Gender:Male
  • Location:Hackney, London, UK
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 22 December 2011 - 11:58 PM

Why don't you just use a simple javascript hide/show function?
0

#7 User is offline   empek 

  • Wordpress Geek
  • PipPipPipPip
  • Group: Members
  • Posts: 774
  • Joined: 17-December 08
  • Reputation: 76
  • Gender:Male
  • Location:New York City.
  • Experience:Web Guru
  • Area of Expertise:Designer/Coder

Posted 23 December 2011 - 02:29 AM

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!
0

#8 User is online   rallport 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 3,818
  • Joined: 03-January 10
  • Reputation: 266
  • Gender:Male
  • Location:England, UK
  • Experience:Advanced
  • Area of Expertise:Web Developer

Posted 23 December 2011 - 02:20 PM

View Postempek, on 23 December 2011 - 02:29 AM, said:

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!


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

#9 User is online   ehsan_cs 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 19
  • Joined: 24-November 11
  • Reputation: 0

Posted 23 December 2011 - 03:18 PM

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
0

#10 User is online   ehsan_cs 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 19
  • Joined: 24-November 11
  • Reputation: 0

Posted 24 December 2011 - 11:26 AM

how can solve my problem :clapping: :clapping: :clapping:
0

#11 User is offline   Samus 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 367
  • Joined: 05-August 11
  • Reputation: 27
  • Gender:Male
  • Location:Hackney, London, UK
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 24 December 2011 - 04:06 PM

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.
0

#12 User is offline   empek 

  • Wordpress Geek
  • PipPipPipPip
  • Group: Members
  • Posts: 774
  • Joined: 17-December 08
  • Reputation: 76
  • Gender:Male
  • Location:New York City.
  • Experience:Web Guru
  • Area of Expertise:Designer/Coder

Posted 03 January 2012 - 07:33 AM

View Postrallport, on 23 December 2011 - 02:20 PM, said:

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.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users