[PHP] Includes inside includes

2003-12-21 Thread Robbert van Andel
I've written a class that is calling an include
function to include a setup file.  The problem is that
the setup file is in another directory than the class.
 I'm including the file using:

include ("../common/setup.inc");

Is there a way that i can make the relative path
inside the class definition specific to the class
definition, not the page that is including the class
definition.  I have trouble when I include the class
definition.  I get an error that it cannot include
"../common/setup.ini" whenever the class is called
from a directory above common.

I hope this makes sense. and thanks for your help.

Robbert van Andel
  

__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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



php-general Digest 21 Dec 2003 07:41:38 -0000 Issue 2485

2003-12-21 Thread php-general-digest-help

php-general Digest 21 Dec 2003 07:41:38 - Issue 2485

Topics (messages 173079 through 173095):

Re: sessions problem
173079 by: Larry Brown

Re: include files
173080 by: Todd

Re: mysql load_file retreival
173081 by: Chris
173082 by: Larry Brown
173087 by: Chris
173089 by: Larry Brown
173090 by: Chris
173094 by: Larry Brown

Domain Check script
173083 by: Cesar Aracena
173086 by: Cesar Aracena
173091 by: Website Managers.net

Best place to search archives
173084 by: Philip J. Newman
173085 by: olinux

Re: Document Indexer and Database Contents Index
173088 by: olinux

Re: form variables
173092 by: Ewout de Boer

compile problems
173093 by: Brian V Bonini

Includes inside includes
173095 by: Robbert van Andel

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--
--- Begin Message ---
Make sure you have session_start(); at the beginning of each script you run
from the time you start inserting variables to the time you want the session
to end.

-Original Message-
From: Nitin [mailto:[EMAIL PROTECTED]
Sent: Saturday, December 20, 2003 10:48 AM
To: PHP-General
Subject: [PHP] sessions problem


hi all,

i'm just starting to use sessions.
i've a problem,

i started session and assigned variables to $HTTP_SESSION_VARS
i can very well see these vars in my next script, but i need to get back to
first script for some working, and strangely i dont find these vars there.

any help or suggestions

Nitin
--- End Message ---
--- Begin Message ---
This looks like it should do exactly what I need. Thanks for pointing that
out.

Marek Kilimajer wrote:
> See function debug_backtrace(), it's available since 4.3.3
>
--- End Message ---
--- Begin Message ---
LOAD_FILE() shouldn't be escaping the data. Are you actually calling : echo
header()? the header function should not be echoed.

header('Content-type: application/pdf');
echo result[0];

-Original Message-
From: Larry Brown [mailto:[EMAIL PROTECTED]
Sent: Saturday, December 20, 2003 9:29 AM
To: PHP List
Subject: [PHP] mysql load_file retreival


I have set up a script to recieve a pdf file and store it in a mysql db
using "update db set field=load_file('fileIncludingFile') where id=$id".
Afterwards I can see the file has been uploaded into the blob field
successfully and without errors.  Now I want to get the file back out.  I
set up a script with "select field from db where id=$id" and used
mysql_query followed by mysql_fetch_row and did echo header("Content-type:
application/pdf"); and then echo result[0]; where result was the row
fetched.  I get the prompt to open with pdf but pdf fails.  I have
magicquotes on but I understand that the load_file() function within mysql
does the escaping etc.  How can I "un-escape" the data?  The only thing I
saw on the mysql manual is on how to use load_file_infile/load_file_outfile
which does not apply to this.  Can someone lend a hand here?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Oops, my bad on the post.  I am not sending echo header...just header(...

I thought, based on reading from mysql that it did escape certain
characters.  I'll start looking at other possibilities...

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: Saturday, December 20, 2003 1:24 PM
To: PHP List
Subject: RE: [PHP] mysql load_file retreival


LOAD_FILE() shouldn't be escaping the data. Are you actually calling : echo
header()? the header function should not be echoed.

header('Content-type: application/pdf');
echo result[0];

-Original Message-
From: Larry Brown [mailto:[EMAIL PROTECTED]
Sent: Saturday, December 20, 2003 9:29 AM
To: PHP List
Subject: [PHP] mysql load_file retreival


I have set up a script to recieve a pdf file and store it in a mysql db
using "update db set field=load_file('fileIncludingFile') where id=$id".
Afterwards I can see the file has been uploaded into the blob field
successfully and without errors.  Now I want to get the file back out.  I
set up a script with "select field from db where id=$id" and used
mysql_query followed by mysql_fetch_row and did echo header("Content-type:
application/pdf"); and then echo result[0]; where result was the row
fetched.  I get the prompt to open with pdf but pdf fails.  I have
magicquotes on but I understand that the load_file() function within mysql
does the escaping etc.  How can I "un-escape" the data?  The only thing I
saw on the mysql manual is on how to use load_file_infile/load_file_outfile
which does not apply to this.  Can someone lend a hand here?

--
PHP General Mailing List (http://www.

Re: [PHP] Includes inside includes

2003-12-21 Thread Website Managers.net
To call the file from anywhere within the document space, try this:

include($_SERVER["DOCUMENT_ROOT"]."/common/setup.inc");

Jim

- Original Message - 
From: "Robbert van Andel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 21, 2003 1:41 AM
Subject: [PHP] Includes inside includes


| I've written a class that is calling an include
| function to include a setup file.  The problem is that
| the setup file is in another directory than the class.
|  I'm including the file using:
| 
| include ("../common/setup.inc");
| 
| Is there a way that i can make the relative path
| inside the class definition specific to the class
| definition, not the page that is including the class
| definition.  I have trouble when I include the class
| definition.  I get an error that it cannot include
| "../common/setup.ini" whenever the class is called
| from a directory above common.
| 
| I hope this makes sense. and thanks for your help.
| 
| Robbert van Andel
|   
| 
| __
| Do you Yahoo!?
| New Yahoo! Photos - easier uploading and sharing.
| http://photos.yahoo.com/
| 
| -- 
| 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



[PHP] how to setup php on OS X.2

2003-12-21 Thread wayan mardika
hii there,

my name is wayan mardika, i would like to ask you how to install php on 
mac OS X.2.
iam new in this things. i tried to install the php on my computer.
and then what else do i need?
could you tell me the simple way to do it?

the point is, i want to run php on my own computer.
thank you for your attention.
i am looking forward to hear from you soon.


best regards,

wayan mardika

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


[PHP] List values

2003-12-21 Thread Chakravarthy Cuddapah
Can anyone pls tell me how to dynamically list values in a ListMenu. The values do not 
come from any database. They are stored in php variables. Sample code will be highly 
appreciated.


RE: [PHP] List values

2003-12-21 Thread Chakravarthy Cuddapah
Array. I am interested to know for both the cases. 
 
Thanks !



From: Nathan Taylor [mailto:[EMAIL PROTECTED]
Sent: Sun 12/21/2003 8:00 AM
To: Chakravarthy Cuddapah
Subject: Re: [PHP] List values


Are the values in an array or individually in variables?
 
Nathan

- Original Message - 
From: Chakravarthy Cuddapah   
To: [EMAIL PROTECTED] 
Sent: Sunday, December 21, 2003 7:47 AM
Subject: [PHP] List values

Can anyone pls tell me how to dynamically list values in a ListMenu. The 
values do not come from any database. They are stored in php variables. Sample code 
will be highly appreciated.




RE: [PHP] List values

2003-12-21 Thread Chris


$value){
?>
>



   

> -Original Message-
> From: Chakravarthy Cuddapah [mailto:[EMAIL PROTECTED] 
> Sent: 21 December 2003 12:47
> To: [EMAIL PROTECTED]
> Subject: [PHP] List values
> 
> Can anyone pls tell me how to dynamically list values in a 
> ListMenu. The values do not come from any database. They are 
> stored in php variables. Sample code will be highly appreciated.
> 

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



[PHP] CRC values update by readfile function?

2003-12-21 Thread ermelir
hello list,

I have a problem with file integrity in my url.
I try to force download file with the following script:

 $sFile = $dSession['DOWNLOAD'][$id][$type];
 if (is_file($sFile))
 {
   header("Content-disposition: attachment; 
filename=".basename($sFile));
   header("Content-Type: force-download");
   header("Content-Transfer-Encoding: binary");
   header("Content-Length: ".filesize($sFile));
   header("Pragma: no-cache");
   header("Cache-Control: no-store, no-cache, must-revalidate, 
post-check=0, pre-check=0");
   header("Expires: 0");
   readfile($sFile);
   }
-
nothing very hard to understand, but
if I try to donwload the file with a ftp application, CRC checksum is 
different from file download with this script (there is only one file to 
download in the folder read, it's not a bad file read).
have you an idea to fix this?
thanks in advance for your help
best regards

Matthieu

_
Envie de discuter en "live" avec vos amis ? Télécharger MSN Messenger
http://www.ifrance.com/_reloc/m la 1ère messagerie instantanée de France
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] how to setup php on OS X.2

2003-12-21 Thread friscu
hii there,

my name is wayan mardika, i would like to ask you how to install php 
on mac OS X.2.
iam new in this things. i tried to install the php on my computer.
and then what else do i need?
could you tell me the simple way to do it?

the point is, i want to run php on my own computer.
thank you for your attention.
i am looking forward to hear from you soon.
Go in this site, http://www.entropy.ch/software/macosx/php/ is simple..
;)
ciao

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


[PHP] Extending String Length (255) limit for Levenshtein

2003-12-21 Thread Gohaku
Hi everyone,
I would like to know if there is a way to extend the limit of 255 
characters when using the Levenshtein Function?
I have used user-defined functions such levdis and xlevdist but they 
often take too much time.
Thanks in advance.
-Gohaku

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


[PHP] CRC values update by readfile function?

2003-12-21 Thread ermelir
hello list,

I have a problem with file integrity in my url.
I try to force download file with the following script:

$sFile = $dSession['DOWNLOAD'][$id][$type];
if (is_file($sFile))
{
  header("Content-disposition: attachment; 
filename=".basename($sFile));
  header("Content-Type: force-download");
  header("Content-Transfer-Encoding: binary");
  header("Content-Length: ".filesize($sFile));
  header("Pragma: no-cache");
  header("Cache-Control: no-store, no-cache, must-revalidate, 
post-check=0, pre-check=0");
  header("Expires: 0");
  readfile($sFile);
  }
-
nothing very hard to understand, but
if I try to donwload the file with a ftp application, CRC checksum is 
different from file download with this script (there is only one file to 
download in the folder read, it's not a bad file read).
have you an idea to fix this?
thanks in advance for your help
best regards

Matthieu

_
Envie de discuter en "live" avec vos amis ? Télécharger MSN Messenger
http://www.ifrance.com/_reloc/m la 1ère messagerie instantanée de France
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] [posibleOT] Forcing entering te site thru index.php

2003-12-21 Thread Fernando M. Maresca
Hello everybody.
Well, i'm trying to avoid access to the site for the middle. Say there
is a initial page with a form and other pages that depends on this. Is
there a way to force users access the site thru the initial form page,
regardless of the url?
Something like this:
lynx http://mysite/forma2.php/
produce the browser to redirect to 
http://mysite/index.php/

Of course, the forma2.php must be served if its accesed after index.php.
Thanks

-- 

Fernando M. Maresca

Cel: (54) 221 15 502 3938
Cel: 0221-15-502-3938

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



Re: [PHP] [posibleOT] Forcing entering te site thru index.php

2003-12-21 Thread Eugene Lee
On Sun, Dec 21, 2003 at 03:57:24PM -0300, Fernando M. Maresca wrote:
: 
: Well, i'm trying to avoid access to the site for the middle. Say there
: is a initial page with a form and other pages that depends on this. Is
: there a way to force users access the site thru the initial form page,
: regardless of the url?
: Something like this:
: lynx http://mysite/forma2.php/
: produce the browser to redirect to 
: http://mysite/index.php/
: 
: Of course, the forma2.php must be served if its accesed after index.php.

There are several ways to do this.  The most obvious is with cookies.
Set up your index.php to initially create a cookie that authorizes a
user to look in the site.  On the rest of your PHP pages, check that
this authorization cookie exists.  If not, redirect to index.php.

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



Re: [PHP] [posibleOT] Forcing entering te site thru index.php

2003-12-21 Thread Fernando M. Maresca
On Sun, Dec 21, 2003 at 01:03:43PM -0600, Eugene Lee wrote:
> On Sun, Dec 21, 2003 at 03:57:24PM -0300, Fernando M. Maresca wrote:
> : 
> : Well, i'm trying to avoid access to the site for the middle. Say there
> : is a initial page with a form and other pages that depends on this. Is
> : there a way to force users access the site thru the initial form page,
> : regardless of the url?
> : Something like this:
> : lynx http://mysite/forma2.php/
> : produce the browser to redirect to 
> : http://mysite/index.php/
> : 
> : Of course, the forma2.php must be served if its accesed after index.php.
> 
> There are several ways to do this.  The most obvious is with cookies.
> Set up your index.php to initially create a cookie that authorizes a
> user to look in the site.  On the rest of your PHP pages, check that
> this authorization cookie exists.  If not, redirect to index.php.
Thanks for the response.
No, this way don't do it: once the cookie is set up in the client's browser, there is 
no way for me to prevent the client to type the url pointing to another page, and the 
cookie will be valid on that page.
What i'm trying to do is to force the client to travel pages in the
order expected, forbidding him/her to access a page out of sequence,
wich take him to an error message (because, for example, for abscense of
POST data or something).
So i'm stuck.
Thenak you.
> 

-- 

Fernando M. Maresca

Cel: (54) 221 15 502 3938
Cel: 0221-15-502-3938

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



Re: [PHP] [posibleOT] Forcing entering te site thru index.php

2003-12-21 Thread Website Managers.net
Cookies are a possibility but not always functional. Many people have them shut off, 
or services like WebTV do not support them. Two other possibilities are seccions and 
POST variables.

_SESSIONS_
forma2.php
if((!isset($_SESSION["username"]) || (!isset($_SESSION["password"])) {
 header("Location:index.php");
}

__ POST __   
// check to make sure username and password are entered and if so, they must match 
account
if ((!$_POST["username"]) || (!$_POST["password"]) || ($_POST["username" != "myuser") 
|| ($_POST["password"] != "mypassword"])) {
header("Location:index.php");
}

Jim
www.websitemanagers.net

- Original Message - 
From: "Fernando M. Maresca" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 21, 2003 12:57 PM
Subject: [PHP] [posibleOT] Forcing entering te site thru index.php


| Hello everybody.
| Well, i'm trying to avoid access to the site for the middle. Say there
| is a initial page with a form and other pages that depends on this. Is
| there a way to force users access the site thru the initial form page,
| regardless of the url?
| Something like this:
| lynx http://mysite/forma2.php/
| produce the browser to redirect to 
| http://mysite/index.php/
| 
| Of course, the forma2.php must be served if its accesed after index.php.
| Thanks
| 
| -- 
| 
| Fernando M. Maresca
| 
| Cel: (54) 221 15 502 3938
| Cel: 0221-15-502-3938
| 
| -- 
| 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



Re: [PHP] [posibleOT] Forcing entering te site thru index.php

2003-12-21 Thread Fernando M. Maresca
On Sun, Dec 21, 2003 at 01:16:58PM -0600, Website Managers.net wrote:
> Cookies are a possibility but not always functional. Many people have them shut off, 
> or services like WebTV do not support them. Two other possibilities are seccions and 
> POST variables.
> 
> _SESSIONS_
> forma2.php
> if((!isset($_SESSION["username"]) || (!isset($_SESSION["password"])) {
>  header("Location:index.php");
> }
> 
> __ POST __   
> // check to make sure username and password are entered and if so, they must match 
> account
> if ((!$_POST["username"]) || (!$_POST["password"]) || ($_POST["username" != 
> "myuser") || ($_POST["password"] != "mypassword"])) {
> header("Location:index.php");
> }
Thanks, Jim.
Yes, i'm doing something like that: i'm propagating a string thru
$_SESSION that is set up in the first page and is valid until session
expires or init page is reloaded.
But i think that may be another (and better) way to do this, and can't
figure out how.

> 
> Jim
> www.websitemanagers.net

Fernando M. Maresca

Cel: (54) 221 15 502 3938
Cel: 0221-15-502-3938

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



Re: [PHP] [posibleOT] Forcing entering te site thru index.php

2003-12-21 Thread Eugene Lee
On Sun, Dec 21, 2003 at 04:11:36PM -0300, Fernando M. Maresca wrote:
: On Sun, Dec 21, 2003 at 01:03:43PM -0600, Eugene Lee wrote:
: > On Sun, Dec 21, 2003 at 03:57:24PM -0300, Fernando M. Maresca wrote:
: > : 
: > : Well, i'm trying to avoid access to the site for the middle. Say
: > : there is a initial page with a form and other pages that depends
: > : on this. Is there a way to force users access the site thru the
: > : initial form page, regardless of the url?
: > : Something like this:
: > : lynx http://mysite/forma2.php/
: > : produce the browser to redirect to 
: > : http://mysite/index.php/
: > : 
: > : Of course, the forma2.php must be served if its accesed after
: > : index.php.
: > 
: > There are several ways to do this.  The most obvious is with cookies.
: > Set up your index.php to initially create a cookie that authorizes a
: > user to look in the site.  On the rest of your PHP pages, check that
: > this authorization cookie exists.  If not, redirect to index.php.
:
: Thanks for the response.
: No, this way don't do it: once the cookie is set up in the client's
: browser, there is no way for me to prevent the client to type the url
: pointing to another page, and the cookie will be valid on that page.
: What i'm trying to do is to force the client to travel pages in the
: order expected, forbidding him/her to access a page out of sequence,
: wich take him to an error message (because, for example, for abscense
: of POST data or something).
: So i'm stuck.

Not really.  It depends on how you use your cookie.  The cookie could be
some unique ID to some session-based system (whether you use PHP session
functions or not) that keeps a track of where the user is.  So let's say
the user did the right thing, went to index.php, got a cookie, and went
to the next page (let's say forma1.php).  Your session system notes that
the user is currently on forma1.php.  But the same user gets distracted,
does not go through the form normally, leaves for a few hours, and then
tries to return but jump directly to forma2.php.  Your session system
realizes that he's not supposed to be there, and kicks him out to
whereever you want him.

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



Re: [PHP] [posibleOT] Forcing entering te site thru index.php

2003-12-21 Thread Fernando M. Maresca
> Not really.  It depends on how you use your cookie.  The cookie could be
> some unique ID to some session-based system (whether you use PHP session
> functions or not) that keeps a track of where the user is.  So let's say
> the user did the right thing, went to index.php, got a cookie, and went
> to the next page (let's say forma1.php).  Your session system notes that
> the user is currently on forma1.php.  But the same user gets distracted,
> does not go through the form normally, leaves for a few hours, and then
> tries to return but jump directly to forma2.php.  Your session system
> realizes that he's not supposed to be there, and kicks him out to
> whereever you want him.
You are right. I'm using $_SESSION vars to do this, but i don't like it
because forces cookies enable in the client, and today many people
disable cookies.
In the other hand, $_POST vars are not very secure.
i'm looking for a clean solution, and can't figure out how.
So the question in first place would be: how you guys do it?.
Nevermind, this is not big deal. The aproach i've take works, but you
are experienced people and i'm not, and i'm very interested in the way
you're using to solve problems like this ones.
So thanks a lot.


-- 

Fernando M. Maresca

Cel: (54) 221 15 502 3938
Cel: 0221-15-502-3938

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



php-general Digest 21 Dec 2003 19:56:06 -0000 Issue 2486

2003-12-21 Thread php-general-digest-help

php-general Digest 21 Dec 2003 19:56:06 - Issue 2486

Topics (messages 173096 through 173111):

Re: Includes inside includes
173096 by: Website Managers.net

how to setup php on OS X.2
173097 by: wayan mardika
173102 by: friscu.supereva.it

List values
173098 by: Chakravarthy Cuddapah
173099 by: Chakravarthy Cuddapah
173100 by: Chris

CRC values update by readfile function?
173101 by: ermelir
173104 by: ermelir

Extending String Length (255) limit for Levenshtein
173103 by: Gohaku

[posibleOT] Forcing entering te site thru index.php
173105 by: Fernando M. Maresca
173106 by: Eugene Lee
173107 by: Fernando M. Maresca
173108 by: Website Managers.net
173109 by: Fernando M. Maresca
173110 by: Eugene Lee
173111 by: Fernando M. Maresca

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--
--- Begin Message ---
To call the file from anywhere within the document space, try this:

include($_SERVER["DOCUMENT_ROOT"]."/common/setup.inc");

Jim

- Original Message - 
From: "Robbert van Andel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 21, 2003 1:41 AM
Subject: [PHP] Includes inside includes


| I've written a class that is calling an include
| function to include a setup file.  The problem is that
| the setup file is in another directory than the class.
|  I'm including the file using:
| 
| include ("../common/setup.inc");
| 
| Is there a way that i can make the relative path
| inside the class definition specific to the class
| definition, not the page that is including the class
| definition.  I have trouble when I include the class
| definition.  I get an error that it cannot include
| "../common/setup.ini" whenever the class is called
| from a directory above common.
| 
| I hope this makes sense. and thanks for your help.
| 
| Robbert van Andel
|   
| 
| __
| Do you Yahoo!?
| New Yahoo! Photos - easier uploading and sharing.
| http://photos.yahoo.com/
| 
| -- 
| PHP General Mailing List (http://www.php.net/)
| To unsubscribe, visit: http://www.php.net/unsub.php
| 
|
--- End Message ---
--- Begin Message ---
hii there,

my name is wayan mardika, i would like to ask you how to install php on 
mac OS X.2.
iam new in this things. i tried to install the php on my computer.
and then what else do i need?
could you tell me the simple way to do it?

the point is, i want to run php on my own computer.
thank you for your attention.
i am looking forward to hear from you soon.


best regards,

wayan mardika
--- End Message ---
--- Begin Message ---
hii there,

my name is wayan mardika, i would like to ask you how to install php 
on mac OS X.2.
iam new in this things. i tried to install the php on my computer.
and then what else do i need?
could you tell me the simple way to do it?

the point is, i want to run php on my own computer.
thank you for your attention.
i am looking forward to hear from you soon.
Go in this site, http://www.entropy.ch/software/macosx/php/ is simple..
;)
ciao
--- End Message ---
--- Begin Message ---
Can anyone pls tell me how to dynamically list values in a ListMenu. The values do not 
come from any database. They are stored in php variables. Sample code will be highly 
appreciated.
--- End Message ---
--- Begin Message ---
Array. I am interested to know for both the cases. 
 
Thanks !



From: Nathan Taylor [mailto:[EMAIL PROTECTED]
Sent: Sun 12/21/2003 8:00 AM
To: Chakravarthy Cuddapah
Subject: Re: [PHP] List values


Are the values in an array or individually in variables?
 
Nathan

- Original Message - 
From: Chakravarthy Cuddapah   
To: [EMAIL PROTECTED] 
Sent: Sunday, December 21, 2003 7:47 AM
Subject: [PHP] List values

Can anyone pls tell me how to dynamically list values in a ListMenu. The 
values do not come from any database. They are stored in php variables. Sample code 
will be highly appreciated.


--- End Message ---
--- Begin Message ---


$value){
?>
>



   

> -Original Message-
> From: Chakravarthy Cuddapah [mailto:[EMAIL PROTECTED] 
> Sent: 21 December 2003 12:47
> To: [EMAIL PROTECTED]
> Subject: [PHP] List values
> 
> Can anyone pls tell me how to dynamically list values in a 
> ListMenu. The values do not come from any database. They are 
> stored in php variables. Sample code will be highly appreciated.
> 
--- End Message ---
--- Begin Message ---
hello list,

I have a problem with file integrity in my url.
I try to force download file with the following script:

Re: [PHP] [posibleOT] Forcing entering te site thru index.php

2003-12-21 Thread Andreas Magnusson
> > There are several ways to do this.  The most obvious is with cookies.
> > Set up your index.php to initially create a cookie that authorizes a
> > user to look in the site.  On the rest of your PHP pages, check that
> > this authorization cookie exists.  If not, redirect to index.php.
> Thanks for the response.
> No, this way don't do it: once the cookie is set up in the client's
browser, there is no way for me to prevent the client to type the url
pointing to another page, and the cookie will be valid on that page.
> What i'm trying to do is to force the client to travel pages in the
> order expected, forbidding him/her to access a page out of sequence,
> wich take him to an error message (because, for example, for abscense of
> POST data or something).
> So i'm stuck.
> Thenak you.

You can use the Referer header found in $_SERVER['HTTP_REFERER'] to check
from which page the user comes from.

/Andreas

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



[PHP] HTTP headers, IE and downloading

2003-12-21 Thread Andreas Magnusson
I'm writing a script to view/download an email-attachment. If the file
happens to be an MS Word document and the browser IE (only tried with 6.0),
then the download fails.
If I choose to download (Content-Disposition: attachment;
filename="whatever.doc") then only a part of the file (2/3) is saved to
disk. Of course viewing the file doesn't work either. It doesn't seem to
matter what I set the Content-Type to since IE seems to ignore that anyway,
however I've tried application/msword, application/octet-stream and some
others. I've tried all the things said in the comments to the
header-function in the online-docs at php.net.
I know my Content-Length header is correct and the whole procedure works
great with Netscape 7.0 and if the attachment is a zip-file or a jpeg-image
it also works in both IE and Netscape.

Let's just say I'm stumped and I have googled for a solution for a long time
and would be very happy if someone had one...

Thanks in advance
/Andreas

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



Re: [PHP] [posibleOT] Forcing entering te site thru index.php

2003-12-21 Thread Eugene Lee
On Mon, Dec 22, 2003 at 01:09:37AM +0100, Andreas Magnusson wrote:
: 
: You can use the Referer header found in $_SERVER['HTTP_REFERER'] to check
: from which page the user comes from.

Unfortunately, HTTP_REFERER is not guaranteed to exist.  In fact,
several Windoze firewall software actively block this information
from being sent to the web server.

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



[PHP] Magic Quotes

2003-12-21 Thread stiano
I've continued plowing my way thru the 2nd edition
of PHP and MySQL Web Development by Welling and
Thomson. I've made it to chapter 24, where I've just
read that for this chapter's project I "will need to
have switched on magic quotes" or use addslashes()
and stripslashes().

So I checked via phpinfo() and found
magic_quotes_gpc "On", but magic_quotes_runtime and
magic_quotes_sybase both "Off".

Now I'm guessing that magic_quotes_runtime is the
one I need to have on, but is that so? I'm also
guessing that aside from using addslashes() and
stripslashes(), I could prob'ly turn on magic_quotes
in php_ini.

But perhaps because of how I've heard turning
register_globals on via php.ini is a security
hazard, I'm leery of messing with php.ini at all.

Can anyone advise, please?

Thank you.

Steve Tiano 

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



[PHP] Magic Quotes

2003-12-21 Thread stiano
I've continued plowing my way thru the 2nd edition
of PHP and MySQL Web Development by Welling and
Thomson. I've made it to chapter 24, where I've just
read that for this chapter's project I "will need to
have switched on magic quotes" or use addslashes()
and stripslashes().

So I checked via phpinfo() and found
magic_quotes_gpc "On", but magic_quotes_runtime and
magic_quotes_sybase both "Off".

Now I'm guessing that magic_quotes_runtime is the
one I need to have on, but is that so? I'm also
guessing that aside from using addslashes() and
stripslashes(), I could prob'ly turn on magic_quotes
in php_ini.

But perhaps because of how I've heard turning
register_globals on via php.ini is a security
hazard, I'm leery of messing with php.ini at all.

Can anyone advise, please?

Thank you.

Steve Tiano

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



[PHP] Magic Quotes

2003-12-21 Thread stiano
Hi. This is the qmail-send program at pb1.pair.com.
I'm afraid I wasn't able to deliver your message to
the following addresses.
This is a permanent error; I've given up. Sorry it
didn't work out.

<[EMAIL PROTECTED]>:
This message is looping: it already has my
Delivered-To line. (#5.4.6)

--- Below this line is a copy of the message.

Return-Path: <[EMAIL PROTECTED]>
Received: (qmail 36829 invoked from network); 22 Dec
2003 01:11:34 -
Received: from unknown (HELO dswu83.btconnect.com)
(193.113.154.14)
  by pb1.pair.com with SMTP; 22 Dec 2003 01:11:34 -
Received: from gateway.btopenworld.com (actually
host 185.136.40.217.in-addr.arpa) by dswu83 with
SMTP-CUST (XT-PP) with ESMTP; Mon, 22 Dec 2003
01:14:14 +
Received: from gateway (127.0.0.1) by
gateway.btopenworld.com (Worldmail 1.3.167) for
[EMAIL PROTECTED]; 22 Dec 2003 01:20:25 +
Delivery-Date: Mon, 22 Dec 2003 01:03:13 +
Received: from pb1.pair.com (actually host
4.131.92.216.in-addr.arpa) by dswu27 with SMTP
(XT-PP); Mon, 22 Dec 2003 01:03:04 +
Received: (qmail 19780 invoked by uid 1010); 22 Dec
2003 01:04:24 -
Mailing-List: contact
[EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: <[EMAIL PROTECTED]>
list-unsubscribe:
<[EMAIL PROTECTED]>
list-post: <[EMAIL PROTECTED]>
Delivered-To: mailing list [EMAIL PROTECTED]
Received: (qmail 19767 invoked by uid 1010); 22 Dec
2003 01:04:24 -
Delivered-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
Date: Sun, 21 Dec 2003 20:04:15 -0500
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Message-id: <[EMAIL PROTECTED]>
MIME-version: 1.0
X-Mailer: iPlanet Messenger Express 5.2 HotFix 1.16
(built May 14 2003)
Content-type: text/plain; charset=us-ascii
Content-language: en
Content-transfer-encoding: 7BIT
Content-disposition: inline
X-Accept-Language: en
Priority: normal
Subject: [PHP] Magic Quotes

I've continued plowing my way thru the 2nd edition
of PHP and MySQL Web Development by Welling and
Thomson. I've made it to chapter 24, where I've just
read that for this chapter's project I "will need to
have switched on magic quotes" or use addslashes()
and stripslashes().

So I checked via phpinfo() and found
magic_quotes_gpc "On", but magic_quotes_runtime and
magic_quotes_sybase both "Off".

Now I'm guessing that magic_quotes_runtime is the
one I need to have on, but is that so? I'm also
guessing that aside from using addslashes() and
stripslashes(), I could prob'ly turn on magic_quotes
in php_ini.

But perhaps because of how I've heard turning
register_globals on via php.ini is a security
hazard, I'm leery of messing with php.ini at all.

Can anyone advise, please?

Thank you.

Steve Tiano

-- 
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



[PHP] Magic Quotes

2003-12-21 Thread [EMAIL PROTECTED]
I've continued plowing my way thru the 2nd edition
of PHP and MySQL Web Development by Welling and
Thomson. I've made it to chapter 24, where I've just
read that for this chapter's project I "will need to
have switched on magic quotes" or use addslashes()
and stripslashes().

So I checked via phpinfo() and found
magic_quotes_gpc "On", but magic_quotes_runtime and
magic_quotes_sybase both "Off".

Now I'm guessing that magic_quotes_runtime is the
one I need to have on, but is that so? I'm also
guessing that aside from using addslashes() and
stripslashes(), I could prob'ly turn on magic_quotes
in php_ini.

But perhaps because of how I've heard turning
register_globals on via php.ini is a security
hazard, I'm leery of messing with php.ini at all.

Can anyone advise, please?

Thank you.

Steve Tiano


mail2web - Check your email from the web at
http://mail2web.com/ .

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



[PHP] Re: Magic Quotes

2003-12-21 Thread Andreas Magnusson
> Now I'm guessing that magic_quotes_runtime is the
> one I need to have on, but is that so? I'm also
> guessing that aside from using addslashes() and
> stripslashes(), I could prob'ly turn on magic_quotes
> in php_ini.
>
> But perhaps because of how I've heard turning
> register_globals on via php.ini is a security
> hazard, I'm leery of messing with php.ini at all.

Magic Quotes is not a security hazard (quite the opposite) so turning it on
shouldn't be dangerous.
I don't suppose the book tells you why you should always use magic-quotes or
addslashes when
dealing with databases? If you do not use form-data in a database-query you
generally won't need
magic-quotes or addslashes(). I guess that's the reason some of those
magic_quotes_xyz are not
enabled in the php.ini.

It's easy enough to check whether you have the magic quotes you need. Write
a simple form-page
that simply displays what was posted, then post something like: "I'll be
back"
If the page displays: \"I\'ll be back\" then you're safe and don't need to
use addslashes().

/Andreas

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



Re: [PHP] Magic Quotes

2003-12-21 Thread John W. Holmes
[EMAIL PROTECTED] wrote:

I've continued plowing my way thru the 2nd edition
of PHP and MySQL Web Development by Welling and
Thomson. I've made it to chapter 24, where I've just
read that for this chapter's project I "will need to
have switched on magic quotes" or use addslashes()
and stripslashes().
So I checked via phpinfo() and found
magic_quotes_gpc "On", but magic_quotes_runtime and
magic_quotes_sybase both "Off".
Now I'm guessing that magic_quotes_runtime is the
one I need to have on, but is that so? I'm also
guessing that aside from using addslashes() and
stripslashes(), I could prob'ly turn on magic_quotes
in php_ini.
The book is talking about magic_quotes_gpc, which you say is already on. 
 The "runtime" version applies to data coming _out_ of the database 
(which is usually kept off) and "sybase" refers to escaping single 
quotes with another single quote (instead of the normal backslash). If 
you're using MySQL, you don't need the "sybase" directive on.



--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com



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


[PHP] newbie question about header()

2003-12-21 Thread Scott Taylor


I am simply trying to redirect users from one page to another.  Yet when 
I use this code I get the following error:

*Warning*: Cannot add header information - headers already sent by 
(output started at 
/usr/local/psa/home/vhosts/miningstocks.com/httpdocs/etc/php/login/admin/test.php:8) 
in 
*/usr/local/psa/home/vhosts/miningstocks.com/httpdocs/etc/php/login/admin/test.php* 
on line *9*
*
*






http://www.slashdot.org/'); /* Redirect browser */
/* Make sure that code below does not get executed when we redirect. */
exit;
?>




I know the workaround with the meta tag (http://www.slashdot.org/";>, but I just don't understand 
what I am doing wrong here.  I'm sure someone here knows

Thank you in advance,

Scott Taylor
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] newbie question about header()

2003-12-21 Thread Website Managers.net
Unless you're using an 'if' statement, the header redirect must be the first line of 
the page, above any HTML markup.

Jim
www.websitemanagers.net

- Original Message - 
From: "Scott Taylor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 21, 2003 8:04 PM
Subject: [PHP] newbie question about header()


| 
| 
| I am simply trying to redirect users from one page to another.  Yet when 
| I use this code I get the following error:
| 
| *Warning*: Cannot add header information - headers already sent by 
| (output started at 
| /usr/local/psa/home/vhosts/miningstocks.com/httpdocs/etc/php/login/admin/test.php:8) 
| in 
| */usr/local/psa/home/vhosts/miningstocks.com/httpdocs/etc/php/login/admin/test.php* 
| on line *9*
| *
| *
| 
| 
| 
| 
| 
| 
| 
| http://www.slashdot.org/'); /* Redirect browser */
| 
| /* Make sure that code below does not get executed when we redirect. */
| exit;
| ?>
| 
| 
| 
| 
| 
| 
| I know the workaround with the meta tag (http://www.slashdot.org/";>, but I just don't understand 
| what I am doing wrong here.  I'm sure someone here knows
| 
| Thank you in advance,
| 
| Scott Taylor
| [EMAIL PROTECTED]
| 
| -- 
| 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



Re: [PHP] newbie question about header()

2003-12-21 Thread John W. Holmes
Scott Taylor wrote:



I am simply trying to redirect users from one page to another.  Yet when 
I use this code I get the following error:

*Warning*: Cannot add header information - headers already sent by 
(output started at 
/usr/local/psa/home/vhosts/miningstocks.com/httpdocs/etc/php/login/admin/test.php:8) 
in 
*/usr/local/psa/home/vhosts/miningstocks.com/httpdocs/etc/php/login/admin/test.php* 
on line *9*
*
*






http://www.slashdot.org/'); /* Redirect browser */
/* Make sure that code below does not get executed when we redirect. */
exit;
?>
You can't have any output before trying to use header(). , etc, 
are considered output. So, the very first line in your file must be 


--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com

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


[PHP] Close on exit

2003-12-21 Thread David Leon
How can I stop php.exe closing after it performs a task? I am using Windows
XP Pro.

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



[PHP] Fetch Information Via a link

2003-12-21 Thread Eric Holmstrom
Hi there,

I have this.
Table Name = events
Fields = eventname, date, info. Example

---
 EVENTS
---
eventname |   date|  info
--
event1   |   0202  | info here
--
event2  |   0303  | info here 2

The problem is that the field "info" has alot of text in it. When I print
this out in an array it makes a huge page due to each event having alot of
information. So im trying to make it so it will display the results like
this.

event10202infomation
event20303infomation

I want the word "infomation" to be hyperlinked, so if you click on it, it
will display the information in the "info" field. The problem is I don't
know how to make a hyperlink that grabs the correct infomation for each
event.

Any help at all will be very grateful for.

Thankyou

Eric Holmstrom

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



Re: [PHP] newbie question about header()

2003-12-21 Thread Justin French
On Monday, December 22, 2003, at 01:13  PM, Website Managers.net wrote:

Unless you're using an 'if' statement, the header redirect must be the 
first line of the page, above any HTML markup.
That's not entirely accurate.

---Quoted from http://php.net/header ---
Remember that header() must be called before any actual output is sent, 
either by normal HTML tags, blank lines in a file, or from PHP. It is a 
very common error to read code with include(), or require(), functions, 
or another file access function, and have spaces or empty lines that 
are output before header() is called. The same problem exists when 
using a single PHP/HTML file.


header() doesn't need to be 'the first line of the page', but it does 
need to be placed above/before any output gets sent to the browser.

bad:


bad:

good:

if there's any code following the redirect (which you don't want to 
execute), I'd also strongly recommend having an exit; after the 
header():


Justin French

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


[PHP] Why won't this form post session variables?

2003-12-21 Thread Dave G
PHP Gurus,
I'm really stuck here. I've written the following code, and it
will never execute the if statement. I keep getting the form displayed,
and when I fill the form and hit the submit button, the
HTTP_SESSION_VARS array does not seem to take any of the values set out
in the form.
Is there an error in this code? I've checked and double checked,
but I can't see why the variables wouldn't post. Any advice much
appreciated.

session_start();
if(isset($HTTP_SESSION_VARS['episodeTitle']) &&
isset($HTTP_SESSION_VARS['episodePP']))
{
$episodePP=addslashes($HTTP_SESSION_VARS['episodePP']);
$episodeTitle=addslashes($HTTP_SESSION_VARS['episodeTitle']);
db_connect();
$insertPPQuery = "INSERT INTO scripts (title, plotpoints) VALUES (" .
$episodeTitle . ", " . $episodePP . ")";
$insertPPResult = mysql_query($insertPPQuery);
unset ($HTTP_SESSION_VARS['$episodeTitle']);
unset ($HTTP_SESSION_VARS['$episodePP']);
echo 'Your episode, "' . $episodeTitle . '", has been saved. Would you
like to add another episode?';
}
else
{
echo 'Enter in a new episode in plot point form.';
echo '';
echo 'Title:';
echo '';
echo 'Text:';
echo '';
echo '';
echo '';
}

-- 
Yoroshiku!
Dave G
[EMAIL PROTECTED]

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



RE: [PHP] Why won't this form post session variables?

2003-12-21 Thread Martin Towell
I haven't used sessions before, but it doesn't look like the variables are
being put into the session.

If they're coming from a form, then they would appear in the $_POST or
$HTTP_POST_VARS variables, not the $HTTP_SESSION_VARS variable.

HTH
Martin

> -Original Message-
> From: Dave G [mailto:[EMAIL PROTECTED]
> Sent: Monday, 22 December 2003 4:34 PM
> To: 'PHP General'
> Subject: [PHP] Why won't this form post session variables?
> 
> 
> PHP Gurus,
>   I'm really stuck here. I've written the following code, and it
> will never execute the if statement. I keep getting the form 
> displayed,
> and when I fill the form and hit the submit button, the
> HTTP_SESSION_VARS array does not seem to take any of the 
> values set out
> in the form.
>   Is there an error in this code? I've checked and double checked,
> but I can't see why the variables wouldn't post. Any advice much
> appreciated.
> 
> session_start();
> if(isset($HTTP_SESSION_VARS['episodeTitle']) &&
> isset($HTTP_SESSION_VARS['episodePP']))
> {
> $episodePP=addslashes($HTTP_SESSION_VARS['episodePP']);
> $episodeTitle=addslashes($HTTP_SESSION_VARS['episodeTitle']);
> db_connect();
> $insertPPQuery = "INSERT INTO scripts (title, plotpoints) VALUES (" .
> $episodeTitle . ", " . $episodePP . ")";
> $insertPPResult = mysql_query($insertPPQuery);
> unset ($HTTP_SESSION_VARS['$episodeTitle']);
> unset ($HTTP_SESSION_VARS['$episodePP']);
> echo 'Your episode, "' . $episodeTitle . '", has been saved. Would you
> like to add another episode?';
> }
> else
> {
> echo 'Enter in a new episode in plot point form.';
> echo '';
> echo 'Title:';
> echo '';
> echo 'Text:';
> echo '';
> echo '';
> echo '';
> }
> 
> -- 
> Yoroshiku!
> Dave G
> [EMAIL PROTECTED]
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> __ Information from NOD32 1.582 (20031218) __
> 
> This message was checked by NOD32 for Exchange e-mail monitor.
> http://www.nod32.com
> 
> 
> 
> 

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



RE: [PHP] Why won't this form post session variables? [SOLVED]

2003-12-21 Thread Dave G
Martin,

> If they're coming from a form, then they would appear in the $_POST or
> $HTTP_POST_VARS variables, not the $HTTP_SESSION_VARS variable.

Aha! Yes, that was it! Thank you for helping get my script to
work and also giving me that much more insight into session and post
variables. And so quickly, too!
Much appreciated!

-- 
Yoroshiku!
Dave G
[EMAIL PROTECTED]

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



[PHP] Re: Fetch Information Via a link

2003-12-21 Thread Jasper Bryant-Greene
Hi Eric

What you need to do is make another PHP page, maybe info.php, which will 
fetch the info field from the DB and display it.

So for example, assuming the eventname field is unique, you could make 
the info like something like:

information

And then make info.php fetch the info field from the DB, for example if 
you were using MySQL:

// page header HTML here

$row = mysql_fetch_assoc(mysql_query("SELECT info FROM table WHERE 
eventname='{$_GET['eventname']}'"));
$info = $row['info'];
print(nl2br($info));
?>
// page footer HTML here

Obviously you will need to change that to suit your site, and you may 
want to add some security to the $_GET variable being passed to the 
MySQL server to prevent attacks. Other than that, hope this helps.

Regards

Jasper Bryant-Greene
Cabbage Promotions
http://fatalnetwork.com/
[EMAIL PROTECTED]
Eric Holmstrom wrote:

Hi there,

I have this.
Table Name = events
Fields = eventname, date, info. Example
---
 EVENTS
---
eventname |   date|  info
--
event1   |   0202  | info here
--
event2  |   0303  | info here 2
The problem is that the field "info" has alot of text in it. When I print
this out in an array it makes a huge page due to each event having alot of
information. So im trying to make it so it will display the results like
this.
event10202infomation
event20303infomation
I want the word "infomation" to be hyperlinked, so if you click on it, it
will display the information in the "info" field. The problem is I don't
know how to make a hyperlink that grabs the correct infomation for each
event.
Any help at all will be very grateful for.

Thankyou

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


[PHP] Passing or not passing SID in links etc

2003-12-21 Thread Gerard Samuel
Im currently modifying templates to include the SID constant, for the few set 
of users who are rejecting session cookies.
If I have an url like ->
http://www.foo.com/";>Go Home

For users who are rejecting cookies the url looks like ->
http://www.foo.com/?PHPSISSID=1234";>Go Home

For users who are accepting cookies, the url looks like ->
http://www.foo.com/?";>Go Home

My question is, are there any known problems with just having '?' at the end 
of urls/links?
Yes, I can do an if/else, but for simple things like this in the templates, 
but it makes it look more like code than html, and I rather stay away from 
it.  The simpler the template the better.

Thanks for your advise.

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