Avatar of Bruce Gust
Bruce Gust
Flag for United States of America asked on

How to Insert a File Using Text Editor

I'm using Vagrant, which, because it's a self contained OS, requires me to make some changes to the php.ini file using a Text Editor.

I say, "Text Editor," though I'm not really sure what the difference is between "Command Prompt," "Shell," and "Command Prompt." I do know that there are different commands in "Command Prompt" than the Cygdrive tool I'm using, but I can't tell you why or what the difference is.

I'm installing PDFlib (https://www.pdflib.com/). I've got it working on my WAMP server so I know that I have to:

add a line to php.ini file
add the php_pdflib.dll to my extension_dir
add the PDFLib.php file to the PHP

I'm figuring out the VI dynamic, as far as adding text to the php.ini file, but how to you add a file?

Right now when I list the files I see in the file referenced as the extension_dir, I see this:

so files
I'm a little concerned that I don't see any .dll files. Still, I know from past experience this is where the php_pdflib.dll file goes. How do I move it using a Command Line dynamic?

Thanks!
PHPUnix OS

Avatar of undefined
Last Comment
Bruce Gust

8/22/2022 - Mon
Bruce Gust

ASKER
Just to add a little clarification on the last part of the question: When I look in my WAMP extension directory, I see nothing but .dll files. I don't know if the abundance and exclusivity of the .so files are unique to Vagrant, but I thought it worth mentioning in case someone saw that as a red flag.
SOLUTION
Dave Baldwin

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Dave Baldwin

PDFLib is available for many operating systems other than Windows.
https://www.pdflib.com/download/pdflib-family/pdflib/
ASKER CERTIFIED SOLUTION
Julian Hansen

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Ray Paseur

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Bruce Gust

ASKER
Guys! As always, thank you so much. One of the reasons I'm such an advocate for EE is the fact that you're not just getting the "what," but also the "why."

Dave and Julian - I will get the necessary SO files. I know exactly what you're talking about, but I completely overlooked the fact that Vagrant is going to be a Linux dynamic which changes a number of things.

Ray - anytime you make a recommendation, I'm always taking notes, even if your suggestion doesn't translate to something I can use right then and there. I've got to stick with Vagrant, just because that's the work environment that I've been asked to work in as per my job situation. Wanted to make sure you had some context so when I didn't respond by taking your suggestion in this instance, you knew why.

One thing continues to allude me, however: I'm using a "Shell" to boot Vagrant up and it's through this same Shell that I can see the php.ini file. I can't access is using Windows Explorer because it's a part of the Virtual Machine environment. I can edit the php.ini file using a VI interface, but how do I copy and paste files into a VM dynamic if the only way I can access it is through the Shell?

Also, I want to clarify some things as far as a Text Editor, the Command Prompt and the Shell. If you're so inclined, please see: https://www.experts-exchange.com/questions/28979903/What's-the-Difference-Between-a-VI-the-Command-Prompt-and-a-Shell.html

Thanks!
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
SOLUTION
Dave Baldwin

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Julian Hansen

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Bruce Gust

ASKER
Gentlemen, I'm going to go ahead and wrap this question up. While I've not completely solved this dilemma, I'm pretty certain that I can upload what I need to the appropriate directory using my terminal application. Should I run into any more difficulties, rest assured you'll see another question on EE.

Thanks!