Hi,
I have some experience (very very small) programing with php, but here is the issue. The IT company that I work for has put me in charge of maintaining the server because I am their web designer. A recent issue has come up. A client contacted me with an issue that I am not sure how to deal with. Here is what he wrote:
"We're adding some features to both the public and administrative side of (website). Both rely on PHP.
The first feature allows site visitors to email a link to a page on the site from the site itself. The other feature allows Wingspan staff to upload newsletters to the site through an admin panel they use as part of their content management system.
Although both features work fine on my local system running PHP 4, The mail feature doesn't work when we test it on (website). Also, the file upload, works fine with files up to 2MB, but won't allow for larger than that.
I ran phpinfo on (website) and it appears no sendmail or smpt path has been added to the php.ini file. Additionally, for file uploads it appears the max_execution_time is set at 30 seconds and the upload_max_filesize is set at 2MB. It's possible some of the newsletters Wingspan will be uploading may be larger than that."
The Issue is that it appears that a setting needs to be adjusted to solve both of these issues but I have no idea how to adjust any settings. It seems that I have to adjust the php.ini file, but is that per site or server based? The server is running Windows 2003 Standard.
Any direction or help would be great. Remeber I am a novice.
New to PHP and have an issue
Moderator: General Moderators
-
bliss_infinite
- Forum Newbie
- Posts: 2
- Joined: Thu Apr 13, 2006 12:23 pm
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
max_execution_time can be adjusted in many places, including in each script, per directory, or through the configuration of the entire server.
upload_max_filesize can be adjusted per directory and per server.
http://php.net/manual/en/ini.php#ini.list
upload_max_filesize can be adjusted per directory and per server.
http://php.net/manual/en/ini.php#ini.list
-
bliss_infinite
- Forum Newbie
- Posts: 2
- Joined: Thu Apr 13, 2006 12:23 pm
Thanks for the info. I was able to make the changes to the php.ini file on the server and I restarted IIS.
My issue with the mail still seems to exist. I have two servers, one running php 4.3.9 the other running php 5.0.4.
The php 4.3.9 has been fine with sending mail through a php script. The server running php 5.0.4 is the one I am having trouble sending mail through a php script. I ran info() on both and the settings seem to be the same. I am begining to think that there may be a server setting in IIS that is not letting me send mail via php. The SMTP Virtual Server is off an the moment and I'm thinking that may be part of the issue. I am looking into that now but if anyone else has any info I would appreciate it.
~Bliss
My issue with the mail still seems to exist. I have two servers, one running php 4.3.9 the other running php 5.0.4.
The php 4.3.9 has been fine with sending mail through a php script. The server running php 5.0.4 is the one I am having trouble sending mail through a php script. I ran info() on both and the settings seem to be the same. I am begining to think that there may be a server setting in IIS that is not letting me send mail via php. The SMTP Virtual Server is off an the moment and I'm thinking that may be part of the issue. I am looking into that now but if anyone else has any info I would appreciate it.
~Bliss