[PHP] Pasar varialbe sin GET

2007-02-11 Thread Anuack Luna
Hola a todos. PHP

Bueno, mi consulta es complicada

Normalmente se pasa una variable así:

nombredelarchivo.php?valor=variable
nombredelarchivo.php?id=x

La pagina nombredelarchivo.php recibe la variable de la otra Web page

Hasta hay nop broblem

He visto en los portales como por ejemplo crean un solo archivo para
imprimir un valor como si fuera una carpeta.

Ejemplo:

pagina/usuari_1
pagina/usuari_2
pagina/anuack
pagina/lolita.

Para mi seria lógico que en donde dice anuack es una carpeta... NO???

He visto nombre de archivos {name}.php pero no encuentro como lleva un valor
y convierte a {name}.php en anuack, lolita, usuario... etc.

Como envía un valor o variable a {name}.php  y como la recibe {name}.php  si
por método GET no funciona

También he probado en variable de formulario, cookie, variable de sección
"Algo ilógico pero lo probé", variable de servidor y valor introducido y
nada de nada

Claro, puedo hacer que me imprima por ejemplo 18.php, pero no encuentra el
archivo.

Alguna información clara en español.

Espero haberme explicado

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



[PHP] Web Based Game Theory

2007-02-11 Thread Sancar Saran
Greetings all,

I just want to TRY write a web based strategy game. Lets say a famous ogame 
clone.

Is there any paper about to game engine. I feel a bit a lost.

For example, for realtime gaming I need some kind of back size cli based big 
game loop. Right ?

Last night I try to write down some thoughts. 

Its look like I need a some kind of scheduler. Some kind of event system to 
process events..

So, I'm looking for papers to give a clue about these problems

Regards

Sancar

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



[PHP] Re: Any Internal search engine in PHP?

2007-02-11 Thread David Robley
Chris Carter wrote:

> 
> Hi,
> 
> I had been trying some search engines for internal searches within my
> website. I tried google co-op which failed as the results were showing on
> supplemental index. The one provided by cpanel does not show more than 2-3
> URLs in results. Please advice if you know about any php based search
> engine that can index my pages internally. Certainly an open source one.
> 
> Thanks,
> 
> Chris

Mnogosearch can be used either as a cgi or with php functionality
available - may need a recompile of php for the latter.

http://www.mnogosearch.org/


Cheers
-- 
David Robley

Why get even, when you can get odd?
Today is Boomtime, the 42nd day of Chaos in the YOLD 3173. 

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



Re: [PHP] PHP or Bridge (card game)

2007-02-11 Thread tedd

At 1:19 PM -0800 2/10/07, pub wrote:

To all PHP experts,

Do any of you also know how to play bridge?


I'm sure someone does.


If yes, which do you think is harder to learn, PHP or bridge?


I don't know, I don't play bridge.

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

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



Re: [PHP] Pasar varialbe sin GET

2007-02-11 Thread Oscar Gosdinski

Revisa las directivas RewriteEngine, RewriteRule de Apache.
Por cierto, esta es una lista en inglés.

Review the Apache directives: RewriteEngine, RewriteRule.
BTW, this is an english list.

On 2/11/07, Anuack Luna <[EMAIL PROTECTED]> wrote:

Hola a todos. PHP

Bueno, mi consulta es complicada

Normalmente se pasa una variable así:

nombredelarchivo.php?valor=variable
nombredelarchivo.php?id=x

La pagina nombredelarchivo.php recibe la variable de la otra Web page

Hasta hay nop broblem

He visto en los portales como por ejemplo crean un solo archivo para
imprimir un valor como si fuera una carpeta.

Ejemplo:

pagina/usuari_1
pagina/usuari_2
pagina/anuack
pagina/lolita.

Para mi seria lógico que en donde dice anuack es una carpeta... NO???

He visto nombre de archivos {name}.php pero no encuentro como lleva un valor
y convierte a {name}.php en anuack, lolita, usuario... etc.

