Forum Moderators: coopster

Message Too Old, No Replies

error message

         

prozak76

4:15 am on Jan 11, 2004 (gmt 0)

10+ Year Member



I am trying to put a php script on my site, it works somewhat. It is a calendar. The calendar appears on the page, just not correctly and with this error message.
Warning: main(): stream does not support seeking in /home/kozakfam/public_html/index.php on line 50

What does that mean?

The site is

[edited by: jatar_k at 4:34 am (utc) on Jan. 11, 2004]
[edit reason] no personal urls thanks [/edit]

WhosAWhata

4:19 am on Jan 11, 2004 (gmt 0)

10+ Year Member



could you give line 50 of your script and maybe a few lines surrounding it?

prozak76

4:22 am on Jan 11, 2004 (gmt 0)

10+ Year Member



I am so new to this. Do you mean line 50 of the calendar script?

jatar_k

4:37 am on Jan 11, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



line 50 of the page or script which is being loaded, in this case, index.php.

Or is it an included file?

prozak76

4:40 am on Jan 11, 2004 (gmt 0)

10+ Year Member



it is an included file in my index.php

I put the following line in my index.php

<?
include ("http://mysite.com/calendar/escal.php")
?>

[edited by: jatar_k at 4:45 am (utc) on Jan. 11, 2004]
[edit reason] as above [/edit]

jatar_k

4:48 am on Jan 11, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



try this instead since it is a local file

<?
include ("/calendar/escal.php")
?>

prozak76

4:50 am on Jan 11, 2004 (gmt 0)

10+ Year Member



With that include statement I don't even get the calendar to appear on the page.

jatar_k

7:12 am on Jan 11, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



adjust it to the proper path to be the path to the script and start from / which signifies the root.

dreamcatcher

1:39 pm on Jan 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Remember I had a similar problem on my site last year jatar_k?

Try just using a @ symbol in front of include:


<?
@include ("http://mysite.com/calendar/escal.php")
?>

or try NOT to use the full url, ie:


<?
@include ("calendar/escal.php")
?>

:)

coopster

8:59 pm on Jan 11, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Please understand that the @ [php.net] symbol is only going to suppress the Warning message, it won't get rid of the problem. Somebody else asked how to hide error messages [webmasterworld.com] recently and it invoked a good discussion (recommended reading).

dreamcatcher was probably referring to this thread regarding the same main() [webmasterworld.com] problem encountered last year.

WhosAWhata

9:37 pm on Jan 11, 2004 (gmt 0)

10+ Year Member



lol...you just posted a link to this thread.
yes i asked how to hide error messages...and you just replied to the conversation that it invoked.