Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1062237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:35:41+00:00 2026-05-16T18:35:41+00:00

On my php host, I have a script that is run by a cron

  • 0

On my php host, I have a script that is run by a cron job that opens/overwrites a file from a remote ftp server. It works most of the time, but I am finding that when it initially creates the file, the owner/group are “736/736”, but at some point the owner and group change to “99/99”. Problem is I start running in to permissions issues – here is the code:

$local = fopen("/mypath/myfile.txt","w");
$result = ftp_fget($conn_id, $local,"remotepath/remotefile.txt", FTP_BINARY);
fclose($local);

I am using this same code to pull down a bunch of files.
It does not happen to all the files. This original file is never touched again, except for a ‘read’ type fopen (“r”).

I do not think it is the ftp_fget, as I have a different script, also run by cron that creates text files via an fopen “w”, and SOME of those files are also owner “99/99”.

Any thoughts? Could this be a config problem on the isp’s side? If so, what do I tell them? When I tell them my owner/group are wrong, they totally reset my entire ftp directory – permissions,owner, etc. which is a pain.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T18:35:42+00:00Added an answer on May 16, 2026 at 6:35 pm

    The Group UID 99 and Owner UID 99 is Nobody or apache. This is the same for all folders created by the file system. So, when cron job runs, the files are owned by apache.

    Solutions:

    1. You can ask your webhosting provider to fix these things.
    2. Convert all files that it’s going to read/write to 777. If files are 777, it usually does not try to change permission. However, if new files are created, they will again be owner by 99.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 530k
  • Answers 530k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You could take a look whether SOUNDEX() works for you.… May 16, 2026 at 11:44 pm
  • Editorial Team
    Editorial Team added an answer You can "encodeURIComponent" your url: $("#content").load(encodeURIComponent("uploads/flashes/New folder/target.php")); Javascript encodeURIComponent method… May 16, 2026 at 11:44 pm
  • Editorial Team
    Editorial Team added an answer The simplest solution to this is to just use the… May 16, 2026 at 11:44 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have a php script that needs to run once every 5 minutes. Currently
Ok, So I have a external php script that get data from a DB
I have a PHP script that has a runtime of 34 seconds. But it
I know there are many posts about using CRON to run a php file.
I have written an external script that needs to run after DOM is ready
I have a PHP script that launches another script in the background. Recently my
I have a fairly small MySQL database (a Textpattern install) on a server that
I have to create a script that takes a mySQL table, and exports it
I have a php script which requires no web hosting or disk space etc.
My site is php based and the host disabled exec() and passthru() and system().

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.