Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

function call in .htaccess ?

 
   Database Help (Home) -> PHP RSS
Next:  Active directory and PHP  
Author Message
Peter

External


Since: Jan 30, 2008
Posts: 1



(Msg. 1) Posted: Wed Jan 30, 2008 5:09 pm
Post subject: function call in .htaccess ?
Archived from groups: alt>comp>lang>php (more info?)

Hi,

I use something like this:

RewriteRule ^(.*).png$ ../../templates/png_help/$1.png

The links to png in my pages exist to this subdir, but in fact the png are
located somewhere else in a templates directory.
Now, I'm shuffeling folder layout, in part to support localisation etc.
therefore the location might differ based on variables.

Can I use external variables somehow in .htaccess ?
E.g. {TARGET_DIRECTORY}/templates/png_help/$1.png

Or call a function that outputs the directory ?
e.g. <?php echo DIR ?>/templates/png_help/$1.png

or .... ???

Your insights appreciated.

 >> Stay informed about: function call in .htaccess ? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Call class function from within another function? - Hey fellow nerds, Take this code for example: class hello { function world() { echo "Hello"; } } $hello = new hello(); function writeHelloWorld() { $hello->world(); } writeHelloWorld(); I get this error Fatal error: Cal...

Call to undefined function - We are still seeing problems with "call to undefined function" errors when using version 4.3.10. We are using the Windows Binary distribution that automatically installs everything. We do not have the Zend Optimizer installed, so I do not ...

function call as an array - Hi all, I'm after the PHP equivlent to this Perl construct: print @{[someFunctionCall()]}[0]; In the above example someFunctionCall() would return an array, and we're printing the first item from the returned array.. How do I do this in PHP ? (withou...

Asynchronous function call? - Hi all There is a way to exec a function asynchronously? I need to exec a function that is too slow but for me can be executed in the background... there is no way??? Thanks

Trying to call SOAP Function - Hi i am trying too call a soap function that expect to parameters. One is a complex type and one is xsd_long. Unfortunately i can't get anything working. The complex type is this: <complexType name="MainData"> <sequence> <elemen...
   Database Help (Home) -> PHP All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]