Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
defined
- Page 1
Paris Olympics Chatbot- Get Ticket Information Using Chat-GPT and LangChain
Programming
Computer Science
5 Days Ago
by usmanmalik57
… the `invoke()` method. You must pass values for the attributes
defined
in your prompt (`system` and `user` in our case). You…
Paris Olympics Ticket Information Chatbot with Memory Using LangChain
Programming
Computer Science
2 Days Ago
by usmanmalik57
… will also define `history_retriever_chain`, which takes the chat template we
defined
earlier and returns the matched document. The following script defines…
Htaccess Problem Url Friendly
Programming
Web Development
1 Week Ago
by Adolfo_1
…?slug=$1 [NC,L] **DINAMIC URL** work fine only with
defined
CONSTANT: Example <a href="<?php echo BASE_URL…
Re: Social Media is Very Interesting Media.
Digital Media
Digital Marketing
3 Weeks Ago
by KomalBhatt
Yes, Social media is really interesting media and we all can say it is the only platfrom that had led the easiest way to communicate with each otb=her easily however it has it's own pros and cons but connecting the world for that social media is one of a kind factor.
Re: Htaccess Problem Url Friendly
Programming
Web Development
1 Week Ago
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
1 Week Ago
by Adolfo_1
NO! I meant that URL loads but not friendly I have to put these STATIC URLs inside the text retrieved from the database as I cannot insert php strings. Example from database example that htaccess makes unfriendly : <em><a href="../read-lex.php?slug=Provvedimento-di-sospensione-Trib-Cagliari">Vedi SENTENZA&…
Re: Htaccess Problem Url Friendly
Programming
Web Development
1 Week Ago
by Dani
I apologize that I still am misunderstanding you. I'm confused what you mean by "example from database", because it seems your question is about htaccess and PHP. I'm confused 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 …
Re: Htaccess Problem Url Friendly
Programming
Web Development
1 Week Ago
by Adolfo_1
I apologize because I am unclear. Difference between readlex and read_lex is my mistake Your htaccess example is right except that it doesn't work for me and I don't understand. Summary: In <head> I have this php: define("BASE_URL", "http://localhost/mysite/"); if($mod_rewrite == 'Off') { …
Re: Htaccess Problem Url Friendly
Programming
Web Development
1 Week Ago
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
1 Week Ago
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
1 Week Ago
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
1 Week Ago
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
1 Week Ago
by Dani
Isn't that expected behavior?
Re: Htaccess Problem Url Friendly
Programming
Web Development
1 Week Ago
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
1 Week Ago
by Adolfo_1
Thank you for your patience
Re: Htaccess Problem Url Friendly
Programming
Web Development
1 Week Ago
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.
Track Faces from Videos with Margins Using Deep Learning in Python
Programming
Computer Science
2 Months Ago
by usmanmalik57
… the image frame with extra pixels using the `pad_image_to_size` function
defined
in the script below: ``` def pad_image_to_size(img, target_height, target_width): # Calculate…
TensorFlow Keras Sequence Data Generator for Multimodal Classification
Programming
Computer Science
2 Months Ago
by usmanmalik57
… the corresponding label set. And that's it. You have
defined
your custom sequence data generator in Keras. ``` class MultiModalDataGenerator(Sequence…
Exploring the Intricacies of Network Topologies
Hardware and Software
Networking
2 Months Ago
by Bellicn063
… constraints. Virtual networking allows for the creation of dynamic, software-
defined
topologies that adapt and evolve in response to the demands…
What criteria define the best digital marketing company?
Digital Media
Digital Marketing
2 Months Ago
by Jamesclerk241
The best digital marketing company is
defined
by several key criteria. Firstly, expertise in diverse digital channels, …
Converting PDF Image to CSV Using Multimodal Google Gemini Pro
Programming
Computer Science
2 Months Ago
by usmanmalik57
…. The following calls the `get_jpg_file_paths()` and `read_image()` functions that we
defined
earlier to read all the images in my input directory…
Re: Issues migrating Magento products
Programming
Web Development
2 Months Ago
by anastefanyuk
…. Double-check that your file matches the structure and elements
defined
in Magento's documentation. XML Closing Tags: Verify that all…
Re: import image from database image folder to pdf using fpdf
Programming
Web Development
1 Month Ago
by gottaloveit
it's complaining the index "gambarvk_image" is not
defined
on line 821 which is code we can't see. …
Re: Yes, ChatGPT Got Dumb & Lazy, but 4.5 Could Be a Gamechanger
Community Center
2 Months Ago
by carriejo810
I did not quite feel it personally thought. But Bard is catching up for sure.
Re: Exploring the Intricacies of Network Topologies
Hardware and Software
Networking
2 Months Ago
by cat_127
1. Star topology: In a star topology, all devices are connected to a central hub, forming a hub-and-spoke structure. This centralized design simplifies management and troubleshooting because problems with one connection typically do not affect other connections. Star topologies are commonly used in local area networks (LANs) and are known for …
Re: Exploring the Intricacies of Network Topologies
Hardware and Software
Networking
2 Months Ago
by Dani
Your profile says you're a social media marketing manager. Soooooo why are you posting this? Is this AI-generated content? Is it a personal interest of yours?
Re: Track Faces from Videos with Margins Using Deep Learning in Python
Programming
Computer Science
2 Months Ago
by EdwardMatthew
It's fantastic, I have read this article and it is super amazing. thankyou for the knowledge.
Re: Fine-Tuning OpenAI Whisper Model for Audio Classification in PyTorch
Programming
Computer Science
1 Month Ago
by habi_2
how to use the best_model.pt
Re: What criteria define the best digital marketing company?
Digital Media
Digital Marketing
1 Month Ago
by MariaMorris
It's like this, short and very informative. Totally agree.
Re: Question: Is an asp.net application multi user defined
Programming
Web Development
13 Years Ago
by Lusiphur
Defined
session states (or equivalents) can add more direct control on …
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC