Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
php5
- Page 1
Optimizing working with big data
Programming
Software Development
3 Weeks Ago
by Dani
What are some best practices for optimizing memory management when working with large datasets? I am tagging this topic both with php (because that is my language of choice, and the one I work with big data with) as well as c++ (because I know DaniWeb has a large low level c++ community that is well suited to being able to delve into this topic …
Re: Optimizing working with big data
Programming
Software Development
3 Weeks Ago
by Salem
My first thoughts would be 1. What is large? Are we in the TB range or mere handfuls of GB? 2. How often do you need to do this? Is it once a day, once a month, or just once.
Re: Optimizing working with big data
Programming
Software Development
3 Weeks Ago
by Dani
> What is large? Are we in the TB range or mere handfuls of GB? For the sake of argument, let's use my use case and say dozens of gigs and millions of rows. > How often do you need to do this? Is it once a day, once a month, or just once. For me, the most important is real-time read and write performance to tables with millions of …
Re: which language do i start leaning in 2025
Programming
Software Development
2 Weeks Ago
by Dani
It depends what you’d like to build. If a simple website, you can use HTML and CSS. Want some interactivity? Add JavaScript. Want to create more complex dynamic websites? You will need a backend language such as PHP and a database such as MySQL. I see you also tagged this topic c++. C++ is a popular language used for non-web related …
Re: Cannot run exe from asp.net
Programming
Web Development
1 Week Ago
by john_111
Let me expand on what rproffitt said, by explaining why. If a webpage could run a program installed on another computer, the entire world wide web would be hacked into tiny pieces and cease to exist. No one would ever use the web, it would be so totally insecure. So web pages are prohibited from running programs on your computer. They can …
Re: Custom Media Server
Hardware and Software
Linux and Unix
3 Weeks Ago
by Vince_6
I used Plex and a Mac for years to stream to my TV. When I switched to linux, PLex ran but couldn't find my media directories. I finally found a product called Emby. It has a server that runs and aps for many different divices. It even has one for my FireTV. Works great.
Has CSS Grid completely replaced Flexbox in your projects? Why or why not?
Programming
Web Development
1 Week Ago
by KamalDeepPareek
Please answer
What’s Best Way to Clear File Contents Without Deleting the File in Linux
Hardware and Software
Linux and Unix
3 Weeks Ago
by adildixi
I recently needed to clear out log files without removing the files themselves (since some apps recreate them automatically). While looking for efficient methods, I came across a helpful write-up of DedicatedCore that explains different ways to shorten or empty a file in Linux without deleting it altogether. If anyone else is dealing with …
Re: What’s Best Way to Clear File Contents Without Deleting the File in Linux
Hardware and Software
Linux and Unix
3 Weeks Ago
by Reverend Jim
I'm confused. Since the log file is recreated automatically what is the problem with just deleting it? But if you want to shorten it you could always open it as write (but not append) and write a null string to it.
Re: What’s Best Way to Clear File Contents Without Deleting the File in Linux
Hardware and Software
Linux and Unix
3 Weeks Ago
by Salem
I guess most people just use https://linuxconfig.org/logrotate Set it and forget it. There's no need to resort to random per file hackery (or quackery).
Hello Everyone - Newbie Here
Community Center
Say Hello!
1 Week Ago
by Ramesh sharama
Hi everyone, I'm Ramesh Sharma, the owner of Web Media Infotech. I’m excited to be part of this community! I work in the areas of web development, website design, and digital marketing, and I’m always keen to learn, share knowledge, and connect with like-minded professionals from around the world. Looking forward to great discussions and …
Re: Hello Everyone - Newbie Here
Community Center
Say Hello!
1 Week Ago
by Reverend Jim
Welcome to Daniweb. Please take a moment to read the [Daniweb Posting Rules](https://www.daniweb.com/welcome/rules).
Re: How to connect to the Pinterest API using PHP?
Programming
Web Development
1 Month Ago
by Dani
Never trust ChatGPT to write fully flushed out code for ya :) Pinterest uses OAuth to authorize your app on behalf of your app's end-user, if that makes sense. For example, your goal is for your end-user to load up your app, and have access to *their* Pinterest account. What OAuth does is give your end-user the ability to grant your app …
How to connect to the Pinterest API using PHP?
Programming
Web Development
1 Month Ago
by FarrisFahad
I want to post Pins using Pinterest API. I have tried to generate code using ChatGPT but it returns an error. Here is my code so far ... <?php $clientId = "xxx"; // Replace with your App ID $clientSecret = "xxx"; // Replace with your App Secret $redirectUri = "xxx"; // Must match …
Re: How to connect to the Pinterest API using PHP?
Programming
Web Development
1 Month Ago
by Dani
Oh, it looks as if the tutorial was for the old DaniWeb API that no longer exists. The [DaniWeb Connect API](https://www.daniweb.com/connect/developers) is also OAuth-based and has some of its own documentation.
Re: Contact form does not working
Programming
Web Development
1 Month Ago
by Biiim
Emailing became more restrictive in the last year, so when you have a PHP server with no emailing setup the emails often fail completely now as there is so much wasted bandwidth on spam emails that these get turned down instantly. I solved it on my hosting with the [PHPmailer](https://github.com/PHPMailer/PHPMailer) package, it's maybe a bit of …
send checkbox to email using phpmailer
Programming
Web Development
2 Months Ago
by ianhaneybs
I need some help with getting checkbox values sent to email using phpmailer I have not done it before so unsure how to do it, the current code I have is below $postData = $_POST; $oneway = $_POST['oneway']; $return = $_POST['return']; $htmlContent = '<h2>Contact Form Details</h2> &…
Re: send checkbox to email using phpmailer
Programming
Web Development
2 Months Ago
by Dani
I would begin by making sure that you sanitize input passed in via $_POST. This ensures that someone doesn't pass in something like `$POST['oneway'] = '</p>Foo!<strong>Blah</strong>` and completely screw up your HTML, or, worse yet, inject Javascript into your HTML. <p><b>One Way:</b> ' . …
Re: Contact form does not working
Programming
Web Development
2 Months Ago
by Dani
> Firstly, I'd suggest you edit your post to remove your real email address from the code. I have replaced their email address with a dummy email. > Sanitise your subject and/or message. You can't in general feed whatever was typed into your dialog directly into mail. Salem is referring to passing each of those variables in …
Re: Json response in javascript
Programming
Web Development
2 Months Ago
by Mr.M
@Dani, I wanted to decode it, basically @BIIM has provided something that helped me out, the problem now is that I've seen that I am facing an issue with how the data is, so now I want the end data to be like this Content{events[{title: myeventtitleFromDatabase, start: myeventstartDateFromdatabase, end: endDateFromDatabase}]} …
Re: Contact form does not working
Programming
Web Development
2 Months Ago
by Salem
Firstly, I'd suggest you edit your post to remove your real email address from the code. https://www.php.net/manual/en/function.mail.php Some things to try. 1. Headers is an optional parameter, can you send without the headers parameter? Many examples I've seen suggest there should be a space after the :, as in `'From: '` 2. Sanitise …
Re: Contact form does not working
Programming
Web Development
1 Month Ago
by Biiim
Damn, you caught me out on that! I went generalized cause I forgot what it was that happened. But I dug it up: [Google Search:Gmail email restriction in Feb 2024](https://www.google.com/search?q=gmail+restriction+on+emailing+in+february+2024) Is what I was thinking of - but I think my web hosting providors were also complaining about my badly…
Re: Multiple MySQL connections + transactions
Programming
Databases
1 Month Ago
by Salem
https://www.php.net/manual/en/mysqli.select-db.php I think the key word in all of this is "default". You can probably do what you want, but you have to refer to each DB by it's own handle. Using `select_db` is fine, if you only have one DB and you want to be lazy about referring to it. So you make it the default DB. But as …
Re: Json response in javascript
Programming
Web Development
2 Months Ago
by Langflow
Hi! You can decode the JSON response in PHP by using json_decode($response, true); to get an associative array and then get the keys by using array_keys($data) and access values as needed!
Re: Json response in javascript
Programming
Web Development
2 Months Ago
by Dani
Sorry, I'm confused. Do you want to decode the JSON in PHP or in Javascript?
Re: Json response in javascript
Programming
Web Development
2 Months Ago
by Biiim
Should be events: responseData['content'] And rdata is being made as an array of objects (should be same as the previous, but responseData might be an object of objects) so to use rdata it definitely would be: events: rdata A dream to get sanity would be to do `console.log(responseData);` to see exactly what you've got. And keep…
Contact form does not working
Programming
Web Development
2 Months Ago
by juan_35
Can someone help me, my contact form does not working. It will send successfully, but the email recipient can't receive the message. Here is my code: <?php $email_to = 'name@example.com'; //the address to which the email will be sent $name = $_POST['name']; $email = $_POST['email']; $subject = $…
Re: Contact form does not working
Programming
Web Development
2 Months Ago
by Dani
I'm not *entirely* sure what gediminas is referring to, but there are services out there such as Zoho Mail, SendGrid, ConstantContact, Mailchimp, Hostinger, etc. which, for the most part, cost money (some are rather inexpensive), but the benefit to using them is that they ensure you're never sending emails to non-existant email addresses, email …
Multiple MySQL connections + transactions
Programming
Databases
1 Month Ago
by Dani
I ran into a bit of a snag in my code, and I'm trying to make heads or tails as to whether this will work. From within my PHP script, can I write to a database using a MySQL connection in the middle of a transaction with a different connection? e.g. // Open Connection 1 and connect to Database A // Start transaction with …
Re: Multiple MySQL connections + transactions
Programming
Databases
1 Month Ago
by Dani
A slightly related question: Is it okay to use PHP's `mysqli::select_db()` function to switch databases in the middle of a transaction? This is what got me into trouble in the first place, when I started a transaction, performed some writes, switched databases, and then wrote to that second database, and then switched back, and performed some …
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC