[PHP] Apache 1.3/PHP
For the first time ever I installed FreeBSD 4.9, I then installed Apache 1.3 and PHP 4.3.3-CGI from /usr/ports on the machine. It seems that everything is ok, but when I try to use a .php file it does not run it through the parser. So when I hit test.php in my browser it outputs: ? print Test 123; ? or ?php print Test 123; ? I'm sure I'm missing a line or two in my httpd.conf, but I really don't know what they would be. Anyone with experience with FreeBSD/Apache/PHP give me a hand? TIA Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache 1.3/PHP
As far as AddType goes for PHP this is what I have: IfModule mod_php3.c AddType application/x-httpd-php3 .php3 AddType application/x-httpd-php3-source .php3s /IfModule IfModule mod_php4.c AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps /IfModule AddType application/x-httpd-php3-source .php3s /IfModule IfModule mod_php4.c AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps /IfModule I added the AddType line outside of that and it's still not working. Thanks for the suggestion, please if you have any others I would love to know. I'm going to need to build a couple more FreeBSD boxes soon, and I want to have those go a little smoother :) Thanks again, Tom -Original Message- From: BAO RuiXian [EMAIL PROTECTED] To: Tom Ray [List] [EMAIL PROTECTED] Cc: PHP General [EMAIL PROTECTED], [EMAIL PROTECTED] Date: Fri, 23 Jan 2004 00:11:42 +0200 Subject: Re: [PHP] Apache 1.3/PHP Tom Ray [List] wrote: [snip]... ?php print Test 123; ? I'm sure I'm missing a line or two in my httpd.conf, but I really don't know what they would be. Anyone with experience with FreeBSD/Apache/PHP give me a hand? Do you have the following line in your httpd.conf: AddType application/x-httpd-php .php Best Bao TIA Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail() issue
I have an odd issue with mail(). I was working on a project at my office for some time and we did everything with php and mysql. I stepped away from the project for a bit but when I left all my scripts, such as password retrieval and a few others that used the mail() function were working. Now when you run any PHP script using mail(), the script executes perfectly, however I do not see any activity in my maillog and the mail is never delivered. PHP does not return an error or any warnings. Can anyone give me some pointers on where to start looking to see why PHP and Exim aren't talking with each other anymore? I've been looking since the beginning of the week and I can't find it. Box= SuSE8.2/Apache1.3/Exim 4.2 TIA Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Issues with exec()/system()
I'm having a bit of an issue using exec() and system(). Background: I have this script that installs forum software for a client, and that works like a champ. In it I use system() to copy the the default forum directory to the specified location the client sets, along with a unique directory name for the forum. The code looks like: $dir=unique_dir; system(cp -R forum /path/of/forum/location/of/forums/.escapeshellarg($dir)); The forum directory is located in the same directory as the script. Now, this is where I run into trouble. When they delete directories, I want to backup the directory before I delete it just in case they delete the wrong information. I just can't get it to work. I've tried exec() and system() to no avail. Of course, I'm under the impression I can use tar via exec(). Currently I have: $dir=unique_dir; $cmd=tar -cf /location/of/tar/files/$dir.tar /location/of/forum/diretory/*; exec($cmd); This should work shouldn't? Any thoughts, suggestions? Anyone else done something like this? TIA Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php