Jump to content

HenryC

Members
  • Posts

    30
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

HenryC's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Yeah here is the code for index.php <?php session_start(); include("header.php"); // check if user logged in if (isset($_SESSION['logged'])){ header("Location: home.php"); exit(); } $filename = "pageviewsindex.txt"; $count= file($filename); $count[0]++; $file = fopen ($filename, "w"); fputs($file, "$count[0]"); fclose($file); include("connect.php"); $sql = mysql_query("SELECT * FROM subscribers"); $count = mysql_num_rows($sql); include 'counter/counter.php'; ?> <div class="content"> <!--start banner--> <div class="banner"> <div class="join_free"></div> <div id="slider" class="nivoSlider"> <img src="images/1.jpg" alt="" /> <img src="images/2.jpg" alt="" /> <img src="images/3.jpg" alt="" /> <img src="images/4.jpg" alt="" /> </div> <script type="text/javascript" src="js/jquery.nivo.slider.pack.js"></script> <script type="text/javascript"> $(window).load(function() { $('#slider').nivoSlider(); }); </script> </div><!--end banner--> <!--start left side--> <div class="left_side"> <div class="gray_box">What is Tubeviews</div> <div class="blue_pic"></div> <div class="txt_what"> Tubeviews is a website that helps you gain more publicity on Youtube. With our automated systems you can gain thousands of Subscribers and Views.. You earn credits by subscribing to other members and viewing other members videos, those credits will then convert to subscribers/views for you. Our services are 100% free, all you have to do is signup, link your account and begin earning credits. </div><!--end txt what--> </div><!--end left side--> <div class="line_pic"></div> <!--start right side--> <div class="right_side"> <div class="title_right">Tubeviews News</div> <div class="txt_says"> <li>Brand New Look</li> <li>Sub4sub section bug fixed</li> <li>Add Friends System Added</li> <li>Channel Views System Added</li> </div> <div class="txt_says"> We have had <u><?php echo $count; ?></u> subs to date </div> <br> </div><!--end right side--> <div class="note">Website Launched June 6, Please Be Patient While We Get More Members, We Have The Potential To Get You Thousands Of Subs, Views </div> </div><!--end content--> <?php include("footer.php"); ?> Header and footer are ok too. It started when i added the facebook like button, but i dont know how its possible for something to modify my pages without editing my code.
  2. The only file i placed the facebook code was index.php and i have checked there and its not there, but looking at the souce code it is there, how is this even possible?
  3. I added the facebook like button to my website, and now i have ads covering my pages and taking over my ebsite content, i removed the like button but the ads are still there tubeviews.co.nr is this something in the html that is causing this?
  4. <?php $sql = mysql_query("SELECT teamplayer FROM tbl_name WHERE teamname = 'Man u'"); echo '<select name="players">'; while($row = mysql_fetch_array($sql)){ $player = $row['teamplayer']; ?> <option value="<?php echo $player; ?>"><?php echo $player; ?></option> <?php } ?> </select>
  5. I don't use functions to often but i want to clean up my code to make less bandwidth and load so i have been making some, what i am stuck at is say i want a function to hold querys <?php function query() { $sql = mysql_query("SELECT * FROM users"); $row = mysql_fetch_assoc($sql); } ?> How do i execute that when i need it? the usual query(); doesnt seem to work with it, neither does return;
  6. Wow Well i have already transfered my site back to a free host just now untill i can get a refund, the free host peforms better than the paid host lol
  7. Look up on mod_rewrite there is some good topics on here about it.
  8. My site has only been up for over a week now so no, also its not bandwidth thats the problem i was told its CPU.
  9. Well i don't have much money to buy a better host just yet, there first package that is $19.99, would that cover a lot of hits per 5 minutes do you think?
  10. I'm using hosting24.com, when i first transferd my site only me and my staff new the new address, within 5 minutes the site was down to CPU, the live chat said its becuase i recived over 600 hits %20 CPU within 5 minutes and they only allow 600 in 5 minutes, they said it might be becuase i am using a chatroom which is the phpfreechat script, but even when i took that off and replaced with a forums i was still getting it, my site allows the user to sub to 30 people an hour so if 20 users do that within 5 minutes it will go down, thats pretty bad if you ask me. I mainly code in PHP and have done through the years so i don't have much knowledge in ajax or so.. Also does it realy matter how low mysql bandwidth i use if it will still count as a hit anyway? Also hosting24 have unlimited space and bandwidth.
  11. As you may have seen by previous post's i own a sub4sub website for a community of people, the way i have it set up is users click on other members sub button to gain points and recieve subs and everytime they click the button it refreshes the page so more people can show up by the results query, every refresh counts as a hit and i am having trouble with my host because im getting to many hits, i am just wondering is this the way to do it correctly? or could i maybe use something like ajax where i dont have to refresh the page which means it wont count as a hit and stop it using up too much CPU.
  12. still keeps the .co.nr domain in the address bar
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.