Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Run PHP, just as a local script platform on Windows, how to?

Avatar of zzhang2006
zzhang2006Flag for United States of America asked on
SoftwarePHP
11 Comments1 Solution1075 ViewsLast Modified:
I installed PHP using the installer
   php-5.3.2-nts-Win32-VC9-x86.msi

and try to run the follow script  (hello.php) at a command prompt.

> hello.php

and this is the error messageI got from windows:
      php-win.exe - Inable To locate Component  (pop up)
         X  --  This application has failed to start because OCI.dll was not found. Reinstalling the
                  applicaton may fix this problem.

The script (may be irrelavant at the moment) contains:

<?

# This a comment

echo "Hello";

$a = 1;

$b = 2;

$c = $a + $b;

echo $c;


>

...

When under the setup/install, I chose  "do not setup the web servers" since I thought I  just want to run the scripts. However I remember I had it work on the machines had apache servers
installed.  Do I have to have one type of web servers installed or even running to be able to
run the php script locally?  How do I let it find the OCI.dll file  (for Oracle?)?

Or my goal is just being able to run a php script like a program locally, don't need to use any
servers at this time.  Am I on the right track or you experts have better solutions?

Thanks

Ze
ASKER CERTIFIED SOLUTION
Avatar of Richard Quadling
Richard QuadlingFlag of United Kingdom of Great Britain and Northern Ireland imageSenior Software Developer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 11 Comments.
See Answers