Sponsored Content
Full Discussion: Call xargv in php
Top Forums Shell Programming and Scripting Call xargv in php Post 303034701 by Neo on Thursday 2nd of May 2019 11:44:46 PM
Old 05-03-2019
Seems a bit strange and "messy" to me to use a shell script to call a PHP file in a loop.

The first think I would do is to make it a 100% PHP script and move the loop into your PHP program and read the command line arguments using PHP.

That is a cleaner way to program.
This User Gave Thanks to Neo For This Post:
 

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

how to differentiate system call from library call

Hi, Ho do I differentiate system call from library call? for example if I am using chmod , how do I find out if it is a system call or library call? Thanks Muru (2 Replies)
Discussion started by: muru
2 Replies

2. Shell Programming and Scripting

Call shell script from php not run ?

Hi. I write a shell script for import data to oracle using sql loader. I set permission 755 or 777 for that script. I can run that script in the consol okay. When I call it from PHP using system command. I got return value 126 this value when don't have permission right ? I check step... (2 Replies)
Discussion started by: raccsdl
2 Replies

3. Programming

c system call

How the c compiler differentiates the system calls and function calls? (1 Reply)
Discussion started by: rangaswamy
1 Replies

4. Infrastructure Monitoring

diffrence between method call and function call in perl

Hello, I have a problem with package and name space. require "/Mehran/DSGateEngineLib/general.pl"; use strict; sub System_Status_Main_Service_Status_Intrusion_Prevention { my %idpstatus; my @result; &General_ReadHash("/var/dsg/idp/settings",\%idpstatus); #print... (4 Replies)
Discussion started by: Zaxon
4 Replies

5. UNIX for Dummies Questions & Answers

Why do I need to call make if I call gcc ?

Why do I need to call make if I call gcc ? I thought gcc already compiles the sources. thanks (1 Reply)
Discussion started by: aneuryzma
1 Replies

6. Programming

need help with system call

hi everyone i wrote a system call and compiled the kernel succesfully... my system call is in a file in the kernel folder named my_syscall1.c (kernel/my_syscall1.c) the header file for this system call i added it in the folder include like this include/my_syscall1/my_syscall1.h my problem is... (2 Replies)
Discussion started by: demis87
2 Replies

7. UNIX for Advanced & Expert Users

Using PHP , call a sql inside a unix script

I am running the xampp on WINDOWS, and my php script is connecting to a unix script on a different server (ssh2_connect("11.31.138.56", 22). I am running the unix script and inside this script I am calling the .sql file . The SQL is connecting to oracle db on the unix server. But the sqlplus... (2 Replies)
Discussion started by: madfox
2 Replies

8. Shell Programming and Scripting

Shell script run in a case statement call to run a php file, also Perl

Linux System having all Perl, Python, PHP (and Ruby) installed From a Shell script, can call a Perl, Python, PHP (or Ruby ?) file eg eg a Shell script run in a case statement call to run a php file, also Perl or/and Python file??? Like #!/usr/bin/bash .... .... case $INPUT_STRING... (1 Reply)
Discussion started by: hoyanet
1 Replies
MSSQL_SELECT_DB(3)														MSSQL_SELECT_DB(3)

mssql_select_db - Select MS SQL database

SYNOPSIS
bool mssql_select_db (string $database_name, [resource $link_identifier]) DESCRIPTION
mssql_select_db(3) sets the current active database on the server that's associated with the specified link identifier. Every subsequent call to mssql_query(3) will be made on the active database. PARAMETERS
o $database_name - The database name. To escape the name of a database that contains spaces, hyphens ("-"), or any other exceptional characters, the database name must be enclosed in brackets, as is shown in the example, below. This technique must also be applied when selecting a database name that is also a reserved word (such as primary). o $link_identifier - A MS SQL link identifier, returned by mssql_connect(3) or mssql_pconnect(3). If no link identifier is specified, the last opened link is assumed. If no link is open, the function will try to establish a link as if mssql_connect(3) was called, and use it. RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 mssql_select_db(3) example <?php // Create a link to MSSQL $link = mssql_connect('KALLESPCSQLEXPRESS', 'sa', 'phpfi'); // Select the database 'php' mssql_select_db('php', $link); ?> Example #2 Escaping the database name with square brackets <?php // Create a link to MSSQL $link = mssql_connect('KALLESPCSQLEXPRESS', 'sa', 'phpfi'); // Select the database 'my.database-name' mssql_select_db('[my.database-name]', $link); ?> SEE ALSO
mssql_connect(3), mssql_pconnect(3), mssql_query(3). PHP Documentation Group MSSQL_SELECT_DB(3)
All times are GMT -4. The time now is 05:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy