php script troubles

sicman_adrian

New Member
Messages
3
Reaction score
0
Points
0
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:
                <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 ($file, 1024);
                    echo $line;
                }
                fclose($file);
                ?>
                </p>
 
Last edited:

xav0989

Community Public Relation
Community Support
Messages
4,467
Reaction score
95
Points
0
I don't see any problem except with some css markup.
 

sicman_adrian

New Member
Messages
3
Reaction score
0
Points
0
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:

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
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.
 

sicman_adrian

New Member
Messages
3
Reaction score
0
Points
0
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:
Top