Jul 27, 2008

Garbage Text - when i added php includes to a page

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > PHP Programming

free web hosting

Garbage Text - when i added php includes to a page

round
When i added php included to a page, it produced this really really weird garbage text befor and after the table i have on the page. I was wondering if this has ever happened to anyone else. Not sure what's producing the gargabe, i mean it's only a couple of characters, and i've gone through everything and can't find anything. The other thing is that i can, and have gotten rid of it by getting rid of the text befor the php include code which isn't a solution becasue i want to keep the meta's and title on the page.
this is what the garbage looks like


thanks for the help. round

Reply

palladin
Meybe you print variable not declared before. In this case server can assign random memory offset for keeping this variable. But if they not declared/assigned before they hold this what server got on memory adress before.


Reply

round
thanks for the help. I finally figured out what was going on. For some reason it, the server, didn't like the file format. Not sure how it got changed but when i just copied the includes and files into a file that was working everything just disappeard. Strange but true. round.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : garbage, text, added, php, includes, page

  1. Redirecting Visitors To Different Page
    Explains two methods. (0)
  2. Naming Web Page Files
    Which way you like- MyPage.html or my-page.html or my_page.html (7)
    Everybody talks about meta tags, keywords, good title names and how they can increase page rankings,
    etc. But I was wondering whether the page name itself holds any value in indexing. Yes, I am
    talking about the web page file names (some-thing.html) NOT the one which you put in title tags. I
    am going to express my views and want to know what you think is correct. I have seen pages named in
    various ways like these: 1) my_web_page.html 2) DoYouLikeMyPage.html 3) hey-see-my-webpage.html (I
    think this way is more appropriate) 4) this.is.a.page.html (somewhat confusing) ....
  3. PHP Function To Add Previous and Next Page Feature
    useful php function (0)
    CODE <?php function navigationbar($start_number = 0, $items_per_page = 50,
    $count) {    // Creates a navigation bar    $current_page =
    $_SERVER["PHP_SELF"];     if (($start_number < 0) ||
    (! is_numeric($start_number))) {         $start_number = 0;     }
        $navbar = "";     $prev_navbar = "";     $next_navbar =
    "";     if ($count > $items_per_page) {         $nav_count = 0;
            $pag....
  4. Need Help To Increase The Page Rank Of Website!
    (2)
    Hi everybody, I am dealing in online business and looking for some tips to increase the page rank of
    my website. In this I need some helps from you people. Please suggest me some tips so that I can get
    good traffic to my website and get more benefits. Your any suggestion will be highly appreciated.
    Thanks in advance! ....
  5. Text Editors Vs Word Processors
    (1)
    There are many differences between text editor and a word processor. One of those differences is
    that most text editors are universal in editing any text based documents, while word processors can
    only edit certain types of files like Open Office. So, because of that universal editing more text
    editors are very basic and so they carry few commands, such as copy and paste and being able to save
    the document. While word processors have hundreds of commands and come with many other features
    such as templates, thesaurus, spell checker etc etc. So with all those features....
  6. Adding Flash Music Player To Home/any Page
    How-to (put any song you want!!!) (4)
    Want to put music on all pages (near the top)? Want any song you want? Well heres how! Place the
    following IN PLACE of the tag (paste in while thats highlighted. The text in red you HAVE to
    replace with the song url. The text in green is OPTIONAL (whether you want it to autostart or not.
    Right now it doesnt, if you want it to replace no with yes.) Of course place this in Admin
    Cp>>>Skinning and Styles>>>Board Wrappers>>>Header and Body QUOTE REPLACE THIS
    WITH YOUR SONG URL &autoStart= no " /> src="http://www.podbean.com/podcast-au....
  7. Page Load Error When Accessing Cpanel
    (0)
    Not sure what the issue is. I cannot even load up any of the cpanel's to allow me to put in a
    password. I have tried the link that is located in the Credit System 2.0 I have tried the links
    with subdomain/cpanel I have tried the links with subdomain:2082 All 3 of these just give page
    load errors. Please note : This isn't a "my password doesn't work" thread. This is a "I
    can't even get cpanel to TRY to load" thread. Thanks in advance.....
  8. How Do I Get Rid Of The Placeholder Page? [resolved]
    (5)
    QUOTE Great Success ! Apache is working on your cPanel® and WHM™ Server If you can
    see this page, then the people who manage this server have installed cPanel and WebHost Manager
    (WHM) which use the Apache Web server software and the Apache Interface to OpenSSL (mod_ssl)
    successfully. They now have to add content to this directory and replace this placeholder page, or
    else point the server at their real content. ATTENTION! If you are seeing this page instead of
    the site you expected, please contact the administrator of the site involved. (Try sending ....
  9. Text Based Rpg Game Maker
    (3)
    Well I need one, if you can help please do...I would like it so I can have people play online.....
  10. How To Make An Item Scroll With You On The Page.
    (9)
    ok im not sure where or how to really ask this... but you can find an example at
    http://www.demonoid.com the ad that is on the right side scrolls with you basically to the bottom
    of the page. I know they use an iframe but can you show me how that works or what makes it do that?
    i tried to copy the source and css but it did not work.. any advice?....
  11. Text Size Problem
    (6)
    Ok i have a skin for an ipb board that im working on, and there is just one problem left with the
    skin and that is that when you view it in Internet explore, the text comes out looking so small you
    cant read it. but it looks fine in every other browser. Any body no what might cause this and how i
    could fix it? if you need to see the css code just let me know and i will post it. Thanks....
  12. What Is Your Home Or Start Page?
    (14)
    I've had Yahoo! as my start page for many years. I'm wondering if there's a better
    start page out there. I remember using Excite several years ago, but their home page now looks
    outdated. Do you design your own start pages? If so, what's on it?....
  13. Any Advice From Experts?
    wrapping text around pictures. (3)
    I was wondering if someone could help me. I know that when you mix text with pictures, when you use
    the "align" feature, the text will wrap around the picture, eg. when you want text to the left to
    wrap around a picture on the right, you just add 'align="right"' to the picture and vice
    cersa for text and pictures on the opposite side. However, it becomes totally different when you
    want 2 pictures, one underneath the other, or when you want a caption text underneath the
    picture(s), in which case the wrapping and formatting completely disappears. it is of course po....
  14. Text Based Game
    (5)
    Is it possible to make a Text Based game with only HTML and some PHP for chat? I dunno any
    languages besides HTML. =.= yeah Im a newbie.....
  15. Create Page?
    How? (11)
    Hi, everyone! I need to create a script just within a page. Read the following story: I have
    an account at one of file sharing hosts. I am tired of every time log in and tell others what I have
    at it (files). If there is way to create a script that logs in me and just list the files i have
    on this account from specified folder. If you know, let me know as usual.....
  16. How To Use Command Prompt As A Text Editor
    (6)
    In this tutorial, I will show you how you can use Command Prompt to create text files. It is very
    simple and you can also use it to write output from a command into a text file. This can be
    particularly useful when you need documentation from a DOS program in a text file when you use the
    help command or something similar. In order to do this you simply use this DOS command. echo
    Text >> test.txt This will create a new text file called test and echo the contents into it. If
    we wanted to write a 2 line document, we could do something like: echo Hello >> test.txt e....
  17. What Program Do You Use To Design Your Web?
    Frontpage, Dreamweaver, a good text editor? (82)
    I personaly choose frontpage because its easy to use but.....I use dreamweaver for PHP.....
  18. Create A Google Seach Result Page Embed Within Your Site Page.
    (12)
    Create a google seach result page embed within your site page. It is easier to create
    web page that embeded the google search result in it. The first step is to go to google apply an
    account for the google ad-sense. After that login to you account and choose the create ad-seach
    option. Most of time the google search box give all we have the great and powerfull seach ability.
    But, have you think every time users get seach with it. They do redirected to another page that is
    not within you site. It is easier to create web page that embeded the google sea....
  19. Adding Shine To Text
    images say "Tiger Ads", but, the board is clsed, so, i'm r (1)
    OK, in this tut, I am going to show you how to add shine to any text. For this example I will be
    using the TigerAds affiliate button. (the board is since closed so, I'm not really advertising
    /tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" />) OK then,
    lets get started! 1. Open up the image that you will be using, this is mine: 2.
    Now that your image is open and making sure that its the .psd so you can edit the text on it. In
    your layers menu, hold down CTRL and click on the text layer so that only the te....
  20. Error Code In Subscriptions Page
    problems subscribing to topics (5)
    I'm seeing some weird warning message show up at the top of my page when I go into "my
    controls," then load my topic subscriptions page. At the top of the page, the following code appears
    several times: IPB WARNING in_array() : Wrong datatype for second argument (Line: 2711 of
    /sources/action_public/usercp.php) I'm guessing maybe that has something to do with the fact
    I'm having problems subscribing to my topics and posts? Thanks in advance for your help.....
  21. Qupis : Free Hosting With Php, Mysql, Cpanel. (one Line Text Ad At Bottom)
    a member of Xisto (41)
    Hello Members, We are proud to introduce a new member to Xisto group of sites.
    Qupis : Free Web Hosting 150 MB space, 5000 MB Bandwidth, php,
    mysql, CPanel (Latest). Emails, FTP, Addon domains, Parked Domains etc.
    http://www.Qupis.com
    Feel free to add your reviews and comments about it. -Trap17
    Management ....
  22. Flatfile User Login/signup
    Uses text files only (compatable with forums and message system) (24)
    With this tutorial, you will learn how to create a textfile login script. This user membership
    script is for use also with my forums and message system scripts. I will also give you the scripts
    to make it so that people can change their profiles. Ok, The first thing we need to do is make the
    database. To do this, create a blank text file called 'userdata.txt' , make sure it is ALL
    LOWER-CASE. Edit this file and put
    '**username|##|password|##|email|##|rank|##|userid|##|name|##|picture**'. This will not be
    used, however it will give you an idea of how the....
  23. Scrolling Images?
    How to Make an Image Scroll With the Page (5)
    I'm trying to make my homepage look a little fancier and I've got a nice background image,
    but I want it to scroll with my page, like if you scroll down the image will still appear like it
    does on the top of the page. Can someone tell me how to do this? I'm using Microsoft Frontpage
    to edit it. I'm not sure what programming language this would be, probably CSS or Javascript,
    but I can edit the page script with Notepad or something to make this work. Right now the page is
    purely HTML, so whichever language this is, can somebody also give me the tags and ma....
  24. Wap Source Code Viewer
    Mobile/wap source code viewer page (4)
    This is a source code viewer that will workl on wap/mobile sites but you can easily convert it to
    work on web im sure ;-) CODE <? header("Content-Type:
    text/vnd.wap.wml"); echo '<?xml version="1.0"
    encoding="utf-8"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
    "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <head><meta
    http-equiv="Cache-Control" content="no-cache"
    forua="true"/></head> <card title="s60.nerds.....
  25. Refresh Page After Back Button Hit
    (11)
    Hi. I have a page that is dynamically build through DOM manipulation. So, when I browse outside the
    page, and then click back, those dynamically created DOM objects are gone. Since I am also using JSP
    / Servlet technology, I can rebuild this page easily, which I have done. Here is my dilemma. If
    the user leaves the dynamic page, then clicks back on their browser, I need the page they are going
    back to to refresh. I can't figure out how to do this. I've tried using the META tag, but it
    won't do it. Help would be appreciated. Thanks. ....
  26. Open Php Page From Another Server
    If a server does not support php (7)
    If web server does not have .php support and I want to put a guestbook or something similar (no
    database), and there is no support for other server side scripting, what should I do? I would not
    like frames on my page, but - is there a possibility to put .php page from another site into layer
    on my webpage at the no-php-site? Does layer support (or any other html command, excluding frames)
    page including from another server? Also, does anybody have a solution for this any other way? How
    to make a guestbook without php, perl, other scripting languages? Or, how control (r....
  27. The Best And Free Website/html Editors + Text Editors
    A good collection! Check it out. (48)
    Here they are, the best html editors. Just pick one because they are all free, or choose one of the
    ones i most recommend. WebCore Designer 2005 http://www.mpsoftware.dk/webcoredesigner.php
    HTMLGate Free http://www.mpsoftware.dk/htmlgate.php Ma Page Web http://www.aldweb.com
    MAX's HTML Beauty++ 2004 http://www.htmlbeauty.com WebWorks http://w1.213.telia.com
    PageBuilder HTML Editor http://www.tafweb.com Website Mentor http://www.dark-street.com
    Cascade DTP http://www.price-media.demon.co.uk BPlainPro http://home5.swipnet.se/~w-52253/hy....
  28. Refresh Web Page
    (6)
    Well this questioned wasnt answered in 2003 but hopefully somebody knows the answer, sorry if this
    is a simple question but can i force the web browser to refresh the page after pressing the submit
    button. Basically my cgi perl form copies a different jpeg with teh same name into my public_html
    folder every time the form is submitted, therefore i have to click on the refresh button in IE to
    see the different picture. I have tried Code: but it doesnt seem to work in IE6 ....
  29. Php Unique Hit Counter
    Count page hits with php. (28)
    Hello all, Here is a neat and helpful PHP script that can count unique page views on your website.
    First you need to open up a new page in your text editor and paste in this code. CODE <?php
    $filename = "hits.txt"; $file = file($filename); $file =
    array_unique($file); $hits = count($file); echo $hits; $fd
    = fopen ($filename , "r"); $fstring = fread ($fd , filesize
    ($filename)); fclose($fd); $fd = fopen ($f....
  30. Dreamweaver Or Front Page Or Other?
    which's more professional & user-friendly (108)
    Dreamweaver is founded by Macromedia and Front page is founded by Microsoft. Both are used for
    creating websites. Personally, I am using Dreamweaver MX, it is very user friendly and have great
    support towards other Macromedia softwares like Flash and Fireworks. How about you, what kind of
    software do you use to build your web?....

    1. Looking for garbage, text, added, php, includes, page

Searching Video's for garbage, text, added, php, includes, page
Similar
Redirecting
Visitors To
Different
Page -
Explains two
methods.
Naming Web
Page Files -
Which way
you like-
MyPage.html
or
my-page.html
or
my_page.html
PHP Function
To Add
Previous and
Next Page
Feature -
useful php
function
Need Help To
Increase The
Page Rank Of
Website!
Text Editors
Vs Word
Processors
Adding Flash
Music Player
To Home/any
Page -
How-to (put
any song you
want!
3;!)
Page Load
Error When
Accessing
Cpanel
How Do I Get
Rid Of The
Placeholder
Page?
[resolved]
Text Based
Rpg Game
Maker
How To Make
An Item
Scroll With
You On The
Page.
Text Size
Problem
What Is Your
Home Or
Start Page?
Any Advice
From
Experts? -
wrapping
text around
pictures.
Text Based
Game
Create Page?
- How?
How To Use
Command
Prompt As A
Text Editor
What Program
Do You Use
To Design
Your Web? -
Frontpage,
Dreamweaver,
a good text
editor?
Create A
Google Seach
Result Page
Embed Within
Your Site
Page.
Adding Shine
To Text -
images say
"Tiger
Ads",
but, the
board is
clsed, so,
i'm r
Error Code
In
Subscription
s Page -
problems
subscribing
to topics
Qupis : Free
Hosting With
Php, Mysql,
Cpanel. (one
Line Text Ad
At Bottom) -
a member of
Xisto
Flatfile
User
Login/signup
- Uses text
files only
(compatable
with forums
and message
system)
Scrolling
Images? -
How to Make
an Image
Scroll With
the Page
Wap Source
Code Viewer
- Mobile/wap
source code
viewer page
Refresh Page
After Back
Button Hit
Open Php
Page From
Another
Server - If
a server
does not
support php
The Best And
Free
Website/html
Editors +
Text Editors
- A good
collection&#
33; Check it
out.
Refresh Web
Page
Php Unique
Hit Counter
- Count page
hits with
php.
Dreamweaver
Or Front
Page Or
Other? -
which's
more
professional
&
user-friendl
y
advertisement



Garbage Text - when i added php includes to a page



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE