[PHP-DB] dump a damn big db with via SSH

2003-01-22 Thread dufronte
Hi all..,
I have a problem here...
I have a pretty damn big db in my account on host.sk
When I failed to dump the file from phpmyadmin.. so I try to dump it via
SSH..

The problem is... when I dump the whole database... it failed..
And it said that the file limit exceeded...

How can I solve that ???

Plz Help.. coz I still newbie in *nix... :(

Thanks in Advanced...


   ---DuFronte--- 
  http://kapsul.org
  Web Administrator
PHP Game Developer



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DB] which DBMS... MySQL or PostgreSQL

2003-01-09 Thread dufronte
I want to start my Open-Source Project.. PHP-Based RPG Webgame in the
next 2 months.. Till now, I still confuse in choosing 2 DBMS.
MySQL and PostgreSQL.  In your opinions, which DB should I use in
consider that my Game will content a very big database including Player
data, player Stats, Story and Scenario Database , etc. which one that
easy to access, fast, and could maintain the sql file in small size..
and easy to backup 
 
Thanks for your advise.
 
 
 
 
#Please join Open Community Forum... http://openity.tk  #We're free to
discuss anything, you're free to create your own topic in your own
language. :D
 
 
   ---DuFronte--- 
  http://kapsul.org
  No Fuckin' Shits !!
 



RE: [PHP-DB] which DBMS... MySQL or PostgreSQL

2003-01-09 Thread dufronte
Oh yeah.. I see... thx for the info...


#Please join Open Community Forum... http://openity.tk  #We're free to
discuss anything
 
   ---DuFronte--- 
  http://kapsul.org
  No Fuckin' Shits !!

 -Original Message-
 From: Jason Wong [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 10, 2003 2:56 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP-DB] which DBMS... MySQL or PostgreSQL
 
 On Friday 10 January 2003 03:48, dufronte wrote:
  I want to start my Open-Source Project.. PHP-Based RPG Webgame in
the
  next 2 months.. Till now, I still confuse in choosing 2 DBMS.
  MySQL and PostgreSQL.  In your opinions, which DB should I use in
  consider that my Game will content a very big database including
Player
  data, player Stats, Story and Scenario Database , etc. which one
that
  easy to access, fast, and could maintain the sql file in small
size..
  and easy to backup 
 
 This question has recently been asked and answered -- search the
archives
 (both php-db and php-general). Also google MySQL vs PostgreSQL
should be
 helpful.
 
 --
 Jason Wong - Gremlins Associates - www.gremlins.biz
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications Development
*
 
 
 /*
 It is better to wear out than to rust out.
 */
 
 
 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DB] which DBMS... MySQL or PostgreSQL

2003-01-09 Thread dufronte
Hmm.. so it means that I should choose PG ???

#Please join Open Community Forum... http://openity.tk  #We're free to
discuss anything
 
   ---DuFronte--- 
  http://kapsul.org
  No Fuckin' Shits !!

 -Original Message-
 From: Jason Wong [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 10, 2003 2:56 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP-DB] which DBMS... MySQL or PostgreSQL
 
 On Friday 10 January 2003 03:48, dufronte wrote:
  I want to start my Open-Source Project.. PHP-Based RPG Webgame in
the
  next 2 months.. Till now, I still confuse in choosing 2 DBMS.
  MySQL and PostgreSQL.  In your opinions, which DB should I use in
  consider that my Game will content a very big database including
Player
  data, player Stats, Story and Scenario Database , etc. which one
that
  easy to access, fast, and could maintain the sql file in small
size..
  and easy to backup 
 
 This question has recently been asked and answered -- search the
archives
 (both php-db and php-general). Also google MySQL vs PostgreSQL
should be
 helpful.
 
 --
 Jason Wong - Gremlins Associates - www.gremlins.biz
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications Development
*
 
 
 /*
 It is better to wear out than to rust out.
 */
 
 
 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DB] Session variable problems

2003-01-05 Thread dufronte
I've received your file.. and check it.. I think you missed something...
Try this one :D

