View previous topic :: View next topic |
Author |
Message |
newhouse n00b
Joined: 01 Feb 2004 Posts: 13
|
Posted: Tue Feb 03, 2004 11:14 am Post subject: Problems with Apache and PHP |
|
|
Hi!!, I'm trying to do my first steps in php but I've had my first problems.
When I try to view my webpage apache shows me that:
Warning: fopen(): URL file-access is disabled in the server configuration in /var/www/localhost/htdocs/index.php on line 10
Somebody know how I can do??
Regards.
SORRY FOR THE DUPLICATE MESSAGE _________________ In the sky
together
To the night
Forever |
|
Back to top |
|
|
newhouse n00b
Joined: 01 Feb 2004 Posts: 13
|
Posted: Tue Feb 03, 2004 11:18 am Post subject: |
|
|
Code: | <?php
$mercado='PRISA';
$url='http://www.invertia.com/empresas/empresa.asp?idtel=RV011PRISA';
if (!($descriptor = fopen($url, 'r')))
{
echo 'Error al obrir la pagina';
exit;
}
$contingut = fread($descriptor);
fclose($descriptor);
|
This is the code where there is the problem.
Regards _________________ In the sky
together
To the night
Forever |
|
Back to top |
|
|
ptitman Apprentice
Joined: 12 Sep 2003 Posts: 242 Location: well!! I don't really know!Anywhere really!
|
|
Back to top |
|
|
newhouse n00b
Joined: 01 Feb 2004 Posts: 13
|
Posted: Tue Feb 03, 2004 12:03 pm Post subject: |
|
|
Thanks ptitman _________________ In the sky
together
To the night
Forever |
|
Back to top |
|
|
ptitman Apprentice
Joined: 12 Sep 2003 Posts: 242 Location: well!! I don't really know!Anywhere really!
|
|
Back to top |
|
|
newhouse n00b
Joined: 01 Feb 2004 Posts: 13
|
Posted: Tue Feb 03, 2004 6:19 pm Post subject: |
|
|
Thanks a lot, but now I have another problem:
When I view my index.php file apache shows me the following...
failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in .....
I don't know why, because this error is from my server..
Thanks,,, _________________ In the sky
together
To the night
Forever |
|
Back to top |
|
|
|