PHP Pages

Support related questions that don't fit into the other categories.

PHP Pages

Postby Dark4ngel » 01 Feb 2010, 16:36

I searched the forums and some of the documentation. I might have missed it somewhere, but I have a php page that does analysis with user input. how do I make this a linkable page that registered users can click on and go to?

page is called compute.php

thanks in advance

ps

EDIT: ok I think I figured it out but I am still having an issue
here is what I am doing so far:

Mod-Man -> MENU -> EDIT "MAIN" -> ADD NEW ITEM ->

Thats where i am stuck
I've tried (in the url) /compute.php

and when i test, menu shows (yeah!!) but when i click i get a 404 error????

love this cms (its the 16th one I've tried for what I want - its PERFECT just learning the engine)

EDIT 2:
hmm I guess my whole underlying question is "...how do you add an external page?"
Dark4ngel
 
Posts: 3
Joined: 01 Feb 2010, 16:33

Re: PHP Pages

Postby AlexC » 01 Feb 2010, 18:26

Do you know what webserver you are using? If using Apache, this should work just fine due to the ReRewrite rules we have.

Is the 404 page coming from TangoCMS, or your webserver?

Edit: Actually, if you're using 'standard' URLs (which look like index.php?url=foo/bar) then you will need to provide the full URL e.g. http://example.org/foo.php
User avatar
AlexC
Site Admin
 
Posts: 167
Joined: 11 Dec 2007, 21:23
Location: Shropshire, UK

Re: PHP Pages

Postby Dark4ngel » 01 Feb 2010, 18:39

using apache
but its an tango 404

if i put it in direct foobar.php
it works but it goes outside of tango which is not the desired effect.

i want it to be integrated with tango to keep with the theme. does that make sense?
Dark4ngel
 
Posts: 3
Joined: 01 Feb 2010, 16:33

Re: PHP Pages

Postby AlexC » 04 Feb 2010, 11:43

Sorry for the delay,

You'll have to wait until 2.5 (~1 week) where you can then in the editor do something like:
Code: Select all
#!verbatim
<?php require('your-file.php'); ?>
User avatar
AlexC
Site Admin
 
Posts: 167
Joined: 11 Dec 2007, 21:23
Location: Shropshire, UK


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest