Search found 53 matches

by vietboy505
Tue Feb 28, 2006 10:28 pm
Forum: PHP - Code
Topic: E-mail form validation
Replies: 9
Views: 436

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...
by vietboy505
Tue Feb 28, 2006 9:30 pm
Forum: PHP - Code
Topic: E-mail form validation
Replies: 9
Views: 436

please show me the solution thx :)
by vietboy505
Tue Feb 28, 2006 9:05 pm
Forum: PHP - Code
Topic: E-mail form validation
Replies: 9
Views: 436

i did some digging.. and this what I can do so far.. <?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@mai...
by vietboy505
Tue Feb 28, 2006 8:23 pm
Forum: PHP - Code
Topic: timestamp
Replies: 2
Views: 208

that work!

thx
by vietboy505
Tue Feb 28, 2006 4:28 pm
Forum: PHP - Code
Topic: timestamp
Replies: 2
Views: 208

timestamp

This script show the time of the file last modify. So every PHP I write, I have to replace file.php to something else. Is there possible way of not doing of not doing this? <br><br> <?php $last_modified = filemtime("file.php"); print("Last Modified: "); print(date("M-j-Y h:i...
by vietboy505
Tue Feb 28, 2006 3:14 pm
Forum: PHP - Code
Topic: E-mail form validation
Replies: 9
Views: 436

E-mail form 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. Is th...
by vietboy505
Tue Feb 28, 2006 8:54 am
Forum: Miscellaneous
Topic: Perl: system call not work
Replies: 0
Views: 894

Perl: system call not work

I have a script to call the other script.

hello.pl

Code: Select all

#!/usr/local/bin/perl

print("Hello " . $ARGV[0] . "\n\n");

test_hello.pl

Code: Select all

#!/usr/local/bin/perl

$script='hello.pl';
system("$script Dave");
How can I make this possible to work for both in UNIX & Windows?
by vietboy505
Mon Feb 27, 2006 12:10 pm
Forum: Installation and Configuration
Topic: Running PHP in IIS
Replies: 6
Views: 2253

Burrito,

You're right.

I moved it all to different folder, and use notepad to open again and save as.
And it works..

I wonder why it doesn't work from the beginning with Textpad editor.

Thanks!
by vietboy505
Mon Feb 27, 2006 12:01 pm
Forum: Installation and Configuration
Topic: Running PHP in IIS
Replies: 6
Views: 2253

index.php <html> <head> <link href="images/style.css" rel="stylesheet" type="text/css" /> <LINK REL="SHORTCUT ICON" HREF="images/favicon.ico"> </head> <div id=menu style="float:left"> <?php include('nav_link.php') ?> </div> <div id="h...
by vietboy505
Mon Feb 27, 2006 11:00 am
Forum: Installation and Configuration
Topic: Running PHP in IIS
Replies: 6
Views: 2253

works fine after renaming test.php to index.php phpinfo() System Windows NT 5.1 build 2600 Build Date Jan 11 2006 16:35:21 Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared" Server API CGI/FastCGI Virtual Directory Support enabled Configur...
by vietboy505
Mon Feb 27, 2006 9:10 am
Forum: Installation and Configuration
Topic: Running PHP in IIS
Replies: 6
Views: 2253

Running PHP in IIS

I did the exact from this link to show how to install PHP in IIS. http://www.webthang.co.uk/tuts/tuts_server/php_iis/php_iis.asp Then I create a folder where I will work on the web. I test out the PHP, and it works for http://localhost/webportal/test.php where test.php is <?PHP phpinfo(); ?> And whe...
by vietboy505
Fri Feb 24, 2006 8:35 pm
Forum: Miscellaneous
Topic: PERL: return command
Replies: 3
Views: 1706

Buddha443556, you're sure the master! thx alot :roll:

what is the one at the code for

1;
by vietboy505
Fri Feb 24, 2006 5:11 pm
Forum: Miscellaneous
Topic: PERL: return command
Replies: 3
Views: 1706

PERL: return command

How can I use Perl to return to another script that I call? Any help? Here is my nameconfig.pl file. #!/usr/local/bin/perl $names="a"; %name =( "a" => "andy", "b" => "ben", "c" => "cat" ); return "$name{$names}"; and her...
by vietboy505
Fri Feb 24, 2006 3:18 pm
Forum: Miscellaneous
Topic: PERL: chdir of mapnetwork
Replies: 1
Views: 951

PERL: chdir of mapnetwork

$server="\\\\netserver.vietboy505.com"; print("\n Current directory: " . cwd() . "\n\n"); print("Server is: " . $server . "\n\n"); chdir($server); print("\n Current directory 2: " . cwd() . "\n\n\n"); How come I can't change the ...
by vietboy505
Fri Feb 24, 2006 8:52 am
Forum: Miscellaneous
Topic: BATCH: IF ELSE STATEMENT
Replies: 3
Views: 3853

how IF NOT can work?

Right now, it just go through all the command regardless of what my input is.