Questions tagged [slash]

Please do not use this tag. The / character ("forward slash", or just "slash") is a directory separator in URLs and in many operating systems including Linux (Windows uses \ (backslash) but many applications and APIs also accept /). It is also the division operator in many languages, and marks closing tags in XML/HTML. In some languages, / characters delimit regular expressions.

The slash character / (sometimes called forward slash to distinguish it from \ ) has several common meanings in computing:

  • / is the directory separator in file names on Unix-like and POSIX operating systems, including Linux. Many Windows APIs and applications accept / as a directory (folder) separator, although some require a backslash \ instead. / is also the directory separator in URLs.
  • In many programming languages, / is the division operator . When applied to integers, / returns the quotient of the division in many languages.
  • In SGML based languages including and , / marks closing tags, as in <b>bold</b> or <br />.
  • / is a common delimiter for regular expressions searches (in , , , etc.).
465 questions
0
votes
1 answer

is there any difference in requiring a previous directory file with a slash at the begining?

Say I am in foo/bar/index.php and want foo/index.php. I require it by saying require_once '../index.php'; I saw somewhere that it is not good practice to do it like this, better to do prepend a slash making it require_once '/../index.php'; Can you…
Zevi Sternlicht
  • 5,399
  • 19
  • 31
0
votes
1 answer

Joomla new version URL not possible with subdirectory?

In my old version of joomla I used "menu-link" and named the subdirectory /xxx/ All the URLs are on that subdirectory also google knows that. so : /xxx/jantje /xxx/pietje /xxx/enverder etc. Now... a new version of Joomla (only "menu-alias"…
marlies
  • 1
  • 1
0
votes
2 answers

How to get rid of INDEXING website FOLDERS

I have put "index.html" files into every folder to create my pages. For example www.mysite.com/volunteers/jasmine/ will display jasmine's page which is the index.html inside the folder "jasmine". And the "volunteers" folder doesn't contain any…
0
votes
2 answers

can't access a file directory

This might be really nooby, but I'm trying to access a file directory so I can load all the images in it. For some reason when I input a file directory such as "/Images" it comes out as "\Images" when I create a new file and Windows can't find the…
Mike
  • 709
  • 7
  • 19
0
votes
1 answer

.htaccess folder look-alike viewing php file with and without forward slash

I'm trying to use .htaccess to make my php files look a little neater in the URL. Here's what I have: www.domain.com/file.php Here's how I would like it to be accessed (and how it should be shown in the URL: www.domain.com/file OR…
Oliver Tappin
  • 2,511
  • 1
  • 24
  • 43
0
votes
1 answer

Ignore the slash in Magento

I’ve created a menu in page.xml and it looks like this:
zuzuleinen
  • 2,604
  • 5
  • 38
  • 49
0
votes
1 answer

Remove trailing slash with htaccess but preserve query string

I am using following directives in my htaccess to remove trailing slashs from my uris to prevent duplicate content. However these directives also remove any query string, that might be present. RewriteCond %{HTTP_HOST} ^(www.)?mydomain\com$…
user990583
-1
votes
1 answer

Discord.js v14 | How do I make a Button that doesn't expire

I will send my index.js file and my command file and tell me what wrong with it the only button that works is my roles buttons Please help me as fast as possible Thanks. Index.js const { Client, GatewayIntentBits, PermissionsBitField, Permissions,…
-1
votes
1 answer

Discord slash command 2 choices

I coded a /coinflip command in python for my discord bot economy system. Now I can't figure out how to set two choices for the slash command so it is either head or tails. I tried to implement the choices via defining choices = ... when using it as…
-1
votes
1 answer

What is the use of / in the following css statement

I want to know the use of '/' in the following css statement:- background: url(a.jpg) center bottom / cover no-repeat;
-1
votes
1 answer

Discord.js: Add input field to slash command

Example Hey guys, can anyone tell me how to add such an input field to a slash command in Discord.js (v.14)? Example above.
-1
votes
1 answer

How to do slash_commands in cogs

I'm trying to implement slash_commands in my python for discord, didn't had any trouble for usual prefix command but this seems tricky and I don't know what to do? This is my code: my cog: import nextcord from nextcord import Interaction from…
-1
votes
1 answer

Deleting all Slash Commands

how to delete all slash commands using discord.js? I'm using 13.5.0 version bot.on('interactionCreate', interaction => { if (!interaction.isCommand()) return; …
VuzZ
  • 13
  • 1
  • 3
-1
votes
4 answers

how to escape file path in bash script variable

I would like to escape a file path that is stored in a variable in a bash script. I read several threads about escaping back ticks or but it seems not working as it should: I have this variable: The variables value is entered during the bash script…
FotisK
  • 1,055
  • 2
  • 13
  • 28
-1
votes
1 answer

Slash commands not listing in console (discord.js)

I recently have been using discord.js to make slash commands but made a typo. Instead of making it say /help, I made it say /hlep. I tried to find its its id by using console.log(client.api.applications(client.user.id).commands.get()), but it just…
BasicBan
  • 3
  • 2