/    Sign up×
Community /Pin to ProfileBookmark

php.ini in c:/php directory

I was having problems with php_mysql.dll loading when I had the php.ini in the php directory but my phpinfo page would load fine. I moved the php.ini and the php_mysql.dll files to the c:/windows directory and now phpMyAdmin finally loads but phpinfo doesn’t. What gives?

to post a comment
PHP

6 Comments(s)

Copy linkTweet thisAlerts:
@playptpauthorJan 28.2006 — I would like to have everything load from the php directory, and have set that up in the PATH information, but no matter what I do, this line in phpinfo always reads:

Configuration File (php.ini) Path C:WINDOWS


I would like it to read:

Configuration File (php.ini) Path C:php
Copy linkTweet thisAlerts:
@OneCleverCookieJan 28.2006 — Hello,

I had the same problem earlier int the week, this fixed it for me.

On Windows NT, 2000, XP and 2003:

* Go to Control Panel and open the System icon (Start -> Settings ->
Control Panel -> System, or just Start -> Control Panel -> System
for Windows XP/2003)
* Go to the Advanced tab
* Click on the 'Environment Variables' button
* Look into the 'System variables' pane
* Click on 'New' and enter 'PHPRC' as the variable name and the
directory where php.ini is located as the variable value (e.g.
C:php)
* Press OK and restart your computer
Copy linkTweet thisAlerts:
@playptpauthorJan 28.2006 — Ok, interesting. That worked to bring back PHPMyAdmin, but now the phpinfo page won't come up. Any ideas why that isn't showing up all the sudden when I run everything from the php dir?
Copy linkTweet thisAlerts:
@playptpauthorJan 28.2006 — Its actually just printing out <? phpinfo(); ?> when I view the HTML. So it's not parsing php at all.....
Copy linkTweet thisAlerts:
@playptpauthorJan 28.2006 — However, when I run this:

<html>

<head> <title>MySQL Test</title> </head>

<body>

<h1>

<?php

$conn = mysql_connect("localhost","root","root")

or die("Could not connect to MySQL");

echo "Successfully connected to MySQL";

?>

</h1>

</body></html>

It works, so I know the php is ok, but no phpinfo page.
Copy linkTweet thisAlerts:
@playptpauthorJan 29.2006 — Ok so I was having trouble viewing the phpinfo file this way:

<? phpinfo();?>

But when I changed it to this it worked just fine:

<?php phpinfo();?>

What is the difference? And what can I change to make them both work?
×

Success!

Help @playptp spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...