473,325 Members | 2,308 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

How do I use PHPRC to tell PHP where my working directory is located?

Don
How do I use PHPRC at runtime from within my php scripts to tell PHP where my working directory is
with all my php scripts? The scripts are on the host server.

Just did a phpinfo() and got the following:
Apache 1.3.27
Unix
PHP 4.3.4

Thanks for your help.
Don
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---
Jul 17 '05 #1
2 9767
Don
On Fri, 05 Nov 2004 09:27:07 -0700, Don <no@adr.com> wrote:
How do I use PHPRC at runtime from within my php scripts to tell PHP where my working directory is
with all my php scripts? The scripts are on the host server.

Just did a phpinfo() and got the following:
Apache 1.3.27
Unix
PHP 4.3.4

Thanks for your help.
Don
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---


The reason I need to do this is so PHP will find my php.ini in my working directory.

Don
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---
Jul 17 '05 #2
Don schrieb:
On Fri, 05 Nov 2004 09:27:07 -0700, Don <no@adr.com> wrote:
How do I use PHPRC at runtime from within my php scripts to tell PHP where my working directory is
with all my php scripts? The scripts are on the host server.


The reason I need to do this is so PHP will find my php.ini in my working directory.


No way.

Try to set the parameters in a .htaccess file.

Regards,
Matthias
Jul 17 '05 #3

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

Similar topics

303
by: mike420 | last post by:
In the context of LATEX, some Pythonista asked what the big successes of Lisp were. I think there were at least three *big* successes. a. orbitz.com web site uses Lisp for algorithms, etc. b....
0
by: jimmy | last post by:
Hoping someone can help. I've setup several FTP shares on IIS 5, where some of the shares are located on another computer, while other directories are on the local computer. Is there a...
3
by: Berkflow | last post by:
Anyone know how to change the current working directory in a windows NT service application written in C#? It appears to start in the windows system32 directory not where the exe is located which...
2
by: news.sbcglobal.net | last post by:
I hope I can explain this well enough to understand. I have a master page that is used by almost all of the pages in my site. On the master page is a table. In one of the cells in this table, I...
0
by: Dan Dorey | last post by:
I'm in the midst of creating a plugin framework with the goal of making it as easy as possible for myself and other developers to both create new plugins and work with existing ones. Each plugin...
3
by: Sergio Correia | last post by:
I have a program in 'C:\Python25\Lib\site-packages\spam\spam.py' Importing and everything works fine: But the program calls a file located on the same folder (that is:...
1
by: psbasha | last post by:
Hi , I have a main module in particular path say "C:\\Sample\\Test\\main.py",and other modules are also located in the same location.I would like to find the path of the current working...
2
by: qhm | last post by:
I currently have a page that I've been developing and testing in IE 6 and Firefox. I just recently update to IE 7 and now the button event doesn't fire. It works fine in Firefox. The platform...
1
by: NightOwl888 | last post by:
I have an older web project that I am trying to update with new .NET 2.0 features. I put new master pages in a subdirectory below the project directory. This particular project runs under IIS...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.