Need some help

This is a discussion on "Need some help" within the PHP Forum section. This forum, and the thread "Need some help are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 11th, 2007, 10:00
Junior Member
Join Date: Feb 2007
Location: West Sussex, UK
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Need some help

I am in a bit of a panic here, cos I usually design on my Sony Vaio, but it's recently decided to die on me, and I think I've lost all my files.

The websites are all online so they are 'safe' so to speak, but the problem is this...

I downloaded them, all of which are .php, from my ftp manager (a freeware one) and none of my php include codes are working.

I've got the header, navigation bar, footer, etc, all as seperate files, but when I put this:

<?php
include ("header.php")
?>

Like i usually do, but the page is just coming up as white with plain text, etc. It's a real pain in the arse cos I have a website with 100 odd pages and I really don't want to have to make them all again

Is the downloading of the page adding something to the code that I'm unaware of? The only obvious difference is that all the lines of code are double-line spaced for some reason.
Reply With Quote

  #2 (permalink)  
Old Feb 11th, 2007, 14:02
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Need some help

Could we have a link and maybe some more code?
Reply With Quote
  #3 (permalink)  
Old Feb 11th, 2007, 14:10
Weird1993's Avatar
Moderator
Join Date: Feb 2007
Location: United States
Age: 15
Posts: 80
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Weird1993 Send a message via Skype™ to Weird1993
Re: Need some help

I know that there are companies that will recover information from your dead hard drive, but you pay by the Gigabyte. If you really want them back, you may want to consider this.
__________________
Daniel Thompson
danielwthompson.com
Reply With Quote
  #4 (permalink)  
Old Feb 11th, 2007, 15:34
Junior Member
Join Date: Feb 2007
Location: West Sussex, UK
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Need some help

Sure the link is www.joannaeyre.co.uk/ssm

It's not finished yet, the stupid computer died halfway through making it!

I want to be able to put the header, navigation bar, and footer onto seperate pages with the include code I put above, which is what I usually do.

I had to download the files onto this other laptop so I could work on it, but the code doesn't seem to work anymore.

When I've finished burning this disk I'll print screen a picture of what comes up insted... I'm on the slowest laptop in the world which struggled to even open Dreamweaver, let alone use it lol.
Reply With Quote
  #5 (permalink)  
Old Feb 12th, 2007, 02:16
Reputable Member
Join Date: Jul 2005
Location: Melksham, Wilts, UK
Posts: 293
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Need some help

Quote:
Originally Posted by RobinMarek View Post
Is the downloading of the page adding something to the code that I'm unaware of? The only obvious difference is that all the lines of code are double-line spaced for some reason.
It sounds like you've got mixed up between ASCII and BINARY transfers within FTP. Typically, you should use ASCII mode if you're transferring text files and BINARY if you're transferring - well - binary files like images.

I'm not sure if that's your whole problem, though ... it could be that you've got other extensions being added (an extra .txt on the end of a file name), or that your text contains some absolute paths that leaves things out of place in the new system unless you position things identically
Reply With Quote
  #6 (permalink)  
Old Feb 14th, 2007, 12:59
Junior Member
Join Date: Feb 2007
Location: West Sussex, UK
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Need some help

Ahhh. Well I suppose it doesn't matter either way as both my computers are down so I have nothing to work on now!

Hopefully a technician can sort both out and I can get the original files back.

What a pain!
Reply With Quote
Reply

Tags
php include code

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 18:46.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43