hi all
i saved myfile.php to the Desktop.
how can i run mysite.php file by programatically.
popen(/usr/bin/mozilla /root/Desktop/myfile.php","r")
it is not working.
can you please show me the way
thank you (1 Reply)
from CLI pressing Tab and character like a shows result of the commands starting with a,
can i use this in a script too and post the results to a file?
thanks (1 Reply)
Hello guys,
Does anyone can help me?
I've just made my simple index.php without any code, but after insert session code to check if any user is authenticated, my index.php doesn't work anymore.
Any fresh eyes could help me to see what and where the code is wrong?
<?
if... (6 Replies)
I want to press "apple + T" to open a new terminal tab. This terminal tab must be in the same directory as the current one. Anyone knows how to do that?
Thanks a lot! (1 Reply)
hi,
In a cron tab, can the command to be executed contain parametrs for the script too?
E.g:
******* ./script.sh file fil2 > /dev/null
Is the above valid one?
Thanks
You have 37 posts - you should know how and when to use code tags. You got a PM with instructions. (1 Reply)
Hi I am running the following script in cron tab:
#!/usr/local/bin/php
<?php
$handle=fopen('xmlfile.xml',"w");
$xmlfile= file_get_contents('http://diur-plus.2me.co.il/xml.aspx');
fwrite($handle,$xmlfile);
fclose($handle);
/*
* To change this template, choose Tools |... (1 Reply)
Hi everyone,
I have a data.xml file which only contains thousands of data (tag) blocks. A part of the file looks exactly like this;
<data>
Line
Line
Line
</data>
<data>
Line
Line
Line
</data>
the rest of the file is simply a repetition of this part. Here each data block contains a... (8 Replies)
Hi folks,
Everyone knows about crontab, what i am looking for a script where i will define hour,minute and day and it will generate crontab complete time entry, i have seen many website generating crontab entry and my question is that is there any shell script that can do same work.
20 09... (4 Replies)
Hi All ,
i am trying to create an alias to open a new gnome-terminal and run some commands in each tab & to have a specific name for each tab
i am using csh ,
tried this command
gnome-terminal --tab -t "s1" --tab -t "s2" --tab -t "s3" --tab -t "s4"
it opened 4 tabs but the title didn't... (0 Replies)
Discussion started by: Assem
0 Replies
LEARN ABOUT CENTOS
gd::barcode::upca
Barcode::UPCA(3) User Contributed Perl Documentation Barcode::UPCA(3)NAME
GD::Barcode::UPCA - Create UPC-A barcode image with GD
SYNOPSIS
ex. CGI
use GD::Barcode::UPCA;
binmode(STDOUT);
print "Content-Type: image/png
";
print GD::Barcode::UPCA->new('12345678901')->plot->png;
with Error Check
my $oGdBar = GD::Barcode::UPCA->new('123456789');
die $GD::Barcode::UPCA::errStr unless($oGdBar); #Invalid Length
DESCRIPTION
GD::Barcode::UPCA is a subclass of GD::Barcode and allows you to create UPC-A barcode image with GD. This module based on "Generate
Barcode Ver 1.02 By Shisei Hanai 97/08/22".
new
$oGdBar = GD::Barcode::UPCA->new($sTxt);
Constructor. Creates a GD::Barcode::UPCA object for $sTxt. $sTxt has 11 or 12 numeric characters([0-9]). If $sTxt has 11 characters,
this module calacurates CD for you.
plot()
$oGd = $oGdBar->plot([Height => $iHeight, NoText => 0 | 1]);
creates GD object with barcode image for the $sTxt specified at new method. $iHeight is height of the image. If NoText is 1, the image has
no text image of $sTxt.
ex.
my $oGdB = GD::Barcode::UPCA->new('12345678901');
my $oGD = $oGdB->plot(NoText=>1, Height => 20);
# $sGD is a GD image with Height=>20 pixels, with no text.
barcode()
$sPtn = $oGdBar->barcode();
returns a barcode pattern in string with '1', 'G' and '0'. '1' means black, 'G' also means black but little bit long, '0' means white.
ex.
my $oGdB = GD::Barcode::UPCA->new('12345678901');
my $sPtn = $oGdB->barcode();
# $sPtn = '';
$errStr
$GD::Barcode::UPCA::errStr
has error message.
$text
$oGdBar->{$text}
has barcode text based on $sTxt specified in new method.
AUTHOR
Kawai Takanori GCD00051@nifty.ne.jp
COPYRIGHT
The GD::Barocde::UPCA module is Copyright (c) 2000 Kawai Takanori. Japan. All rights reserved.
You may distribute under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file.
SEE ALSO
GD::Barcode
perl v5.16.3 2003-05-29 Barcode::UPCA(3)