Dani 4,084 The Queen of DaniWeb Administrator Featured Poster Premium Member

You can use a website like Built With if you want to quickly see what frameworks a website that is already in their system is using.

However, to figure it out for yourself, it's just a matter of looking at the HTML source code for a webpage and seeing if you can find javascript tags, etc. that are used by the framework. For example, you can see that we use jQuery and Bootstrap here at DaniWeb.

That being said, this is only going to tell you what's being used on the front end. It takes some hacker-level sleuthing to figure out what backend technologies a website is using, if they aren't announcing them.

Chris_103 -2 Newbie Poster

To retrieve all records associated with the current user, you can use the fetchAll() method instead of fetch(). Here's how you can modify your code:

// Query database to retrieve records associated with the user
$sql = "SELECT * FROM table_name WHERE variable_name = :variable_name";
$stmt = $conn->prepare($sql);
$stmt->bindParam(':variable_name', $variable_name, PDO::PARAM_STR);
$stmt->execute();
$records = $stmt->fetchAll(PDO::FETCH_ASSOC);

This will fetch all rows that match the criteria specified in the SQL query and store them in the $records variable as an array of associative arrays.

Biiim commented: looks like an AI answer, he did use the fetchAll command but got 1 result -2
rproffitt 2,565 "Nothing to see here." Moderator
rproffitt 2,565 "Nothing to see here." Moderator
  1. Read the source Luke.
  2. Wappalyzer Chrome extension
ndonetimok 0 Newbie Poster

Hello guys, please can someone explain to me how i can know the framework of any website on the internet. I know how i can detect wordpress but other framework are hard for me. Please i need assistance on this.

Rabiya_1 0 Newbie Poster

I'm New In c# and want to create a windows service
here what I'm trying

public TestService()  
        {  
            InitializeComponent();  
            timeDelay = new System.Timers.Timer();  
            timeDelay.Elapsed += new System.Timers.ElapsedEventHandler(WorkProcess);  
        }  
        public void WorkProcess(object sender, System.Timers.ElapsedEventArgs e)  
        {  
            string process = "Timer Tick " + count;  
            LogService(process);  
            count++;  
        }  
        protected override void OnStart(string[] args)  
        {  
            LogService("Service is Started");  
            timeDelay.Enabled = true;  
        }  
        protected override void OnStop()  
        {  
            LogService("Service Stoped");  
            timeDelay.Enabled = false;  
        }  
        private void LogService(string content)  
        {  
            FileStream fs = new FileStream(@ "d:\TestServiceLog.txt", FileMode.OpenOrCreate, FileAccess.Write);  
            StreamWriter sw = new StreamWriter(fs);  
            sw.BaseStream.Seek(0, SeekOrigin.End);  
            sw.WriteLine(content);  
            sw.Flush();  
            sw.Close();  
        }  




    Can any body help me step by step guide
Biiim 182 Junior Poster

logically, it would be because WHERE variable_name = :variable_name matches 1 row in your table

maybe try a var_dump(str_replace(':variable_name',"'some_value'",$sql));var_dump($records);?

run the sql on whichever way you use to access your DB directly

I don't use PDO so i'm not too familiar on how it returns results, either way you will know which part is faulty after you do the above.

Biiim 182 Junior Poster

Hi David,

