wamp

How to send data from Greasemonkey to a PHP (WAMP) server?

[亡魂溺海] 提交于 2019-12-12 03:45:27
问题 I am creating a Greasemonkey script where I am calculating six variables (time, move, scroll, sav, prin, book and url). I need to send these variables' data to my PHP page so that these could be inserted in a MySQL table using a WAMP server. Please, can anyone give the exact code to it as I am new to all this? My Greasemonkey script is: {var ajaxDataObj = { s: sav, p: prin, b: book, t: finalTime, u: url, a: totalScroll, b: tot }; var serializedData = JSON.stringify (ajaxDataObj); GM

Stream audio files from my home computer to my website

好久不见. 提交于 2019-12-12 03:39:29
问题 Hello! I have a couple of questions regarding a website I have been building that requires audio files to be echoed onto my HTML using PHP after referencing my SQL database. To begin, my page has an audio control tag that has a php echo inside of it, like so: <audio controls> <source src="audio/<?php echo $file; ?>" type="audio/mp3"> </audio controls> the variable $file is equal to the audio file the user wants to play after they fill out a select form on a different page, which is pulled

Install two instance of wampserver on same pc

…衆ロ難τιáo~ 提交于 2019-12-12 03:22:06
问题 I have installed two instance of wampserver on same windows pc, one in C:\wamp path and another in D:\wamp path. Now when i start wamp server manager from c:\wamp\wampmanager , apache and mysql start from d:\wamp path! and i cannot see my first wamp server databeses. please help me... 回答1: If you want to get back to the first install, the one on your C: drive, you can do this. Launch the current WAMPServer, the one looking at the D: install Using the wampmanager menus do wampmanager -> Apache

getting raw output in local wamp same code working fine in webserver

旧巷老猫 提交于 2019-12-12 02:55:31
问题 i have this script which is workign just fine in server but in local wamp it is giving error i have fopen is on Warning: get_headers(): This function may only be used against URLs in C:\wamp\www\url\test5.php on line 8 <?php $websitelink= 'http://www.brobible.com/girls/article/miley-cyrus-21st-birthday-party'; $html = file_get_contents($websitelink); $doc = new DOMDocument(); @$doc->loadHTML($html); $tags = $doc->getElementsByTagName('img'); foreach ($tags as $tag) { $data = get_headers($tag-

Trouble accessing file in other directory using Ajax, am I specifying the path wrong?

こ雲淡風輕ζ 提交于 2019-12-12 02:54:08
问题 In WAMP I changed the root directory from C:\wamp\www to C:\wamp\www\public . I have a file named username.html it communicates through Ajax with simple.php . This works fine if simple.php is in C:\wamp\www\public but if I move it to C:\wamp\www\private nothing happens. NOTE I elected not to use jquery and am doing this with plain javascript. xmlhttp.open("GET", "simple.php?suite="+top,true);//works when simple.php is in same folder xmlhttp.open("GET", "..\private\simple.php?suite="+top,true)

Why would this regex return an error?

我们两清 提交于 2019-12-12 02:39:21
问题 Why does the following evaluate to true ? if(preg_match_all('%<tr.*?>.*?<b>.*?</b>.*?</tr>%ims', $contents, $x)===FALSE) {...} $contents , is retrieved using file_get_contents() from this source. The regex was simplified to troublshoot the problem. The code I was actually using was: if(preg_match( '%Areas of Study: </P>.*?<TABLE BORDER="0">(.*?)<TBODY>.*?</TBODY>.*? </TABLE>%ims', $contents, $course_list) ) { if(preg_match_all('%<TR>.*?<TD.*?>.*?<B>(.*?)</B>.*?</TD>.*?<TD.*?>.*?</TD>.*?<TD.*?

How to connect to SQL Server database through PHP?

坚强是说给别人听的谎言 提交于 2019-12-12 02:27:23
问题 I'm building a web-service for an Android application that needs to connect to a SQL Server database. I'm trying to connect through PHP (WAMP) on my home computer to the SQL Server database. However, I don't have experience SQL Server and don't know how to proceed. For SQL Server, I'm using default settings and Windows Authentication, so I'm not sure what to type into the connection string. Below you have my connection: $connStr = "PROVIDER=SQLOLEDB;SERVER=".$myServer.";UID=".$myUser.";PWD=".

Uncaught exception 'PDOException' with message 'could not find driver' (to an Oracle DB)

拟墨画扇 提交于 2019-12-12 01:58:25
问题 I've been encountering this error after installing Wamp, and have tried enabling all of the PDO's contained in php.ini (located in the Apache bin folder). The error is: PDOException: could not find driver in C:\wamp\www\common_db.php on line 27 Where line 27 is: $db = new PDO("oci:dbname=".$oraDB, $dbusername, $dbuserpassword); I have used phpinfo () to check which PDO's have been enabled. I've uploaded my php info onto Google Drive. I'm trying to connect to an Oracle database, and have php

WAMP: Cannot Connect To Localhost

走远了吗. 提交于 2019-12-12 01:29:00
问题 I'm just stuck on one little thing here but here is what I've done so far using websites and video tutorials (Note: I'm Running on Windows 10 and using Microsoft Edge as a browser for WAMP). Disabled Skype I went into the little WAMP menu/apache/httpd.conf and changed LISTEN to port 81. It still said port 80 was being used by Windows IIS 10.0 so I went into the Command Prompt as admin and used "iisreset /stop". Now WAMP is green and online, yay. I enter localhost at the top of the WAMP menu

jquery-spellchecker (badsyntax) examples not working in WAMP

风格不统一 提交于 2019-12-11 22:50:41
问题 I can't seem to get this extension working on Windows Server 2003 using PHP 5.4.12. Here are the steps I have taken - Installed the extension from the website - http://jquery-spellchecker.badsyntax.co/downloads.html Installed pspell (aspell) from the http://aspell.net/win32/ website copied both apsell-15.dll and pspell-15.dll from the install directory (c:\Program Files (x86)\Aspell\Bin) to the C:\wamp\bin\apache\Apache2.4.4\bin directory and to the C:\WINDOWS\system32 directory. Also copied