Project Detail

PHP Help  

PHP Help is project number 449294
posted at Freelancer.com. Click here to post your own project.

 

| More Free Trial For New Buyers
 

Status: Cancelled

Selected Providers: -

Budget: $30-250

Created: 06/10/2009 at 13:41 EDT

Bid Count: 15

Average Bid:
$ 34

06/27/2009 at 13:41 EDT

Project Creator: webuyer
Employer Rating: 9.9/109.9/109.9/109.9/109.9/109.9/109.9/109.9/109.9/109.9/10 (10 reviews)

Bid On This Project
 

Description

Hi,

I posted this project to search an advanced PHP professional to help me in my development projects. I will post on 1 or 2 queries per day and will pay $10 per query and if you want more then specify in your PM and bid amount. I will select a coder based on the satisfactory answers of the sample question so if you want me to select you then please provide the full and complete solution to my sample question. My sample question is there is an URL like this:

http://www.abc.com/Dealcatch/showarticle.php?article_id=1

and I want this URL to look like:

http://www.abc.com/Dealcatch/showarticle.php?12.html
or something like that. I guess it will be done through .htaccess file but how will it be done. What to write in .htaccess file? How will it be saved? Will it also need to modify any other file? What other files are needed to be changed and where to save .htaccess file?

Please come to help. Happy bidding.

Thanks

Messages Posted:1 View project clarification board Post message on project clarification board

Bid On This Project
 

If you are the project creator or one of the bidders Log In for more options

 

30

0 days

06-10-2009 21:12 EDT

simple work. ready to start.

help

 

30

0 days

06-10-2009 13:50 EDT

Please view PMB. Thanks

help

 

30

1 day

06-11-2009 07:40 EDT

Hello, I'll be sending you a PM with an example .htaccess file attached.

help

 

30

0 days

06-10-2009 15:15 EDT

i can provide you a quickfix and an answer

help

 

30

1 day

06-10-2009 13:47 EDT

check pmb for further details

help

 

30

0 days

06-11-2009 09:17 EDT

Hi, I'm Kishan. Please check PM. Regards, Kishan.

help

 

30

1 day

06-10-2009 13:49 EDT

Hi, i can do this job within a hour. if you need any more information please check PMB..

help

 

30

1 day

06-10-2009 14:06 EDT

- I can do this one for you. - Please contact with me. _ Regards.

help

 

30

0 days

06-10-2009 14:03 EDT

Hi Please visit PMB for details. Thanks Mamun

help

 

60

0 days

06-15-2009 07:38 EDT

plz chk pm

help

 

45

1 day

06-10-2009 14:28 EDT

Hi,there please check the PMB. Thank you.

help

 

30

1 day

06-10-2009 14:33 EDT

By the way, manishd84's code doesn't work. I've tested it. You can't use .htaccess to rewrite showarticle.php?article_id=1 to showarticle.php?12.html. You can only use it to rewrite it into something like this: /showarticle/1.html. To answer your question, you need to modify the PHP source coed of showarticle.php. You need to add this line to the top showarticle.php: $_GET['article_id']=str_replace('.html','',$_SERVER['QUERY_STRING']); To explain this line, $_SERVER['QUERY_STRING'] will return the query string of a page. For example, example.php?aaa=123&b=234, the query string will be aaa=123&b=234, the part behind the question mark. So, in your example case, it will return 1.html. To take away the .html, we use str_replace. In this case, we replace ".html" with nothing. So it ends up with "1". We then set the $_['GET'] variable such that the script thinks you're accessing the page via showarticle.php?article_id=1. No .htaccess required. By the way, I have years of experience in PHP. Can work via email or IM, whichever is more convinent for you.

help

 

30

0 days

06-10-2009 13:58 EDT

Options +FollowSymlinks RewriteEngine on RewriteRule ^showarticle.php?([0-9]+).html$ showarticle.php?article_id=1$ [L] will do the job. Place it in the folder where u have the showartical.php file. Save it normally like u save any other file. The mod_rewrite module in ur httpd.conf must be on. If not u might need to change that file too

help

 

40

1 day

06-10-2009 13:53 EDT

Hello, I have 5.5 years of experience in Linux, Apache, Php, Mysql, Perl, AJAX, XML, Smarty, SEO, HTML, DHTML, symfony,joomla, wordpress, osscomerce, x-cart... You can review PMB for more details..

help

 

30

0 days

06-27-2009 17:18 EDT

(No Feedback Yet)

Hi, I will be happy to work with you.

help


    Bid on this Project