Re: [PHP] '--enable-track-vars' & php.ini file on Mac OS X

2002-06-10 Thread Jason Wong

On Tuesday 11 June 2002 15:02, Mario A. Salinas wrote:

> Let me begin with the direct question to save you time.  If you want
> more info read more about the issue by reading 'The Problem:' below.

Let me begin by saying:

"Please do not reply to an existing post when trying to start a new topic"


> Is there any way to '--enable-track-vars' in my Macintosh laptop
> running Mac OS-X 10.1.5 and a version 4.2.1 installation of PHP

According to the manual:

"... as of PHP 4.0.3, track_vars is always turned on"

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
This is a test of the Emergency Broadcast System.  If this had been an
actual emergency, do you really think we'd stick around to tell you?
*/


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




[PHP] '--enable-track-vars' & php.ini file on Mac OS X

2002-06-10 Thread Mario A. Salinas

Hi Folks,

Let me begin with the direct question to save you time.  If you want 
more info read more about the issue by reading 'The Problem:' below.



The question:

Is there any way to '--enable-track-vars' in my Macintosh laptop 
running Mac OS-X 10.1.5 and a version 4.2.1 installation of PHP 
without creating a php.ini file?  Is there a command I can run to do 
this?  If so...  What directory do I need to be in when I do this?


Configuration Info:

Mac OS X
PHP Version 4.2.1



The problem:

I have a PHP application which works fine on a Cobalt server that is 
running PHP 4.0.2. My problem is that I'm trying to run this 
application (a set of PHP scripts) on my Macintosh laptop which is 
running Mac OS X 10.1.5.  I have tested the PHP installation using 
the phpinfo() function on my laptop and it works fine.  But my 
scripts require the tracking of variables.

By running the phpinfo() function on both my laptop (PHP v. 4.2.1 
this does not run my scripts) and the cobalt server (PHP v. 4.0.2 
this does run my scripts) I noticed that there was some difference in 
the configuration.  I noticed that my laptop configuration does not 
have '--enable-track-vars' listed under the Configure Command 
information in the PHP configuration page that results from running 
the phpinfo() function but the Cobalt PHP installation does have that 
listed.

The installation of PHP I used was obtained from:

http://www.entropy.ch/software/macosx/php/

This page says that this installation package does not include a 
php.ini file and it goes on to say that, if I want this file I should 
just create it.  But it does not say what should go into this php.ini 
file.  I suppose I could just copy the php.ini file from the Cobalt 
server running PHP v. 4.0.2 but I think that won't work.

Any ideas?


Thanks in advance,


Mario Salinas



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




Re: [PHP] matrix functions

2002-06-10 Thread Jason Wong

On Tuesday 11 June 2002 11:32, johannes reichardt wrote:
> hi list,
>
> i have a question regarding a class for matrix modifications so i dont
> have to re-invent the wheel ;)
>
> i would like to do things like this:
>
> matrix with 5*5 colums/rows
>
> x x x x x
> 0 0 0 0 0
> x x x x x
> x x x x x
> x x x x x
>
>
> x x x x x
> x x x x x
> 0 0 0 0 0
> x x x x x
> x x x x x
>
>
> maybe that is incredebly stupid and simple but
> my brain doesnt tell me anything right now -
> how can i transform colums/rows quickly and efficient?

If all you want to do is move one row of a matrix to another then stuff your 
matrix into an array and use array_slice(), array_splice().

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
Absurdity, n.:
A statement or belief manifestly inconsistent with one's own opinion.
-- Ambrose Bierce, "The Devil's Dictionary"
*/


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




Re: [PHP] Re: capturing bouncers.

2002-06-10 Thread Analysis & Solutions

Hi Manuel:

On Tue, Jun 11, 2002 at 02:07:38AM -0300, Manuel Lemos wrote:
> On 06/10/2002 02:08 PM, Subhendu Mohapatra wrote:
> 
> The bounce address can't be set with headers.

Please elaborate.  I've successfully used the From: header to handle 
returned mail.

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

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




[PHP] Re: capturing bouncers.

2002-06-10 Thread Manuel Lemos

Hello,

On 06/10/2002 02:08 PM, Subhendu Mohapatra wrote:
> I am sending mails from my site by PHP code (  mail($em, $sub, $temp,
> $headers);  )
>  and wants to capture bouncers in one email address.( My intention is to
> remove those bounced address ).  I have set the from address like this
> $from="From:[EMAIL PROTECTED]\n;
> $headers = $from."Content-Type: text/html; charset=iso-8859-1\n";
> 
> It is sending mails with from address [EMAIL PROTECTED] address but
> bouncers are not returning to this address.

The bounce address can't be set with headers.


> Is there any better way of doing this ?

Yes, you may want to try this class that emulates what you want by 
specifying the Return-Path header. It works whether you use sendmail on 
Unix systems or SMTP on Windows, but you have to use the appropriate 
transport sub-class because the default transport uses mail() and it 
will not work that way:

http://www.phpclasses.org/mimemessage

Beware that delayed delivery warnings also return to the bounce address. 
There are tricks to avoid that too.


-- 

Regards,
Manuel Lemos


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




RE: [PHP] Adding zeros in front

2002-06-10 Thread César L . Aracena

str_pad worked!!! Thank you all...

César Aracena
IS / MCSE+I
Neuquén, NQN
(0299) 156-356688
(0299) 446-6621

> -Mensaje original-
> De: Clay Loveless [mailto:[EMAIL PROTECTED]]
> Enviado el: Martes, 11 de Junio de 2002 12:35 a.m.
> Para: PHP-General
> Asunto: Re: [PHP] Adding zeros in front
> 
> Try this:
> 
> echo str_pad($row[main_group],4,"0",STR_PAD_LEFT)."/".$row[sub_group];
> 
> -Clay
> 
> > From: César L. Aracena <[EMAIL PROTECTED]>
> > Date: Tue, 11 Jun 2002 00:11:30 -0300
> > To: "PHP General List" <[EMAIL PROTECTED]>
> > Subject: [PHP] Adding zeros in front
> >
> > Hi all,
> >
> > Does anyone remembers how to add zeros in front of a result number
given
> > by a query to MySQL and returned as an array, so it always shows a 4
> > digit number? I have:
> >
> > [snip]
> > echo $row[main_group]."/".$row[sub_group];
> > [snip]
> >
> > but throws out:
> >
> > 1/0
> > 2/0
> > 3/0
> >
> > instead of:
> >
> > 0001/0
> > 0002/0
> > 0003/0
> >
> > which it should. Thanks in advance,
> >
> > Cesar Aracena 
> > CE / MCSE+I
> > Neuquen, Argentina
> > +54.299.6356688
> > +54.299.4466621
> >
> >
> >


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




[PHP] HELP on SUID

2002-06-10 Thread Yamin Prabudy

I used a script from PEAR to adduser/deluser/change password

the problem is the password file ini mode 600
and I run the script from web
I had turn on the
safe_mode = on
safe_mode_gid = on
the running script had a same UID GID with the password file

when I try it There a alot of error...
from reading the password file and I can't change the password
cause it said no permission to do that

can anyone help me with this suid stuf

Thanks in Advance
Yamin Prabudy


---
PRONET INTERNET SERVICE PROVIDER
http://www.pro.net.id
---


---
PRONET INTERNET SERVICE PROVIDER
http://www.pro.net.id
---


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




RE: [PHP] Adding zeros in front

2002-06-10 Thread John Holmes

You can declare the column ZEROFILL when you create the table, or use
ALTER to add it now. 

Quote: Another extension is supported by MySQL for optionally specifying
the display width of an integer value in parentheses following the base
keyword for the type (for example, INT(4)). This optional width
specification is used to left-pad the display of values whose width is
less than the width specified for the column, but does not constrain the
range of values that can be stored in the column, nor the number of
digits that will be displayed for values whose width exceeds that
specified for the column. When used in conjunction with the optional
extension attribute ZEROFILL, the default padding of spaces is replaced
with zeroes. For example, for a column declared as INT(5) ZEROFILL, a
value of 4 is retrieved as 4. Note that if you store larger values
than the display width in an integer column, you may experience problems
when MySQL generates temporary tables for some complicated joins, as in
these cases MySQL trusts that the data did fit into the original column
width.

---John Holmes...

> -Original Message-
> From: Justin French [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 10, 2002 11:20 PM
> To: César L. Aracena; PHP General List
> Subject: Re: [PHP] Adding zeros in front
> 
> I think certain types of INT fields (not sure which ones) zero fill
the
> number to the field length... you should read up on the col types, and
> maybe
> change it over.  Maybe do a search on "zerofill" / "zero fill".
> 
> Anyhoo, to solve your immediate problem, you could check the length of
> $row[main_group], and add some zeros to the start of it, until it's
length
> =
> your desired length.
> 
>  // UNTESTED
> $row[main_group] = "45";
> 
> $desiredLength = 4;
> 
> while(strlen($row[main_group] < $desiredLength))
> {
> $row[main_group] = "0".$row[main_group];
> }
> ?>
> 
> I'm sure there are other ways, and it'd be best if you wrapped it in a
> function :)
> 
> Justin French
> 
> 
> 
> on 11/06/02 1:11 PM, César L. Aracena ([EMAIL PROTECTED]) wrote:
> 
> > Hi all,
> >
> > Does anyone remembers how to add zeros in front of a result number
given
> > by a query to MySQL and returned as an array, so it always shows a 4
> > digit number? I have:
> >
> > [snip]
> > echo $row[main_group]."/".$row[sub_group];
> > [snip]
> >
> > but throws out:
> >
> > 1/0
> > 2/0
> > 3/0
> >
> > instead of:
> >
> > 0001/0
> > 0002/0
> > 0003/0
> >
> > which it should. Thanks in advance,
> >
> > Cesar Aracena 
> > CE / MCSE+I
> > Neuquen, Argentina
> > +54.299.6356688
> > +54.299.4466621
> >
> >
> >
> 
> 
> --
> 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] Adding zeros in front

2002-06-10 Thread Clay Loveless

Try this:

echo str_pad($row[main_group],4,"0",STR_PAD_LEFT)."/".$row[sub_group];

-Clay

> From: César L. Aracena <[EMAIL PROTECTED]>
> Date: Tue, 11 Jun 2002 00:11:30 -0300
> To: "PHP General List" <[EMAIL PROTECTED]>
> Subject: [PHP] Adding zeros in front
> 
> Hi all,
> 
> Does anyone remembers how to add zeros in front of a result number given
> by a query to MySQL and returned as an array, so it always shows a 4
> digit number? I have:
> 
> [snip]
> echo $row[main_group]."/".$row[sub_group];
> [snip]
> 
> but throws out:
> 
> 1/0
> 2/0
> 3/0
> 
> instead of:
> 
> 0001/0
> 0002/0
> 0003/0
> 
> which it should. Thanks in advance,
> 
> Cesar Aracena 
> CE / MCSE+I
> Neuquen, Argentina
> +54.299.6356688
> +54.299.4466621
> 
> 
> 


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




RE: [PHP] Adding zeros in front

2002-06-10 Thread Martin Towell

$num2 = sprintf("%4d", $num);

the "d" might have to be something else, can't remember

-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 1:20 PM
To: César L. Aracena; PHP General List
Subject: Re: [PHP] Adding zeros in front


I think certain types of INT fields (not sure which ones) zero fill the
number to the field length... you should read up on the col types, and maybe
change it over.  Maybe do a search on "zerofill" / "zero fill".

Anyhoo, to solve your immediate problem, you could check the length of
$row[main_group], and add some zeros to the start of it, until it's length =
your desired length.

 

I'm sure there are other ways, and it'd be best if you wrapped it in a
function :)

Justin French



on 11/06/02 1:11 PM, César L. Aracena ([EMAIL PROTECTED]) wrote:

> Hi all,
> 
> Does anyone remembers how to add zeros in front of a result number given
> by a query to MySQL and returned as an array, so it always shows a 4
> digit number? I have:
> 
> [snip]
> echo $row[main_group]."/".$row[sub_group];
> [snip]
> 
> but throws out:
> 
> 1/0
> 2/0
> 3/0
> 
> instead of:
> 
> 0001/0
> 0002/0
> 0003/0
> 
> which it should. Thanks in advance,
> 
> Cesar Aracena 
> CE / MCSE+I
> Neuquen, Argentina
> +54.299.6356688
> +54.299.4466621
> 
> 
> 


-- 
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] Adding zeros in front

2002-06-10 Thread Justin French

I think certain types of INT fields (not sure which ones) zero fill the
number to the field length... you should read up on the col types, and maybe
change it over.  Maybe do a search on "zerofill" / "zero fill".

Anyhoo, to solve your immediate problem, you could check the length of
$row[main_group], and add some zeros to the start of it, until it's length =
your desired length.

 

I'm sure there are other ways, and it'd be best if you wrapped it in a
function :)

Justin French



on 11/06/02 1:11 PM, César L. Aracena ([EMAIL PROTECTED]) wrote:

> Hi all,
> 
> Does anyone remembers how to add zeros in front of a result number given
> by a query to MySQL and returned as an array, so it always shows a 4
> digit number? I have:
> 
> [snip]
> echo $row[main_group]."/".$row[sub_group];
> [snip]
> 
> but throws out:
> 
> 1/0
> 2/0
> 3/0
> 
> instead of:
> 
> 0001/0
> 0002/0
> 0003/0
> 
> which it should. Thanks in advance,
> 
> Cesar Aracena 
> CE / MCSE+I
> Neuquen, Argentina
> +54.299.6356688
> +54.299.4466621
> 
> 
> 


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




[PHP] Adding zeros in front

2002-06-10 Thread César L . Aracena

Hi all,

Does anyone remembers how to add zeros in front of a result number given
by a query to MySQL and returned as an array, so it always shows a 4
digit number? I have:

[snip]
echo $row[main_group]."/".$row[sub_group];
[snip]

but throws out:

1/0
2/0
3/0

instead of:

