Dear People who will read this   I was programming php by fallowing tutorial with phpacademy Login and Register tutorial before that it was fine and I noticed after I closed terminal it gave me 500 Error code it also says The website encountered an error while retrieving nameofmydomain/lr/index.php.      localhost is my server name   It may be down for maintenance or configured incorrectly  Code for the index.php file   &lt;!doctype html&gt; &lt;html&gt; &lt;?php include 'includes/head.php'; ?&gt; &lt;body&gt; &lt;?php include 'includes/header.php'; ?&gt;  &lt;div id="container"&gt; &lt;?php include 'includes/aside.php'; ?&gt;   &lt;h1&gt;Home&lt;/h1&gt;  &lt;p&gt;Just a template.&lt;/p&gt;   &lt;/div&gt; &lt;?php include 'includes/footer.php'; &lt;/body&gt; &lt;/html&gt;   All I did is fallowed tutorial in video 3 by including head,header,aside,footer, pretty much I am linking php files to index.php file. I don't know why it gave me error server error code 500. I already cleared cache deleted cookies, after I deleted cookies I restarted my browser and it still gives me an error. Any suggestions, any help, any advice would be greatly appreciated.  Sincerely Guy who needs help with his localhost server.  I already read error log  so I'm gonna say on line 13 there  opening and closing script tag.
122510
I have found a  very similar to this, which I thought would solve my problem.   However, after changing my .htaccess file, with index.php on the end of the list, and then index.php as the only entry, I still cannot get index.php to display.  Every other page works fine, but I don't know how to fix this.  Thanks.
14958
Okay so a continuation from , where you experts intro'd me to , which can basically execute PHP within a Windows XP environment.  So now I've got it installed, but the tray icon forever shows YELLOW, and when I visit any PHP page in my browser, it just shows me the PHP source!  Also, when I visit "" in IE7 it gives me a 404 Not Found, FF3 just shows a blank page.    BTW I've tried "Restart All Services" and restarting my machine, but it still won't work.  Any ideas? Any of you had this problem and solved it? Please help me here, I'm desperate to execute PHP client-side and I'm just reverting to testing on-server for now!
68619
Currently I have to manually remove the /error?aspxerrorpath= part from the address to try again. And right now a lot of Oopses happen!
67729
I am trying to install Wordpress on Lubuntu. I followed the instructions . Including PHP Apache and MySQL setups. Apache and MySQL appear to be running fine.  However, when I go to http://localhost/blog/, I get the following error:     Neither /etc/wordpress/config-localhost.php nor /etc/wordpress/config-localhost.php could be found.   Ensure one of them exists, is readable by the webserver and contains the right password/username.
9353
I have a loop that is doing some error checking in my PHP code. Originally it looked something like this...  foreach($results as $result) {     if (!$condition) {         $halt = true;         ErrorHandler::addErrorToStack('Unexpected result.');     }      doSomething();  }  if (!$halt) {     // do what I want cos I know there was no error }   This works all well and good, but it is still looping through despite after one error it needn't. Is there a way to escape the loop?
73140
This appears:     Our apologies, this form has been disabled due to suspicious content. If you believe you have received this message in error, please contact the original form author.     How can I make my form code work?
106989
I've upgraded from UBUNTU 13.04 to 13.10 but I can not work with PHP pages or phpmyadmin . I've tried this way to install lamp on Ubuntu sudo apt-get install lamp-server^ phpmyadmin and I've done all of the configuration correctly after installation I've added this line  Include /etc/phpmyadmin/apache.conf to  /etc/apache2/apache2.conf then I restarted apache2   Now I have two problems:   In phpmyadmin on the bottom of the page is this error : The mcrypt extension is missing. Please check your PHP configuration  I've check  and mcrypt was in it , but in phpmyadmin it gives me error of missing .   The other problem is on PHP pages it seems like there is no PHP and it's all html because lots of PHP lines are printed in textbox's like : &lt;? echo $row['details']; ?&gt; Can anybody tell me what should I do ?
123297
I have the following code  &lt;?php if ($handle = opendir('C:/xampp/htdocs/movies')) {     while (false !== ($file = readdir($handle))) {         if ($file != "." &amp;&amp; $file != "..") {             echo $file."&lt;br /&gt;\n";         }     }     closedir($handle); } ?&gt;   When it does have mb language such as japanese, it doesn't display properly instead it display like kyuukyoku Choujin R ?????~? rather then kyuukyoku Choujin R 究極超人あ～る  Anyway to make it display the correct name or make it still download-able by others?  Thanks for helping me :)
74983
I'm writing a php app to access a MySQL database, and on a tutorial, it says something of the form  mysql_connect($host, $user, $pass) or die("could not connect");   How does PHP know that the function failed so that it runs the die part? I guess I'm asking how the "or" part of it works. I don't think I've seen it before.
30932
I installed Drush for the first time (so it may be a configuration error) and I'm trying to update to the latest core version of Drupal.  Drush is giving me this error - I'm on an OSX box.  dev5:clientnamedirectory my.name$ drush pm-update projects drupal-7.25 &lt;h1&gt;Additional uncaught exception thrown while handling exception.&lt;/h1&gt;  &lt;h2&gt;Original&lt;/h2&gt;&lt;p&gt;PDOException: SQLSTATE[HY000] [2002] No such file or directory in drupal_get_installed_schema_version() (line 155 of /Users/my.name/Sites/proface/includes/install.inc).&lt;/p&gt;  &lt;h2&gt;Additional&lt;/h2&gt;  &lt;p&gt;PDOException: SQLSTATE[HY000] [2002] No such file or directory in system_list() (line 165 of /Users/my.name/Sites/clientnamedirectory/includes/module.inc).&lt;/p&gt;&lt;hr /&gt;  Drush command terminated abnormally due to an unrecoverable error.
61674
I've tried to install PHP and Apache2, however when I access the file, it just shows a blank page.  I've installed the packages php, apache2, php-mysql (and some others)  I've already tried pretty much everything that I could find on the Internet.  I'm sorry if I'm not providing enough info, I will give any info that I can.
8189
I have a WordPress website that I recently discovered had this error on the login page:     ERROR: Cookies are blocked due to unexpected output. For help, please   see this documentation or try the support forums.   I can only access the login page from wp-login.php, since /wp-admin/ displays a blank white page.  I've searched the web and tried many things with no success:   Removing ?&gt; and space at end of the functions.php Ensuring both functions.php and wp-config.php had no spaces at beginning or end of file Opening wp-config.php and functions.php in Notepad++ and converting to UTF-8 (people recommend 'without BOM' but that is only an option in the newest version of Notepad++ - I'm guessing UTF-8 does that now) I've set WP_DEBUG to true and have received no errors in debug.log,  except for 2 that relate to when I hadn't fully uploaded some files. That particular error mentioned nav-menu.php; this confirmed that it is reporting errors, just not related to my login issues I renamed each plugin folder with _tmp at the end to try and rule out any plugins causing the problem I also renamed the plugins folder to rule out all plugins at the same time   Given these things I've tried, and that I'm not receiving any PHP errors, what else could I try?
4969
I'm really confused with index.php, home.php and front-page.php. In many cases even though I had an index.php, I overwrite it with front-page.php. But recently, I became aware about home.php.   What's the difference between the home.php and index.php? What's the ideal condition to use a home.php than an index.php? What's the ideal condition to use a front-page.php? When I'm using a front-page.php then what specific task an index.php is doing for me then?   I've read the  in Codex. Please don't mix my question with Page Templates, I understand 'em, alHamduLILLAH.
18459
I'm trying to install , an open-source Microblogging application on my Windows development server using XAMPP as per the . The website cannot find PEAR, and throws the below errors:  Warning: require_once(PEAR.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampplite\htdocs\laconica\lib\common.php on line 31 Fatal error: require_once() [function.require]: Failed opening required 'PEAR.php' (include_path='.;\xampplite\php\pear\PEAR') in C:\xampplite\htdocs\laconica\lib\common.php on line 31   PEAR is located in C:\xampplite\php\pear phpinfo() shows me that the include path is .;\xampplite\php\pear  What am I doing wrong? Why isn't the PEAR folder being included?
73749
I am doing a tutorial and am getting this error:     Fatal error: Class 'MySQLi' not found (LONG URL) on line 8   The code on line 8 is:  $mysqli = new MySQLi($db_server, $db_user, $db_pass, $db_name);   I saw online someone said to see if it was turned on in my phpinfo(), but there wasn't anything listed in there under for "mysqli".  Also, I am running PHP version 5.2.5
97435
I get HTTP errors for various resources, and no styles or scripts are applied, which effectively makes the whole site unusable.  Meta does seem to be working fine, though.  Edit: Here's a log from Firefox Console. The relevant requests appear to be returning 403 Forbidden.  [10:28:39.766] GET http://stackoverflow.com/questions/19269438/is-there-a-way-to-call-member-function-without-or-operator/19827813# [HTTP/1.1 200 OK 917ms] [10:28:40.929] GET http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js [HTTP/1.1 304 Not Modified 680ms] [10:28:40.932] GET http://cdn.sstatic.net/Js/stub.en.js?v=e3d47b73fa12 [HTTP/1.1 403 Forbidden 612ms] [10:28:40.935] GET http://cdn.sstatic.net/stackoverflow/all.css?v=87e1657c9db8 [HTTP/1.1 403 Forbidden 605ms] [10:28:41.401] GET http://cdn.sstatic.net/Js/stub.en.js?v=e3d47b73fa12 [HTTP/1.1 403 Forbidden 347ms] [10:28:41.753] GET http://cdn.sstatic.net/stackoverflow/all.css?v=87e1657c9db8 [HTTP/1.1 403 Forbidden 237ms]   Edit 2: It happened again. This time I screenshotted everything. The CAPTCHA actually does not appear to be the usual one with men dressed as robots. I had to scale the page down a bit drastically to fit onto one screenshot.        I'm posting this update a bit in the blind because the same error prevents those images from loading. Let me know if they weren't uploaded. Meta still shows no other symptoms.
121874
I just finished installing mysql-server, and then installed phpmyadmin which came with Apache and PHP. It set it up alright and made a phpMyAdmin database, but I can't seem to find the URL to get to it -- I tried going to  but it doesn't seem to be there.  I can't find the location in any of the manuals, does anyone know where this is located? Thanks.