11-20-2011
The first is for when you want to use PHP from the command line, the second is for when you wish to use PHP in a browser.
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Actually, I'm going to be setting up my new hard drive to boot 3-4 OSes...so far I'm definite on Windows 2000 Advanced Server and FreeBSD 4.4, and I'm stuck between RedHat 7.2 and Mandrake 8.1 for my Linux choice...anyways....
I'm gonna be using boot.ini as the boot loader thing. I've already... (3 Replies)
Discussion started by: DownSouthMoe
3 Replies
2. Shell Programming and Scripting
Hi,
I have a sample data file that contains name-value pairs in it.
For example:
name1=value1
name2=value2
name3=value3
...
...
...
My concern is
1. How to get values of name1, name2, name3 using korn shell script?
2. I don't want to access each varible using $name1,$name2, $name3... (2 Replies)
Discussion started by: vinna
2 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I want to access MS SQL Server database through Informatica which is an ETL tool installed on sun solaris Unix operating system. For me to access the MS SQL Server i studied that i need to update the odbc.ini file on Unix box. Could you please let me know how and where i can access this file... (1 Reply)
Discussion started by: Ariean
1 Replies
4. Web Development
I can't use mysql .How should i config the file of php.ini . the message:
Fatal error: Call to undefined function mysql_errno() in /var/www/html/inc/dv_clssql.php on line 129
how should i do? please help me (2 Replies)
Discussion started by: fang_xiaoan
2 Replies
5. UNIX for Dummies Questions & Answers
I have a working directory on a server with over 100 INI files. For the most part, they are configured the same way. Each line will contain 1 or none variables listed from the first character in the line such as VariableName=0.
Unfortunately there are comments everywhere using the... (4 Replies)
Discussion started by: hindesite
4 Replies
6. Shell Programming and Scripting
Hi there, my english is not the best but i try to tell what i want.
i want a Shell Script with this i can creat a Shoutcast Stream and stop, start and restart it. I have found this Script:
http://serversupportforum.de/forum/sonstige-serverdienste/10602-shoutcast-server-init-script.html
When i... (1 Reply)
Discussion started by: Cannon
1 Replies
7. Shell Programming and Scripting
hi people,
i'm having a hard time trying to extract a list of vars delimited by section inside a ini file ...
let's consider this ini file :
; config file
DESC = "channel synchro TGG01"
DMM_VER = DMM23
PATH_FIFO = /users/tgg00/fifo
QRT = BTS01.TGG.01.2
MODE_TRACE... (5 Replies)
Discussion started by: odium74
5 Replies
8. UNIX for Dummies Questions & Answers
I am looking to write a script that will read the php.ini files on my web host. If the two lines do exist do nothing. If not append two lines to the end of it then move on to the next directory and open the next php.ini file.
I have the beginning of one that was given to me on another web site but... (6 Replies)
Discussion started by: Larrykh465
6 Replies
LEARN ABOUT PHP
set_magic_quotes_runtime
SET_MAGIC_QUOTES_RUNTIME(3) 1 SET_MAGIC_QUOTES_RUNTIME(3)
set_magic_quotes_runtime - Sets the current active configuration setting of magic_quotes_runtime
SYNOPSIS
bool set_magic_quotes_runtime (bool $new_setting)
DESCRIPTION
Set the current active configuration setting of magic_quotes_runtime.
Warning
This function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 7.0.0.
ERRORS
/EXCEPTIONS
Since PHP 5.3 this function has been deprecated and will raise an E_DEPRECATED warning upon execution. Since PHP 5.4 this function will
also raise an E_CORE_ERROR on trying to enable magic quotes.
PARAMETERS
o $new_setting
- FALSE for off, TRUE for on.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
set_magic_quotes_runtime(3) example
<?php
// Create a temporary file pointer
$fp = tmpfile();
// Write some data to the pointer
fwrite($fp, ''PHP' is a Recursive acronym');
// Without magic_quotes_runtime
rewind($fp);
set_magic_quotes_runtime(false);
echo 'Without magic_quotes_runtime: ' . fread($fp, 64), PHP_EOL;
// With magic_quotes_runtime
rewind($fp);
set_magic_quotes_runtime(true);
echo 'With magic_quotes_runtime: ' . fread($fp, 64), PHP_EOL;
// Clean up
fclose($fp);
?>
The above example will output:
Without magic_quotes_runtime: 'PHP' is a Recursive acronym
With magic_quotes_runtime: 'PHP' is a Recursive acronym
SEE ALSO
get_magic_quotes_gpc(3), get_magic_quotes_runtime(3).
PHP Documentation Group SET_MAGIC_QUOTES_RUNTIME(3)