Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8409171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:49:54+00:00 2026-06-09T23:49:54+00:00

I want to echo forward slash in php as follows <a class=submenu href=<?php echo

  • 0

I want to echo forward slash in php as follows

<a class="submenu" href="<?php echo base_url('products').'/'.rawurlencode('Agarbatte/Candle');?>"

Agarbatte/Candle is not a directory but when i do this, href takes this as directory and give me the error page not found.

Any help will be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T23:49:55+00:00Added an answer on June 9, 2026 at 11:49 pm

    A slash in the URL will always be treated as a directory separator. And if you replace it with something else you won’t have a slash anymore. But that’s most likely the easiest solution..

    If you have a 1:1 mapping between the path in the URL and your filesystem you are out of luck. If your application uses a “routing layer” though, you can modify it to not treat the / as a separator when some criterium is met.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to echo out each date in my Array within a PHP file.
I want to make this form: echo '<form method=post action=ratinghandler.php style=width: 250px> <input type=hidden
I want to echo the following code: <a href=http://delicious.com/save onclick=window.open('http://delicious.com/save?v=5&noui&jump=close&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=550,height=550'); return false; class=delicious
I want to echo something if the subdomain is not mobile and the file
I'm developing a php web app in Portuguese, but when I want to echo
I want to echo out one field from my database so I do not
I want echo value json_encode by json_decode, how is it? Following php code is
I want to echo out a simple Facebook like button script in PHP, but
I want to echo the following in PHP: echo <td><p style='visibility: hidden' id='joindata$rowindex'>$joindata</p><a style='visibility:
I want to echo a full name from my MySQL database in my header.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.