wamp server

J2EE- How to redirect to external site?

I am using netbeans J2EE . When i do href=”www.google.com” in a button in my web application I get http://localhost:8084/www.google.com in the bar adress so I can’t access to google. What should I do to get out of the localhost and redirect to any external web site? Source: wampserver

Change absolute path?

I have a folder at D:wampwwwfolderwebsite Problem is that all links to CSS, JS and so on start with a slash “/”. Because of that it looks for the css/js in D:/wamp/www/css/*.css How can I change the absolute path just for that website so it doesn’t go any further back than D:/wamp/www/folder/website? Source: wampserver

Eclipse Luna and WampServer – Eclipse not deploying to Wamp www folder (getting 404 error)

I recently decided to install fresh new copies of Eclipse Luna and WampServer. I correctly set up all the servers and debuggers (which for WampServer is XDebug). For some reason, when I try to run any PHP code from Eclipse, I am getting a 404 error. Looking through at the WampServer www folder, it appears that Eclipse is not deploying…
Read more

table not found WAMP

I have created a database at MYSQL , but my laptop has improperly shut down while the WAMP server still running , when I opened it again the server icons stayed orange , I deleted the ibdata1 file , the WAMP works , and the database appears with its tables on the list (phpMYAdmin) but when I click on any…
Read more

Writing a rule in .htaccess to match the correct images folder location

In my single-page-webapp i used the html5 history API so that urls could have a REST pattern (/section1/stuff1..) and i’m planning to make a sort of a javascript router to navigate to several sections of the page depending on the url path. Right now i’m still working on a local server(wamp) and i added a .htaccess file: RewriteEngine On RewriteCond…
Read more

Creating absolute path in PHP

I’ve created a PHP file url.php and wrote this codes – <?php define(“BASE_URL”, “/geo15/” ); define(“ROOT_PATH”, $_SERVER[‘DOCUMENT_ROOT’] . “geo15/” ); ?> I’ve included the url.php file in several pages but when I browse those files, I get this error message: Warning: require_once(inc/url.php): failed to open stream: No such file or directory in C:wampwwwgeo15incheader.php on line 1 But when I paste…
Read more

Changing Wamp localhost icon and phpmyadmin icon

I figured out how to change the port for wamps localhost so I can use phpmyadmin and localhost. It’s now :8080. However how could I change it so when I click the Wamp ICON at the bottom right of my computer, then click the localhost, or phpmyadmin icon inside the wamp icon it will take me to the new localhost…
Read more

org.apache.http.conn.ConnectTimeoutException: Connect to .. timed out error

I’m trying to make GCM android app, when i get my regID succesfully BUT my device can’t register on the server here is some of logcat messages: 05-13 19:38:42.275: W/System.err(22161): org.apache.http.conn.ConnectTimeoutException: Connect to .. timed out 05-13 19:38:42.275: W/System.err(22161): at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:121) 05-13 19:38:42.275: W/System.err(22161): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:144) 05-13 19:38:42.275: W/System.err(22161): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164) 05-13 19:38:42.275: W/System.err(22161): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119) 05-13 19:38:42.275: W/System.err(22161): at…
Read more