We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,623 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Execution of script

Hi, I am attempting to build a PHP based CMS, and a custom template system, these items I do not believe I would have a problem with. However its about the server environment.

For example

I would want to place instructions in the html code, in the form of html comments, with a php script that runs and creates the data, then inserts it into the html page. However I do not want to do it in the usual smarty or other template ways, which is to have a template file, and a php file that are coupled together, I wish to build an environment.

So going to www.something.com/business/article/11232/myarticle.html

would really start a php script on the server that starts the environment, that I can then use to read the template html is really in the url there.

I believe that this is a rewrite rule of some sort, however all previous attempts of writing them have failed badly :D

I hope I have made sense.

Would anyone be able to offer any advice or generate a rewrite rule, or .conf file? Really any help would be great. Thank You

1
Contributor
1
Reply
2 Days
Discussion Span
1 Year Ago
Last Updated
2
Views
Question
Answered
mikulucky
Junior Poster in Training
85 posts since Jan 2012
Reputation Points: 41
Solved Threads: 13
Skill Endorsements: 0

Hi,

I have managed to solve this, it was to do with the apache environment, so had to write rewrite rules. Which first loaded the php environment, then this alled for the templates and so on.

mikulucky
Junior Poster in Training
85 posts since Jan 2012
Reputation Points: 41
Solved Threads: 13
Skill Endorsements: 0
Question Self-Answered as of 1 Year Ago

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page generated in 0.0582 seconds using 2.64MB