Fopen Problem In Astahost - allow_url_fopen ON but not working?

free web hosting
Free Web Hosting > Astahost > Hosted Members Support > Misc. Issues with no other forum

Fopen Problem In Astahost - allow_url_fopen ON but not working?

hazeshow
Hi there,

I have a code which grabs an xml-file from another location, reads it and puts the content into al local file. I use fopen, fwrite and fclose. The code goes like this:

<?php

$local_file = 'lala.xml';

$fd1 = @fopen ('http://www.example.com/lulu.xml', 'r');
while ($line=fgets($fd1,4000))

$alltext.=$line;

$fd2 = @fopen('lala.xml', 'w');
@fwrite($fd2, $alltext);

@fclose($fd1);
@fclose($fd2);
?>


On my Apache at home everything works fine. But it doesn't work on the astahost server. I thought all I needed was allow_url_fopen being set to ON and safemode OFF. As far as I understand the PHP information in my accounts phpinfo.php it should all work. Does anybody have an idea why the file is not written?

Thank U

Reply

overture
You may have to change the lala.xml permissions to 777 to be able to read, write and execute the file. You can do that in the File Manager. that should work. biggrin.gif

Reply

hazeshow
Sooooo cool! It works! Thank you very much, overture! I'm sooo stupid, I should have known that 777 thingy.

Thank U! wub.gif

Reply

