473,322 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

How to develop our own advanced php web application

roccos
12
Hi Guys,

I have developed a php based simple web application which allows users to view articles, comment on articles ,etc

The features of the application are:

Member Features:

• Allows members to create categories
• Allows members to retrieve lost passwords
• Allows members to post new articles, comment on articles

Admin Features:

• Allows admin to create/edit/delete users.
• Allows admin to post/suspend articles, comments.
• And almost everything can be done by admin

User Features:

• Allows users to view articles, comment on articles, sign up for website, etc

PLEASE HELP ME OUT IN ADDING THESE FEATURES TO MY WEB APPLICATION:

1. Whenever an article is viewed the url of the article becomes http://www.demo.com/article.php?id=123

I want the function which allows admin to change the url of any article, like
http://www.demo.com/category/article-one-two.php

2. I want to provide the users/member/designers the ability to design template for the application i…e In short I want the application to be template driven.

3. I want to provide users with the ability to create custom plugins for the application so that the application can be extended very easily.

(For now this is all I need but in future I will need more features)

PLEASE HELP ME………………….. I would be very thankful to you all
Feb 28 '09 #1
15 2505
Markus
6,050 Expert 4TB
I want never gets.
  1. Pretty URLs. - Of course, you'll have to have your application generate the .htaccess file.
  2. I don't understand.
  3. Interesting discussion on making a pluggable application.

Remember, we will never give you full sourcecode. We expect you to do the work, and when you hit a specific problem, ask for help.
Feb 28 '09 #2
roccos
12
Sorry for i want, but this will be very helpful to others as well

can you at least tell a way using which application can be made template driven
or can you refer some books.........

Thanks for the info.
Feb 28 '09 #3
Markus
6,050 Expert 4TB
@roccos
Of course, but saying 'I want, I want' is a very rude way of asking for help.

Any how, I've not delved into template driven applications, but a quick google offered a promising result.
Feb 28 '09 #4
roccos
12
Thanks for your Great Help, more questions coming very soooooon. :)
Mar 1 '09 #5
Markus
6,050 Expert 4TB
@roccos
No problem. We shall be waiting. :)
Mar 1 '09 #6
roccos
12
Well then here's a question for you:
how to create a search engine which displays results from google, amazon and eBay....., I have experience in creating database driven search engines

And one more questions about Pretty URL's, though the link to articles you provided is useful, But i didn't understand it clearly.... Can you explain or provide links to Articles which explain "Pretty URL's" in a great detail (i..e step 1 to the last step)
Mar 1 '09 #7
Markus
6,050 Expert 4TB
@roccos
1. That's a question for a new thread.

2. Google's results. After looking through a few tutorials, you'll start to understand, and when you have a more *specific* question, post back.
Mar 1 '09 #8
roccos
12
Hi guys,

I tried learning and implementing .htaccess code but i always get an error,
so can you provide .htaccess code to acheive this:

1. whenever a page i viewed the url becomes
http://www.demo.com/articles/page.ph...s=php-tutorial
Want this to be changed to
http://www.demo.com/articles/pages/php-tutorial.html

Similarly for categories, when a category is viewed the url becomes
http://www.demo.com/articles/categor...gory=wordpress
want this to be changed to
http://www.demo.com/articles/category/wordpress

