Could you maybe have some use with Javascript's unload function so when it is used it will send a query to the server telling it the user is unavaliable and it will log them out.
Could you maybe have some use with Javascript's unload function so when it is used it will send a query to the server telling it the user is unavaliable and it will log them out.
You could use something like Javascript using something like the code below:
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.1.min.js" /></script>
</head>
<body>
<p>
Name: <input type="text" id="contactName"/>
<input type="button" value="Click Me" onClick="$('#contactName').val('Contacts Name');" />
</p>
</body>
</html>
So what you can do is replace echo "<td align='left'> " . $row["name"]. "</td>";
with echo "<td align='left'><a onClick="$('#contactName').val('Contacts Name');"> " . $row["name"]. "</a></td>";
and it should do what you want.
Hope this helps.
Hello saibaba123,
A sitemap is something so search engines such as Google or Bing can know what pages your site has like whats their titles and url here is a website that will construct a sitemap that you can then upload to Google Webmaster Tools.
A sitemap is also something users can refer to if they are looking for something on a website that cannot be found easly kind of like an index in a book people will look there to find where the section they are looking for is located.
Hope this helps you.
Ok, thank I'll just go with us as it is for a service and for my small company.
Hello Community,
I was wondering what I would use, first off I'm running something by my self so do I use us or me? (Example contact us or contact me). Do I just use us to just pretend that there is more than one person running the service?
Yer but I'm creating the ticket process for the service.
I might just have to go with directly linking the files. I'll see how that goes.
Well this might shed some light, the program I'm making is a ticket processor so "Program A" will have an error then send all the information such as the error other error details to "Program B". So "Program B" will check if "Program A" has given all the correct information for it to process the ticket and send it to me.
That's not working, what should it look like with the code I posted before?
Ok after a bit of Googling and looking back on what yous have posted I've put together this.
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /littledevines/
RewriteRule ^product/([0-9]+)$ product.php?id=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*?)/?$ $1.php [L]
And it is indeed doing what I wanted but no styling on the product page. So is there a way of moving around this with out direct linking the css and js files?
It comes back saying the page cannot be found.
Well the program the data is going to need to check to see if the other program (sender) has given all the required information. I don't know if you know PHP but I want an array like the PHP array (array("key1" => "value1", "key2" => "value2")
) that way I can check if the array contains "key1" and "key2".
I was asking cmsc.
Hello Community,
I was wondering if there is a possibility to pass a dictionary to another program?
What I want to do is send some information from one program to another, I want to use an array but I can't set keys and that is what I really need and I can't think of anyother way of doing this.
So if you could help or think of anyother way that'll be great, thanks.
I've tried this and it has finally worked.
RewriteEngine On
RewriteRule ^product.php/([0-9]+)$ /littledevines/product.php?id=$1 [L]
So how do I get it so I don't have to have the .php extension? I've tried many way of doing this but they never seem to work.
I don't know if this will help but I'm hoasting with GoDaddy
Well with program settings, they are saved to the computer (obviously) but they are saved in an unencrypted file, it just takes someone to find the file and they will have the users username and password and just type them in to the login form and there in.
So the way I'm talking about is, doing it that same way just saving the username and password like normal but MD5 encrypt the password so instead of the password looking like this "testingPassword" it will look like this "67dc7d40cca025f9716d41b7bf25c84d". That way no one will be able to find out what it says. Even if they just copy and paste that in to the password textbox it will comback saying that it is the wrong password because it is already encrypted.
Do you know what I'm talking about now?
@Mafiamanandre What do you mean you also want to use it as a demo form?
I'm talking about using this kind of system.
Public Class Login
Public Function StringToMD5(ByVal Content As String) As String
Dim M5 As New Security.Cryptography.MD5CryptoServiceProvider
Dim ByteString() As Byte = System.Text.Encoding.ASCII.GetBytes(Content)
ByteString = M5.ComputeHash(ByteString)
Dim FinalString As String = Nothing
For Each bt As Byte In ByteString
FinalString &= bt.ToString("x2")
Next
Return FinalString
End Function
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
If TextBox1.Text = Nothing Or TextBox2.Text = Nothing Then
MsgBox("Please enter your username and password", MsgBoxStyle.OkOnly + MsgBoxStyle.Information, "Empty Fields")
ElseIf Not TextBox1.Text = My.Settings.Username Or Not StringToMD5(TextBox2.Text) = My.Settings.Password Then
MsgBox("You have enterd the wrong username or password!", MsgBoxStyle.OkOnly + MsgBoxStyle.Exclamation, "Wrong Credentials")
ElseIf TextBox1.Text = My.Settings.Username And StringToMD5(TextBox2.Text) = My.Settings.Password Then
Main.Show()
Close()
End If
End Sub
End Class
Only thing with saving user details in the settings is, the details are being saved to an un ecripted file which means it just takes someone to file the file and they will have the username and password.
So what I would recommend doing is still using that system but use an encrypted password. Use MD5 encryption so when the user goes to login the program will encrypt the entered password and check if it's a match.
Well first off create the basic login form and have it start up first and set the program to fully-close when the last form closes so that way the user logs in then when the right credientials have been entered it will open the main form and close the login window, and if you wanted the program to automatically end the session when the computer isn't being used after a while you can use a timer to track the mouse movements every 0.01 seconds and if the mouse is in the same place for a whole minute then the program will detect that the computer isn't being used and logout.
I hope this helped.
@minitauros I tried RewriteRule ^product.php/([a-zA-Z0-9]+)$ product.php?id=$1
and it didn't work and I'm not to fond of the second code. This is what I'm getting when I try it "No input file specified.".
@diafol I don't like the whole idea of every .html page being redirected to the id.
Why don't you use a serial key? you could have a database online that check to see if the serial code has been activated.
If you would like to go this path I could help you more, but I just shortened it incase you just wanted the way you said.
Hello,
Here is the download link to the latest version of Visual Studio Express (Which is free) I've never programmed in anything outside of .NET how ever from what I've seen they are a little similar I learned VB.NET when I was probably 12 or 13 and over time I've just gotten the hang of it.
When I was just starting to learn VB.NET I used to just make random program starting at small programs to big(ish) programs and now I'm already used to it, I like know it like the back of my hand. I'm almost considering moving on to C# but when ever I can be bothered to learn it I will.
But yer if you just start making something just search solutions and you will learn from what other people have posted.
Put it this way if your a quick learner you should have no problem switching from VB6 to VB.NET.
Hope this has helped, good luck.
Hello Community,
I was wondering if it is possible to use an ID ($_GET) after a file in the address bar so it would look like this
http://example.com/file.php/ID_HERE
Instead of
http://example.com/file.php?id=ID_HERE
I know there is a way of doing something like that but I'm only getting it to work on the index.php file using .htaccess
This is the .htaccess code I know works for the index.php file:
RewriteEngine on
RewriteBase /
RewriteRule ^([a-zA-Z0-9]+)$ index.php?id=$1
But I'm not sure if there is a way to change that so it works on another file, it is in the same directory as the index.php file.
I've tried change to "RewriteBase /" to "RewriteBase /product.php" but it won't work.
So is there anyway to get this working?
Where I live, there is no Apple store. I think I would just be because the dock I for iPod 4th Gen.
Hello Community,
I was trying to play music throught my iPod dock with my new iPod (5th gen). The sound only comes throught the iPod and not the stereo.
Well I'm not using the token system anymore, this is the way the address are going to look: http://hitcounter.co/USERS_LINK_CODE_HERE like would you say something like this http://hitcounter.co/774823 would be considered long like it's not a short as long as they used to be. I really wanted the domain http://hit.co but of course it was taken. I was hoping to find a domain that would be really short.
The thing is I want to spend enought money for me not to get s crap phone that will stuff up with in the first year example my mum brought a $100 phone and it started stuffing up within the first year. Plus I would like a phone with a lot of space.
I just thing http://hitcounter.co/USERS_LINK_CODE_HERE as an example a normal code would be http://hitcounter.co/774823 I just think that would be a little long, for me I couldn't care because it's not like they old way which used to be like a 20 digit link code then a 20 digit user token. But I'm just thinking people would consider it still to long.
Well the thing is I don't care for gaming on a phone because I have a tablet or Playstation for that.
The main thing I would use the phone for is a portable router, developing websites on the go.
I really like Windows 8 but the only thing... really the only thing is the lack of apps the store has to offer, which I why I like android a whole lot more. Because everything I need the android store has.
The thing is if I wanted to find my way arround somewhere I would just buy a GPS. So the navigation system doesn't fuss me weather it's good or not.
Lol I don't remember posting "OK".
Hello Community,
I was wondering if there is an 4th Gen iPod adapter for an iPod 5th Gen. So I can use my 4th Gen iPod stereo on my 5th Gen iPod.
Ok
I think it would help me better if you could tell me who is your host for your server eg. the host for my website is GoDaddy.
Have you tried just using a normal connection? (Not using ftps)
It could be, I'm not familiar with ftps.
Like who is the company that i hosting your FTP server?
Who is your provider?
Could you show me the code your trying. Of couse with your credentials hidden.
Thanks everyone. I'll be sure to keep those ideas noted.
Good point, thanks everyone. Is there somewhere is can just start out though? like is there somewhere I can post my service? other than my website.
Ok, I'll do my best. But would it be a good idea to advertise my development service on my home page? so people will know they can hire me? aswell as place the other people that have gotten me to make something for them? Like as I said above I have been offered to make 2 programs for the company my tester works for.
Are you trying to use an SSL connection?
Who is your host?
What do you mean?
Hello,
Try using this:
<?php
$conn_id = ftp_connect("Server");
$login_result = ftp_login($conn_id, "Username", "Password");
ftp_pasv($conn_id, true);
if (($conn_id) || ($login_result)) {
$listArray = array();
$contentList = ftp_nlist($conn_id, ".");
foreach ($contentList as $item) {
array_push($listArray, array("itemname" => $item));
}
print_r($listArray);
} else {
echo "An error has occurred!";
}
ftp_close($conn_id);
?>
Well the thing is Randoma is not that big, however one of my staff (I guess you call them that as they do work for me) members works from over seas and for the other company he works for they need some programs made and he has offered me the job. And they want 2 programs made so that is good but it's still only one client.
I registerd for http://freelancer.com but I though it would be like people hire us to work for them but no, we have to place bids on the ad and the winner gets to work for that person and I don't have a lot of money atleast not enough to big on a job. So that is down the drain.
I just want to become like a decent popular company so like eg. I would like to be a company people would recommend to others (If that makes sense).
The only hard part is people wouldn't hire me because I'm not qualitied to develop anything I don't have any certificates nothing. I tried doing IT cert 2 but it's just so boring everything they they were teaching me, I could teach my self. Everything I know I have taught myself.