Search found 64 matches

by davidprogramer
Thu Mar 23, 2006 9:51 pm
Forum: PHP - Code
Topic: How to link to files in a directory?
Replies: 10
Views: 405

maybe i dont understand what you mean by include. The only include I know is :

Code: Select all

include("file.php");
which would call file.php, but would also run it right there on the spot.

Is this the same include you are talking about?
by davidprogramer
Thu Mar 23, 2006 6:22 pm
Forum: PHP - Code
Topic: How to link to files in a directory?
Replies: 10
Views: 405

Now im confused lol. The popup wont call any other pages. I am going to put scripts on the popup. The scripts will depend on one variable passed from the first page. I sort of understand what you are saying, but how would I include the page and get the variable without running the page that the vari...
by davidprogramer
Thu Mar 23, 2006 5:55 pm
Forum: PHP - Code
Topic: How to link to files in a directory?
Replies: 10
Views: 405

Yeah, I'll encrypt all the variables. My only problem is getting the variables from page1 to popuppage2. :? If I include it, wouldnt that just put popuppage2 inside page1?
by davidprogramer
Thu Mar 23, 2006 5:26 pm
Forum: PHP - Code
Topic: How to link to files in a directory?
Replies: 10
Views: 405

But it is going to be a popup, it wont be in the same page.
by davidprogramer
Thu Mar 23, 2006 5:11 pm
Forum: PHP - Code
Topic: How to link to files in a directory?
Replies: 10
Views: 405

no, I mean, well...maybe... I am trying to pass variables in an URL to a different page, and $GET them on the destination. I can't use include(file.php) because I still wont be able to pass variables. This: echo "<td nowrap><center><a href=javascript:popUpPermissions('modules.php?name=League&am...
by davidprogramer
Thu Mar 23, 2006 4:56 pm
Forum: PHP - Code
Topic: How to link to files in a directory?
Replies: 10
Views: 405

How to link to files in a directory?

Ok. The following would work but I can't pass globals this way: <a href=modules/League/includes/file.php></a> This however is what I need: <a href=modules.php?name=League&file=includes/file.php&variable=value></a> or something similar, how would I go about doing this?
by davidprogramer
Wed Mar 01, 2006 2:27 am
Forum: PHP - Code
Topic: Sending/Recieving data to/from db constantly
Replies: 10
Views: 496

I just tested it again. If I take all images out and everything, meaning I only have text and sql queries, the cpu is fine and can easily play a game. The only problem doing this, is that if they simply stop the page, it stops sending information. =\ Would it be possible to use a frame and just refr...
by davidprogramer
Tue Feb 28, 2006 10:05 pm
Forum: PHP - Code
Topic: This form works on other pages, but not current one
Replies: 4
Views: 344

It was a custom function that I made and I totally forgot about it. lol. It's fixed now. Sometimes all it takes is a little code comparing with something that works. :lol: Thanks :)
by davidprogramer
Tue Feb 28, 2006 9:26 pm
Forum: PHP - Code
Topic: This form works on other pages, but not current one
Replies: 4
Views: 344

Yeah. Btw, the slash was on it in my script..I don't know why it isn't there..odd. Here is the code from the FIRST page that WORKS: <?php $index = 1; require_once("mainfile.php"); $module_name = basename(dirname(__FILE__)); include("header.php"); if (!defined('MODULE_FILE')) { di...
by davidprogramer
Tue Feb 28, 2006 9:13 pm
Forum: PHP - Code
Topic: This form works on other pages, but not current one
Replies: 4
Views: 344

This form works on other pages, but not current one

$sql_ladders = sql_query("SELECT ladder_id, ladder_name FROM ".$prefix."_league_ladders"); <form name=\"form1\" method=\"post\"> Ladder: &nbsp<select name=\"menuJoinLadder\">"; for ($m=1; $m < sql_num_rows($sql_ladders)+1; $m++) { list($lad...
by davidprogramer
Tue Feb 28, 2006 12:44 am
Forum: PHP - Code
Topic: hyperlinks and variables?
Replies: 7
Views: 773

This?

Code: Select all

<?
$page = $_GET['page'];
switch($page){
case "file1":
  include ("header.php, menu.php, submenu.php, bottommenu.php, and footer.php");
  break;
case "file2":
  include ("body.php");
  break;
}
?>
by davidprogramer
Tue Feb 28, 2006 12:17 am
Forum: PHP - Code
Topic: Sending/Recieving data to/from db constantly
Replies: 10
Views: 496

Anything running on their machine, let alone using their bandwidth affects those things, so no. Flash will often use more CPU. Seems like something needs rethinking... Any possible way to take the information from that script and put it in the database? I don't care how it's done honestly. I could ...
by davidprogramer
Tue Feb 28, 2006 12:04 am
Forum: PHP - Code
Topic: Sending/Recieving data to/from db constantly
Replies: 10
Views: 496

No I mean using a meta refresh to refresh the page constantly on the players end. Which causes the players cpu to spike. Which is really hard to work around. The server is fine though. Is there a way to keep loading the page without it messing with the players computer speed and bandwidth? Can flash...
by davidprogramer
Mon Feb 27, 2006 11:35 pm
Forum: PHP - Code
Topic: Sending/Recieving data to/from db constantly
Replies: 10
Views: 496

Well the problem is, and I tested it, when you constantly refresh a page every second, it reloads the entire page causing cpu usage to skyrocket. By the way, its one problem. I am trying to come up with a way to constantly update the database nonstop while they are playing the match so that they don...
by davidprogramer
Mon Feb 27, 2006 10:48 pm
Forum: PHP - Code
Topic: Sending/Recieving data to/from db constantly
Replies: 10
Views: 496

Sending/Recieving data to/from db constantly

Anyone that knows anything about what I am talking about please reply with your thoughts. We are trying to figure out a way to update the database with ALL of the match information WHILE it is taking place/completed. 1. Meta Tags - NO WAY! constant refreshing on a person that is trying to play a mat...