Solved

can not use bat files in this pear

Posted on 2014-03-10
28
331 Views
Last Modified: 2014-03-23
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
Comment
Question by:rgb192
  • 14
  • 14
28 Comments
 
LVL 61

Expert Comment

by:gheist
ID: 39919610
you have multiple versions of PHP in you %path%
you must exclude wrong ones to make good one work
0
 

Author Comment

by:rgb192
ID: 39920692
%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
 
LVL 61

Expert Comment

by:gheist
ID: 39920831
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
 

Author Comment

by:rgb192
ID: 39920988
%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
 
LVL 61

Expert Comment

by:gheist
ID: 39921002
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
 

Author Comment

by:rgb192
ID: 39925117
%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
 
LVL 61

Expert Comment

by:gheist
ID: 39925195
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
 

Author Comment

by:rgb192
ID: 39928186
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
 
LVL 61

Expert Comment

by:gheist
ID: 39928502
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
 

Author Comment

by:rgb192
ID: 39930773
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
 
LVL 61

Expert Comment

by:gheist
ID: 39931114
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
 

Author Comment

by:rgb192
ID: 39932903
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
 
LVL 61

Expert Comment

by:gheist
ID: 39933575
open the file with depends.exe and check which php5ts.dll it will load...
0
 

Author Comment

by:rgb192
ID: 39934807
dependency-full-file-path

c:\program files (x86)\nusphere\phped\php54\PHP5TS.DLL
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 61

Expert Comment

by:gheist
ID: 39935270
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
 

Author Comment

by:rgb192
ID: 39935973
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
 
LVL 61

Expert Comment

by:gheist
ID: 39936169
Does the same happen when you run it from cmd.exe?
0
 

Author Comment

by:rgb192
ID: 39937270
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
 
LVL 61

Expert Comment

by:gheist
ID: 39937719
php.exe ;)
0
 

Author Comment

by:rgb192
ID: 39940104
php.exe run from cmd.exe

output is similar to notepad, when I press enter there is a carriage return to next line
0
 
LVL 61

Expert Comment

by:gheist
ID: 39940380
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
 

Author Comment

by:rgb192
ID: 39941188
typing either php-cli.exe or php-win.exe
0
 
LVL 61

Expert Comment

by:gheist
ID: 39941629
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
 

Author Comment

by:rgb192
ID: 39946127
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
 
LVL 61

Accepted Solution

by:
gheist earned 500 total points
ID: 39946258
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
 

Author Closing Comment

by:rgb192
ID: 39946757
so it works from cmd.exe window


thanks.
0
 
LVL 61

Expert Comment

by:gheist
ID: 39947120
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
 

Author Comment

by:rgb192
ID: 39949099
Thanks for hp example.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now