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 Mike Lewis 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: vietboy505
  • Order by date
  1. vietboy505

    daily bulletin

    I am new to PHP. I want to start from stratch for a script to have box of Daily Bulletin like a shout box. Any users can post message on the web page. Maybe like a box of daily bullentin, as time passed, it will gray out (strikethrough) like after couple of days or weeks. There is an option of...
  2. vietboy505

    PERL/CGI & PHP include

    I try this link, when I try in .pl file, it doesn't do nothing. I also read this link, PERL in PHP <?php print "Hello from PHP!\n"; $perl = new Perl(); $perl->require("script1.pl"); print "Bye!\n"; ?> Give me this: Hello from PHP! Fatal error: Class 'Perl' not...
  3. vietboy505

    PERL/CGI &amp; PHP include

    php code config.php, this is the layout that I want. should I do a for loop and print out each .php file instead? <div id=menu style="float:left"> <?php include('nav_link.php') ?> </div> <div id="footer"> <?php include('copyright.php') ?> </div> <?php include('lastmodify.php') ?>...
  4. vietboy505

    PERL/CGI &amp; PHP include

    I include the PHP page because that is my layout design.
  5. vietboy505

    PERL/CGI &amp; PHP include

    I want to include a PHP file inside a PERL file.. script1.pl #!/usr/local/bin/perl use strict; use warnings; use CGI qw(:standard); use CGI::Carp qw(fatalsToBrowser warningsToBrowser); print header(); warningsToBrowser(1); print("<?php include('require_file.php') ?>\n\n"); It's in the...
  6. vietboy505

    XML output to HTML table

    I want my PErl to output the content of XML to HTML table like this: <table border="1"> <tr> <th>Type</th> <th>Contact</th> </tr> <tr> <td>Work</td> <td><a href="../search.asp?ID=123456">John Doe</a></td> </tr> <tr> <td></td> <td><a href="../search.asp?ID=05789">Jack Doe</a></td> </tr> <tr>...
  7. vietboy505

    XML - parse

    I try to follow the example from http://search.cpan.org/~grantm/XML-Simple-2.14/lib/XML/Simple.pm"]XML Parse[/URL] with foo. #!/usr/local/bin/perl use XML::Simple; my $ref = XMLin('foo.xml'); #also with my $ref = XMLin(); use Data::Dumper; print Dumper($config); print $config->{logdir}...
  8. vietboy505

    XML - parse

    I was wondering how I can parse XML using PHP or Perl to output as a nice table & edit later? If so, how would that work? I am a newbie.
  9. vietboy505

    Compare files &amp; output

    file0.txt | | |ABCDEFGH* | |* | |9999| |MEP | |- | |XXXXXXXXX| | | | | |IJKLMNOPQ* | |* | |9999| |MEP | |- | |XXXXXXXXX| | | | | |RSTUVWX* | |* | |9999| |NAD | |- |...
  10. vietboy505

    Compare files &amp; output

    #!/usr/local/bin/perl open(FILE0, $ARGV[0]) || die "Can't open $_: $!\n"; open(FILE1, $ARGV[1]) || die "Can't open $_: $!\n"; @file0data = <FILE0>; @file1data = <FILE1>; close(FILE0); close(FILE1); @linedata=(); @line1data=(); while(@file0data) { @linedata = split(/|/); }...
  11. vietboy505

    Batch: map network NET USE

    I know that, but sometimes I get disconnect. And NET USE \\server\path again will not work connect. I have to delete the path and do a net use again. I was wondering if there is a command to determine the network is still running, then if not, delete it, and map it again without doing it...
  12. vietboy505

    Batch: map network NET USE

    I don't want to the drive, but sometimes with drive it's disconnected too. I just want to use \\server\path only.
  13. vietboy505

    Compare files &amp; output

    want to compare if the text match or not. Like the nameList.txt is after 3 character until it hit whitespace or tab. Just grab this only: | | |CCCCCCC* and takes only CCCCCCC and ignore the rest on that line. And in checklist.txt, just grab the second column only. 1 CCCCCCC takes only -->...
  14. vietboy505

    Batch: map network NET USE

    I wrote a batch script to mount the network automatic at startup. It doesn't allow to map as drive. I used: mount.bat NET USE \\SERVER Will output.. The command completed successfully. Now I have a problem with that, When I checked NET USE: Disconnected \\SERVER\IPC$ Microsoft...
  15. vietboy505

    Compare files &amp; output

    Compare two files and output the difference in a new file? nameList.txt | | |AAAAAAA* | |* | |9999| |MEP | |- | |XXXXXXXXX| | | | | |AAAAAAA* | |* | |9999| |MEP | |- | |XXXXXXXXX| | | | | |CCCCCCC*...
  16. vietboy505

    email validation

    I get the "Invalid Email" right away. <?php function determineEmail($Purpose) { if($Purpose == "General") { $mailTo="Name1 <name1@mail.com>, Name2 <name2@mail.com>"; } elseif($Purpose == "Customer") { $mailTo="Name2 <name2@mail.com>, Name3 <name3@mail.com>"...
  17. vietboy505

    system call not work

    it works, thx all!
  18. vietboy505

    email validation

    I need help on the e-mail form, can any one help me? I want the form to check if everything is inputs correct such as an valid e-mail. If the user choose General, it will send to general email. general@email.com. If the user choose Customer, it will send to Customer e-mail. customer@email.com...
  19. vietboy505

    system call not work

    Even those two scripts don't work in Unix either.
  20. vietboy505

    questions about perl [Unix-&gt;windows]

    Is it possible to glob every file extension except *.txt? So I want glob(*); and not glob(*.txt);

Part and Inventory Search

Back
Top