PECL or PEAR on Windows Server?

CJones

Final Approach
Joined
Mar 14, 2005
Messages
5,791
Location
Jawjuh
Display Name

Display name:
uHaveNoIdea
I'm running PHP 5.2.8 under Windows Server 2003. I was trying to use http_redirect() in some coding, and it says it is an 'unrecognized function'. So, I tried to get the pecl_HTTP extension to install, hoping that would contain the HTTP_redirect function.

I have tried PECL and PEAR both, but they won't install the PECL_HTTP extension pack. Does anyone have any clue on how I can get a package that contains the "http_redirect()" function without having to build the entire package from source?! I know there are other ways to get around using http_redirect, but it's like a personal mission to install this stupid extension at this point. For some reason, PHP.net is not releasing the .dll's for those extensions anymore.
 
I've never even heard of the function. Even though it may be your personal mission to get it to work--don't bother. The less PHP extensions your code requires the way better off you are. Just use
Code:
<?php
header('Location: [URL="http://www.google.com%27%29;"]www.google.com');[/URL]
?>
 
I've never even heard of the function. Even though it may be your personal mission to get it to work--don't bother. The less PHP extensions your code requires the way better off you are. Just use
Code:
<?php
header('Location: [URL="http://www.google.com%27%29;"]www.google.com');[/URL]
?>

That's about the conclusion I have come to. I realized I am fighting a losing battle. ha!

As a side note -- I installed PHP on the d: drive of our server, but looking at phpinfo, it says it is using a php.ini in c:\program files\php\. Is there any way I can change it so it pull info from the php.ini that is located in d:\php? This is my first experience at actually dealing with server-side issues.

Apparently someone installed PHP a while back on the c:\ drive, but I want it to be pulling from d: so I can keep everything partitioned separately from the OS drive (c:).
 
Back
Top