Posts
 
Reputation
Joined
Last Seen
Ranked #722
Strength to Increase Rep
+2
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
60
Posts with Upvotes
45
Upvoting Members
19
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
12 Commented Posts
1 Endorsement
Ranked #856
Ranked #1K
~8K People Reached
Favorite Tags
Member Avatar for Dani

The new robots.txt tester that is now built into Google Search Console is finding errors with the last two rows of my robots.txt file: Sitemap: https://www.daniweb.com/latest-sitemap.xml Sitemap: https://www.daniweb.com/sitemap.xml The error is: *Invalid sitemap URL detected; syntax not understood* Any idea what could be wrong here?

Member Avatar for Dani
1
318
Member Avatar for borobhaisab

Hello, I do not understand why the simplehtmldom is failing. This is the code: <?php ini_set('display_errors',1); ini_set('display_startup_errors',1); error_reporting(E_ALL); //--- include_once('simplehtmldom_1_9_1/simple_html_dom.php'); //--- $url = "https://victoriousseo.com/sitemap_index.xml"; $html = new simple_html_dom(); $html->load_file($url); //-- foreach($html->find("a") as $link) { echo $link->href."< br />"; } ?> I got the simplehtmldom.php on the same directory as the …

Member Avatar for Dani
1
1K
Member Avatar for merabetta
Member Avatar for gce517
Member Avatar for borobhaisab

This fails: ```` $password_hashed = password_hash(trim($_POST['password'],PASSWORD_DEFAULT); ```` This also fails: ```` $password_hashed = password_hash(trim($_POST['password'],PASSWORD_DEFAULT)); ```` This works: ```` $password_hashed = password_hash(trim($_POST['password']),PASSWORD_DEFAULT); ```` But I thought trim( did not have the closing bracket. Manual shows it does. So this is why above 3rd sample working ?

Member Avatar for Dani
0
74
Member Avatar for ChrisJ

This works successfully: $wallet = $user->wallet; $upwallet = ($sell_video == 0 && $wallet >= 1 ? 0.5 : 0); $db->rawQuery("UPDATE ".T_USERS." SET `wallet` = `wallet`- '".$upwallet."' WHERE `id` = '".$video->user_id."'"); (when the sell_video amount is 0 and the wallet amount >= 1, deduct 0.5 from the wallet). Works successfully. I'd …

Member Avatar for gce517
0
104
Member Avatar for borobhaisab

Hi, Are these MySql queries (with Php) correct ? Wild Card match. Fuzzy Match query. Imagine there are 7 columns in the Mysql table. $sql = "SELECT * from $tbl WHERE $col_1 LIKE ? OR $col_2 LIKE ? OR $col_3 LIKE ? OR $col_4 LIKE ? OR $col_5 LIKE ? …

Member Avatar for borobhaisab
0
294
Member Avatar for charlie_20

> Hi, I'm having trouble coding the if/else statement. No matter what value the expiry has, line 17 is echoed. If it is =>1 I want to sysnav.html. <?php $link = mysqli_connect("localhost", "root", "", "homedb"); // Check connection if($link === false){ die("ERROR: Could not connect. " . mysqli_connect_error()); } //MySqli …

Member Avatar for wwwalker
0
118
Member Avatar for rproffitt

Or just phishing. Here's the message I received from another Daniweb member. I redacted their name: > It is my pleasure to contact you discreetly as to discuss a mutually beneficial business, I will want to have your trust and to go into partnership investment with you which must be …

Member Avatar for gce517
2
23
Member Avatar for ___150

Hi,This code creates a friendly link on user mentions in comments... However, it is not case sensitive and vice versa. Examples; @test works @Test doesn't work The regular expression takes both values. But the query is not catching. I figured it would be a case-sensitive collation on the database. But …

Member Avatar for gce517
0
128
Member Avatar for ___150

Hi, Is it possible to convert the first letter after @ to uppercase using preg_replace? I tried; preg_replace('/\@(\w+)/', 'ucfirst("$1")', $str) But nothing changed when I sent it... 😞 Already like that... It worked, but I don't know how to add the @ before the name that will be converted. $str …

Member Avatar for gce517
0
54
Member Avatar for RC_820

hii how can i convert this yyyy-MM-dd HH:mm:ss.SSS to 2021-05-18T22:48:07.252-04:00 in php

Member Avatar for gce517
0
19
Member Avatar for Saboor880

Hi ! I have developed a Java application using Derby Database. The application jar file is successfully running on Windows but on Mac it gives and exception as following: ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriver I am pasting code for database Connection which I wrote. String dbdriver = "org.apache.derby.jdbc.EmbeddedDriver"; Class.forName(dbdriver).newInstance(); con = DriverManager.getConnection("jdbc:derby:C:\\4DSOFTECHDB; create …

Member Avatar for JamesCherrill
0
251
Member Avatar for ___150

Hi,This code creates a friendly link on user mentions in comments... However, it is not case sensitive and vice versa. **Examples;** **@test** works **@Test** doesn't work What do I do? text = "@test @Test"; $pattern = "/\@(\w+)/"; preg_match_all($pattern,$text,$matches); if($matches){ $sql = "SELECT * FROM users WHERE username IN ('" .implode("','",$matches[1]). …

Member Avatar for ___150
0
109
Member Avatar for Virat_4

HTML: <div class="container"> <div class="header">header</div> <div class="leftsidebar">leftsidebar</div> <div class="main-top">main top</div> <div class="rightsidebar">right side bar</div> <div class="bottom-left">bottom left</div> <div class="bottom-right">bottom right</div> <div class="footer">footer</div> </div> CSS: .container { display: grid; grid-template-columns: 1fr 2fr 1fr; grid-template-rows: 1fr 1fr 1fr; grid-template-areas: "header header header header" "leftsidebar main-top main-top rightsidebar" "leftsidebar bottom-left bottom-right rightsidebar" "footer …

Member Avatar for gce517
0
45
Member Avatar for borobhaisab

Hi, I get the feeling from this forum that simplehtmldom is old stuff. Nevertheless, experimenting with it since a simple tutorial code depends on it. Check this Xml SItemap Link Extractor 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 files. //Does not work. Shows blank page. $sitemap …

Member Avatar for Dani
0
208
Member Avatar for borobhaisab

Hiya, I need to know something. First I thought Sitemap Xml files will list all .html and .hml and .shtm and .shtml files. All pages of the website. But now I see, Sitemap xml files also list other xml files. Check this one out for what I mean: https://www.rocktherankings.com/sitemap_index.xml So …

Member Avatar for Dani
2
902
Member Avatar for borobhaisab

Hello, I am building a searchengine with php. Nearly finished. Now, I need to build the web crawler. Since most websites have xml sitemap for web crawlers to use to find their site links, I prefer to build an xml site map crawler than a general http crawler. I am …

Member Avatar for Dani
0
610
Member Avatar for borobhaisab

I am still at procedural style programming. And so, oop code samples confuse me. I found this oop style. Any chance you can show me how to convert this to procedural style ? Test the code. It woks fine! https://bytenota.com/parsing-an-xml-sitemap-in-php/ // sitemap url or sitemap file $sitemap = 'https://bytenota.com/sitemap.xml'; // …

Member Avatar for borobhaisab
1
526
Member Avatar for HaryBanker
Member Avatar for 145493ka

Hi there i have a problem with my cart calculations in a website i am making and it only displays the last price of the item i add to tthe cart instead of the total of all items added <?php $select_cart = mysqli_query($conn, "SELECT * FROM `cart`"); $grand_total = 0; …

Member Avatar for gce517
1
173
Member Avatar for FarrisFahad

I am trying to learn some basic concepts of JS. I want to start by moving a box which is inside a box. Here is the jsFiddle ... [https://jsfiddle.net/FarrisFahad/a1Lqchj8/1/](https://jsfiddle.net/FarrisFahad/a1Lqchj8/1/) I want to move the mouse on mousedown, mousemove, and mouseup

Member Avatar for gce517
0
21
Member Avatar for Stefce

I want to get a string from different website and to display on mine. The website have this HTML code inside it <ul data-v-61cbae47="" class="b-tabs__nav m-tabs-default m-flex-width m-size-md m-mb-reset js-tabs-switchers m-over-separator"> <li data-v-61cbae47="" class="b-tabs__nav__item m-current"><a data-v-61cbae47="" href="/jenawolfy" aria-current="page" class="b-tabs__nav__link m-with-rectangle-hover m-tb-sm router-link-exact-active router-link-active" id="profilePostTab"><span data-v-61cbae47="" class="b-tabs__nav__link__counter-title">130 posts</span></a></li> <li data-v-61cbae47="" class="b-tabs__nav__item"><a …

Member Avatar for rproffitt
1
137
Member Avatar for Stefce

I am trying to make to display cells in a database that are not empty, i have URL links with images inside the table and i want to display only the cells that are not empty. For example if there is only 2 pictures added in the database i want …

Member Avatar for gce517
1
97
Member Avatar for Stefce

I am trying to insert into table with PHP and MySQL but the page only refresh it self when i press the button. I haven't done debugging, i have an IF statement that displays any errors that fires if the SQL query have errors. But the thing is even the …

Member Avatar for gce517
1
199
Member Avatar for adnanfarooq518

I am using kadence theme on my websites one ishttps://inshotapps.com/ and second one is https://freefirebattles.com/ I build my these website on kadence theme the problem is when i open my website on desktop the view is normal but when i open it on mobile the text is spread i change …

Member Avatar for gce517
0
10
Member Avatar for Aman30@
Member Avatar for odeskavita
0
62
Member Avatar for aibreansiyue

So, I have made a table called `supplies_table` and inside the table is `id`, `name`, and `files`. And I also made an upload button where it can upload a pdf BLOB file into the `files` column. Yes, it can upload a pdf file in the `files` column but the problem …

Member Avatar for gce517
0
128
Member Avatar for Freetrendz
Member Avatar for gce517
1
70
Member Avatar for Bidesh

Basically, I have developed a Website, Now I want to upload some js files and generate a link for that. So I can use that in my local html file. Are there any websites that are capable to upload files and generate a link for it?. Please Answer.

Member Avatar for gce517
0
28