Search results

  1. marshian

    Send email using PHP

    The mail() function is indeed the basic way to send mail using php. However, you made a mistake with the headers. All headers must be separated by "\r\n", not just by "\n". And this is wrong in your example too... $to = "to@example.com"; //Other possibilities: "Name <to@example.com>" $subject =...
  2. marshian

    Some of my images won't display.

    Since you haven't turned index listening off, I can see you just didn't match the case. "image.gif" is NOT the same as "image.GIF" on an apache machine. Just make sure the url's match exactly and it will work.
  3. marshian

    Content pulling with php

    I've been trying to find a solution to this since I send you that pm, but I still got nothing... When I try to request my own stats (Marshian007), my script works (some other names too), but when I try other names (such as yours (Absenm)) I get errors trying to get the contents and 200's when I...
  4. marshian

    Content pulling with php

    This is the second topic on this issue, please use the search function before posting. My solution to this is the code $context_options = array( 'http' => array ( 'method' => 'GET', 'header' => 'GET /index_lite.ws?player='.rawurlencode($user).' HTTP/1.1\r\n' . 'Host...
  5. marshian

    How do you create a Comment Box? Script help please

    You're right, no sense in making things more complicated than they need to be -> use mysql, it's faster and easier
  6. marshian

    PHP problems

    Probably css errors, although breaking layouts are somtimes caused by php in a html, but seriously, give us your code!
  7. marshian

    session_start() error - Not below any other ouput

    ob_start() is a bite late there... {output something}? <?php //Send a header //Contents - after header ?> changed into {output something}? <?php //buffer output BEHIND THIS LINE //send a header - unbuffered //Contents - buffered - after header ?> Difference: 0 Reason...
  8. marshian

    connecting to mysql problems..

    As cowctcat said, if you want to connect from a remote server, the server is indeed "toni.x10hosting", and not "localhost"
  9. marshian

    Disable access to a directory?

    If you want to disable indexing a directory called /dir, add this line to the .htaccess file this directory: Options -Indexes. This gives a 403 error if the user attempts to view /dir without having an index file there. (This also applies to any subdirectory). If you really want to block all...
  10. marshian

    connecting to mysql problems..

    username would be {cpanelusername}_wert, password "123456", server "localhost" So mysql_connect is like this: mysql_connect("localhost", "toni_wert", "123456");
  11. marshian

    HTML + JS in PHP

    Now in english?
  12. marshian

    XML parsing error

    For some reason I've never heard about stuff like this... Anyway, the error is gone when you change "&fr;" into "fr". On the other side, I'm freaking tired atm, so you might want to double-check this...
  13. marshian

    [Game Programming] Highlander

    Using Systran to translate this: solucionesmalagonforo: Hello To All, This Is Pq I do But It Clear the Page to Me Web, Hopefully Fix This Condition, Already Q Is Inefficient. Thanks themasterrocker: Sorry, but can put you who in English for me? because I can obtain to a translator good not to...
  14. marshian

    file_get_contents - php

    I've had exactly the same problem (yes, also with hiscore.runescape.com) and I'm guessing it's some nameserver issue, which causes the server to resolve the domain wrong. So I found out what the ip of hiscore.runescape.com is, but that resolves in coreproxies.runescape.com, so using the ip...
  15. marshian

    website development tools

    Instead of Notepad, you can use Notepad++ (http://notepad-plus.sourceforge.net/) which does have code highlighting, usefull plugins etc.
  16. marshian

    database failure

    Remember if the url you provide starts with / it's considerred to be the server root, while any other charachter is the active directory
  17. marshian

    helping putting my website up

    Did you upload your files to the /public_html/ directory?
  18. marshian

    Do you use tables to control your web page content?

    <ul> tags define a list... you know: <ul> <li>Item 1</li> <li>Item 2</li> </ul>
  19. marshian

    HTML or XHTML?

    I also prefer to use XHTML, because it forces you to keep a structure in a document. For example, the code <i><b></i></b> Is valid HTML, while this is not allowed in XHTML. Also, there's nothing 'new' in XHTML compared to HTML, every tagname, etc remains the same, so any browser that knows...
  20. marshian

    Multiple choice answers sort of....

    I think the best database structure would be something like this: questions id question response1 response2 response3 response4 rightanswer pets id owner name type training sit down rollover users id {anything you know of your users goes here}
Top