Page 3 of 3 FirstFirst 123
Results 21 to 29 of 29
  1. #21
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    Ok.

    so you have
    counter.php

    which contains

    PHP Code:
    <?php
    $viewss 
    file("counter.txt");
    $views $viewss[0]; $views++;
    $fp fopen("counter.txt""w");
    fwrite($fp$views);
    fclose($fp);
    print 
    $views;
    ?>
    and also

    counter.txt which is chmoded to 777

    and that this include link is correct to it
    aka not in any other dirctorys

    <?php
    include("counter.php");
    ?>


    ??

  2. #22
    Join Date
    Jul 2004
    Location
    Webby Forums!
    Posts
    1,879
    Tokens
    0

    Latest Awards:

    Default

    Scott *** is your problem all you want to do is have a go and "try" and prove people wrong "/ Here is a working example

    www.habbopixel.uk.tt/counter.php

    www.habbopixel.uk.tt/counter.txt

    www.habbopixel.uk.tt/


    Chilimagik.net // Reviews, Band Biographies, News, Pics + Loads More!!
    [Thybag.co.uk - Vive la revolutione]

  3. #23
    Join Date
    Jul 2004
    Location
    Bournemouth. UK
    Posts
    3,638
    Tokens
    0

    Latest Awards:

    Default

    does there have 2 be any thing in counter.txt?
    REMOVED

    Edited by jesus (Forum Super Moderator): Please do not have text in your signature which is over size 4.

  4. #24
    Join Date
    Jul 2004
    Location
    Webby Forums!
    Posts
    1,879
    Tokens
    0

    Latest Awards:

    Default

    nope just make sure its Chmoded to 777


    Chilimagik.net // Reviews, Band Biographies, News, Pics + Loads More!!
    [Thybag.co.uk - Vive la revolutione]

  5. #25
    Join Date
    Jul 2004
    Location
    Bournemouth. UK
    Posts
    3,638
    Tokens
    0

    Latest Awards:

    Default

    :-z still nothing
    REMOVED

    Edited by jesus (Forum Super Moderator): Please do not have text in your signature which is over size 4.

  6. #26
    Join Date
    Jul 2004
    Location
    Habbo Newsie Office
    Posts
    352
    Tokens
    0

    Default

    I install the poll from fusionphp and everything seem to work find until we create a new poll! Everything go write until we actully hit the buttom Submit! When clicking its say this ::

    A runtime Error has occured. Do you wish to debug?

    Line 19
    Error: Object expected then its giving to me the thing yes or no!
    ABC = Alway Be Careful
    Check out!
    Habbo Newsie

  7. #27
    Join Date
    Oct 2004
    Location
    Scotland
    Posts
    2,280
    Tokens
    1,075

    Latest Awards:

    Default

    no idea what that means :S

    http://www.stupidian.com
    (contains mild swearing)

  8. #28
    Join Date
    Jul 2004
    Location
    Habbo Newsie Office
    Posts
    352
    Tokens
    0

    Default

    lol maybe it might help if i go on debug and look the code ::

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Fusion Poll: confidental [admin] Logged In</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link href="basic/css.css" rel="stylesheet" type="text/css">
    </head>
    <body marginheight="20">
    <table width="620" border="0" align="center" cellpadding="5" cellspacing="0">
    <tr>
    <td height="100" align="center" valign="middle"><img src="basic/header.jpg" width="600" height="80"></td>
    </tr>
    <tr>
    <td height="20">&nbsp;</td>
    </tr>
    <tr>
    <td class="headpart" align="right">[<a href="./index.php">main</a>] [<a href="./index.php?id=newpoll">new poll</a>] [<a href="./index.php?id=viewpolls">view polls</a>] [<a href="./index.php?id=editpolls">edit polls</a>] [<a href="./index.php?id=deletepolls">delete polls</a>] [<a href="./index.php?id=admin">admin</a>] [<a href="./index.php?id=logout">logout</a>]</td>
    </tr>
    <tr>
    <td class="bodypart"> <form method="post" action="www.habbonewsie.net/poll/index.php?id=buildpoll" onSubmit="submitonce(this);"> <table width="570" border="0" cellspacing="0" cellpadding="4">
    <tr>
    <td width="90"><strong>Question:</strong></td>
    <td colspan="3">
    <input name="question" type="text" size="50" class="post"></td>
    </tr>
    <tr>
    <td><strong>Expiration:</strong></td>
    <td colspan="3"><input name="exp" type="hidden" value="0">[Not Implented Yet]</td>
    </tr>
    <tr>
    <td colspan="4">Each Answer has an <strong>optional</strong> vote value,
    so u can start off with more than 0 votes for each. Also, there is a <strong>minimum</strong>
    of 2 answers, and also please select a question <strong>color</strong>,
    in which the results will be viewed in a bar graph with that color. Default
    is <strong>aqua</strong> color.</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td><strong>Responses</strong></td>
    <td><strong>Votes</strong></td>
    <td><strong>Colors</strong></td>
    </tr>
    <tr>

    <td>Response 1</td>

    <td width="260"><input type="text" name="answer1" class="post" size="30"></td>

    <td width="90"><input type="text" name="vote1" class="post" size="10"></td>

    <td width="104"><select name="color1" size="1">

    <option value="----">----</option>

    <option value="aqua">aqua</option>

    <option value="blue">blue</option>

    <option value="brown">brown</option>

    <option value="gold">gold</option>

    <option value="green">green</option>

    <option value="gray">gray</option>

    <option value="orange">orange</option>

    <option value="pink">pink</option>

    <option value="purple">purple</option>

    <option value="red">red</option>

    <option value="yellow">yellow</option>

    </select></td>

    </tr>

    <tr>

    <td>Response 2</td>

    <td width="260"><input type="text" name="answer2" class="post" size="30"></td>

    <td width="90"><input type="text" name="vote2" class="post" size="10"></td>

    <td width="104"><select name="color2" size="1">

    <option value="----">----</option>

    <option value="aqua">aqua</option>

    <option value="blue">blue</option>

    <option value="brown">brown</option>

    <option value="gold">gold</option>

    <option value="green">green</option>

    <option value="gray">gray</option>

    <option value="orange">orange</option>

    <option value="pink">pink</option>

    <option value="purple">purple</option>

    <option value="red">red</option>

    <option value="yellow">yellow</option>

    </select></td>

    </tr>

    <tr>

    <td>Response 3</td>

    <td width="260"><input type="text" name="answer3" class="post" size="30"></td>

    <td width="90"><input type="text" name="vote3" class="post" size="10"></td>

    <td width="104"><select name="color3" size="1">

    <option value="----">----</option>

    <option value="aqua">aqua</option>

    <option value="blue">blue</option>

    <option value="brown">brown</option>

    <option value="gold">gold</option>

    <option value="green">green</option>

    <option value="gray">gray</option>

    <option value="orange">orange</option>

    <option value="pink">pink</option>

    <option value="purple">purple</option>

    <option value="red">red</option>

    <option value="yellow">yellow</option>

    </select></td>

    </tr>

    <tr>

    <td>Response 4</td>

    <td width="260"><input type="text" name="answer4" class="post" size="30"></td>

    <td width="90"><input type="text" name="vote4" class="post" size="10"></td>

    <td width="104"><select name="color4" size="1">

    <option value="----">----</option>

    <option value="aqua">aqua</option>

    <option value="blue">blue</option>

    <option value="brown">brown</option>

    <option value="gold">gold</option>

    <option value="green">green</option>

    <option value="gray">gray</option>

    <option value="orange">orange</option>

    <option value="pink">pink</option>

    <option value="purple">purple</option>

    <option value="red">red</option>

    <option value="yellow">yellow</option>

    </select></td>

    </tr>

    <tr>

    <td>Response 5</td>

    <td width="260"><input type="text" name="answer5" class="post" size="30"></td>

    <td width="90"><input type="text" name="vote5" class="post" size="10"></td>

    <td width="104"><select name="color5" size="1">

    <option value="----">----</option>

    <option value="aqua">aqua</option>

    <option value="blue">blue</option>

    <option value="brown">brown</option>

    <option value="gold">gold</option>

    <option value="green">green</option>

    <option value="gray">gray</option>

    <option value="orange">orange</option>

    <option value="pink">pink</option>

    <option value="purple">purple</option>

    <option value="red">red</option>

    <option value="yellow">yellow</option>

    </select></td>

    </tr>
    <tr>
    <td>
    <input type="submit" name="Submit" value="Submit" class="mainoption">
    </td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td class="headpart">confidental <strong>[admin]</strong> Logged In</td>
    </tr>
    <tr>
    <td height="12">&nbsp;</td>
    </tr>
    <tr>
    <td align="center">
    <strong>&copy; Copyright 2003</strong> <a href="http://www.fusionphp.net">FusionPHP.net</a></td>
    </tr>
    </table>
    </body>
    </html>
    What is in red is the line where it as a mistake and say that it missing a object! But witch object? i believe it could be on a send item but i aint that perfect on php and html mixed. I am more abile with c++ and visual basic at the moments :S i understand html and some php but i aint that good could you help me?

    PS: well i understand the code but i just cant edit or create one i aint that perfect yet! And in the mean time would it be a problem with a class issue?
    ABC = Alway Be Careful
    Check out!
    Habbo Newsie

  9. #29
    Join Date
    Oct 2004
    Location
    Scotland
    Posts
    2,280
    Tokens
    1,075

    Latest Awards:

    Default

    good idea!!

    http://www.stupidian.com
    (contains mild swearing)

Page 3 of 3 FirstFirst 123

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •