473,385 Members | 1,597 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Why does this php symbol come up instead of what's in the php file?

12
Im trying to make a seperate include php file for my navbar but for some reason it's not working. Instead their is this weird yellow php symbol. It looks like a little yellow shield with white letters that say php. I don't know whats wrong.


Expand|Select|Wrap|Line Numbers
  1.  <table width="100%" border="0" cellpadding="0" cellspacing="0" id="reportslist">
  2.     <tr>
  3.       <td width="14%" valign="top" bgcolor="#FFFFFF"><p>&bull;Categories &bull;</p>
  4.         <p>&nbsp;
  5.           <?php include("include_sidenav.php");?>
  6.         </p></td>
  7.       <td width="86%" valign="top"><div align="center">
  8.           <table width="700px" border="0" cellspacing="0" cellpadding="5">
  9.             <tr>
  10.               <td bgcolor="#FFFFFF"><p align="left" style="font-size:12px; font:Arial, Helvetica, sans-serif; font-style:italic; padding:10px;">Welcome to Natural Food Reports!! Here, we offer free reports on a variety of natural food prodcuts. Information has been gather from all across the web from organic food databases to local farmers to the regular person just looking to eat healthier. So feel free to browse our reports down below or if you know exactly what you're looking for, click on <a href="reports.php" class="bluelinks">Reports</a> to see a list of all our reports. Happy Eating!!! </p></td>
  11.             </tr>
  12.           </table>
  13.  
  14.  
HERES WHAT IN THE PHP FILE IM REFERRING TO

Expand|Select|Wrap|Line Numbers
  1. <link href="root/index style/index.css" rel="stylesheet" type="text/css">
  2. <div><p><a href="http://www.naturalfoodreport.com/healthandsuperfoods.php" class="BIGBLUELINKS"> &bull;Health & Superfoods</a></div>
  3. <div><p><a href="http://www.NaturalFoodReports.com/herbsandspices.php" class="BIGBLUELINKS">&bull;Herbs & Spices</a></p></div>
  4. <div><p><a href="http://www.NaturalFoodReports.com/supplements.php" class="BIGBLUELINKS">&bull;Supplements</a></p></div>
  5. <div><p><a href="http://www.NaturalFoodReports.com/cleanses.php" class="BIGBLUELINKS">&bull;Cleanses</a></p></div>
  6. <div><p><a href="http://www.NaturalFoodReports.com/sustainable.php" class="BIGBLUELINKS" >&bull;Sustainable</a></p></div>
  7. <div><p><a href="http://www.NaturalFoodReports.com/aromatherapy.php" class="BIGBLUELINKS">&bull;Aromatherapy</a></p></div>
  8.  
Sep 30 '10 #1

✓ answered by kovik

No, that's not the issue.

I'm pretty sure the issue here is that the OP is looking at this in Dreamweaver. Dreamweaver's preview is NOT a valid look at the final outcome of your pages. View your pages in a real browser, instead.

As a side note, I'd recommend weening yourself off of Dreamweaver. Using it encourages inefficient code.

7 1819
code green
1,726 Expert 1GB
Do the files with a .php suffix have opening and closing php tags?
Is the first saved as a php file?
Why are you calling the second a php file when there is only HTML?

Never met the yelow shield but sounds like file is not being parsed
Sep 30 '10 #2
tx9271
12
it's saved as a .php file but I don't have any php tags in the php file. where should i put them?
Sep 30 '10 #3
code green
1,726 Expert 1GB
opening the file - <?php
closing the file - ?>
Oct 1 '10 #4
tx9271
12
like this?

