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

Ummm, what are you trying to say??

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

I think you're conflating to things.

The first thing is reputation points. That's the little badge next to your username with a number next to a trophy icon. You gain reputation points whenm people leave comments on your posts.

The other thing is the little text next to your username. Yours right now, for example, says Newbie Poster. That's your member badge and can be changed via your community profile here: https://www.daniweb.com/connect/profile/community

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

What happens if you put var_dump($toprated); after the third line of the code you provided above. This way, for debugging purposes, we can see exactly what the $toprated object looks like.

However, I think I see your problem.

I see in the errors you're getting that you're trying to use array_keys, and it's giving you an error message saying you're passing in an object, when typically array_keys is designed to operate on arrays. I think what you want to be doing is $toprated = json_decode($toprated, true); on line 3 in the code above. By default, json_decode spits out an object, not an associative array. If you are wanting to be doing things like array_keys and array_flip and array_merge, you need to be working with an array.

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

Which lines in the code above correspond to lines 118-120 of public.php?

Also, I'm including the image here for reference.

6926d234978766542f544ed1e31e465c.png

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

Sorry, I'm confused what it is you're trying to do?

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

I forgot to mention, your site ranks very poorly for CLS! In fact, your poor cumulative layout shift score is most likely the reason you fail Google’s core web vitals assessment, now a speed factor in mobile searches.

You can improve this metric by setting fixed dimensions for every element on your pages, so every element has space waiting for it. This way, as things load, they aren’t shifting content around the page.

Good luck!

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

Content isn’t just for the benefit of the OP. Regardless of motivation behind why it was started in the first place, there’s nothing wrong with having the discussion. 99.5% of our traffic comes from people coming from a google search to read a discussion whose participants are long gone.

Plus, i prefer to moderate content when necessary and not to police motivation. You’re not going to understand the motivation behind an anonymous person who posted text on the Internet 90% of the time, and there’s nothing wrong with having a different motivation than the next fella.

As was pointed out, member profiles and forum signatures offer absolutely no benefit for SEO.

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

Which one did you get, Jim?

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

I got Pfizer as well. It made me very groggy the rest of the day. Also, muscle soreness in my arm. No other symptoms thankfully. I have the second dose scheduled for three weeks from now.

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

Are you using a CSS framework such as Bootstrap?

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

Ugh, don't get me started on how horrible WordPress is for page speed. Looking at your site though, it's a billion times better than most! You haven't fallen into the trap of installing a billion plugins or using a heavy downloadable theme.

I checked your homepage out with Google PageSpeed Insights and it looks like your biggest delay is in the initial server response time. You're most likely on a shared web server, so that can sometimes cause issues depending on the other sites on the same server and how much traffic you get.

Also check out WebPageTest.org. They have the same complaint that PageSpeed Insights has about your web server being the biggest bottleneck.

I see you're using Cloudflare. You might wish to use them to cache your HTML pages for non-logged in users. I believe with a Cloudflare Pro account, you can cache resources based on whether a cookie is present.

Good luck!

rproffitt commented: Thanks for elaborating. The speed from my testing was very good for the hosting and such. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I'm not quite sure what you're asking. What is PHF? This is the PHP forum. And fragmentation isn't a thing, that I know of, in PHP.

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

You need an FTP client to upload a file from your local computer to a web server. You can download one of many free ftp clients. Linux, MacOS, and Windows have simple clients built in as well. As a reminder, you will need a user account with ftp privileges on the weever you want to upload to.

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

So AJAX stands for asynchronous javascript and xml, and I use jQuery for all my AJAX commands. Are you having an Ajax issue going on?

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

For me, the best experience has come from reading webmaster forums and then experimenting. Check out Digital Point, Sitepoint, Black Hat Forums, and WebmasterWorld. WebmasterWorld used to be the beer resource for me years ago, but I’m not sure how they stack up today.

Also, I would highly highly recommend Aaron Wall’s SEOBook ebook. It’s a great overview of everything you need to know. However, this was many years ago, so I’m not sure how up to date it is today.

Good luck!!

rproffitt commented: +1 +15
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I’m sorry to hear that. Covid time has been really hard on everyone around the world. Hang in there, and participate in virtual meetups.

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

Umm ... hi? How can I help?

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

Huh?? I have no idea what you’re asking. What project? Is it a project you’re working on? Is it a homework assignment? Huhhhhh??

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

Please show the work you have and where you’re stuck. We are a free community of members helping members, and so you’re going to have a rough time convincing people to just do your homework entirely for you for free.

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

No worries, rproffitt! Just add some pressure and you’ll have yourself diamonds in no time.

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

Hi there! So nice to virtually meet you.

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

Sorry, most community members here won’t take the time to help you unless you put in some effort. Show us what you have tried so far and where you’re stuck or what isn’t working. We have nothing to gain by doing someone else’s homework for them.

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

I’m scheduled to get the vaccine tomorrow. What should I expect? I don’t know which one I’m getting yet.

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

Thanks for the comment. That makes me think you need to use the following function to convert numerics to strings.