?
   if($var1){
  session_start();
  if(!isset($_SESSION['s_prueba'])){
 $_SESSION['s_prueba']=1;
 echo($_SESSION['s_prueba']);
  }
  
   ?
  HTML
HEADER
TITLE
Session Test
   /TITLE
/HEADER
  BODY
  FORM ACTION=index.php
 INPUT TYPE=HIDDEN NAME=var VALUE=1
 INPUT TYPE=SUBMIT VALUE='Aceptar'
/FORM
   ? }
   else{
  session_start();// you forgot to put session_start here...
  echo(Variable s_prueba: .$_SESSION['s_prueba']);
   } ?
/BODY
/HTML


#Please join Open Community Forum... http://openity.tk  #We're free to
discuss anything
 
   ---DuFronte--- 
  http://kapsul.org
  No Fuckin' Shits !!

 -Original Message-
 From: Sabina Alejandr Schneider [mailto:[EMAIL PROTECTED]]
 Sent: Monday, January 06, 2003 4:23 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP-DB] Session variable problems
 
 Hello to everybody!!! I have a problem with the sessions
 variable registration. I register a variable with the
 $_SESSION[] array and set it to 1, but when I try to
 access that variable in another script it is emty...
 What's the problem there??
Thank you very much in advance!!!
 
 
 
 
 
 
 _
 
 Tutopia - Acceso a Internet rápido, fácil y a los mejores precios.
 http://www.tutopia.com
 
 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DB] form variables and session

2002-12-31 Thread dufronte
Could you give me a complete scripts ???

--www.kapsul.org--
  DuFronte

-Original Message-
From: Smita Manohar [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 31, 2002 3:56 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] form variables and session

hii all,
im not able to acess value of form variables in session. page needs to 
refresh. register_globles if set to ON.
pls help me out.

regards,
smita


_
Add photos to your e-mail with MSN 8. Get 3 months FREE*. 
http://join.msn.com/?page=features/featuredemailxAPID=42PS=47575PI=73
24DI=7474SU= 
http://www.hotmail.msn.com/cgi-bin/getmsgHL=1216hotmailtaglines_addphot
os_3mf


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DB] Help Needed

2002-12-26 Thread dufronte
Everything's perfect.. except my browser keep blank when I run my php
files...


--www.kapsul.org--
  DuFronte

-Original Message-
From: adi setiawan [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, December 26, 2002 5:00 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] Help Needed

-- pada 2002-12-26, 14:36:00 [EMAIL PROTECTED] menulis: --

 
Hi. 
I juz installed a RedHat 8.0 on my machine.
But then I have a problem in configuring Apache 2.0.4 to use PHP 4.20..
It's preety weird.. coz there's nothing shown up in the browser when I
run phpinfo(); or even a simple 'helloworld' code.
When I view the source by right-clicking.. it shows the php code.. but
why it didn't show anything in the browser ???
 
I've done all the procedures according to manual. but not working at
all.

check httpd.conf or something similar  make sure correct .php parsing

salam,
adi s. 




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DB] Help Needed

2002-12-26 Thread dufronte
I juz solved my problems last night...
When I searched PHP.net.. I found out that PHP.4.3.ORC4 is compatible
for APACHE2 but it isn't released yet... When I installed it.. it
works... now I can use PHP in my APACHE2...

Juz for information for somebody who have the same problem like me, you
can use the PHP.4.3.ORC4 for APACHE2.. it's more stable.. I guarantee...

Download : http://qa.php.net 


--www.kapsul.org--
  DuFronte

-Original Message-
From: Rick Widmer [mailto:[EMAIL PROTECTED]] 
Sent: Friday, December 27, 2002 8:18 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP-DB] Help Needed

At 02:36 PM 12/26/02 +0700, dufronte wrote:

Hi.
I juz installed a RedHat 8.0 on my machine.
But then I have a problem in configuring Apache 2.0.4 to use PHP 4.20..

Apache 2 and PHP are not ready for prime time.  If you must use Apache 2

with PHP, you are on the bleeding edge, and should plan on helping debug

the combination.

Certainly there are some combinations of versions and configurations
that 
do work, but there are many, many more that do not.  If you have time to

study and test Apache 2 + PHP, I'm sure your help would be welcome.

If you want it to just work, you should be using Apache 1.3.


Rick




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DB] Help Needed

2002-12-25 Thread dufronte
 
Hi. 
I juz installed a RedHat 8.0 on my machine.
But then I have a problem in configuring Apache 2.0.4 to use PHP 4.20..
It's preety weird.. coz there's nothing shown up in the browser when I
run phpinfo(); or even a simple 'helloworld' code.
When I view the source by right-clicking.. it shows the php code.. but
why it didn't show anything in the browser ???
 
I've done all the procedures according to manual. but not working at
all.
 
Please help.
---DuFronte---
 
http://binusti2002.net.tc http://binusti2002.net.tc/ 
 



RE: Fwd: [PHP-DB] Set Logout Time for No Activity

2002-12-22 Thread dufronte
If you're using a sessions, when the user close the browser, the user
will be automatically logged out coz the user's session is offer

In my opinion..., It's a good Idea if you do that with cookie


--www.kapsul.org--
  DuFronte

-Original Message-
From: adi setiawan [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 12:14 AM
To: [EMAIL PROTECTED]
Subject: Re: Fwd: [PHP-DB] Set Logout Time for No Activity

-- pada 2002-12-22, 10:56:00 [EMAIL PROTECTED] menulis: --

Hello,
   I meant sessions. Want to manually log out users that have logged in

but haven't performed any activities within the DB say after 3 hours. 
Is there a default for this? Thanks in advance. :)

the idea is, you might create sesssion variable to detect user activity
based on user act


salam,
adi s. 




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DB] read a file from local harddisk

2002-12-10 Thread dufronte

HI... sorry to interrupt again...

I have another ridiculous question...

I have a text file in my machine... and a php-file in my host (such as
host.sk etc..)
I want to use my php-file to access my text file in my machine
directly... 
I used fopen, and fread stuff... but didn't work

Btw, can somebody help my with this I want to know how to access my
local file in Windows and Linux remotely... or it can risk some security
problem ???
Please... help me...

---DuFronte---
 
http://binusti2002.net.tc



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DB] read a file from local harddisk

2002-12-10 Thread dufronte
Well I don't know how to make a socket connections... can you give me an
example please... 

Sorry to bother you :D

--www.kapsul.org--
  DuFronte

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 10, 2002 8:36 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] read a file from local harddisk

One thing to keep in mind is that PHP is 100% server side.  So,
regardless of 
what machine you are using to browse your PHP page, it will only know of
text 
files on the server.  So, you will probably need to employ socket
connections 
in order to get text files from a machine other then the server.
-Brad

 
 HI... sorry to interrupt again...
 
 I have another ridiculous question...
 
 I have a text file in my machine... and a php-file in my host (such as
 host.sk etc..)
 I want to use my php-file to access my text file in my machine
 directly... 
 I used fopen, and fread stuff... but didn't work
 
 Btw, can somebody help my with this I want to know how to access
my
 local file in Windows and Linux remotely... or it can risk some
security
 problem ???
 Please... help me...
 
 ---DuFronte---
  
 http://binusti2002.net.tc
 
 
 
 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 








--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DB] read a file from local harddisk

2002-12-10 Thread dufronte
I tried fsockopen()... but it doesn't work too...

--www.kapsul.org--
  DuFronte

-Original Message-
From: dufronte [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, December 11, 2002 1:49 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP-DB] read a file from local harddisk

Well I don't know how to make a socket connections... can you give me an
example please... 

Sorry to bother you :D

--www.kapsul.org--
  DuFronte

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 10, 2002 8:36 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] read a file from local harddisk

One thing to keep in mind is that PHP is 100% server side.  So,
regardless of 
what machine you are using to browse your PHP page, it will only know of
text 
files on the server.  So, you will probably need to employ socket
connections 
in order to get text files from a machine other then the server.
-Brad

 
 HI... sorry to interrupt again...
 
 I have another ridiculous question...
 
 I have a text file in my machine... and a php-file in my host (such as
 host.sk etc..)
 I want to use my php-file to access my text file in my machine
 directly... 
 I used fopen, and fread stuff... but didn't work
 
 Btw, can somebody help my with this I want to know how to access
my
 local file in Windows and Linux remotely... or it can risk some
security
 problem ???
 Please... help me...
 
 ---DuFronte---
  
 http://binusti2002.net.tc
 
 
 
 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 








-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DB] read a file from local harddisk

2002-12-10 Thread dufronte
All my reasons to ask you all about this ,because I'm currently
developing a web-base multiplayer game with PHP. In my game, I created
my Own browser with VB  so user will probably don't know which files
they're executed (for security reasons). But the problem is, I really
hard too figure out how to maintain the user login information... The
only way I can think about is to keep user's login information (username
and Password) in one file that located in User's machine. So, when
they're running the game from my browser... the browser will take the
login information from the file and pass it to my login.php page... so
user will be login automatically . I've tried it... but I'm stuck with
VB (I hate VB)... So, I planned to use PHP to take the login information
from my machine directly, but didn't work... I juz remember then that
PHP is server side  BTW, I put all my PHP stuffs in my host... and
my multimedia stuffs plugged into the browser on my machine.

Why VB ?? Yeah I know how stupid I am.. In fact I can juz using PHP-GTK
for the Interface (browser) right ??? But somehow, I don't want to
bother the user's who don't have a php-gtk modules that's why.

I've tried to make the browser with Windows API too... but I failed..
coz it's really hard to modified, because after I released my game for
windows.. I'll also released the linux version in the next week after
reconfiguring a new browser using GTK.

I've made a sample client browser so you can understand what I mean
(sorry , my English is so bad)... it's still bad browser, coz anyway...
it's juz a sample.. :D

http://kapsul.org/lab/panglima.exe

Last night... I juz have an Idea to use Javascript for taking the
information from my machine and then call the php-file from my host then
pass the information in as variables... Maybe It would work... but too
bad.. I'm still blind about javascripts.

Maybe somebody could give me some suggestions ???

--www.kapsul.org--
  DuFronte

-Original Message-
From: John A DAVIS [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, December 11, 2002 2:02 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-DB] read a file from local harddisk

could you map a drive letter on the web server to the folder where the
files are? 

 [EMAIL PROTECTED] 12/10/02 10:49AM 
Well I don't know how to make a socket connections... can you give me an
example please... 

Sorry to bother you :D

--www.kapsul.org-- 
  DuFronte

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 10, 2002 8:36 PM
To: [EMAIL PROTECTED] 
Subject: Re: [PHP-DB] read a file from local harddisk

One thing to keep in mind is that PHP is 100% server side.  So,
regardless of 
what machine you are using to browse your PHP page, it will only know of
text 
files on the server.  So, you will probably need to employ socket
connections 
in order to get text files from a machine other then the server.
-Brad

 
 HI... sorry to interrupt again...
 
 I have another ridiculous question...
 
 I have a text file in my machine... and a php-file in my host (such as
 host.sk etc..)
 I want to use my php-file to access my text file in my machine
 directly... 
 I used fopen, and fread stuff... but didn't work
 
 Btw, can somebody help my with this I want to know how to access
my
 local file in Windows and Linux remotely... or it can risk some
security
 problem ???
 Please... help me...
 
 ---DuFronte---
  
 http://binusti2002.net.tc 
 
 
 
 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php 
 








-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php 





-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DB] Re: Check Automaticaly

2002-12-09 Thread dufronte

Thanks a lot pal, that's help me so much. 

--www.kapsul.org--
  DuFronte

-Original Message-
From: Adam Royle [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 09, 2002 9:50 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP-DB] Re: Check Automaticaly

I would imagine your game would have two frames (one hidden frame), and
the hidden frame would contain scripts to check and update page.

In the bottom frame i see you might have two choices:

1. have a meta refresh which checks every 5 (or so) secs if a move has
been made, and if detects a move, sends a refresh command to the top
frame

2. have a php script which continually checks if a move has been made (
using sleep() function and set_time_limit() ), and if detects a move,
sends a javascript command to browser, then continue detecting if
changes have been made..

the implications of #2 (i would image), is the explorer icon will be
constantly loading a page, so if you click stop, the game will cease

hope that helps
adam


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DB] Delay Confirmation....

2002-12-09 Thread dufronte
Hi, I'm still new in PHP...,

I have some problem in using sleep() function.

Actually, I want to make a script that confirm the user to wait for 10
seconds before proceed to the next step. First the message Please wait
for 10 seconds while we're processing your request... will be shown to
user, then at the same time I want to delay the processing for 10
seconds with sleep() function.

This is my script :

?php
$i=0;
set_time_limit(10);
print(Please wait for 10 seconds while we're processing your
request...); sleep(10);
$query=insert into..; 
etc.
?

But the result juz not like I wanted. The sleep runs before the message
shown up..., not before the query...  I think, sleep() is delayed a
whole scriptboth, the message and the query result are printed out
after 10 seconds... It makes me so confused

