Jump to content

patto

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

patto's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Somewere in this line of code: if (isset($_GET['F']) && ($_GET['F'] + 0 ><HTML><HEAD><TITLE>Cable Sag Error (Catenary Curve Effect) Calculator</TITLE> there is an error causing this: Parse error: parse error, unexpected '<' in C:\wamp\www/calc etc... pls help
  2. I'm new to dreamweaver and have created a PHP website and am wanting to test it since i dont have a web host yet how do i go about doing it i have read various other posts and download WAMP etc.. but still dont understand if somone could give me a detailed walkthrough or point me in the direction of one i would be most greatfull.
  3. Sorry, lol new to this dont really know what to say Ok i have been using a website for a special calculator which gives you answers to catenary curves and i have emailed them asking for a copy for personal use and they have sent me the PHP scripted webpage and what i want to do is chage it from a webpage to a microsoft excel spreadsheet or somehow use the page they have sent me and set it up so the calculator works without the internet. i hope this makes more sense i believe this is the scripting that amkes the calculator works 0)) $F = $_GET['F']; else $F = 0.674427074; if (isset($_GET['g']) && ($_GET['g'] + 0 > 0)) $g = $_GET['g']; else $g = 32.185039370; if (isset($_GET['q']) && ($_GET['q'] + 0 > 0)) $q = $_GET['q']; else $q = 0.00049999; if (isset($_GET['a']) && ($_GET['a'] + 0 > 0)) $a = $_GET['a']; else $a = 1.640419948; } // perform calculations in Imperial $H = $F/$g; $lambda = $H/$q; $x = (exp($a/(2*$lambda)) - exp(-$a/(2*$lambda))) / 2; $l = 2*$lambda*$x; $f = ($a/4)*sqrt(6*(($l/$a)-1)); $oF = $F; $F = $F*4.44822/(0.4536*0.3048); $sag = $lambda * (cosh($a/(2*$lambda)) - 1); $S = 2*$lambda*sinh($a/(2*$lambda)); $err = (($S/$a) - 1)*100; $F = $oF; if (($a == 0) or ($F == 0) or ($q == 0)) { $f = 0; $percent_error = 0; } else { $percent_error = ((($l/$a)-1)*100)/2; } // convert answers from metric to Imperial $l = $l/0.0254/12; $f = $f/0.0254/12; ?> and here is the link to the actual website calculator. http://www.spaceagecontrol.com/calccabm.htm
  4. I have recently got a webpage PHP script and i am wanting the calculator that the script runs into an excell spreadsheet or a program can anyone offer any advice or what programs to use and/or what to do. THanx patto
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.