I am using php to grab and echo curPageURL
<?php echo curPageURL(); ?>
that gives me something like: http://mywebsite.com/folder/
Which is great, but I also want to add another href , to redirect to:http://mywebsite.com/folder/thankyou/
But I would like to append /thankyou/ to curPageURL
so like: curPageURL/thankyou/
does that make sense ?
It is for use on fb feed api, and wish to add a redirect_uri using my code ( I have everything working ) just not the /thankyou/ bit …
Was just wondering if I can append a directory onto the end of the CurPageURL
( I don’t really want to use explicit url )
Hmm ok I think I fixed it lol ( my brain farted )
$thisurl = curPageURL(); $thanks = "thanks/"; $thaturl = $thisurl . $thanks;
Just a quick tip, you should use single quotes.. and heres why: http://stackoverflow.com/questions/482202/is-there-a-performance-benefit-single-quote-vs-double-quote-in-php
- Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
- Open a support ticket if you would like specific help with your account, deposits or purchases.
- Item Support by authors is optional and may vary. Please see the Support tab on each item page.
Most of all, enjoy your time here. Thank you for being a valued Envato community member.