How could I fix it ??? Please help me...


--www.kapsul.org--
  DuFronte




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DB] Delay Confirmation....

2002-12-09 Thread dufronte
Thanks for the Javascript... but my real case is in PHP not
Javascript... :D 
I've tried with javascript, it worked, but not with PHP...

I've tried what Michael Hazelden said. 

print(Please wait for 10 seconds while we're processing your
request...); 
flush();
sleep(10);

But it didn't work... it gave me the same result like before
Or maybe there's something wrong with my browser ??? I'm using Internet
Explorer :D But I think it's not the cause.. 




--www.kapsul.org--
  DuFronte

-Original Message-
From: Ryan Jameson (USA) [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 09, 2002 9:40 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-DB] Delay Confirmation

Anyone know how to disable CTRL-ENTER in outlook? 

Anyway... the what I was saying:

function wait10SecondsAndThenGoToADifferentPage(){
  setTimeout(window.location.href =
'pageYouWantThemOnWhenDone.php';,1);
}


 Ryan

-Original Message-
From: Ryan Jameson (USA) 
Sent: Monday, December 09, 2002 7:38 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-DB] Delay Confirmation


javascript seems to be a more likely candidate for this.

The function you'd use is:



-Original Message-
From: dufronte [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 09, 2002 7:36 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Delay Confirmation


Hi, I'm still new in PHP...,

I have some problem in using sleep() function.

Actually, I want to make a script that confirm the user to wait for 10
seconds before proceed to the next step. First the message Please wait
for 10 seconds while we're processing your request... will be shown to
user, then at the same time I want to delay the processing for 10
seconds with sleep() function.

This is my script :

?php
$i=0;
set_time_limit(10);
print(Please wait for 10 seconds while we're processing your
request...); sleep(10);
$query=insert into..; 
etc.
?

But the result juz not like I wanted. The sleep runs before the message
shown up..., not before the query...  I think, sleep() is delayed a
whole scriptboth, the message and the query result are printed out
after 10 seconds... It makes me so confused

How could I fix it ??? Please help me...


--www.kapsul.org--
  DuFronte




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DB] Call an Image from local Harddisk thru PHP file in Remote Host.

2002-12-09 Thread dufronte

Hello again,

I have another few question.
Actually, it's a little bit ridiculous so don't laugh at me :D

