Jump to content

genebom

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

genebom's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. You might want to look here... http://news.softpedia.com/news/A-Simple-PHP-Script-to-Create-ZIP-Archives-on-Windows-80871.shtml
  2. Oops - I should have said that using just the filename willl work provided "global-inc.php" is located in the C:\\Apache2.2\htdocs directory. Sorry, Gene
  3. The error message - Warning: require_once(../../global-inc.php) [function.require-once]: failed to open stream: No such file or directory in C:\\Apache2.2\htdocs\login.php on line 2 says that that login.php is trying to include a file called global-inc.php. The problem is that it is using a path (../..) that refers to the C: root directory. So what it's really trying to find is "c:\global-inc.php". If you edit line 2 of login.php and remove the path leaving just the file name it ought to work. Also note that windows uses backslashes rather than forward slashes in file name paths. That may also cause you a problem somewhere else down the line. Best of luck, Gene
  4. Problem Solved. When the script was invoked, it was running in another (postfix's) directory. I specified a full pathname for each of the files and voila. Success.
  5. Problem Solved. When the script was invoked, it was running in another (postfix's) directory. I specified a full pathname for each of the files and voila. Success.
  6. Hi - I'm not sure if this is the right place for this. If not can someone please point me to an appropriate place? That said, I've been trying to invoke a php script from the postfix mta. the Email is delivered just fine to 'localuser', the postfix log shows no errors, yet there is no indication that the script ever ran. All the script does is create several files and ouput some text to them. Works fine from the console. Anyone have any ideas how to go forward troubleshooting this? Thanks, Gene Details follow below ... Postfix runs as user 'postfix'. Script permissions are: -rwxrwxrwx 1 postfix localuser 236 Apr 27 08:47 test4.php From /etc/mail/aliases: testuser: localuser, "|/usr/local/bin/php -q /home/localuser/testmail/test4.php" I've also tried: testuser: localuser, "/home/localuser/testmail/test4.php" with #!/usr/local/bin/php as the first line in the php script. The following is from Postfix's log file (Times & other irrelevant junk removed): brightstar postfix/local[39848]: 8645B385: to=<localuser@domain.net>, orig_to=<testuser@brightstar.domain.net>, relay=local, delay=0.19, delays=0.16/0.01/0/0.02, dsn=2.0.0, status=sent (delivered to mailbox) brightstar postfix/local[39848]: 8645B385: to=<testuser@brightstar.domain.net>, relay=local, delay=0.31, delays=0.16/0.01/0/0.14, dsn=2.0.0, status=sent (delivered to command: /usr/local/bin/php -q /home/localuser/testmail/test4.php) brightstar postfix/qmgr[1017]: 8645B385: removed The script: <?php $pta = fopen('pointa', 'w'); fputs($pta,"Success pta\n"); fclose($pta); $ptb = fopen('pointb', 'w'); fputs($ptb,"Success ptb\n"); fclose($ptb); $ptc = fopen('pointc', 'w'); fputs($ptc,"Success ptc\n"); fclose($ptc); ?>
×
×
  • 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.