Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
INI Entries
Name: poiuz123 Date: February 22, 2004 at 03:19:48 Pacific OS: Linux Suse 8.2 CPU/Ram: 225 Mhz
Name: 3Dave Date: February 23, 2004 at 08:59:04 Pacific
Reply:
Not quite sure what you are trying to do... Sounds like all you need to do is to edit a text file (/etc/php.ini) which you can do with any text editor, you shouldn't need a script for that.
0
Response Number 2
Name: poiuz123 Date: February 25, 2004 at 01:30:59 Pacific
Reply:
Well - i'm trying to write a kind of setup program - like a small shell script for my web application - so i can run it on a new linux machine - and i have working server - you know ...
0
Response Number 3
Name: 3Dave Date: February 25, 2004 at 03:24:03 Pacific
Reply:
OK...I think I follow you now. If you know exactly what you want to change, try the sed command (Stream EDitor). The syntax is: $ sed 's/find/replace/g' file.txt This outputs to stdout, if you wwant to output to a file: $ sed 's/find/replace/g' infile.txt > outfile.txt
Your script might be something like: #!/bin/bash
sed 's/register_globals=Off/register_globals=On/g' /etc/php.ini > /tmp/php.ini.new
mv /tmp/php.ini.new /etc/php.ini
I'm not much of a bash scripter (usually use perl myself), there may be a better way....
0
Response Number 4
Name: poiuz123 Date: February 25, 2004 at 13:08:44 Pacific
Summary: < SNIP > could it be that i may have to change something in the boot.ini < /SNIP > I think you hit the nail on the head. I am unsure about windoze but pretty sure that all you need to do is to...
Summary: Sorry to disappoint you but you won't find boot.ini in windows 98. Windows 9x sees itself as the only OS on the system and doesn't like working together with other operating systems. So therefore it d...
Summary: Hi, I've actually had a friend who's done that a couple of days ago. Haven't had a chance to install XP yet, but I do remember encountering this problem while installing Win2000 professional. Try ed...