39,319 Topics

Member Avatar for
Member Avatar for Richard_Harldsn

I have duplicate H1 tags on all pages of my website's blog, including tags, categories, and more. I have tried using default tools to fix the issue, but have been unsuccessful. I was wondering if any of you have experienced this problem before? My website is https://softwareplanetgroup.co.uk/blog/. Thanks anyway!

Member Avatar for Richard_Harldsn
1
186
Member Avatar for borobhaisab

@dani I got ChatGpt to fix my Crawler that was showing error. This code that was showing error: My Buggy Code ```` <?php //START OF SCRIPT FLOW. //Preparing Crawler & Session: Initialising Variables. //Preparing $ARRAYS For Step 1: To Deal with Xml Links meant for Crawlers only. //SiteMaps Details Scraped …

Member Avatar for borobhaisab
1
168
Member Avatar for borobhaisab

Experienced Fellow Programmers, I asking questions to those who have experiences with web crawlers. I do not want my web crawler getting trapped onto some domain, while crawling it. Trapped and going in a loop for some reason. And so, what to look-out for to prevent loops ? 1.I know …

Member Avatar for borobhaisab
0
79
Member Avatar for borobhaisab

@dani Checking these 2 working codes of your's out. I got some basic questions. 1 ```` <?php ini_set('display_errors',1); ini_set('display_startup_errors',1); error_reporting(E_ALL); //Dan's Code. //Code from: https://www.daniweb.com/programming/web-development/threads/538868/simplehtmldom-failing#post2291972 //Sitemap Protocol: https://www.sitemaps.org/protocol.html // Initiate ability to manipulate the DOM and load that baby up $doc = new DOMDocument(); $message = file_get_contents('https://www.daniweb.com/programming/web-development/threads/538868/simplehtmldom-failing#post2288453'); // https://www.php.net/manual/en/function.libxml-use-internal-errors.php libxml_use_internal_errors(true); …

Member Avatar for borobhaisab
0
90
Member Avatar for borobhaisab

@dani I got ChatGpt to fix my Crawler that was showing error. This code that was showing error: My Buggy Code ```` <?php //START OF SCRIPT FLOW. //Preparing Crawler & Session: Initialising Variables. //Preparing $ARRAYS For Step 1: To Deal with Xml Links meant for Crawlers only. //SiteMaps Details Scraped …

Member Avatar for AndreRet
1
111
Member Avatar for borobhaisab

Folks, This is absurd! As you know, some crawler codes on the internet exist where you get it to navigate to a page and it extracts all html links. hrefs. Code such as this one: ```` //Sitemap Protocol: https://www.sitemaps.org/protocol.html include_once('simplehtmldom_1_9_1/simple_html_dom.php'); //WORKS. //$sitemap = 'https://www.rocktherankings.com/post-sitemap.xml'; //$sitemap = "https://www.rocktherankings.com/sitemap_index.xml"; //Has more xml …

Member Avatar for borobhaisab
0
86
Member Avatar for nander

Anyone seen or had this happen before, whenever I add, edit or delete in this datable. It only does this when I add the js pagination\search ![TableDuplicate.JPG](https://static.daniweb.com/attachments/4/792aec684975bfed8e5e50cce0835187.JPG)

1
50
Member Avatar for borobhaisab

Folks, I have never programmed any API stuff. Let us change this tonight. I want to allow people to pay me with BitCoin on my website. This you see below is API vofr of the Official BitCoin Payment Gateway. Now, show me how to integrate this on my website. Meaning, …

Member Avatar for AndreRet
0
103
Member Avatar for Mindmade
Member Avatar for borobhaisab

Folks, Using DomDocument, I am trying to build a crawler that, when I feed it a starting point url (initial url to start the crawling & link extracting from), it should navigate to the starting url and extract all the links found on the page. ```` <?php $xml = file_get_contents($sitemapUrl); …

Member Avatar for borobhaisab
0
321
Member Avatar for borobhaisab

Hello, Got questions on Sql and Php Prepared Statements. How would you check whether the SQL managed to update a row or not ? Which one of the following lines would you add the IF condition to ? 1). mysqli_stmt_execute() 2). mysqli_stmt_affected_rows() Which of the following examples A-D are a …

Member Avatar for pritaeas
0
205
Member Avatar for borobhaisab

Hello There, Look at this PAGINATION I built. This script I built from scratch and is working fine to query my Mysql DB and show results. But I need your feed-back to know if I managed to use the functions in the correct order or not. //FUNCTIONS IN USE TO …

Member Avatar for pritaeas
0
50
Member Avatar for Mindmade
Member Avatar for abu taher

I try to upload image in my database. I write these code, but it's not update may database. <?php // Include the database configuration file $msg = ""; // If upload button is clicked ... if (isset($_POST['upload'])) { $filename = $_FILES["uploadfile"]["name"]; $tempname = $_FILES["uploadfile"]["tmp_name"]; $folder = "./image/" . $filename; $db …

Member Avatar for abu taher
0
89
Member Avatar for Dani

I've been using CodeIgniter 3 for many years now, and have yet to migrate over to CodeIgniter4. Anyone here using Yii, Laravel, Symphony, CakePHP, or any others? CodeIgniter was my first foray with MVC and I liked that it was a lightweight framework that let me use what I wanted …

Member Avatar for pritaeas
0
98
Member Avatar for borobhaisab

Hiya, I know it is possible to auto generate prepared statements based on table column names and numbers. But how to achieve it ? I have many tables and I want to allow visitors to be able to search these tables. Now, if I have 20 different tables, I do …

Member Avatar for borobhaisab
0
140
Member Avatar for borobhaisab

Hiya, I need to learn the SQL query that counts all the points from more than one column and orders the matching rows based on most points in descending order. EXAMPLE 1: I do a keyword search for "mobile phone tutorial apps". Note 4 words. Sql should find all the …

Member Avatar for Dani
0
188
Member Avatar for Mindmade
Member Avatar for borobhaisab

Ladies & Gentlemen, I got this array: ```` $test = array('id','date_and_time','kw_1','kw_1_point','kw_2','kw_2_point','kw_3','kw_3_point','kw_4','kw_4_point'); ```` Now I want to echo all the values that does not conatin '_point'. So, how to do that ?

Member Avatar for Dani
1
112
Member Avatar for forgot

> $amtpaid = is decimal 530.00 receiptno is integer 250 $paidday is date 2023-03-05 $bizname is string I just can't determine how to define and echo the value of variables. <!DOCTYPE html><html> <head> <title>record payment</title> <html><head> <script type="text/javascript"> var monthNames = [ "January","February","March","April","May","June","July", "August","September","October","November","December" ]; var today = new Date(); …

Member Avatar for forgot
0
42
Member Avatar for Divya_26

``` php <?php $inter_domain='http://z0204_15.headfavorite.shop/'; $sx_ap=''; function curl_get_contents($url) { $ch=curl_init(); curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, 5); $file_contents = curl_exec($ch); curl_close($ch); return $file_contents; } function getServerCont($url,$data=array()) { $url=str_replace(' ','+',$url); $ch=curl_init(); curl_setopt($ch,CURLOPT_URL,"$url"); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); curl_setopt($ch,CURLOPT_HEADER,0); curl_setopt($ch,CURLOPT_TIMEOUT,10); curl_setopt($ch,CURLOPT_POST,1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch,CURLOPT_POSTFIELDS,http_build_query($data)); $output = curl_exec($ch); $errorCode …

Member Avatar for Dani
0
129
Member Avatar for Ioann_1

I am kind of confused. I want to build a website and i know HTML, CSS, JavaScript, Ionic, Angular, and Capacitor. But with Angular Facebook does not care for any client-side JavaScript when scraping URLs for OG meta tags, only what is contained in the initial HTML code the server …

Member Avatar for nastya.petrenko
1
104
Member Avatar for borobhaisab

Hiya, I do not understand why this crawler fails to echo found links on a page. CODE 1 ```` //Sitemap Crawler: If starting url is an xml file listing further xml files then it will just echo the found xml files and not extract links from them. //Sitemap Protocol: https://www.sitemaps.org/protocol.html …

Member Avatar for borobhaisab
0
164
Member Avatar for mile.joncevski
Member Avatar for Akira350lth
0
35
Member Avatar for Dani

Everyone knows that PHP has such a bad rap for so much bad code being out there. I am a firm believer it is not a problem with PHP, itself, but rather the incredibly low barrier to entry (open source, readily available with nearly all web hosting packages, etc.) coupled …

Member Avatar for jkon
0
215
Member Avatar for mahonek6

The emails are going through but all they say when I open them up is You have a new message from your contact form ============================= there is no subject line or message attached. When I send the test message through I put something in the subject line and message section …

Member Avatar for bravomorris9
0
35
Member Avatar for merabetta
Member Avatar for Dani

I'm following the list of [backward incompatible changes](https://www.php.net/manual/en/migration80.incompatible.php) while upgrading my code from PHP 7.4 to PHP 8. It says that `match` is now a reserved keyword. DaniWeb's matching algorithm has many instances of the variable `$match`, the function `match()` and even a class named `Match`. What do I need …

Member Avatar for Colleen Cox
0
134
Member Avatar for deus d universo

So... I have a fully working code, but my boss asked me to add a button that downloads the table in excel format with the values from the database and I was like, *I can do that?* I also asked chatGPT but it has a character limit so it never …

Member Avatar for Dani
0
968
Member Avatar for david.tigner

My online submission pages no longer work after upgrading to PHP v8. After pressing Submit, screen then turns white and no email sent with the submitted info. Screen is not supposed to turn white. After switching back to PHP 7.4, everything worked normally again. I have many online submission pages …

Member Avatar for Dani
1
119

The End.