Odd things happening with Netbeans and WAMP appeared out of nowhere - php

Before I used to press the 'run' button in netbeans and the website would pop up on firefox.
Now suddenly something changed in my WAMP server (might have been because I installed an older version of PHP to test PHPunit and then deinstalled it again once i figured out how it worked with 5.5( i changed some settings in WAMP but put em all back)).
Does anyone have the slightest idea how I might be able to send the impulse to the firefox web browser again to open the link when I press run in Netbeans?
I can reach the sites by typing in the URL on the firefox webbrowser so the problem isn't that big but it's still a tiny annoyance.

Related

Netbeans Edit PHP on VirtualBox Shares

Setup:
Virtual Box on OSX running Ubuntu Server 17.
Opening a project on Netbeans on one of these shares is fine and the files editable, however as soon as I click on a different window on OSX (so losing focus from the Netbeans window) and return to Netbeans the file is instantly uneditable, however the share is still traversable on the OSX filesystem. Its as if it suddenly becomes read only (though unchange and still is rwxrwxrwx as shown on from an SSH window into the virtual box (!00% reliable).
PHPStorm handles this situation perfectly.
The only caveat here is that if there are a few shares on the VBox its necessary to write a bash script to unmount/remount them in turn but its not that complex, otherwise PHPStorm does nothing when attempting to open local project.

NetBeans Firefox caching

I am using NetBeans 8.0.2 firefox 37.0.1, WAMP 2.5(php develpoment).
I am using the "Copy files from Source folder to another location" feature which copies the development files to the WAMP directory.
My problem is that whenever I hit run, I get cached version and only after I hit refresh in browser, I get the latest version.
This complicates the development process.
I have tried disabling Firefox cache using this
and tried disabling apache caching using this.
But neither worked. Any help would be appreciated.

Aptana php server debug mode opens empty page in firefox

I am using Aptana 3 studio to work on my php (drupal) projects. All of the sudden, the debug function stopped working. It used to work flawlessly. Now when I select a debug configurtion and debug it, an empty page opens in firefox.
Is this connected with how Aptana communicates with the browser? With the server?...
EDIT:
So I decided to try a new thing altogether and installed a full new system based on LXLE 14.04 (based on the same ubuntu 14.04, which I used in a full unity version before).
Now, after some quirks, I have a running debug in Aptana on that system. I am pretty sure, though, that this is the configuration that worked for me in the first place.
I also remarked some weird window behavior on the system - sometimes the Aptana window would get so small it is hardly noticable (1px*1px?) and gets to the top left corner.
I found that setting xdebug.remote_autostart=1 in php.ini and restarting Apache allows me to debug somewhat. Although Firefox still opens a blank page, opening the page myself in the browser now allows me to get a break in Aptana.

phpinfo() returns blank page in Firefox and asks whether to open or save in IE

I'm trying to update a site that's using php. I built the site and tested it on this machine. But today, the Php won't run on my local machine.
To test, I went back to the most basic php page I have:
<?php
phpinfo();
?>
When I navigate to this file, in Firefox (28), the result is a blank page. (The page source shows just my code.) In IE 11, I'm asking whether I want to open or save the file.
Searching for my original problem (which was that my php code was showing up rather than running), it was suggested that php wasn't installed. I don't know how it would have gotten uninstalled, but I went ahead and installed it again (from http://www.microsoft.com/web/platform/phponwindows.aspx) and still no joy.
Windows 7 SP1
Updates in response to suggestions:
Pardon the beginning stuff, but I'm not primarily a web developer. (I do databases.) This is stuff I'm doing for an organization I'm involved in. I don't actually remember having installed/configured a web server in the first place, nor do I remember having installed php before yesterday (though maybe my son did that for me).
After seeing the replies here, I followed the instructions on this page: http://webmasterjuice.com/how-to-activate-built-in-web-server-windows, but I'm still seeing the same thing.
Update:
I've confirmed that IIS is running and the php was installed. I've followed instructions I found online for getting php working in Windows 7 with IIS. However, it still doesn't make sense to me to have to do this. I'm sure I didn't do any of this when I started working with php. I'm not trying to use my computer as a web server. No interest in working through localhost.
I'm creating the file in a simple web-oriented editor (Crimson Editor). Until recently, I could use the editor's preview function on a file, whether HTML or PHP, and it would run correctly. I'm baffled as to why this stopped working.
A few things to look for:
It's php running besides been installed? (obvious, but maybe it got killed by some reason)
Have you included the phpinfo() call inside a html document?
Obviously you named the file with a .php extension and saved it within the document root of the server..?

Random blank pages on Safari when developing webapp

I've been experiencing a safari problem while building a web application. The screen goes completely blank (white) and refreshing won't help. Going to another page on the site gives the same problem. Then magically, after a little while, everything goes back to normal and pages are rendered correctly!
This started happening around the same time that I SUSPECT my hosting automatically upgraded from PHP 5.2.x to 5.3 (all of a sudden, we got 'deprecated function' errors and the error settings and handling were unchanged)
I also have to mention that this doesn't happen in our dev environment (PHP 5.2.9, Apache 2)
Settings
Safari 4.0.2 and the latest one (don't know the version)
Server side: PHP 5.3, MySQL 5.0.90, Apache is cPanel Easy Apache v3.2.0
Does anyone know why this is happening at all or know how to fix it?
If it happens with other browsers as well as safari it is probably an error message generated but not displayed. Depending on your code these can be time dependent.
If you have an error log file on your server check it's content.
You should also set up a PHP 5.3 development environment as quickly as possible. There are things that can go wrong when upgrading from 5.2. to 5.3 (see this page and yes, you can get angry at your provider, the PHP site does not advice an upgrade without a code check).

Categories