Hey all,
If I use the inet control to transfer information back and forth through an https connection, is this info secure? (As in scrambled) I want to connect to a website database script, pass a couple of "login codes" back and forth, then download the resulting file. Just need to...
Forgot a couple of items here.
First check to make sure $ip is not empty, then chomp $line.
I'm assuming your file looks like:
IP_one
IP_two
IP_three
etc
If it looks like:
somedata|somedata|IP|moredata,
In this case "eq" won't work unless you split the fields so you would be right to...
First I would put 'offer' in a variable.
#!/to/perl
use CGI;
$query = new CGI;
$found = "no";
@table = (`value1`,`value2`,...,`valueN`);
$lookfor = $query->param('offer');
foreach $i(@table)
{
if($lookfor eq $i)
{
$found = "yes";
}
}
push(@table,$lookfor); #add...
Just out of curiosity try replacing =~, with eq.
open(FILE,">/root/alert2") || die "Unable to open alert2 \n";
# print the file without $ip
foreach $line (@file) {
unless ($line eq $ip){
print FILE $line;
}
}
I just fixed this same problem in a script. It had the Content-type statement near the top of the page, and it also had it in an error sub. When this error sub was called it printed Content-type: text/html. Try removing the content-type statement from your sub and see what happens.
Chuck
I had the same problem with an avi file. Add your file as a "custom" resource and then pull it out like this. It should work. I've tried it on avi and fax cover page files. I usually put it in a function but you can do it either way.
Dim bytResFile() as Byte
Dim strNewFile As String...
Hey all,
My first visit to the telephony forum. A while back I needed to write a small vb app that would among other things, simply send a fax.
I managed to work it out using DDE to Winfax, but while trying to solve the fax issue I came across Tapi. So as usual I decided I had to know how to...
I'm sure this has been asked a million times but could not find it in a search so here goes.
Your user installs version 1, you make version 2. How do you go about updating version 1 to version 2.
Do you just install the package in the same location and will this overwrite the changed files...
I have been trying to figure that one out myself. I have managed to work it out using winfax and DDE. Winfax shipped (in my case) with Win 98 and if you dig down in the winfax help files you will find explanations and even a vb example. You can play around a bit to change the way it acts. Having...
Hi strongM,
Yes I want to use their mail program but need to be able to check mail also. I was trying to use MAPI controls but for some reason my anti virus software kept causing vb to crash, the first time all I did was add a MAPISession control to a form and boom. So thought it might be simple...
Hi all,
I've been trying to figure out how to find the path to a users default mail program, without knowing the app name. ie. Outlook, Netscape, or third party. Surely theres an API that would make this simple. All help is appreciated.
Thanks
Hi all,
Just have some questions regarding using MAPI controls and anti virus software. I was playing with some code from a microsoft book and wanted to try one of the sample apps which was an email app. As soon as I placed a MAPISession control on the form, Norton antivirus pops up and shuts...
Hey all,
I need to create a small standalone spellchecker. I started with some old code I had but this required a reference to the MS Word 8.0 object library which I don't have. Can I find this library somewhere and download it without installing word? If so where? If not, does anyone know how...
For I = 0 To List1.ListCount -1
Do whatever to List1.List(I)
Next I
This is the basic idea. You might want to change it around so you don't have to call the db 15 times?
No it won't be running any other apps. It will just check the date, do some math, then either shutdown or show a message. Putting it in the windows start menu, that would be done in the package and deploy? Do you know the macro for that?
Thanks
Hey all,
I have an app I want to start up when windows is started and looking for the proper way to approach it. Basically it will start in the background, check some details, then either shutdown or display a form. Some questions.
1. How to set it so it starts with windows?
2. Should I force it...
Well I'm fairly new to vb so if this idea is stupid, I don't mind you saying so.
Suppose you declared a public variable in your declarations and set the value of that variable in your button_click event?
Private Sub Button1_Click()
myString = Item.Subject & " - chkd"
'Do whatever...
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.