Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 374
  • Last Modified:

can not use bat files in this pear

clicking on both pear.bat and phpunit.bat

generate same dialog box


I wish to install in this folder because it corresponds to my nusphere php idephp unit and pear bat file can not run
0
rgb192
Asked:
rgb192
  • 14
  • 14
1 Solution
 
gheistCommented:
you have multiple versions of PHP in you %path%
you must exclude wrong ones to make good one work
0
 
rgb192Author Commented:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\wbem;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\EgisTec\MyWinLocker 3\x86;C:\Program Files (x86)\EgisTec\MyWinLocker 3\x64;C:\Program Files (x86)\Windows Live\Shared;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn;c:\Program Files\Microsoft SQL Server\100\Tools\Binn;c:\Program Files\Microsoft SQL Server\100\DTS\Binn;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE;c:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn;C:\Program Files (x86)\WinSCP;C:\svn\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Smart Projects\IsoBuster;C:\Program Files (x86)\QuickTime\QTSystem;C:\Program Files (x86)\Zend\ZendServer\bin;C:\Program Files (x86)\Zend\ZendServer\share\ZendFramework\bin;C:\Program Files (x86)\Bitvise Tunnelier;C:\Program Files (x86)\Common Files\SYSTEM\MSMAPI\1033;C:\Program Files (x86)\WinSCP\;C:\Program Files\Microsoft\Web Platform Installer\



I have a zend framework php, a wamp php, and nusphere ide text editor php

All 3 work but there may be small errors, such as this.
0
 
gheistCommented:
Here it is - all other PHP.EXE are prone to fail
C:\Program Files (x86)\Zend\ZendServer\bin;C:\Program Files (x86)\Zend\ZendServer\share\ZendFramework\bin
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
rgb192Author Commented:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\wbem;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\EgisTec\MyWinLocker 3\x86;C:\Program Files (x86)\EgisTec\MyWinLocker 3\x64;C:\Program Files (x86)\Windows Live\Shared;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn;c:\Program Files\Microsoft SQL Server\100\Tools\Binn;c:\Program Files\Microsoft SQL Server\100\DTS\Binn;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE;c:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn;C:\Program Files (x86)\WinSCP;C:\svn\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Smart Projects\IsoBuster;C:\Program Files (x86)\QuickTime\QTSystem;C:\Program Files (x86)\Bitvise Tunnelier;C:\Program Files (x86)\Common Files\SYSTEM\MSMAPI\1033;C:\Program Files (x86)\WinSCP\;C:\Program Files\Microsoft\Web Platform Installer\

Open in new window



do I need to reinstall nusphere or php
0
 
gheistCommented:
No you need to delete all elements of %path% that contain php5ts.dll, then it will be picked from current directory.
It hunts windows since inception
http://preview.tinyurl.com/DLL-Heaven
0
 
rgb192Author Commented:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\wbem;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\EgisTec\MyWinLocker 3\x86;C:\Program Files (x86)\EgisTec\MyWinLocker 3\x64;C:\Program Files (x86)\Windows Live\Shared;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn;c:\Program Files\Microsoft SQL Server\100\Tools\Binn;c:\Program Files\Microsoft SQL Server\100\DTS\Binn;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE;c:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn;C:\Program Files (x86)\WinSCP;C:\svn\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Smart Projects\IsoBuster;C:\Program Files (x86)\QuickTime\QTSystem;C:\Program Files (x86)\Bitvise Tunnelier;C:\Program Files (x86)\Common Files\SYSTEM\MSMAPI\1033;C:\Program Files (x86)\WinSCP\;C:\Program Files\Microsoft\Web Platform Installer\


I can not find php5ts.dll in the path

do you mean me looking through
wamp
php zend framework
folders for file php5ts.dll

which file should I delete
0
 
gheistCommented:
If one php5ts.dll is loadedin apache other cannot be loaded...
http://www.dependencywalker.com/ will help you trice where your php.exe takes dll from.
0
 
rgb192Author Commented:
many-log-windows-which-one-do-you-want-to-seemany-log-windows-which-one-do-you-want-to-see
or is there export log to txt
0
 
gheistCommented:
1) if there are two DLLs of same name from different places loaded
2) is the php5ts.dll from same distribution as php.exe
0
 
