FAQ Database Discussion Community


Opening a Text File using PHP - Fixing the Format

php,format,wamp,fread
Basically, my text file contains this info: WITH PARALLEL AND SERIAL ----- [System Info] ----------------------------------------------------------- Property Value Machine Type AT/AT COMPATIBLE Infrared (IR) Supported No DMI System UUID 809EC223-DAD7DD11-A2F33085-A993FFAC UUID 23C29E80-D7DA-11DD-A2F3-3085A993FFAC Disk Space Disk C: 89 GB Available, 97 GB Total, 89 GB Free Disk Space Disk D: 355 GB...

Unable to Update PHP Version

php,wamp
Current environment: WAMP 2.4 (PHP5.4.16), Expectation: upgrade PHP Version from 5.4.16 to 5.5.26. Getting Following Error: While switching the php version, getting below error ...

Customising the php error messages in WAMP - Is it possible?

wamp
The error messages that PHP throws up in WAMP are really ugly and very difficult to read when viewed through the dev console (when debugging xml requests). Is there an easy way to improve them?...

php not functioning inside html file but works outside

php,html,mysql,wamp,meekro
I have been following the php tutorial here CODE Here is my html file: <!DOCTYPE html> <html> <head> <link rel=”stylesheet” type=”text/css” href=”style.css”> <form action="postForm.php" method="post"> <TextArea name="microBlog" id="microBlog" cols="30" rows=“10"></TextArea> <input type="submit"> </form> </head> <body> <?php require_once 'meekrodb.2.3.class.php'; DB::$user = 'root'; DB::$password = ''; DB::$dbName = 'MicroBlog'; $results = DB::query("SELECT...

Get Apache VHost to load index.html instead of web directory

angularjs,apache,server,wamp,host
I'm having no luck finding this question answered so I'm asking this myself. To get my VHost working, I followed this answer. My (working) "httpd-vhosts.conf" file looks like this <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot "Z:/Projects/Web/MetalTxus Site" ServerName metaltxus.test ServerAlias www.metaltxus.test <Directory "Z:/Projects/Web/MetalTxus Site"> #Options FollowSymLinks Options Indexes FollowSymLinks AllowOverride All...

How to get set correct relative paths in PHP with alot of directories?

php,wamp
I have a problem finding the right path for a file. Here is my example. (I run Windows and WAMP) my main file is placed here: /homedir/subdir2/subdir3/index.php it has to look for file placed here: /homedir/subdir1/images/slides/image.png My code is: /homedir/subdir2/subdir3/../subdir1/images/slides/image.png ...

Running xdebug debugger from Netbeans opens incorrect page

netbeans,wamp,xdebug,wampserver
When I click Debug Project in Netbeans, my browser opens a page, the URL looks like this: http://localhost/projectname/?XDEBUG_SESSION_START=netbeans-xdebug The page has a directory listing of my project, but http://localhost/projectname is not the correct URL for my project. The correct URL is in this format: projectname.local How to get netbeans to...

DNS lookup failed with wamp server

php,dns,wamp
I have installed wamp 2.5 and apache 2.4.9. I add in the www folder a simple php file. When I tried to access it from the localhost, I received the following message: The server at main can't be found, because the DNS lookup failed. DNS is the network service that...

How to set php.ini location?

php,windows,apache,wamp
I just installed PHP, Apache and MySQL, did some changes to the configuration files and it works but phpinfo() says it looks for php.ini in C:\Windows. How to make it look somewhere else? Should I configure this in Apache? I put: SetEnv PHPRC "C:/wamp/php5.6.5" in http.conf, restared Apache but it...

Invalid command 'AddOutputFilterByType', perhaps misspelled or defined by a module not included in the server configuration

wamp
I'm running prestashop 1.4 with wamp 2.5 and im getting the in error file (.htaccess) Invalid command 'AddOutputFilterByType', perhaps misspelled or defined by a module not included in the server configuration I didn't get it in previous installation (wamp 2.4) I read this Invalid command 'AddOutputFilterByType', perhaps misspelled or defined...

PHP file is not executing code

php,apache,wamp
My PHP code is not executed when I access the root directory with http://localhost/sample.php The code I want to run is: <?php phpinfo(); ?> But my code is just shown on the browser, it is not executing. I tried to: restart all services several times including putting WampServer online; changing...

