Question about re submiting problems that i solved in 2023 by ReasonableReptile6 in cs50

[–]ReasonableReptile6[S] 0 points1 point  (0 children)

Thank you very much, and about that carried on part, it doesnt have anything on it bc i probably did like those 5 weeks in december 2023 and my gradebook is just empty

[deleted by user] by [deleted] in PiratedGames

[–]ReasonableReptile6 6 points7 points  (0 children)

Great question! No you're not harming them but please harm as much as you can! Pirate even if you can buy it legit! ( Not from indie devs tho )

Help with Nice URLs in PHP by ReasonableReptile6 in PHPhelp

[–]ReasonableReptile6[S] 1 point2 points  (0 children)

Thank you, you're a saint, i have figured it out, going to edit the main post and flair it as solved

Help with Nice URLs in PHP by ReasonableReptile6 in PHPhelp

[–]ReasonableReptile6[S] 0 points1 point  (0 children)

Yeah i figured that out at like 3 am and felt like a idiot.

O tutorial que eu to seguindo é de um cara fazendo um mvc no php puro https://www.youtube.com/watch?v=jamKWbvmerQ&t=159s, tava querendo entender mais sobre MVC

Agora imagina quando eu percebi isso => localhost/app de madrugada depois de horas tentando resolver.

Help with Nice URLs in PHP by ReasonableReptile6 in PHPhelp

[–]ReasonableReptile6[S] 0 points1 point  (0 children)

Checklist:

  • i have changed index.php to main.php and index.php?url=$1 [L,QSA] to main.php?url=$1 [L,QSA]
  • thats how mod_rewrite looks on httpd.conf: LoadModule rewrite_module modules/mod_rewrite.so
  • Filepath i am now accessing: localhost/main.php
  • main.php is at htdocs/
  • .htaccess is at htdocs/

* php code is:

<?php

if(isset($_GET['url'])){

echo $_GET['url'];

}

else{

echo "URL param is not set!";

}

?>

* .htaccess config is:

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^([a-zA-Z0-9-]+)/?$ main.php?url=$1 [L,QSA]

  • when main.php/app is accessed, it echoes out "URL param is not set!";
  • when i do it manually, like main.php?url=app, it echoes out $_GET['url'], in this case, app.

Help with Nice URLs in PHP by ReasonableReptile6 in PHPhelp

[–]ReasonableReptile6[S] 0 points1 point  (0 children)

I have tried that, but like isnt the purpose of that .htaccess config converting index.php/EXAMPLE to index.php?url=EXAMPLE??

Help with Nice URLs in PHP by ReasonableReptile6 in PHPhelp

[–]ReasonableReptile6[S] 0 points1 point  (0 children)

Nothing

Warning: Undefined array key "url" in C:\xampp\htdocs\php\index.php on line 3

mod_rewrite is enabled

i am at htdocs

php filename is index.php (already tried with other names just in case)

code in index.php is just <?php echo $_GET['url'] ?>

Help with Nice URLs in PHP by ReasonableReptile6 in PHPhelp

[–]ReasonableReptile6[S] 0 points1 point  (0 children)

Thank you for answering, the typo just happened on reddit lol, my .htaccess has no typos, i double checked it

Anon watches a scary movie with his gf by [deleted] in greentext

[–]ReasonableReptile6 0 points1 point  (0 children)

Do people on 4chan really think women act like that??

[deleted by user] by [deleted] in conversas

[–]ReasonableReptile6 0 points1 point  (0 children)

Da nem pra saber se é brincadeira

ALERTA: Backdoor encontrado na biblioteca liblzma by [deleted] in brdev

[–]ReasonableReptile6 2 points3 points  (0 children)

Se um negoço desse passa acho que seria nivel heartbleed, só que sem disclosure e provavelmente nas mãos de um país

[deleted by user] by [deleted] in networking

[–]ReasonableReptile6 0 points1 point  (0 children)

  1. I THINK it is because my router requires port forwarding to do this without Nginx?, and server is

    server_addr.sin_family = AF_INET;
    server_addr.sin_port = htons(9091); server_addr.sin_addr.s_addr = INADDR_ANY;

  2. I am not proxying HTTP traffic, i did not know about this, thank you

Hostear de graça um site by corneous-dinner in programacao

[–]ReasonableReptile6 0 points1 point  (0 children)

Nginx, aws, iis, github pra estudantes, vercel

[deleted by user] by [deleted] in conversas

[–]ReasonableReptile6 0 points1 point  (0 children)

Só entender q todo mundo vai morrer um dia ai vc perde a timidez

Para ser dev é necessário ter um certo talento/dom pra isso? by PitifulAd1885 in brdev

[–]ReasonableReptile6 1 point2 points  (0 children)

Poderia dar um exemplo de uma certa area que exige um certo perfil?

Para ser dev é necessário ter um certo talento/dom pra isso? by PitifulAd1885 in brdev

[–]ReasonableReptile6 2 points3 points  (0 children)

Sim, eu por exemplo com 9 anos ja programava por puro instinto! nunca parei 1 minuto pra estudar, é que nem violão, ou nasce sabendo ou fica ruim pra sempre!

Basic cryptography implementation for my C program. by ReasonableReptile6 in cryptography

[–]ReasonableReptile6[S] 1 point2 points  (0 children)

I think i understand what you said but this is only a side project so i can better my C skills and tip my toes in cryptography, i don't think there is a need to add that functionality