Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 132,462 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,356 people online right now. Registration is fast and FREE... Join Now!




ummm error...

 
Reply to this topicStart new topic

ummm error...

iamcenz
post 31 Mar, 2005 - 11:30 AM
Post #1


You wish you were my hand!

Group Icon
Joined: 26 Mar, 2001
Posts: 2,385



Dream Kudos: 201
My Contributions


ok, i uploaded all the files to the test server, and it dont work, what i did was this. i make a HTML page, took the top part right before where the main content goes, like this.
CODE
<html>
<head>
<title>LandLine Communitcations Inc.</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="760" height="301" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
    <tr>
 <td height="84">
     <img src="images/mobile_01.jpg" width="229" height="84" alt=""></td>
 <td>
     <img src="images/about_light.jpg" width="101" height="84" alt=""></td>
 <td>
     <img src="images/phones_light.jpg" width="101" height="84" alt=""></td>
 <td>
     <img src="images/cabling_light.jpg" width="100" height="84" alt=""></td>
 <td>
     <img src="images/security_light.jpg" width="100" height="84" alt=""></td>
 <td>
     <img src="images/mobile_dark.jpg" width="102" height="84" alt=""></td>
 <td>
     <img src="images/mobile_07.jpg" width="27" height="84" alt=""></td>
    </tr>
    <tr>
 <td height="179" colspan="3">
     <img src="images/mobile_08.jpg" width="431" height="179" alt=""></td>
 <td colspan="4">
     <img src="images/mobile_09.jpg" width="329" height="179" alt=""></td>
    </tr>
    <tr valign="top">
 <td colspan="7"><table width="98%"  border="0" align="center" cellpadding="2" cellspacing="0">
         <tr>
           <td>

thats the top, yes i know its only half a webpage.
http://www.ask4technology.com/sites/landli...orking/top.html

then i took the bottom part which is this.
CODE
</td>
         </tr>
       </table></td>
 </tr>
</table>
</body>
</html>

thats the bottom
http://www.ask4technology.com/sites/landli...ing/bottom.html

now i have this as the page i want.
CODE
<? include('top.html'); ?>
<? include('/specs/siemens_ct66.txt'); ?>
<? include('bottom.html'); ?>


now in all theory this should work right? it should be the same if it was one page that looked like this:
CODE
<html>
<head>
<title>LandLine Communitcations Inc.</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="760" height="301" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
    <tr>
 <td height="84">
     <img src="images/mobile_01.jpg" width="229" height="84" alt=""></td>
 <td>
     <img src="images/about_light.jpg" width="101" height="84" alt=""></td>
 <td>
     <img src="images/phones_light.jpg" width="101" height="84" alt=""></td>
 <td>
     <img src="images/cabling_light.jpg" width="100" height="84" alt=""></td>
 <td>
     <img src="images/security_light.jpg" width="100" height="84" alt=""></td>
 <td>
     <img src="images/mobile_dark.jpg" width="102" height="84" alt=""></td>
 <td>
     <img src="images/mobile_07.jpg" width="27" height="84" alt=""></td>
    </tr>
    <tr>
 <td height="179" colspan="3">
     <img src="images/mobile_08.jpg" width="431" height="179" alt=""></td>
 <td colspan="4">
     <img src="images/mobile_09.jpg" width="329" height="179" alt=""></td>
    </tr>
    <tr valign="top">
 <td colspan="7"><table width="98%"  border="0" align="center" cellpadding="2" cellspacing="0">
         <tr>
           <td><? include('/specs/siemens_ct66'); ?></td>
         </tr>
       </table></td>
 </tr>
</table>
</body>
</html>

correct?
User is offlineProfile CardPM

Go to the top of the page

supersloth
post 31 Mar, 2005 - 11:32 AM
Post #2


serial frotteur

Group Icon
Joined: 21 Mar, 2001
Posts: 19,514



Thanked 11 times

Dream Kudos: 2147483647

Expert In: being gentlemanly

My Contributions


i havent worked with php in a while so cyberscribe might want to correct me but i think it might be that your including .html instead of .php

also is your main page a .php page? cause you can't do php includes from a .html i know that much.
User is online!Profile CardPM

Go to the top of the page

iamcenz
post 31 Mar, 2005 - 11:36 AM
Post #3


You wish you were my hand!

Group Icon
Joined: 26 Mar, 2001
Posts: 2,385



Dream Kudos: 201
My Contributions


yeah its a php file. the main page, ill try to make the .html files php. if that dont work, ill try to make them txt files.
User is offlineProfile CardPM

Go to the top of the page

iamcenz
post 31 Mar, 2005 - 11:52 AM
Post #4


You wish you were my hand!

Group Icon
Joined: 26 Mar, 2001
Posts: 2,385



Dream Kudos: 201
My Contributions


ok, i figured out the problem on the testing server, php isnt on it! so i loved it to my site. http://www.bluntedbynature.com/landline/mobile.php
now im getting this error.
QUOTE
Warning: main(): Unable to access /specs/cingular/siemens_ct66.txt in /home/virtual/site19/fst/var/www/html/landline/mobile.php on line 2

Warning: main(/specs/cingular/siemens_ct66.txt): failed to open stream: No such file or directory in /home/virtual/site19/fst/var/www/html/landline/mobile.php on line 2

Warning: main(): Unable to access /specs/cingular/siemens_ct66.txt in /home/virtual/site19/fst/var/www/html/landline/mobile.php on line 2

Warning: main(/specs/cingular/siemens_ct66.txt): failed to open stream: No such file or directory in /home/virtual/site19/fst/var/www/html/landline/mobile.php on line 2

Warning: main(): Failed opening '/specs/cingular/siemens_ct66.txt' for inclusion (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site19/fst/var/www/html/landline/mobile.php on line 2


but that file is there http://www.bluntedbynature.com/landline/sp...iemens_ct66.txt




ok... fixed it. i has to remove the '/' before specs. now its not being formatted properly, i can do a string replacement and replace /n to <br> right? thats would make it so thats it formats like this
Spec
Spec
Spec

instead of Spec Spec Spec

This post has been edited by iamcenz: 31 Mar, 2005 - 11:57 AM
User is offlineProfile CardPM

Go to the top of the page

cyberscribe
post 31 Mar, 2005 - 06:48 PM
Post #5


humble.genius

Group Icon
Joined: 5 May, 2002
Posts: 1,062



Thanked 2 times

Dream Kudos: 154
My Contributions


QUOTE(iamcenz @ Mar 31 2005, 12:52 PM)
i can do a string replacement and replace /n to <br> right?

Even better, you can use nl2br. smile.gif
User is offlineProfile CardPM

Go to the top of the page

iamcenz
post 1 Apr, 2005 - 07:39 AM
Post #6


You wish you were my hand!

Group Icon
Joined: 26 Mar, 2001
Posts: 2,385



Dream Kudos: 201
My Contributions


ok say i have a whole bunch of text from a txt file that i bring into MySQL. (just copy and paste into it via phpmyadmin) now i would do nl2br($specs); but will it still know the /n or no? im sorta new to all this, i did stuff like this like 4 years ago like 1 time and then havent tried it since, now i dont know what the hell im doing... sad.gif

This post has been edited by iamcenz: 1 Apr, 2005 - 07:39 AM
User is offlineProfile CardPM

Go to the top of the page

iamcenz
post 1 Apr, 2005 - 09:49 AM
Post #7


You wish you were my hand!

Group Icon
Joined: 26 Mar, 2001
Posts: 2,385



Dream Kudos: 201
My Contributions


im replying to myself alot... i got the nl2br() thing working. WORKS GREAT! now here is my next thing... 3 pages. the top thingy part/the main content part/ and the bottom. now i set up a style sheet. with this as a style:
CODE
.content {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:10px;
color:#000000;
}

in dreamweaver it shows that it changes font, but on the site its still 12px it changed from times to Verdana, but the size wont change... any ready why? could it be cause its an included page? im trying to do this to the middle page, the content page..

oh this is in both netscape (firefox 1.0.2 (the newest one) and IE6)

This post has been edited by iamcenz: 1 Apr, 2005 - 09:50 AM
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/22/08 01:11PM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month