MySQL - can't define foreign key

python,mysql,phpmyadmin,foreign-keys,wamp
I'm trying to create tables on Wamp server using Python. There are two tables - person and message. The table message has a column person_id which should be a foreign key for table person. After the tables are created, there is no foreign key in message table when I look...

Where are sql databases saved on hard drive? [duplicate]

php,mysql,wamp
This question already has an answer here: where does MySQL store database files? 3 answers I have a hard drive that will not boot that has wamp server installed on it. I can still access the hard drive files(barely), but need to find out how to transfer the MySQL...

CONCAT function in MySQL using PHP Undefined Variable

php,mysql,wamp,wampserver
I need help on how to do this correctly. I need to execute this command: SELECT concat(branchname, -->, itemtype, '(, quantity, ')') from monitoring order by itemtype; the syntax works in MySQL console. However, im having trouble with implementing it on php. I always get "Undefined index: branchname" "Undefined index:...

Why is my HTML so poorly formatted when rendered with Smarty?

php,wamp,smarty,slim,smarty3
Why is my HTML so poorly formatted when viewing the source code? Working with: WAMPSERVER (64 BITS & PHP 5.5) 2.5 Slim Framework v2 RedBeanPHP 4.2 Smarty 3.1.21 index.php: <?php // load required files require 'class/Slim/Slim.php'; require 'class/RedBean/rb.php'; // register slim auto-loader \Slim\Slim::registerAutoloader(); // set up database connection R::setup('mysql:host=localhost;dbname=slimcms','root',''); R::freeze(true);...

How to access localhost/drupal from the internet?

php,apache,drupal-7,wamp,wampserver
I have created a simple website whose url is localhost/drupal. But I couldn't access it from the internet. (i,e from another laptop connected to my home router). I have all settings in the httpd.conf file under Apache set correctly as instructed. i,e "Require all granted" is set. I use Apache...

#1045 Cannot log in to the MySQL server in wamp

php,mysql,phpmyadmin,wamp
I am installed wamp both in server and in my local machine. In local machine this is working fine. But some issues happened in server. While I log in to the phpmyadmin #1045 Cannot log in to the MySQL server error shows. Ho I can solve this? My config.inc.php file...

Which mod_wsgi Binary to download?

python,wamp,wsgi
1) I am trying to setup a WAMPServer and am stuck on which file I need to download from the site: http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi I am using: Windows 7(64 bit), Apache 2.4.9 and Python 2.7. 2) Also, many of the tutorials I have seen on the matter say to download a .so...

Unable to access Wamp Server from other device on same network

apache,networking,wamp,wampserver
This is my httpd.conf . I have already changed details in tag . But not sure what I am missing . I am able to access on my same computer both with localhost and typing IP address of my computer . Also I made sure that before trying to access...

php script in wamp giving error “not recognized as an internal or external command”

php,wamp,exec
<html> <body> <h2>xxxxxx!</h2> <script language="php"> $score = array(); exec("D:\Users\Owner\Documents\a2 2>&1 D:\Users\Owner\Documents\212.wav D:\Users\Owner\Documents\StartUp\23sw1.wav", $score); #echo "<h3>Score </h3>\n"; echo "<br />xxxxxxx: $score[0]\n"; </script> </body> </html> Error message: 'D:\Users\Owner\Documents\a2' is not recognized as an internal or external command, ...

forbidden access on wamp server through wlan ip

wamp
I can't access my server through my wlan ip 192.168.1.4. My httpd.conf file has a line: <Directory "c:/wamp/bin/apache/apache2.4.9/cgi-bin"> eAllowOverride None Options None Require all granted </Directory> ...

Unresponsive localhost

codeigniter,wamp,virtualhost
I have set up wamp 2.5 in my windows 7 (32 bit). I have set up a virtual host accounting.dev and set up the hosts file 127.0.0.1 localhost 127.0.0.1 accounting.dev When I try to access localhost http://localhost The page keeps spinning and loads after a very long long time. When...

How to fix wamp server running different wamp server folder

localhost,wamp,wampserver
I have 3 Wamp servers for my 3 different websites.How can i fix the problem if i turn on my first Wamp server (c:/folder1/wamp) instead the third wamp server is run (c:/folder1/folder2/wamp) how can i fix this? i tried to uninstall the third one but sadly all my Wamp server...

