• Register

Recent questions tagged php

0 votes
1 answer 4 views
Problem: How can I get the name of the month from the month number? For example, if I have 3, I want to returnmarch date.tm_month() How do I get the string march?
asked 4 hours ago sasha 2.3k points
0 votes
0 answers 2 views
I am new to this. I was doing that but I got into some problems.
asked 1 day ago TeamScript 3k points
0 votes
1 answer 4 views
Problem I love PHP for its simplicity. I like a lot to use file_get_contents function. But I meet some strange behavior. When I use it like that: file_get_contents('../resource/data.html'); It works fine. But when I substitute the local server file path by ... problem has something to do with PHP configuration, but I do not have a clue what configuration key is responsible for that. Please help.
asked 6 days ago alexh 1.6k points
0 votes
1 answer 3 views
Problem I need to get IP address of user who access my WEB application. I am using the $_SERVER global: $_SERVER['REMOTE_ADDR'] But this approach does not give me the IP address always, sometimes I do not get it from there (and “sometimes” happens pretty ... IP address. How can I achieve the same result with PHP? And why $_SERVER['REMOTE_ADDR'] does not retrieve the correct IP address?
asked Nov 23 alexh 1.6k points
0 votes
1 answer 8 views
Problem I am pretty new in PHP and I wonder: Difference between call by value and call by reference in PHP. And what is the default for PHP: by value or by reference Also, there some weird syntax of double dollar sign ($$). I know single dollar sign means variable. But ... example: $var1 = 'var2'; $$var1 = 'John'; echo $var2; The output of the code snapshot above will be: “John”. Why?
asked Nov 21 alexh 1.6k points
0 votes
1 answer 12 views
Problem: I am new to wordpress and i want someone to explain me about wp_get_recent_posts function.
asked Nov 19 prog_learner 1.5k points
0 votes
1 answer 22 views
Problem: How can we solve this problem? Is there any alternate solution?
asked Nov 19 prog_learner 1.5k points
0 votes
1 answer 12 views
Problem: I need someone to explain me the difference between include and include_once in php. When to use these statements?
asked Nov 19 prog_learner 1.5k points
0 votes
1 answer 8 views
Problem: What is wp-admin/setup-config.php file? How can we make changes to the file?
asked Nov 19 prog_learner 1.5k points
0 votes
1 answer 9 views
Problem: What is the difference between require and require_once in php?
asked Nov 18 prog_learner 1.5k points
0 votes
1 answer 10 views
Problem: I am learning php arrays and i wonder how can we get the highest value in multidimensional array using php.
asked Nov 18 prog_learner 1.5k points
0 votes
1 answer 5 views
Problem: What this error means? it shows gd library extension not available with this php installation. Howcan we fix this error?
asked Nov 18 prog_learner 1.5k points
0 votes
1 answer 11 views
Problem: What is _FILE_ In php?
asked Nov 18 prog_learner 1.5k points
0 votes
1 answer 7 views
Problem: I am facing this problem when i use encryption. “the encrypt library requires the mcrypt extension. codeigniter”
asked Nov 18 prog_learner 1.5k points
0 votes
1 answer 7 views
Problem: I want to remove this error can anyone explain me in detail, how to fix the error?
asked Nov 18 prog_learner 1.5k points
0 votes
1 answer 7 views
Problem: What is mysql_fetch_object in php? How can we use this function?
asked Nov 17 prog_learner 1.5k points
0 votes
1 answer 10 views
Problem: How can i import large SQL file in phpmyadmin?
asked Nov 17 prog_learner 1.5k points
0 votes
1 answer 9 views
Problem: I am facing the error required php extension not found : fileinfo while using phpmyadmin. how can i get rid of this issue?
asked Nov 17 prog_learner 1.5k points
0 votes
1 answer 6 views
Problem: I need to drop my database but when try it throws an error.
asked Nov 17 prog_learner 1.5k points
0 votes
1 answer 10 views
Problem: Hi, I am new to php database operations. i have written the query and it shows the error column count doesn't match value count at row 1 mysql. INSERT INTO Student VALUES ('Name', 'last name''class');
asked Nov 16 prog_learner 1.5k points