Code request Thread
From advanced to novice... come, join in, teach, and learn. Web programming and help. We have stuff on it all: php, html, asp, asp.net, etc. Share your coding expertise too.

Moderators: Forum Experts, Management

Re: determine real world IP address in Visual basic?

Postby DEVILSAN on Mon Jul 10, 2006 9:04 am

l33t wrote:i need something that can determine a computers real world ip (not the class C 192.168 stuff) through visual basic.

and examples or ideas? thanks!


U r far from reality...

i am asking bout "in windows explorer if iclick any file say html it should be open myapplication " not just by setting open with from he properties as it would only launch that particular application.

But it should also loads that particular file on which i double clicked in windows explorer to open..
User avatar
DEVILSAN
PRO Level 15
PRO Level 15
 
Posts: 1118
Joined: Sat Oct 18, 2003 1:17 pm
Location: Canada

Postby Mentali$T on Tue Jul 25, 2006 7:43 am

Hi guys,
Ok i want a code for this server monitor which shows the players on a game server and theres scores etc. Here is what i mean:
http://www.game-monitor.com/GameServer/ ... ower_.html
Half way down the page you will see a list of the players and their scores. If anyone could give me the code for this that would be great. Only thing is, its for a different server with the ip 84.12.163.39:7777 (i didnt give u a link to tthis one because there are no players on it at the moment so it would have been harder to understand)
Image
Mentali$T
PRO Level 3
PRO Level 3
 
Posts: 85
Joined: Wed Jun 07, 2006 11:37 am
Location: UK

Postby thefirstdude02 on Tue Jul 25, 2006 10:11 am

Hi. I haven't been around here in a good long time. Now I would apprecate some programming help.

I am working on a web-based IM client similar to GMail chat. I have no idea what some of the AJAX code does, but it seems to work. The basic program is written in Perl, with some HTML, JavaScript, and CSS. It uses a MySQL database for managing users and chats. I don't know much JavaScript (as I said); my teacher wrote it for me, as it was a Perl/MySQL web dev class. Anyway, what I want is the following: a way to get the choice of three radio buttons into the query string without having to refresh the whole page, and also not having it visible in the URL bar. After that, I know how to make Perl deal with the data. Thanks!
thefirstdude02
PRO Level 2
PRO Level 2
 
Posts: 10
Joined: Wed Mar 02, 2005 7:42 pm
Location: Michigan

Postby c0ldfyr3 on Fri Aug 31, 2007 7:29 pm

okay i just set up a php5 compliant login script, now i want each diffirent member to be redirected to a page to upload pictures to, i have the upload script, i just need a member recognition script.

members goto login page; done
login; done
after successful login get redirected to another page containing their photos; still in need
have ability to upload new photos, or delete old photos; done
logout; done

just something simple and quick, not fancy.
this is what i have to login.
Code: Select all
/ Connect to server and select databse.
mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");

// Define $myusername and $mypassword
$myusername=$_POST['myusername'];
$mypassword=$_POST['mypassword'];

$sql="SELECT * FROM $tbl_name WHERE username='$myusername' and password='$mypassword'";
$result=mysql_query($sql);

// Mysql_num_row is counting table row
$count=mysql_num_rows($result);
// If result matched $myusername and $mypassword, table row must be 1 row

if($count==1){
// Register $myusername, $mypassword and redirect to file "login_success.php"
session_register("myusername");
session_register("mypassword");
header("location:login_success.php");
}
else {
echo "Wrong Username or Password";
}

ob_end_flush();


And this is to verify their logged in.
Code: Select all
session_start();
if(!session_is_registered(myusername)){
header("location:photo_login.php");
}
User avatar
c0ldfyr3
PRO Level 17
PRO Level 17
 
Posts: 2489
Joined: Sun May 02, 2004 3:49 pm
Location: 127.0.0.1

Postby bigt0242000 on Tue Jan 08, 2008 1:22 am

Could somebody create or find me a vertical three level accordion menu that I could use for site navigation. I'm still new to CSS and JavaScript. I've looked for one, but all I have been able to find is two level menus.

Thanks in advance.
Image
Image
bigt0242000
PRO Level 2
PRO Level 2
 
Posts: 19
Joined: Wed Jun 16, 2004 7:55 pm
Location: Rome, GA

Postby jbullard on Tue Jan 08, 2008 2:17 pm

Is this something you are looking for?

http://www.tjkdesign.com/articles/keybo ... m_menu.asp
User avatar
jbullard
VP - Software
 
Posts: 3606
Joined: Sun Jun 06, 2004 5:17 pm
Location: Utah
Real Name: Jason Bullard

Postby bigt0242000 on Tue Jan 08, 2008 5:39 pm

Close. How could I turn that in to a 3 level menu?

1
1.1
1.1.1

I was looking at this one, but when I removed the horizontal accordion it brakes whole menu. So if you or someone else could tell me why removing that breaks it and show me how to fix it I would more than appreciate it.
Image
Image
bigt0242000
PRO Level 2
PRO Level 2
 
Posts: 19
Joined: Wed Jun 16, 2004 7:55 pm
Location: Rome, GA

Postby c0ldfyr3 on Wed May 21, 2008 9:38 pm

can someone write me a cookie to control the date an image rotates, its to used with <a href="http://www.pronetworks.org/forum/about102504.html">this script</a>...

i am not to familiar with writing cookies. and need to images to rotate weekly.
An Expert is some one who has made all the mistakes that can be made in a very narrow filed *** Niels Bohr ***
User avatar
c0ldfyr3
PRO Level 17
PRO Level 17
 
Posts: 2489
Joined: Sun May 02, 2004 3:49 pm
Location: 127.0.0.1

Postby c0ldfyr3 on Fri Jun 27, 2008 5:42 pm

i need a small php script to display all images within the current folder using..

Code: Select all
onclick='return hs.expand(this)' class='highslide


within the href....

simular to
Code: Select all
<a href='$file' class='highslide'>


i have this...
Code: Select all

if ($handle = opendir('images')) {
   while (false !== ($file = readdir($handle))) {
       if ($file != "." && $file != "..") {
           echo "
           <a href='$file' class='highslide'>
                <img src='jessica.php?src=$file' alt=''>
           </a>
           ";
       }
   }
   closedir($handle);
}


except its not diplaying the images within the folder.
An Expert is some one who has made all the mistakes that can be made in a very narrow filed *** Niels Bohr ***
User avatar
c0ldfyr3
PRO Level 17
PRO Level 17
 
Posts: 2489
Joined: Sun May 02, 2004 3:49 pm
Location: 127.0.0.1

Re: Code request Thread

Postby fireraisr on Wed Sep 02, 2009 12:02 pm

Hello, I'm new here. I think this is the right place for my problem. I have a batch file that I wrote for my company that copies sales reports from a directory, zips and emails them to a gmail account. This works great for customer accounts that are less than 4 years old but for those that are over that the zip file becomes too large to mail. I can split up the zip through the batch process but I still need the files automatically emailed.

I want to write the directory that the zip's are in to a text file and then use that file to retrieve the path info and then input it into the target of the email script. I know how to output to a text file but can't figure out how to retrieve the data line by line and execute the script for each line.

Any help is would be much appreciated.

Thanks in advance.
fireraisr
PRO New Member
PRO New Member
 
Posts: 1
Joined: Wed Sep 02, 2009 11:48 am

PreviousNext

Return to HTML, CSS, and Scripts

Who is online

Users browsing this forum: No registered users and 0 guests