More problems. I incorporated the coding Biiim provided. Before any changes, after submission, would display the correct (yellow) screen. After code changed, not only will still not send email but screen turns blank white. URL provider, IONOS, told me that the Host is smtp.ionos.com and the Username and password are for an email address associated with the domain that the online submission page is on, and since these online submission pages are on a total of 4 domains, each using a different email address, if doing one on a different domain, would have a different username and password (doesn't explain how to send more than 1 email address though, including forward only email addresses that don't have password). They also said that Port = 465. In the code block below, I included the new code added (plus the original all //'d). The submission pages use ReCaptcha 3 which works so I omitted the code for it from the code block below. One weird thing, in my editor, the 'use' commands were coming back as syntax errors but would display blank white screen regardless if the use commands are there or //'d. The 'includes' directory name from Biiim's code was changed to PHPMailer and is in the web root directory (each of the 4 domains has its own web root directory, the PHPMailer one is in the root as are the other 4, such as RNHindex, directory for RadiantNewHorizonHomes.com where the code block shown below is stored: e.g. …

Dani 4,084 The Queen of DaniWeb Administrator Featured Poster Premium Member

To clarify, I am suggesting:

[...]

//make your email body to send here
$survey =
    "RadiantNewHorizonHomes.com General Inquiries" . "\r\n" . "\r\n" .
    "Name: " . $_POST['Name'] . "\r\n" .
    "E-mail Address: " . $_POST['Email'] . "\r\n" .
    "Phone Number: " . $_POST['Phone'] . "\r\n" .
    "Comments or Questions: " . $_POST['Message'] . "\r\n"
;

[...]
Dani 4,084 The Queen of DaniWeb Administrator Featured Poster Premium Member

After code changed, not only will still not send email but screen turns blank white.

That's a PHP fatal error. It could be a syntax error, or it could also be that PHPMailer is not in the location you're telling PHP to look. Do you have any way of accessing the error log? Without access to the server, perhaps through a web-based control panel like cPanel, etc.?

At first glance, I see that on lines 11-18 in the code you posted above, you don't have a semi-colon at the end.

Mikekelvin 0 Newbie Poster

To ensure that you're retrieving all records associated with the current user, you need to make sure that your query accurately filters the data based on the user's identifier (variable_name). Here's how you can modify your query to achieve this:

// Assuming $currentUser holds the identifier of the current user

// Query database to retrieve records associated with the current user
$sql = "SELECT * FROM table_name WHERE variable_name = :variable_name";
$stmt = $conn->prepare($sql);
$stmt->bindParam(':variable_name', $currentUser, PDO::PARAM_STR);
$stmt->execute();
$records = $stmt->fetchAll(PDO::FETCH_ASSOC);

In this modified version of your code, $currentUser represents the identifier of the current user. This identifier should uniquely identify the current user in your database. By binding this value to the :variable_name parameter in your SQL query, you ensure that only records associated with the current user are retrieved.

Make sure that $currentUser holds the correct value before executing the query to ensure accurate filtering of records. If there are still issues with retrieving multiple rows of data, verify that there are indeed multiple records associated with the current user in your database.

david.tigner 45 Newbie Poster

More problems. I incorporated the coding Biiim provided. Before any changes, after submission, would display the correct (yellow) screen. After code changed, not only will still not send email but screen turns blank white. URL provider, IONOS, told me that the Host is smtp.ionos.com and the Username and password are for an email address associated with the domain that the online submission page is on, and since these online submission pages are on a total of 4 domains, each using a different email address, if doing one on a different domain, would have a different username and password (doesn't explain how to send more than 1 email address though, including forward only email addresses that don't have password). They also said that Port = 465. In the code block below, I included the new code added (plus the original all //'d). The submission pages use ReCaptcha 3 which works so I omitted the code for it from the code block below. One weird thing, in my editor, the 'use' commands were coming back as syntax errors but would display blank white screen regardless if the use commands are there or //'d. The 'includes' directory name from Biiim's code was changed to PHPMailer and is in the web root directory (each of the 4 domains has its own web root directory, the PHPMailer one is in the root as are the other 4, such as RNHindex, directory for RadiantNewHorizonHomes.com where the code block shown below is stored: e.g. in the root …

rproffitt 2,565 "Nothing to see here." Moderator

A software development kit is a collection of software development tools in one installable package.

As such your last question doesn't make sense. The SDK installs your software development tools and your code would be where the API is called but not a call to the SDK!

FarrisFahad 86 Junior Poster Premium Member

I want to understand how I can add an SDK to my PHP projects to make APIs calls. I noticed that every software company have an SDK. I also noticed that most SDKs use Composer. I don't know what composer is and do I need to have it for every SDK?

I am also using PHP procedural programming and I noticed that these SDKs use OOP.

Can someone help me make my first API call using an SDK?

pritaeas 2,194 ¯\_(ツ)_/¯ Moderator Featured Poster

https://docs.airtm.com/purchases-payins/create-purchase

You can choose PHP in the dropdown above the sample code. That way you can see what your PHP should contain.

ianhaneybs 0 Newbie Poster

I have a opencart 2.3 store and I have downloaded a extension that shows all products on one page, it creates a category called All and displays all products in that category.

It's working all ok but I would like to have the product filter displayed in the left column so it's the same as the other categories.

For example the category here https://www.beechwoodsolutions.co.uk/sites/simply-heavenly-foods/index.php?route=product/category&path=271 has the product filter in the left column.

On the all products category page here https://www.beechwoodsolutions.co.uk/sites/simply-heavenly-foods/index.php?route=product/category&path=-1 I would like to have the product filter displayed.

The extension I downloaded is https://www.opencart.com/index.php?route=marketplace/extension/info&extension_id=29713.

I have contacted the developer but don't think they are active anymore so was seeing if anyone was able to help please.

Biiim 182 Junior Poster

You don't need composer or access to the php.exe.

just locate the PHPmailer Directory into your web root, to keep it simple and the require links should point to where it is located.

mine is require 'includes/PHPMailer/src/PHPMailer.php';

cause I put it in a folder called includes, this should be relative to the file that is using it.

if you have a file inside a directory using it you will need to go up directories until you reach root - or wherever you put the PHPMailer folder. like require '../../includes/PHPMailer/src/PHPMailer.php';

I don't have access to the hosting server either and I didn't use composer

EDIT:
to download it just go to Github https://github.com/PHPMailer/PHPMailer

click on the green button that says code and click download zip, extract it and put that directory onto your ftp and require it in the file

EDIT2:

All they said was that something changed in Feb 2024 (last on line submission form I received was in early Feb 2024 so the timeline is matching).

Feb 2024 is date co-incident with Google and Yahoo requiring DMARC authentication for sending emails to them, the mail() function was probably failing these tests on DMARC & DKIM, that would explain why it died at that time

david.tigner 45 Newbie Poster

Ran into some new issues. Here goes. In order to download PHPMailer, must download Composer. In order to install Composer, need a Command Line PHP.exe file. I do not have one of these. I have been using PHP services from URL provider, 1 & 1/Ionos since 2011. They said in order to get a Command Line PHP.exe file, requires SSH to 'Connect to Webspace'. They use Linux web hosting packages and said to use PuTTY. I installed that and successfully signed in. From here it is unclear of what to do and Ionos doesn't know either. All they said was that something changed in Feb 2024 (last on line submission form I received was in early Feb 2024 so the timeline is matching). Question: how does one get the Command Line PHP.exe file needed to install Composer ? In Composer Setup, this Command Line PHP.exe file would be added to the 'PATH'.

Dani 4,084 The Queen of DaniWeb Administrator Featured Poster Premium Member

I can see that the URL that you linked me to has 4 steps to create a purchase.

The first one is to create a Purchase via an HTTP POST request. That can be done with a cURL request. cURL requests require some backend programming such as via PHP or some other language. Are you using a server-side language to write your web app? If so, which one so we can better assist you? If not, you cannot use this API.

FarrisFahad commented: I am using PHP +10
pritaeas 2,194 ¯\_(ツ)_/¯ Moderator Featured Poster

You cannot safely use a form to post directly to AirTM. Post to your own PHP script, which can then use curl to make the request, including headers.

Goldn commented: Thank you for your response. appreciated +0
FarrisFahad 86 Junior Poster Premium Member

Hello,

I am somewhat new to APIs. I have integrated PayPal payments successfully. With PayPal, I can send the user to the payment page using an HTML form. Here is an example ...

<!-- PAYPAL -->
<form action="https://www.paypal.com/cgi-bin/webscr" method="POST" name="_cart">
    <input type="hidden" name="cmd" value="_cart" />
    <input type="hidden" name="upload" value="1" />
    <input type="hidden" name="no_shipping" value="1" />
    <input type="hidden" name="business" value="" />
    <input type="hidden" name="currency_code" value="USD" />
    <input type="hidden" name="item_name_1" value="" />
    <input type="hidden" name="amount_1" id="amount" value="1.00" />
    <input type="hidden" name="custom" value="" />
    <input type="hidden" name="return" value="" />
    <input type='hidden' name='notify_url' value="">
    <input type="hidden" name="cancel_return" value="" />
    <input type="submit" class="submit" value="Deposit Money Via PayPal">
</form>
<!-- PAYPAL -->

I want to do the same thing for AirTM. Here is their developer page: https://docs.airtm.com/purchases-payins/create-purchase

I am not sure where to include the Header information.

Can you help?

Dani 4,084 The Queen of DaniWeb Administrator Featured Poster Premium Member

Glad you were able to get it working.

I am seeing the product page with a video you're referring to. The video does not autoplay. Are you wanting the video to autoplay? (I don't think it should. It's a bad user experience.) Is Google not considering these pages as having video content?

rproffitt 2,565 "Nothing to see here." Moderator

Just a tip. Take a few minutes to complete your DANIWEB profile to add your site and maybe get your tagline working.
Welcome to DANIWEB.

Read a Book 54 Newbie Poster

WOW finally solved! Thank you so much DANI !!
Removing the autoplay from the // Product Gallery Swiper1 == solved the problem!

Thank you so much!

Here is a product page with a video
https://www.kupisi.mk/product/за-дома/глава-за-туш-со-филтер-за-прочистување-вода/41

futurmagnussen 0 Newbie Poster

I have develop a website for now its on wordpress i will move on to more custom an secure option can any of you help me decide if to ad more services or not to it....just for your info me and my friends are freelancer and each of my friend have a different skill set.

Dani 4,084 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hello,

Google Search Console is showing that vidceo is not the main content of the page, because I don't see any video on this page? I don't see how not having the carousel loop by default will change that?

Or are you referring to the other products at the bottom of the page that are rotating through as well?

Either way, I'm not seeing video anywhere on the page?

Can you provide a URL with an example of a product that has video, so I can see why you think Google is not prioritizing it?

As far as your carousel is concerned, I see a link to the javascript file https://www.kupisi.mk/js/dz.carousel.js at the bottom of the page. When I look at this MoonCartCarousel, I see that it is just the theme making calls to a jQuery class called Swiper and telling Swiper to set autoplay with various delays of 1500-2000 milliseconds. So then I looked at swiperjs.com and I can see here in the API docs that simply removing the autoplay: { } parameter will completely disable autoplay. You can make some other tweaks as well.

dz.carousel.js currently looks like this (I passed it through a JS beautifier to format the code):

var MoonCartCarousel = function() {
    var handleMainSwiper = function() {
        if (jQuery('.main-swiper').length > 0) {
            var swiper = new Swiper(".main-swiper-thumb", {
                loop: true,
                spaceBetween: 10,
                freeMode: true,
                watchSlidesProgress: true,
                autoplay: {
                    delay: 1500,
                },
            });
            var swiper2 = new Swiper(".main-swiper", {
                loop: true,
                effect: "fade", …
Read a Book 54 Newbie Poster

@rproffitt

I tried it with various higher numbers than 0 and it did no helped...

How can this be so big problem i don't understand :/

The products with videos in them are hurting my SEO...

Screenshot_2024-03-21_093154.png

rproffitt commented: That tells us that the object is not a slide/carousel or wrong object. Why not use a static image instead? +17
Dani 4,084 The Queen of DaniWeb Administrator Featured Poster Premium Member

I wonder if the problem is that your php mail() function is configured to use SMTP in your php.ini file. A lot of SMTP servers switched over the past year or so to using XOAuth2 for authentication. A username + password in your config settings will no longer suffice to establish a connection. You can see me complaining about it here. It's my understanding that PHPMailer has built-in XOauth2 support so that was a good recommendation. Here's a link to a Q&A on Stack Overflow that has an example implementation of using XOauth2 with PHPMailer.

david.tigner 45 Newbie Poster

Re: Biiim's post, the coding you suggest to get error messages looks like something good to try and the PHP Mailer stuff looks the same as the generic code I got from Ionos. It sounds like all these methods are appearing favorable for solving the problem. This kind of troubleshooting can be very frustrating so thanks for your help.

david.tigner 45 Newbie Poster

I do not have access to the PHP error log nor do I know how to check to see if mail() is returning false. The coding I'm using has worked (e.g. sent email with submitted info) for 13 years and now stopped working. My URL/PHP provider, Ionos, claims it won't send because all recipient email addresses need to be authenticated and a new STMP PHPmailer program needs to be used. In generic coding I got for that, I saw $mail -> send();. I'm going to try $mail -> send($to,$subject,$message,$headers); to see if that works.