Re: A module that comes with Python, doesn´t register? Programming Web Development by Reverend Jim … pip command for that package should ALWAYS be included. For example, the command to install the opencv package was not given… Re: How to effectively promote blogger challenge games on the internet? Digital Media Digital Marketing by Dani I guess I'm confused what this project is or does. For example, I am a publisher who operates the publication DaniWeb (this one). I am also an SEO. What benefit would I get from participating? Re: Online subission forms not sending emails of submitted info Programming Web Development by Dani The first thing I will say is never output `$_POST[]` content directly into the HTML without escaping it first. You are leaving yourself wide open to an HTML injection attack. Not only that, but you're also leaving yourself open to invalid HTML. All it takes is to wrap your user-sent variables with htmlspecialchars to make sure they're HTML-escaped… Re: Htaccess Problem Url Friendly Programming Web Development by Dani The .htaccess makes the URL accessible from a friendly URI. However, it does not change any of your HTML code for you. You will still need to modify all of your HTML code to link to the new friendly URI instead of the original URL. 7 NLP Tasks to Perform for Free in Python with Mistral 7b LLM Programming Computer Science by usmanmalik57 … a lower value for text translation tasks. Here is an example: ``` input = """ I am feeling hugry, I think… the names of persons, organizations, locations, etc. Here is an example of performing NER in Python with Mistral 7b. ``` input = "… Re: Htaccess Problem Url Friendly Programming Web Development by Dani …you. I'm confused what you mean by "example from database", because it seems your question is …what is being retrieved from the database In your second example, what are the values of BASE_URL and READ_LEX? Additionally,… your .htaccess file said readlex.php but in your example in your previous post, you have read-lex.php. … Re: Htaccess Problem Url Friendly Programming Web Development by Adolfo_1 … from the database as I cannot insert php strings. Example from database example that htaccess makes unfriendly : <em><a… Htaccess Problem Url Friendly Programming Web Development by Adolfo_1 … [NC,L] **DINAMIC URL** work fine only with defined CONSTANT: Example <a href="<?php echo BASE_URL.READ_LEX ?>… Re: Htaccess Problem Url Friendly Programming Web Development by Adolfo_1 …. Difference between readlex and read_lex is my mistake Your htaccess example is right except that it doesn't work for me… Online subission forms not sending emails of submitted info Programming Web Development by david.tigner … validation failed, display an error message or take appropriate action // Example: redirect back to the form page with an error message… Re: How to Code a Load More Button? Digital Media Digital Marketing Search Engine Strategies by MarkMarketer …button using JavaScript. Please note that this example assumes that all your data is available…AJAX or Fetch API. Here's a basic example: HTML: <div id="content"…getElementById('loadMore').addEventListener('click', loadMore); In this example, the loadData() function initially loads two items… Re: Improve HAVING BY performance Programming Databases by Reverend Jim … aggregate functions might be more computationally expensive than others. For example, SUM() might be more efficient than COUNT() in certain scenarios… Re: Improve HAVING BY performance Programming Databases by Dani I'll give you another example. I've been going to the doctor a lot lately. … Re: What's up with XOAuth? Programming Web Development by toneewa … address $bounceEmail = 'bounce-handler@daniweb.com'; // Compose your bounce email (example) $bmh->setFrom($bounceEmail, 'Bounce Mail Handler'); $bmh->setRecipient… Re: ASUS Laptops - my experience Hardware and Software by rproffitt …. For Intel based laptops I usually try the Intel RST. Example https://www.intel.com/content/www/us/en/download/720755… Re: What's up with XOAuth? Programming Web Development by toneewa [Setting up phpmailer-office-smtp](https://stackoverflow.com/questions/24947434/setting-up-phpmailer-with-office365-smtp) [PhpMailer example](https://github.com/voku/PHPMailer-BMH/blob/master/examples/index.php) Maybe these will help. Re: What's up with XOAuth? Programming Web Development by Dani Unfortunately the first link is for support with PHPMailer itself (totally different library), and the second link is just a generic example of how to use the library which we are already doing. Thank you for trying though! Re: Htaccess Problem Url Friendly Programming Web Development by Dani I suppose I’m not properly understanding your question. Do you mean when you go to the URL in your browser localhost/mysite/readlex.php?slug=Le-mura-di-Lucca it doesn’t load, but when you go to the rewritten URL it works fine? Re: Htaccess Problem Url Friendly Programming Web Development by Dani > In <head> I have this php: I see you have on line 3 `if($mod_rewrite == 'Off') {`. Where do you set the value of `$mod_rewrite`? How do you tell if it's Off or On? > Which I then recall in this link and htaccess works fine: Again, where do you set the values for `BASE_URL`? > The same link without Constant PHP: What … Re: Htaccess Problem Url Friendly Programming Web Development by Dani I also think the problem is that with mod_rewrite on, READ_LEX begins with / and with mod_rewrite off, READ_LEX *ends* with /. Is the value of BASE_URL set to http://localhost/mysite or http://localhost/mysite/ ? You might be ending up with a URL that looks like http://localhost/mysitereadlex/slug instead of http://localhost/mysite/readlex/… Re: Htaccess Problem Url Friendly Programming Web Development by Adolfo_1 > Where do you set the value of $mod_rewrite? I set On-Off $mod_rewrite in database from Dashboard Admin. Now is always ON. > Again, where do you set the values for BASE_URL? In Admin config.php // Defining base url define("BASE_URL", "http://localhost/mysite/"); > What do you mean by '… Re: Htaccess Problem Url Friendly Programming Web Development by Adolfo_1 I expressed it badly. They are both dynamics. But: href="<?php echo BASE_URL.READ_LEX ?>Provvedimento-di-sospensione-Trib-Cagliari" // result = localhost/mysite/readlex/Provvedimento-di-sospensione-Trib-Cagliari href="localhost/mysite/readlex.php?slug=Provvedimento-di-sospensione-Trib-Cagliari" // … Re: Htaccess Problem Url Friendly Programming Web Development by Dani Isn't that expected behavior? Re: Htaccess Problem Url Friendly Programming Web Development by Adolfo_1 Solved the problem with this htaccess in mode rewrite ON But I don't understand why. I have to enter friendly url directly href="<?php echo BASE_URL.READ_LEX ?>Provvedimento-di-sospensione-Trib-Cagliari" // OK result = localhost/mysite/readlex/Provvedimento-di-sospensione-Trib-Cagliari href="… Re: Htaccess Problem Url Friendly Programming Web Development by Adolfo_1 Thank you for your patience Fine Tuning Google Gemma Model for Text Classification in Python Programming Computer Science by usmanmalik57 … sentiments into key-value pairs. ``` def formatting_func(example): text = f"Review: {example['review'][0]}\nSentiment: {example['sentiment'][0]}" return [text] formatting_func…-tuned model. To do so, we will take a single example and convert it to the same format as used for… The Rise of AI Scams: Deciphering Reality in a World of Deepfakes Community Center by Johannes C. …’s take a quick look at the mechanics of the example from Hong Kong: This scam is essentially an iteration of… Retrieval Augmented Generation (RAG) with Google Gemma From HuggingFace Programming Computer Science by usmanmalik57 …. We have created our vector embeddings. Let's see an example. In the following script, we pass an input query to… Re: VB2010: how use CopyMemory() API function? Programming Software Development by rproffitt Take a look at the example at https://www.codeproject.com/Articles/8641/Equivalent-of-CopyMemory-in-NET Re: How can I create a meme generator using js canvas? Programming Web Development by jessicaboland … within the canvas rather than using an overlay div. See Example: const canvas = document.getElementById('yourCanvasId'); const ctx = canvas.getContext('2d…