miCRoSCoPiC^eaRthLinG
Issue resolved. smile.gif Topic closed.

Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. ipb warning [2] fopen(./_mail/ - 282.96 hr back. (1)
Similar Topics

Keywords : fopen, problem, astahost, allow, url, fopen, working

  1. Sleep Function Not Working
    (4)
  2. System Is Crashed - Hardware Problem
    Precaution (3)
    Dear all, i am working on my IBM Thinkpad R52, for internet i am using airtel card, and windows XP2
    with other software also, what i have problem when i dial for connect to internet, my screen is
    blank, i reboot the system and system is working fine, after some time again this problem is come my
    screen is blank. it may be work fine whole day or it may blank after sometime , i solve this again
    by restarting my laptop but my data each time lost, when without airtel card to internet system is
    working fine, no any type of error is came, but it is my need that i serf net so ....
  3. Problem Setting Up Wireless Internet & Wireless Nintendo Wii
    Need some help installing/configuring Wireless (4)
    Hi all, I am having quite some troubling issues with my wireless setup (to be setup *more like
    it*). Current hardware: 1. NETGEAR ProSafe 802.11g Wireless Access Point WG102 2. Telkom Wireless
    Router / Switch 3. Nintendo Wii (Wireless) 4. IBM Thinkpad T42 (Wireless) 5. Desktop PC With NIC
    The current setup *See attached picture* "Setup" So I have a 3G card working through PCMCIA on my
    T42 Thinkpad, which I use for internet connectivity. I want to share my internet connection
    throughout my house.. to my desktop PC + Nintendo Wii... I have tried setting it up myself, ....
  4. Hello Astahost
    xpress is coming..... (2)
    Hi guys here. I am an active member of trap17 and new to this forum. I hope I will enjoy my stay
    here as like trap17. I will try my best to share my knowledge here.........
  5. How To Order Xxx.astahost.com Subdomain For Free Web Hosting?
    Free Web Hosting, Free Domains, Free Dedicated IP and Free digital cer (2)
    The Step by Step ordering procedure is here.
    http://www.trap17.com/forums/free-web-host...ure-t61751.html SHORT STEPS to get FREE HOSTING
    Instructions for New Members Signup at our forums. Signup at our Billing & Support Area.
    (this will activate myCENTS - http://www.xistosupport.com/billing) Contribute at forums to earn
    money,Once your earning is about $2, you can buy a package at XistoSupport.com Instructions
    for Existing Members Register at our Billing & Support Area and use the same email which is in
    our Forum Records. After 5 hours,....
  6. Graphics Driver Out...
    Devie Usage problem... (2)
    So I was playing around with properties. I went to Desktop > Right click > properties > settings >
    advanced > adapter > properties and on the devie usage thing, I "accidentally" clicked disable..
    Now I think that my graphics driver is not properly functioning... Can anyone help me? Thanks in
    advance.........
  7. Freewebhosting: Ml01172.astahost.com
    Request for hosting (2)
    To generate an application for free web hosting please click here: Free Web Hosting
    Request Form I would like to request free web hosting from Astahost. Please find my
    application below. Your Registered Domain Name or Desired Astahost Subdomain Name:
    ml01172.astahost.com Account Username: ml01172 Introduction: My name is
    Darko Maksimovic and I'm a programmer for years now. I need a free hosting service in order not
    to pay for a hosting I don't really NEED, but only WANT. Since I'm already active at forums
    like....
  8. Pc Problem
    (8)
    i have a problem with my PC... when i start a game (FABLE:TLC or shaiya) something starts working
    very fast and louder in my case and the PC shuts down immediately(sometimes) and sometimes i can
    just play the game normally.... when i place my hand over graphics card (Geforce 9600 galaxy) it is
    not very hot..its normal...do u understand?....
  9. Astahost Totally Worth It =)
    (2)
    I waited 3 weeks for my acount to be approved, and now that it has i'd like to say that astahost
    is worth the waiting. This is my first server but i can tell by other hosted users' comments and
    other paid/free server offers that this one if not the best around. The user support here is great,
    any question no matter how complicated (but clear) will recieve several anwsers in less than 24
    hours. About a month and so ago i barely knew PHP, now and thanks to astahost i can say that i know
    enough PHP to start a decent text based game, which is probably the goal of mos....
  10. Three Anniversary On Astahost
    (1)
    Wow I can't believe I been a member on asta for 3 years now, although I don't come here
    often or rather I barely come here at all since I spend most of my time on trap17 wihich will be my
    4th year there as well. So yah for me.....
  11. Problem With Div's In Ie6 And Lower
    (4)
    I'm working on a template for joomla, but I'm heaving some serious problems to get it
    working in IE6 and lower. Basically, this is my layout: CODE
    -------------------------------------------------------------------------------------
    |                                                                                        |          
                 | |                            header                                                
    |                       | | -----------------------------------------------------------------
    |                       | |           ....
  12. Help With Astahost Clock :s
    (3)
    OK.. the time on my PC is 11:31, while the clock here on Astahost shows 12:10 ... I have fixed all
    the GMT things.. but I can't understand why it is 40 minutes later than my PC on Astahost.. And
    BTW.. where can I post when I have problems with the forums xD?? there is NO place that I can find
    on the forum......
  13. What Is Best? Byethost Or Astahost?
    Just want to know! (5)
    Hi is just want to know wich is best before i start getting credits ^^....
  14. Well... Goodbye Astahost
    I'm going to miss you all (8)
    Well, my time has come... Tomorrow I'm leaving Astahost, I'm not going to cancel my hosting
    just yet, I still need to backup my site. Today I bought hosting, I just can't seem to find
    anything to write about here anymore. I'd just like to say thanks so much for the great
    hosting, I'm still going to recommend you for free hosting. I'd like to thank everyone for
    their help and their support and giving me something to do! Also the admins, you're so helpful,
    remember that problem I had last year? Not sure if it was my fault but OpaQue fixed it! ....
  15. Phpbb - Installation Tutorial ( For Newbies Based On Astahost Cpane)l
    phpBB 2.0.22 installation Tutorial with basic steps. (5)
    Introduction!! Providing a comprehensive 'How To' tutorial guide, on the
    installation of phpbb 2.0.22 forum on your Astahost/cPanel account. Tutorial includes Downloading
    of files Uploading using cPanel File Manager CHMOD using cPanel File Manager MySQL database
    creation PhpBB initial configuration This guid will help everyone from beginners, with images and
    an in depth guide of what to do. Step 1 To start with we need to download PhpBB ( latest stable
    version is PhpBB 2.0.22 ). This can be done by visiting the PhpBB Downloads page which shou....
  16. Astahost Forums Now Ads Free!
    No More annoying Ads on AstaHost Forums (44)
    Dear Members, I am pleased to announce that due to tremendous success with ComputingHost.com, We
    are now pleased to offer our members the new AD-FREE Forums for our Members. Registered members will
    no longer have to tolerate the annoying ads. However, We also request our members to promote our
    Paid Web Hosting Service (www.ComputingHost.com). Please give us your feedback about our decision.
    -AstaHost Management ....
  17. Problem With Drag And Drop (or So It Seems).
    (12)
    I'm running on Windows XP with Service Pack 1. The last few days, all of a sudden, the drag and
    drop functionality of explorer (or anything on the operating system that uses system calls in order
    to perform it) screws up completely. I attempt to drag it, and it just flickers a bit to the
    direciton I'm moving it and then fails. It doesn't seem to be the mouse as I can still drag
    a rectangle selection to select multiple files etc, just no drag and drop. However, it isn't
    always like that, it works generally (as far as I know) and stop working out of now....
  18. Frustrating Problem With XP On Laptop
    (20)
    I have my Dualcore AMD Acer laptop, 5102Wlmi, with a 120GB hd, 2 GB ram, etc. I had a friend buy it
    in the states and bring it over just 2 months ago. All of a sudden, the other day when i went to
    turn it on, it would bring up the xp boot screen, and then just hang there. I tried a different hard
    drive. no luck. I tired installing XP, but after booting from cd and loading all the drivers, right
    after the FAT and NTFS drivers, it says "Setup is loading Windows" and then it hangs there. I've
    left it overnight and in the morning it's still in the same place. I can&#....
  19. Spam Problem On My Forums
    (26)
    I’m starting to have a real problem in my forums. Apparently “midget anal porn” is the hottest new
    thing. I didn’t think midgets were into that kind of thing but apparently I’m wrong (apologies to
    any midgets out there). I knew that spam may be a problem on my board but I didn’t think that I
    would be a target just yet. I only have 16 registered users (including the spam bots). How in the
    world did they find me? Just like junk mail I figure this problem is only going to get worst since
    I am now apparently on the list. Does anyone have a solution to this problem? I....
  20. Help, My Laptop Charger Is Not Working Properly
    (17)
    I have a HP Pavilion laptop. I bought it about 2-3 years ago. I try to plug in the charger end to
    my laptop and it does not start charging. I can take the back off of it, plug the charger in, and
    it works fine. I think that something is pushing back (in the laptop) and causing the connections
    not to touch. I would fix it myself, but I would have to take a lot of my laptop apart just to fix
    it. I do not feel comfortable doing that myself. My questions are: What is your suggestion to
    fix this? Has anyone else experienced this problem? If I took it to someone, ho....
  21. Blue Screen - irql_not_less_or_equal
    computer OS Windows problem booting (35)
    Hi , My computer AMD64 256mb RAM / 80GB HDD / Windows XP Professional recently started showing a
    blue screen while starting .. QUOTE A problem has been detected and windows has been shut down
    to prevent further damage to your computer . IRQL_NOT_LESS_OR_EQUAL (blah blah blah ... )
    Technical Information: *** STOP: 0x0000000A (oxFB07D354, ox000000FF, ox00000001, ox804E2E41)
    Initially, if I restarted it would not come the next time. It used to come only randomly. But
    later it started coming more often, and now it did not start for quite a few times con....
  22. Photoshop Cropping Problem
    (7)
    All right. For most of my Photoshop work, I use Photoshop 6.0. Yes, I know it's old, but it
    gets the job done, not to mention I just don't have the money of Photoshop CS or Photoshop CS2
    right now. But I'm getting off topic. Anyways, a few months ago, when I went to crop a
    picture, it wouldn't crop all the way. It would crop to a certain point and then just stop and
    refused to go any further with the cropping box. It seems to only form squares and sometimes
    horizontal rectangles, but only to a certain extent. However, when I opened Adobe Photosho....
  23. Einstein Quiz
    Can you solve this problem? (30)
    Hi everybody; I want to ask the quiz written by Einstein last century.It is called Einstein's
    Riddle.Einstein said that 98% of the people in the world cannot solve his riddle. Are you among the
    other 2%?(Hint:It is really easy:) Hints: 1: There are 5 houses in 5 different colors 2: In each
    house lives a person with a different nationality. 3: These 5 owners drink a certain beverage, smoke
    a certain brand of cigar and keep a certain pet. 4: No owners have the same pet, smoke the same
    brand of cigar or drink the same drink. Further Details: a: The Brit lives in a re....
  24. ATI Radeon 9250 Issues
    I've been working on it for weeks now... (8)
    I recently bought an ATI Radeon 9250 256mb, my computer comes with an nVIDA nforce chipset (Driver:
    nVIDA Geforce 2 Integrated GPU, VGA compatible). It worked great at first but later i started having
    problems. Logan (Deathbringer) helped me get it working again...sortof. What he told me to do was to
    uninstall the previous nVIDA drivers and use a driver cleaner to erase everything the uninstaller
    did not. It made sense, then i was to put the Radeon card in, start in safe mode and uninstall the
    Radeon drivers and clean off all the ATI drivers using the DC again. I restart....
  25. Problem Accessing My Cpanel
    [solved] (9)
    Don't know if I'm in the right subforum for asking that question. But I really have a
    strange problem. Since a few days I started not to be able to access my cpanel with Internet
    Explorer. I keep getting 504 or 503 errors (remote page not available or not found). It's not
    due to astahost because I can reach my cpanel from my office's computer. Only home I cannot !
    Unfortunately, it's the place where I should use it. It behaves as if the 2082 service port was
    unavailable. Is there something in IE6 settings (under XP) preventing my PC to open something....
  26. ATI Video Card Problem! Need Help
    (5)
    Ok here is my problem. On a somewhat regular basis I get the following error listed on the BSOD:
    ati2dvag.dll stopped responding if this is the first time this has happened restart your computer,
    if not then contact the hardware manufacturer. Well I thought it might just be a driver error so I
    updated my ATI drivers to the latest but the problem still ensued. I then went to the web and found
    that others have had this problem and corrected it by changing the CPU to AGP controller to a PCI to
    PCI bridge, I did this but found that I had a major hit to my ingame video pr....
  27. About [ Astahost ]
    (13)
    I dont know if this one was the right place but if it aint, Mods please shift this thread. I was
    over at Trap17 the other day while asta was being shifted to another server. I was going through a
    few posts and tried searching for the word "astahost". Many topics came up with the word astahost
    and many of them ( believe me ) were very encouraging, as asta is said to be one of the most
    intensive Information Sharing forum. May it be Computers or anything related to Life. One Post
    that caught my attention, and i am sorry Opaque if i disobeyd any rules in this. I mean no....
  28. MSN Help
    Problem (5)
    I have a problem with MSN search, I was under the impression that it followed link on my site, but
    for some reason it is finding pages that don't exsist on my forums, or really wierd ones, it
    hasn't read any posts, it just checks the login and registration pages and all sorts of wierd
    things... I am sure that the group that the bots are treated as have acess to the forums to read
    them, but they still don't check posts, it just comes every day and see's if my users
    long-in differently now... /laugh.gif' border='0' style='vertical-align:middle' alt='laugh....
  29. Free Web-based Ftp Clients (can Use With Astahost)
    (12)
    Hi /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> , Here are a couple
    of free web-based FTP Sites, that you can use to upload files to your astahost hosting account - in
    case you are having difficulties in installing/configuring a local FTP Client. 1. http://01ftp.com
    QUOTE Manage your websites and files!! Once you are logged in, you will be able to:     *
    Navigate your FTP server     * Upload and download files     * Copy - move between two 2nd FTP
    servers     * Copy, move, delete, CHMOD files and directories     * Rename and chmod fi....
  30. Help! Problem With My Flash-Drive
    Sh17 happens .. (2)
    Story :: A was installing WinXP on PC B's Flash Drive (FD) was in the USB Slot. While the
    WindowsXP Setup is partitioning, 'A' realised that the light on the FD was blinking ..
    indicating activity so he plucked it out immediately. Now 'B's FD is corrupted .. I
    recovered almost all the data from the corrupted FD using Ontrack's EasyRecovery 6.0 .. It is
    the most amazing software ever developed .. it could virtually recover all data in a drive that had
    been formatted .. Alright .. now is the headache .. there is no way that I could get the drive ....

    1. Looking for fopen, problem, astahost, allow, url, fopen, working






*SIMILAR VIDEOS*
Searching Video's for fopen, problem, astahost, allow, url, fopen, working
advertisement




Fopen Problem In Astahost - allow_url_fopen ON but not working?



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE