2,977 Topics
![]() | |
I've Install this script to my site but It won't function that well Here's the code, which logs client side IP in a flat file or *.txt [code] <?php $filename = "uniqueLogs.txt"; $file = file($filename); $file = array_unique($file); $hits = count($file); echo $hits; $fd = fopen ($filename , "r"); $fstring … | |
Hi folks, Perl === Instead of using following command printing output to a file; $ perl AAA.pl > /pathto/name_of_file is it possible adding "print file function" to the script 1) If YES Please advise how to make it. 2) Can I add following bash syntax to the script user=$(whoami); now=$(date … | |
I thought this script was working. I absolutely cannot get IIS to fully and completely work on my home comp. After making a special trip to school to test this thing out, it ends up that it's only displaying the last data entered instead of the averages, totals, etc. This … | |
I don't really know how to explain this easily. I guess I will layout the project I am trying to do, and the problem I am having with it, and maybe someone could explain it better to me. I am trying to build an online food journal for a fitness/nutrition … | |
I'm writing to a file. There are only ten items able to be written to the file (game scores, test results, whatever). I'm using a drop-down selection list on the form to tell which number is being submitted. Is there any way to have it checked as the page loads … | |
Hi All I am trying to write a perl script which will check some particular process is running in a machine or not. If the processes are running properly then its ok if the processes are not running then the script will start those processes and send a mail to … | |
I have a .php form that populates from info in a MySQL DB. Anyway, I want to have the ability to email the form to a not predetermined email address. Any ideas? Our default email program is TBird if it matters. Thanks DS | |
hi, i am using tomcat server to executing the jsp files. my task is to open an application while clicking the hyperlink it throws an popup error msa Access is Denied. and also i used the path of a file in href it also not opening a file. give me … | |
'Ello, I'm Andrew & I have a very big problem. I'm learning Perl & I'm having problem with my first simple code. Every time I go to look @ the page it just comes up excluding the HTML tags. Here's the code 'firstscript.cgi': [ICODE]#! /usr/bin/perl print "Content-type:text/html\n\n"; print "<html><head><title>My First … | |
I have a cgi/perl site and would like to convert everything over to php/mysql, then start customizing it, that or just integrate the two. I'd really like someone to hold my hand as I learn these languages and attempt to improve my web site. Even CSS gives me problems. Basically, … | |
Well, before I trot of to get some more sleep (3 afterparties in 3 days, ergh...), I figured I'd ask about this little issue regarding design I've been having.... Basically, I'm trying to do one of those "MUD" games over a website - the reasons being TELNET is boring, and … | |
How do I go about removing leading and trailing spaces from a text field when passed to a script? Also, how do I verify that an email address is in the correct format on a form? | |
I need to develop a Tool to compare 2 XML files using Perl. Can any one give me a start up for this? | |
Hi All! I'm looking for ideas for word puzzles, and my wife seems to be a bit short on ideas :). In my spare time, I've been building an educational resource site, and so far just have a browser-based crossword generator on it. I mostly do this stuff for fun, … | |
Ok I just built a new computer. I have done this many a time before but for some reason I am getting lots of problems with this one. I have a: Windows 98 Gigabyte motherboard- with the KT400-GA-7VAXP a GeForce 4 4200TI-XFX with 128mb ram 512 pc2700 ddr ram-Premium a … | |
hi All jobtitle will be displayed in a table with hyperlink.when the jobtitle is clicked.it should fetch description,email etc from the database and display it. please tell me how to link the pages based on the tobtitle or id....when the hyperlink is clicked it is not displaying the data from … | |
Hi All. I am Richard (Rieske), 38 and database manager at a worldwide logistics company. I live in The Netherlands and am married. We have one child, a son. As a hobby I like to do everything what is possible with a computer: Multimedia, development, gaming (Wii) and more. Technical: … | |
My hosting server is located in Texas and when I use the localtime() function, I get Texas local time rather than Massachusetts local time (where I currently reside). I want to standardize all my time information so that when I store it into the MySQL database, I store GMT rather … | |
Ok so this is really annoying me...I'm trying to go through and parse a bunch of .csv files for content but I can't get past trying to open them. I want to read the directory contents and then open the specified file. I have the code working so it prints … | |
I'm running OpenSUSE 10.3 on a server with SAMBA providing file and printer services to PCs in my house (XP & Linux). I have a CRON entry starting a PERL program I wrote to backup the shared SAMBA files and other data to DVD on a weekly basis. Currently the … | |
I have been assigned the task of redesigning an intranet sight. I have some major obstacles and I am not sure how to proceed. What I have is a main page designed with menus and CSS formatting. The major problem is that I am not allowed to change the code … | |
![]() | Hi, I'm learning perl and web application now. I have a xml data as shown below. <?xml version="1.0" encoding="utf-8" ?> <rsp stat="ok"> <photos page="1" pages="102" perpage="2" total="508"> <photo id="1969474222" owner="20137329@N04" secret="8ebd15f901" server="2185" farm="3" title="allen-iverson-dunks" ispublic="1" isfriend="0" isfamily="0" /> <photo id="1952424144" owner="7974492@N03" secret="a18966828b" server="2241" farm="3" title="Celtics vs. Nuggets" ispublic="1" isfriend="0" isfamily="0" … ![]() |
When data is put into a .txt file, how do you manipulate it and then output it? (If you're wanting to average some items, or add others, etc. once they're entered into the file.) | |
Well, am new here, so I really hope I am in the correct forum. My question is both simple and confusing at the same time, but please humor me. It goes like this: My website is mostly Perl and when someone logs in, I record the session in a database, … | |
hello, I am very new to python scripting and would require some help. Thers a product called Ajaxterm which makes use of python scripts and Ajax that I am using. It's a web based unix terminal emulator. I have set this up to work correctly. But there are some unicode … | |
Is there anybody know any "tricks or treat" of how to apply for a computer programming job? I graduated with a Computer Science degree in 2006 and has been desperately looking for a job since then. I'be been through countless job interviews and none of the employers accepted me AT … | |
Hey, Iam working with PDB files, and have some problems with extracting and calculating... a PDB file look like thise for those how dont know: see attached file What I want is to read the whole file, find were there are lines with CA atoms and calculate the distance between … | |
hi everyody,i need ur help.I am able to send subject and text as mail to the recepient but iam unable to send hyperlinks in th text.plz suggest me how to send | |
Hai, I was trying to run a CGI cript that proccessed people's information... Well anyway I kept getting the very unhelpful Internal Server Error So I decided to make a stupid script that merely displayed "Works" To the screen. I contacted my webserver (1and1.com) they told me perl scripts could … | |
I have a rather new Sony VAIO Laptop that runs Vista Yesterday i had put my VAIO to sleep while i was out by flipping down the screen. When I later returned and 'woke' it up the desktop showed up again and the mouse was working but it had frozen. … | |
Hi All, Could any one give an example of how to access a webservice in perl using REST, i have done it with SOAP::Lite, but would like to know how to achieve the same using REST. Thanks, Sagar | |
[COLOR=#000000]Hi,[/COLOR] [COLOR=#000000]I have this program written in Perl and to be tested on Linux-Fedora.[/COLOR] [CODE] #!/usr/bin/perl use Mysql; $host = "localhost"; $database = "DVDRentals"; $tablename = "Orders"; $user = "root"; $pw = "password"; # PERL MYSQL CONNECT() $connect = Mysql->connect($host, $database, $user, $pw); # SELECT DB $connect->selectdb($database); # DEFINE A … | |
hi When I log out from the site even then my user name appears at the top line of the window. and when I closed the net and re open giving the address [url]www.daniweb.com[/url] even then my user name appears in the window and when I click the name it … | |
On clicking on a link at(home.jsp), I ned to forward the request to another page(quickSearch.jsp). With this I have to pass two values to the page. What is the way out? I created a java script function for it as below function report_ref(refid) { <jsp:forward page="quickSearch.jsp"> <jsp:param name="refid" value='refid' /> … | |
Hi, Perhaps I'm typing in the wrong keyword phrases but I'm needing a script I can put onto my clients web site where they can upload a PDF file easily. These are inspectors and they need the ability to upload their reports so their clients can come to the site … | |
Hi, I'm trying to retrieve data (CLOB, string, integer) from a stored function. My example code looks like: $dbh = DBI->connect(....) or die "can't connect"; $stmt = 'BEGIN :cursor := foo; END;'; $sth = $dbh->prepare ($stmt); $sth->bind_param_inout(":cursor", \$refCursor, 0, { ora_type => ORA_RSET } ); $sth->execute(); while ( my ($clob, … | |
hi all, sorry for posting the same question,i have to this because my last post was really a mess. now i will try explain my problem in concise i have variable [CODE]my %HeaderHash=();[/CODE] and i have passed values to the HeaderHash successfully but while i try to print the HeaderHash … | |
I have been trying to get a working setup for web development under leopard for the last 5 days. Apart from MySQL issues the big problem seems to be the DBI module is particularly unhappy. The error I'm recieving is: Can't load '/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/DBI/DBI.bundle' for module DBI: dlopen(/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/DBI/DBI.bundle, 1): no suitable … | |
I'm having some issues getting this coding ironed out. I know there's something I'm not doing right, but cannot figure out exactly what the something is. Here's the html code: [code] <!WMS Temp Conversion> <html> <head><title>Washington Middle School Temperature Conversion</title></head> <body> <h3>Use the form below to convert the temperature of … | |
Hi, I have been trying to write a program to capture information from a barcode scanner. Because the data is the same as a keyboard, I have been trying to just read the keyboard for now since there seem to be a lot more people doing that out there. I … | |
hi all i am a java devoloper need to understand a perl scrip based on a project requirement. as i dont know any thing about the Perl i am posting my script here. some body please look in to it and help me out explaing what the script does the … | |
I'm unsure if this is exclusively a unix/linux scripting forum but I need help writing a windows script (I'm more of a perl/unix scripter). I need to be able to periodically clean out the user profiles on a presentation PC in a conference room. Therefore I need a script which … | |
hi everybody!I'm newbie.I have a exercise about perl like this: Creating 2 process P1(parent) P2 (child) P1 get characters from keyboard If press Ctrl-c P1 send a signal terminate P2 ...................................... My ideal is : [Code] ( perl ) $handle=IO::Socket::INET->(proto=>"tcp", PeerAddr=>$host, PeerPort=>$port) $handle->autoflush(1); die 'can't fork:$!' unless defined($pid=fork()); if($pid) { … | |
hi all, not real experienced with computers, mostly just learning through trial and error, have done this a few times before with the computer i made out of bits and peices for my daughter. haven't seen this before though and would greatly appreciate any help! the problem is this : … | |
#!/usr/local/bin/perl #check_oracle# use strict; use DBI; use Net::SMTP; $ENV{'ORACLE_HOME'} = '/app/oracle/product/9.2'; my $errors; my $total = 0; check_oracle(); if($total > 0) { my $mailer = Net::SMTP->new("142.1.0.1"); $mailer->mail('dpr-prod@repl1.newport.net'); $mailer->to('root'); $mailer->data(); $mailer->datasend("Subject: DPR database"); $mailer->datasend("\n"); $mailer->datasend($errors); $mailer->dataend(); } sub check_oracle { my $username = '######_@@@@'; my $password = '@@@@'; my $tnsalias = … | |
I am new to perl .I don;t know much about it,Do I need to install a webserver on my computer,and do i need a editor for writting codes in perl or can it be done in command prompt. | |
i am not sure if this can be done. I would like to take a ubuntu (linix) workststion and have installed Apache server, PHP, perl, GD, and MySql and Firefox....FTP I want a single computer workstation to act as a web server to run a web application. I know how … | |
hi i want to write all the elements of an array to a file to generate a report i tried the following code. foreach(@main_time) { system([EMAIL=""]"echo \"@{$_}\[/EMAIL]" 1>> $file_name 2>&1"); } But the its not writing into the file. please suggest me how to do this | |
Hi all, I'm stuck with how to pass the return value to asterisk. That is, a value has to be passed from perl script to asterisk. The variable returned in Perl has to be passed to asterisk, where if the return value is 1 from perl , i have to … | |
Hey Fam, I’m working on this ..so far this is what I have..(after almost 2 1/2 frustrated hours) As a newbie, I figure out somehow the remainder and the prime concepts. I’m finally happy that I have 0 error but the program doesn’t do what I expected! Eventhough I tested … |
The End.