Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: gnubie
  • Content: Threads
  • Order by date
  1. gnubie

    Paragraph spacing when preceded by a header

    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...
  2. gnubie

    Missing echo new lines

    <?php /* Windows XP-SP3, PHP 5, Firefox 3 Expected: Line 1 Line 2 Got: Line 1 Line 2 Why are newlines missing? */ echo "Line 1\n"; echo "Line 2\n"; ?>
  3. gnubie

    Error: Cannot load mysql extension. Please check your PHP configuratio

    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...
  4. gnubie

    PHP 5.2 and later - install problem

    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...
  5. gnubie

    height: 100% does not work in FireFox

    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...
  6. gnubie

    hash initialization

    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 =>...
  7. gnubie

    How to display a header and paragraph separated by only one line break

    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...
  8. gnubie

    Prevent session timeouts?

    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?
  9. gnubie

    CGI redirect gets Status: 302 Found Location:

    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...
  10. gnubie

    'strict' usage question

    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...
  11. gnubie

    FrontPage on PC with Unix host .htaccess strategy

    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...
  12. gnubie

    Content-type; problem

    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...
  13. gnubie

    require $variable; import $variable (@array) fails

    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...
  14. gnubie

    Preview encounters IE Javascript errors, but not encoutered otherwise

    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...
  15. gnubie

    How to make sendmail use existing header &amp; body?

    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...
  16. gnubie

    MIME::Lite re-build e-mail

    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...
  17. gnubie

    Filehandles and STDOUT

    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...
  18. gnubie

    Called Perl script dies immediately -- how to find out why?

    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...
  19. gnubie

    Ternary operator assignment in Perl module

    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
  20. gnubie

    Forbidden You don't have permission to access ...

    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...

Part and Inventory Search

Back
Top