Click to See Complete Forum and Search --> : Install PHP on windows


sand123
12-13-2004, 04:45 AM
I have to run php file thru c: > drive .
can I install PHP on windows?

how?
Is there any configuration for this?

tsinka
12-14-2004, 06:08 AM
Yes,

just install PHP as usual (the zip package, not the installer version). Make sure that you have a php.ini file in the windows directory with extension_dir set correctly. Enable the extensions you need in php.ini and copy all dlls the enabled extensions depend on to system32. There comes a php.exe with PHP which is the CLI-Version. That php.exe can be executed from a command line shell.

So if you already have a working PHP installation (for e.g. Apache or IIS) then chances are high that you can just use the executable in the PHP base directory.

Thomas

sand123
12-14-2004, 08:02 AM
can we create Desktop enabled Applications in PHP?

actually,in one interview there was such question.
but, i don't know the 'Desktop enabled Applications ??

If there ? can you give the example..
plz.

tsinka
12-14-2004, 08:14 AM
There is php-gtk (http://gtk.php.net/). I never used it and don't know if it is reliable and stable. I think it depends on the application you want to develop.

Thomas

sand123
12-14-2004, 08:45 AM
PHP is script language.
Then as Javascript,

can we write such code
<script language="php">
print "Thank you!";
</script>

And _FILE_ is predefined constant.
but what purpose we used that PHP variable?

sand123
12-15-2004, 06:35 AM
I downloaded php-4.3.9-Win32.zip and extract it on windows c: drive.
php-4.3.9-Win32' folder created.
In that folder there are such files php.ini-dist,php.ini-reco..
but no php.ini?

tsinka
12-15-2004, 06:41 AM
These are the example files. Copy one of them to system32 and rename the file to php.ini.

Thomas

sand123
12-15-2004, 06:57 AM
extension_dir = "./"
what will be the path of extension_dir ?
and
Enable the extensions you need in php.ini means I have uncomment all dlls lines.

and copy all dlls the enabled extensions depend on to system32.?

tsinka
12-15-2004, 07:22 AM
There was an error in my last post. Don't copy the file to system32 but to the windows directory. php.ini has to be in the windows directory.

Thomas

sand123
12-15-2004, 07:55 AM
I changed the path like this...
extension_dir = "C:\php\extensions";

and uncommented the dll lines.

there in one script(HTTP authentication) in c:\php\authphp.php
I want to execute this file thru safesquid which is running on Linux OS.
Is it possible?
or that SafesQuid should be Windows Package.?

sand123
12-16-2004, 04:01 AM
what should be the path
extension_dir=?