Regaining access to lost MySQL password for PHPMyAdmin on WAMP

mysql,phpmyadmin,wamp
I changed the password for my 'root'@'localhost' account in PHPMyAdmin and like (this person asking here) and locked myself out of PHPMyAdmin on my browser. I am using WAMP 2.5. The solutions offered on that question don’t work for me because unfortunately I have lost the password that I reassigned...

Why is count(*) query slow on some tables but not on others?

mysql,wamp
I've got a mysql database running on a wamp server that I'm using to do frequent pattern mining of Flickr data. In the process of loading the data into the database, I ran a count query to determine how many images I had already loaded. I was surprised that it...

Running php script from HTML file WAMP

php,html,wamp
So I have been following this tutorial here I have installed WAMP and the server is up and running just fine. (As the green light in the taskbar indicates). In the www folder I have the following 2 files: <!DOCTYPE html> <html> <head> <title>First Form</title> </head> <body> <form action="postForm.php" method="post">...

How to access wamp from other networks?

php,sql,apache,wamp,remote-access
I'm trying to access WAMP from another network and the server is not responding. I have configured WAMP to be accessed on the LAN and it works fine. Now I want to make my WAMP accessible through other networks on a remote PC. I tried to search online but couldn't...

Why do I get an error message on Wordpress blog posts (only) on my local environment (and on the original server I don't)

php,database,wordpress,.htaccess,wamp
I copied all my WP files from the server to my local WAMP as a dev-environment. Everything works smoothly except when viewing a blog post. I get a good output of all the titles/categories/post-content/ect' - But with a strange output before the blogs content: http://i.stack.imgur.com/JTKJ5.png content.php Line 68 is this...

Need help finding a bug with jquery $(document).ready() not working properly in firefox

javascript,jquery,firefox,wamp,document-ready
I made a jquery function that sets the width of an element so that it fills any extra width left by it's siblings inside it's parent. (basically a flexbox) I call this function in both $(document).ready() and $(window).resize() HTML <body> <div class='pageCenter'> <div class='fixedCol'>my fixed col</div> <div class='flexCol'>my flexible col</div>...

Can't connect to WAMP server through local network

mysql,vb.net,wamp
I'm trying to connect using my VB.NET app to a WAMP server that is located on another PC (on local network), but I'm getting an error: Unable to connect to any of the specified MySQL hosts. That happens just if I'm trying to connect via my app (if I type...

Wamp: The configuration file contains a syntax error on line 24

wamp,wampserver
How can I start the wamp server on windows 7 using wamp version 2.4? Following is the error message I get: The configuration file contains a syntax error on line 24: [EParseError][config] section directive "ImageList" already specified. ...

Windows - PHPDocs unable to install through Pear

php,wamp,pear
When running the two commands to install phpdocs: pear channel-discover pear.phpdoc.org pear install phpdoc/phpDocumentor I get this error below saying I am unable to unpack a tgz file below. C:\wamp\bin\php\php5.5.12\pear>pear channel-discover pear.phpdoc.org C:\wamp\bin\php\php5.5.12\pear>pear install phpdoc/phpDocumentor downloading phpDocumentor-2.8.2.tgz ... Starting to download phpDocumentor-2.8.2.tgz (16,246,834 bytes) ...................................................................................

Why can't Apache start?

wamp
I'm setting up WAMP for the first time, and Apache won't start, and when I run the "Test Port 80" utility, it says that Your port 80 is not actually used.. From what I can tell, that means that something is blocking it from using Port 80. I looked around...

Change browser/system default localhost port (80) to custom

apache,xampp,localhost,wamp,wampserver
When I using XAMPP or WAMP I getting the following issue: XAMPP - Port 80 in use by "Unable to open process" with PID 4! 12 And it`s easy to solve it by changing the .ini file of Apache and tell him to use port 8080 (for example)... But then...

PHP Error with mySQLi

php,mysql,mysqli,wamp
I'm learning PHP and MySQL and made a small website to help me learn. While I was implementing MySQLi, I kept getting an error with the code. I tried various things like trying to query all the tables contents but I get 0 rows even though I have a few...

Web Hosting equivalent of WAMP? [closed]

php,mysql,apache,phpmyadmin,wamp
I have created a decent website using wamp server ( Apache, MySQL, PHP ) It is HTMl and css pages with a mysql database Is it possible to host this website using web hosting easily? Will a ubuntu image mess everything up? Is there any way to host on a...

PHP backward compatibility

php,mysql,wamp,wampserver,backwards-compatibility
Am having a trouble running the code written for targeted PHP version 5.3. Currently I have PHP version 5.5.12 on my PC. Is there a way to have more than version on the same machine or What should I do to have those codes running perfectly fine. Am using WAMP...

Unexpected end of Apache in EasyPHP

apache,wamp,easyphp,listen
I know there are some similar questions about this, but I found none in or outside SO that could solve my problem. I am an Apache beginner so please bear with me. I am trying to make my Apache server listen to my network's IP so only machines that are...

How to link GitHub repository with Wamp Server correctly?

wamp,git-bash,github-for-windows
Anyone know how to link a local Github repo with the Wamp server? I'm trying to run my project with localhost so I'm using Wamp. Whenever I run these commands cd C:\Users\my\Documents\GitHub\repo git --work-tree=C:\wamp\www status (repo is the name of the repo) to link them up though (as suggested by...

MySQL php select statement using WAMP server

php,html,mysql,wamp
Im trying to display a database table in my html page but cant seem to get it to work. (code below): <!DOCTYPE html> <html> <body> <h1> Table </h1> <?php $servername = "localhost"; $username = "root"; $password = ""; $dbname = "Library"; // Create connection $conn = new mysqli($servername, $username, $password,...

Wamp phpMyadmin Maximum execution time of 360 seconds exceeded

php,phpmyadmin,wamp,wampserver
I just installed WampServer. It works when I visit my project page but when I try to navigate phpMyAdmin i get this error: Maximum execution time of 360 seconds exceeded What is the problem? ...

WAMP | Installing PDO drivers into PhP extensions

php,sql-server,pdo,wamp,driver
WAMP is relatively new ground to me. I have currently only done basic installations and vhosts configurations. Issue I am trying to get the PDO drivers installed on my WAMP server so I can connect to SQL Server Databases. From a previous question I asked it was determined i do...

Copied MySQL Database Files but Tables are not Showing in PhPMyAdmin

mysql,database,wordpress,wamp
I recently tried to restore a Wordpress site using backed up files. I put my faith in the Wordpress "export-all content" function that in fact exports very little. I kept backups of the WAMP files and have read several posts that successfully copy the backed up database files into the...

Localhost setting for multiple projects broken links

apache,localhost,wamp
I am running wamp on my pc, with more than one project, so in order to go to my project I need to go to localhost/project1 and it works fine however href links (/mypage.html) keep pointing to localhost/mypage.html. What do I need to change in order to keep the links...

Writing a table constraint

mysql,sql,wamp,check-constraints
I have three tables as : Student (snum(primary key),sname) Enrolled (snum,tname) Training (tname(primary key),tdate,thour,troom) I have to put a constraint to the table Enrolled so that a student can not register courses(tname) that given at the same time. I have tried something like this but I think it just gives...

wamp is not starting completely

php,mysql,wamp,wampserver
I have latest version of wamp i.e WAMPSERVER (64 BITS & PHP 5.5) 2.5 installed. Its not starting completely, not turning to green and so mysql is not starting even though the port is used by apache itself. I have also installed Visual Studio 2012 VC 11 vcredist_x64/86.exe for my...

Installing php_phalcon.dll on wamp server 2.5 x64 [closed]

wamp,wampserver,phalcon
Well this is my first time on phalcon, I want to try it out, but I can't activate the extension. I am using WampServer 2.5 x64. Here's my php version: According to this, I tried 2 versions from their download page: Restarted wamp several times, but I still get a...

How can I use a php file to display an HTML menu div in other HTML pages?

php,html,wamp
I have an index.html file, a menu.php file, and a testing.php file. I'm working on a simple web application for storing contacts into a database and (eventually) displaying them in a nicely formatted html page on my server. I'm using the WAMP stack to learn. After a lot of trial...

Getting NotFoundHttpException when accessing a image file in uploads directory in Laravel 5.1

php,.htaccess,laravel,wamp,laravel-5
My setup WAMP Windows 8 I have an uploads directory in iapp <- Root Directory uploads app public Virtual Hosts file (httpd-vhosts.conf) NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot C:/wamp/www/ ServerName localhost </VirtualHost> <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot "C:/wamp/www/iapp/public" ServerName iapp.dev ErrorLog "logs/iapp.dev-error.log" CustomLog "logs/dev-iapp.dev-access.log" common <Directory "/"> Order Deny,Allow Deny from...

WAMP Apache VirtualHost and Symfony2 issue

apache,symfony2,wamp,virtualhost
I'm working with WAMP on Windows 7. Every time I try to create a Virtual Host to work with "clean" URLs for a Symfony2 project, I get 404 errors. Here's my httpd.conf: NameVirtualHost localhost <VirtualHost localhost> DocumentRoot "D:/Documents/wamp/" ServerName localhost </VirtualHost> <VirtualHost my-project.local> ServerName my-project.local DocumentRoot "D:/Documents/wamp/my-project/web/" DirectoryIndex app.php <Directory...

URL and folder path different

php,wamp
I have a website wrote in PHP and running with WAMP server. I am wondering if it's possible to access a file using a different URL of than original path?? Actually I have a file in X:/wamp/www/test/test2/index.php and I use localhost/test/test/index.php to access it. But can I create an alias...

WAMP shows error 'MSVCR100.dll' is missing when install on my computer

wamp,wampserver,msvcr100.dll
When I install WAMP, that show following alert, The program can't start because MSVCR.dll is missing from your computer. Try reinstalling the program to fix this problem. gave OK, then installed the wamp. When I start, WAMP logo is always 'yellow' color only. That's not return to 'green'. What is...

Connect mysql with java

java,mysql,windows,wamp
I am trying to connect to mysql in java (I use Wamp) so I used the following code : (I'm using Eclipse) package genererPlanning; import java.sql.*; public class genererPlanning{ static final String JDBC_DRIVER = "com.mysql.jdbc.Driver"; static final String DB_URL = "jdbc:mysql://localhost/mysql"; static final String USER = "root"; static final String...

Subdomain routing not working on Laravel 5 - WAMPServer

apache,.htaccess,laravel,routing,wamp
I am trying to implement static and dynamic subdomain routing in my application. It is not working as expected. I am using WAMPServer in my local machine. routes.php Route::get('/', [email protected]'); Route::group(['domain' => 'api.letsplay.dev'], function () { Route::group(['prefix' => 'v1'], function () { Route::get('users', function () { return "Success"; }); });...

Run server in cmd in Windows

php,windows,wamp
I created a simple client server codes in PHP and I run it through Wamp server localhost in browser. It works but when I run it in cmd, the output looks like this : c:\wamp\www\Converter>php testserver.php PHP Fatal error: Call to undefined function socket_create() in C:\wamp\www\Converter\testserver.php on line 15 PHP...

reset/change mysql root password

mysql,wamp,bitnami
How to reset/change mysql root password in bitnami wamp stack? I trying this solution but this not working for me. In the bitnami folder no have file \bin\mysqld-nt.exe...

How to auto redirect IP address to a login PHP script?

php,html,wamp,wampserver
I am using WAMP server, and I am a novice. Currently, I have many scripts under /www/mySite. I have set /www/mySite as my default location for the wamp server. However, when you set the browser address to http://myIPAddress, it automatically shows a list of files under /www/mySite. I don't want...

Laravel migration blows up on foreign key. Already using unsigned int and referencing created tables

php,mysql,laravel,wamp,artisan
I am racking my brain trying to figure this out, but to no avail. Please help. I have the following code: Schema::create('inventory_category_relations', function(Blueprint $table) { $table->increments('id'); $table->integer('inventory_category_id')->unsigned()->nullable()->default(null); $table->foreign('inventory_category_id')->references('id')->on('inventory_categories'); $table->integer('inventory_id')->unsigned()->nullable()->default(null);...

ftp_get() corrupt large file download

php,ftp,wamp,lamp,gz
I have to download a large file(approx~-9mb) in .gz format from the server using ftp. I have written a function which downloads the file completely and correctly but when i put this code online , the file is downloaded but the file gets corrupt. Here is my code: function downloadFile($ftp_server,...

Creating absolute path in PHP

php,wamp,wampserver
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...