need help with somthin

Discussion in 'iOS Development' started by Supermeip, Aug 12, 2010.

  1. Supermeip

    Supermeip New Member

    Joined:
    Feb 27, 2010
    Messages:
    127
    Likes Received:
    0
    Device:
    3G iPod touch
    i was wondering if anyone here knows php and javascript good enough to rewrite somthing in php into javascript?
    cause thatwould be AWSOMME!
    ------------------double post merged------------------
    and i really need it for somthing
    ------------------double post merged------------------
    or can someone direct me to someone or somthing that can or at least give sometype of feedback
  2. Pelaez-1

    Pelaez-1 New Member

    Joined:
    May 5, 2008
    Messages:
    822
    Likes Received:
    0
    Device:
    iPhone
    Wow, that's a vague question with a vague title.

    I guess it'd depend on what is the PHP thing you need written in in js.

    However, you'll need to provide a LOT more information than "thatwould be AWSOMME!" and "and i really need it for somthing".
  3. lauNchD

    lauNchD Well-Known Member

    Joined:
    Jan 27, 2008
    Messages:
    1,844
    Likes Received:
    261
    Device:
    iPhone 5 (Black)
    PHP and JavaScript are different languages for different purposes. PHP scripts are executed by the web server to preprocess and deliver content, while JavaScript (usually) only runs in your browser.

    There's a 90% chance that simply "porting" something from PHP to JS doesn't make any sense.

    What are you trying to do?
    ------------------double post merged------------------
    Damn, ninja'd

    Please Register or Log in to view images

  4. Supermeip

    Supermeip New Member

    Joined:
    Feb 27, 2010
    Messages:
    127
    Likes Received:
    0
    Device:
    3G iPod touch
    its for somthing that i was trying to make as a webapp but failed because my host cant support the phpcodes i need . the code is



    <meta content="yes" name="apple-mobile-web-app-capable" />

    <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type" />

    <meta content="minimum-scale=1.0, width=device-width, maximum-scale=0.6667, user-scalable=no" name="viewport" />

    <link href="css/style.css" type="text/css" rel="stylesheet" />

    <script src="javascript/functions.js" type="text/javascript"></script>

    <link rel="apple-touch-icon" href="homescreen.png"/>

    <link href="startup.png" rel="apple-touch-startup-image" />

    <link rel="icon"

    type="image/png"

    href="favicon.png">

    </head>

    <body style="text-align:center>

    <p style="font-size:10">

    <?php

    echo "<h1>Conversion complete</h1>";

    echo "code exicuted :</br>";

    $pass = $_POST["passw"];

    if($pass = " ")

    $pass = "alpine";

    $name = $_POST["input"];

    $in = $_POST["intype"];

    $out = $_POST["outtype"];

    $code = "ffmpeg -i /var/mobile/vids/" . $name . $in . " /var/mobile/vids/" . $name . $out;

    echo $code;

    shell_exec("su");

    shell_exec($pass);

    shell_exec($code);

    echo "<br/> your password:" . $pass;

    ?>

    </p>

    <div id="footer"><img src="JL.png"> <p>-SuperMeip-</p></div>

    </body>
    ------------------double post merged------------------
    i could do without the html if it comes to that
    ------------------double post merged------------------
    btw what does live topic icon mean in the forums (srry off topic)

Share This Page