tagged [php]

Configure WAMP server to send email

Configure WAMP server to send email Is there a way that I can configure the [WAMP server](http://www.wampserver.com/en/) for PHP to enable the `mail()` function?

18 Jul at 06:54

How to locate the php.ini file (xampp)

How to locate the php.ini file (xampp) I am using `xampp`server for `PHP` development and want to edit the `php.ini` file; where can I locate it?

11 Sep at 15:44

PHP preg replace only allow numbers

PHP preg replace only allow numbers How can I modify this existing preg_replace to only allow numbers?

9 Jan at 16:54

Checking if mysql_query returned anything or not

Checking if mysql_query returned anything or not ``` $query = "SELECT * FROM `table`"; $results = mysql_query($query, $connection); ``` If 'table' has no rows. whats the easiest way to check for this....

18 Oct at 02:26

Among $_REQUEST, $_GET and $_POST which one is the fastest?

Among $_REQUEST, $_GET and $_POST which one is the fastest? Which of these code will be faster? or

10 Jan at 17:41

PHP | define() vs. const

PHP | define() vs. const In PHP, you can declare constants in two ways: 1. With define keyword define('FOO', 1); 2. Using const keyword const FOO = 1; --- - -

6 Oct at 11:23

Insert new item in array on any position in PHP

Insert new item in array on any position in PHP How can I insert a new item into an array on any position, for example in the middle of array?

19 Feb at 12:27

php: loop through json array

php: loop through json array I have a json array: How can I loop through this array using php?

19 Jan at 03:28

How can I disable notices and warnings in PHP within the .htaccess file?

How can I disable notices and warnings in PHP within the .htaccess file? I just want to only turn on PHP errors and disable all notices and warnings in PHP files.

22 Apr at 03:10

How to query all the GraphQL type fields without writing a long query?

How to query all the GraphQL type fields without writing a long query? Assume you have a GraphQL type and it includes many fields. How to query all the fields without writing down a long query that in...

7 Nov at 16:24

How to set the env variable for PHP?

How to set the env variable for PHP? I am using WAMP. I want to use php from the command prompt. What is the entry in PATH env variable for this ?

29 Apr at 10:27

Add a element to a PHP associative array

Add a element to a PHP associative array Above is my associative array. How can I bring 3=>england to front of the array?

5 May at 10:43

How to print all session variables currently set?

How to print all session variables currently set? Without having to call each session variable by name, is there a way to display the content of all the session variables currently set?

11 Jan at 19:17

base64 decryption

base64 decryption I am currently trying to decode a base64 encrypted PHP file , but without any luck. Could someone be able to help? [http://pastebin.com/QmCdtDne](http://pastebin.com/QmCdtDne) Thanks

25 Aug at 14:26

Difference between break and continue in PHP?

Difference between break and continue in PHP? What is the difference between [break](http://php.net/manual/control-structures.break.php) and [continue](http://php.net/manual/control-structures.continu...

22 Jan at 18:54

How can I remove three characters at the end of a string in PHP?

How can I remove three characters at the end of a string in PHP? How can I remove three characters at the end of a string in PHP? "abcabcabc" would become "abcabc"!

13 Oct at 18:2

Alternative of php's explode/implode-functions in c#

Alternative of php's explode/implode-functions in c# are there a similar functions to explode/implode in the .net-framework? or do i have to code it by myself?

9 Mar at 20:14

Laravel throws 'The bootstrap/cache directory must be present and writable' error after update

Laravel throws 'The bootstrap/cache directory must be present and writable' error after update I used 'composer update', which updated a few packages. During the updating process the website still fun...

1 May at 11:28

MySQL vs MySQLi when using PHP

MySQL vs MySQLi when using PHP Which is better, MySQL or MySQLi? And why? Which should I use? I mean better not just in terms of performance, but any other relevant feature.

27 Oct at 11:39

How can I detect the browser with PHP or JavaScript?

How can I detect the browser with PHP or JavaScript? How can I detect if the user is not using any of the browsers Chrome, Firefox or Internet Explorer using JavaScript or PHP?

5 May at 23:7

How can I remove part of a string in PHP?

How can I remove part of a string in PHP? How can I remove part of a string? Example string: `"REGISTER 11223344 here"` How can I remove `"11223344"` from the above example string?

12 May at 19:45

Declaration of Methods should be Compatible with Parent Methods in PHP

Declaration of Methods should be Compatible with Parent Methods in PHP What are possible causes of this error in PHP? Where can I find information about what it means to be ?

25 Jun at 03:37

How do I recursively delete a directory and its entire contents (files + sub dirs) in PHP?

How do I recursively delete a directory and its entire contents (files + sub dirs) in PHP? How do I delete a directory and its entire contents (files and subdirectories) in PHP?

23 Aug at 21:45

How do I embed PHP code in JavaScript?

How do I embed PHP code in JavaScript? How can we use PHP code in JavaScript? Like Please suggest a better way.

9 May at 06:47

how to add script inside a php code?

how to add script inside a php code? How can I add script inside a php code? suppose i want to give an alert for a button click.. how can i do that??

24 Aug at 12:28