Weird Behavior

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Weird Behavior

    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
    Code:
    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)

    #2
    think your perm is on 777

    Click here!!!

    Comment


      #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 <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><?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")
      </div>

      R.M.C
      ----------
      PHP Adovocate B)

      Comment


        #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 <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><?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")
        </div>

        R.M.C
        ----------
        PHP Adovocate B)

        Comment


          #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 <div class='codetop'>CODE
          <div class='codemain' style='height:200px;white-space:pre;overflow:auto'><?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")
          </div>[/b][/quote]

          may i c d link to that site

          Comment


            #6
            send me a message and il reply with the link... i haven&#39;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
            Code:
            class test{
            function a()
            {
            $coder = "mc_keny";
            echo $this -> $coder;
            }
            }
            am stuck
            -------
            <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>
            define( mc_keny , Gangsta)
            echo mc_keny;
            out put= mc_keny
            </div>

            R.M.C
            ----------
            PHP Adovocate B)

            Comment


              #7
              here is a blank page
              Code:
              <?php
              
              /* index.php */
              
              define(&#39;WCS&#39;,true);
              
              require_once(&#39;Body.class.php&#39;);
              $Body = new Body;
              
              $Body->header();
              $Body->start_page();
              $Body->pghead(&#39;Hello World&#39;);
              $Body->p_open(&#39;center&#39;);
              $Body->add_text(&#39;Hello World. welcome :P&#39;);
              $Body->p_close();
              $Body->pgfoot();
              
              ?>
              Code:
              <?php
              
              /* Body.class.php */
              
              if(!defined(&#39;WCS&#39;))
              {
                  die(&#39;Hacking attempt&#39;);
              }
              
              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 &#39;<?xml version="1.0" encoding="UTF-8"?>&#39;;
                      echo "\n";
                      echo &#39;<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">&#39;;
                      echo "\n";
                      }
              
                      public function pghead( $title )
                      {
              
                              echo &#39;<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >&#39;;
                      echo "\n";
                      echo &#39;<head>&#39;;
                      echo "\n";
                      echo &#39;<title>&#39;.$title.&#39;</title>&#39;;
                      echo "\n";
                      echo &#39;<style type="text/css">&#39;;
                      echo "\n";
                      echo &#39;
                  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;
                  }&#39;;
                      echo "\n";
                      echo &#39;</style>&#39;;
                      echo "\n";
                      echo &#39;</head>&#39;;
                      echo "\n";
                      echo &#39;<body>&#39;;
                      echo "\n";
                      }
              
                      public function pgfoot()
                      {
                              echo &#39;</body>&#39;;
                      echo "\n";
                      echo &#39;</html>&#39;;
                      }
              
              
              
                  public function p_open( $align=&#39;left&#39; )
                  {
              
                              echo &#39;<p align="&#39;.$align.&#39;">&#39;;
                      echo "\n";
              
                  }
              
                  public function p_close()
                  {
              
                              echo &#39;</p>&#39;;
                      echo "\n";
                  }
              
                  public function add_text( $text )
                  {
                              echo &#39;&#39;.$text.&#39;&#39;;
                  }
              
                  public function do_br( $n = 1 )
                  {
                      echo str_repeat( &#39;
              &#39; , $n );
                          echo "\n";
                  }
              }
              
              ?>

              Comment

              Working...
              X