Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Jan 2002
    Posts
    222

    Default PHP 4.3.2 & fopen()

    Hi,

    Anyone else using php 4.3.2 and seeing odd fopen() problems?

    Some times it works some times it doens't!

    Kind Regards,

    Neil

    cPanel.net Support Ticket Number:

  2. #2
    Member
    Join Date
    Mar 2003
    Location
    England, UK
    Posts
    103

    Default

    You will see issues with anything that uses the URL, is this the case?

    cPanel.net Support Ticket Number:
    -- I live to support clients ---

  3. #3
    Member
    Join Date
    Jan 2002
    Posts
    222

    Default

    PHP Code:
    $bbcxmlfilename "http://www.bbc.co.uk/syndication/feeds/news/ukfs_news/uk/rss091.xml";
    $bbc_handle fopen ($bbcxmlfilename"r");
    $bbc_news fread ($bbc_handle1000000);
    fclose ($bbc_handle);
    $tutvxmlfilename "/home/********/public_html/maintenance/bbcnews.xml";
    $tutv_handle fopen($tutvxmlfilename"w+"); 
    fwrite($tutv_handle$bbc_news);
    fclose($tutv_handle); 
    Do you mean if I'm doing something like above?

    If so why is this and is there a way round it?

    Kind Regards,

    Neil

    cPanel.net Support Ticket Number:

  4. #4
    Member
    Join Date
    Mar 2003
    Location
    England, UK
    Posts
    103

    Default

    You will need to modify php to allow URL wrapping.
    For some reason it's disabled.

    cPanel.net Support Ticket Number:
    -- I live to support clients ---

  5. #5
    Member
    Join Date
    Mar 2003
    Posts
    55

    Default

    I have exactly same problem!!!!

    How exactly i modify php to allow URL wrapping???

    cPanel.net Support Ticket Number:

  6. #6
    Member
    Join Date
    Mar 2003
    Posts
    26

    Default

    It's not fopen it's fread.

    http://bugs.php.net/bug.php?id=24033

    Even though they say it was a bug in 4.3 up, I have been doing it that way since before 4.23. Whatever, if they want it to be a recent bug fix then that's the way it is. You'll have to relearn the fread function.

    cPanel.net Support Ticket Number:

  7. #7
    Member Jemshi's Avatar
    Join Date
    Sep 2003
    Location
    India
    Posts
    217

    Default

    Thanks bud !!!!!!!

    I have been wandering in search of a solution for my problem and that link had the exact problem described !.

    Thanks again :-)

    cPanel.net Support Ticket Number:
    Jemshad O K
    Sys Admin
    Bobcares.com
    http://www.poornam.com
    Winners don't do different things. They do things differently

Similar Threads & Tags
Similar threads

  1. PHP 5.2.10 - fopen() fails
    By handsonhosting in forum cPanel and WHM Discussions
    Replies: 24
    Last Post: 07-15-2009, 07:30 PM
  2. security php fopen chmod 777
    By skyshine in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-13-2005, 11:19 AM
  3. Does php fopen(url) use caching proxy?
    By RS-190737 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-05-2005, 06:59 AM
  4. how do i compile php with fopen()
    By Haloweb in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 01-18-2005, 01:15 AM
  5. PHP fopen() fails
    By Markwaugh in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-13-2003, 09:43 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube