jtmcgee 0 Newbie Poster

bump... can someone please help answer this?

I REALLY need a solution!

jtmcgee 0 Newbie Poster

I have a Dell Inspiron 518 and I am running dual screens with an ATI Radeon 3450 HD.

I am looking to expand to triple, possible quadruple screens. The problem is that the only spots left are 2 PCI-E x1 slots.

I have been looking for an okay, cheap graphics card. It doesn't need to be good for gaming or DVD's or anything, thats what my other card is. I just need this card for coding, email, web browsing, etc.

I am trying to spend less than $40 if I can because I am a cheap high school student. I am having EXTREME trouble finding any of them for a PCI-E x1 for cheap.

My question: Are there any sub-$40 PCI-E x1 graphics cards or should I consider a USB to VGA adapter?

jtmcgee 0 Newbie Poster

Fast -> Chrome
Sexiest -> Safari
Best Overall -> Firefox


Dumpiest, crappiest, loserist -> Internet Explorer

jtmcgee 0 Newbie Poster

I think thats all based on your server, it's INI, and it's brute power.

jtmcgee 0 Newbie Poster

How about:
A. You make an RSS feed
and B. you parse it! (w/ simplexml probably )

When I was a noob, that gave me sooo many problems.

jtmcgee 0 Newbie Poster

Manually? It changes sometimes Pages is black, sometimes Blog is, it all depends on the page including it.

jtmcgee 0 Newbie Poster

What do you mean by fix the strings, isn't this the only way to do this? Or only simple way, keep it relativley simple, as I have been only coding for 4 years, and just turned 14.

Also I did the "debugging" and the $_SERVER is giving me what I want /administration/____.php.

jtmcgee 0 Newbie Poster

Why are you doing a string replace after you create the string instead of actually modifying the original string, its wasted CPU cycles, even if it is minimal.

Couple of CPU cycles are irrelevant to me, have any ideas on the code problem though?

jtmcgee 0 Newbie Poster

I am having problems with str_replace. What I am doing for the administration pages of my CMS I have a include page for the top
navigation (nav.inc.php). So I'll show you my code.

$page = $_SERVER['SCRIPT_NAME'];
	$prefix = '/administration/';
	
	//get main and sub
	$main = '<div class="main-links"><a class="wnav" href="'.$prefix.'">Home</a><a class="wnav" href="'.$prefix.'links.php">Links</a><a class="wnav" href="'.$prefix.'manage.php">Posts</a><a class="wnav" href="'.$prefix.'pages.php">Pages</a><a class="wnav" href="'.$prefix.'media.php">Media</a><a class="wnav" href="'.$prefix.'options.php">Options</a><a class="wnav" href="'.$prefix.'users.php">Users</a><a class="wnav" href="'.$prefix.'login.php?logout">Logout</a></div>';
        
        $search = "<a class='wnav' href='".$page."'>";
        $replace = "<a class='bnav' href='".$page."'>";
	$main = str_replace($search, $replace, $main);

What it is doing is its a horizontal nav bar, but whatever page you are on, is the opposite color, Black.

Ideas?
Thanks

jtmcgee 0 Newbie Poster

While playing around waiting for a reply found the solution. So.. I guess this topic can be closed.

jtmcgee 0 Newbie Poster

Ok, so I have got the free service of DynDNS from DynDNS.com. Now at example.sample.com I have a website working just fine. Now how do I, in the "sites-enabled" area, that is include in the apache config, set up more subdomains? Right now in the sites-enabled file I have

NameVirtualHost example.sample.com

<VirtualHost 127.0.0.1>
DocumentRoot "/var/www/"
ServerName localhost
</VirtualHost>
<VirtualHost 127.0.0.1>
DocumentRoot "/var/www/music/"
ServerName music.localhost
</VirtualHost>
<VirtualHost 127.0.0.1>
DocumentRoot "/var/www/"
ServerName example.sample.com
</VirtualHost>
<VirtualHost 127.0.0.1>
DocumentRoot "/var/www/music"
ServerName music.example.sample.com
</VirtualHost>

What needs to change? And do I need to set anything up in the DynDNS website besides enabling wildcards?

jtmcgee 0 Newbie Poster

<?

switch ( $_GET )

case '3495843509843503':
header("Location: http://www.pagename");
break;
case '640968450':
header("Location: http://www.pagename");
break;
default:
echo"We could not redirect you sorry";
break;

?>

That should be good, you'll have to add more cases and stuff though.

jtmcgee 0 Newbie Poster
if( $rand_num <= $chance )
		{
			//$item_id = mysql_query("SELECT `item` FROM `creatures` WHERE id = '$id_creature'");
			$foo =& creature_stats( item, $id_creature );
			
			$item_query = mysql_query("SELECT * FROM items WHERE id = '$foo'") or ('$item_query');

			$item = mysql_fetch_array($item_query);

			echo"You got an ".$item."!";

		}

Creature Stats Function:

function &creature_stats($what_stat, $id) 
{
$mysql_query=mysql_query("SELECT * FROM `creatures` WHERE `id` = '$id'");
$info=mysql_fetch_array($mysql_query);
return $info[$what_stat];
}

I need help getting it to echo $item

It justs puts out nothing.