PHP is an untyped language. There's no need to type cast it to a string. Use the PHP substr() function to get the digit you want (first, last, middle.)

rproffitt commented: Hmm, my reading was they were making a string, not extracting. +15
RC_820 commented: where i can reply my post? i want reply for the answer +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I'm sorry, I'm still very confused what you're trying to do.

I see on line 14 of the code above, you have $_GET['name']. That means that the page is meant to be loaded as file.php?name=Foo with a query string like that. If you're talking about clicking the Submit button on a form, I suspect submitting the form as a POST request and so you're looking for $_POST['name'] instead.

Then I see you have the SQL query to select all rows from the group_requests table that are useen and not accepted. I'm not seeing anything that uses this variable $name.

Then I'm seeing you are looping through the results, and for each request sender, you have a button that does, much to my surprise, do a GET request when submitting the form, not a POST request. So clicking the accept button should redirect you to file.php?accept=accept.

What do you mean by getting the sender variable out of the while loop?

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

As rproffitt suggets, it's possible that the version of PHP you're running does not allow checkdnsrr(). Are you running PHP on a Windows web server or Linux? Do other network-related PHP functions work?

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

This seems incredibly inefficient. I can think of three ways to do this:

  1. Each time you want to perform a search, open each text file, one by one, search if the word exists in that file, and then spit out the files that matched.
  2. Create a database (e.g. MySQL) in advance of all the words in each text file. Update the database based on how often the text files may change. Each time you want to perform a search, simply query the database for which text files match the word(s) being searched for.
  3. Use a third-party search indexer such as Sphinx or Lucene.
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Are you getting any notices or warnings in your error log? Temporarily use debug mode to write all php notices/warnings to the error log.

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

Oh sorry, I misread your initial post. You wrote everything for $6, not $6 and up. That might work out because no one expects to pay $5 at fiverr anymore. Everything is an up-charge there.

Good luck!! :)

6Maxi commented: It's OK Dani, Yes you have got it right. Everything for $6. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hi, it’s nice to meet you. How does your service compare to Upwork or Fiverr? I get that fiverr started out as everything for $5 and up, and I guess from your name, you’re starting out at $6 and up? Isn’t that like starting a new $2 Store when there’s already a popular Dollar Store down the block? Or am I missing something?

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

I don't have the time right now to read your code, but you could use javascript to make an HTML button disabled after clicking it, until it's processed by the server. Personally, I use jQuery, but I do realize jQuery is going out of favor recently.

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

Hi there. Nice to meet you! We have a VBA, C#, and digital marketing community here at DaniWeb. What about digital marketing interests you? Are you looking to promote a .NET project you're working on?

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

This is an 8 year old thread. I don't think keywords in a URL are as important as they once were. However, there can be some advantages to using directory structure in a URL to signal to the user where in the hierarchy of the site they are, especially if the site's navigational structure is not very simple.

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

OK, I see the updated question now.

You should be able to do this by, each time that a user logs in, store a cookie in their web browser with a random token / string. Then, store a flag in the database for the user of that same token / string. Each time that they load a page on your site, compare the value in user's cookie to see if it matches the value associated with the user in the database. If they don't match, log the user out. If they do match, then you know the latest login was performed from that browser.

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

I don’t have experience with CI4 but I wrote DaniWeb on CI3. What do you mean about double login? Maybe I can do some research and help.

Rico_2 commented: I've edited my question +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

What is Robux?! Never heard of it. Is it a digital currency of some kind? How do you get it? And why are you panhandling?

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

Oh hey there! So nice to meet you. Welcome to DaniWeb. I hope you’ll stick around here. We have a digital marketing community to get tips to promote your blog.

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

What don’t you understand? DaniWeb is a community of members helping members with their programming and other tech questions.

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

Hi there. So nice to meet you!

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

I think the reason you haven't gotten any responses, even though it's been a full week already, is because you're not really explaining the question you have. I see your query $query="select * from voiture"; ... is that not what you want? Do you need help coming up with a proper SQL query with a WHERE clause that only matches cars that fit certain criteria? Do you need help figuring out how to create HTML for filtering, etc.? Where are you stuck and where can we help?

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

Sorry, we won't just do your homework for you. Please show us what you have tried so far and where you're stuck, and we'll try to help.

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

Nice to meet you.

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

Hi Edna! Nice to meet you.

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

What’s the assignment, how far have you gotten, and where do you need help? We can try to help you with it.

However, if you’re looking for someone to do your project for you, check out sites such as Upwork.

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

Hi there and welcome!!

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

Look into Amazon Web Services (AWS). There can be a bit of a learning curve, but it’s apay-as-you-go pricing model, and it can grow with you from inception to enterprise. It’s great for startups that want to grow fast and have unpredictable traffic patterns.

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

Hi there. Nice to meet you.

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

Hi there! Nice to meet you.

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

Where in NY are you from? Born and raised on Long Island, but I moved to California 4 years ago.

bruce.hagen commented: Hi Dani, I was born in Minnesota, Moved to California when I was 9. I work remotely from my home. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hi there and welcome to DaniWeb!!