Go Back   Web Master'S Zone > Web Design > Tutorials / Resources

Tutorials / Resources Tutorialize others and yourself with these useful how-to-do's and what-not-to-do's.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-26-2008, 11:00 AM
Crown's Avatar
Moderator
 
Join Date: May 2008
Location: UK, Devon
Posts: 71
Rep Power: 8
Crown is on a distinguished road
Send a message via MSN to Crown
Default [PHP]View Source of your code via one file

This is a one line of code that allows you to view your code PHP & HTML etc..

anyways here this is how its done

PHP Code:
<?php highlight_file(str_replace('..'''$_GET['view'])); ?>
Call the file "Viewsource.php" and upload to your webserver go to "www.yourdomain.com/viewsource.php?view=FILENAME" and it will allow you to view the php source aswell
Usefull ? I dont know
Thank you
Crown

Last edited by Crown; 05-26-2008 at 11:07 AM.
Reply With Quote
  #2 (permalink)  
Old 05-26-2008, 11:04 AM
Ehsan's Avatar
Administrator
 
Join Date: May 2008
Location: Pakistan
Posts: 136
Rep Power: 9
Ehsan will become famous soon enoughEhsan will become famous soon enough
Send a message via MSN to Ehsan Send a message via Yahoo to Ehsan Send a message via Skype™ to Ehsan View Ehsan's Twitter Profile
Default

Could be useful i will try it out , but make sure you rename this file to something very secret that no one one would know about so that other people are not able to use this to view you source code of important files
__________________
Reply With Quote
  #3 (permalink)  
Old 05-26-2008, 07:55 PM
IamShipon1988's Avatar
Administrator
 
Join Date: May 2008
Location: Rochester, NY
Age: 23
Posts: 103
Rep Power: 0
IamShipon1988 is an unknown quantity at this point
Send a message via AIM to IamShipon1988 Send a message via MSN to IamShipon1988 Send a message via Yahoo to IamShipon1988 Send a message via Skype™ to IamShipon1988
Default

Crown maybe you should upload a demo. This is fairly simple and you really don't need to create a separate file although it does make life a lot more easy.
__________________
Sazzad Hossain
"Let it be and move on. If it comes back, kick it in the back and move on. It it happens again, take down the IE server."
Sazzad Hossain | EasyLyrics | Hip-Hop Clique | Jorsek Softwares
Reply With Quote
  #4 (permalink)  
Old 05-26-2008, 07:57 PM
Ulrich's Avatar
Member
 
Join Date: May 2008
Location: South Africa
Posts: 40
Rep Power: 0
Ulrich is an unknown quantity at this point
Default

This is pretty useful Crown, thank you.
__________________
I'm working on this Linux website of mine!
http://linuxbootup.zzl.org
Reply With Quote
Reply

Bookmarks



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 10:24 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.