0001/0
0002/0
0003/0

which it should. Thanks in advance,

Cesar Aracena  
CE / MCSE+I
Neuquen, Argentina
+54.299.6356688
+54.299.4466621





Re: [PHP] strtok()

2002-06-10 Thread Justin French

I *think* it's because you don't have an { at the beginning of the while()
loop

";
while ($token!="")
{
$token=strtok(" ");
echo $token."";
}
?>

Or, use the example in the manual as a guide:

";
$tok = strtok("");
}
?>


Justin




on 11/06/02 1:58 PM, Anthony Ritter ([EMAIL PROTECTED])
wrote:

> Thank you.
> The output is
> 
> t
> o
> n
> y
> 
> One thing...the server seem to keep running after the output to the browser
> like it's going through an indefinate loop.
> 
> Any throughts?
> TR
> 
> 
> 
> 


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




Re: [PHP] strtok()

2002-06-10 Thread Anthony Ritter

Thank you.
The output is

t
o
n
y

One thing...the server seem to keep running after the output to the browser
like it's going through an indefinate loop.

Any throughts?
TR





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




Re: [PHP] strtok()

2002-06-10 Thread Justin French

you're trying to split it on a space (" ")... there are no spaces in "tony".

"my name is tony" would prolly output

my
name
is
tony

You could try splitting on "" (nothing), or use a different function which
places a  after each character.


Justin






on 11/06/02 1:34 PM, Anthony Ritter ([EMAIL PROTECTED])
wrote:

> Trying to test the function strtok()
> 
> I thought that the following script would output:
> t
> o
> n
> y
> 
> but I get
> 
> tony
> 
> Thanking all in advance.
> Tony Ritter
> .
> 
>  $name="tony";
> $token=strtok($name, " ");
> echo $token."";
> while ($token!="")
> 
> 
> $token=strtok(" ");
> echo $token."";
> }
> ?>
> 
> 
> 
> 


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




[PHP] strtok()

2002-06-10 Thread Anthony Ritter

Trying to test the function strtok()

I thought that the following script would output:
t
o
n
y

but I get

tony

Thanking all in advance.
Tony Ritter
.

";
 while ($token!="")


   $token=strtok(" ");
   echo $token."";
  }
?>





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




RE: [PHP] Re: Arrays

2002-06-10 Thread John Holmes

$echo .= "". $name ."";

Notice the . in .=

Equivalent of saying $echo = $echo . "". $name
."";

---John Holmes...

> -Original Message-
> From: Dan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 10, 2002 9:36 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: Arrays
> 
> I have figured out how to do it thanks for you guys help..
> 
> Just one thing...
> 
>  $contact = array( 'moreinfo.php' => 'More Info'
> , 'contact.php' => 'Contact Us'
> , 'apage.php' => 'A Page'
> );
> foreach ($contact as $link => $name)
> {
>  echo "". $name ."";
> }
> ?>
> 
> What I need to do now is in the echo string is make use something
like:
> 
>  $echo = "". $name ."";
> 
> I have tryed doing it this way but it will only desplay one array when
I
> call $echo down the page.
> 
> What can I do to desplay all of them?
> 
> 
> "Dan" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I'm trying to get my head around arrays and how to munipulate them.
> >
> > what I need to do is add html around the arrays eg.
> > ".$name.";
> >
> > I have my head around that but I the number of lines the I need to
> create
> is
> > going to change so I need the script to repeat untill all the arrays
are
> > used.
> >
> > --
> > -
> > Daniel Broome, siliconBLUE Ltd, Web Author,
> > http://siliconblue.com
> > Mob: 64-21-178-5120
> >
> >
> 
> 
> 
> --
> 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] Re: Arrays

2002-06-10 Thread Martin Towell

use ".=" instead of "="

 $echo .= "". $name ."";

(remember to initialise $echo = "" somewhere first just in case is contains
something from elsewhere)

-Original Message-
From: Dan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 11:36 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Arrays


I have figured out how to do it thanks for you guys help..

Just one thing...

 'More Info'
, 'contact.php' => 'Contact Us'
, 'apage.php' => 'A Page'
);
foreach ($contact as $link => $name)
{
 echo "". $name ."";
}
?>

What I need to do now is in the echo string is make use something like:

 $echo = "". $name ."";

I have tryed doing it this way but it will only desplay one array when I
call $echo down the page.

What can I do to desplay all of them?


"Dan" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm trying to get my head around arrays and how to munipulate them.
>
> what I need to do is add html around the arrays eg.
> ".$name.";
>
> I have my head around that but I the number of lines the I need to create
is
> going to change so I need the script to repeat untill all the arrays are
> used.
>
> --
> -
> Daniel Broome, siliconBLUE Ltd, Web Author,
> http://siliconblue.com
> Mob: 64-21-178-5120
>
>



-- 
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] Re: Arrays

2002-06-10 Thread Dan

I have figured out how to do it thanks for you guys help..

Just one thing...

 'More Info'
, 'contact.php' => 'Contact Us'
, 'apage.php' => 'A Page'
);
foreach ($contact as $link => $name)
{
 echo "". $name ."";
}
?>

What I need to do now is in the echo string is make use something like:

 $echo = "". $name ."";

I have tryed doing it this way but it will only desplay one array when I
call $echo down the page.

What can I do to desplay all of them?


"Dan" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm trying to get my head around arrays and how to munipulate them.
>
> what I need to do is add html around the arrays eg.
> ".$name.";
>
> I have my head around that but I the number of lines the I need to create
is
> going to change so I need the script to repeat untill all the arrays are
> used.
>
> --
> -
> Daniel Broome, siliconBLUE Ltd, Web Author,
> http://siliconblue.com
> Mob: 64-21-178-5120
>
>



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




[PHP] Zend Sos Evaluation

2002-06-10 Thread listgetter

I've got a question to ask about Zend Accelerator that should go in an 
evaluation support ticket, but I can't seem to create one. 

All of the docs say "Go to your Pickup Depot and click 'New Ticket'". It 
even says that *in* the pickup depot, but the words "new ticket" aren't 
linkable, and nowhere else in the pickup depot says "new
ticket". 

I'll go ahead and ask the questions I was going to make support tickets
out of as well: so if that's sufficiently off topic here then you can
skip  the rest. sorry :) 

A> I was going to mention that the Zend Accellerator v2.0.0 (the one for 
php 4.0.5/6) downloads as an empty file. We're already migrating to php 
4.1.2, so that one's mainly an fyi. 

B> We can't seem to get Zend Accellerator v2.0.1 to work with our php 
4.1.2 test installation. We've got --disable-debug set in our php 
configure flags, the install-tty script ran smoothly, everything looks 
good in php.ini, and apache had no complaints restarting, but nothing 
shows up in phpinfo(). Any other recommendations or things to check would
 be a great help. 

Thanks you all for listening, and may the force be with ye :) 

- - Jesse Thompson 



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




Re: [PHP] URL / slash reduction

2002-06-10 Thread YLA G - X-power.be

sorry now was i my short nickname

its

http://user.tuned-belgium.be/yla%20G


---   ---   ---   ---   ---   ---
Connecting Tuners @ http://www.Tuned-Belgium.com
Xbox talk @ http://www.X-power.be
Gamecube @ http://www.cube-power.be

- Original Message -
From: "YLA G - X-power.be" <[EMAIL PROTECTED]>
To: "Martin Towell" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, June 11, 2002 2:49 AM
Subject: Re: [PHP] URL / slash reduction


> :) :) great help thx mate!!!
>
>
> now can everyone create a account with a userpage!!
>
> look at MY car:  http://user.tuned-belgium.be/yla
>
> look at the beatyyy
>
>
> greetz
>
> ---   ---   ---   ---   ---   ---
> Connecting Tuners @ http://www.Tuned-Belgium.com
> Xbox talk @ http://www.X-power.be
> Gamecube @ http://www.cube-power.be
>
> - Original Message -
> From: "Martin Towell" <[EMAIL PROTECTED]>
> To: "'YLA G - X-power.be'" <[EMAIL PROTECTED]>
> Sent: Tuesday, June 11, 2002 2:42 AM
> Subject: RE: [PHP] URL / slash reduction
>
>
> > let's start from scratch:
> >
> > in coming url: http://www.tuned-belgium.com/user/?id=/nickname
> > needs to be:
> >
>
http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname=nickna
> > me
> >
> >  > $ndx = strrpos($REQUEST_URI, "/");
> > $uname = substr($REQUEST_URI, $ndx + 1);
> > $url =
> > "http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname=";
.
> > $uname;
> > ?>
> >
> > how about that - I haven't tested it
> >
> > -Original Message-
> > From: YLA G - X-power.be [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, June 11, 2002 10:39 AM
> > To: Martin Towell
> > Subject: Re: [PHP] URL / slash reduction
> >
> >
> > i did this now:
> >
> >  > $url =
> >
>
str_replace('?id=/','?id=','http://www.tuned-belgium.com/user/?id=/'.$_GET['
> > id']);
> > ?>
> > http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname= > print $url ?>">
> >
> > now i getting the full url http://www.tuned-belgium.com/user/?id=/junni
as
> > the nickname (with the slash to)
> >
> >
> > ---   ---   ---   ---   ---   ---
> > Connecting Tuners @ http://www.Tuned-Belgium.com
> > Xbox talk @ http://www.X-power.be
> > Gamecube @ http://www.cube-power.be
> >
> > - Original Message -
> > From: "Martin Towell" <[EMAIL PROTECTED]>
> > To: "'YLA G - X-power.be'" <[EMAIL PROTECTED]>
> > Sent: Tuesday, June 11, 2002 2:32 AM
> > Subject: RE: [PHP] URL / slash reduction
> >
> >
> > > John Holmes just reminded me that variables inside single quotes don't
> get
> > > evaluated...
> > >
> > > so try this instead
> > >
> > >
> >
>
str_replace('?id=/','?id=','http://www.tuned-belgium.com/user/?id=/'.$_GET['
> > > id']);
> > >
> > > -Original Message-
> > > From: YLA G - X-power.be [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, June 11, 2002 10:19 AM
> > > To: Martin Towell
> > > Subject: Re: [PHP] URL / slash reduction
> > >
> > >
> > > no it must be a bether url of:
> > >
> > > http://tuned-belgium.com/user/?id=Junni
> > >
> > > wana get rid of the ?id=
> > >
> > >
> > > ---   ---   ---   ---   ---   ---
> > > Connecting Tuners @ http://www.Tuned-Belgium.com
> > > Xbox talk @ http://www.X-power.be
> > > Gamecube @ http://www.cube-power.be
> > >
> > > - Original Message -
> > > From: "Martin Towell" <[EMAIL PROTECTED]>
> > > To: "'YLA G - X-power.be'" <[EMAIL PROTECTED]>
> > > Sent: Tuesday, June 11, 2002 2:11 AM
> > > Subject: RE: [PHP] URL / slash reduction
> > >
> > >
> > > > This is, hopefully, a silly question - are you sure it's "id" you're
> > after
> > > > and not "uname"?
> > > >
> > > > In both urls you have "uname" being passed in and not "id".
> > > >
> > > > -Original Message-
> > > > From: YLA G - X-power.be [mailto:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, June 11, 2002 10:11 AM
> > > > To: Martin Towell
> > > > Subject: Re: [PHP] URL / slash reduction
> > > >
> > > >
> > > > ok error gone but ID is empty now..
> > > >
> > > > sugestions
> > > >
> > > > thx for your help!
> > > >
> > > > ---   ---   ---   ---   ---   ---
> > > > Connecting Tuners @ http://www.Tuned-Belgium.com
> > > > Xbox talk @ http://www.X-power.be
> > > > Gamecube @ http://www.cube-power.be
> > > >
> > > > - Original Message -
> > > > From: "Martin Towell" <[EMAIL PROTECTED]>
> > > > To: "'X-power.be'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > > > Sent: Tuesday, June 11, 2002 2:06 AM
> > > > Subject: RE: [PHP] URL / slash reduction
> > > >
> > > >
> > > > > it's because you've got single quotes inside single quotes...
> > > > > change $_GET['id']
> > > > > to $_GET[id]
> > > > >
> > > > >
> > > > > -Original Message-
> > > > > From: X-power.be [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Tuesday, June 11, 2002 10:04 AM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: Re: [PHP] URL / slash reduction
> > > > >
> > > > >
> > > > > the nickname '

Re: [PHP] URL / slash reduction

2002-06-10 Thread YLA G - X-power.be

:) :) great help thx mate!!!


now can everyone create a account with a userpage!!

look at MY car:  http://user.tuned-belgium.be/yla

look at the beatyyy


greetz

---   ---   ---   ---   ---   ---
Connecting Tuners @ http://www.Tuned-Belgium.com
Xbox talk @ http://www.X-power.be
Gamecube @ http://www.cube-power.be

- Original Message -
From: "Martin Towell" <[EMAIL PROTECTED]>
To: "'YLA G - X-power.be'" <[EMAIL PROTECTED]>
Sent: Tuesday, June 11, 2002 2:42 AM
Subject: RE: [PHP] URL / slash reduction


> let's start from scratch:
>
> in coming url: http://www.tuned-belgium.com/user/?id=/nickname
> needs to be:
>
http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname=nickna
> me
>
>  $ndx = strrpos($REQUEST_URI, "/");
> $uname = substr($REQUEST_URI, $ndx + 1);
> $url =
> "http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname="; .
> $uname;
> ?>
>
> how about that - I haven't tested it
>
> -Original Message-
> From: YLA G - X-power.be [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 11, 2002 10:39 AM
> To: Martin Towell
> Subject: Re: [PHP] URL / slash reduction
>
>
> i did this now:
>
>  $url =
>
str_replace('?id=/','?id=','http://www.tuned-belgium.com/user/?id=/'.$_GET['
> id']);
> ?>
> http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname= print $url ?>">
>
> now i getting the full url http://www.tuned-belgium.com/user/?id=/junni as
> the nickname (with the slash to)
>
>
> ---   ---   ---   ---   ---   ---
> Connecting Tuners @ http://www.Tuned-Belgium.com
> Xbox talk @ http://www.X-power.be
> Gamecube @ http://www.cube-power.be
>
> - Original Message -
> From: "Martin Towell" <[EMAIL PROTECTED]>
> To: "'YLA G - X-power.be'" <[EMAIL PROTECTED]>
> Sent: Tuesday, June 11, 2002 2:32 AM
> Subject: RE: [PHP] URL / slash reduction
>
>
> > John Holmes just reminded me that variables inside single quotes don't
get
> > evaluated...
> >
> > so try this instead
> >
> >
>
str_replace('?id=/','?id=','http://www.tuned-belgium.com/user/?id=/'.$_GET['
> > id']);
> >
> > -Original Message-
> > From: YLA G - X-power.be [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, June 11, 2002 10:19 AM
> > To: Martin Towell
> > Subject: Re: [PHP] URL / slash reduction
> >
> >
> > no it must be a bether url of:
> >
> > http://tuned-belgium.com/user/?id=Junni
> >
> > wana get rid of the ?id=
> >
> >
> > ---   ---   ---   ---   ---   ---
> > Connecting Tuners @ http://www.Tuned-Belgium.com
> > Xbox talk @ http://www.X-power.be
> > Gamecube @ http://www.cube-power.be
> >
> > - Original Message -
> > From: "Martin Towell" <[EMAIL PROTECTED]>
> > To: "'YLA G - X-power.be'" <[EMAIL PROTECTED]>
> > Sent: Tuesday, June 11, 2002 2:11 AM
> > Subject: RE: [PHP] URL / slash reduction
> >
> >
> > > This is, hopefully, a silly question - are you sure it's "id" you're
> after
> > > and not "uname"?
> > >
> > > In both urls you have "uname" being passed in and not "id".
> > >
> > > -Original Message-
> > > From: YLA G - X-power.be [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, June 11, 2002 10:11 AM
> > > To: Martin Towell
> > > Subject: Re: [PHP] URL / slash reduction
> > >
> > >
> > > ok error gone but ID is empty now..
> > >
> > > sugestions
> > >
> > > thx for your help!
> > >
> > > ---   ---   ---   ---   ---   ---
> > > Connecting Tuners @ http://www.Tuned-Belgium.com
> > > Xbox talk @ http://www.X-power.be
> > > Gamecube @ http://www.cube-power.be
> > >
> > > - Original Message -
> > > From: "Martin Towell" <[EMAIL PROTECTED]>
> > > To: "'X-power.be'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > > Sent: Tuesday, June 11, 2002 2:06 AM
> > > Subject: RE: [PHP] URL / slash reduction
> > >
> > >
> > > > it's because you've got single quotes inside single quotes...
> > > > change $_GET['id']
> > > > to $_GET[id]
> > > >
> > > >
> > > > -Original Message-
> > > > From: X-power.be [mailto:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, June 11, 2002 10:04 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: [PHP] URL / slash reduction
> > > >
> > > >
> > > > the nickname 'junni' was an example..
> > > >
> > > > i have this now but its not working :(
> > > >
> > > >  > > > $url =
> > > >
> > >
> >
>
str_replace('?id=/','?id=','http://www.tuned-belgium.com/user/?id=/$_GET['id
> > > > ']');
> > > > ?>
> > > > http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname= > > > print $url ?>">
> > > >
> > > > gives:
> > > >
> > > > Parse error: parse error in
/usr/home/v1/a0016905/html/user/filter.php
> > on
> > > > line 2
> > > >
> > > >
> > > > the meaning of it is that http://user.tuned-belgium.be/nickname
> > > > goes to
> > > >
> > >
> >
>
http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname=nickna
> > > > me
> > > >
> > > >
> > > > ---   ---   ---   ---   ---   ---
> > > > Connecting Tune

[PHP] Re: URL / slash reduction

2002-06-10 Thread X-power.be

gone start again.. because a can't get trough this stuff :(

al i want is a forward of

http://user.tuned-belgium.be/NICKNAME

http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname=NICKNA
ME


what is the best to do?



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




Re[2]: [PHP] Thumbnails

2002-06-10 Thread Mantas Kriauciunas

Hey John Holmes,

Got your email on:Monday, June 10, 2002, 5:10:54 PM writing:

:
JH> Why reinvent the wheel?

to learn how to do stuff...knowleadge

JH> http://gallery.jacko.com/modules.php?op=modload&name=News&file=index

JH> or...

JH> http://gallery.sourceforge.net

JH> ---John Holmes...

thanks for the links

:--:
Have A Nice Day! 
 Mantas Kriauciunas A.k.A mNTKz

Contacts:
[EMAIL PROTECTED]
Http://mntkz-hata.visiems.lt


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




RE: [PHP] URL / slash reduction

2002-06-10 Thread John Holmes

Take the ' out of $_GET['id'] if you are going to have it within a
string defined by '

Echo 'hello $_GET['id'] world';

How is PHP supposed to know that the two internal ' are not supposed to
be the end of the string?? (FYI: Variables are not parsed within strings
defined by ')

Echo 'hello ' . $_GET['id'] . ' world';

Or...

Echo "hello $_GET[id] world";

Etc...adapt to your needs...

---John Holmes...

> -Original Message-
> From: X-power.be [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 10, 2002 8:04 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] URL / slash reduction
> 
> the nickname 'junni' was an example..
> 
> i have this now but its not working :(
> 
>  $url =
> str_replace('?id=/','?id=','http://www.tuned-
> belgium.com/user/?id=/$_GET['id
> ']');
> ?>
> http://tuned-
> belgium.com/main/modules.php?name=user&op=userinfo&uname= print $url ?>">
> 
> gives:
> 
> Parse error: parse error in /usr/home/v1/a0016905/html/user/filter.php
on
> line 2
> 
> 
> the meaning of it is that http://user.tuned-belgium.be/nickname
> goes to
> http://tuned-
> belgium.com/main/modules.php?name=user&op=userinfo&uname=nickna
> me
> 
> 
> ---   ---   ---   ---   ---   ---
> Connecting Tuners @ http://www.Tuned-Belgium.com
> Xbox talk @ http://www.X-power.be
> Gamecube @ http://www.cube-power.be
> 
> "Dave" <[EMAIL PROTECTED]> schreef in bericht
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > >this url is the one that i want for my users:
> > >
> > >http://user.tuned-belgium.be/junni
> > >
> > >
> > >but go's now to
> > >
> > >http://www.tuned-belgium.com/user/?id=/junni   (slash junni)
> > >
> > >but must go to
> > >
> > >http://www.tuned-belgium.com/user/?id=junni (without slash)
> > >
> > >how can i prevent or filter the slash away?
> >
> > without getting eloquent... and assuming your url string is static
each
> time
> > ($id doesn't move withing your url string).
> >
> > $url =
> >
> str_replace('?id=/','?id=','http://www.tuned-
> belgium.com/user/?id=/junni');
> >
> > Dave
> >
> >
> 
> 
> 
> --
> 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] URL / slash reduction

2002-06-10 Thread Martin Towell

it's because you've got single quotes inside single quotes...
change $_GET['id']
to $_GET[id]


-Original Message-
From: X-power.be [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 10:04 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] URL / slash reduction


the nickname 'junni' was an example..

i have this now but its not working :(

http://www.tuned-belgium.com/user/?id=/$_GET['id
']');
?>
http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname=">

gives:

Parse error: parse error in /usr/home/v1/a0016905/html/user/filter.php on
line 2


the meaning of it is that http://user.tuned-belgium.be/nickname
goes to
http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname=nickna
me


---   ---   ---   ---   ---   ---
Connecting Tuners @ http://www.Tuned-Belgium.com
Xbox talk @ http://www.X-power.be
Gamecube @ http://www.cube-power.be

"Dave" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >this url is the one that i want for my users:
> >
> >http://user.tuned-belgium.be/junni
> >
> >
> >but go's now to
> >
> >http://www.tuned-belgium.com/user/?id=/junni   (slash junni)
> >
> >but must go to
> >
> >http://www.tuned-belgium.com/user/?id=junni (without slash)
> >
> >how can i prevent or filter the slash away?
>
> without getting eloquent... and assuming your url string is static each
time
> ($id doesn't move withing your url string).
>
> $url =
>
str_replace('?id=/','?id=','http://www.tuned-belgium.com/user/?id=/junni');
>
> Dave
>
>



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

2002-06-10 Thread John Holmes

Why reinvent the wheel?

http://gallery.jacko.com/modules.php?op=modload&name=News&file=index

or...

http://gallery.sourceforge.net

---John Holmes...

> -Original Message-
> From: Mantas Kriauciunas [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 10, 2002 9:48 PM
> To: PHP General List
> Subject: [PHP] Thumbnails
> 
> Hey PHP General List,
> 
>   i am doin thing that uploads picture on the server(windows in my
>   comp.) and if anybody can point me how to do fast thumbnails and
>   when clicking on them it shows full size picture. I want to do it
>   with one file. not cuting new one.
> 
>   And one more question. Can anybody point me to good tutorials about
>   uploading files(it wont be more then 500kb) how it is done and all
>   about that. I heared there were some bad bugs with uploading.
>   Thanks for help to everyone.
> 
> :--:
> Have A Nice Day!
>  Mantas Kriauciunas A.k.A mNTKz
> 
> Contacts:
> [EMAIL PROTECTED]
> Http://mntkz-hata.visiems.lt
> 
> 
> --
> 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] URL / slash reduction

2002-06-10 Thread X-power.be

the nickname 'junni' was an example..

i have this now but its not working :(

http://www.tuned-belgium.com/user/?id=/$_GET['id
']');
?>
http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname=">

gives:

Parse error: parse error in /usr/home/v1/a0016905/html/user/filter.php on
line 2


the meaning of it is that http://user.tuned-belgium.be/nickname
goes to
http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname=nickna
me


---   ---   ---   ---   ---   ---
Connecting Tuners @ http://www.Tuned-Belgium.com
Xbox talk @ http://www.X-power.be
Gamecube @ http://www.cube-power.be

"Dave" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >this url is the one that i want for my users:
> >
> >http://user.tuned-belgium.be/junni
> >
> >
> >but go's now to
> >
> >http://www.tuned-belgium.com/user/?id=/junni   (slash junni)
> >
> >but must go to
> >
> >http://www.tuned-belgium.com/user/?id=junni (without slash)
> >
> >how can i prevent or filter the slash away?
>
> without getting eloquent... and assuming your url string is static each
time
> ($id doesn't move withing your url string).
>
> $url =
>
str_replace('?id=/','?id=','http://www.tuned-belgium.com/user/?id=/junni');
>
> Dave
>
>



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




RE: [PHP] URL / slash reduction

2002-06-10 Thread Dave

>this url is the one that i want for my users:
>
>http://user.tuned-belgium.be/junni
>
>
>but go's now to
>
>http://www.tuned-belgium.com/user/?id=/junni   (slash junni)
>
>but must go to
>
>http://www.tuned-belgium.com/user/?id=junni (without slash)
>
>how can i prevent or filter the slash away?

without getting eloquent... and assuming your url string is static each time
($id doesn't move withing your url string).

$url =
str_replace('?id=/','?id=','http://www.tuned-belgium.com/user/?id=/junni');

Dave



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




[PHP] Thumbnails

2002-06-10 Thread Mantas Kriauciunas

Hey PHP General List,

  i am doin thing that uploads picture on the server(windows in my
  comp.) and if anybody can point me how to do fast thumbnails and
  when clicking on them it shows full size picture. I want to do it
  with one file. not cuting new one.

  And one more question. Can anybody point me to good tutorials about
  uploading files(it wont be more then 500kb) how it is done and all
  about that. I heared there were some bad bugs with uploading.
  Thanks for help to everyone.

:--:
Have A Nice Day! 
 Mantas Kriauciunas A.k.A mNTKz

Contacts:
[EMAIL PROTECTED]
Http://mntkz-hata.visiems.lt


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




RE: [PHP] URL / slash reduction

2002-06-10 Thread Martin Towell

There's probably a single reg.ex. you could use, but I'm too lazy to figure
that one out.
But try this instead (not tested though)

$str = "http://www.tuned-belgium.com/user/?id=/junni";
$tmp = explode("?", $str);
$tmp[1] = str_replace("/", "", $tmp[1];
$str = implode("?", $tmp);


-Original Message-
From: X-power.be [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 9:22 AM
To: [EMAIL PROTECTED]
Subject: [PHP] URL / slash reduction


this url is the one that i want for my users:

http://user.tuned-belgium.be/junni


but go's now to

http://www.tuned-belgium.com/user/?id=/junni   (slash junni)

but must go to

http://www.tuned-belgium.com/user/?id=junni (without slash)

how can i prevent or filter the slash away?





-- 
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] Compare 2 resultsets of db-query

2002-06-10 Thread Analysis & Solutions

Hey Danny:

On Mon, Jun 10, 2002 at 10:09:12PM +0200, Danny Kruitbosch wrote:
> 
> Query1: SELECT FIELD1, COUNT(FIELD2) AS TOTAL from TABLE GROUP BY FIELD1
> Query2: SELECT FIELD1, COUNT(FIELD2) AS SUB from TABLE WHERE FIELD2=1 
> GROUP BY FIELD1
> 
> Now I want to print a table that prints the values of FIELD1, TOTAL and 
>  SUB.
> 
> Query 1 returns more rows as query 2. Field1 is the same in both queries 
> so I should be able to 'link' the results of both queries together.

I'm wondering exactly what you're trying to do.  It may be possible to do 
in one well crafted query.  Why limit the second query only to items where 
Field2 = 1?  What's in FIELD1 and FIELD2?

Also, I assume you want each row of your HTML table to have the FIELD1, 
TOTAL and SUB fields in them, right?

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

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




[PHP] URL / slash reduction

2002-06-10 Thread X-power.be

this url is the one that i want for my users:

http://user.tuned-belgium.be/junni


but go's now to

http://www.tuned-belgium.com/user/?id=/junni   (slash junni)

but must go to

http://www.tuned-belgium.com/user/?id=junni (without slash)

how can i prevent or filter the slash away?





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




Re: [PHP] self processing forms

2002-06-10 Thread Analysis & Solutions

Bill:

On Mon, Jun 10, 2002 at 04:16:48PM -0600, Bill Hudspeth wrote:
> I am using the O'Reilly "Programming PHP" manual, and have copied the code
> from Example 7.3, p. 166.

You didn't copy it correctly.  See below.


> I have the magic_quotes_gpc set to ON in php.ini
> (though toggling between on and off doesn't seem to have any effect).

Because you'll only see a difference if your submission has something in 
it that needs to be escaped.  For example ' " will have slashes added to 
them.


>  
   
By the way, allow me to point something out that doesn't have anything to
do with your script not working, but may come in helpful in the future.  
You mean "value" not "name."  Name is what the name of the variable
becomes.  Value is the data that the variable holds and what's visible
when you look at the form in your web browser.  I suspect the button is
supposed to say "Convert to Celsius!" in it rather than the default
"Submit Query."

Enjoy,

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

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




Re: [PHP] self processing forms

2002-06-10 Thread Jason Soza

Are you restarting Apache (or whatever webserver you're using) between 
edits to php.ini? I assume since you also posted this to php-win that 
you're using Win32. This would be my first step if you haven't done so 
already.

I got corrected on this before, saying that you -don't- have to restart 
between edits, but trust me, you do. I made changes to php.ini, saved, 
and no changes were noted until AFTER I restarted Apache. Apache does 
parse php.ini on startup because I entered invalid pathnames in various 
places as a test, and only on restart did I get a notice that the 
pathnames were invalid.

I'm using Win32, PHP v4.1.2 as a module (not CGI), Apache 1.3.something.

Jason Soza

- Original Message -
From: "Bill Hudspeth" <[EMAIL PROTECTED]>
Date: Monday, June 10, 2002 2:16 pm
Subject: [PHP] self processing forms

> I am using the O'Reilly "Programming PHP" manual, and have copied 
> the code
> from Example 7.3, p. 166. I have the magic_quotes_gpc set to ON in 
> php.ini(though toggling between on and off doesn't seem to have 
> any effect). My
> processed form reports "0.00F is -17.78C " regardless of the initial
> fahrenheit temperature I enter. Moreover, using another version of 
> thisscript, as shown in Example 7.4, p. 167, simply clears the 
> text field, and
> never returns an output. I can't figure out why I am not getting a 
> correctoutput - perhaps something in my php.ini file? A copy of 
> the code I am using
> (Example 7.3) is as follows:
> 
> 
> 
> 
> Untitled
> 
> 
> 
> 
>  if ($_SERVER['REQUEST_METHOD'] == 'GET'){
> ?>
> 
> 
> Fahrenheit temperature:
> 
> 
> 
>  } elseif ($_SERVER['REQUEST_METHOD'] == 'POST') {
> $fahr=$_POST['fahrenheit'];
> $celsius=($fahr - 32) * 5/9;
> printf("%.2fF is %.2fC", $fahr, $celsius);
> //echo "The temperature in degrees celsius is $celsius";
> } else {
> die("This script only works with GET and POST requests.");
> }
> ?>
> 
> 
> 
> 
> **
> 
> Thanks much in advance, Bill


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




RE: [PHP] Arrays

2002-06-10 Thread Lazor, Ed

Get the number of items in the array using the count function and then use a
for statement to loop through them from start to finish.  Here's an example:


$Total = count($link);

for ($i = 0;$i < $Total;$i++)
print "$name";

Of course, the link names will all be the same, so you'll probably want to
store that in the array as well...

for ($i = 0;$i < $Total;$i++)
print "".$link[$i][name]."";


-Original Message-
From: Dan [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 3:01 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Arrays


I'm trying to get my head around arrays and how to munipulate them.

what I need to do is add html around the arrays eg.
".$name.";

I have my head around that but I the number of lines the I need to create is
going to change so I need the script to repeat untill all the arrays are
used.

--
-
Daniel Broome, siliconBLUE Ltd, Web Author,
http://siliconblue.com
Mob: 64-21-178-5120



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

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

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




[PHP] Re: Calendars

2002-06-10 Thread Vinod Palan

hi ,
here is file calendar.php and it displayes calendar and also by you can
diaplay content by selecting from database and displaying in the right month
I hope this helps and if there is any thing else do get back to me.
Vinod
==
\n\n\n".
"\n".
"Calendar\n\n\n\n\n";
 }


//- This function is to do the HTML footer
chore-
function  print_HTML_footer()
 {
  echo "";
 }
?>




 $no_days_in_month)
 break;
   else
   {
$dates[$row][$col] = $num;
if (($col + 1) > 7)
 {
  $row++;
  $col = 1;
 }
else
 $col++;
$num++;
   }//if-else
  }//while
  $mon_num = date("n",$first_day);
  $temp_yr = $next_yr = $prev_yr = $year;

  $prev = $mon_num - 1;
  $next = $mon_num + 1;

  //If January is currently displayed, month previous is December of
previous year
  if ($mon_num == 1)
   {
$prev_yr = $year - 1;
$prev = 12;
   }

  //If December is currently displayed, month next is January of next year
  if ($mon_num == 12)
   {
$next_yr = $year + 1;
$next = 1;
   }
  ?>
  ";

  echo  "\n ".
"<< ".
"".date("F",$first_day)." ".$temp_yr."".
" ".
">> ";

  echo "\nSunMonTue";
  echo
"WedThuFriSat";
  echo " ";

  $end = ($start_day > 4)? 6:5;
  for ($row=1;$row<=$end;$row++)
   {
for ($col=1;$col<=7;$col++)
 {
  if ($dates[$row][$col] == "")
  $dates[$row][$col] = " ";

  if (!strcmp($dates[$row][$col]," "))
   $count++;

  $t = $dates[$row][$col];

  //If date is today, highlight it
  if (($t == date("j")) && ($mon == date("n")) && ($year == date("Y")))
   echo "\n".$t."";
  else
   //If the date is absent ie after 31, print space
   echo "\n".(($t == " " )? " " :"".$t."")."";
 }// for -col

if (($row + 1) != ($end+1))
 echo "\n";
else
 echo "";
   }// for - row
  echo "\n";
 }




//--Main Loop---

print_HTML_header();

//If $month is not present, set it to current month.
$month = (empty($month)) ? date("n") : $month;

//If $year is not present, set it to current year.
$year = (empty($year)) ? date("Y") : $year;

print_calendar($month,$year);

print_HTML_footer();

?>




==

--
Vinod Palan A
Calypso Technology, Inc.
[EMAIL PROTECTED]
(415) 817-2463 Phone



"Kevin P" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi
> I am trying to feature a calendar on a web site. I would like it to
display
> on a page and be able to change to another month when this is requested
and
> display items for the general public. I want the client to be able to go
> into the database and update the items and those items to appear on the
> site. Is there something outthere already packaged like this?
>
> Kevin P
>
>
>



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




RE: [PHP] Parse an email message for content

2002-06-10 Thread Lazor, Ed

Which documentation should we check to get information on the undocumented
features? ;)

ps... I'm joking.

-Original Message-
while not documented, PHP now has the mail-parse functions (see
documentation for function list)
 

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

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




[PHP] Re: [PHP-DOC] phpDocumentor version 1.1.0rc1 RELEASE ANNOUNCEMENT

2002-06-10 Thread Jesus M. Castagnetto

Greg,

You should sent this announcements to pear-dev or
pear-general, not to phpdoc. In this list we deal w/
the PHP documentation (i.e. manual), *not* with the
documentation of classes/scripts written in PHP.

Unless, of course, phpdocumentor can read the C code
for PHP and generate the appropriate DocBook pages
(and translations)... ;-)

Regards.

--- Greg Beaver <[EMAIL PROTECTED]> wrote:
> June 9, 2002
> RELEASE ANNOUNCEMENT
> phpDocumentor version 1.1.0rc1
> http://www.phpdoc.org
> Download:
> http://phpdocu.sourceforge.net/downloads.php
> 
> The phpDocumentor Development team would like to
> announce the release of
> phpDocumentor version 1.1.0rc1.  This is a release
> candidate for 1.1.0 to
> ensure
> that all bugs have been fixed before release
> 
> phpDocumentor is the most advanced
> auto-documentation system available for
> PHP.  Similar to the auto-documentor included with
> PEAR, phpDocumentor
> parses documentation comments in the PHP source to
> create hyperlinked API
> references for projects.  Unlike the PEAR
> auto-documentor, phpDocumentor is
> extremely fast, has excellent documentation
> included, and the ability to
> parse any legal PHP syntax.
> 
> phpDocumentor is the only auto-documentor written
> specifically for PHP that
> supports output to formats other than HTML.  With
> 1.1.0rc1 comes a pre-
> alpha PDF Converter to demonstrate the facility. 
> Through the use of
> "Converters"
> similar to JavaDoc's doclets, phpDocumentor can
> interface parsing output to
> any template with minimal coding.  In addition, 6
> HTML templates come
> standard with phpDocumentor.
> 
> Other features include:
>   --fully 25% faster than version 1.0.0
>   --able to directly parse a CVS repository
>   --parses any php file, with multiple classes and
> functions in the same
> file
>   --fully compliant with even the most esoteric php
> syntax
>($string = <<< EOF, for example)
>   --greatly improved ease of Converter programming
>   --parsing of global and static variables
>   --documentation of name conflicts between packages
>   --auto-linking to elements in any package
>   --error/warnings by line number and file to allow
> for debugging of
>  documentation tags
>   --extensive documentation of the package,
> including a detailed
> specification
>  for tags and templates
>   --open source, GPL
> 
> phpDocumentor is fast becoming the standard
> auto-documentor, and is
> used by several PHP projects including PostNuke
> Content Management (http://www.postnuke.com), phpRPC
> (http://phprpc.sourceforge.net/), and XMap
> (http://opensource.under.com.br/xmap/docs/)
> 
> To Download, go to
> http://phpdocu.sourceforge.net/downloads.php
> 
> The phpDocumentor development team
> Joshua Eichorn
> Gregory Beaver
> 
> 
> 


=
--- Jesus M. Castagnetto <[EMAIL PROTECTED]>

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




Re: [PHP] Parse an email message for content

2002-06-10 Thread Jonathan Duncan

Michael,

Wow, correct you are:

http://www.php.net/manual/en/ref.mailparse.php

Thank you, I will definitely see what that has to offer me.

Jonathan Duncan


"Michael Geier" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> while not documented, PHP now has the mail-parse functions (see
> documentation for function list)
>



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




[PHP] self processing forms

2002-06-10 Thread Bill Hudspeth

I am using the O'Reilly "Programming PHP" manual, and have copied the code
from Example 7.3, p. 166. I have the magic_quotes_gpc set to ON in php.ini
(though toggling between on and off doesn't seem to have any effect). My
processed form reports "0.00F is -17.78C " regardless of the initial
fahrenheit temperature I enter. Moreover, using another version of this
script, as shown in Example 7.4, p. 167, simply clears the text field, and
never returns an output. I can't figure out why I am not getting a correct
output - perhaps something in my php.ini file? A copy of the code I am using
(Example 7.3) is as follows:




Untitled







Fahrenheit temperature:








**

Thanks much in advance, Bill





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




Re: [PHP] Switching from HTTPS to HTTP using PHP?

2002-06-10 Thread Andre Dubuc

Thanks Ed,

As you mentioned in your last lines, I'll have to specify the http protocol 
for the ordinary pages -- I hadn't done that yet. I assumed it would default 
to http; but, if I had thought about it, that wouldn't make sense. Unless 
told otherwise, https would not "know" that another protocol was requested.

That should fix things, thanks for the explanation.

Regards,
Andre


On Monday 10 June 2002 03:48 pm, you wrote:
> I'm pretty sure it's just an issue of using HTTPS for encrypted pages and
> HTTP for unencrypted.  For example:
>
>   http://www.example.com
>
> is unencrypted and pulls from port 80 on the web server.  Whereas,
>
>   https://www.example.com
>
> would be encrypted and come from port 443 on the web server.
>
> You can tell whether you're in encrypted mode or not by checking the
> variable:
>
>   $_SERVER['HTTPS'] == "on"
>
> One thing to check, anchors with no protocol specified default to the
> current protocol.  If you're in an encrypted page and have a link like
> this:
>
>   Home Page
>
> The protocol will default to https and this may be the source of the
> problem you're experiencing.
>
> -Ed
>
>
>
> -
> Hi Ed,
>
> Maybe it's just one of those slow days, brain-wise. But I have a 'problem'
> with https remaining in that mode even on pages that haven't specifically
> requested it. That was not my understanding how it worked. Now, if I have
> to
>
> call "http" on pages that do not need https, then how would I be able to
> distinguish whether or not the mode is https or not.
>
> [I'm thinking of my bank's secure pages -- after I'm finished with
> the secure stuff, I get booted out of https. I suppose that's what I
> expected
> would happen (only pages calling https would be in it.)
>
> Sigh . . . more reading to do :>
>
> Regards,
> Andre
>
>
> ***
>* This message is intended for the sole use of the individual and entity to
> whom it is addressed, and may contain information that is privileged,
> confidential and exempt from disclosure under applicable law.  If you are
> not the intended addressee, nor authorized to receive for the intended
> addressee, you are hereby notified that you may not use, copy, disclose or
> distribute to anyone the message or any information contained in the
> message.  If you have received this message in error, please immediately
> advise the sender by reply email and delete the message.  Thank you very
> much.

-- 
Please pray the Holy Rosary to end the holocaust of abortion.
Remember in your prayers the Holy Souls in Purgatory.

May God bless you abundantly in His love!
For a free Cenacle Scriptural Rosary Booklet: http://www.webhart.net/csrb/

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




[PHP] Arrays

2002-06-10 Thread Dan

I'm trying to get my head around arrays and how to munipulate them.

what I need to do is add html around the arrays eg.
".$name.";

I have my head around that but I the number of lines the I need to create is
going to change so I need the script to repeat untill all the arrays are
used.

--
-
Daniel Broome, siliconBLUE Ltd, Web Author,
http://siliconblue.com
Mob: 64-21-178-5120



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




[PHP] SAFE MODE

2002-06-10 Thread Georgie Casey

How do i setup safe mode scripting (each script has a different uid) on my
win32, apache, php setup? my plesk host has to use it and i want to be able
to test my scripts on my own computer.

i set "safe mode = On" in my php.ini file but the script still lets me
include a file, whereas the script on my proper host doesnt.



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




RE: [PHP] Parse an email message for content

2002-06-10 Thread Michael Geier

while not documented, PHP now has the mail-parse functions (see
documentation for function list)

> -Original Message-
> From: Jonathan Duncan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 10, 2002 3:48 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Parse an email message for content
>
>
> Ed,
>
> Thanks for the reply.  Actually, I have the module version and the cgi
> version of PHP running on my server.  I have another script that I run
> daily, but that is a different beast with my own content.  Also, I know
> about egrep and preg_egrep, great functions.  However, I am looking for an
> idea on how to actually read the email files.
>
> I have been reading about "fread" for reading the file and then I have
> considered doing an "fseek" to start reading where the email headers stop,
> and then "explode"ing the contents of the file separated by the "="
> delimiter that comes in the message.  However, I do not know
> where to start.
> Any pointers?
>
> Thanks,
> Jonathan Duncan
>
>
> "Ed Lazor" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > You'll need to have a cgi version of PHP to use in cronjobs and you'll
> need
> > to use http://www.php.net/manual/en/function.preg-grep.php
> >
> > Good luck =)
> >
> > -Original Message-
> > From: Jonathan Duncan [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, June 10, 2002 12:48 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] Parse an email message for content
> >
> >
> > I am trying to display on a web page a daily message from a mailing list
> > that I am on.  What I want is to have a script run on my server each day
> at
> > a certain time that reads the mail file that contains the daily email
> > message, takes the Article Titles and makes them the link text
> to be used
> > with the link that is provided and then have the article abstract listed
> > below.
> >
> > Can anyone point me in the correct direction on how I can learn
> how to do
> > this?
> >
> > Thank you very much,
> > Jonathan Duncan
> >
> > The daily email message I get comes in the following format:
> >
> > *-*-*-* Start Email Message *-*-*-*
> > EMAIL HEADERS
> >
> > Bulleted list of article titles
> > -article 1
> > -article 2
> >
> > =  (That is 5 equal characters)
> >
> > Article 1 Title
> > See http://some.server.com/path/to/article.html
> >  http://some.server.com/path/to/article.html";>Link
> > See http://additional.server.com/path/to/article.html
> >  http://additional.server.com/path/to/article.html";>Link
> >
> > Article 1 abstract.  This gives a brief excerpt of the article.
> >
> > =  (That is 5 equal characters)
> >
> > Article 2 Title
> > See http://some.server.com/path/to/article.html
> >  http://some.server.com/path/to/article.html";>Link
> > See http://additional.server.com/path/to/article.html
> >  http://additional.server.com/path/to/article.html";>Link
> >
> > Article 2 abstract.  This gives a brief excerpt of the article.
> >
> > -
> > Copyright text ends the message
>
>
>
> --
> 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] Re: Can a php script be placed within a stylesheet?

2002-06-10 Thread Dan Hardiker

> That's how I interpret it at least... Does the CSS file _HAVE_ to end
> in .css? Or does it just matter how you link


HTTP content headers can be used to tell the client that this is a file of
a different name. EG: I have a pdf outputted from a output.php file and to
make it look like file.pdf instead I use:
header("Content-Disposition: filename=file.pdf");


-- 
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd



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




RE: [PHP] Calendars

2002-06-10 Thread David Freeman


 > I am trying to feature a calendar on a web site. I would 
 > like it to display on a page and be able to change to 
 > another month when this is requested and display items for 
 > the general public. I want the client to be able to go into 
 > the database and update the items and those items to appear 
 > on the site. Is there something outthere already packaged like this?

I've got an older version online (with a tar.gz of the code I use) at
calendar.outbackqld.net.au although it's old now and the new version
(which you can view at www.isisford.qld.gov.au) isn't quite ready to be
packaged up as an archive for release yet.

If it looks like something you're interested in then let me know and I
could package up what's there - it's just not real portable in the newer
form yet.

CYA, Dave



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




Re: [PHP] Re: Can a php script be placed within a stylesheet?

2002-06-10 Thread 1LT John W. Holmes

The PHP parsing would take place before the file is sent to the browser. The
CSS goes into effect when it hits the browser, on the client side, so it
wouldn't matter. All the client cares is that there was a CSS file sent, it
doesn't care if it was text or created by PHP or whatever.

That's how I interpret it at least... Does the CSS file _HAVE_ to end in
.css? Or does it just matter how you link

---John Holmes...

- Original Message -
From: "Timothy J. Luoma" <[EMAIL PROTECTED]>
To: "Andrew Brampton" <[EMAIL PROTECTED]>
Cc: "William S." <[EMAIL PROTECTED]>; "php" <[EMAIL PROTECTED]>
Sent: Monday, June 10, 2002 5:05 PM
Subject: [PHP] Re: Can a php script be placed within a stylesheet?


> On Mon, 10 Jun 2002, Andrew Brampton wrote:
>
> > Yes you can place one in a style sheet you just need to tell apache (or
> > whatever) that .css should be parsed by PHP, this can be done via a
> > .htaccess or something similar... Here is a example in a .htaccess file:
> >
> > AddType application/x-httpd-php .css
>
> But wouldn't that prevent it from being parsed as a CSS file?
>
>
>
>
>
> --
> 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] Re: Can a php script be placed within a stylesheet?

2002-06-10 Thread Lazor, Ed

CSS in this sense is client side.  As long as the PHP output is valid style
codes, you should be ok.

-Original Message-
On Mon, 10 Jun 2002, Andrew Brampton wrote:

> Yes you can place one in a style sheet you just need to tell apache (or
> whatever) that .css should be parsed by PHP, this can be done via a
> .htaccess or something similar... Here is a example in a .htaccess file:
>
> AddType application/x-httpd-php .css

But wouldn't that prevent it from being parsed as a CSS file?


 

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

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




[PHP] Re: Can a php script be placed within a stylesheet?

2002-06-10 Thread Timothy J. Luoma

On Mon, 10 Jun 2002, Andrew Brampton wrote:

> Yes you can place one in a style sheet you just need to tell apache (or
> whatever) that .css should be parsed by PHP, this can be done via a
> .htaccess or something similar... Here is a example in a .htaccess file:
>
> AddType application/x-httpd-php .css

But wouldn't that prevent it from being parsed as a CSS file?





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




RE: [PHP] Parse an email message for content

2002-06-10 Thread Lazor, Ed

Exploding at the "=" is a good idea.  I'd just fread the file into a
variable, explode it, and then egrep up to the first delimeter.  I'm not
sure if this is the best approach... but it's the most likely approach I'd
take if I were working on this. =)

---
I am looking for an idea on how to actually read the email files.

I have been reading about "fread" for reading the file and then I have
considered doing an "fseek" to start reading where the email headers stop,
and then "explode"ing the contents of the file separated by the "="
delimiter that comes in the message.  However, I do not know where to start.
Any pointers?

 

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

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




[PHP] Re: url string

2002-06-10 Thread Scott Hurring

Did you verify that the variables actually contain data?

They're probably empty, which is why they dont seem to
be passing correctly.

--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
"Kris Vose" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I am looking for a way to pass two variables in a url string to a php script.  I
originally was using java script to acomplish this because once the user is
redirected they can not press the back button to get back to the original page.
It looks like this:
?>
 window.location =
"somefile.php?user=&pass="
 window.location =
'somefile.php?user=$username&pass=$userpass'";

Unfortunately both ways do not work.  In the first instance the script jumps to
the window location but does not pass php variables into the url string.  In the
second instances the java script does not even compile.

Is there a way to do this with php?...html?...javascript?

...I think that window.location does not except url string variables or
something.  Anyway if anyone can help it would be appreciated.  Thanks.


Kris



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




Re: [PHP] Parse an email message for content

2002-06-10 Thread Jonathan Duncan

Ed,

Thanks for the reply.  Actually, I have the module version and the cgi
version of PHP running on my server.  I have another script that I run
daily, but that is a different beast with my own content.  Also, I know
about egrep and preg_egrep, great functions.  However, I am looking for an
idea on how to actually read the email files.

I have been reading about "fread" for reading the file and then I have
considered doing an "fseek" to start reading where the email headers stop,
and then "explode"ing the contents of the file separated by the "="
delimiter that comes in the message.  However, I do not know where to start.
Any pointers?

Thanks,
Jonathan Duncan


"Ed Lazor" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You'll need to have a cgi version of PHP to use in cronjobs and you'll
need
> to use http://www.php.net/manual/en/function.preg-grep.php
>
> Good luck =)
>
> -Original Message-
> From: Jonathan Duncan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 10, 2002 12:48 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Parse an email message for content
>
>
> I am trying to display on a web page a daily message from a mailing list
> that I am on.  What I want is to have a script run on my server each day
at
> a certain time that reads the mail file that contains the daily email
> message, takes the Article Titles and makes them the link text to be used
> with the link that is provided and then have the article abstract listed
> below.
>
> Can anyone point me in the correct direction on how I can learn how to do
> this?
>
> Thank you very much,
> Jonathan Duncan
>
> The daily email message I get comes in the following format:
>
> *-*-*-* Start Email Message *-*-*-*
> EMAIL HEADERS
>
> Bulleted list of article titles
> -article 1
> -article 2
>
> =  (That is 5 equal characters)
>
> Article 1 Title
> See http://some.server.com/path/to/article.html
>  http://some.server.com/path/to/article.html";>Link
> See http://additional.server.com/path/to/article.html
>  http://additional.server.com/path/to/article.html";>Link
>
> Article 1 abstract.  This gives a brief excerpt of the article.
>
> =  (That is 5 equal characters)
>
> Article 2 Title
> See http://some.server.com/path/to/article.html
>  http://some.server.com/path/to/article.html";>Link
> See http://additional.server.com/path/to/article.html
>  http://additional.server.com/path/to/article.html";>Link
>
> Article 2 abstract.  This gives a brief excerpt of the article.
>
> -
> Copyright text ends the message



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




RE: [PHP] Compare 2 resultsets of db-query

2002-06-10 Thread Lazor, Ed

What you're asking is considered a UNION.  I'm not sure which database
you're using, so I can't tell if it supports UNIONs or not.  If you're using
MySQL, UNIONs are supported in version 4.0-alpha.

Another approach is storing the results of both queries in single array and
then pulling it from there when you need to work with it.

Then again... you don't seem to be sorting the results, so you could just as
easily start the table, run the db query, dump the results, run another
query and dump the results, and then close the table.

I don't know if what I just said makes sense, so here's a psuedo example:


";
print "".$Row[0]."";
print "".$Row[1]."";
print "".$Row[2]."";
print "";
}

$sql = "query#1";
$Results = mysql_query($sql, $DBLink);

while ($Row = mysql_fetch_array($Results) )
{
print "";
print "".$Row[0]."";
print "".$Row[1]."";
print "".$Row[2]."";
print "";
}
?>



-Original Message-
From: Danny Kruitbosch [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 1:09 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Compare 2 resultsets of db-query


Hi,

I've two queries on the same table. They have the following structure:

Query1: SELECT FIELD1, COUNT(FIELD2) AS TOTAL from TABLE GROUP BY FIELD1
Query2: SELECT FIELD1, COUNT(FIELD2) AS SUB from TABLE WHERE FIELD2=1 
GROUP BY FIELD1

Now I want to print a table that prints the values of FIELD1, TOTAL and 
  SUB.

Query 1 returns more rows as query 2. Field1 is the same in both queries 
so I should be able to 'link' the results of both queries together.

How do I do this??


Thanks!

Danny


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

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

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




RE: [PHP] url string

2002-06-10 Thread Leotta, Natalie (NCI/IMS)

Instead of window.location, try document.formName.target = "file.php?params"
- that's how I have mine set up and it works well.
You need to follow that with document.formName.submit()

-Natalie

-Original Message-
From: Kris Vose [mailto:[EMAIL PROTECTED]] 
Sent: Monday, June 10, 2002 4:41 PM
To: [EMAIL PROTECTED]
Subject: [PHP] url string


I am looking for a way to pass two variables in a url string to a php
script.  I originally was using java script to acomplish this because once
the user is redirected they can not press the back button to get back to the
original page.  It looks like this: ?>  window.location =
"somefile.php?user=&pass="
 window.location =
'somefile.php?user=$username&pass=$userpass'";

Unfortunately both ways do not work.  In the first instance the script jumps
to the window location but does not pass php variables into the url string.
In the second instances the java script does not even compile.

Is there a way to do this with php?...html?...javascript?

...I think that window.location does not except url string variables or
something.  Anyway if anyone can help it would be appreciated.  Thanks.


Kris

-- 
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] url string

2002-06-10 Thread Kris Vose

I am looking for a way to pass two variables in a url string to a php script.  I 
originally was using java script to acomplish this because once the user is redirected 
they can not press the back button to get back to the original page.  It looks like 
this:
?>
 window.location = "somefile.php?user=&pass="
 window.location = 
'somefile.php?user=$username&pass=$userpass'";

Unfortunately both ways do not work.  In the first instance the script jumps to the 
window location but does not pass php variables into the url string.  In the second 
instances the java script does not even compile.

Is there a way to do this with php?...html?...javascript?

...I think that window.location does not except url string variables or something.  
Anyway if anyone can help it would be appreciated.  Thanks.


Kris

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




RE: [PHP] Help with header function

2002-06-10 Thread Lazor, Ed

LOL  Yea, it's always much easier if we have actual code to work from rather
than taking guesses in the dark.

-Original Message-
Why do I get the feeling I'm playing that "mind bender" game where you have
to guess the right combination within so many turns?  LOL
 

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   


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




[PHP] Compare 2 resultsets of db-query

2002-06-10 Thread Danny Kruitbosch

Hi,

I've two queries on the same table. They have the following structure:

Query1: SELECT FIELD1, COUNT(FIELD2) AS TOTAL from TABLE GROUP BY FIELD1
Query2: SELECT FIELD1, COUNT(FIELD2) AS SUB from TABLE WHERE FIELD2=1 
GROUP BY FIELD1

Now I want to print a table that prints the values of FIELD1, TOTAL and 
  SUB.

Query 1 returns more rows as query 2. Field1 is the same in both queries 
so I should be able to 'link' the results of both queries together.

How do I do this??


Thanks!

Danny


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




Re: [PHP] Help with header function

2002-06-10 Thread Kevin Stone

Don't be so sure.  :)  I did a test with two location headers, one with and
one without a space, both worked properly.  But when I purposfully
misspelled "Location" to introduce a syntax error, the page did not redirect
or give an error.  This is exactly the result he was reporting so clearly
there is a syntax error within his header text.. just not the one you
thought it was.

Why do I get the feeling I'm playing that "mind bender" game where you have
to guess the right combination within so many turns?  LOL

-Kevin

- Original Message -
From: "Lazor, Ed" <[EMAIL PROTECTED]>
To: "'Kevin Stone'" <[EMAIL PROTECTED]>; "PHP-general"
<[EMAIL PROTECTED]>
Sent: Monday, June 10, 2002 2:00 PM
Subject: RE: [PHP] Help with header function


> I'm pretty sure it was the lack of a space in the header field between
> Location: and the actual url.
>
> -Original Message-
>
> The only thing I can think of is that you have a syntax error in the
header.
> -Kevin
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>

> This message is intended for the sole use of the individual and entity to
> whom it is addressed, and may contain information that is privileged,
> confidential and exempt from disclosure under applicable law.  If you are
> not the intended addressee, nor authorized to receive for the intended
> addressee, you are hereby notified that you may not use, copy, disclose or
> distribute to anyone the message or any information contained in the
> message.  If you have received this message in error, please immediately
> advise the sender by reply email and delete the message.  Thank you very
> much.
>
>



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




Re: [PHP] storing html in a db

2002-06-10 Thread W. Enserink

thx great tip:-)



- Original Message -
From: "Jared Boelens" <[EMAIL PROTECTED]>
To: "W. Enserink" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, June 10, 2002 9:41 PM
Subject: RE: [PHP] storing html in a db


> You might consider using output buffering in order to accomplish that
goal.
>
> http://www.php.net/manual/en/ref.outcontrol.php
>
> You could buffer the entire page and store the buffer into the DB at the
end
> of the page load.
>
> -Jared
>
> -Original Message-
> From: W. Enserink [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 10, 2002 3:35 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] storing html in a db
>
>
> hi all,
>
>
> i was wondering,
>
> i'm making a php page. this php page is outputting a very lot of html to a
> browser.
> is it also possible to "capture" this html code and store it in a
database?
> so later on i can retrieve a full html page without the "dynamic elements
in
> it"
>
> thx Wilbert
>
>
> -
> Pas de Deux
> Van Mierisstraat 25
> 2526 NM Den Haag
> tel 070 4450855
> fax 070 4450852
> http://www.pdd.nl
> [EMAIL PROTECTED]
> -
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

- 
Pas de Deux 
Van Mierisstraat 25 
2526 NM Den Haag 
tel 070 4450855 
fax 070 4450852 
http://www.pdd.nl 
[EMAIL PROTECTED] 
-

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




RE: [PHP] Help with header function

2002-06-10 Thread Lazor, Ed

I'm pretty sure it was the lack of a space in the header field between
Location: and the actual url.

-Original Message-

The only thing I can think of is that you have a syntax error in the header.
-Kevin















 

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

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




RE: Re[2]: [PHP] Parse an email message for content

2002-06-10 Thread Lazor, Ed

Good point.

-Original Message-
LE> You'll need to have a cgi version of PHP to use in cronjobs

Not entirely true; you can run a script off your server as well, using
lynx -dump http://server/path/to/file as the line in crontab

- Julie
 

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

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




Fw: [PHP] Help with header function

2002-06-10 Thread Kevin Stone

The only thing I can think of is that you have a syntax error in the header.
-Kevin

- Original Message -
From: "Shane Kelly" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 10, 2002 1:43 PM
Subject: Re: [PHP] Help with header function


> I don't get an error message...but the page doesn't automatically forward
to
> the redirected url.
>
>
>
>
>
> --
> 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[2]: [PHP] Parse an email message for content

2002-06-10 Thread Julie Meloni

LE> You'll need to have a cgi version of PHP to use in cronjobs

Not entirely true; you can run a script off your server as well, using
lynx -dump http://server/path/to/file as the line in crontab

- Julie

--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com


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




RE: [PHP] Parse an email message for content

2002-06-10 Thread Lazor, Ed

You'll need to have a cgi version of PHP to use in cronjobs and you'll need
to use http://www.php.net/manual/en/function.preg-grep.php

Good luck =)

-Original Message-
From: Jonathan Duncan [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 12:48 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Parse an email message for content


I am trying to display on a web page a daily message from a mailing list
that I am on.  What I want is to have a script run on my server each day at
a certain time that reads the mail file that contains the daily email
message, takes the Article Titles and makes them the link text to be used
with the link that is provided and then have the article abstract listed
below.

Can anyone point me in the correct direction on how I can learn how to do
this?

Thank you very much,
Jonathan Duncan

The daily email message I get comes in the following format:

*-*-*-* Start Email Message *-*-*-*
EMAIL HEADERS

Bulleted list of article titles
-article 1
-article 2

=  (That is 5 equal characters)

Article 1 Title
See http://some.server.com/path/to/article.html
 http://some.server.com/path/to/article.html";>Link
See http://additional.server.com/path/to/article.html
 http://additional.server.com/path/to/article.html";>Link

Article 1 abstract.  This gives a brief excerpt of the article.

=  (That is 5 equal characters)

Article 2 Title
See http://some.server.com/path/to/article.html
 http://some.server.com/path/to/article.html";>Link
See http://additional.server.com/path/to/article.html
 http://additional.server.com/path/to/article.html";>Link

Article 2 abstract.  This gives a brief excerpt of the article.

-
Copyright text ends the message



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

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

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




RE: [PHP] multi-line textfields don't post

2002-06-10 Thread Lazor, Ed

Give us a copy of the code so we can tell what you're talking about.

-Original Message-
From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 12:10 PM
To: [EMAIL PROTECTED]
Subject: [PHP] multi-line textfields don't post


Whenever I use a mult-line textfield, the data inside doesn't transfer
over.  But single-line textfields work just fine.
 
how do i fix this?
 

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

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




RE: [PHP] Switching from HTTPS to HTTP using PHP?

2002-06-10 Thread Lazor, Ed

I'm pretty sure it's just an issue of using HTTPS for encrypted pages and
HTTP for unencrypted.  For example:

http://www.example.com

is unencrypted and pulls from port 80 on the web server.  Whereas, 

https://www.example.com

would be encrypted and come from port 443 on the web server.

You can tell whether you're in encrypted mode or not by checking the
variable:

$_SERVER['HTTPS'] == "on"

One thing to check, anchors with no protocol specified default to the
current protocol.  If you're in an encrypted page and have a link like this:

Home Page

The protocol will default to https and this may be the source of the problem
you're experiencing.  

-Ed



-
Hi Ed,

Maybe it's just one of those slow days, brain-wise. But I have a 'problem' 
with https remaining in that mode even on pages that haven't specifically 
requested it. That was not my understanding how it worked. Now, if I have to

call "http" on pages that do not need https, then how would I be able to 
distinguish whether or not the mode is https or not. 

[I'm thinking of my bank's secure pages -- after I'm finished with 
the secure stuff, I get booted out of https. I suppose that's what I
expected 
would happen (only pages calling https would be in it.)

Sigh . . . more reading to do :>

Regards,
Andre

 

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

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




[PHP] Parse an email message for content

2002-06-10 Thread Jonathan Duncan

I am trying to display on a web page a daily message from a mailing list
that I am on.  What I want is to have a script run on my server each day at
a certain time that reads the mail file that contains the daily email
message, takes the Article Titles and makes them the link text to be used
with the link that is provided and then have the article abstract listed
below.

Can anyone point me in the correct direction on how I can learn how to do
this?

Thank you very much,
Jonathan Duncan

The daily email message I get comes in the following format:

*-*-*-* Start Email Message *-*-*-*
EMAIL HEADERS

Bulleted list of article titles
-article 1
-article 2

=  (That is 5 equal characters)

Article 1 Title
See http://some.server.com/path/to/article.html
 http://some.server.com/path/to/article.html";>Link
See http://additional.server.com/path/to/article.html
 http://additional.server.com/path/to/article.html";>Link

Article 1 abstract.  This gives a brief excerpt of the article.

=  (That is 5 equal characters)

Article 2 Title
See http://some.server.com/path/to/article.html
 http://some.server.com/path/to/article.html";>Link
See http://additional.server.com/path/to/article.html
 http://additional.server.com/path/to/article.html";>Link

Article 2 abstract.  This gives a brief excerpt of the article.

-
Copyright text ends the message



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




Re: [PHP] storing html in a db

2002-06-10 Thread 1LT John W. Holmes

Look at the output buffering section in the manual. Read the user comments.

http://www.php.net/manual/en/ref.outcontrol.php

---John Holmes...

- Original Message -
From: "W. Enserink" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 10, 2002 3:34 PM
Subject: [PHP] storing html in a db


> hi all,
>
>
> i was wondering,
>
> i'm making a php page. this php page is outputting a very lot of html to a
> browser.
> is it also possible to "capture" this html code and store it in a
database?
> so later on i can retrieve a full html page without the "dynamic elements
in
> it"
>
> thx Wilbert
>
>
> -
> Pas de Deux
> Van Mierisstraat 25
> 2526 NM Den Haag
> tel 070 4450855
> fax 070 4450852
> http://www.pdd.nl
> [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] storing html in a db

2002-06-10 Thread Jared Boelens

You might consider using output buffering in order to accomplish that goal.

http://www.php.net/manual/en/ref.outcontrol.php

You could buffer the entire page and store the buffer into the DB at the end
of the page load.

-Jared

-Original Message-
From: W. Enserink [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 3:35 PM
To: [EMAIL PROTECTED]
Subject: [PHP] storing html in a db


hi all,


i was wondering,

i'm making a php page. this php page is outputting a very lot of html to a
browser.
is it also possible to "capture" this html code and store it in a database?
so later on i can retrieve a full html page without the "dynamic elements in
it"

thx Wilbert


-
Pas de Deux
Van Mierisstraat 25
2526 NM Den Haag
tel 070 4450855
fax 070 4450852
http://www.pdd.nl
[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] Formatting XML Data

2002-06-10 Thread Ray Hunter

Also checkout phpbeginner.com it has an article about xslt, xml and php...

www.phpbeginner.com



Thank you,

RAY HUNTER



-Original Message-
From: Sebastian A. [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 09, 2002 9:21 AM
To: PHP General List (PHP.NET)
Subject: [PHP] Formatting XML Data


Hello,

I have been working with XML in the recent weeks and I have recently come
across the need to format some of the data in my XML. For example I might
have a large XML file and I would like some of the text to be bold, or maybe
I would like to insert a hyper-link. Unfortunately it does not seem I can do
this with ordinary HTML tags because they will be interpreted as XML tags. I
am sure, however that there is another way of doing this. Does anyone know
how?

Thanks



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



Re: [PHP] Help with header function

2002-06-10 Thread Shane Kelly

I don't get an error message...but the page doesn't automatically forward to
the redirected url.





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




Re: [PHP] Formatting XML Data

2002-06-10 Thread olinux

Check out these articles at DevShed
http://www.devshed.com/Server_Side/XML/XMLwithPHP/

olinux


--- Dan Hardiker <[EMAIL PROTECTED]>
wrote:
> > I would like some of the text to be
> > bold, or maybe I would like to insert a
> hyper-link. Unfortunately it
> > does not seem I can do this with ordinary HTML
> tags because they will
> > be interpreted as XML tags. I am sure, however
> that there is another
> > way of doing this. Does anyone know how?
> 
> Have a look into XSLT... its all in the manual.
> 
> 
> -- 
> Dan Hardiker [[EMAIL PROTECTED]]
> ADAM Software & Systems Engineer
> First Creative Ltd
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




[PHP] storing html in a db

2002-06-10 Thread W. Enserink

hi all,


i was wondering,

i'm making a php page. this php page is outputting a very lot of html to a
browser.
is it also possible to "capture" this html code and store it in a database?
so later on i can retrieve a full html page without the "dynamic elements in
it"

thx Wilbert


- 
Pas de Deux 
Van Mierisstraat 25 
2526 NM Den Haag 
tel 070 4450855 
fax 070 4450852 
http://www.pdd.nl 
[EMAIL PROTECTED] 
-

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




Re: [PHP] Help with header function

2002-06-10 Thread Stuart Dallas

On Monday, June 10, 2002 at 8:03:40 PM, you wrote:
>  header("Location:http://www.mysite.com/file_exists.php";);

You should have a space after Location:...

header("Location: http://www.mysite.com/file_exists.php";);

If that's not it, please post the error/what happens. We are not mind readers.

-- 
Stuart


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




Fw: [PHP] Help with header function

2002-06-10 Thread Kevin Stone

What kind of an error are you recieving?  Could it be you're sending output
prior to the header function?  The alternative solution would be to
include("file_exists.php");  then exit.
-Kevin

- Original Message -
From: "Shane Kelly" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 10, 2002 1:03 PM
Subject: [PHP] Help with header function


> I'm creating an upload form for users to upload files to my server.  but I
> don't want them to overwrite existing files if they try to upload using
the
> same file name...
>
> THE FOLLOWING SCRIPT WORKS PERFECTLY
>
> if (file_exists("uploads/documents/".$file_name)==TRUE) {
>  die ("File already exists");
>  }
>  else {
>  copy($file,"uploads/documents/".$file_name); }
>
> BUT  I WOULD RATHER HAVE IT REDIRECT THEM TO ANOTHER PAGE USING
>
> if (file_exists("uploads/documents/".$file_name)==TRUE) {
>  header("Location:http://www.mysite.com/file_exists.php";);
>  }
>  else {
>  copy($file,"uploads/documents/".$file_name); }
>
> THIS SCRIPT DOESN'T WORK...DOES ANYONE KNOW WHY???
>
> Thanks
>
> Shane
> [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] multi-line textfields don't post

2002-06-10 Thread Kevin Stone

By "multi-line" text field do you mean a  field?  Could be you're
not using it right.  Remeber this construct *requires* the closing tag.  The
vlaue goes between the two tags.





- Original Message -
From: "Phil Schwarzmann" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 10, 2002 1:09 PM
Subject: [PHP] multi-line textfields don't post


> Whenever I use a mult-line textfield, the data inside doesn't transfer
> over.  But single-line textfields work just fine.
>
> how do i fix this?
>



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




[PHP] Help with header function

2002-06-10 Thread Shane Kelly

I'm creating an upload form for users to upload files to my server.  but I
don't want them to overwrite existing files if they try to upload using the
same file name...

THE FOLLOWING SCRIPT WORKS PERFECTLY

if (file_exists("uploads/documents/".$file_name)==TRUE) {
 die ("File already exists");
 }
 else {
 copy($file,"uploads/documents/".$file_name); }

BUT  I WOULD RATHER HAVE IT REDIRECT THEM TO ANOTHER PAGE USING

if (file_exists("uploads/documents/".$file_name)==TRUE) {
 header("Location:http://www.mysite.com/file_exists.php";);
 }
 else {
 copy($file,"uploads/documents/".$file_name); }

THIS SCRIPT DOESN'T WORK...DOES ANYONE KNOW WHY???

Thanks

Shane
[EMAIL PROTECTED]



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




[PHP] Re: multi-line textfields don't post

2002-06-10 Thread Shane Kelly

Do you mean the data doesn't transfer over to your database?


"Phil Schwarzmann" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Whenever I use a mult-line textfield, the data inside doesn't transfer
> over.  But single-line textfields work just fine.
>
> how do i fix this?
>



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




[PHP] multi-line textfields don't post

2002-06-10 Thread Phil Schwarzmann

Whenever I use a mult-line textfield, the data inside doesn't transfer
over.  But single-line textfields work just fine.
 
how do i fix this?



Re: [PHP] Calendars

2002-06-10 Thread Jason Wong

On Tuesday 11 June 2002 01:24, Kevin P wrote:
> Hi
> I am trying to feature a calendar on a web site. I would like it to display
> on a page and be able to change to another month when this is requested and
> display items for the general public. I want the client to be able to go
> into the database and update the items and those items to appear on the
> site. Is there something outthere already packaged like this?

There should be quite a few:

http://freshmeat.net
http://sourceforge.net
http://phpclasses.gremlins.com.hk

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
Do you have exactly what I want in a plaid poindexter bar bat??
*/


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




Re: [PHP] Apache 2.0 or 1.3 for php on windows XP ?

2002-06-10 Thread Thomas Edison Jr.

Ok... i'll go for 1.3.24

Thanks,
T. Edison Jr.


--- R'twick Niceorgaw <[EMAIL PROTECTED]> wrote:
> use apache 1.3.24.. 
> php has experimental support for apache 2.0.x.. so
> don't trust it much
> 
> - Original Message - 
> From: "Thomas Edison Jr." <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 10, 2002 2:49 PM
> Subject: [PHP] Apache 2.0 or 1.3 for php on windows
> XP ?
> 
> 
> > Glory!
> > 
> > I have Windows XP Home Edition.. and i downloaded
> the
> > latest PHP & mySQL. I have Apache 1.3.19 earlier,
> > which for some reason gives "Service Apache Not
> > Installed" now even when everything is installed,
> on
> > my windows XP.
> > 
> > So i decided to get a new Apache Web Server. 
> > They have 2 versions available.. 2.0 & 1.3 .. i
> just
> > want to know which one i should use, and if PHP is
> > compatible with both.. and that if i do use 2.0,
> the
> > Install Doc in PHP has given no instructions on
> how to
> > install php on Apache 2.0, so how will i install
> it..
> > 
> > Any suggestions most welcome..
> > 
> > T. Edison Jr.
> > 
> > 
> > 
> > =
> > Rahul S. Johari (Director)
> > **
> > Abraxas Technologies Inc.
> > Homepage : http://www.abraxastech.com
> > Email : [EMAIL PROTECTED]
> > Tel : 91-4546512/4522124
> > ***
> > 
> > __
> > Do You Yahoo!?
> > Yahoo! - Official partner of 2002 FIFA World Cup
> > http://fifaworldcup.yahoo.com
> > 
> > -- 
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit:
> http://www.php.net/unsub.php
> > 
> > 
> 
> 


=
Rahul S. Johari (Director)
**
Abraxas Technologies Inc.
Homepage : http://www.abraxastech.com
Email : [EMAIL PROTECTED]
Tel : 91-4546512/4522124
***

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




[PHP] Apache 2.0 or 1.3 for php on windows XP ?

2002-06-10 Thread Thomas Edison Jr.

Glory!

I have Windows XP Home Edition.. and i downloaded the
latest PHP & mySQL. I have Apache 1.3.19 earlier,
which for some reason gives "Service Apache Not
Installed" now even when everything is installed, on
my windows XP.

So i decided to get a new Apache Web Server. 
They have 2 versions available.. 2.0 & 1.3 .. i just
want to know which one i should use, and if PHP is
compatible with both.. and that if i do use 2.0, the
Install Doc in PHP has given no instructions on how to
install php on Apache 2.0, so how will i install it..

Any suggestions most welcome..

T. Edison Jr.



=
Rahul S. Johari (Director)
**
Abraxas Technologies Inc.
Homepage : http://www.abraxastech.com
Email : [EMAIL PROTECTED]
Tel : 91-4546512/4522124
***

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




Re: [PHP] Switching from HTTPS to HTTP using PHP?

2002-06-10 Thread Andre Dubuc

Hi Ed,

Maybe it's just one of those slow days, brain-wise. But I have a 'problem' 
with https remaining in that mode even on pages that haven't specifically 
requested it. That was not my understanding how it worked. Now, if I have to 
call "http" on pages that do not need https, then how would I be able to 
distinguish whether or not the mode is https or not. 

[I'm thinking of my bank's secure pages -- after I'm finished with 
the secure stuff, I get booted out of https. I suppose that's what I expected 
would happen (only pages calling https would be in it.)

Sigh . . . more reading to do :>

Regards,
Andre

On Monday 10 June 2002 02:28 pm, you wrote:
> Isn't it just an issue of whether you call http: or https: ?
>
> -Original Message-
> From: Andre Dubuc [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 10, 2002 11:27 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Switching from HTTPS to HTTP using PHP?
>
>
> After completing most of the coding for my site, I would like to use
> "https"
>
> for restricted areas that require login. In short tests, I've discovered
> that, yes, I can engage the encrypted mode while calling these pages, but
> I've also discovered that it stays in the "https" mode even when it passes
> to once non-restricted pages. I'm not sure whether that is a problem, but 
> .
>
> . . I gather this is "normal" behavior since I had requested "https". But
> is
>
> it possible to "unrequest" ?
>
> My question is simple: is there a way to "get out of" or "turn off" https
> once it has been initiated -- using PHP?
>
> Since I have limited or no experience with https, any pointers, advice, or
> admonitions would be greatly appreciated. And they say, "Ignorance is
> bliss"
>
> -- I'm not too sure about that :>
>
> Tia,
> Andre

-- 
Please pray the Holy Rosary to end the holocaust of abortion.
Remember in your prayers the Holy Souls in Purgatory.

May God bless you abundantly in His love!
For a free Cenacle Scriptural Rosary Booklet: http://www.webhart.net/csrb/

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




[PHP] Re: Calendars

2002-06-10 Thread Tom Sommer

"Kevin P" <[EMAIL PROTECTED]> skrev i en meddelelse
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi
> I am trying to feature a calendar on a web site. I would like it to
display
> on a page and be able to change to another month when this is requested
and
> display items for the general public. I want the client to be able to go
> into the database and update the items and those items to appear on the
> site. Is there something outthere already packaged like this?

I'm working on one right now that I will release some time in the near
future :)
I'll drop you a note when it's complete


--
Tom Sommer
E-Mail: webmaster(a)tsn.dk
Web: http://www.tsn.dk



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




Re: [PHP] ForceType hack with Apache 2?

2002-06-10 Thread Danny Shepherd

I ran into this problem too - but there is a conf directive to handle it now
(even on FreeBSD, which I use) -
http://httpd.apache.org/docs-2.0/mod/core.html#acceptpathinfo

Danny

- Original Message -
From: "a.h.s.boy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 10, 2002 7:14 PM
Subject: [PHP] ForceType hack with Apache 2?


> I've built an application framework in PHP that makes heavy use of the
> "smart URL" technique for passing variables, which works great with
> Apache 1.3.22. I have reports, however, that it breaks under Apache 2.x,
> and would like to verify whether or not anyone can confirm this.
>
> I'm using URLs to pass parameters in the manner of the relatively
> well-known method, e.g.
>
> http://www.server.com/info/display/123/index.php
>
> with
>
> 
>ForceType  application/x-httpd-php
> 
>
> in the httpd.conf file. It works like a charm (on Linux, anyway). I've
> run into problems with it under FreeBSD, but I was forewarned that it
> might not work there.
>
> Another user of the framework, however, just installed Apache 2/PHP
> 4.2.1 on Linux, and reports that the "smart URLs" aren't being so smart,
> and generate 404s.
>
> Strangely, the URL
>
> http://www.server.com/info
>
> will correctly execute as PHP a script called "info", but
>
> http://www.server.com/info/display/123
>
> will NOT execute the info script, instead looking for a directory path
> that doesn't exist, and generating a 404 error.
>
> Since I don't have Apache 2 installed, I can't test it myself. Has
> anyone used this trick (and made it work) with Apache 2? I don't know
> whether to blame a fundamental change in Apache 2, or to look for some
> other configuration error in the user's system.
>
> Cheers,
> spud.
>
>
> ---
> a.h.s. boy
> spud(at)nothingness.org"as yes is to if,love is to yes"
> http://www.nothingness.org/
> PGP Fingerprint: 7B5B 2E7A FA96 865A D9D9  5D6D 54CD D2C1 3429 56B4
> ---
>
>
> --
> 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] matrix functions

2002-06-10 Thread Pushkar Pradhan

If there isn't one, (have you tried phpclasses.org etc.), I think the
string functions are powerful enough.
What kind of manipulations you need? Is it simple column/row transforms or
doing all kinds of maptrix operations?
> hi list,
>
> i have a question regarding a class for matrix modifications so i dont
> have to re-invent the wheel ;)
>
> i would like to do things like this:
>
> matrix with 5*5 colums/rows
>
> x x x x x
> 0 0 0 0 0
> x x x x x
> x x x x x
> x x x x x
>
>
> x x x x x
> x x x x x
> 0 0 0 0 0
> x x x x x
> x x x x x
>
>
> maybe that is incredebly stupid and simple but
> my brain doesnt tell me anything right now -
> how can i transform colums/rows quickly and efficient?
>
> Any help appreciated!
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

-Pushkar S. Pradhan


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




RE: [PHP] Switching from HTTPS to HTTP using PHP?

2002-06-10 Thread Lazor, Ed

Isn't it just an issue of whether you call http: or https: ?

-Original Message-
From: Andre Dubuc [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 11:27 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Switching from HTTPS to HTTP using PHP?


After completing most of the coding for my site, I would like to use "https"

for restricted areas that require login. In short tests, I've discovered 
that, yes, I can engage the encrypted mode while calling these pages, but 
I've also discovered that it stays in the "https" mode even when it passes 
to once non-restricted pages. I'm not sure whether that is a problem, but  .

. . I gather this is "normal" behavior since I had requested "https". But is

it possible to "unrequest" ?

My question is simple: is there a way to "get out of" or "turn off" https 
once it has been initiated -- using PHP?

Since I have limited or no experience with https, any pointers, advice, or 
admonitions would be greatly appreciated. And they say, "Ignorance is bliss"

-- I'm not too sure about that :>

Tia, 
Andre

-- 
Please pray the Holy Rosary to end the holocaust of abortion.
Remember in your prayers the Holy Souls in Purgatory.

May God bless you abundantly in His love!
For a free Cenacle Scriptural Rosary Booklet: http://www.webhart.net/csrb/

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

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

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




RE: [PHP] matrix functions

2002-06-10 Thread Lazor, Ed

I think this will work.  You'll have to test it to confirm:

$A[0][0] = "x";
$A[0][1] = "x";
$A[0][2] = "x";
$A[0][3] = "x";
$A[0][4] = "x";
$A[1][0] = "0";
$A[1][1] = "0";
$A[1][2] = "0";
$A[1][3] = "0";
$A[1][4] = "0";

$B = $C = array();

$B = $A[0];
$C = $A[1];

$A[0] = $C;
$A[1] = $B;

-Original Message-
From: johannes reichardt [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 8:32 PM
To: [EMAIL PROTECTED]
Subject: [PHP] matrix functions


hi list, 

i have a question regarding a class for matrix modifications so i dont
have to re-invent the wheel ;)

i would like to do things like this:

matrix with 5*5 colums/rows

x x x x x 
0 0 0 0 0
x x x x x
x x x x x
x x x x x


x x x x x 
x x x x x
0 0 0 0 0
x x x x x
x x x x x


maybe that is incredebly stupid and simple but
my brain doesnt tell me anything right now - 
how can i transform colums/rows quickly and efficient?

Any help appreciated!


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

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

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




[PHP] Switching from HTTPS to HTTP using PHP?

2002-06-10 Thread Andre Dubuc

After completing most of the coding for my site, I would like to use "https" 
for restricted areas that require login. In short tests, I've discovered 
that, yes, I can engage the encrypted mode while calling these pages, but 
I've also discovered that it stays in the "https" mode even when it passes 
to once non-restricted pages. I'm not sure whether that is a problem, but  . 
. . I gather this is "normal" behavior since I had requested "https". But is 
it possible to "unrequest" ?

My question is simple: is there a way to "get out of" or "turn off" https 
once it has been initiated -- using PHP?

Since I have limited or no experience with https, any pointers, advice, or 
admonitions would be greatly appreciated. And they say, "Ignorance is bliss" 
-- I'm not too sure about that :>

Tia, 
Andre

-- 
Please pray the Holy Rosary to end the holocaust of abortion.
Remember in your prayers the Holy Souls in Purgatory.

May God bless you abundantly in His love!
For a free Cenacle Scriptural Rosary Booklet: http://www.webhart.net/csrb/

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




[PHP] matrix functions

2002-06-10 Thread johannes reichardt

hi list, 

i have a question regarding a class for matrix modifications so i dont
have to re-invent the wheel ;)

i would like to do things like this:

matrix with 5*5 colums/rows

x x x x x 
0 0 0 0 0
x x x x x
x x x x x
x x x x x


x x x x x 
x x x x x
0 0 0 0 0
x x x x x
x x x x x


maybe that is incredebly stupid and simple but
my brain doesnt tell me anything right now - 
how can i transform colums/rows quickly and efficient?

Any help appreciated!


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




[PHP] ForceType hack with Apache 2?

2002-06-10 Thread a . h . s . boy

I've built an application framework in PHP that makes heavy use of the 
"smart URL" technique for passing variables, which works great with 
Apache 1.3.22. I have reports, however, that it breaks under Apache 2.x, 
and would like to verify whether or not anyone can confirm this.

I'm using URLs to pass parameters in the manner of the relatively 
well-known method, e.g.

http://www.server.com/info/display/123/index.php

with


   ForceType  application/x-httpd-php


in the httpd.conf file. It works like a charm (on Linux, anyway). I've 
run into problems with it under FreeBSD, but I was forewarned that it 
might not work there.

Another user of the framework, however, just installed Apache 2/PHP 
4.2.1 on Linux, and reports that the "smart URLs" aren't being so smart, 
and generate 404s.

Strangely, the URL

http://www.server.com/info

will correctly execute as PHP a script called "info", but

http://www.server.com/info/display/123

will NOT execute the info script, instead looking for a directory path 
that doesn't exist, and generating a 404 error.

Since I don't have Apache 2 installed, I can't test it myself. Has 
anyone used this trick (and made it work) with Apache 2? I don't know 
whether to blame a fundamental change in Apache 2, or to look for some 
other configuration error in the user's system.

Cheers,
spud.


---
a.h.s. boy
spud(at)nothingness.org"as yes is to if,love is to yes"
http://www.nothingness.org/
PGP Fingerprint: 7B5B 2E7A FA96 865A D9D9  5D6D 54CD D2C1 3429 56B4
---


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




Re: [PHP] capturing bouncers

2002-06-10 Thread Analysis & Solutions

Hi Subhendu:

On Mon, Jun 10, 2002 at 10:38:10PM +0530, Subhendu Mohapatra wrote:

> $from="From:[EMAIL PROTECTED]\n;
> $headers = $from."Content-Type: text/html; charset=iso-8859-1\n";

That should have a space in there.  Also, it's best to have an \r too.

   "From: [EMAIL PROTECTED]\r\n";

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

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




RE: [PHP] SMS with PHP

2002-06-10 Thread Jared Boelens

I had this exact need but I was solved partially by my cell phone provider.
I have verizon and verizon actaully assigns each phone an email address if
you have text messenging.

So all i had to do was send an email to that address and it would go to my
phone in about 30 seconds or so.

-Jared

-Original Message-
From: Alexandra Aguiar [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 1:47 PM
To: [EMAIL PROTECTED]
Subject: [PHP] SMS with PHP


Hello ppl...
i'd like to know if it's possible that a php script sends  message to a cell
phone... i please anything about it ...

thnx in advance..

Alexandra Aguiar


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




[PHP] safe mode and php cgi-binary

2002-06-10 Thread Lewis Watson

I have compiled and installed php4.2.1 on my linux www server that runs
apache. Since we have many virtual hosts and utilize suexec I decided to
install php as a binary and be able to use php as a cgi binary. I am able to
run my php scripts through suexec which is great. The problem is  that any
changes I make to php.ini are not reflected on the php()info page. No
doc_root, nothing Do I lose the safe mode ability since we installed as
a cgi? What do I need to do to see what happening?
Thanks.
Lewis Watson



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




Re: [PHP] FUDforum 2.0 Stable Released

2002-06-10 Thread Ilia A.

Jeff,

You are absolutely correct that there are many forum software choices out 
there however, not are identical or even similar. 
First there is the design language choice, there are many forums that are 
written in PHP, but there are no less forums written in PERL, ASP and 
ColdFusion because not all servers support PHP.
Then there is the distinction between open & closed sources forums like 
FUDforum & phpBB which are open source and Vbulletin & PHPthreads which are 
closed source.
Personally, I have decided to write my own forum because after looking at the 
2 prevailing open source forums Phorum & phpBB2 I was not impressed by their 
code to put it lightly. Thus, I decided to make a clean break and write 
something, which in my option is better.

In the end, having more choice is hardly a bad thing, no?

Ilia


On June 10, 2002 01:51 pm, Jeff Lewis wrote:
> Is it just me or the forum area totally overflowing with choices? I often
> wonder why people don't pool talents and work on really great products,
> instead people break off and make their own system - quite unusual...
>
>
> Jeff
>
> - Original Message -
> From: "Ilia A." <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 10, 2002 1:54 PM
> Subject: [PHP] FUDforum 2.0 Stable Released
>
> > FUDforum 2.0 is a web forum released under the GPL license, written in
>
> PHP4
>
> > utilizing a MySQL database backend.
> > The forum is completely customizable via a templating system, which is
> > compiled for optimal performance. The templating
> > system also has integrated i18n support, which allows the forum to be
> > used
>
> in
>
> > other languages, at this time there are 5
> > different languages to, which translations are available in the standard
> > distribution and more will be available soon.
> > The spell checker integrated into the forum, which utilizes pspell
> > library also has multi-lingual support,
> > thus permitting even the non English speakers to spell check their
>
> messages.
>
> > FUDforum 2.0 also includes a powerful user group management system, that
> > allows fine grained control over the users of the forum,
> > for the administrator as well as the group manager(s) assigned by the
> > administrator.
> > In addition to these features, the forum contains all the other features
>
> you
>
> > may have come to expect from a web forum, such as the
> > ability to attach files to messages, include polls, private messaging
>
> system,
>
> > FUDcode, which allows the user to style their text
> > without the need for HTML, thread & forum subscriptions with both e-mail
> > &
>
> ICQ
>
> > notification, buddy and ignore lists, a full text search
> > and many more.
> > Despite all these features, FUDforum is extremely fast and scales
>
> extremely
>
> > well, by using MySQL indexes and table views implemented in PHP
> > to retrieve the data in the most expedient manner possible. The result,
> > is that most forum pages take ~0.01-0.02 seconds to generate on
> > most computers, even while the forum is under a heavy load.
> > The forum, by default is setup with very secure file permissions, that
> > are designed in such a way that given a reasonably well setup web
> > server, your forum's data will be safe against hackers.
> >
> > You can download FUDforum from http://fud.prohost.org/download.php and if
>
> you
>
> > have any questions, there is a support forum at
> > http://fud.prohost.org/forum/, where you can get answers to your
> > questions
>
> and
>
> > concerns about the forum.
> >
> > Ilia Alshanetsky
> > [EMAIL PROTECTED]
> > FUDforum Core Developer


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




RE: [PHP] FUDforum 2.0 Stable Released

2002-06-10 Thread Ray Hunter

Try using a different database and it might be worth while...

Thank you,

RAY HUNTER



-Original Message-
From: Jeff Lewis [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 11:51 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] FUDforum 2.0 Stable Released


Is it just me or the forum area totally overflowing with choices? I often
wonder why people don't pool talents and work on really great products,
instead people break off and make their own system - quite unusual...


Jeff

- Original Message -
From: "Ilia A." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 10, 2002 1:54 PM
Subject: [PHP] FUDforum 2.0 Stable Released


> FUDforum 2.0 is a web forum released under the GPL license, written in
PHP4
> utilizing a MySQL database backend.
> The forum is completely customizable via a templating system, which is
> compiled for optimal performance. The templating
> system also has integrated i18n support, which allows the forum to be used
in
> other languages, at this time there are 5
> different languages to, which translations are available in the standard
> distribution and more will be available soon.
> The spell checker integrated into the forum, which utilizes pspell library
> also has multi-lingual support,
> thus permitting even the non English speakers to spell check their
messages.
> FUDforum 2.0 also includes a powerful user group management system, that
> allows fine grained control over the users of the forum,
> for the administrator as well as the group manager(s) assigned by the
> administrator.
> In addition to these features, the forum contains all the other features
you
> may have come to expect from a web forum, such as the
> ability to attach files to messages, include polls, private messaging
system,
> FUDcode, which allows the user to style their text
> without the need for HTML, thread & forum subscriptions with both e-mail &
ICQ
> notification, buddy and ignore lists, a full text search
> and many more.
> Despite all these features, FUDforum is extremely fast and scales
extremely
> well, by using MySQL indexes and table views implemented in PHP
> to retrieve the data in the most expedient manner possible. The result, is
> that most forum pages take ~0.01-0.02 seconds to generate on
> most computers, even while the forum is under a heavy load.
> The forum, by default is setup with very secure file permissions, that are
> designed in such a way that given a reasonably well setup web
> server, your forum's data will be safe against hackers.
>
> You can download FUDforum from http://fud.prohost.org/download.php and if
you
> have any questions, there is a support forum at
> http://fud.prohost.org/forum/, where you can get answers to your questions
and
> concerns about the forum.
>
> Ilia Alshanetsky
> [EMAIL PROTECTED]
> FUDforum Core Developer




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



Re: [PHP] FUDforum 2.0 Stable Released

2002-06-10 Thread Jeff Lewis

Is it just me or the forum area totally overflowing with choices? I often
wonder why people don't pool talents and work on really great products,
instead people break off and make their own system - quite unusual...


Jeff

- Original Message -
From: "Ilia A." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 10, 2002 1:54 PM
Subject: [PHP] FUDforum 2.0 Stable Released


> FUDforum 2.0 is a web forum released under the GPL license, written in
PHP4
> utilizing a MySQL database backend.
> The forum is completely customizable via a templating system, which is
> compiled for optimal performance. The templating
> system also has integrated i18n support, which allows the forum to be used
in
> other languages, at this time there are 5
> different languages to, which translations are available in the standard
> distribution and more will be available soon.
> The spell checker integrated into the forum, which utilizes pspell library
> also has multi-lingual support,
> thus permitting even the non English speakers to spell check their
messages.
> FUDforum 2.0 also includes a powerful user group management system, that
> allows fine grained control over the users of the forum,
> for the administrator as well as the group manager(s) assigned by the
> administrator.
> In addition to these features, the forum contains all the other features
you
> may have come to expect from a web forum, such as the
> ability to attach files to messages, include polls, private messaging
system,
> FUDcode, which allows the user to style their text
> without the need for HTML, thread & forum subscriptions with both e-mail &
ICQ
> notification, buddy and ignore lists, a full text search
> and many more.
> Despite all these features, FUDforum is extremely fast and scales
extremely
> well, by using MySQL indexes and table views implemented in PHP
> to retrieve the data in the most expedient manner possible. The result, is
> that most forum pages take ~0.01-0.02 seconds to generate on
> most computers, even while the forum is under a heavy load.
> The forum, by default is setup with very secure file permissions, that are
> designed in such a way that given a reasonably well setup web
> server, your forum's data will be safe against hackers.
>
> You can download FUDforum from http://fud.prohost.org/download.php and if
you
> have any questions, there is a support forum at
> http://fud.prohost.org/forum/, where you can get answers to your questions
and
> concerns about the forum.
>
> Ilia Alshanetsky
> [EMAIL PROTECTED]
> FUDforum Core Developer




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




Re: [PHP] SMS with PHP

2002-06-10 Thread Chris Knipe

Not as far as I know.

But the PHP script may very likely be able to send a message to a SMS
Gateway...

SMS messages doesn't run on TCP/IP (Your cell phone doesn't have a IP
Address).

Kind Regards,

Chris Knipe
MegaLAN Corporate Networking Services
Tel: +27 21 854 7064
Cell: +27 72 434 7582

- Original Message -
From: "Alexandra Aguiar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 10, 2002 7:46 PM
Subject: [PHP] SMS with PHP


Hello ppl...
i'd like to know if it's possible that a php script sends  message to a cell
phone... i please anything about it ...

thnx in advance..

Alexandra Aguiar



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




[PHP] SMS with PHP

2002-06-10 Thread Alexandra Aguiar

Hello ppl...
i'd like to know if it's possible that a php script sends  message to a cell phone... 
i please anything about it ...

thnx in advance..

Alexandra Aguiar



  1   2   >