Closed Thread
Results 1 to 8 of 8

Thread: fopen(); don't works on my account.

  1. #1
    torwald.lung67 is offline x10Hosting Member torwald.lung67 is an unknown quantity at this point
    Join Date
    Sep 2010
    Posts
    14

    fopen(); don't works on my account.

    Hi! I am writing PHP script with fopen() function but it does not work. I heard it is all about my account PHP level. Can You set my PHP level hi enough to use that type of functions?

    respectfully yours.

  2. #2
    Livewire's Avatar
    Livewire is offline Abuse Compliance Officer Livewire is a glorious beacon of lightLivewire is a glorious beacon of light
    Join Date
    Jun 2005
    Location
    Behind a keyboard.
    Posts
    8,995

    Re: fopen(); don't works on my account.

    We haven't used the PHP level system in years, so that's not the problem.

    The problem is that we blocked outgoing traffic on port 80 because content scraping and proxies aren't allowed, and we've been whitelisting the popular API systems used for updating (like wordpress, phpbb, etc). Where are you trying to connect to and for what purpose?


    TOS breakers will be suspended regardless of race, creed, national origin, hair color, or favorite food. Thanks for your understanding!

  3. #3
    torwald.lung67 is offline x10Hosting Member torwald.lung67 is an unknown quantity at this point
    Join Date
    Sep 2010
    Posts
    14

    Re: fopen(); don't works on my account.

    Misunderstanding. Part of my website's file: http://michaelsoft.x10.mx/kontakt.php uses PHP code and it works fine on "FOX SERVER" with PHP installed on my PC, but not on michaelsoft.x10.mx. This is simple code not something complicated.

    In short way, why this does not work on my x10.mx account?:

    $file=fopen("poczta\wiadomosci.txt", "a");
    flock($file, LOCK_EX);
    fputs($file, $dane);
    flock($file, LOCK_UN);
    fclose($file);

  4. #4
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,633

    Re: fopen(); don't works on my account.

    1. Use / as a path separator. Linux, not Windows.

    2. I cannot find that file ( poczta/wiadomosci.txt ) on your site from the web. Are you sure that it is there (and remember CaSe MatteRS in Linux) ?
    Nothing is always absolutely so.

  5. #5
    torwald.lung67 is offline x10Hosting Member torwald.lung67 is an unknown quantity at this point
    Join Date
    Sep 2010
    Posts
    14

    Re: fopen(); don't works on my account.

    It was MY BIG mistake. You are right, it is all about "/". Thank You very much.

    P.S. "poczta/wiadomosci.txt" will be created after first use of that script (now it's alll fine)

  6. #6
    Livewire's Avatar
    Livewire is offline Abuse Compliance Officer Livewire is a glorious beacon of lightLivewire is a glorious beacon of light
    Join Date
    Jun 2005
    Location
    Behind a keyboard.
    Posts
    8,995

    Re: fopen(); don't works on my account.

    Was about to say "I just checked on the server and the file's there..."

    Glad it's working, and sorry I misunderstood what fopen was actually being used for in this case - we've been getting a lot of questions on folks using it to download from -other- sites so I assumed it was another one of those. I couldn'tve been more wrong this time if I had tried XD


    TOS breakers will be suspended regardless of race, creed, national origin, hair color, or favorite food. Thanks for your understanding!

  7. #7
    torwald.lung67 is offline x10Hosting Member torwald.lung67 is an unknown quantity at this point
    Join Date
    Sep 2010
    Posts
    14

    Re: fopen(); don't works on my account.

    Hi! Do anybody know how to close this tread? Replays from forum members alredy helped me so no new entrys needed.
    Thx.

  8. #8
    Livewire's Avatar
    Livewire is offline Abuse Compliance Officer Livewire is a glorious beacon of lightLivewire is a glorious beacon of light
    Join Date
    Jun 2005
    Location
    Behind a keyboard.
    Posts
    8,995

    Re: fopen(); don't works on my account.

    Closed by request


    TOS breakers will be suspended regardless of race, creed, national origin, hair color, or favorite food. Thanks for your understanding!

Closed Thread

Similar Threads

  1. PHP fopen()
    By thebestkillersclan89 in forum Soporte
    Replies: 2
    Last Post: 09-02-2010, 06:46 PM
  2. PHP fopen
    By galaxyAbstractor in forum Programming Help
    Replies: 2
    Last Post: 12-13-2008, 11:44 AM
  3. Replies: 1
    Last Post: 08-20-2008, 03:27 AM
  4. Replies: 1
    Last Post: 03-10-2008, 02:06 AM
  5. Replies: 2
    Last Post: 01-25-2008, 09:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers