Welcome to Dream.In.Code
Become a PHP Expert!

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




Deleted "echo" code

2 Pages V  1 2 >  
Reply to this topicStart new topic

Deleted "echo" code, Amateur deleted small code string

alyab
31 Mar, 2008 - 07:55 PM
Post #1

New D.I.C Head
*

Joined: 31 Mar, 2008
Posts: 7

I'm completely new to this... If this is not the right forum, I apologize. I am using an ecommerce program at work, which is the backend of our website.

There are main default pages, and to add new pages, there is a form in which I directly add my content. Each page is made of 3 templates: top, mid, and bottom. The new content pages use a default mid template that had one tiny bit of code on it - which I accidentally deleted! crazy.gif

It was very short
<---like this-->
and it had the word "echo" and at least one "?"
Apparently, all the template did, was tell the page to use my content in place of this empty template.

Since I deleted the code, none of my content pages are showing!! Is this a simple, basic common code???

I don't know what else is relevant, or if this is really the right forum for this.

Any help would be appreciated
User is offlineProfile CardPM
+Quote Post

no2pencil
RE: Deleted "echo" Code
31 Mar, 2008 - 07:56 PM
Post #2

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 7,166



Thanked: 78 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
What is the file extension for this code?
User is offlineProfile CardPM
+Quote Post

alyab
RE: Deleted "echo" Code
31 Mar, 2008 - 08:03 PM
Post #3

New D.I.C Head
*

Joined: 31 Mar, 2008
Posts: 7

QUOTE(no2pencil @ 31 Mar, 2008 - 08:56 PM) *

What is the file extension for this code?



I don't understand your question. it was just a few characters in a <> tag

Thanks for trying to help me.

This post has been edited by alyab: 31 Mar, 2008 - 08:04 PM
User is offlineProfile CardPM
+Quote Post

no2pencil
RE: Deleted "echo" Code
31 Mar, 2008 - 08:05 PM
Post #4

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 7,166



Thanked: 78 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
QUOTE(alyab @ 31 Mar, 2008 - 09:03 PM) *

I don't understand your question. it was just a few characters in a <> tag

CODE

<?php
  echo "Was it like this?";
?>


Is it possible that the code is archived somewhere? Like on a test system or something?
User is offlineProfile CardPM
+Quote Post

girasquid
RE: Deleted "echo" Code
31 Mar, 2008 - 08:07 PM
Post #5

Barbarbar
Group Icon

Joined: 3 Oct, 2006
Posts: 1,299



Thanked: 19 times
Dream Kudos: 725
My Contributions
He is wondering if you were working with a .php script, or a .shtml page - because the behavior is different in either case.

Based on your description, I think you removed the server side include tag from your template - do you have a backup anywhere you can restore from?
User is online!Profile CardPM
+Quote Post

alyab
RE: Deleted "echo" Code
31 Mar, 2008 - 08:14 PM
Post #6

New D.I.C Head
*

Joined: 31 Mar, 2008
Posts: 7

QUOTE(girasquid @ 31 Mar, 2008 - 09:07 PM) *

He is wondering if you were working with a .php script, or a .shtml page - because the behavior is different in either case.

Based on your description, I think you removed the server side include tag from your template - do you have a backup anywhere you can restore from?


I came on board when this site was kind of laying around! It is way too easy to delete stuff. I make backups of the html code before I change anything, but I opened this template in error, and pasted something in instead of that tiny code... and saved it, before I realized it was the template.

Ouch.

Perhaps, there's a backup on the host server... but I can't contact them until tomorrow. I have no idea how that works. I definitely overrote the template. I think it may be a php. I can post screen shot of the backend area, maybe that can help you?
User is offlineProfile CardPM
+Quote Post

alyab
RE: Deleted "echo" Code
31 Mar, 2008 - 08:20 PM
Post #7

New D.I.C Head
*

Joined: 31 Mar, 2008
Posts: 7

QUOTE(alyab @ 31 Mar, 2008 - 09:14 PM) *

QUOTE(girasquid @ 31 Mar, 2008 - 09:07 PM) *

He is wondering if you were working with a .php script, or a .shtml page - because the behavior is different in either case.

Based on your description, I think you removed the server side include tag from your template - do you have a backup anywhere you can restore from?


I came on board when this site was kind of laying around! It is way too easy to delete stuff. I make backups of the html code before I change anything, but I opened this template in error, and pasted something in instead of that tiny code... and saved it, before I realized it was the template.

Ouch.


Perhaps, there's a backup on the host server... but I can't contact them until tomorrow. I have no idea how that works. I definitely overrote the template. I think it may be a php. I can post screen shot of the backend area, maybe that can help you?


I just looked at the software, I think it referred to a page called single_page.php ?

User is offlineProfile CardPM
+Quote Post

no2pencil
RE: Deleted "echo" Code
31 Mar, 2008 - 08:31 PM
Post #8

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 7,166



Thanked: 78 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
QUOTE(alyab @ 31 Mar, 2008 - 09:14 PM) *

I came on board when this site was kind of laying around! It is way too easy to delete stuff. I make backups of the html code before I change anything, but I opened this template in error, and pasted something in instead of that tiny code... and saved it, before I realized it was the template.

Ouch.

In your editor (if you still have the file open), you should be able to issue Control-Z & backtrack your steps past the save, bringing up the text that you deleted.

User is offlineProfile CardPM
+Quote Post

alyab
RE: Deleted "echo" Code
31 Mar, 2008 - 08:38 PM
Post #9

New D.I.C Head
*

Joined: 31 Mar, 2008
Posts: 7

QUOTE(no2pencil @ 31 Mar, 2008 - 09:31 PM) *

QUOTE(alyab @ 31 Mar, 2008 - 09:14 PM) *

I came on board when this site was kind of laying around! It is way too easy to delete stuff. I make backups of the html code before I change anything, but I opened this template in error, and pasted something in instead of that tiny code... and saved it, before I realized it was the template.

Ouch.

In your editor (if you still have the file open), you should be able to issue Control-Z & backtrack your steps past the save, bringing up the text that you deleted.

You are really nice to be helping me. As I replied to girasquid, above... I saved it and overwrote the file... it took 2 seconds to screw up my website! The software people will easily be able to tell me what it said, but they are going to charge 3 arms, 6 legs, and my firstborn to tell me, so I figured if it was simple, maybe someone could make a suggestion. of what to try??
User is offlineProfile CardPM
+Quote Post

alyab
RE: Deleted "echo" Code
31 Mar, 2008 - 08:49 PM
Post #10

New D.I.C Head
*

Joined: 31 Mar, 2008
Posts: 7

QUOTE(girasquid @ 31 Mar, 2008 - 09:07 PM) *

He is wondering if you were working with a .php script, or a .shtml page - because the behavior is different in either case.

Based on your description, I think you removed the server side include tag from your template - do you have a backup anywhere you can restore from?


I think it was some form of <? echo >

that would be a variable for the tags of all the custom pages that use this template. Does that make sense??



User is offlineProfile CardPM
+Quote Post

alyab
RE: Deleted "echo" Code
31 Mar, 2008 - 08:56 PM
Post #11

New D.I.C Head
*

Joined: 31 Mar, 2008
Posts: 7

By the way, you guys are awesome for working with me here. I feel so stupid!

no2pencil, your code above,

QUOTE
<?php
echo "Was it like this?";
?>


seems familiar
User is offlineProfile CardPM
+Quote Post

capty99
RE: Deleted "echo" Code
31 Mar, 2008 - 09:41 PM
Post #12

the real kya
Group Icon

Joined: 26 Apr, 2001
Posts: 9,260



Thanked: 16 times
Dream Kudos: 550
My Contributions
heres the thing... it could echo absolutely anything that was included earlier in your code, so we probably need to see your code to see.

User is offlineProfile CardPM
+Quote Post

2 Pages V  1 2 >
Fast ReplyReply to this topicStart new topic
Time is now: 1/9/09 08:07PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month