Sponsored Content
Top Forums Programming Linux and Php integration help . Post 302405239 by pinga123 on Thursday 18th of March 2010 07:52:46 AM
Old 03-18-2010
Linux and Php integration help .

I m devoloping a website which communicate with Linux server .
Whenever a page is loaded it runs one script on Linux server.

My problem is a simple commands like date , ls runs very smoothly. But whenever i execute big script.It wont display the output.

My knowledge of PHP is very less i m using simple echo command to run the script and display the output.

My php file:
Working Program:
PHP Code:
<html>
<head><title>This is my page</title></head>
<body>
This is the content of my page.
<?php
print "Do you like it?";
?>
<?php
echo `date`;
?>
</body></html>
Output:
Quote:
This is the content of my page. Do you like it?Thu Mar 18 15:02:36 IST 2010
When i modify my php file as
PHP Code:
<html>
<head><title>This is my page</title></head>

<body>
This is the content of my page.
<?php
print "Do you like it?";
?>
<?php
echo `ssh -ttq 10.180.8.231 ls -ltr`;
?>
</body>
</html>
Output:
Quote:
This is the content of my page. Do you like it?
However the command
Code:
ssh -ttq 10.180.8.231 ls -ltr

get executed properly on linux machine.

Please help.

Last edited by pludi; 03-18-2010 at 09:37 AM.. Reason: code tags, please...
 

2 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Continous Integration for Unix / Linux

Hi all, We have serious problem with continuous integration system for application building on few different platforms. (aix 5.2, 5.3 solaris 8,9 , SUSE Linux 9.3, 10 , Slackware Linux 10,11,12, RedHAt Enterprise Linux и Windows 2003) We need application ( program ) to do the following tasks:... (1 Reply)
Discussion started by: +Yan
1 Replies

2. Shell Programming and Scripting

Problem with PHP and Mysql integration

Hi Experts, I am a beginner of PHP and trying to create a tutorial database. My web interface takes a value and inserts into table very correctly. But when I refresh the same interface, it inserts the same value again and again. My code is below: <?php $con =... (2 Replies)
Discussion started by: naw_deepak
2 Replies
BOOTPC(8)						      Debian GNU/Linux Manual							 BOOTPC(8)

NAME
bootpc - bootp client SYNOPSIS
bootpc [--bootfile file] [--dev device] [--verbose] [--debug] [--server addr] [--hwaddr addr] [--returniffail] [--waitformore length] [--in2host addr] [--serverbcast] [--help] DESCRIPTION
This manual page documents briefly the bootpc command. This manual page was written for the Debian GNU/Linux distribution (but may be used by others), because the original program does not have a manual page. bootpc is a boot protocol client used to grab the machine's IP address, set up DNS nameservers and other useful information. OPTIONS
--bootfile file Tell the server to use file as the boot file. --dev device Use device to communicate with the server. --verbose Be verbose. --debug Produce debugging output. --server addr Use the IP address addr to communicate with the server. --hwaddr addr Use addr as our hardware address rather than what the operating system gives us. --returniffail Terminate the program if a failure occurs. By default bootpc will ask the user to press a key if the request did not succeed. --waitformore length Wait for more responses when one is received. bootpc will wait for at most length seconds. This is probably only useful for debug- ging. --in2host addr Takes an address and returns useful bits of the name after lookup, this was a separate program, but it is more compact to have both together. --serverbcast Tell the server to send back a broadcast reply. This is necessary on Linux 2.1 and 2.2. --help Display the usage of bootpc. AUTHOR
This manual page was written by Herbert Xu <herbert@debian.org>, for the Debian GNU/Linux system (but may be used by others). BOOTPC
1999 March 21st BOOTPC(8)
All times are GMT -4. The time now is 01:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy