2108 solutions found
Page 6 of 106votes
Using PHP, what's the fastest way to convert a string like this: `"123"` to an integer? Why is that particular method the fastest? What happens...
votes
I'm using PHP to build the URL of the current page. Sometimes, URLs in the form of www.example.com/myurl.html?unwantedthngs are requested. I want...
votes
I'm trying to create a report page that shows reports from a specific date to a specific date. Here's my current code: $now = date('Y-m-d'...
votes
I understand PHP does not have a pure object variable, but I want to check whether a property is in the given object or class. $ob = (object) array('...
votes
I'm currently working on a website, which triggers a ```net::ERR_HTTP2_PROTOCOL_ERROR 200``` error on Google Chrome. I'm not sure exactly what can provo...
votes
I am trying to upload 30MB file on my server and its not working. 1. When I upload 30MB file, the page loads "**Page Not Found**" 2. When I uplo...
votes
I have a problem when I install 'Archive_Zip 0.1.1' on the Linux server, but when I try to run the script to create the zip file it gives the fatal erro...
votes
In PHP can I include a directory of scripts? i.e. Instead of: include('classes/Class1.php'); include('classes/Class2.php'); is...
votes
While I am installing Magento 2 on my Server, I got an error. After investigating the code and found that there are three dots (`...`), which is producing the e...
votes
I installed Laravel using Composer without problems, but when I try to run `laravel` in the terminal, I get the following error: > -bash: laravel: command...
votes
I need to send a pdf with mail, is it possible? $to = "xxx"; $subject = "Subject" ; $message = 'Example message with...
votes
I'm trying a simple web service example and I get this error even though I uncommented `extension=php_soap.dll` in the `php.ini` file: > **Fatal error...
votes
How can I force to SSL/https using .htaccess and mod_rewrite page specific in PHP.
votes
$items = Array(523,3452,334,31,...5346); Each item of this array is some number. **How do I get random item from `$items`?**
votes
Before you answer this I have never developed anything popular enough to attain high server loads. Treat me as (sigh) an alien that has just landed on the plane...
votes
How do I get the current route in [Symfony][1] 2? For example, `routing.yml`: somePage: pattern: /page/ defaults: { _controller: "...
votes
I have a simple form that submits text to my SQL table. The problem is that after the user submits the text, they can refresh the page and the data gets submitt...
votes
I'm receiving a date string from an API, and it is formatted as `yyyy-mm-dd`. I am currently using a regex to validate the string format, which works ok,...
votes
I want to unzip a file and this works fine system('unzip File.zip'); But I need to pass in the file name through the URL and can not get it to...
votes
What does a `\` do in PHP? For example, [CSRF4PHP](https://github.com/foxbunny/CSRF4PHP/blob/60d9172b7f0cd93346cac9065fb17182854ebf1c/CsrfToken.php#L80-L87)...