# Problem with -c option and --with-config-file-path option

- Thread: https://externals.io/message/401
- Original archive: https://news-web.php.net/php.internals/401
- Started by Mark Striebeck on 2003-03-28T06:16:41+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #401 — Mark Striebeck — 2003-03-28T06:16:41+00:00

URL: https://externals.io/message/401#401

Hi,

we are building PHP with the --with-config-file-path compile setting to get our php.ini file from our own location.

Now, in some scenarios we need to run PHP with the -c command line option to get the php.ini file from a different location.

This seems to cause problems!

When using the -c command line option, our PHP files cannot find their includes anymore.

My last attempt was to set the -c command line option to the exact same location that we use for the --with-config-file-path compile setting. With the same result: without the -c option everything works, with the -c setting the include files are not found.

What are the differences between these two options? Does the -c have any other side effects?

Thanks
	MarkS

---------------------------------------------------
Mark Striebeck      SourceForge Engineering Manager
VA Software         http://www.vasoftware.com

---

## #402 — Rasmus Lerdorf — 2003-03-28T06:27:24+00:00

URL: https://externals.io/message/401#402 · In reply to: #401

Hey, J2EE/DB2 has a php.ini file?  Cool.

This is the wrong list for this question, but you could try using the 
PHPRC env var instead to set the location of your php.ini file.

-Rasmus






> Hi,
> 
> we are building PHP with the --with-config-file-path compile setting to get our php.ini file from our own location.
> 
> Now, in some scenarios we need to run PHP with the -c command line option to get the php.ini file from a different location.
> 
> This seems to cause problems!
> 
> When using the -c command line option, our PHP files cannot find their includes anymore.
> 
> My last attempt was to set the -c command line option to the exact same location that we use for the --with-config-file-path compile setting. With the same result: without the -c option everything works, with the -c setting the include files are not found.
> 
> What are the differences between these two options? Does the -c have any other side effects?
> 
> Thanks
> 	MarkS
> 
> ---------------------------------------------------
> Mark Striebeck      SourceForge Engineering Manager
> VA Software         http://www.vasoftware.com
