1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Hey Guest Last month we upgraded BlackHatWorld.com to a new platform - . If you notice anything that requires attention please start a new thread here.
    Dismiss Notice

Is there a way to test part of the code?

Discussion in 'PHP & Perl' started by Mutikasa, Dec 9, 2012.

  1. Mutikasa

    Mutikasa Power Member

    Joined:
    May 23, 2011
    Messages:
    558
    Likes Received:
    209
    Usual way for now is to open script in browser, but it's too complicated and I don't want to always load the whole script to test one function or part of the code.
    Is there some kind of IDE or editor or plugin which can show u the output in some kind of internal browser or command line or anything?
    I imagined that in a way where u can select code, for example echo "mama mia"; and test it's output.
    Is there a way?
     
  2. DarkPixel

    DarkPixel Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 4, 2011
    Messages:
    1,304
    Likes Received:
    1,232
    Home Page:
    Nope I don't think there's something like that. You should create a new file, and paste just the part of the code you want to test. I don't know any other way.
     
  3. Mutikasa

    Mutikasa Power Member

    Joined:
    May 23, 2011
    Messages:
    558
    Likes Received:
    209
    wouldn't that be easy to make?
    with c# visual studio
     
  4. olystyle

    olystyle Regular Member

    Joined:
    Jan 6, 2012
    Messages:
    238
    Likes Received:
    103
    • Thanks Thanks x 1
  5. Kilise

    Kilise Newbie

    Joined:
    Dec 10, 2011
    Messages:
    34
    Likes Received:
    5
    If you are reffering to php, you should download wampserver. download it, put your code files in the www folder in wamp. then you can see your codes and site in localhost/yourfile.php
     
  6. SmileAtmyWins

    SmileAtmyWins BANNED BANNED

    Joined:
    Feb 13, 2010
    Messages:
    1,899
    Likes Received:
    1,953
    Try Visual Studio. Not sure if you can do it with that, but I remember seeing something about it that you can.