close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

What is the function of rel2abs()?

Thread began 8/20/2012 6:24 am by msummers194171 | Last modified 8/21/2012 9:21 am by msummers194171 | 1317 views | 4 replies |

msummers194171

What is the function of rel2abs()?

On any page that is redirecting after writing to a database, this code is inserted as part of the block that handles the database write -

if (function_exists("rel2abs")) $WA_redirectURL = $WA_redirectURL?rel2abs($WA_redirectURL,dirname(__FILE__)):"";

Is that to make the redirection use an absolute link (as it should)?

header("Location: " . $whatever)

If so, it's not working for me. It always inserts some incomplete path that looks like $_SERVER['DOCUMENT_ROOT'] to me. It should be something beginning with "http://www.example.com/" shouldn't it? In most cases, my redirection is failing and I wind up just commenting out the block of code I put above.

Sign in to reply to this post

Ian S

Hi,

Is this happening to you when using the behaviour on a page with the Framework?

I have similar issues (but only on some sites).

Cheers
Ian

Sign in to reply to this post

msummers194171

No - it's on plain pages created with DA2 or DB only.

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

msummers194171

Jason - I'll reply to this ticket today.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...