+ Reply to Thread
Results 1 to 5 of 5

Thread: php script troubles

  1. #1
    sicman_adrian's Avatar
    sicman_adrian is offline x10Hosting Member sicman_adrian is an unknown quantity at this point
    Join Date
    Mar 2009
    Posts
    3

    php script troubles

    Hello everyone

    It's my first post as you can see
    I've into little trouble with a php script

    View: www.sicman.x10hosting.com/addons/

    Code
    PHP Code:
                    <p class="date">
                    <?php
                    $file 
    fopen("http://addons.eventscripts.com/sdk/getwoots/sic_snow""r");
                    if (!
    $file) {
                        echo 
    "<br>Unable to open file\n";
                        exit;
                    }
                    while (!
    feof ($file)) {
                        
    $line fgets ($file1024);
                        echo 
    $line;
                    }
                    
    fclose($file);
                    
    ?>
                    </p>
    Last edited by sicman_adrian; 03-11-2009 at 06:32 AM.

  2. #2
    xav0989's Avatar
    xav0989 is offline Community Public Relation xav0989 is just really nice
    Join Date
    Jul 2008
    Location
    ifk
    Posts
    4,438

    Re: php script troubles

    I don't see any problem except with some css markup.
    Xavier L | Community Public Relations Manager (Free Hosting Support)
    █ Yes, my position is too cool to even exist!
    How am I helping? Rate this post by clicking the icon below! (this is even better than "liking" a post)
    Terms of Service | Acceptable Use Policy | x10Hosting Wiki

  3. #3
    sicman_adrian's Avatar
    sicman_adrian is offline x10Hosting Member sicman_adrian is an unknown quantity at this point
    Join Date
    Mar 2009
    Posts
    3

    Re: php script troubles

    CSS Date Code:
    http://pastebin.com/m632a0bc5

    What that code should return is 13... in which right now it's just thorwin code there
    Edit:
    I got emailed by achdus *Why can't I see his message here??*
    any way he said use <p> as my code above uses <br> originally it was <p> still does same..

    I have tryed both ways with no luck
    Last edited by sicman_adrian; 03-12-2009 at 04:10 AM. Reason: Automerged Doublepost

  4. #4
    leafypiggy's Avatar
    leafypiggy is offline Community Advocate leafypiggy is on a distinguished road
    Join Date
    Aug 2007
    Location
    Massachusetts
    Posts
    2,228

    Re: php script troubles

    You can't use file operations to open a directory.

    Unless "sic_snow" has no filetype: you will need to put the full URL to the file.
    Neil Hanlon | x10Hosting Support Representative
    Neil[at]x10hosting.com
    █ I'm always happy to help. Just ask a question in Free Hosting
    Terms of Service IRC

  5. #5
    sicman_adrian's Avatar
    sicman_adrian is offline x10Hosting Member sicman_adrian is an unknown quantity at this point
    Join Date
    Mar 2009
    Posts
    3

    Re: php script troubles

    Actually you can

    www.sicman.x10hosting.com/test/test.php

    Right now my site is timed out/down????

    I have just been told try and rename my index to index.php but waiting for it to load up again...
    Edit:
    All solved now that was the problem in having it as .html
    Last edited by sicman_adrian; 03-12-2009 at 05:30 AM. Reason: Automerged Doublepost

+ Reply to Thread

Similar Threads

  1. Php script for mail doens't work anymore
    By messa in forum Free Hosting
    Replies: 1
    Last Post: 02-03-2009, 09:43 AM
  2. Photo-Graffix Gallery Php Script...
    By millart in forum Free Hosting
    Replies: 7
    Last Post: 09-17-2008, 11:42 AM
  3. foward mail to a php script
    By ruicos in forum Programming Help
    Replies: 3
    Last Post: 09-13-2008, 07:55 AM
  4. Cannot get php script to work
    By avidgamer in forum Free Hosting
    Replies: 3
    Last Post: 09-03-2008, 04:35 PM
  5. Replies: 3
    Last Post: 03-10-2008, 12:22 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers