11,557 Posted Topics

Member Avatar for borobhaisab

Hello and welcome to DaniWeb!! What you are describing is a Javascript technique called infinite scrolling. Here at DaniWeb, we use this technique on pages such as https://www.daniweb.com/programming/web-development/6 and the Javascript library that we use can be found at https://infinite-scroll.com/ Depending on how the infinite scroll is generated, you may …

Member Avatar for Dani
1
152
Member Avatar for Haru Haruko

If the webpage keeps disappearing and then reappearing in Google’s index when you manually resubmit it, it is most likely because Google doesn’t consider the quality of that page as valuable. You also have no control over what portion of a webpage Google chooses to show in the search results. …

Member Avatar for becketharper585
1
62
Member Avatar for Chloe_6

I tried to format your code properly, but it's unreadable because it has no curly braces and none of it is indented. We use the Markdown posting syntax here at DaniWeb, which means that each line of code needs to be indented by at least 4 spaces, with a blank …

Member Avatar for rproffitt
0
147
Member Avatar for Dani

You may have encountered a weird error message trying to log into DaniWeb today. We were victim to a signup attack yesterday where 1000+ bots figured out a way around our CAPTCHA and signed up. I've tightened up the signup + login forms today to prevent this from happening again …

Member Avatar for Dani
1
113
Member Avatar for beyermusic2

> Here's task - Add a CSS rule for all span elements that are children of h2 elements that sets the text color to #FA9F42 and its font size to 0.75em. This applies to all `<span>` tags that are anywhere inside `<h2>`. In other words, the span can appear as …

Member Avatar for Dani
0
3K
Member Avatar for beyermusic2
Member Avatar for Dani
0
105
Member Avatar for beyermusic2

You can also post code as a text file attachment, but it won’t be highlighted or get line numbers.

Member Avatar for Dani
0
94
Member Avatar for Dani

I'm back!! After a month-long break, filled with family visits, getting married, and going on our honeymoon, I'm finally back! Family is still in town for another couple of weeks, but I'm going to start returning to my desk most afternoons.

Member Avatar for Dani
1
63
Member Avatar for blockchainc
Member Avatar for Dani

Sometimes we have a need to take a simple PHP array and represent it as an encoded string. One use case that we have for this at DaniWeb is when a new user signs up, and we ask them to click on a link that was sent to them via …

Member Avatar for Dani
2
232
Member Avatar for Ant_426

