moldboy
Jul 8 2005, 02:37 AM
| | This isn't really that urgent but I was wondering, I read somewhere that you can configure you server to pars all html pages for php code, and I was wondering if that was true, and if trap17 has that feature enabled? |
Comment/Reply (w/o sign-up)
truefusion
Jul 8 2005, 03:22 AM
Yes, it's true. I did it to my account, just incase i wanted an HTML document to translate php coding. Go to mime types from your cpanel and add a mime type: application/x-httpd-php : .html
Comment/Reply (w/o sign-up)
moldboy
Jul 8 2005, 03:27 AM
Thanks! Just one more thing, if I were to ever want to do one of those complex thing in the address, you know, index.php?link=food, or something, would that still work with an html page (index.html?link=food)?
Comment/Reply (w/o sign-up)
Hamtaro
Jul 8 2005, 04:06 AM
Yes it would, since the page is being parsed as a PHP script. Anything that was done using .php would work exactly the same way as it would set as .html.
Comment/Reply (w/o sign-up)
james_666
Jul 8 2005, 12:03 PM
now that were on this topic, how would you parse filenames with no extensions as php files, e.g. http://www.some-site.com/index?content=blahfor security.
Comment/Reply (w/o sign-up)
truefusion
Jul 8 2005, 01:12 PM
QUOTE(james_666 @ Jul 8 2005, 08:03 AM) now that were on this topic, how would you parse filenames with no extensions as php files, e.g. http://www.some-site.com/index?content=blahfor security. I've read this somewhere, i think it was another feature you get for making html pages read php coding. But, i cant remember. I'll reply later when i get the full info on that..
Comment/Reply (w/o sign-up)
HmmZ
Jul 8 2005, 01:16 PM
james 666 thats function based PHP, you can google, but if you want a full explanation from me or some php guru(Hiya SystemofWisdom  ) on the forums, tell me
Comment/Reply (w/o sign-up)
truefusion
Jul 8 2005, 03:54 PM
QUOTE(james_666 @ Jul 8 2005, 08:03 AM) now that were on this topic, how would you parse filenames with no extensions as php files, e.g. http://www.some-site.com/index?content=blahfor security. I've found something similar to what you're asking for. I dont know if it will help you, but it's a start. http://www.invano.com/?php:invanonavigation
Comment/Reply (w/o sign-up)
Hamtaro
Jul 8 2005, 09:37 PM
If that's not what you're looking for, then try this: You would have to add this to .htaccess (The PHP Manual says httpd.conf, but it should work in .htaccess): CODE <Location /index> ForceType application/x-httpd-php </Location> That would make it run as a PHP script. Also, if you want that to be the index, you would also have to add this to .htaccess CODE DirectoryIndex index I hope that helped you. I don't quite know that much about this, though.
Comment/Reply (w/o sign-up)
sachavdk
Jul 15 2005, 01:25 AM
QUOTE(truefusion @ Jul 8 2005, 05:22 AM) Yes, it's true. I did it to my account, just incase i wanted an HTML document to translate php coding. Go to mime types from your cpanel and add a mime type: application/x-httpd-php : .html Cool  Impressing my friends with "serversided html"  though its just phpparsed html  
Comment/Reply (w/o sign-up)
Similar Topics
Keywords : Parsing Html Pages- Weird Formatting: Embedding Php Into Html
- (10)
- Pages In 1 File
- ?? (10)
I know its possible to put many pages inside 1 file. But how? Lets say you have a guestbook with
different pages for signing and viewing. How to make so those pages are in 1 file? /huh.gif"
style="vertical-align:middle" emoid=":huh:" border="0" alt="huh.gif" />...
Php And Disabling Html Tags
- how can i do this? (11)
Hello everyone Im TRYING to make a forum and obviously for security i need to disable HTML tags
being used in posts. i know how to use the str_replace() function but to be honest i think id have
to do that for every single tag. I also trued using the html CODE stuff tag but i need to
be able to use the new line tag to make a new line as all the posts are stored as HTML. if this isnt
clear let me give an example: QUOTE NEW POST PAGE > user makes new post and posts it > PHP
PROCCESSOR PAGE MAKES HTML FILE > NEW HTML FILE CONTAINING THE POST > user veiws ...
Html Form!
- Using MySQL?! (4)
Hey, I need your help again! I need some good working tutorial how I can update my SQL through HTML
form. I did use some tutorials online found with the help of google; but they do not work properly;
I mean there are still small mistakes. I need to have a good tutorial to follow. It should be
based on security and more things. It has to be done in proper way......
Html Code Tester. Online Script
- (15)
Yes, yes. I have another script that I have written and I am distributing. I am not entirely sure if
this works. I have not tested it yet, but I will later and post back with a demo and fix it up.
Current script: CODE //Save this as something like htmltest.php function CheckForm() {
$html_unsafe=$_POST ; //Gives us our user input $html_safe=str_replace(" //Starts security measures
$html_safe=str_replace("?>"," ",$html_safe); //User input now secure server side //Still security
issues client side echo $html_safe; //echos our statement } //End function //Main script...
Protect Pages
- HOW? (20)
I create certain pages for my web-site, and I would like to protect them that no one can hack or see
their source codes. So, if everybody knows how to do it, please post a reply over here. List of
the best ways, I can do it. Thanks....
Adapting Html Code Embed To Work On Phpnuke
- Help With This Html Code Pls (7)
QUOTE how can get this html code to work on my phpnuke site? what tags would i
have to enable in the $Allowable HTML part of my config.php file?? Edited topic title. Moved to
Programming. ...
Dynamic Php Pages
- Nice tutorial (5)
This is a really good tutorial on making php pages that normally appear as
www.domainname.com/links.php appear as www.domainname.com/index.php?page=links
http://nuwen.com/tutorials/php-dynamic-pages ...
Pagination
- ? (3)
People they create the databases in which like the news stories are placed. Then that news stories,
they are placed on certain page to be displayed and readable by other users on the web-site. How
people do that thing paging, like you can see bottom, whenever, you go to Any CMS engines. Need the
concept how you can create, 1, 2 or 3 pages, then next and back buttons, last and beginning page....
How Do I Get The Result To "stick" And Add Html Tags?
- Help please? (14)
$changepage = $_REQUEST ; echo " $changepage "; ?> Okay, I need a way for any
information typed in my textarea to "stick" on the page in which it "posts". Since I am creating a
way for my registered users to decorate their "homepages". So any help, tutorials, etc. would be
greatly appreciated. ^^ Thanks....
2 Pages Into One
- how? (10)
Hello, now this may be a stupid question but i'm very new to php so i need some help. what
i'm wanting to do is combine 2 pages in to one. like for example the install.php for
invisionpower board it starts with one page and you click continue and it gives you a whole new page
but if you look at the url you are still using the install.php file but it has somethinglike "?a=2"
at the end. how can i do this. Thanks...
Php Pages Problem [resolved]
- Please help me im stuck ;-( (5)
Hi, i have been working with a wap forum script, translating from russian and fixing errors etc..
but now im stuck, the problem is with the pages while viewing a forum.. Let me explain.. the pages
are set to show ten topics per page which all works fine as you can see in these screenshots: page
1: page 2: The problem occurs when there are PINNED topics (with the redish folder), it will
show ten topics but also the pinned ones on page one, and the "Next" link will appear before it
should leading to a blank page where there should be topics but they are still on th...
File Checker-how To Check File Whith Html Through Html?
- (2)
edit:sorry for the mistake it is php not html and its with not whith my code checking script= CODE
$file = '$CHECK'; if (file_exists($file)) { echo "The file $filename exists"; } else
{ echo "The file $filename does not exist"; } ?> my question is how to check the file whith
html example:on a page a text box is provided and a button the user writes a file name (or website)
the user clicks on the submit button then it checks and show it (with the code above) i got the
code CODE $filename=$_POST ; if (file_exists($filename)) { echo "The...
Html Site With Login
- Is it possible? (2)
Hello. I´m building my own site and I need some help... Is it possible to use a login sistem in php
and mysql database in a html site? ...
Php An Js Window.open Pages Trouble.
- I need a way to set hidden input values to the new window. (3)
I have 2 main pages Page A(events_locked.php) and Page B(add_attendance.php). Both are php files.
Page A takes a post var from another page(not Page B ) and then used to query for displaying records
in a mysql datase. This variable has set as a session variable because there is 1 <script
LANGUAGE="JavaScript"> window.name="main_index"; function openFormWindow() {
OpenWindow=window.open("add_attendance.php", "newwin", "height=250,
width=400,toolbar=no,scrollbars=no,menubar=no,location=no,resizable=no"); var x =
getElementByName("form1"); x.target="newwin"; x.s...
Script To Translate Into Bbcode From Html Tags
- (1)
I was wanting to know how to make a form like they use here for the website form. I want to be able
to turn stuff in to bbcode. If you know how or would be willing to write the script for me could
you email me. will@darkzone3.com . I am william to give all credit to who ever makes it. and i can
put a link back to a site if you want. Please be specific with the topic title. "Help" is never a
good topic title. This is explained in our forum rules. Title modified. ...
Php Pages Permission On Apache Server
- PHP pages permission on Apache Server (1)
Hello, I want to know what permissions for PHP pages should be given on Apache web server so that
PHP pages can be executed. If PHP pages are in a folder, what permissions should be given for that
folder? ...
<?php ?> Marking Up With Php
- How to simply add HTML tags with PHP (0)
Just a simple function to mark your queries /smile.gif" style="vertical-align:middle" emoid=":)"
border="0" alt="smile.gif" /> CODE $uzorak = 'Hosting credit'; //use post to get
$uzorak variable $tapeti = "Hosting credits are collected by posting at the forums. The hosting
credits are given after your posts are filtered and depending on its size, you get proportional
hosting credits. Once you get the required credits you can post an application for hosting. One of
our admins will then approve your application after which you can register an account at ht...
Help With Moving Html Form Results To Shopping Cart?
- (3)
Hello All- So I think I'm tackling a pretty big project here and was looking for some help... I
am fairly new to extensive coding (beyond HTML and a little bit of JavaScript) and wanted to know
how I can recall HTML form results on the next page (in a shopping cart) with a price based on the
choices picked in the form. It sounds complicated...look at this example: Check out this page:
http://www.plugcomputers.com/intelprobuild.php See how when the user goes through and picks all
their computer parts a price at the bottom shows the system price based on their sel...
Putting Data Of 2 Pages In Mysql At Once
- (1)
suppose i have a page, page.php?part=1 there i have some text fields. user will give input, but
after taking input, it will not put the data in mysql .. but it will take to the next step..
page.php?part=2 (if any field is left blank, it will not go to next page.. ) . and there also some
fields.. after the user has filled that form also, then it will insert all data (from part1 and
part 2) in mysql. i want to ask, how i can collect data from 2 pages and put in mysql at once....
[help]: Php To Html (static) Converter
- I need help to use PHP to HTML Conversion (3)
Hello Guys, I want to use PHP 2 HTML Conversion for my PHP-Nuke CMS And my PHPbb or IPB Forum, but
don't know or does't have any idea about it. If any know about it than please tell me. In
Trap17.com forum PHP to HTML (Static) conversion example is their, you can see it on your Address
bar, Same thing i want to use with my PHP Codes........ Thanks in advance, i am waiting for your
suggestion...
Logging Dowload Files From Your Server Onto A Html File
- (1)
Well, i had the idea of logging the downloads from my web in a html file few weeks ago, and i solved
it with a lil php page included in my homepage. You could name the links with a name like
"download.php?file=filename.ext" and then, in the download.php put the next code: (well you put
the html and head and body tags if u want, i only write the php here) CODE if (isset($_GET ))
$file=$_GET ; //so it gets the GET data from url (file=filename.ext); $ip=$_SERVER ;
$file=fopen('download_log.html','a'); $date=date('d-m-y H:i:s'); $text="
".$...
Parsing Html As Php
- and XAMPP as the server version on Windows (7)
On my Trap17 account here, I have an .htaccess file with the following declaration which (I think)
forces all html files to be parsed by the PHP Parsing engine and therefore I can insert snippets of
php scripts into html files. CODE AddType application/x-httpd-php .html .htm However, when I
add an .htaccess file to the local directory of the version of XAMPP on my local machine, it fails.
I have tried to add the .htaccess file to the htdocs folder and elsewhere, but it still doesn't
work to parse html through the php parser. Any ideas on how to get these htm...
Php And Asp.net Form
- server control html component (6)
does this sort of feature can be done in php. http://www.w3schools.com/aspnet/aspnet_forms.asp or
how and what are the differences.. thanks /huh.gif' border='0' style='vertical-align:middle'
alt='huh.gif' /> ...
Search Site Pages Using Keywords?
- (6)
We're doing a "Mock" e-commerce site for our project in Web Development and I was wondering how
to make a Search form like the ones in many sites. There will be a Search textbox and a button in
the form which will accept a string (keywords) which will then be processed by a script. If there
is a match, a page containg the keywords will be displayed. Is there a way to do this using PHP or
is there an existing free script out there already? Thanks very much....
Changing Include Tag On All Pages
- (11)
I want to change an include tag (include menu.htm) to include menu.php on all my pages on my
website. Is there any fast way to do this, or do I have to edit all of my pages manually?
/unsure.gif' border='0' style='vertical-align:middle' alt='unsure.gif' /> ...
Html Within Php Coding
- Is there a way to read HTML Code? (11)
Is there a way to have PHP read a text file, which contains HTML Code, not text to display. This
way i have a simple code in every page, linking to this text file, and then if i'm wanting to
change the code, i only need to change the code in the text file. If that all makes sense?
/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif' /> I get the feeling it
can be done, but the only code i have seen is one that displays the contents of the text files....
Blocking Pages & Making Ranks
- (4)
I would like to know how and where to put the code that would block certain pages so people could
only get to them if they logged in. And I would like to have ranks on the site and when you get to a
certain rank you get more options like being able to add members and stuff. And also. I would like
some code for a news sytem for the homepage. Like where you have to be logged in to post something
and only people with certain ranks will have access to it and only certain people can delete it. I
would like to be able to make it so on the members page it displays members and y...
Best Php/html
- (2)
I'm wondering what open source converters are out there already. I'm generating legal
documents that require names addresses etc. I want the ability for the end user to modify the base
document whenever they require. I plan to use the TinyMCE WYSIWYG editor to let the users edit each
page. I will populate names and addresses dynamically based on tags in the text. Is there something
good out there that will convert the html to pdf reliably? ...
Securing Pages
- (2)
just wondering if there is a easy safe way to secure some webpages. i have a payment facility on my
site which is linked through paypal. when the member has paid they are taken back to my site "thanks
your payment has been successful page", once its went to this page the item is no longer listed on
my site. now i have found away people can mess with this using the url. this means people can
change just a few digits in the url and and mess the listings up on my site. after payment has been
made the member is redirected to:- mydomain.com/class/thanks_paypal.php?myprod_...
Looking for parsing, html, pages
|
Searching Video's for parsing, html, pages
See Also,
|
advertisement
|
|