PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old October 31st, 2003, 11:07 AM
wvdploeg wvdploeg is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 11 wvdploeg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Problems with param passing

I have a script written by someone else running ok on server1, but creating 404-s on server2... the problem is clear, instead of using a structure like http://myserver/myscript.php?var=value he uses
http://myserver/myscript.php/var/value ... for some reason it works on one server, but not on the second one... since the script contains quite some codelines, I would prefer to get it running by modifiing the settings of Apache or PHP (which one ???) instead of modifiing the script.

Does anyone know where to edit it ???

Reply With Quote
  #2  
Old October 31st, 2003, 02:04 PM
nazly nazly is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Colombo,SriLanka
Posts: 1,325 nazly User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 18 sec
Reputation Power: 3
Send a message via Yahoo to nazly
RE: Problems with param passing

Its that on server1 URL rewriting rules are added in Apache. You can use mod_rewrite in Apache without modifying your scripts. Here are some helpful links abbout mod_rewrite.

http://httpd.apache.org/docs/misc/rewriteguide.html
http://www.sitepoint.com/article/910

Reply With Quote
  #3  
Old November 1st, 2003, 03:19 AM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to postalcow
RE: Problems with param passing

First back up your httpd.conf

Then find these lines

#LoadModule rewrite_module modules/mod_rewrite.so
#AddModule mod_rewrite.c

remove the pound sign (#) and restart apache

I think this may work for you... Maybe?

RewriteRule /var/([a-z]+) /myscript.php?id=$1

If not let me know the values if they are number or text and I will try to get it for you. I have used mod_rewrite very little but I understand it

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > Problems with param passing


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway