Whenever I start a session before I call file_get_contents PHP crashes. It is not able to connect to any other site.
I am not able to use fsockopen to connect to my smtp either.
Using fsockopen to connect to smtp gives me:
Warning: fsockopen(): unable to connect to localhost:25
When running the example below I get the results both when I include the session_start AND not. But when including start_session the server uses 30 to 60 seconds to open the page. (When no session_start it uses 1 second)
Not including session_start() in the top of the examples makes the functions work.
My example for file_get_contents looks like this:
<?php
session_start();
$strContent = file_get_contents('
?>
I am not able to use fsockopen to connect to my smtp either.
Using fsockopen to connect to smtp gives me:
Warning: fsockopen(): unable to connect to localhost:25
When running the example below I get the results both when I include the session_start AND not. But when including start_session the server uses 30 to 60 seconds to open the page. (When no session_start it uses 1 second)
Not including session_start() in the top of the examples makes the functions work.
My example for file_get_contents looks like this:
<?php
session_start();
$strContent = file_get_contents('
?>