Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional Search Engine Optimization with PHP: A Dev's Guide to SEO ISBN: 978-0-470-10092-9
This is the forum to discuss the Wrox book Professional Search Engine Optimization with PHP: A Developer's Guide to SEO by Cristian Darie, Jaimie Sirovich; ISBN: 9780470100929
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Search Engine Optimization with PHP: A Dev's Guide to SEO ISBN: 978-0-470-10092-9 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old July 19th, 2008, 03:44 PM
Registered User
Join Date: Jul 2008
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Ch3 Testing mod_rewrite


First post in this forum. I'm in ch3 of this SEO book I typed the simple script
// display product details
echo ‘You have selected product #‘ . $_GET[‘product_id’];
Then test it as the book said and got this error:

Notice: Undefined index: product_id in F:\vhosts\seophp\products.php on line 11
You have selected product #

Right, since I didn't define product_id how does this code will give me a query string as the book suggested?
The book said load


And if I do that of course I got a 404 not found page. Any idea?

Reply With Quote
  #2 (permalink)  
Old September 8th, 2011, 11:48 AM
Friend of Wrox
Points: 651, Level: 9
Points: 651, Level: 9 Points: 651, Level: 9 Points: 651, Level: 9
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: May 2011
Location: North East UK
Posts: 125
Thanks: 0
Thanked 24 Times in 24 Posts


Change this: http://seophp.example.com/product.php?product_id=3 to match your local webserver installation. So, for example, if you are running the webserver on your local machine then using: http://localhost/product.php?product_id=3 should work.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
mod_rewrite stevenpup ASP.NET 2.0 Basics 2 December 22nd, 2007 04:54 PM
mod_rewrite question harpua Pro PHP 0 April 12th, 2007 08:56 PM
Mod_rewrite heerajee Pro PHP 1 March 8th, 2006 05:35 AM
mod_jk + apache + mod_rewrite fanch Apache Tomcat 0 December 5th, 2005 11:34 AM
Apache mod_rewrite() anshul Linux 2 October 14th, 2005 09:09 AM

All times are GMT -4. The time now is 06:30 PM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.