Jump to content

live_to_love

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

live_to_love's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I needed to set the dir access to rwx on the dir I want to write and delete files
  2. PHP is case sensitive. So your DomDocument is not the same as DOMDocument. DomDocument seems not to implement createElement() method.
  3. Just a sudocode tip. Since you are ordering by the keys, as you loop thru the result, you can save the keys concatenated into another var "saveKeys" The before you print it check if the key has changed. --- in the result loop --- If saveKkeys != key1.key2...keyx { print records saveKeys=key1.key2...keyx --- in the result loop --- } hug
  4. Log on your server as the user you want to run the cronjob. The cronjob will run at intervals depending on how you set it up. See below. at the command line use: crontab -e There edit your crontab using the following sintax: A crontab file has five fields for specifying day , date and time  followed by the command to be run at that interval. *    *  *  *    *  command to be executed and arguments -    -    -    -    - |    |    |    |    | |    |    |    |    +----- day of week (0 - 6) (Sunday=0) |    |    |    +------- month (1 - 12) |    |    +--------- day of month (1 - 31) |    +----------- hour (0 - 23) +------------- min (0 - 59)
  5. Hi everyone, I'm kind of new to php and this is my first post I manage to install PHP and PosgreSQL I have this php code: Starts a shell script which needs to create and delete some files. $run_command="sh test.php"; trace("External_Publish_Request:getExternalDirectoryArray(): exec ".$run_command,3); exec ($run_command, &$dir_list, &$rc); The command failes when the shell script tries to create a file: echo "this is the list:" > temp.txt The shell script can run simple commands except create files or run commands outside of the php web dir. I think there must be some setting I must set on PHP or some work around to do this. thanks, l2l
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.