473,788 Members | 2,843 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

php.ini file editing

I need your knowledge,

I want to add to my website php.ini file to change the settings of my
mail() function so that my function is working fine except that the
sender email is not my user but no****@hostingp rovider.com so Someone
told me that its easily edited using php.ini but he dont know how, so
I thought that you could help me in this situation.

more details about my hosting:
- Linux host
- php 4.4.6
- apache

thanks for your help in advance
shror

Aug 27 '07 #1
3 1750
shror wrote:
I need your knowledge,

I want to add to my website php.ini file to change the settings of my
mail() function so that my function is working fine except that the
sender email is not my user but no****@hostingp rovider.com so Someone
told me that its easily edited using php.ini but he dont know how, so
I thought that you could help me in this situation.

more details about my hosting:
- Linux host
- php 4.4.6
- apache

thanks for your help in advance
shror
Hi,

Well, php.ini is edited by any texteditor (try nano or pico on *nix
hosts for simple editing).
But chances are you cannot edit it because you do not have permissions.

And you don't 'add php.ini' to your php installation, it is already there.
Try the function phpinfo() to get detailed information concerning it
whereabouts. ;-)

And can you not just add a From in your emailprogram instead of using
php.ini?

Regards,
Erwin Moller
Aug 27 '07 #2
On Aug 27, 5:08 pm, Erwin Moller
<Since_humans_r ead_this_I_am_s pammed_too_m... @spamyourself.c omwrote:
shror wrote:
I need your knowledge,
I want to add to my website php.ini file to change the settings of my
mail() function so that my function is working fine except that the
sender email is not my user but nob...@hostingp rovider.com so Someone
told me that its easily edited using php.ini but he dont know how, so
I thought that you could help me in this situation.
more details about my hosting:
- Linux host
- php 4.4.6
- apache
thanks for your help in advance
shror

Hi,

Well, php.ini is edited by any texteditor (try nano or pico on *nix
hosts for simple editing).
But chances are you cannot edit it because you do not have permissions.

And you don't 'add php.ini' to your php installation, it is already there.
Try the function phpinfo() to get detailed information concerning it
whereabouts. ;-)

And can you not just add a From in your emailprogram instead of using
php.ini?

Regards,
Erwin Moller- Hide quoted text -

- Show quoted text -
I tried to add from in my code but its not working so i thought of
using the php.ini
I thought that if i added php.ini to my root directory (inside /
public_html/) things will work fine???

anyway thanks for your info I will try on changing my code once more
to check it again

Aug 28 '07 #3
shror <sh******@gmail .comwrites:
>>
I want to add to my website php.ini file to change the settings of my
mail() function so that my function is working fine except that the
sender email is not my user but nob...@hostingp rovider.com so Someone
told me that its easily edited using php.ini but he dont know how, so
I thought that you could help me in this situation.
more details about my hosting:
- Linux host
- php 4.4.6
- apache
>
I tried to add from in my code but its not working so i thought of
using the php.ini
I thought that if i added php.ini to my root directory (inside /
public_html/) things will work fine???

anyway thanks for your info I will try on changing my code once more
to check it again
Okay, in the php.ini the setting is as follows:

sendmail_from = me@localhost.co m

But this should just be a default if you don't specify. I
doubt the hosting provider will change it on their servers. In your
local .htaccess file you may be able to give the variable a new value
(but I'm not sure). You would not have local php.ini, the system
won't read it as long as the provider has one installed.

Like the other guy, your best bet is just to get the
From part of the mail function working. You shouldn't have any
trouble setting the from there (the fourth parameter allows
you to add additional headers):

mail($msgTo, $msgSubj, $msgTxt, "From: $msgFrom")

Best regards!
--
John
_______________ _______________ _______________ _______________ _______
John Murtari Software Workshop Inc.
jmurtari@follow ing domain 315.635-1968(x-211) "TheBook.Co m" (TM)
http://thebook.com/
Aug 28 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
4741
by: joethis | last post by:
Is there a way to make sure that a file is already in use using asp? For instance, if one person has opened a file and is about to write to it; then is there a way to keep another user from reading, or writing to that text file until the first user is finished?
1
1687
by: sam.collett | last post by:
Is there a basic guide on Xml document creation and editing (simpler than the MSDN docs). Say I want to create a file containing the following: <?xml version="1.0" encoding="utf-8" standalone="yes"?> <Files> <File> <Text>Test</Text> <Name>Test.html</Name> </File>
7
4123
by: Allen Anderson | last post by:
I'm trying to figure out a way to catch when a file has been written to a directory. I currently have it where I can catch when the file begins writing, but this isn't helpful as I need to know when its done. Does anyone know the right combination of flags to use to catch when the file has been written and closed? (here is my current code). // member variable FileSystemWatcher watcher = new FileSystemWatcher();
0
312
by: Vanga Sasidhar | last post by:
Hi All, Please help me in the following problem. I am having some files with AVI extension. I want to make two programs in Visual Basic .NET which will work with these AVI Files. One program should work as encrypter and another program should work as decrypter. The frist program, encrypter should lock (the user should not be able to open) any AVI file by editing the file. The second program, decrypter should
6
3320
by: MLH | last post by:
Can decompiling an A97 mdb result in fixing minor nasties that may be responsible for some premature terminations of A97 (We are sorry. MS Access 97 needs to close.... messages). I've found the following recommendation and was wondering if any of you have used the technique and why you did? To decompile start Access with the /decompile switch. To do this from windows do a Start, Run and then where it asks for the name of the program to...
2
2081
by: ritesh | last post by:
Hi, I'm facing a problem in which I need to edit an already created file, and the editing needs to be done at the start of the file rather then appending to the file. OS - Linux,Solaris For e.g. I have a file test.txt created and I have the path to this file in a
2
5566
by: Joseph Geretz | last post by:
When I create a Form, the VB IDE creates the following files in the following hierarchy: Form1.cs Form1.Designer.cs Form1.resx Both Form1.cs and Form1.Designer.cs are partial implementations of a single physical class definition. The VB IDE properly recognizes Form1.cs as a Form (i.e. double-clicking opens the Form designer). It also recognizes
2
6609
by: Smokey Grindle | last post by:
I need a way to tell if a program such as word or excel has a document it locked (open for editing). Is there any way to do this in VB.NET? All I need is a its open for editing or not response thats all... thanks!
16
2082
by: Lawrence Krubner | last post by:
To guard against our users possibly uploading huge files, I've got this in my php.ini file: ; Maximum size of POST data that PHP will accept. post_max_size = 10M On a server running Ubuntu Linux. The PHP version: root@ldc310:/etc/php5/cli# php -v
36
5405
by: Don | last post by:
I wrote an app that alerts a user who attempts to open a file that the file is currently in use. It works fine except when the file is opened by Notepad. If a text file is opened, most computers are configured to use Notepad to open the file by default and if they are configured to use Notepad by default I want it to remain that way rather than retrieve the text into my app or force the user to use another app to read the file. I'm...
0
9656
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10112
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9969
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5399
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3675
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.