Como envía un valor o variable a {name}.php  y como la recibe {name}.php  si
por método GET no funciona

También he probado en variable de formulario, cookie, variable de sección
"Algo ilógico pero lo probé", variable de servidor y valor introducido y
nada de nada

Claro, puedo hacer que me imprima por ejemplo 18.php, pero no encuentra el
archivo.



--
Saludos
Oscar

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



Re: [PHP] Please critique my database class.

2007-02-11 Thread Martin Marques

barophobia escribió:

Hi!

I was thinking about asking for recommendations for a lightweight database
class. But I realized I hadn't thought much about what my requirements are
so I decided instead to ask the list to critique my own class. I don't need
anything as robust as ADOdb and I always use MySQL.


Why not use MDB2?

--
select 'mmarques' || '@' || 'unl.edu.ar' AS email;
-
Martín Marqués  |   Programador, DBA
Centro de Telemática| Administrador
   Universidad Nacional
del Litoral
-

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



Re: [PHP] un include?

2007-02-11 Thread Larry Garfield
Copying back to the list where it belongs...

On Sunday 11 February 2007 11:01 am, jekillen wrote:
> On Feb 10, 2007, at 8:58 PM, Larry Garfield wrote:
> > You need to rearchitect your system.
> >
> > When you include a file, its code executes.  Once it has been
> > executed, it is
> > done.  It will never "rewind" itself.  You can open and edit the file,
> > but
> > the code has already executed and that execution has happened, and you
> > cannot
> > change that.
> >
> > What exactly are you trying to accomplish?  Dollars to donuts there's
> > a much
> > easier and more logical way than trying to edit an included file.
>
> Thanks for the reply. It is good to understand what you are telling me
> here.
> I was concerned that the file would not be accessible by a call to
> fopen when
> it has been included. It is just a series of configuration variables
> that are set
> and I want the user to be able to change one of these variables' values.
> What turned up was that I was referencing the variable by the wrong
> name in a str_replace call.
> thanks again
> JK

You're using str_replace() on PHP code to control configuration variables?  
There's a half dozen better ways that are less error prone and faster and 
more secure.

My recommendation:

- If the config is all simple values, use an ini file.  You can then use 
parse_ini_file() to read the data into an array that you can reference, and 
can write the array back out easily.  (Ini is a very simple format.)

- If you want it to be programmatically editable, put it in your database and 
be done with it.  A simple key/value table with a getter function and setter 
function is trivial to setup, but far more robust and flexible than messing 
around with the file system.

-- 
Larry Garfield  AIM: LOLG42
[EMAIL PROTECTED]   ICQ: 6817012

"If nature has made any one thing less susceptible than all others of 
exclusive property, it is the action of the thinking power called an idea, 
which an individual may exclusively possess as long as he keeps it to 
himself; but the moment it is divulged, it forces itself into the possession 
of every one, and the receiver cannot dispossess himself of it."  -- Thomas 
Jefferson

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



Re: [PHP] Recommend a PHP Framework

2007-02-11 Thread Chris

Goh Yong Kwang wrote:

Hi,

I am now mulling over writing my PHP web application from scratch or to use 
some kind of framework to organize my code.


For Java, Struts and Spring come to mind. But for PHP, there are numerous 
frameworks and I can't figure out which one to use.


I would like to describe my constraints as dictated by my server setup 
(using a free hosted account, so not a lot of flexibility):




Search the archives, this has been discussed a lot:

http://marc.theaimsgroup.com/?l=php-general

--
Postgresql & php tutorials
http://www.designmagick.com/

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



Re: [PHP] un include?

2007-02-11 Thread jekillen


On Feb 11, 2007, at 1:16 PM, Larry Garfield wrote:



You're using str_replace() on PHP code to control configuration 
variables?
There's a half dozen better ways that are less error prone and faster 
and

more secure.

My recommendation:

