PHP scripts using include() functions generate errors

Symptom: A php script using an include() function generates the following error:

Warning:  main(): stream does not support seeking in (path)

Cause: This is a warning message only and does not affect the actual inclusion of the called file. Typically, this error is generated in response to an include using an http call such as this:

include "http://www.somedomain.com/somefile.html";

rather than an include using an absolute path call, such as this:

include "/home/username/public_html/somefile.html";

Solution: Change the include to an absolute path or insert an @ symbol directly before the include statement. Of these solutions, use of the absolute path is preferable and recommended.

  • 3 Los Usuarios han Encontrado Esto Útil
¿Fue útil la respuesta?

Artículos Relacionados

PHP script error: FATAL ERROR: register_globals is disabled in php.ini, please enable it!

<b>Symptom: </b>The following error appears on a site running a php-based...

HOW TO: Combat referer spam/block certain referers

Symptom: A client wishes to deny access to their site (or parts of it) when the traffic is...

Expression Engine installation generates "variable references" error

Symptom: Expression Engine installations older than version 1.3.1 generate an "Only variable...

My phpBB forum installation is not accessible

Symptom: Client cannot access phpBB forum installation. Permissions on the forum installation...

Enabling register_globals

Symptom: A client's script requires that register_globals be enabled.Resolution: Globals are not...