If php is just spitting out a blank page, that means there’s some fatal error. Check the error logs or change php error reporting to echo the error message. (Sorry, I’m on my phone so it’s difficult for me to type out the code, but something along the lines of …

Member Avatar for Dani
1
390
Member Avatar for jodigad552
Member Avatar for Onion13

Hi there! It seems like you've got all the complicated stuff working. Graphics! Interactive players! Flying tokens! It sounds to me like a little timer to end the level is simple stuff. So now as far as posting the code for the timer so that we can take a look …

Member Avatar for Onion13
1
238
Member Avatar for sankar2000

I would store them as plain text, but I suppose it does matter what purpose you are storing the data for. Does it need to be searchable?

Member Avatar for Dani
0
548
Member Avatar for Haru Haruko

This isn't the type of question we answer anymore here at DaniWeb because, in the past, it just turned into a gigantic spam-fest. However, I would recommend finding lots of links to such resources at www.blackhatworld.com However, I don't believe backlinks from forum posts will be very useful to you …

Member Avatar for Dani
0
20
Member Avatar for Dani

Sometimes we want to know if the webpage was fetched over an SSL connection (e.g. the URL begins with https:// instead of http://). This way, if an end-user is accessing an insecure version of our site, we can redirect them to the secure version. The following PHP function called `no_ssl()` …

2
234
Member Avatar for Harry_41
Member Avatar for Dani
0
15
Member Avatar for Dani
Member Avatar for Reverend Jim
1
80
Member Avatar for Dani

For some reason, PHP class constants don't play nicely with inheritance. For example, suppose you have the following code: class Foo { const VAR = 'foo'; public function __construct() { echo self::VAR; } } class Bar extends Foo { const VAR = 'bar'; } // This will actually print out …

Member Avatar for Dani
1
367
Member Avatar for lukwagomedia

Putting what pritaeas is suggesting to code, it would look something like this: $path = $SERVER['SCRIPT_NAME']; echo "\nThe path is: $path"; $pieces = explode('/', $path); echo "\nThe pieces are:"; var_dump($pieces); $last = end($pieces); echo "\nThe last piece is: $last";

Member Avatar for Dani
0
294
Member Avatar for dimitrilc
Member Avatar for davy_yg

$("#subtot").val() is javascript but you are attempting to pass it into a php function. Php doesn’t know what to do with it.

Member Avatar for Dani
1
199
Member Avatar for Kavish0547
Member Avatar for 奇_925

Sorry, I don’t have any experience developing for it. Are you stuck on a bug?

Member Avatar for rproffitt
0
180
Member Avatar for pritaeas

Oh shoot! Well that’s a bug. In the meantime, feel free to give yourself a pat on the back.

Member Avatar for pritaeas
0
50
Member Avatar for Dani

I’ve made some UI changes to our forums page after my husband told me it looked too old school and like a 1990s webpage. Let me know your thoughts: https://www.daniweb.com/forums As you may have noticed, I also made some changes to the sorting and filter buttons on forum listing pages. …

Member Avatar for UWInsure
1
126
Member Avatar for Dani

How can I tell how much bot traffic I'm getting in Google Analytics? I've been doing a lot of work on improving my crawl budget and I want to see if Google Analytics reports similar data to the Search Console Crawl Stats charts.

Member Avatar for Dani
0
375
Member Avatar for rishabs

> As an author of embedded software which has no UI, "Any project" is overreaching Firstly, this is the UI/UX Design forum, so I would say it applies to any project within the context that this post was made in. That being said, UI and UX are very different things. …

Member Avatar for kasiamizera
2
408
Member Avatar for Trisha_5

May I ask what functionality you are looking for? A simple date picker is already a native feature of all modern web browsers. (Albeit they each implement it slightly differently, so the look and feel isn’t uniform across web browsers and platforms.) Simply use `<input type="date">`

Member Avatar for Dani
0
40
Member Avatar for kondokoroson28

Hi and welcome! Do you have a question about error handling with php? Are you getting just a blank page?

Member Avatar for Dani
0
15
Member Avatar for mtyide

According to a Google search, [Syncfusion](https://www.syncfusion.com/document-processing/pdf-framework/net) seems to be a solution but unfortunately it isn't free. Personally, I use [wkhtmltopdf](https://wkhtmltopdf.org/downloads.html), which is open source, but I am in a Linux environment and use it with PHP. I don't know if there's a way to use it with C#.

Member Avatar for Dani
0
168
Member Avatar for pritaeas

It is by design that if you receive a popup stating that you have a new message, the conversation does not automatically reappear in your conversation list, if you have previously archived the conversation. However, once you click into view the conversation, it should unarchive itself.

Member Avatar for Dani
0
32
Member Avatar for Mary J. Lacy
Member Avatar for sunny258
Member Avatar for Dani
0
10
Member Avatar for pritaeas

We changed the location of avatars and attachments two days ago. I think you might have been looking at a cached page.

Member Avatar for Dani
0
34
Member Avatar for exploretech

Back when I was in high school and college, I was really into C++ and I wanted to eventually be a low level software engineer. My college friend [Dan](https://www.daniweb.com/members/12/samaru) was really into web development and was encouraging me to get into web development as well. Specifically, he was really into …

Member Avatar for Dani
0
270
Member Avatar for Reverend Jim

We used to have something like this, where you could double click on code and it would put it into a textarea. I’ll figure something out but it might have to wait until after the weekend.

Member Avatar for Reverend Jim
0
54
Member Avatar for mtyide

The query cache, that rproffitt linked to, used to cache MySQL result sets for situations where an identical query is made and there have been no table writes to any of the tables involved in the query. However, it has since been deprecated. I recommend using something like Memcached to …

Member Avatar for rproffitt
0
335
Member Avatar for florakennady

Hi and welcome to DaniWeb! I’m pretty active in the SEO and digital marketing industry so feel free to start up some discussions. :)

Member Avatar for Dani
0
32
Member Avatar for mtyide

Robots meta tags and robots.txt do two completely different things. Which you use depends upon the specific use case for each of your pages. The robots.txt file is used to disallow certain bots (e.g. Googlebot) from accessing parts of your site. You can specify which files or folders should be …

Member Avatar for Dani
0
69
Member Avatar for larry29936
Member Avatar for john.craig889

I could have sworn I just answered a very similar question recently, but I now can't find it in my latest posts, so maybe I was dreaming. That being said, I will echo the previous sentiments that it depends on what you need and what you're looking for. They each …

Member Avatar for Dani
0
156
Member Avatar for Dani

By default, PHP's clone keyword just creates a shallow copy of an object, and doesn't work as desired if the object contains properties that are also objects, because it doesn't create real copies of those objects but rather just pointers to the initial version of them. This function creates a …

0
296
Member Avatar for Reshmasharma
Member Avatar for tsuihan
Member Avatar for snowboy12

I know I already said hi to you via private message, but hello again and a very warm welcome!

Member Avatar for Dani
0
7
Member Avatar for startup.project

Hi and welcome to DaniWeb! I snipped the link to your Telegram group because we don't allow solicitations in our forums. That being said, people are free to reply to you here. However, it does seem a little concerning that the app would make health diagnoses without the patient being …

Member Avatar for Dani
-1
25
Member Avatar for rymnd

Hi there and welcome to DaniWeb! I noticed when you initially posted your topic got accidentally flagged by our spam bot. Sorry about that.

Member Avatar for Dani
0
14
Member Avatar for Dani

What do you consider "ethical SEO"? What types of general techniques do you use? (No need to be specific or anything here.) The only reason I ask is because everyone has their own definitions of black hat, white hat, ethical, not-so-ethical, etc. :)

Member Avatar for dark404
2
601
Member Avatar for carlcroger

The End.