Help Me Out Guys......
Mar 4 '09 #9
Markus
6,050 Expert 4TB
Can you provide the code you have tried? (We don't give out code without any effort on your part to at least try).
Mar 4 '09 #10
roccos
12
This Is The Code:

Options -MultiViews +FollowSymlinks -Indexes

<IfModule mod_security.c>
SecFilterEngine Off

SecFilterScanPOST Off
</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine On



RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php
</IfModule>

I tried changing index.php with page.php but nothing happened, All it displays is a navigation bar with footer contents without any styles (i..e No CSS)


Over To You Markus .....................
Mar 5 '09 #11
roccos
12
GUYS, WHAT HAPPENED, WHY NO REPLY...........

I NEED HELP, Do let me know if you cant
Mar 9 '09 #12
devsusen
136 100+
@roccos
I hope this may help you
Expand|Select|Wrap|Line Numbers
  1. RewriteEngine on
  2.  
  3. RewriteRule ^archive.html archive.php [L]
  4. RewriteRule ^([A-Za-z0-9_\-]+)\.html$ index.php?u=$1 [L]
This code written in HTACESS file can do the following :
http://www.demo.com/articles/pages/php-tutorial.html
To
http://www.demo.com/articles/pages/i...u=php-tutorial
Mar 9 '09 #13
Markus
6,050 Expert 4TB
Here is an example: read the url http ://example.com/my_dir/test.php?id=1 as http ://example.com/my_dir/id/1.

Expand|Select|Wrap|Line Numbers
  1. # Turn on the engine. Brum brum.
  2. RewriteEngine On
  3. # Set the current directory - this time it is 'my_dir'
  4. RewriteBase /my_dir/
  5. # Conditionals - only run the rewrite if we're getting a none-existant file...
  6. RewriteCond %{REQUEST_FILENAME} !-f
  7. # Or directory.
  8. RewriteCond %{REQUEST_FILENAME} !-d
  9. # The rewrite rule.
  10. RewriteRule ^([a-zA-Z]+)/([0-9])$ test.php?$1=$2 [R]
  11.  
The rule's explanation:
  • We start the rule with a ^ character;
  • Then we use parenthesis '( )' to indicate we want the expressions results to be stored in a variable for later use;
  • The expression checks for any alpha character (lowercase and uppercase) - the + sign let's us check for multiple characters;
  • The forward slash that would appear in the url to separate the items;
  • Then we do the same as the above, this time checking for only numeric characters 0 through 9;
  • $ terminates the rule.

The last part tells us where to redirect to, using $ (followed by the rules placement - $1 = [a-zA-Z0-9] ) to place the variables into the location we want them.

Finally, the [R] flag forces the browser to redirect to the new url. If you just wanted to mask the url, simply change the flag to [L] (last rule) or ommit the flag.

I hope this helps.

ps: less bold and less uppercaps, please.
Mar 9 '09 #14
roccos
12
Thanks Guys, Really thank you for your help.., Though i haven't tried the code yet, I'll try it very soon and i really hope it works..
Mar 9 '09 #15
Markus
6,050 Expert 4TB
@roccos
Sure, no problem. Of course, you'll have to use your intelligence and modify the code to reflect your needs.

- Mark.
Mar 9 '09 #16

Sign in to post your reply or Sign up for a free account.

Similar topics

30
by: Erwin Moller | last post by:
Hi group, Just curious what IDEs are popular nowadays. What do you expect from an IDE? Debugging? Do you use your IDE for debugging, or do you work like me? (Just use some smart-placed...
0
by: Michael J. Wendell | last post by:
Hello, I am trying to debug an issue with sessions in my ASP 3.0 web application, which runs fine on WIN2K Pro and WINXP Pro, yet fails to function correctly on WIN2K Advanced Server. My actual...
4
by: Jonathan Li | last post by:
I have posted the question before but nobody have given me a solution. I would like to rephrase my requirement and want to hear your advice. We are developing application packages for logistics...
66
by: Prashant | last post by:
There are lot of dicussion on C# is much better than C++. Why there is no language to compute C#. This way we are accepting monopoly of M$. Why there is no group which seriously tring to develop...
1
by: SmartGuy | last post by:
hi,all: The whole thing is : My team is developing some activex controls in VB 6.0. As a new comer, i am quite familiar with .Net(c#) than vb 6.0. So can i develop ActiveX controls in c#? And if...
9
by: John Robert | last post by:
Hi! Anyone has recommendations for advanced ASP.NET books? By advanced, I mean complicated stuff... not just authentification and datagrid binding I'm mainly interrested in learning more...
1
by: aparnasinha26 | last post by:
Hi All, I have to develop an application .The application has to update database.It does not have any user interface.It needs to run on Windows XP/2000 automatically at a particular time say 4...
43
by: Rob R. Ainscough | last post by:
I realize I'm learning web development and there is a STEEP learning curve, but so far I've had to learn: HTML XML JavaScript ASP.NET using VB.NET ..NET Framework ADO.NET SSL
3
by: | last post by:
I'm planning to transport a desktop application to the web. A spin-off of this application has already been put on the web by another programmer. He used ColdFusion with MS SQL, Access, VC, and...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shζllξpτpο 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.