Guru3D.com Forums

Go Back   Guru3D.com Forums > General > Programming/Html
Programming/Html C++,Visual Basic,HTML,Flash,OpenGL,Modelling,Java.


Reply
 
Thread Tools Display Modes
Html > Php
Old
  (#1)
Cosmos
Master Guru
 
Cosmos's Avatar
 
Videocard: ATI AIW 9800 PRO @ 390/357
Processor: Pentium 4 2GHz Northwood
Mainboard: Asus P4S533
Memory: 768MB PC2100
Soundcard: C-Media 6 Channel & 6.1 Creative 6700 Speakers
PSU: Creative Inspire 6.1 Speakers
Question Html > Php - 11-01-2003, 20:26 | posts: 413 | Location: United Kingdom

How can I convert HTML to PHP?
Also, how do I protect my code from being seen in view source without encrypting it making the site slow and very large to download?
   
Reply With Quote
 
Old
  (#2)
Elleomea
Master Guru
 
Elleomea's Avatar
 
Videocard: Radeon Mobility 9000 (M9)
Processor: 2.8Ghz Pentium 4
Mainboard: SIS 962
Memory: 768MB DDR
Soundcard: i810 based
PSU:
Default 11-01-2003, 20:38 | posts: 418 | Location: Aberystwyth

You don't convert HTML to PHP. PHP is just used for the dynamic portions of a page, all the things traditionally handled by HTML are still handled by HTML.
Your PHP code won't be visible because it is preprocessed, only the HTML output from it will be visible through the view source function.
I don't see any reason you would want to stop people being able to view the source for a HTML page, since anyone with even modest HTML skills could recreate whatever you do just from sight.
   
Reply With Quote
Old
  (#3)
Cosmos
Master Guru
 
Cosmos's Avatar
 
Videocard: ATI AIW 9800 PRO @ 390/357
Processor: Pentium 4 2GHz Northwood
Mainboard: Asus P4S533
Memory: 768MB PC2100
Soundcard: C-Media 6 Channel & 6.1 Creative 6700 Speakers
PSU: Creative Inspire 6.1 Speakers
Default 11-01-2003, 22:12 | posts: 413 | Location: United Kingdom

Well I need to disable my source code because I make template websites and I don't want lots of people stealing my work. I suppose there are ways but at least it will stop a lot of people if they tried. I have seen tools that convert HTML to PHP but they don't seem to hide the HTML code still. I need something that is solid I cannot find a decent convertor. I can't use PHP because I haven't got a clue how to use it and my current methods of design will be all messed up because I don't like writing in code all the time.
   
Reply With Quote
Old
  (#4)
Elleomea
Master Guru
 
Elleomea's Avatar
 
Videocard: Radeon Mobility 9000 (M9)
Processor: 2.8Ghz Pentium 4
Mainboard: SIS 962
Memory: 768MB DDR
Soundcard: i810 based
PSU:
Default 11-02-2003, 01:17 | posts: 418 | Location: Aberystwyth

You don't convert HTML to PHP! There is no point. PHP outputs as HTML, so you're just adding an unneccessary stage. A typical page using PHP might look something like this:

PHP Code:
<HTML>
<HEAD><TITLE>Blah</TITLE></HEAD>
<BODY>
Lots of normal old HTML...
<?php
 
echo "And a bit of php, today on: " date("d/m/y");
?>
<BR>
More HTML
</BODY>
</HTML>
the output of which would be:

PHP Code:
<HTML>
<
HEAD><TITLE>Blah</TITLE></HEAD>
<
BODY>
Lots of normal old HTML... And a bit of phptoday on2/11/03
<BR>
More HTML
</BODY>
</
HTML
If you want to obfusicate your HTML you could you some tacky javascript function or you could simply displays screenshots of your designs instead of the actual pages themselves, but PHP won't help you. PHP is for programming dynamic content into HTML pages and outputs as plaintext/HTML.
   
Reply With Quote
 
Old
  (#5)
Cosmos
Master Guru
 
Cosmos's Avatar
 
Videocard: ATI AIW 9800 PRO @ 390/357
Processor: Pentium 4 2GHz Northwood
Mainboard: Asus P4S533
Memory: 768MB PC2100
Soundcard: C-Media 6 Channel & 6.1 Creative 6700 Speakers
PSU: Creative Inspire 6.1 Speakers
Default 11-02-2003, 13:31 | posts: 413 | Location: United Kingdom

Ok I see now.

I don't like the idea of designing a website in all code, I like to drag things about on a WYSIWYG program and then add code in certain places. I feel like I am getting behind on technologies however if I tend to use HTML all the time. I am still using HTML (and DHTML) and also Javascripting for my web designing.

I have used some HTML encryption technologies but the size of the output files are huge and sometimes it produces some crappy results on the design view.
   
Reply With Quote
Old
  (#6)
Misdirection
 
Videocard:
Processor:
Mainboard:
Memory:
Soundcard:
PSU:
Default 11-04-2003, 04:20 | posts: n/a

There is another way in fact.

You can disabled people from copying your pictures...

I remember I wanted to copy a WW II model picture and the message box pops up saying, "You can't copy" or something like that. It's one good security implemention. But there is a way around it, but not alot of people know how to.
   
Reply With Quote
Old
  (#7)
Cosmos
Master Guru
 
Cosmos's Avatar
 
Videocard: ATI AIW 9800 PRO @ 390/357
Processor: Pentium 4 2GHz Northwood
Mainboard: Asus P4S533
Memory: 768MB PC2100
Soundcard: C-Media 6 Channel & 6.1 Creative 6700 Speakers
PSU: Creative Inspire 6.1 Speakers
Default 11-04-2003, 12:16 | posts: 413 | Location: United Kingdom

I've tried using this before but I don't mind about my images being saved, its just the source code I don't want saved. One page that is my layout which has taken some time and someone can just come along and steal it and rename everything for their use.
   
Reply With Quote
Reply

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

Forum Jump



Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com
Copyright (c) 1995-2012, All Rights Reserved. The Guru of 3D, the Hardware Guru, and 3D Guru are trademarks owned by Hilbert Hagedoorn.