Apache lets you set php.ini values for virtual hosts with the php_value directive.
Does nginx have something similar? Is there another way to set the include_path on a per-site basis?
I'm in the middle of developing an e-commerce site that is using Paypal as it's payment gateway. All I want to do is run some code before the user heads off to Paypal, but I have no idea how to do it. Eg:
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult GoToPaypal(FormCollection collection)
{
//do what I want to do
//go to paypal
}
Can you do this? Example HTML and C# would be lovely :)
I would like to give my users something similar to crystallines color chooser or themeroller so they can interactively theme the site.
Is there an open source solution that would go most of the way in this respect? Short of that what color picker would you recommend?
In Django, I have SESSION_COOKIE_DOMAIN set to my domain name. But I would actually like to run the same site with two different domain names.
With SESSION_COOKIE_DOMAIN set, only the named domain allows the user to login. Is it possible to allow both domains to login?
Hi ALL~
I'm getting this error while I was implementing and testing PHP webservice using Zend Soap.
I'm testing the same codes under 2 different protocols(http & https) in 2 different web servers.
http site works just fine, but I get "SoapFault exception: [VersionMismatch]..." error in https.
The two web servers almost have the same specs.
Is there anyone who can help me with this?
Using Visual Studio 2005
I download open source code from one site, when i try to run the source code, it showing error like Namespace & assembly references....
What are the procedure i have to do for this kind of errors....
And also i want to create a dll file by using this code. For Dll what are the procedure need to do?
Need Help.
I want to display a quote on my site for daily basis. after 24 hours it should change. quotes are stored in MySQL database. how do I do this with PHP
Thanks
Mathew
I tried to follow PHP.net curl site and even this link: http://curl.phptrack.com/forum/viewtopic.php?t=52
and try to install the CURL in my window laptop. It doesn't work.. CURL is not installed.
I wonder do I need to run it on windows server...
Anyone has good sites guiding me how to install CURL? thanks.
I found this site
http://www.shutterfly.com/documentation/api_OrderImage.sfly
but there are no examples of actually walking through the whole process. Does anyone have any good documentation on using this API to take a local photo and allow someone to order a print via shutterfly?
Hello,
I am trying to make a dropdown menu with pure html and css, but the submenus disappear when the cursor leaves the parent li, thus preventing me from clicking on the submenu. Here is a link to the test site, link text
I would really appreciate some help.
Roland A.
Does anyone have a favorite style site that posts the latest and greatest sites constructed with CSS + HTML + JS? I'm thinking of something like thefwa.com but not for all flash microsites. Trying to find the definitive portal.
Hello everyone,
I found an awesome tags plugin on cakedc site. This plugin makes your tagging concerns very easy and is able to make anything taggable.
Has anyone used it? I find it a bit difficult to understand few things listed below:
difference between the name and keyname columns of the tags table.
the use of columns 'identifier', 'weight' in tags table
Thanks
The use case: to sign a electronic document, users view the document, and if they agree take a picture of themselves with their webcam (done through Flash from the browser). Then a PDF is generated containing the document and the picture in place of signature.
This is a biometric signature, which is not as strong as a digital (cryptographic) signature, but stronger than having users draw their signature, as a photo is harder to forge than a drawn signature.
Has anyone seen this technique being used on an existing web site?
How do you override the admin model for Users? I thought this would work but it doesn't?
class UserAdmin(admin.ModelAdmin):
list_display = ('email', 'first_name', 'last_name')
list_filter = ('is_staff', 'is_superuser')
admin.site.register(User, UserAdmin)
I'm not looking to override the template, just change the displayed fields & ordering.
Solutions please?
import urllib
import xml.etree.ElementTree as ET
def getWeather(city):
#create google weather api url
url = "http://www.google.com/ig/api?weather=" + urllib.quote(city)
try:
# open google weather api url
f = urllib.urlopen(url)
except:
# if there was an error opening the url, return
return "Error opening url"
# read contents to a string
s = f.read()
tree=ET.parse(s)
current= tree.find("current_condition/condition")
condition_data = current.get("data")
weather = condition_data
if weather == "<?xml version=":
return "Invalid city"
#return the weather condition
#return weather
def main():
while True:
city = raw_input("Give me a city: ")
weather = getWeather(city)
print(weather)
if __name__ == "__main__":
main()
gives error , I actually wanted to find values from google weather xml site tags
I have a search page on my MVC site that contains a list of strings that I think the user might wish to search for in my database. This list of strings is available in my model class, so I can populate an Html.ListBox with those strings thus:
<%=Html.ListBox("SearchStrings", new SelectList(Model.SearchStrings)) %
My problem is, how can I tell which strings the user selected in that list in my postback action?
Any help would be most appreciated.
Recently I created a spike of a view engine, in which views are plain classes, and the content is created by using funny using-scope blocks.
The code together with a simple sample site is available at http://code.google.com/p/sharp-view-engine/
Here I'd like to hear your opinions regarding such an idea. Is it completely weird or maybe someone likes it?
On our site, we have a lot of swimming times that we would like to convert to seconds. i.e. 1:23:33.03 or 58:22.43. Is there a PHP function that can do this? A MySQL function?
What I must to learn to write php web-site graber (parser)?
It's just must collect any other information from other websites, as weather forecast, wiki "on this day", some news and other useful and interesting "every day" information!
and what i must to read for writing m3u player on php?
sorry for my bad english
I've got a bunch of flash files being served off a HTTPS site in IIS7. With content compression turned on, the flash files wont display. Does flash not support HTTP compression, or is IIS doing something unusual?
On Fedora 11 i have installed w3c validator using
yum install w3c-markup-validator
Apache is already installed. Now how can i open validator site locally? i am trying localhost, 127.0.0.1, 127.0.0.2 but validator website is not opening...
I have created some jQuery and put it in an ascx include. It works fine on regular pages, however when I load a secured page on my site I get the following javascript error.
Permission Denied
jquery.min.js
Code: 0
Any ideas?
I have a package which has various features that depend on AUCTeX. As it stands, it requires hand-configuration:
(defvar AucTeX-used nil)
(if AucTeX-used
(progn
(require 'tex-site)
(require 'latex))
(require 'latex-mode)
(setq TeX-command-list nil))
Is there a way to find out whether AUCTeX is available on the machine, to avoid having to set AucTeX-Used by hand?
(I'm using GNU Emacs 23.1.1 for Max OS X).
Given a repository served over HTTP whose owner forgot to chmod +x hooks/post-update, is there a workaround for cloning it?
I tried running wget --mirror url, but rather than fetching the subtree only, it tried to mirror the entire site—which I assume happened due to the parent-directory links in the autogenerated index.html resources.