rgb192Author Commented:
1) if there are two DLLs of same name from different places loaded
how do I check

2) is the php5ts.dll from same distribution as php.exe
I do not understand

this is the new screenshot of dependency walker after uninstalling wamp and reinstalling nushpere

errors detected

Also I can remove c:/php because I do not need
I still do not know which log to show you. Or which screenshot.
0
 
gheistCommented:
I dont enjoy looking at your screenshots that much

Open php.exe you tried to run
Then look which php5ts.dll it loads
Check if:
it does not load same dll from two places
dll and php version matches
are you sure you are calling right php.exe ? maybe you call other with php5ts in current directory.
0
 
rgb192Author Commented:
using windows explorer
(???should i have used dependency.exe?????)

C:\Program Files (x86)\NuSphere\PhpED\php54\php.exe

I opened php.exe as administrator

command line window opens
but dialog box

5 times
php.exe entry point not found
the procedure entry point php_checkuid could not be located in the dynamic link library php5ts.dll

I press okay 5 times

php.exe entry point not found
the procedure entry point php_end_ob_buffer could not be located in the dynamic link library php5ts.dll

same  2 times
php.exe entry point not found
the procedure entry point php_checkuid could not be located in the dynamic link library php5ts.dll

1 time
php.exe system error
the program can't start because php_mbstring.dll is missing from your computer. Try reinstalling the program to fix this problem.


I can type into the command window but there is no folder location next to cursor and cursor goes to next line when enter is pressed
0
 
gheistCommented:
open the file with depends.exe and check which php5ts.dll it will load...
0
 
rgb192Author Commented:
dependency-full-file-path

c:\program files (x86)\nusphere\phped\php54\PHP5TS.DLL
0
 
gheistCommented:
php.exe entry point not found
the procedure entry point php_checkuid could not be located in the dynamic link library php5ts.dll

I press okay 5 times

php.exe entry point not found
the procedure entry point php_end_ob_buffer could not be located in the dynamic link library php5ts.dll
This essentially means that you are loading modules of different build of PHP (e.g shipped with PHP distribution or zend)
0
 
rgb192Author Commented:
after changing c:/php5 to c:/php5-BREAK
and reinstaling nusphere phped

php.exe can run
but
just a black screen with white letters



dependency-now-php-exe-runs-but-I-can-not-enter-input.JPG

dependency-now-php-exe-runs-but-I-can-not-enter-input
0
 
gheistCommented:
Does the same happen when you run it from cmd.exe?
0
 
rgb192Author Commented:
I can run command.exe

I see prompt and can type in white words in black screen and when I press enter command is run and I see white word results of command



but when I run php.exe output is similar to notepad, when I press enter there is a carriage return to next line


how can I run php from cmd.exe
0
 
gheistCommented:
php.exe ;)
0
 
rgb192Author Commented:
php.exe run from cmd.exe

output is similar to notepad, when I press enter there is a carriage return to next line
0
 
gheistCommented:
try php-cli.exe then, actually php.exe should be detecting right if it should run php-cli or php-win, yours does not, so contact the NuSphere...
0
 
rgb192Author Commented:
typing either php-cli.exe or php-win.exe
0
 
gheistCommented:
Ask nusphere to supplement their distribution you with php-cli, it's absence means you cannot get php command line via php.exe as sold by nusphere.
You can still use php.net distribution that has php-cli in place.
0
 
rgb192Author Commented:
I asked nusphere.

I uninstalled all versions of php and have only nusphere php

and here is the newest depends.exe screenshot.
only using nusphere php
0
 
gheistCommented:
dependency walker is of value if it dies from wrong library symbols.
does now php.exe run in cmd window?
the one from php.net does...
0
 
rgb192Author Commented:
so it works from cmd.exe window


thanks.
0
 
gheistCommented:
If you want to run multiple php.exe-s just make sure none of them is in the PATH directories. For example HP server homepage was installing their own PHP and adding to systems' path so that no-one could run standard PHP
0
 
rgb192Author Commented:
Thanks for hp example.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 14
  • 14
Tackle projects and never again get stuck behind a technical roadblock.
Join Now