-
CSS Import
There should be no space between url and the parentheses. Here’s the corrected syntax: @import url("assets/bootstrap/css/bootstrap.min.css"); @import url("../assets/fonts/ionicons.min.css"); @import url("Footer-Basic.css"); @import url("Navigation-Clean.css"); @import url("links.css");
-
-
Contact Form ! Help me....
The issue occurs because you are passing an array of headers into the mail() function, while the mail() function expects a string for the headers. You need to convert the headers array into a string before passing it to the function. Here’s how to fix it: <?php // Retrieve form data $name = $_POST['name']; $from = $_POST['email']; $subject = $_POST['subject']; $message = $_POST['message']; $to = 'info@geapellas.gr'; // Replace with your email // Build headers $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type: text/plain; charset=iso-8859-1" . "\r\n"; $headers .= "From: {$name} <{$from}>" . "\r\n"; // Send email mail($to, $subject, $message, $headers); // Optional: Redirect or show success message echo "Email sent successfully!"; die; ?> Key Changes: 1. Headers as a String: Instead of using an array for $headers, I concatenated the headers into a string, which is required by the mail() function. 2. Newline Characters (\r\n): Each header line is separated using \r\n, which is the standard for email headers.
-
Need help setting up Ngrok?
Hi, anybody here using Ngrok for hosting on own server? Currently, you need to run this two code from the ngrok.exe terminal in order to activate and open up the tunnel to your server: ngrok config add-authtoken 21WFrTHH68ULVWhxXM1TnU5MBw8Y_YYz6NB8utkRNd ngrok http http://localhost:8080 Is there any automation of a much more easy way to run this script especially after a machine restart? Thanks.
-
Web System Audit Trail
Most of the page is hard coded. I'll later will create all the login page, registration page, session controller.. In the mean time, let me have a look at this getClicky things first. Thanks.
-
Web System Audit Trail
I was thinking to update into my database when they click any file to download: <a href="file1.pdf" title="File 1" onclick="myFunction()">Download Me!</a> myFunction will later be the sql query.. UPDATE table_name SET column1 = value1, column2 = value2, ... WHERE condition; Will this slows down my web page? Is this the proper way to achieve my goal?
-
Web System Audit Trail
Greetings, I have successfully implemented this script (PHP Directory Lister) into my workplace document management system. What I plan to do now is to add in a simple audit trail or audit log of user activity on that system: What file user download (time and date). Document their IP addess Login date and time Does any of you ever did this or can anybody share some idea where to go from here? Thanks.
-
Classic ASP - Text Truncate Function
Thanks fisicx! Appreciate the sollution. It works flawlessly.
-
-
Classic ASP - Text Truncate Function
Well, is there any other method other than the classic asp or html/css solution to achieve this?
-
Classic ASP - Text Truncate Function
Hi, anybody here knows the simplest Classic ASP function to truncate a long text? Example: 1. This is a very long text. 2. This is a very... Text got truncated at certail length.
-
What you think of my new logo?
3rd!
-
Website structure - beginners question
Web designer world is an art! You should have at least an art mind to be a web designer. Some people were born with that gift and it makes it easy for them to express their ideas. Some people have to shape their own skills from scratch and soon become a good designer, sometimes failed. As for me, this is my step when I start venture into web designing world: Learn HTML (how to code with proper validation) Learn CSS (for layout, positioning stuff and avoiding the inline HTML stuff) Learn PHP (how to include common files, database connection, dynamic language) Learn PHOTOSHOP(this is the main aspect if you want to be a designer) Learn OPTIMIZING(HTML, PHP, CSS, IMAGES, JS) and lastly, Learn how to live like a WEB DESIGNER Good luck to you, You have a very long day ahead of you!
-
Editing An XML FIle
Well, I guess no one knows much about XML here. So I dig my very own research on this issue and managed to solve what it seems to be a big issue but actually a small one. Thanks anyway for the effort guys. Appreciate it!
-
Editing An XML FIle
Ok, after surfing for a few hours learning PXP-XML thingy, I managed to magically update my XML file with this PHP code using DOMDocument function: // --- Updating the XML File ------------------------------------------- // $xml = new DOMDocument(); $xml->load("../piecemaker.xml"); $root=$xml->documentElement; //find the tags that you want to update $tags = $root->getElementsByTagName('Image'); //find the tag with the id you want to update foreach ($tags as $tag) { if($tag->getAttribute("id") == "slide1") { //found the tag, now update the attribute $tag->setAttribute("Source", "newImageName.jpg"); $tag->setAttribute("Title", "newImageTitle"); } } //save the xml $xml->save("..piecemaker.xml"); The issue now is it removed some end tag in the xml file: // Original Structure <Contents> <Image id="1" Source="image/piecemaker1.jpg" Title="piecemaker1"></Image> </Contents> // After successfully update, the </Image> is missing <Contents> <Image id="1" Source="newImageName.jpg" Title="newImageTitle"> </Contents> I am wrong somewhere?
-
inserting and deleting using php
I haven't look up at your INSERT issue yet but I have a perfect tutorial online for you to learn how to Delete multiple rows from mysql with checkbox
-
Editing An XML FIle
Almost like that, let me refresh everyone with what I want to achieve here. I have this XML file (sample.xml): <?xml version="1.0" encoding="utf-8"?> <Piecemaker> <Contents> <Image id="1" Source="image/piecemaker1.jpg" Title="piecemaker1"></Image> <Image id="2" Source="image/piecemaker2.jpg" Title="piecemaker2"></Image> <Image id="3" Source="image/piecemaker3.jpg" Title="piecemaker3"></Image> <Image id="4" Source="image/piecemaker4.jpg" Title="piecemaker4"></Image> </Contents> </Piecemaker> Its for a slider on my main page. I want to limit the number of slider to 4 image only. Nothing more. So, I created an HTML form (four upload form for each image) for me to insert the image and eventually update the XML file above with the newly uploaded image file name. So what I want the PHP to do is, right after the script to insert the image is successfully done, then a script will be executed to update the existing xml file with the newly uploaded image file name: upload-slider1.php Form Image:__________(Browse) Title:__________ Submit submit-image.php $new_file_name = $_POST['image']; $title = $_POST['title']; Upload image to directory here! .. . // Loop the XML file if image id == "1", or 2,3,4 set the Source to "&new_file_name" set the Title to "$title" update the XML file save document I have issue in the xml looping part and updating the existing xml attributes as well.