Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Pro PHP
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Pro PHP Advanced PHP coding discussions. Beginning-level questions will be redirected to the Beginning PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro PHP 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
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 14th, 2007, 02:25 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Oklahoma City, Oklahoma, USA.
Posts: 249
Thanks: 0
Thanked 0 Times in 0 Posts
Default rewriteengine missing images

My question is when using the RewriteRule below, my images on a page appear as missing due to the browser thinking the image folder is a few levels below it. So in order to fix this I have to apply full paths(http://www.mysite.com/images/abc.jpg) on every image. Is there a way to resolve this so I still just use images/abcd.jpg instead of the full paths.

RewriteRule ^usermanual/manual/?([^/]*)/?([^/]*)/? /usermanual/user_manual.php?overview=$1&content=$2 [PT]

Thank You
__________________
Peace
Mike
http://www.eclecticpixel.com
Reply With Quote
  #2 (permalink)  
Old July 31st, 2007, 09:49 AM
Registered User
 
Join Date: Jul 2007
Location: Dhaka, Dhaka, Bangladesh.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to shimul39 Send a message via Yahoo to shimul39
Default

This is the best way to use full path for images or anything when you are using Rewrite Rule.

But you can overcome this by defining include path.

Try with
php_value include_path ".:/AbsolutePathHere/"

This may affect other path too. Anyways lets try but my suggestion is to use full path for all the path.

Thanks

http://www.shimul.info
Reply With Quote
  #3 (permalink)  
Old September 5th, 2007, 08:16 AM
Registered User
 
Join Date: Jul 2007
Location: Dhaka, Dhaka, Bangladesh.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to shimul39 Send a message via Yahoo to shimul39
Default

Yeh you can define default include path.
php_value include_path ".:/var/www/vhosts/mydomain.com/httpdocs/images/"

Though this is not a good idea but as you asked for it.

Hope helps.
Thanks

http://www.shimul.info
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Load Images from and Save Images to a Database cyndie VB.NET 2 August 17th, 2008 06:42 AM
Is there some ':, missing ??? saban SQL Server ASP 1 May 28th, 2007 06:32 AM
What is missing? grstad SQL Language 11 March 6th, 2006 01:53 AM
what am i missing? m002864 Crystal Reports 0 July 6th, 2004 07:24 AM



All times are GMT -4. The time now is 02:52 AM.


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