Welcome Guest, Not a member yet? Register   Sign In
undefined function phpheader()
#1

[eluser]jgodino[/eluser]
Hello:

I installed my site in a hosting and I'm receiving the following error:

Fatal error: Call to undefined function phpheader() in /home/jgodino/public_html/sginfra.com.ar/sginfra_system_files/application/views/header.php on line 1

In my PC run correctly.

Someone could help me?

Thanks

Javier
#2

[eluser]Michael Wales[/eluser]
It's a function in one of the files you have written yourself... you'll need to share some code so we know what you were attempting. Did you mean to use header().
#3

[eluser]jgodino[/eluser]
Hi Michael:

Thanks for the anwser.
I didn't change nothing.
I see this in the header.php.

<?php
header('HTTP/1.0 200 OK'); // stoopid IIS
header('Content-Type: text/html; Charset=utf-8');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

Thanks

Javier
#4

[eluser]Michael Wales[/eluser]
What editor are you using? It appears as if there is a non-standard carriage return in your editor, so when it hits the server, the server sees:
Code:
&lt;?phpheader('HTTP/1.0 200 OK'); // stoopid IIS
#5

[eluser]jgodino[/eluser]
Hi Michael:

It was an error when I copied the text.

The correct one is:

&lt;?php
header('HTTP/1.0 200 OK'); // stoopid IIS .......

I removed the "header('HTTP/1.0 200 OK');" and I found another error.
The server don't understand &lt;?php

"Parse error: syntax error, unexpected T_VARIABLE in /home/jgodino/public_html/sginfra.com.ar/sginfra_system_files/application/views/actas/edit.php on line 1"

I removed "php" too and it's works.

I other pages "&lt;?php works in other found the error:

"Parse error: syntax error, unexpected T_VARIABLE in /home/jgodino/public_html/sginfra.com.ar/sginfra_system_files/application/views/actas/edit.php on line 1"

Thanks in advance.

Javier




Theme © iAndrew 2016 - Forum software by © MyBB