SunQuest
 
           General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old May 30th, 2003, 08:26 PM
stfu stfu is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 19 stfu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
fopen problem

hello guys i have some problem with function fopen
i got this messages in my errors log file:
Code:
[Sat May 31 04:02:31 2003] [error] PHP Warning:  fopen(http://us.imdb.com/Title?0279111) [<a href='http://www.php.net/function.fopen'>function.fopen</a>]: failed to create stream: HTTP request failed! HTTP/1.1 403 Forbidden
 in /var/www/costumers/toxxclub/add.php on line 21
[Sat May 31 04:02:31 2003] [error] PHP Warning:  fgets(): supplied argument is not a valid stream resource in /var/www/costumers/toxxclub/add.php on line 22
[Sat May 31 04:02:31 2003] [error] PHP Warning:  fclose(): supplied argument is not a valid stream resource in /var/www/costumers/toxxclub/add.php on line 25

this is my php version:
PHP 4.3.1 (cgi-fcgi), Copyright (c) 1997-2002 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies

this is part from code:
PHP Code:
if (! is_null($_POST['imdb_url'])) {
        
$imdb_url $_POST['imdb_url'];
        
$fd=fopen("$imdb_url","r");
        while (
$line=fgets($fd,4096)) {
                
$imdb_page.=$line;
        };
        
fclose ($fd);
                                                                                                                                                                
        if (
ereg('name="poster"[^>]*>(<[^<]*)'$imdb_page$temp)) {
                if (
ereg('src="([^"]*)'$temp[1], $temp)) {
                
$cover_art $temp[1];
                };
        }; 

before two days everything was fine but when i update php this wont work previews php was 4.2.2 any ideas ?
thanks in advanced

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > fopen problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway