Go Back   Computer Forums > Web Design | Website Development > Web Programming
Click Here to Login
Join Computer forums Today

Thread Tools Search this Thread Display Modes
Old 01-10-2007, 01:01 AM   #1
Beta Member
Join Date: Jan 2007
Posts: 5
Default html php code problem

Hi i'm trying to run a program on my server (nmap) and i want it to display the infomation on a web page. I have php installed, do i need something else.
This is what i have copyed

<?xml version="1.0" encoding="US-ASCII"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
<title>Your information</title>
<link rel="stylesheet" title="Default style" type="text/css" href="base.css" />
<style type="text/css">
pre {
border: solid thin black;
<?php flush();
$ip = getenv("REMOTE_ADDR");
<?$nmap = shell_exec("nmap -O"); ?>
<?php print($nmap);?>

This only displays a rectangle box becasue of the <pre> but it doesn't display the nmap data.
Thank you
crimp is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

All times are GMT -5. The time now is 09:59 PM.

Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0