2108 solutions found
Page 14 of 106votes
I am using PHP on a website and I want to add emailing functionality. I have [WampServer][1] installed. How do I send an email using PHP? [1]: https:...
votes
I have a simple [text area][1] in a form like this: <textarea style="width:350px; height:80px;" cols="42" rows="5" name=...
votes
PHP must track the amount of CPU time a particular script has used in order to enforce the max_execution_time limit. Is there a way to get access to this i...
votes
How can I convert an image from a URL to Base64 encoding?
votes
Please explain when I should use a PHP `interface` and when I should use an `abstract class`? How I can change my `abstract class` in to an `interface`?
votes
If I have a PHP string in the format of `mm-dd-YYYY` (for example, 10-16-2003), how do I properly convert that to a `Date` and then a `DateTime` in the format o...
votes
I'm looking for a list of all locales and their short codes for a PHP application I am writing. Is there much variation in this data between platforms? A...
votes
How can I get the last key of an array?
votes
How can I remove duplicate values from a multi-dimensional array in PHP? Example array: Array ( [0] => Array ( [0] => abc...
votes
I wrote a PHP code like this $site="http://www.google.com"; $content = file_get_content($site); echo $content; But when I remove &...
votes
For example I had a folder called `Temp' and I wanted to delete or flush all files from this folder using PHP. Could I do this?
votes
I am trying to send an API request using Stripe but get the error message: > cURL error 60: SSL certificate problem: unable to get local issuer certificat...
votes
How should I read any header in PHP? For example the custom header: `X-Requested-With`.
votes
I have a web application on a Linux server which starts with `<?` I needed to copy this application to a windows environment and everything is working fin...
votes
I'm trying to run the following PHP script to do a simple database query: $db_host = "localhost"; $db_name = "showfinder";...
votes
$string = " put returns between paragraphs for linebreak add 2 spaces at end "; Want to remove all new lines from st...
votes
What would be the best way to list all the files in one directory with PHP? Is there a $_SERVER function to do this? I would like to list all the files in the u...
votes
I have a foreach loop and an if statement. If a match is found I need to ultimately break out of that foreach and if. foreach($equipxml as $equip) {...
votes
I want to know how many milliseconds a PHP *for* loop takes to execute. I know the structure of a generic algorithm: ```lang-none Begin init1 = timer();...
votes
What is the best method for converting a PHP array into a string? I have the variable `$type` which is an array of types. $type = $_POST[type]; I...