Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
php4
- Page 1
Re: How to connect to the Pinterest API using PHP?
Programming
Web Development
11 Hours Ago
by geekinformatic
Hey! If you're using the CakePHP framework, you can connect to the Pinterest API with cURL and OAuth integration. Just follow Pinterest’s API docs for endpoints and token handling.
Re: How do I remove the last character without breaking the string?
Programming
Web Development
4 Days Ago
by MAY_261
Use mb_substr() instead of substr(). It handles multibyte characters and emojis correctly. Here is the correct code: $text = "私の名前はダバーです👩🚀"; $length = mb_strlen($text, 'UTF-8'); $new_text = mb_substr($text, 0, $length - 1, 'UTF-8'); echo $new_text; https://flatcoding.com/tutorials/php/php-remove-last-…
Re: How do I remove the last character without breaking the string?
Programming
Web Development
4 Days Ago
by Montasser_1
> Use mb_substr() instead of substr(). It handles multibyte characters and emojis correctly. > > Here is the correct code: > > > > $text = "私の名前はダバーです👩🚀"; > $length = mb_strlen($text, 'UTF-8'); > $new_text = mb_substr($text, 0, $length - 1, 'UTF-8'); > echo $new_text; > …
How do I remove the last character without breaking the string?
Programming
Web Development
4 Days Ago
by Montasser_1
I try to remove the last character from a string with Japanese text and emojis using this code: <?php $text = "私の名前はダバーです👩🚀"; $new_text = substr($text, 0, strlen($text) - 1); echo $new_text; The output breaks the characters and shows garbage. How do I fix this?
Re: Optimizing working with big data
Programming
Software Development
2 Days Ago
by ThinkWriteGrow
> 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…
Can I Use AI to Build a Block Management Website for Ilford Clients?
Programming
Web Development
6 Days Ago
by kearawill
Hey developers 👋 I’m working on a new project for a client — a estate agency Ilford, and I’m wondering how much of this could be streamlined or even built with AI tools? The site needs standard features like: Property listings Service request forms (for tenants) Payment gateway Backend for property managers to update info …
Re: Can I Use AI to Build a Block Management Website for Ilford Clients?
Programming
Web Development
6 Days Ago
by trcooke
This feels like a solved problem. Have you done any research for existing "off the shelf" property sales / real estate website solutions? I would start there as it could save you and your client a whole bunch of time and money compared to building one yourself from scratch.
Re: My php is showing wrong results of time difference
Programming
Web Development
1 Week Ago
by Dani
I am confused when you say the HTML time picker input box can be set to 20:00 for time in and 5:00 for time out, because `<input type="time" ...>` only allows the end-user to specify a time, not a time and date combination. Should it always be assumed that if the time out is earlier than the time in, that it is the next day? …
Re: My php is showing wrong results of time difference
Programming
Web Development
1 Week Ago
by Dani
In other words, if you just need days or hours you can do something like `$diff->d` or `$diff->h` (All properties available [here](https://www.php.net/manual/en/class.dateinterval.php), but if you want to calculate a runner's start time and end time and then do something like "You ran the race in 08:33:56!" then you could use the `…
My php is showing wrong results of time difference
Programming
Web Development
1 Week Ago
by Mr.M
Hi DW, I'm trying to mark attendance register which has the date for which that register is being marked for as well as the date which the register is actually marked on. For Date as well as Marked Date. I also have two time picker textboxs which one is for time in and the other is for time out. Now I've been trying to use even time diff …
Re: My php is showing wrong results of time difference
Programming
Web Development
1 Week Ago
by Mr.M
Thanks, to clarify what I meant regarding the dates is that I have a date input that shows a calendar when a user click on it to choose the date for which the register is being marked for. Then I also have 2 time inputs one is for timein and the other is for timeout. Let me try your code and see if it does solve the problem I've been having.…
Re: My php is showing wrong results of time difference
Programming
Web Development
1 Week Ago
by Mr.M
I'm getting an error saying the `date_create` class can not be found
Re: My php is showing wrong results of time difference
Programming
Web Development
1 Week Ago
by Dani
Oh goodness, I’m sorry! I made a typo. Remove the new keyword. I’ve edited my post above.
Re: My php is showing wrong results of time difference
Programming
Web Development
1 Week Ago
by Mr.M
Thank you, you saved me, I've been trying for weeks now. It works now perfectly with your code.
Re: My php is showing wrong results of time difference
Programming
Web Development
1 Week Ago
by Dani
> Also just one more question regarding your code, I will have to minus 1 hour from the total hour difference, do I have to use the %h - 1? Just in case you haven't figured this out yet, the answer is no :) In my code above, see where I am showing you what $diff looks like on line 15? You should be able to do something like this: $…
Re: My php is showing wrong results of time difference
Programming
Web Development
1 Week Ago
by Erussuhsh
Hi I'm new to android app development can you teach me how to make a app
Re: My php is showing wrong results of time difference
Programming
Web Development
1 Week Ago
by Dani
I don’t personally know Android development or mobile development at all. However, others here might. Please start a new question [by clicking here](https://www.daniweb.com/community/contribute/181).
Re: Ensuring data consistency and integrity
Hardware and Software
Cloud-based Apps
2 Weeks Ago
by Dani
We make heavy use of PHP's [Memcached::getDelayedByKey](https://www.php.net/manual/en/memcached.getdelayedbykey.php) which requests multiple items all from a specific server (hashed on the server key, which is the Topic ID #). That ensures that when you pull up a topic, we can retrieve all items for that topic in one request, all from one server.
Re: Optimizing working with big data
Programming
Software Development
3 Weeks Ago
by whackksports
Utilizing efficient tools and techniques, such as data filtering, storage solutions, and analytics platforms, is essential for optimizing work with big data. Automating processes, leveraging cloud computing, and ensuring scalability are also required.
Re: Fujitsu Windows Server 2019 Servers Rebooting at 11pm every day
Hardware and Software
Microsoft Windows
3 Weeks Ago
by Dani
Then there’s me, whose expertise is mostly limited to technical SEO and PHP these days, I’m afraid. Ugh, the brain fog is real.
Re: Key Tools and Tips for Efficient Web Development
Programming
Web Development
4 Weeks Ago
by Himanshu011
Frontend development: * React * Vue.js Backend development: * Node.js * Django
Re: Key Tools and Tips for Efficient Web Development
Programming
Web Development
3 Weeks Ago
by JackRyan248
> Hi Everyone, > > Web development can be both exciting and challenging, but having the right tools makes all the difference. If you're starting out or looking to improve your workflow, consider using popular frameworks like React or Vue for streamlined front-end development. > > On the back end, Node.js and Django are solid…
sharepoint policy management software
Programming
Web Development
2 Weeks Ago
by asnashehr234
what is sharepoint policy management software, and how does it benefit organizations ?
Re: sharepoint policy management software
Programming
Web Development
2 Weeks Ago
by rproffitt
From your profile I see this: > Hello! I'm Asna Shehr, and I'm your dedicated sharepoint compliance manager. With over a decade of hands-on experience, I have successfully led numerous organizations through seamless sharepoint compliance management systems. I would be guessing why you posited this question without answering it yourself. I …
Re: sharepoint policy management software
Programming
Web Development
2 Weeks Ago
by Dani
We used to use Sharepoint way back in the day when DaniWeb had one of those Microsoft subscriptions that gave you access to all license keys. I forget what it used to be called but they don't have it anymore and haven't for many years, as far as I know. Edit: ChatGPT reminded me that it was called a TechNet Subscription.
Re: sharepoint policy management software
Programming
Web Development
2 Weeks Ago
by Reverend Jim
Manitoba Hydro implemented Sharepoint a year or two before I retired. Horrible system if you are expected to manage it without training (as was typical where I worked). I eventually got tired of being told "You're doing it wrong" by the people who DID get the training, while not being told how to do it the right way. I eventually told my …
Re: How to connect to the Pinterest API using PHP?
Programming
Web Development
2 Months 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
2 Months 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
2 Months 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
2 Months 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 …
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