MySQL From One Server To The Other

MySQL From One Server To The Other

I'm trying to figure out how to make one host connect to mine who's on a different server. We're going to use one massive user db, for a gaming network. Code:
Mysql Server Gone Away?

Mysql Server Gone Away?

When running a script, I get the following error: Code: MySQL server has gone away I know that the mysql server is there, because I have a forum that uses the same Mysql server, and it works perfectly fine. All my script does is insert rows into a ta
Best Server For PHP & MySQL

Best Server For PHP & MySQL

Which of the servers below would be the best for a high traffic PHP & MySQL server. Sun Ultra 1 256 mb ram 4Gb SCSI OR dual PIII 550Mhz 512mb ram 4Gb SCSI OR Sun Ultra 10 256 mb ram 4Gb SCSI
PHP/MySQL On Sun Server

PHP/MySQL On Sun Server

My manager of a project I have been working on wants to move to a sun server from the current unix box. I was just wondering is there any problems with this? Will all the coding still work or will I need to modify some things? The whole site is PHP/M
MultiDimensional Array Question

MultiDimensional Array Question

Can you have a multi-dimensional array like this? $Test[0]['Fname'] = "John"; $Test[0]['Lname'] = "Doe"; Or do you have to use only numbers?
Date Text Problem -- New To PHP

Date Text Problem -- New To PHP

I don't know PHP, but I was told that I could come and do what I am trying to do in PHP. I need to make text show on a set date, such as Friday, August 18, 2006. The text then needs to stay there normal. The visitor clicks a link that says, click her
Get Date From Text/php-file

Get Date From Text/php-file

I got it going. Now i have another question; Is there a way to link a date to a persons name, so i can get the pop-up, and the pop-up then automatically grabs the right name, and displays it?
Mysql_num_rows Not Working

Mysql_num_rows Not Working

Im trying to figure out if a user has already downloaded something so im seeing if they have a uid (user id) in the database along with the nid (note id) that they are trying to download. I echoed out the sql and it returned this: QuoteSELECT * FROM
PDO Version Of Mysql_num_rows(); ?

PDO Version Of Mysql_num_rows(); ?

I need the PDO equivalent of mysql_num_rows. I thought this would work but it doesn't: $numrows = $pdo->query("SELECT * FROM tipsntricks")->fetchAll(); echo "There were " . count($numrows) . " rows in the table";
Using A Function In A Array

Using A Function In A Array

I wanted to use a function in a array in my template system, and its working but its generating the function output before everything else. I don't know why this is happening when I use variables its displays exactly where I want it.  If there is a b
Set Function For Each Array

Set Function For Each Array

Now I use: <?php $_POST = array_map(mysql_real_escape_string, $_POST); $_GET = array_map(mysql_real_escape_string, $_GET); $_COOKIE = array_map(mysql_real_escape_string, $_COOKIE); $_REQUEST = array_map(mysql_real_escape_string, $_REQUEST); but if $_
One Array To A Function

One Array To A Function

i need to pass two arrays to a function. then i need to modify them in the function, and return them. something like this. Code: function do_this_or_that($array1, $array2){ do something with the arrays return $array1, $array2 } $array1 = array(1,2,3,
Get Array Into Function

Get Array Into Function

I experience a strange behaviour as follows: $getmodules = mysql_query("SELECT module FROM modules") or die(mysql_error()); $modules = array(); while($row = mysql_fetch_array($getmodules)) { $modules[] = $row['module']; } print_r($modules); // t
Which Array Function?

Which Array Function?

I have a file containing only UNIX timestamps that I pull into an array with file($myarray) 1157950336 1157950334 1157949470 1157948606 1157947742 1157946878 1157946014 I need to get a count of timestamps that fall between specific times - those that
PHP_SELF Name The File Name Of That Same File.?

PHP_SELF Name The File Name Of That Same File.?

instead of doing <?php $_SERVER['PHP_SELF']; ?> can i just name the file name of that same file.? so im workign on index.php, and i want the action to be in index.php? or do i have to put PHP_SELF if i do some php in the file.
Can I Trust $_SESSION ?

Can I Trust $_SESSION ?

Can I trust $_SESSION globalvariable? I have a script that only checks if it has $_SESSION["userid"], if it does have then it continues without password checking. Can anyone fake $_SESSION ?
Error About Object Id #2

Error About Object Id #2

I am really struggling to get some login stuff working. I figured out how to put in some error handlers and exception handlers. Now when my form passes the values to the member.php5 page for processing I get the following exception message. Code:
Problem With Array For Png Imagefilledpolygon

Problem With Array For Png Imagefilledpolygon

I'm drawing a 4-point polygon for a png. I pass an 8-value array, $values, to imagefilledpolygon() to plot the poly. It doesn't work. I create an identical(?) array, $valuestest, and it does work. I do a var_dump for both and they appear identical. C
Help With Include Please

Help With Include Please

I have this code: <? required("style.php"); ?> and it wors fine, but when I click view source code in browser, the style properties are shown. Is there anyway to hide them.
Php-mysql-5.0.5.i386.rpm

Php-mysql-5.0.5.i386.rpm

can anyone tell me where I can download the above package? I can't seem to find it anywhere.