This seems to work:
Imports System.Net.Mail
Module MainTest
Public Sub Main()
MsgBox("Click OK ", 0, "This is a test!")
'get the hostname
Dim strHostName As String
strHostName = System.Net.Dns.GetHostName()
'create the mail message
Dim mail...
I'm putting together a POC script just to test email functionality. The script works but I want to add some redundancy to it. In its current form, it sends an email using the IP address of an SMTP server (and it works as planned). What I need to do is to check that it worked and if it didn't...
In your example, how would I get it to just spit out the first number that didn't match? All I'm trying to do is find one number that isn't matched. In my example, it is very unlikely that it would get past the first or second loop. I'm not so concerned about randomness, just as long as a...
The following appears to work for what I need:
$count = 1;
$randomnumbers = array();
while ($count < 11) {
array_push($randomnumbers, (rand(1000, 9999)));
$count++;
}
foreach($randomnumbers as $rnumber) {
$numberlookup = mysql_query("SELECT usednumber from usednumbers where usednumber...
I need to use rand() to generate pseudorandom numbers. They won't be used for cryptographic purposes so the true randomness is not a concern - they just need to be different from previous ones. What I need to do is to generate numbers that do not appear in a mysql query. I thought I would...
The problem is that I neglected to show an included script that set the title for everything using the user_header.php. I thought, incorrectly, that it was insignificant. I've been using it all along and thus the problem. Here is the included script:
<?php
echo "<TITLE>VooDoo...
I've narrowed down the problem.
if:
1. A TITLE tag is placed in the user_header.php and
2. Sessions are used to get the user for ajaxserver.php
The alert box doesn't work.
if:
1. A TITLE tag is placed in the user_header.php and
2. $user is defined directly without enabling the session in...
I didn't look at the net pulldown. I was on Console.
This is on the response tab with XHR selected:
<pre>Current session data: Array
(
[user] => bill
[access] => 1
[timeout] => 1389704898
)
</pre><pre>Finished parsing user_header.php</pre> {"result":"ok","data":"1234"}
I had a mistake in my final testing. I had $user = 'bill'; specified and the user_header was commented out in the ajaxserver. If I switch it, I get everything but the alert box.
I broke that when I moved things for testing. I still don't see anything for XHR.
I get:
connected to db
done sessions
selected database
user is allowed
secretvoodoo query done
{"result":"ok","data":"1234"}
Doh! Sorry.
After login, I get:
Current session data: Array
(
[timeout] => 1389628547
[user] => bill
[access] => 1
)
Finished parsing user_header.php
When I hit formpage I get the same. When I add the ?id=, I get the same but the button shows up. When I click the button I...
After I login, it just goes to a blank page. I think there's a problem with the auth. I get a new error in the php log.
[13-Jan-2014 10:02:58] PHP Parse error: syntax error, unexpected T_VARIABLE in C:\test\ldap.php on line 3
Here is the ldap.php that I forgot to post earlier.
<?php...
The first time I hit formpage directly, with no id, I get
Current session data: Array
(
)
Unauthorized Access
REDIRECT SUSPENDED FOR DEBUGGING
The second time I hit it, I get
Current session data: Array
(
[timeout] => 1389622536
)
Unauthorized Access
REDIRECT SUSPENDED FOR DEBUGGING
Adding the id works as expected too. {"result":"ok","data":"1234"}
When I hit formpage with or without commenting that line, I get nothing if the user_header is included. Without it, I get the button but it doesn't work.
When I hit ajaxserver directly I get {"result":"error","errorMessage":"No ID provided."}. an expected result. Firebug shows nothing. The button on the formpage doesn't work, but is that expected? Firebug shows nothing.
Here are the other scripts.
dbconnect.php
<?php
$username="vduser"...
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.