Expand|Select|Wrap|Line Numbers
  1. <?php
  2. <link href="root/index style/index.css" rel="stylesheet" type="text/css">
  3. <div><p><a href="http://www.naturalfoodreport.com/healthandsuperfoods.php" class="BIGBLUELINKS"> &bull;Health & Superfoods</a></div>
  4. <div><p><a href="http://www.NaturalFoodReports.com/herbsandspices.php" class="BIGBLUELINKS">&bull;Herbs & Spices</a></p></div>
  5. <div><p><a href="http://www.NaturalFoodReports.com/supplements.php" class="BIGBLUELINKS">&bull;Supplements</a></p></div>
  6. <div><p><a href="http://www.NaturalFoodReports.com/cleanses.php" class="BIGBLUELINKS">&bull;Cleanses</a></p></div>
  7. <div><p><a href="http://www.NaturalFoodReports.com/sustainable.php" class="BIGBLUELINKS" >&bull;Sustainable</a></p></div>
  8. <div><p><a href="http://www.NaturalFoodReports.com/aromatherapy.php" class="BIGBLUELINKS">&bull;Aromatherapy</a></p></div>
  9. ?>
  10.  
  11.  
Oct 1 '10 #5
kovik
1,044 Expert 1GB
No, that's not the issue.

I'm pretty sure the issue here is that the OP is looking at this in Dreamweaver. Dreamweaver's preview is NOT a valid look at the final outcome of your pages. View your pages in a real browser, instead.

As a side note, I'd recommend weening yourself off of Dreamweaver. Using it encourages inefficient code.
Oct 4 '10 #6
tx9271
12
what should I use instead?
Oct 4 '10 #7
kovik
1,044 Expert 1GB
I'm an advocate of clean, simple, efficient applications that serve a specific purpose. Dreamweaver is a product that tries to be too many products at once.

I recommend:
  1. Notepad++ for writing code,
  2. FileZilla for FTP communication with the server, and
  3. Your browser for viewing the results.
  4. Also, it's a good idea to have an installation of Apache, MySQL, and PHP on your PC in order to test code before uploading it. You can get a user-friendly package of these from http://www.wampserver.com/en/ for Windows PCs.
Oct 4 '10 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Kevin | last post by:
I use debug->"Start without debugging", I get the following message on the browser window. What log file is it talking about? Server Application Unavailable The web application you are...
3
by: Dirk Reske | last post by:
Hello, I've tried to convert a MP3 file to WAVE using the Audio Copression Manager. my Destination format is: WAVE_FORMAT_PCM All works fine what a file Type do I get then? When I try to open...
4
by: ted.j.conway | last post by:
Seems like it should be so simple, but how does one play a .wav file and then another upon its completion (and a third after that and...), WITHOUT using HTML+TIME? Any code examples - IE and/or...
5
by: thi | last post by:
Hi, Just curious what does the @ system means in c#. Some of the sample codes i read it written as: bool bExists = File.Exists(@"c:\\hello.txt"); but i can get the same result as using ...
5
by: LKavitha4 | last post by:
hi, Please tell me what header file is used for sleep ( ) function in linux c++. Thank you.
1
by: dr | last post by:
does anyone see what is wrong with my .gif download logic? no matter what image url i try it downloads a junk file that can't be opened in any paint program. System.Net.WebRequest myRequest =...
13
by: Anonymous | last post by:
On MS site: http://msdn2.microsoft.com/en-us/library/esew7y1w(VS.80).aspx is the following garbled rambling: "You can avoid exporting classes by defining a DLL that defines a class with...
1
by: cliu | last post by:
My problem happens in my c# Windows ce 5.0 project. I am trying to open a serial port on a Symbol HHT by using CECreateFileW function of platform invoke from the coredll.dll as follows: ...
1
by: nar0122 | last post by:
Program received signal SIGSEGV, Segmentation fault. 0x0000000000402580 in writeBit (f=0x0, b=0) at binary1.cpp:26 26 putc(b + '0', f->file); Information: writeBit function is as follows: ...
9
by: jeddiki | last post by:
Hi, I am running ZipArchive on a downloaded zipped file and I am getting An Error No. 19. My log gives this output: This is the script I am running:
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.