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...
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...
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>...
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...
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...
I have a script to call the other script.
hello.pl
:
#!/usr/local/bin/perl
print("Hello " . $ARGV[0] . "\n\n");
test_hello.pl
:
#!/usr/local/bin/perl
$script='hello.pl';
system("$script Dave");
How can I make this possible to work for both in UNIX & Windows?
IF ELSE STATEMENT
Since there is no else statement in Batch script. How do I by pass that?
I want this script will ask for a name if the name doesn't match the input.
The name will be hardcode, so the person who run it doesn't enter his/her name everything. It just goes directly to check...
I want my copyright.php file to be in the bottom center, menu to be left. Any help?
<div id=menu style="float:left">
<? include('nav_link.php') ?>
</div>
<div id=logo style="float:top; float:right">
<? include('logo.php') ?>
</div>
<div id=copyright style="float:bottom; float:center">
<...
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 here is my other script to call this nameconfig.pl...
I want to write a navigation bar menu file that will place inside every php file.
Is it possible to set all the navigation link on the left?
Such as
link.php
Link 1
Link 2
Link 3
Then put a include function in every php file.
Whenever, I feel like updating the links, I just change link.php...
#!/usr/local/bin/perl5
use Cwd;
print("Current directory: ");
print(cwd());
print("\n");
chdir("/home/users/vietboy/");
print("\n");
print("Current directory 2: ");
print(cwd());
print("\n");
How can I bypass to go to the unix directory on the window based?
I am newbie to PHP.
I am looking for a PHP script or start from stratch that let users 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 admin which can archive it, goes...
Windows side doesn't have tar or gtar right?
I am trying to write the script to copy directory or file to a destination. I think it's on my Windows side is not working.
$TAR = "/usr/local/bin/gtar"; #gtar is there on the unix side
$opt = "";
#where $source & destdir is define earlier
$c = "cd...
Four questions to ask..
#1
Is there a list of UNIX commands that is eqvuivalent to perl? Such as change directory
UNIX: cd
PERL: chdir()
UNIX: mkdir
PERL: mkdir
remove directory
UNIXL rm -r [dir]
PERL: rmdir()
UNIX: pwd
PERL: ? and so on. Much appreciate.. can't seem to find on...
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.