php Questions

3

Solved

I want to set default value for region and country at registration process? I don't want to put hidden inputs or to put it in database or in migration, I want it exactly to be set in registration f...
Lowson asked 1/1, 2020 at 17:53

27

Solved

Warning: mysqli_connect(): (HY000/1045): Access denied for user 'username'@'localhost' (using password: YES) in C:\Users\xampp\htdocs\PHP_Login_Script\config.php on line 6 I'm getting this error ...
Tuberculosis asked 7/8, 2014 at 4:31

3

Solved

I am getting lot of traffic to my php pages but without the variable $_SERVER['HTTP_HOST'] set. This traffic is like 1 hit per second. I don't know what it could be, but for reducing server load i...
Nanette asked 1/1, 2011 at 12:38

3

Solved

Is there a simple way to take a list of numbers which can be in the range 1 - 15. And put a dash in place of consecutive numbers. So that for example if you had the following numbers: 1 2 3 5 6...
Stagy asked 25/2, 2012 at 21:13

9

Solved

PHP 8.1 is almost getting released, including support for Enumerations. I was testing some of the enum functionality and couldn't find much documentation about it. Hence my question: how do I get a...
Infancy asked 1/11, 2021 at 7:2

4

I am facing a quite weird behavior in my server. I can upload any files smaller than 1MB without problem, but those that are bigger return me an error UPLOAD_ERR_CANT_WRITE == 7. The tmp/ folder ...
Deprived asked 13/11, 2013 at 11:5

4

Solved

I am using LinkedIn API to pull updates from there and display on the website. While using OAuth, I am storing the token in a file and then pull it from there again to prevent the login popup. Howe...
Radcliffe asked 15/7, 2017 at 15:14

5

Solved

<form action="here.php" method="POST"> <input type="text" name="text"> <div id="one"> <input type="hidden" nam...
Lothar asked 29/1, 2012 at 15:36

2

Solved

I'm trying to create a specific twig filter that can handle 2 parameters. $documentURL = new Twig_SimpleFilter('documentURL', function($DocumentId, $UserId){ $URL = "http://example.example.com/...
Papaya asked 25/2, 2014 at 18:45

6

Solved

I have a php script that shows a log of its actions as the script proceeds. The log is getting quite long, up to the point where it will echo its information past the bottom of the page, adding a s...
Honan asked 26/3, 2015 at 23:57

8

Solved

I use Swagger-php. When I define a parameter that's on the query string it can be an array. But from what I can see, it doesn't support this kind of querystring: https://api.domain.tld/v1/objects?...
Tipper asked 17/6, 2016 at 9:31

14

Solved

I have a table with a column 'hotel'. The project is created in Laravel 5.4, so I used Migrations. $table->string('hotel', 50); This is MYSQL VARCHAR (50). It was working good, because when I w...
Vilhelmina asked 27/1, 2018 at 16:26

5

Solved

This is an easy one. There seem to be plenty of solutions to determine if a URL contains a specific key or value, but strangely I can't find a solution for determining if URL does or does not have ...
php
Creekmore asked 23/10, 2011 at 3:52

7

Solved

Basically, I have a multidimensional array, and I need to check whether or not it is simply empty, or not. I currently have an if statement trying to do this with: if(!empty($csv_array)) { //M...
Rici asked 23/8, 2013 at 11:22

2

I am using Zend_HTTP_Client to send HTTP requests to a server and get response back. The server which I am sending the requests to is an HTTPS web server. Currently, one round trip request takes ar...
Giroux asked 30/7, 2010 at 0:5

2

Solved

I was able to flash all keys from terminal using redis-cli flushdb. I have been searching for a while, took me an hour in order to find the simple command to do it in php. I didn't find it on st...
Odalisque asked 6/11, 2017 at 10:20

1

Does anyone know if it's possible to configure VSCode to have the following occur after moving a file to another locations? Update the namespace of the class/trait. Update the imports of all other...
Postmistress asked 21/6, 2021 at 20:35

16

On my old VPS I was using the following code to copy the files and directories within a directory to a new directory that was created after the user submitted their form. function copyr($source, $...
Potvaliant asked 18/4, 2011 at 19:25

11

I am running the following code and giving me this error : FPDF error: This document (testcopy.pdf) probably uses a compression technique which is not supported by the free parser shipped with FPDI...
Papyrus asked 28/8, 2012 at 6:54

2

Solved

I just backup wordpress DB and public_html folder in virtual-web-hosting. And I move them to my local MAMP. But when I enter http://localhost:8888/, it just transfer to http://localhost. And the...
Dahl asked 15/1, 2015 at 15:20

10

Solved

Two days ago I started working on a code parser and I'm stuck. How can I split a string by commas that are not inside brackets? Let me show you what I mean. I have this string to parse: one, two, t...
Wirework asked 5/7, 2009 at 20:27

5

Solved

How can i convert a date like this: 2012-07-16 01:00:00 +00 (it's in the UTC +00:00 timezone) to UTC +04:00 timezone? Ensuring that daylight saving will be handelled correctly?
Ludendorff asked 9/8, 2012 at 12:44

5

I have a PHP page which i used to send notifications to the users of a mobile app i developed , this page works fine until last month , then it gave me this error {"multicast_id":517406...
Discord asked 8/1, 2021 at 16:53

10

Solved

I want to retrieve the values from a database table and show them in a html table in a page. I already searched for this but I couldn't find the answer, although this surely is something easy (this...
Kutzer asked 27/7, 2013 at 21:8

7

Solved

I am following good programming practices and I am logging the PHP errors to file instead of displaying it to user. I use set_error_handler() for that. Now the problem. For example, I have somewhe...
Apoplexy asked 11/9, 2011 at 19:46

© 2022 - 2024 — McMap. All rights reserved.