Hi,
I'm running Apache 1.3.x using virtualhosts and have done a simple redirect:
(trimmed down)
<VirtualHost x.x.x.x>
ServerName www.x.com
ServerAdmin sysop@x.co.uk
DocumentRoot /home/users/x/www/
Alias /devftp /home/users/devftp/www
</VirtualHost>
The alias works fine, however when I put a...
Hi,
I'm terrible at regex, but trying to learn.
I have used mod_rewrite to rewrite a very simple URL, it works fine for one variable but not sure how to do it for two. Here it is:
RewriteEngine On
RewriteRule /range([0-9]+).stm /rangepage.php?range=$1
I need to add a second var to this...
Hi,
I am using the following function working with the id's of <tbody> tags to expand and contract table rows:
function toggle_element(id) {
the_element = document.getElementById(id);
image_name = 'toggle_' + id;
the_image = document.getElementById(image_name);
if...
Hi,
I have an image xyz.gif. I have an HTML button. How do I set the onclick event of the button to start a download of xyz.gif? (i.e. save as)?
Many thanks!
hi,
i have 3 datasets that I want to merge into a single datagrid with collapsible rows(optional!).
The 3 datasets contain a single tables which are related to each other by primary key.
how can I combine these?
Any help much appreciated.
thanks
Hi,
I have the following datagrid, and wish to highlight the selected row after the link has been clicked. Can anybody help?
<asp:DataGrid id="dgDocSections" runat="server" AutoGenerateColumns="False" Font-Size="10pt" Font-Names="Arial" CellPadding="5" CellSpacing="5">
<HeaderStyle...
Hi,
Can anybody tell me how to make the following code Mozilla friendly, works fine in IE6...
function toggle(target)
{
obj=(document.all) ? document.all[target] : document.getElementById(target);
obj.style.display=(obj.style.display=='none') ? 'inline' : 'none';
}
This function...
Hi,
I have the following code which is supposed to open a window with the url query string being created from the input boxes:
<input type='checkbox' class='col3' name='monitor[1]' value='1'>
<input type='text' class='col4 text' name='monitor_url[1]' value=''>
<input type='text' class='col5...
Hi,
I have bought a Shuttle XPC and a radeon 9800se and am having trouble getting the tv tuner to work. When I go to initialize the tv tuner it tells me to plug in a cable from the video card to the sound card. I've read elsewhere that its the cable with many different ends on it that needs to...
Hi,
I have an ADSL router with 5 PCs behind it. There is currently no firewall in between. Can you tell me how I can get Remote Desktop to connect to one of these PCs as they have no external IP address.
Thanks
Hi,
Can anybody recommend a tool, or give me some guidance on how to track changes to a remote page?
There is content relating to my company on other websites, and I want to check when it changes or is dropped of the site altogether.
Thanks!
Hi,
I'm a PHP person, and am having trouble doing something with .NET using C#.
Basically I am opening a framset from a link with a get variable e.g. frame.aspx?id=55
I want the main frame that opens up to call a page using that id number passed in the query string. I have no idea how to do...
Hello,
I want to do some simple error checking with Javascript. I have a form which contains the following element:
<input type='radio' name='answer[5]' value='17'>
and I am using the following function called by the onsubmit event to check that the radio has been checked:
function...
Hi,
I'm new to ASP.NET. I need to send an email from a form which is already built, posting variables to my aspx C# page.
When an ASP.NET page is called, can you not procedurally execute the code on it? The page to which the form is posted is:
<%@ Import Namespace="System.Web.Mail"...
Hi,
I just can't get my head around regex!
Can anybody tell me how I do a simple match to extract
what is between the quotes on a select list:
<option value="bla">Bla Bla</option>
I want to extract all occurrences of what is between the quotes...
Thank you!!
Hi,
I've followed the article on Devshed on installing Mod_SSL with Apache on Linux.
The install all appears to go fine. I generate keys etc, no problems.
I stop Apache and then restart with apachectl sslstart. And it starts fine. It can serve up http:// pages fine. However trying to...
Hello,
Wondering if there's anyway around a problem I've got:
I have an MX record pointing to a mail server(A).
I want to move mail to mail server(B).
Both servers are on the internet.
If I change the MX record for the domain to mail server(B), this process takes a while, and some people...
Hello,
I am trying to dynamically build a variable name and then access the value that is in the variable, which has been posted by a form. My code is:
$var = "HTTP_POST_VARS[industry" . "_" . $db_row[name] . "]";
$val = $$var;
echo $val;
This doesn't give...
Hello,
I am trying to attach a PDF to an email. It is attaching the PDF ok, but it also attaches a plain text file called something like ATT000035.txt. Any ideas how to get rid of this?? The code I am using is below:
case "PDF":
if (is_uploaded_file($file))
{
// Read...
I'm trying to generate a plain text email from a textarea on a webpage.
However, I cannot get newlines to appear in the email.
The code is as follows:
TEXTAREA:
<textarea name="email" cols="130" rows="15"><?php echo stripslashes($email); ?></textarea>
MAIL...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.