A Digital Age Deserves A Digital Leader

Code request Thread

Re: determine real world IP address in Visual basic?

Postby DEVILSAN » Mon Jul 10, 2006 2:04 pm

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..
PRO Level 13
User avatar
Posts: 751
Joined: Sat Oct 18, 2003 6:17 pm
Location: Canada
Real Name: san luthra

Postby Mentali$T » Tue Jul 25, 2006 12:43 pm

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
PRO Level 3
Posts: 81
Joined: Wed Jun 07, 2006 4:37 pm
Location: UK

Postby thefirstdude02 » Tue Jul 25, 2006 3:11 pm

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!
PRO Level 2
Posts: 10
Joined: Thu Mar 03, 2005 12:42 am
Location: Michigan

Postby c0ldfyr3 » Sat Sep 01, 2007 12:29 am

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");
}
PRO Level 15
User avatar
Posts: 1346
Joined: Sun May 02, 2004 8:49 pm
Location: 127.0.0.1

Postby bigt0242000 » Tue Jan 08, 2008 6: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
PRO Level 2
Posts: 19
Joined: Thu Jun 17, 2004 12:55 am
Location: Rome, GA

Postby jbullard » Tue Jan 08, 2008 7:17 pm

Is this something you are looking for?

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

Postby bigt0242000 » Tue Jan 08, 2008 10: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
PRO Level 2
Posts: 19
Joined: Thu Jun 17, 2004 12:55 am
Location: Rome, GA

Postby c0ldfyr3 » Thu May 22, 2008 2:38 am

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.
Image
PRO Level 15
User avatar
Posts: 1346
Joined: Sun May 02, 2004 8:49 pm
Location: 127.0.0.1

Postby c0ldfyr3 » Fri Jun 27, 2008 10: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.
Image
PRO Level 15
User avatar
Posts: 1346
Joined: Sun May 02, 2004 8:49 pm
Location: 127.0.0.1

Re: Code request Thread

Postby fireraisr » Wed Sep 02, 2009 5: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.
PRO New Member
Posts: 1
Joined: Wed Sep 02, 2009 4:48 pm

PreviousNext

Return to HTML, CSS, and Scripts

Who is online

Users browsing this forum: No registered users and 1 guest

cron
cron