Public Questions

Ask Question

97 questions


0

Vote

4

Answers

67

View

I want to return clean JSON from a PHP header script after page load. Do I have to set the Content-Type header or just echo result?

Nov 27

0

Vote

1

Answers

55

View

It appears pretty simple but I can not find a good method to do it. Say in the first page "page1.php" I created a variable$myVariable = "Some text";And the form's action for that page is "page2.php".

Nov 27

0

Vote

1

Answers

66

View

I have two types of array 1. Indexed arrays and 2. Associative Array. I need help to check key exists in an array or not.1. Indexed arrays$index_array = ['apple', 'pear', 'banana'];2. Associative Arra
php array 

Nov 26

0

Vote

3

Answers

79

View

I am making a website where I need to save the date in the PHP date() function.<?php $finalize_at = date('Y-m-d H:i:s'); ?>Is there any way to change the timezone for PHP or set a timezone c

0

Vote

1

Answers

77

View

I am working on a website and I want the user to upload files or images to the website. So I am finding a way to do that. I look into and it said that I needed to use the function move_uploaded_file()

Nov 26

0

Vote

1

Answers

70

View

I want to extract only text from a PHP string.I want to remove HTML tags, which is done by strip_tags. &nbsp; &amp; &copy; Please tell me any function which I can use to remove these

Nov 26

0

Vote

1

Answers

83

View

I have checked my PHP ini file (php.ini) and display_errors is set and also error reporting is E_ALL. I have restarted my Apache webserver.I have even put these lines at the top of my script, and

Nov 26