I want to make a webgame with php., there.. I want to put an Image
Locally in order to Increase the speed. What I'm going to do is put my
Image in my Local Harddisk...(I'm using Windows), and I put my PHP file
in my Host (such as Host.sk or something).

So... I wanna call my Image from my Harddisk thru that file... using a
GD function...

I've tried this two silly things.. but it doesn't work 

$map=ImageCreateFromJPEG(c:/myfiles/img/mdmap.jpg);
and $map=ImageCreateFromJPEG(file:///c|/myfiles/img/mdmap.jpg);

what should I do then. Please help me...

--www.kapsul.org--
  DuFronte



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DB] Call an Image from local Harddisk thru PHP file in Remote Host.

2002-12-09 Thread dufronte
But somehow... I'm still curious...

Please check this link to make clear what I plan to do...
http://binusti2002.host.sk/sf/start_map.php

Here, I put my Image in my Host.. It does work... but the Image is so
big and it slows down the access... so that's why I want to put it
locally... 

By the way... all the 'city' symbols on the map is changed automatically
using mysql when user is success in attacking some 'city' 

To test the map... you can simply click on one of the 'city' symbols...

So... what I gonna do to increase the speed ??? 

--www.kapsul.org--
  DuFronte

-Original Message-
From: Beau Lebens [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 10, 2002 1:55 PM
To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
Subject: RE: [PHP-DB] Call an Image from local Harddisk thru PHP file in
Remote Host.

This won't work, because the HOST needs to be able to access the files
on
your machine, which is a gross security risk, and isn't possible in this
manner.

The only way I can think of that you would be able to do anything useful
like that would be to have an HTML page load an image using

img src=C:\images\map.gif

or somthing like that, but you wouldn't be able to modify that image
using
PHP (tho you could use DIVs or something to overlay other details
perhaps?)

HTH

beau

// -Original Message-
// From: dufronte [mailto:[EMAIL PROTECTED]]
// Sent: Tuesday, 10 December 2002 2:51 PM
// To: [EMAIL PROTECTED]
// Subject: [PHP-DB] Call an Image from local Harddisk thru PHP file in
// Remote Host.
// 
// 
// 
// Hello again,
// 
// I have another few question.
// Actually, it's a little bit ridiculous so don't laugh at me :D
// 
// I want to make a webgame with php., there.. I want to 
// put an Image
// Locally in order to Increase the speed. What I'm going to do 
// is put my
// Image in my Local Harddisk...(I'm using Windows), and I put 
// my PHP file
// in my Host (such as Host.sk or something).
// 
// So... I wanna call my Image from my Harddisk thru that 
// file... using a
// GD function...
// 
// I've tried this two silly things.. but it doesn't work 
// 
// $map=ImageCreateFromJPEG(c:/myfiles/img/mdmap.jpg);
// and $map=ImageCreateFromJPEG(file:///c|/myfiles/img/mdmap.jpg);
// 
// what should I do then. Please help me...
// 
// --www.kapsul.org--
//   DuFronte
// 
// 
// 
// -- 
// PHP Database Mailing List (http://www.php.net/)
// To unsubscribe, visit: http://www.php.net/unsub.php
// 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DB] Call an Image from local Harddisk thru PHP file in Remote Host.

2002-12-09 Thread dufronte
I've tried your way...
And it works
It's more simple than using pure PHP :D

Thank you very much !!!

I'll inform you when the game is finished...

--www.kapsul.org--
  DuFronte

-Original Message-
From: Beau Lebens [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 10, 2002 2:33 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [PHP-DB] Call an Image from local Harddisk thru PHP file in
Remote Host.

i'd probably go for flags/symbols of some sort as well, because as you
said,
there are more variations available.

to demonstrate what i meant in ASCII :)


   _
  //
 //--- HTML/DIV layer containing flags
//
   _
  //
 //--- Simple GIF/JPEG map image
//

you would have to store the coordinates of the cities in the db, and
then
dynamically (php/mysql) generate the top layer, containing all of the
cities, in their correct locations, according to the map.




// -Original Message-
// From: dufronte [mailto:[EMAIL PROTECTED]]
// Sent: Tuesday, 10 December 2002 3:30 PM
// To: 'Beau Lebens'
// Subject: RE: [PHP-DB] Call an Image from local Harddisk thru 
// PHP file in
// Remote Host.
// 
// 
// I think we should talk in private email
// 
// Well,
// I've a complete MAP from my friend... it contains 93 cities... and if
// each city is owned by one user... so that's mean I need 93 cities
// symbols right ??
// 
// I juz want your suggestion...
// 
// Is it good to make a color symbols, or a 'flag' symbols...
// 
// Me myself prefer the 'flag' one... so users can create their own flag
// (ex : flag like US Flag, or English Flag, or even a custom flag)...
// because it easy to manage with mysql
// 
// A color my quite cool too... but I'm afraid... I can provide 93
// different colors
// 
// --www.kapsul.org--
//   DuFronte
// 
// 
// 



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DB] Check Automaticaly

2002-12-08 Thread dufronte


--www.kapsul.org--
Hi.. I want to make a webgame in PHP-Based. My Game is Almost
finished, but there's something that I still try to figure out. 

Here's my problem. I want to make a battle engine using PHP+MySQL, and I
want it to be almost real-time eventhough I make it as turn-based. I juz
wanna know, how could I refresh my page automatically when another user
(actually I make a multiplayer game) make a change on battlemap (such as
attacking my units,etc.) Could somebody help me ???  Thanks..


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DB] Re: PHP/MySQL not available remotely...

2002-12-04 Thread dufronte

-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, December 04, 2002 11:48 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] Re: PHP/MySQL not available remotely...

On Thursday 05 December 2002 00:44, Chase wrote:
 Yes I am.

 I was just asked to create a simple web page that would display the
 visitors IP address using:

 ?php echo $REMOTE_ADDR; ?

So you're saying that the above works ...

 and when I call this up over the intranet or internet it works just
fine.
 However, I was also asked to create a page that would just display the
PHP
 Info screen and that will only show up on the server..  I can't get
that
 page to show remotely.

... but ?php phpinfo(); ? doesn't work??

Oh my GOD.. this is a really big problem... why don't you try using
APACHE web server... in my experience... IIS alwas delivered so many
errors with PHP.




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php