- If the config is all simple values, use an ini file.  You can then 
use
parse_ini_file() to read the data into an array that you can 
reference, and

can write the array back out easily.  (Ini is a very simple format.)

- If you want it to be programmatically editable, put it in your 
database and
be done with it.  A simple key/value table with a getter function and 
setter
function is trivial to setup, but far more robust and flexible than 
messing

around with the file system.


Thank you for your suggestions.
I am writing a web based app that creates packages for registered
users. Each user has a user space created for them on the server.
It consists of a directory with files and subdirs and files. Each 
package

is uniform. The only thing that personalizes each user space is the
user space directory name and the config file in that user space.
This config file does not effect any other users space. So an ini file
with globally set variables is completely out of the question. At 
present

I am not using any databases in this context. There are other security
measures I have in place for this. One is that the user must login and
all transactions with the server are done over ssl. Every page request
is authenticated (not by re entering id/pw). And a few other tricks.
Thanks again.
Jeff K

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



[PHP] Re: Pasar varialbe sin GET

2007-02-11 Thread Anuack Luna
Disculpa. Por casualidad no tienes una Web donde explique como hacerlo
fácilmente

He visto varias, pero no entiendo nada

Le agradezco

Saludos desde Colombia
""Anuack Luna"" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
> Hola a todos. PHP
>
> Bueno, mi consulta es complicada
>
> Normalmente se pasa una variable así:
>
> nombredelarchivo.php?valor=variable
> nombredelarchivo.php?id=x
>
> La pagina nombredelarchivo.php recibe la variable de la otra Web page
>
> Hasta hay nop broblem
>
> He visto en los portales como por ejemplo crean un solo archivo para
> imprimir un valor como si fuera una carpeta.
>
> Ejemplo:
>
> pagina/usuari_1
> pagina/usuari_2
> pagina/anuack
> pagina/lolita.
>
> Para mi seria lógico que en donde dice anuack es una carpeta... NO???
>
> He visto nombre de archivos {name}.php pero no encuentro como lleva un
valor
> y convierte a {name}.php en anuack, lolita, usuario... etc.
>
> Como envía un valor o variable a {name}.php  y como la recibe {name}.php
si
> por método GET no funciona
>
> También he probado en variable de formulario, cookie, variable de sección
> "Algo ilógico pero lo probé", variable de servidor y valor introducido y
> nada de nada
>
> Claro, puedo hacer que me imprima por ejemplo 18.php, pero no encuentra el
> archivo.
>
> Alguna información clara en español.
>
> Espero haberme explicado

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



RE: [PHP] Recommend a PHP Framework

2007-02-11 Thread Yong Kwang Goh

Hi Jim,Yes I can write to local file system, but only to my home directory 
(document root) and subdirectories under it.Thanks for your advice. Will look 
into SQLite.GOH, Yong Kwang
Singapore
[EMAIL PROTECTED]


> Date: Sat, 10 Feb 2007 22:00:34 -0800> From: [EMAIL PROTECTED]> To: [EMAIL 
> PROTECTED]> CC: php-general@lists.php.net> Subject: Re: [PHP] Recommend a PHP 
> Framework> > Goh Yong Kwang wrote:> > Hi,> > > > I am now mulling over 
> writing my PHP web application from scratch or to use > > some kind of 
> framework to organize my code.> > > > For Java, Struts and Spring come to 
> mind. But for PHP, there are numerous > > frameworks and I can't figure out 
> which one to use.> > > > I would like to describe my constraints as dictated 
> by my server setup > > (using a free hosted account, so not a lot of 
> flexibility):> > > > * PHP 5> > * Safe mode on> > * No database (not even 
> MySQL)> > * No shell/SSH login to run commands> > * Server running on Linux> 
> > * Only allowed to upload my PHP files via FTP or Web browser> > * Only 
> allowed to upload files to my account home directory, which is > > document 
> root> > * Not allowed to tweak the PHP installation> > > > So given the above 
> constraints, most likely I need a simple framework that> > * Comes in a bunch 
> of PHP files and classes that I can just upload together > > with my other 
> PHP/HTML files> > * No additional configuration on the server side> > * No 
> change required for the PHP installation such as PEAR installation, > > 
> modification of php.ini or installation of extension> > > > Any framework 
> that fits the constraints? Let me know.> > > > Thanks.> > ---> > Goh Yong 
> Kwang> > Singapore> > [EMAIL PROTECTED]> > > can you at least write to the 
> local file system with php?> > if so, you might look at something that 
> supports sqlite> > You could also look at running a separate server running 
> your DB.
_
Call friends with PC-to-PC calling -- FREE
http://get.live.com/messenger/overview

[PHP] Re: Http Client in PHP connecting to a Digest authenticated server

2007-02-11 Thread Manish Marathe

On 2/10/07, Manuel Lemos <[EMAIL PROTECTED]> wrote:


Hello,

on 02/09/2007 04:49 PM Manish Marathe said the following:
> Hello,
>
> I have seen some implementations of Server in php implementing HTTP
Digest
> Authentication but I have not seen any guidelines on HTTP Client
connecting
> to a specific host, and using the "realm", the username and password to
get
> authenticated and thereby do something like download files etc.

Take a look at this HTTP client class:

http://www.phpclasses.org/httpclient

It supports Digest authentication via the SASL class library

http://www.phpclasses.org/sasl



Thanks Manuel,

So I will need both the SASL library written by you and the httpclient
library? Can you throw some more light, will really appreciate that.

--
Manish Marathe
SpikeSource, Inc.
http://developer.spikesource.com


[PHP] [re]crazy time with str_replace()

2007-02-11 Thread jekillen

Hello;
I solved this problem, I think. It is the only thing I could find 
different between
two other wise identical strings in two php files with identical names 
(in different
dirs). One was formatted for Unix (linefeed line ending) and the one, 
that was
not responding,  was formatted for Mac (carriage return line endings). 
I have not

tried it yet but I believe that will solve the problem.
Perhaps this will help someone with a similar problem they cannot seem 
to solve.

JK
Addenda:
sorry, this message seems to have been placed in my drafts dir instead 
of being

sent. Here it is.

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



Fw: [PHP] Re: Pasar varialbe sin GET

2007-02-11 Thread Satyam

http://httpd.apache.org/docs/2.0/misc/rewriteguide.html


- Original Message - 
From: "Anuack Luna" <[EMAIL PROTECTED]>

To: 
Sent: Monday, February 12, 2007 2:52 AM
Subject: [PHP] Re: Pasar varialbe sin GET



Disculpa. Por casualidad no tienes una Web donde explique como hacerlo
fácilmente

He visto varias, pero no entiendo nada

Le agradezco

Saludos desde Colombia
""Anuack Luna"" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]

Hola a todos. PHP

Bueno, mi consulta es complicada

Normalmente se pasa una variable así:

nombredelarchivo.php?valor=variable
nombredelarchivo.php?id=x

La pagina nombredelarchivo.php recibe la variable de la otra Web page

Hasta hay nop broblem

He visto en los portales como por ejemplo crean un solo archivo para
imprimir un valor como si fuera una carpeta.

Ejemplo:

pagina/usuari_1
pagina/usuari_2
pagina/anuack
pagina/lolita.

Para mi seria lógico que en donde dice anuack es una carpeta... NO???

He visto nombre de archivos {name}.php pero no encuentro como lleva un

valor

y convierte a {name}.php en anuack, lolita, usuario... etc.

Como envía un valor o variable a {name}.php  y como la recibe {name}.php

si

por método GET no funciona

También he probado en variable de formulario, cookie, variable de sección
"Algo ilógico pero lo probé", variable de servidor y valor introducido y
nada de nada

Claro, puedo hacer que me imprima por ejemplo 18.php, pero no encuentra 
el

archivo.

Alguna información clara en español.

Espero haberme explicado


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




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