php compile build title - build

I have googled many times using various key phrases to know how can I set phpinfo() build title. Attached image can be explain better]1
I have changed Configuration File (php.ini) Path Loaded Configuration File Scan this dir for additional .ini files but couldn't change the top title.
Any suggestion/help?
Thanks for reading..

Related

Info.plist added but Xcode still crashing

I'm setting up a project utilizing OpenCV and Xcode and I want to open up the webcam using VideoCapture. I have added my own Info.plist file (as a command-line project in C++ doesn't have an Info.plist) and I have added it to the project under targets/general/identity. My info.plist is verified as OK from the command "plutil Info.plist".
I also have the "Pre-Process Info.plist" tag under "Packaging" changed to "yes". However, I still get this error:
"This app has crashed because it attempted to access privacy-sensitive
data without a usage description. The app's Info.plist must contain
an NSCameraUsageDescription key with a string value explaining to the
user how the app uses this data."
I have tried many StackOverFlow links and they have all failed, including this one: Accessing webcam in Xcode with OpenCV (C++)
If I don't add the Info.plist file to finder (the link at the bottom of the link), I get the same error.
When I add it to finder along with the executable, I get this error along with the previous error:
"There was an error parsing the Info.plist for the bundle at URL"
Please let me know how I can fix this. Thank you so much for your time.
You need to have some text (Usage Description) in Info.plist for key "NSCameraUsageDescription". Otherwise, the app will crash when app access Camera. Please see the snapshot below.
Hope it helps. Otherwise, please let us know.

Creation of the virtual directory failed with error: cannot write configuration file applicationhost.config

I'm just simply trying to open up a VS 2017 project. When I open the solution, I get the following error message:
Creation of the virtual directory http://localhost:58051/failed with the error: Filename: \?\C:\Users\Visual Studio 2017\Projects\Testing\Version 2.0.vs\config\applicationhost.config Error: Cannot write configuration file
I've checked the folders along the file path and they are not encrypted. All the folders along the file path have a black box for the Read Only attribute. When I go to the config folder and clear out the black box for the Read Only attribute and Apply the setting, I find if I exit and go back to the same folder, the black box reappears for the Read Only attribute. I've read that the black box doesn't really mean the Read Only attribute has been turned on. If the Read Only attribute was actually turned on, I should expect to see a check mark instead. However, this doesn't explain why I can't open the solution.
After I click the OK Button to the VS Error message, VS just says the solution is "(unavailable)" in the Solution Explorer.
Any help would be greatly appreciated.
I too had this problem with my project files located on OneDrive. The way I resolved it was I renamed the applicationhost.config file located in the ".vs\config" directory of your root project directory then reloaded the web project. This will create a new applicationhost.config file.
I had the same error message sharing a project between 2 machines via OneDrive and fixed it as follows:
1 - Closed VS.Net
2 - Opened [myappnamefolder].vs\config\applicationhost.config in Notepad
3 - Searched the open file for the filename in my error message (In your case C:\Users\Visual Studio 2017\Projects\Testing\Version 2.0.vs\config\applicationhost.config ).
It was found under system.applicationHost, sites, site name, application path, virtualDirectory - physicalPath
4 - Amended the physicalPath value to point to the valid path of the project's config file as above.
5 - Saved the applicationhost.config file
My paths were different because I had different home user directories on each machine. (User A & User B)
I have resolved this error with this way mention as below:
STEP 1:
Go to on that path
C:\Users\navz\OneDrive\Documents\IISExpress\config
STEP2:
When you reach on this folder "config"
in this folder we can see "applicationhost" file
STEP3:
Close the Visual studio existing project and delete the applicationhost file(see on Step 2 path)
Then open the existing project again, it will be reloaded automatically and work properly.
Had same problem then looked into vs\config\applicationhost.config and it was encrypted. I unencrypted file and solution loaded with no problems.
I've had this problem several times using VS 2017 with Onedrive. Resolved it by renaming the application.config and having VS recreate it. Just as well could have edited line in the file. See the Diff below as an example.
The config file is located in something like C:\Code\MyProject\.vs\config\.
I just encountered this error. I followed the steps in this answer: https://stackoverflow.com/a/50508207/1166163
When I tried to save my changes I realised TFS had marked the file as read-only, preventing VS from updating the value. Removing the read-only attribute fixed the problem.
None of the above worked for me. I ended up deleting and recloning the repo that was giving me problems. It then opened up just fine.
Windows 10 Defender was causing this for me. When I disabled control folder access it worked again. Odd, because it had been working with that setting on for a while.
my drives were different - but the main codebase was shared between the two machines - so on one it was in the d drive - so i mapped the parent subdirectory on the second machine to be the d drive ... which resulted in the same paths then on both ... i just had to open the solution from the d drive on the second machine

Cant open html resource file using ifstream::open - Visual Studio 2013

I am working on a project which requires me to open an HTML file and use its contents. I added it to Resource files but when I try to open it lie this:
std::ifstream templateFile;
templateFile.open("filename.html", std::ifstream::in);
The operation fails. I checked it by using templateFile.fail().
The above operation works when I provide the full path. The file lies in the project folder along with other files. I tried setting build action to content but still it doesnt work. Please Help.
Output directory, where your executable is compiled and put into differs from the source directory, where you create all your .cpp/.hpp files (I assume there is filename.html file). Local path filename.html is supposed to be local for your executable file, not the source file.
Read more about changing the output directory here: https://msdn.microsoft.com/en-us/library/ms165410.aspx
Under Configuration Properties / Debugging, see what your Working Directory is using the macros dialog box. Move your file into this folder.
Click the button shown in the figure. There, click either Edit or Browse. Browse will take you to the working directory. Edit will expose the link to open the macros box

Eclipse CDT MinGW path variables

My Eclipse didn't show any console outputs.
I tested the ".exe" in the debug file of my C++ project, with wich i received an error that "libgcc_s_dw2-1.dll" was missing.
I read abit on this and i found that i could simply copy/paste that file from my c:/MinGW/bin folder to the ".exe" in the "/debug" folder of my project.
That helped me with that error but i then received the message that "libstdc++-6.dll" was missing, so i did the same again.
Now The ".exe" works fine and I get an output in my eclipse.
But now i'm afraid that i will get simillar erro's at my next build if i use some what more complex programming.
I also think that it would be very timeconsuming if i have to add those files too all of my future projects.
Question:
So my question now isn't there a way to tell eclpise that those .dll files are at "c:/MinGW/bin"?
PS.
I suspect that a similar question already exists but I wouldn't have a clue on what tags I'd have to search for.
Speacial thanks to #Deniz !
right click on "my computer" => properties .
on the right select "Advanced system settings".
open "Enviormentvariables"
search for "path"
select Edit
you'll have a list of paths, hit "end" on your keyboard to make sure you are at the end of this list.
then add ";" to close the previous path and add the path to your MinGW/bin location. (by default C:\MinGW\bin).
result in adding ";C:\MinGW\bin"

Open pdf,txt,doc,jpg etc files in a popup using jQuery and coldfusion

I am working on a small project and I have a file links to download from server. However, instead of downloading the file I want them open in fixed size pop up. I tried facebox but facebox(http://defunkt.io/facebox/) fail to display pdf files and other text files. any one have any idea what I suppose to do in order to accomplish this task.
Thanks you