Hi, I have a script that ask several information to users and stores it in vars.
I was wondering if it's possible to get the last information inserted by pressing the "up" key as we do in "normal" shell, while not running any script.
Did I make my self clear?
Does anyone know how to do this?
thanks,
João
User Profile
Collapse
-
I'm using the length( ) function to get the lenght of the input, but only after the <ENTER>.
This way the user have to insert everything again...
Maybe I can force the input to be less than 10 chars, can I give the length of the input before reading it from keyboard? -
count characteres of <stdin> at input time
Hi,
I'd like to know how I cancount characters user inputs while they input it.
Imagine something like this:
See this example how this could work:
input your title (2 chars):
My
input your title (8 chars):
My Title
input your title (11 chars):
My Title is
If this isn't possible I'd like to truncate the input to some number of chars (like... -
monitoring a pressed key from keyboard
Hi, I have a script that is allways running, monitoring a folder to see if there is any new file.
i'd like to add to this script something else like "if you want to run this thing, press "a" ".
This option will be allways there. If the user press the key it runs some code.
It have to watch the folder but watch the key either.
How can I do this?
Thnaks,
... -
error with module Mime::LITE
Hi, I'm trying to create a script that send a file in attachment of a mail:
my code is something like this:
...Code:#set up email my $to = "xxx\@xxxxxx.com"; my $from = "xxx\@xxxxx.com.br"; my $subject = "ficheiro audio "; my $message = "ficheiro audio "; my $path = "/home/user/Desktop/outputs/20080101_titulo-teste.mp3"; -
I solved it with tables and attribute display=''" and display=none.
thanks harshmaul for your helpLeave a comment:
-
This is the code of my page:
[PHP]<?
session_start() ;
if (!isset($lingua )) {
session_registe r("lingua");
$lingua="pt";
}
include "$DOCUMENT_ ROOT/lib/config.obj.php" ;
include "$DOCUMENT_ ROOT/lib/globalserver.ob j.php";
include "$DOCUMENT_ ROOT/include/topo.inc.php";
require_once "$dir_site/clientes/clientes.obj.ph p";...Leave a comment:
-
I made something like that with dreamweaver (the frames stuff) but now I can´t put it inside my PHP page.
The page acts like there is nothing there.
I'm getting desperate!!
I don't know if it's the size on the frameset, it just don't get there.
If I include other basic htmll it works...
Don't you want me to post some code here?
Thanks,
João CorreiaLeave a comment:
-
I initially posted it in PHP forum because I tought it might be some way to do this using PHP and not HTML.
I tried to make it with HTML but my whole frameset doesn't seem to be visible inside my php page.
If I put there just a simple html page, It's ok, If there is a frameset, I get nothing.
Does anyone have any idea of what I am doing wrong?
Thanks,
JoãoLeave a comment:
-
creating Frames inside a PHP page
Hi, I'm a really newbie in php and need some help to get started, I read w3school tutorial but was to abstract, I guess, I need more real exemples.
I have the PHP code of a website and I need to create a new page.
I'm reusing the "header" because it's equal in every pages.
But now I need to create something equivalent to frames: one top frame,
a middle one divided in a menu on... -
ok, I got it,
I must write it "double" in my code
like this: ""3.0""
Thanks anyway
joãoLeave a comment:
-
write quotes to a file
Hi, I'm kinda a newbie in VB.
A need to create a file ( a playlist .asx) And it has several tags
the file is something like this:
[HTML]<ASX VERSION = "3.0" >
<ENTRY>
<TITLE> My title</TITLE>
<REF HREF = "path\to\my\vid eo.wmv" />
</ENTRY>
</ASX>[/HTML]
I have this piece of code:... -
Hi guys,
My script is working now,
my code is (adapted from one from de internet):
...Code:#!/usr/bin/perl use strict; use MIME::Lite; # $to = "joao.correia.tvnet\@gmail.com"; $from = "joao_correia_0509\@yahoo.com.br"; $subject = "Consegui!!!! Email enviado através de um script Perl"; $message = "Se ler esta mensagem é porque está mesmo
Leave a comment:
-
I now trying to use this module MIME::Lite;
Seems pretty easy but doesn't work either.
my code is just:
...Code:#!/usr/bin/perl use MIME::Lite; ### Create a new single-part message, to send a GIF file: $msg = MIME::Lite->new( From =>'joao.correia.tvnet@gmail.com', To =>'jcor@net.sapo.pt', Subject =>'Helloooooo, nurse!',Leave a comment:
-
I'm using Ubuntu 7.04
I'll take a look in the modules you told me.
But to use Mail::SendMail I'll have to configure "sendmail" in my ubuntu, right?
I'll try that
Thanks for your help,
JoãoLeave a comment:
-
Hi, I decided to use other email account because maybe my smtp vould be with any problem, I don't know.
My code now is this:
...Code:#!/usr/bin/perl use Net::SMTP; my $smtp_server='smtp.mail.yahoo.com.br'; my $smtp_to='joao_correia_0509@yahoo.com.br'; my $smtp_auth='joao_correia_0509'; my $smtp_pass='***password****'; my $smtp_mail="yahoo"; my $smtp =
Leave a comment:
-
answering to your second post,I use that IP in my thunderbird smtp server and I send mails everywhere, I guess it's the correct smtp server.Leave a comment:
-
It should retrieve in my console, right?
I got nothing, I run only this code:
and this is my console:Code:use Net::SMTP; my $smtp_server='62.193.245.15'; my $smtp = Net::SMTP->new($smtp_server) or die "Can't Open server: $!\n"; $smtp->quit;
Should...Code:joao@joao-UBUNTU:~/Desktop$ perl Net_SMTP Can't Open server: joao@joao-UBUNTU:~/Desktop$
Leave a comment:
-
error in Net::SMTP Can't open server
Hi, I'm trying some code to send a mail with my script. This is it:
...Code:#!/usr/bin/perl use Net::SMTP; my $smtp_server='62.193.245.15'; my $smtp = Net::SMTP->new($smtp_server) or die "Can't Open server\n"; $smtp->mail('joao.correia@tvn.pt'); $smtp->to('jcor@sapo.pt'); $smtp->auth("joao.correia@tvn.pt","*password*"); $smtp->data(); -
hide mms URL
Hi everybody,
I have a site with a embedded Windows media player.
I'd like to when people right click on my streaming don't have available my mms URL. Is there a way to hide this feature from properties, or hide properties, something like that?
Thanks,
João Correia
No activity results to display
Show More
Leave a comment: