Search results

  1. krahny

    Are there two sine and cosine ratios?

    When I enter sin(0) in a calculator, it gives me 0, and sin(90) gives me 1, just like I'd expect it to. But, when I use javascripts Math.sin() and Math.cos() functions, they give me completely different results. I think they might have something to do with pi, instead of an angle. Could someone...
  2. krahny

    php create link on users desktop

    I'm making a website in php and i wanted to make it so that the user could download a link to their desktop with a thumbnail that i have, that takes them directly to my website. Is this possible, and if so, how is it done? Thanks!
  3. krahny

    PHP parse error

    I have a php page and when I try to load it, this error appears: Parse error: syntax error, unexpected $end in /home/krahny/public_html/index.php on line 86 This doesn't make any sense to me, since line 86 is the last line, with the </html> tag. Could someone please help me? Thanks!
  4. krahny

    Flash database connection through sockets

    I found a website with a tutorial on how to connect flash to a database through sockets, http://www.devx.com/webdev/Article/30638. It has a list of requirements and I wanted to know if x10 supported these: - A Java IDE (Eclipse 3.0 used by the author) - Microsoft SQL Server 2000 driver for JDBC...
  5. krahny

    php detect session end

    Does anyone know how I could detect when a php session ends and execute some code? Thanks.
  6. krahny

    session variable not working

    I have a session variable set on one page, and I know it gets set because it works for that page, but whaen I go to a new page, it seems as though it's not set. Here's the code that sets the variable: session_start(); $_SESSION['logging']=$_POST['username']; Here's the code that's on both of...
  7. krahny

    Javascript: Confirm a page exit

    I want to make a page that, when the user presses the exit button, a confirmation box appears that says "Are you sure you want to exit?". If you click OK, then it closes, and if you click Cancel it dosen't. Heres the code that I have: <body onunload="confirm('Are you sure you want to exit?')">...
  8. krahny

    Javascript window.open specs not working

    I have a javascript function that opens a new window with a bunch of specs. As far as I can tell, only the width and height specs work. Here is the function: function open_win(URL,Title) {...
  9. krahny

    Hello Everyone!

    Hello, I recently signed up for x10hosting. I joined because x10 offers allot of thigs that other hosts dont offer, and I need. Me and my brother are working on an awesome mmorpg based in outer space, in the year 2160, called Celestial Horizon. Right now its in its early stages, but when its...
  10. krahny

    php Can't connect to local MySQL server through socket

    My code was going fine until, for no apparent reason, this warning message appeared. I think there is something wrong with the database connection. Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in...
  11. krahny

    php Warning: Cannot modify header information

    Hey, I have this code in php: setcookie("remember",$_POST[username],$expire); This keeps appearing on the page: Warning: Cannot modify header information - headers already sent by (output started at /home/krahny/public_html/login.php:16) in /home/krahny/public_html/login.php on line I cant...
  12. krahny

    Someone please help me with sql

    I was wondering if anyone knows what the sql select command will return in a query if it finds no match. Or, maybe there's a way to check if a record exists with a certain value. Somone please help.
Top