localhost

OfficeToPDF not executing via shell_exec

守給你的承諾、 提交于 2019-12-13 05:29:13
问题 I am executing the command in by localhost on the command line as: OfficeToPDF.exe C:\wamp\www\editor\uploaded\uploaded_files_21_original\AffidavitinDIR-4.docx C:\wamp\www\editor\uploaded\uploaded_files_21_original\pdf\new2.pdf This runs fine and provides the necessary result. However, when I run it through php as: shell_exec('OfficeToPDF.exe C:\wamp\www\editor\uploaded\uploaded_files_21_original\AffidavitinDIR-4.docx C:\wamp\www\editor\uploaded\uploaded_files_21_original\pdf\new2.pdf'); It

Not receiving X_REQUESTED_WITH request header in Apache localhost

假如想象 提交于 2019-12-13 05:24:24
问题 I just set up Apache 2.4 32-bit on my Windows 7 desktop and I am testing a simple AJAX website. I have an .htaccess file that directs all non-resource-file requests to index.php, and within this .php script I check $_SERVER["HTTP_X_REQUESTED_WITH"] to determine if a given request is ajax or not (I set this header myself when I send the ajax request). Though the header is getting set, Apache seems to be dropping it before my .php script runs. I can see the request header in Chrome, but it's

Silverlight + WCF commnication exception

纵然是瞬间 提交于 2019-12-13 05:13:46
问题 I have a silverlight application which has a WCF in it. when the wcf is called it fails with this exception: An error occurred while trying to make a request to URI 'http://localhost:4693/MapService.svc'. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is unsuitable for SOAP services. You may need to contact the owner of the service to publish a cross-domain policy file and to ensure it allows SOAP

WCF service with Ssl Certificate in Azure emulator

自古美人都是妖i 提交于 2019-12-13 04:46:43
问题 I have setup my my cloud using the following http://azure.microsoft.com/en-us/documentation/articles/cloud-services-configure-ssl-certificate/ and the web role using the following http://msdn.microsoft.com/en-us/library/ms731074%28v=vs.110%29.aspx My problem that when I use emulator I get an error That the there is a name mismatch between a certificate and the website in this case(127.0.0.1) What can be done to solve it. 回答1: So there are two approaches you could take: Create a separate cloud

Accessing MySql Database from PHP file on local host

断了今生、忘了曾经 提交于 2019-12-13 04:38:46
问题 I am attempting to do a simple connect and SELECT on a LAMP server. I have made this php code work when connecting to a remote sql database but I cant get it to work with a local database. <?php //I also tried replacing the IP with localhost $db = mysql_connect('192.168.1.69','UserIcreated','MyPassword') or die("Connection error"); $db = mysql_select_db("MyDataBaseName",$db) or die(mysql_error($db)); $result = mysql_query("SELECT * FROM MyTableName"); if(mysql_num_rows($result)>0){ echo "Try

Bootstrap Glyphicons icons not rendering in IE on server

☆樱花仙子☆ 提交于 2019-12-13 04:15:11
问题 I create this question to share my recent knowledge of a weird IE behaviour. An intranet web application (ASP.NET) is under construction by myself and some Glyphicons are on a page. When I run the website on localhost, using Visual Studio, no problem appear. But when I deploy it on the IIS server, icons was not rendering anymore. Situation 1: on the server Situation 2: on localhost This problem only appear in IE (v. 8 here) when viewing it on the server. Firefox and Chrome work properly,

How to set that which one will use localhost port

╄→尐↘猪︶ㄣ 提交于 2019-12-13 03:49:08
问题 I have tried to install WAMP, APPServ but when i go to http://localhost it go into XAMPP which is previously install on the computer. how to select that which one i am going to use on localhost. 回答1: Edit http.conf file in notepad usually located in C:\wamp\Apache2\conf . then do either CTL+F or go to EDIT/FIND from the notepad menubar. this will open FIND window. type 80 in the 'Find What' box and click find next. replace 80 to whichever port to want apache to listen to. you may have to

why Coldfusion-MySQL-Apache isn't running on localhost if everything is setup and connected?

你离开我真会死。 提交于 2019-12-13 03:41:51
问题 Newbie question - my first attempt at Coldfusion/MySQL and getting it to run locally. I'm running Apache Webserver (2.2), I have importet two .sql files into MySQL (5.2.) workbench, forward engineered a database from these, setup working database connection and MySQL Server. This is also running. In Coldfusion8 Admin I added my database as a data source. I thought this would be enough :-) Still, on http://localhost I'm still only getting an index of all files in my Apache htdocs folder. If I

Running a Java program that connects to a localhost database on a different computer

走远了吗. 提交于 2019-12-13 02:54:17
问题 I've connected my really basic Java application to the Wamp server on my computer using the following code try { Class.forName("com.mysql.jdbc.Driver"); Connection connection = DriverManager.getConnection( "jdbc:mysql://localhost:3306/project", "root", "password"); Obviously, this program runs on my computer, but no one else's, and I need to submit this as a project. Is there anyway I can modify this part so that my partner and teacher can run the code from their computers, without having to

403 error on localhost with zend framework 2

我的未来我决定 提交于 2019-12-13 01:32:41
问题 Ok, so I've been getting the 403 error when trying to load this up - I installed Zend 2 even via youtube guidance of someone fortunate that it's works for out of the box. I followed this advice, but that didn't work because LoadModule rewrite_module modules/mod_rewrite.so wasn't commented out of my httpd.conf file. I tried this, but adding Options +Indexes +FollowSymLinks +ExecCGI to my vhosts.conf file didn't help. I tried removing the .htaccess file altogether. I tried commenting out the