473,320 Members | 1,946 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

directing the output of exec function

28
Hello there,

I am using a code in which i send a variable to a webpage and want to redirect the output to an array.I am using the following code:
Expand|Select|Wrap|Line Numbers
  1.  
  2.   exec("http:page address?id =".$rmt_string,$rmt_array);
  3.  
  4.  
Now if iam trying to access the variable "$rmt_array" there's nothing inside the array from which i assume that the above command is not executed.Can somebody help in how to do this.

Thanks in advance,
Shara.
Oct 12 '07 #1
1 1172
pbmods
5,821 Expert 4TB
Heya, Shara.

exec() is used to execute system commands. You want include() instead.
Oct 12 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Begoña | last post by:
in my java application I've made a call to this stored procedure CREATE procedure pruebaICM @pANI varchar(20), @pTABLA varchar(20), @pInsert varchar(500), @pUpdate varchar(1000), @pFLAG...
5
by: Jay Chan | last post by:
I am trying to use a command line program to run a stored procedure that generates output in a comma-delimitted format. Somehow, ISQL or OSQL always wrap the lines at 256 characters. I believe this...
3
by: foldface | last post by:
Hi I have a dynamically constructed sql query that I want to execute, e.g. exec('select * from ' + @tablename) (1) Can I suppress the output somehow if this returns no values? (2) Can I use the...
2
by: DonMiche | last post by:
I'm having trouble producing an xml output from another xml file using xsl. The proper values are output to the browser as text with no formating or xml tags (<rowset> and <row>). Any ideas? ...
6
by: rey | last post by:
Hello, I need to produce with T-SQL a user defined function or stored procedure that make one SLQ-Statement and prepare as string from the result set. The request muss be able to return a very...
3
by: James Brett | last post by:
Hi I've got this function that executes a stored procedure. One of the parameters is an output parameter but for some reason it always returns 0. Any clues? Cheers James
18
by: utab | last post by:
Dear all, I am making a system call to the well known Gnuplot with system("gnuplot"); gnuplot opens if I only supply this command but I would like to pipe that command line in my C++...
3
by: seven.reeds | last post by:
Hi, I am running php v 5.0.0 on a redhat box. I have a php script in a file called p_script_1. I have another small script in file p_script_2. p_script_1 calles p_script_2 through a system()...
1
by: ryanmhuc | last post by:
I am running PHP 5.1.6 (cli) on Linux. When i use the exec($cmd, $output, $return) command the $output array is always blank if the command had an error in it. There are only values if the command...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.