Fiddler, localhost, IIS, PHP and GData - php

I have managed to get Fiddler monitoring my localhost traffic by specifying my machine name. I am using IIS7 (localhost) on Vista business. I'm developing using PHP and am currently using the Zend GData framework to communicate with Google Calendar.
I am not seeing any communication between the IIS/Localhost server and the Google service. How can I see requests between my localhost IIS server and the external Google server. Obviously, I am seeing the result of the interaction in the browser but not the request/response between IIS and Google that is orchestrated by my PHP script and the Zend GData framework.
Can Fiddler do this? Any help or advice would be very much appreciated.
Thanks,
Geester

The problem is that your IIS code runs in a different user account, and hence ASP.NET must be directly configured to point at Fiddler. See http://www.fiddler2.com/fiddler/help/hookup.asp#Q-DOTNET and Fiddler not sniffing SOAP traffic from ASP.NET website

Related

Could I use Microsoft AppFabric Caching for communication between PHP and ASP.NET

We have the following setup:
-Windows 2008 R2 Standard.
-ASP.NET Web Application deployed on Microsoft IIS 7.5 Web Server.
-PHP Version 5.4.21 Non Threaded 32-bit version
-WISP (Windows, IIS, SQL Server/Express, and PHP) stack and an ASP.NET web application
HTTPS ( SSL )
We will ultimately deploy an ASP.NET Web Application and a PHP Web Application on the Same IIS Server.
User will first log on to the ASP.NET Web Application, but we want the user to be able to navigate between the ASP.NET Web Application and the PHP Web Application back and forth with ease.
We were planning on using a Distributed Cache technology to share session information between the ASP.NET Web Application and the PHP Web Application.
Could I use Microsoft AppFabric Caching for communication between PHP and ASP.NET? Will Microsoft AppFabric Caching work with PHP? If yes, how well does Microsoft AppFabric Caching work with PHP?
I would say your best bet is to write some sort of standards compliant wrapper around your cache API. Something like a REST service that works equally well in PHP and ASP.NET.
So in that solution you would have :
ASP.NET Web Application
ASP.NET Hosted Web API -or- ASP.NET Hosted WCF webHttpBinding
PHP Hosted Web Application
Your two web applications should then share serialized JSON or XML objects through the REST service.

Restful php client not working on server but works fine in localhost

i need build a restful client on php. i have used pest class which is available on github. my client is working fine on localhost where the web service is hosted on a remote server. but when i uploaded the code to another server it returns timeout. I havent used any extension php (dll files). what can be the issue. please help me. thanx.
How does it execute it's web requests? (Sockets, file_get_contents, curl?) I'd imagine it's an issue of not allowing outbound requests. In that case, contact the server admin and ask them. Try using a demo curl script to see if you can contact google and pull down its index page, that will tell you if you are allowed out bound requests. I had this issue before, where my server was denied outbound requests and just had no results. I would think the server-admin would be able to help here.

IIS 7 and PHP - Problem with remote access

After ten years of ASP.net development (i.e. I know very little about PHP), I have just installed my first PHP web site running on a Windows Server 2008 R2 IIS 7.5 web server.
The web server is one of three servers running in a small network.
I have set up DNS to reference the web server.
If I open a browser on any of the local network machines and enter the url, the web site opens and runs perfectly.
If I do the same thing with a PC that is not part of the network I am unable to open the web site.
I'm not sure if this is a PHP or IIS problem (or maybe both).
Can anyone point me in the right direction?
Thanks.
I'd be very surprised if it is a PHP problem. I have found some very odd behaviour in IIS with it apparently tunelling NTLM authentication to access resources on network drives, but you need to start by looking at the simple things first.
Can you access static content on the webserver? If not then you need to have a look at how your DNS, network routing and firewalls are configured.
If you can access static content but not PHP content, then the webserver should be lofgging the reason why it's turning down requests for PHP files - go read your logs.

We need PHP for redirects but host is not supported; can Ruby handle PHP URLs?

We have recently had to move our charity website to a new (shared) host (www.networksolutions.com/web-hosting/hosting-package-comparison.jsp).
The website specs are: WINDOWS OPERATING SYSTEM, MS SQL 2005, ASP.NET FRAMEWORK 2.0.
We had created URL redirects from our old site which was written in PHP to our new site in ASP which were working fine. Unfortunately the new hosting company does not have PHP as part of the Windows Hosting Package so now none of the redirects work. The Windows hosting does have Ruby on Rails.
Is there any way we can use Ruby to deal with the old PHP URLs so they are redirected to the new pages? Or could there be another way of doing it?
An example of the redirects we had were from:
pfaf.org/leaflets/edible_uses.php TO www.pfaf.org/user/edibleuses.aspx
Any help would be much appreciated
If you have a static list of URLs to redirect then no programming language should be needed. You can do redirects in your web server configuration. Both Apache HTTP server and IIS support this.
http://en.wikipedia.org/wiki/URL_redirection#Using_.htaccess_for_redirection
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/6b855a7a-0884-4508-ba95-079f38c77017.mspx?mfr=true
You can't do this. You need a service provider that supports PHP. PHP pages are processed by the server before they are sent out to the browser. In order to properly send the PHP pages to the browser, you need a hosting provider that supports PHP.

create local server on android

I want a develop a web application with php, and I want a run my apps with a android device. But my device will not be connected to internet, so I must create a local server on the device to run my php code. Is it possible? And if it's possible how?
Based on this page, developing Web Server for mobile devices is still on the research phase. Most probably you would need to use some kind of simulator for Android and develop your App on powerful desktop PC.
EDIT: Looks like such a server exists for Android.
Please use KSWEB.apk. This app supports PHP, SQL, html, csc, but it requires 3 android devices. The first serves as router, the 2nd device is a local server and the 3rd devices is a monitor.
I'm not sure about your need to have a web server running on your phone, but if you have a wireless router and your phone can connect to it, can you not install an Apache server with PHP support on your development PC and access it via your phone's wireless connection?

Categories