Weird Behavior

Started on the old forum in January 2008 · view the original in the archive · old links redirect here

6 replies · 423 views · started 18 years ago · 1 min read

3 participants
mcKeny Developer · 130 posts #1

hey i have a site on 100webspace where i test my script it have being running ok untill i see this on every file i try accessing

hosting | web hosting | 
dating | report abuse | links 

webhosting | WebMaster 
Sales Resources | website 
hosting |  free web hosting 
| hosting | OpenHost 

Meet People - Make 
Money! 

Online Multi-Matchmaking 
community where you 
get paid to build 
relationships. 

Mobile SMS Marketing 

Reach your customers at 
any time & place Market 
on a one-to-one basis. 

Free Web Space  +  Free 
PHP Scripts 

Free php, mysql & perl 
web hosting. 29  Free PHP 
scripts with 1-click 
installations. 

52

thats how the error message use to display but there aint no error and beside its on every file it happen to me once and i change subdomain and it works fine anyone can help

R.M.C

PHP Adovocate B)

mcKeny Developer · 130 posts #3

i solve it already mate its cos i include the data.php and the connect.php at the top before i state <wml> but it use to work CODE<?php /script writen by mc_keny mckeny3@gmail.com/

header("Content-type: text/vnd.wap.wml"); header("Cache-Control: no-store, no-cache, must-revalidate"); echo("<?xml version=\"1.0\"?>"); echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">"; ?>

<?php echo "<wml>"; include("connect.php"); include("data.php"); $ac = $_GET["ac"]; $who = $_GET["who"]; $tid = $_GET["tid"]; if(!linkdb()) { echo error_msg(db); } if(!signin($tid)) { echo error_msg(signin); } $nick = callnick_tid($tid); echo cardhead("$chnick@ Jam vibes"); echo date("D d h:i a").$s; switch("$ac")

R.M.C

PHP Adovocate B)

mcKeny Developer · 130 posts #4

i solve it already mate its cos i include the data.php and the connect.php at the top before i state <wml> but it use to work CODE<?php /script writen by mc_keny mckeny3@gmail.com/

header("Content-type: text/vnd.wap.wml"); header("Cache-Control: no-store, no-cache, must-revalidate"); echo("<?xml version=\"1.0\"?>"); echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">"; ?>

<?php echo "<wml>"; include("connect.php"); include("data.php"); $ac = $_GET["ac"]; $who = $_GET["who"]; $tid = $_GET["tid"]; if(!linkdb()) { echo error_msg(db); } if(!signin($tid)) { echo error_msg(signin); } $nick = callnick_tid($tid); echo cardhead("$chnick@ Jam vibes"); echo date("D d h:i a").$s; switch("$ac")

R.M.C

PHP Adovocate B)

wizard Senior · 493 posts #5

i solve it already mate its cos i include the data.php and the connect.php at the top before i state <wml> but it use to work CODE

<?php /*script writen by mc_keny [mckeny3@gmail.com](mailto:mckeny3@gmail.com)*/ header("Content-type: text/vnd.wap.wml"); header("Cache-Control: no-store, no-cache, must-revalidate"); echo("<?xml version=\"1.0\"?>");

echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">"; ?>

<?php echo "<wml>"; include("connect.php"); include("data.php"); $ac = $_GET["ac"]; $who = $_GET["who"]; $tid = $_GET["tid"]; if(!linkdb()) { echo error_msg(db); } if(!signin($tid)) { echo error_msg(signin); } $nick = callnick_tid($tid); echo cardhead("$chnick@ Jam vibes"); echo date("D d h:i a").$s; switch("$ac") may i c d link to that site
mcKeny Developer · 130 posts #6

send me a message and il reply with the link... i haven't finish writing the script as yet mate,hey i was reading up a on the php class and object in php 5 but cant seem to catch it can you show me a simple eg

class test{
function a()
{
$coder = "mc_keny";
echo $this -> $coder;
}
}

am stuck

CODE define( mc_keny , Gangsta) echo mc_keny; out put= mc_keny

R.M.C

PHP Adovocate B)

wizard Senior · 493 posts #7

here is a blank page

<?php

/* index.php */

define('WCS',true);

require_once('Body.class.php');
$Body = new Body;

$Body->header();
$Body->start_page();
$Body->pghead('Hello World');
$Body->p_open('center');
$Body->add_text('Hello World. welcome :P');
$Body->p_close();
$Body->pgfoot();

?>
<?php

/* Body.class.php */

if(!defined('WCS'))
{
    die('Hacking attempt');
}

class Body {

        public function header()
        {
                header("Content-type: application/xhtml+xml; charset=UTF-8");
                header("Cache-Control: no-store, no-cache, must-revalidate");
        }

        public function start_page()
        {

                echo '<?xml version="1.0" encoding="UTF-8"?>';
        echo "\n";
        echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
        echo "\n";
        }

        public function pghead( $title )
        {

                echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >';
        echo "\n";
        echo '<head>';
        echo "\n";
        echo '<title>'.$title.'</title>';
        echo "\n";
        echo '<style type="text/css">';
        echo "\n";
        echo '
    body {
        font-family: Arial, Helvetica, sans-serif;
        font-size: small;
    }

    a, a:active, a:visited, a:hover {
        color: #FF0000;
    }

    h3 {
        background-color: #FF0000;
        color: #FFFFFF;
    }
    hr {
        color: #FF0000;
    }';
        echo "\n";
        echo '</style>';
        echo "\n";
        echo '</head>';
        echo "\n";
        echo '<body>';
        echo "\n";
        }

        public function pgfoot()
        {
                echo '</body>';
        echo "\n";
        echo '</html>';
        }

    public function p_open( $align='left' )
    {

                echo '<p align="'.$align.'">';
        echo "\n";

    }

    public function p_close()
    {

                echo '</p>';
        echo "\n";
    }

    public function add_text( $text )
    {
                echo ''.$text.'';
    }

    public function do_br( $n = 1 )
    {
        echo str_repeat( '
' , $n );
            echo "\n";
    }
}

?>

Sign in to reply.

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close