I have to put a site down for about half an hour while we put a second server in place. Using .htaccess, how can I redirect ANY request to domain.com to domain.com/holding_page.php?
Does anybody know of any php script / open source method of creating a photo collage like http://www.shapecollage.com/
Just a script to give a list of images and create something like this example http://www.shapecollage.com/collages/collage-popart.jpg no need of all that shape options.
I'm using JQuery and jcarousel, using external navigation controls:
http://sorgalla.com/projects/jcarousel/examples/static_controls.html
The problem here is the navigation buttons no longer disable as shown here:
sorgalla.com/projects/jcarousel/examples/static_simple.html
Is there a callback I can use to allow me to swap the active image of a button with an inactive image?
This has to be pretty simple, but I'd like to parse the current URL and execute conditional code depending on whether the user is on the /sitemap/ directory.
So for example, if the site is example.com, and if the request is example.com/sitemap/.
Then I want to execute conditional code in that case. I'm using wordpress so I'm not sure if there is a built-in function that gets this...
A pure PHP solution is fine.
I'm using urlfetch from google app engine, but it keeps going to the redirected final page even though I use:
result = urlfetch.fetch(classUrl, payload=None, method=urlfetch.GET, headers={}, allow_truncated=False, follow_redirects=False)
E.g. if classUrl was a searched term in Google
(https://www.google.com/search?q=setInstanceFollowRedirects()+python&oq=setInstanceFollowRedirects()+python&sugexp=chrome,mod=0&sourceid=chrome&ie=UTF-8)
it would redirect me to www.google.com
How do I stop this redirection? Thanks!
Do I have to put every file in a different folder?
like:
about-us/about-us.php
profile/profile.php
etc.
or is there any other automatic solution.
I want to convert
http://sitename.com/about-us/about-us.php
to
http://sitename.com/about-us
Hi,
I'm using php on apache with mysql.
I want to let users enter a url into their browser to see a custom user page for themselves, just like twitter does. For example, they could enter urls like:
www.mysite.com/johndoe
www.mysite.com/janedoe
and see that user's page. How could I do this with php and apache? I don't want to create a folder on disk for every user like above, I'd instead kind of like to catch the url and generate the page on the fly for them,
Thanks
How can I set Tomcat to automatically redirect to "www"?
I want that if a user enters my domain like:
mydomain.com
he will be redirected to: www.mydomain.com
http://www.mysite.com/http://www.test.com
I have tried many different methods using .htaccess with no luck. I need to get that second url coming as parameter. Is it possible to redirect it to index.php and get it as $_SERVER["REQUEST_URI"] or other method? Thanks
I'm not entirely sure what I'm doing wrong, and I can't figure out how to Google it because a common mistake is very prevalent. I have the parent's height explicitly set, but I can't get #main-sub-content 's height to 100%.
Here's the page:
http://coloryourspot.vadremix.com/
And the corresponding CSS:
http://coloryourspot.vadremix.com/styles/primary/main.css
Can anyone spot the issue?
Solved: The problem was the parent element had height:auto!important;
I have a grails app (v 1.1.2) the logging is working fine from the groovy classes, but I can't get it to work from within a java source...
I have a class in package com.mforms.devices., it imports apache log4j, defines the logger as follows
private final org.apache.log4j.Logger loggy = Logger.getLogger(this.getClass());
then refer to it later by doing loggy.error("...")
my Config.groovy has the following
log4j = {
error 'com.mforms'
root {
error 'stdout', 'file'
additivity = true
}
}
What am I doing wrong?!?!
I am looking for a posterous like custom domain management for the users. The user can register a domain and should be able to point their new domain to their sub domain in the web application. Any ideas?.
NOTE: I am not looking for a serverfault.com like answer but a programatic one as it is done in posterous.com.
hello i'm trying to get the first value of a datagrid cell value but it keeps looping trough and returns the last value. here is the code:
Dim cell As DataGridViewCell
txtoccupier.Text = ""
Try
For Each cell In dgvREcord.CurrentRow.Cells()
txtoccupier.Text = cell.Value.ToString
Next
Catch ex As Exception
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
Exit Try
End Try
record eample:
id name email
1 test test@test.com
it returns only test@test.com but i want to get only the id which is 1
thanks for your help
In this article : http://publib.boulder.ibm.com/infocenter/macxhelp/v6v81/index.jsp?topic=/com.ibm.vacpp6m.doc/language/ref/clrc03defst.htm
What's means the sentence "In C, a structure member may be of any type except "function returning T" (for some type T)"
Thanks for all the answers!
The answer in this post http://stackoverflow.com/questions/2119680/use-jquery-to-check-if-a-url-on-another-domain-is-404-or-not shows how to use YQL in Jquery to check if URL is valid or not. However, I can't get this to work for me. The only difference I can think of is that my URL is a text file (http://mycrossdomain.com/sometext.txt) and not HTML.I think the YQL query needs to be adjusted accordingly. Any help is appreciated.
http://plugins.jquery.com/project/semantictabs
What is the means of this
Status - Recommended for 1.0.x
I'm using this plugin code as it is http://plugins.jquery.com/files/jquery.semantictabs.js_4.txt
then this ( I'm also using prototype.js onsite)
jQuery.noConflict();
jQuery(document).ready(function(){
$("#mytabset").semantictabs({
panel:'.mypanelclass', //-- Selector of individual panel body
head:'headelement', //-- Selector of element containing panel header, i.e. h3
active:':first' //-- Which panel to activate by default
});
});
I want example.com/23-45 be transformed to example.com?id=23-45
Could you please post the code I should add to .htaccess file to make this work
(Is this everything I should do to make this work - add a piece of code to .htaccess file ???)
Thanks a lot!
hi, i've created a php pagination system, but i want to hide the _GET variable in the address bar.
atm mine looks like this http://address.com/images.php?page=1
but i've seen a few site that have http://address.com/images/1/.
just wondering how they go about this? can anyone point me in the right direction, cheers
Hi,
I'm using godaddy shared hosting, with IIS7, Integrated mode, and published up a bog standard MVC2 app to dev.lazygekko.com created with Visual Web Developer 2010.
It all works, however when any of the links are clicked, they point to dev.lazygekko.com/dev/..., dev being the folder it is pointing at.
Can anyone shed some light on what I may be doing wrong?
Many thanks.
I have a php file with an xml header and xml code, named test.php.
How do I load this file as an xml?
The following doesn't work:
$xml = simplexml_load_file('test.php');
echo $xml;
I just get a white page.
The test file is saved as php, as it's dynamic. It's loading data from the tradedoubler api.
The xml looks something like this:
<voucherList>
<voucher>
<id>115</id>
<programId>111</programId>
<programName>Program 111</programName>
<code>AF30C5</code>
<updateDate>1332422674941</updateDate>
<startDate>1332370800000</startDate>
<endDate>1363906800000</endDate>
<title>Voucher number one</title>
<shortDescription>Short description of the voucher.</shortDescription>
<description>This is a long version of the voucher description.</description>
<voucherTypeId>1</voucherTypeId>
<defaultTrackUri>http://clk.tradedoubler.com/click?a(222)p(111)ttid(13)</defaultTrackUri>
<siteSpecific>True</siteSpecific>
</voucher>
<voucher>
<id>116</id>
<programId>111</programId>
<programName>Program 111</programName>
<code>F90Z4F</code>
<updateDate>1332423212631</updateDate>
<startDate>1332370800000</startDate>
<endDate>1363906800000</endDate>
<title>The second voucher</title>
<shortDescription>Short description of the voucher.</shortDescription>
<description>This is a long version of the voucher description.</description>
<voucherTypeId>1</voucherTypeId>
<defaultTrackUri>http://clk.tradedoubler.com/click?a(222)p(111)ttid(13)url(http://www.example.com/product?id=123)</defaultTrackUri>
<siteSpecific>False</siteSpecific>
<landingUrl>http://www.example.com/product?id=123</landingUrl>
</voucher>
</voucherList>
I have a .php file in which i have a added a simple code:
<?php
header("Location:http//www.google.com");
?>
when i run this code, then instead of opening google.com it opens a download file, which is the same as my php file.
I'm looking for an embedded database for a silverlight application.I have found several choices like MCObjects(www.mcobject.com) and EffiProz(www.effiproz.com). Which one is most suitable as local cache?
I mean can I do something like this:
var client = new WebClient();
var result = client.DownloadString(string("http://example.com/add.php");
var result2 = client.DownloadString(string("http://example.com/notadd.php"));
in paralel like for 100 url's ?
i have uploaded my site on hosting server with name www.selectionfurnishing.com
but when i try to open any page i got an error that the site does not exits
when i try www.selectionfurnishing.com/default.aspx then it gives error that the page does not exits (404)
please tell me how can i solve this ....
Thanks
do you got the solution for your problem ?
im working on the exact same thing and cant get it to work...
if u could post the solution, it would be much appreciated :o
greetingz
msn: xpndbl@hotmail.com
steam : [email protected]