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
get executed properly on linux machine.
Please help.
Last edited by pludi; 03-18-2010 at 09:37 AM..
Reason: code tags, please...
... from your command line (save server, user ID, as web server) and post the output.
Thanks.
I have added rsa-key in 10.180.8.231 therefore it is not asking me any password .
Please find the output.
However I didnt get what you want to say about saving server,user ID as web server.
[root@OFSMUW-VMGR-51 html]# ssh -ttq 10.180.8.231 ls -ltr
total 22692
-rw-r--r-- 1 root root 604553 Dec 25 09:08 ovs-agent-2.3-27.noarch.rpm
-rw-r--r-- 1 root root 2576 Jan 19 00:02 install.log.syslog
-rw-r--r-- 1 root root 14061 Jan 19 00:02 install.log
-rw------- 1 root root 1265 Jan 19 00:02 anaconda-ks.cfg
---------- Post updated at 11:46 PM ---------- Previous update was at 11:03 PM ----------
I think i need to give bash script execution permission to apache? correct me if i m wrong.
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)
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)