thread215-1530910
If you want a single line break before each paragraph, but when preceded by a header, you want the paragraph to be on the next line (WITHOUT a BLANK line) use the adjacent selector method.
For example, when you want:
Header 1
Paragraph 1
Paragraph 2
...
Use the adjacent...
On WinXP(SP3) I installed php, runs ok.
Then installed MySQL. Installed and started ok.
When I do http://localhost/phpmyadmin/index.php I get
phpmyAdmin Error: Cannot load mysql extension. Please check your PHP configuration.
php_mysql.dll IS present in php ext folder.
php.ini: extension_dir...
I am running WinXP w/Apache 2 server installed.
The PHP instructions baffle me. They say:
Windows Installer (PHP 5.2 and later)
The Windows PHP installer for later versions of PHP is built using MSI technology using the Wix Toolkit (» http://wix.sourceforge.net/). It will install and...
I cannot get the height: 100% to fill the viewport in FireFox. I've read a lot of solutions to this problem and implemented them, but still NOT working. Tek-Tips is my last resort. I've validated both the HTML and the CSS -- no errors. Here's the code:
<!DOCTYPE html PUBLIC "-//W3C//DTD...
I want to initialize a hash using a value declared immediately before the current one.
For example (below), I declared title and initialized it to 'The Root Cause'. Then I want to use the value of title in the declaration of headline.
%article=(
title => 'The Root Cause',
headline =>...
I am trying to find out the PREFERRED method to display a header <h1> followed by a paragraph <p> where the paragraph starts on the next line. As shown.
HEADER TEXT
Paragraph text
Not:
HEADER TEXT
Paragraph text
This is the code that I think should work, but the <p> causes a line break...
My PC is 100% secure in my home office. Is there a way to prevent (or better yet, change the value of) session timeouts during on-line banking or other connections that timeout?
From my website, I want to redirect to another website/page.
I tried:
use CGI qw(:standard);
...
print redirect('http://someurl');
'Status: 302 Found Location: http://someurl' gets printed out and there is no redirect.
Similarly, using the alternate redirect technique
print "Location...
1. In this script, why do not $a and $b get flagged as requiring explicit package names?
#!/usr/bin/perl
use strict;
$a = 1;
$b = $a;
$c = $b;
exit;
d:\cgi-bin\test-strict.pl
Global symbol "$c" requires explicit package name at d:\cgi-bin\test-strict.pl line 5.
2. I want to use use strict...
I used FrontPage to develop a website that I host on a Unix sytem w/an Apache server. I would now like to use the .htaccess files to control error redirection (via ErrorDocument). The .htaccess files work correctly, but they have to be handled outside of the FrontPage facility, which I find...
I have a Perl script that might print text/html at various places, so near the beginning I put:
print "Content-type: text/html\n\n";
This works fine, EXCEPT, and the end in some cases the script redirects to another web page. The problem is that if the above Content-type has been output...
I want the perl script to conditionally select between two modules.
Hard coding the module name and using use works, so I know the module interface is correct. Hard coding the required module name works. The problem is when I use a variable for the module name. It should work. I've seen...
FrontPage 2003, Windows XP SP2
When I Preview a webpage I get Internet Explorer Invalid Character script error Line 2 Character 1 (but I don't see any) and undefined JavaScript variables (which are already defined).
However, when I open the webpage directly in IE 7, there are no errors.
All...
MIME::Lite creates a proper header & body and sends it to *nix sendmail.
I used MIME::Lite to create same on my local PC and now want to upload it and use sendmail to send it. I'm using the same sendmail parameters as MIME::Lite (-t -oi -oem), but when the message arrives at destination, the...
OVERVIEW:
My goal is to prepare three categories of e-mail on my PC upload each to a server to send it. The three categories of e-mail are 1) plain text, 2) plain HTML, and 3) HTML w/images. I'm using MIME::Lite to prepare all three categories. So far no problem.
PROBLEMS:
1. What is the best...
I'm generating web pages. The script opens a file and writes the web page to it. Page is a class which contains the file open method. This works fine.
my $outfile="../index.html";
my $page=new Page;
my $fh=$page->open($outfile);
if ($fh =~ /ERROR:/) {
die "\n$fh\n";
}
Now I want to use...
On Submit, an HTML FORM action calls a perl script. The script is found, but dies immediately. A DOS window opens briefly and disappears too quick to read.
The call:
<FORM METHOD="POST" ACTION="cgi-bin/managelists.pl">
I'm also using:
print "Content-type: text/html\n\n"; and fatalsToBrowser...
I have a perl module with a ternary assignment. $domain is exported.
$domain = $^O eq "Win32"?"localhost":"www.mydomain.net";
$domain should be getting localhost, but is getting www.mydomain.com.
Are ternary assignments supposed to work in perl modules (used or required)?
GN
Apache 2.0.55 installed and configured on WinXP/w/sp2.
Can run cgi scripts ok.
Entering the following URL in browser:
http://localhost/i:/images/product/pic.jpg
expecting to see pic.jpg, but got
Forbidden You don't have permission to access i:/images/product/pic.jpg on this server
In...
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.