[PHP] Storing large amounts of text in db

2003-07-07 Thread Aaron Axelsen
 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I am working on some scripts that will allow for uploading of files
that will then be stored in a database with the ability to be listed
and searched.

What im wondering, is if I have a user upload a file in txt, or doc
format if there is an easy way to read that file, store the
information in the database so it is easily accessable later.

I thinkg that longtext would be the right mysql option for me.

One problem I need to conquer is how to maintain formatting in the
documents.

Any suggestions and comments are welcome.  Thanks.

- ---
Aaron Axelsen
AIM: AAAK2
Email: [EMAIL PROTECTED]

Want reliable web hosting at affordable prices?
www.modevia.com
 
Web Dev/Design Community/Zine
www.developercube.com


-BEGIN PGP SIGNATURE-
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPwpi6brnDjSLw9ADEQLiBQCgmXYiAR5kMVUggxZv57w88ahtTigAoJp4
OjB7NpviuXTu3+c9s1czzRPl
=l8OI
-END PGP SIGNATURE-



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



RE: [PHP] Sessions

2003-07-08 Thread Aaron Axelsen
 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Here is a good session tutorial, maybe it will help you see something
your missing.

http://www.sitepoint.com/article/319


- ---
Aaron Axelsen
AIM: AAAK2
Email: [EMAIL PROTECTED]

Want reliable web hosting at affordable prices?
www.modevia.com
 
Web Dev/Design Community/Zine
www.developercube.com



- -Original Message-
From: Jason k Larson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 08, 2003 11:15 AM
To: Dave Alger
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Sessions


You need to make sure that when you are being directed to the other
pages that the session 
name and session id are being passed.  Check session.use_trans_sid in
the sessions section 
of phpinfo().  The session name and id are available globally after a
session has been 
started as the constant SID.  If you are posting form data, make sure
there is an input 
for the session name with a value of the session id, etc.

Hope that helps.

- --
Jason k Larson


Dave Alger wrote:
> Hi All,
> 
> I'm struggling with a session problem and I'm not sure where I
> should  be looking for the answer.
> 
> Most of my pages begin like this:
>   
> 
> include_once('cfheader.php');
> $feedback = cfHeader("Main Page");
> //Start of page code
> 
> The cfheader.php file begins like this:
> 
> 
>  session_start();
> function cfHeader($Title,$Protect=false)
> {
>  $feedback="";
>  //IF we're loggin on then destory and get new session
>  if (IsSet($_POST['login']))
>  {
>   include_once('userreg.inc');
>   session_destroy(); //Destroy current session before continuing
>   $feedback =do_login();
>  }
>  if ($Protect==true && !IsSet($_SESSION['name']))
>  {
>   //No Session.
>   echo "";
> //Redirect 
>   exit;
>  }
> 
> 
> 
> This works fine on my development PC, (PHP v  4.3.1) and on my
> primary  test site (PHP v4.2.2). However when I try it on the
> target site (PHP  v4.1.2) then I find that immediately after
> starting the session 
> everything works fine, however when I move to any other page the 
> session information is lost and I'm redirected to log in again.
> 
> I was looking over the PHPInfo but to be honest I can't see what it
> is  that's different.
> 
> All help is gratefully appreciated.
> 
> regards,
> Dave
> 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.497 / Virus Database: 296 - Release Date: 04/07/2003
> 
> 
> 


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

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPwru1rrnDjSLw9ADEQJ1BACdHrNZ0thj/W4eCgEhc800ufxhsTQAoLlm
TyX4yM46n8VgUMQNQtbwHKC8
=E8V5
-END PGP SIGNATURE-



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



RE: [PHP] $_POST problem

2003-07-09 Thread Aaron Axelsen
 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Try:

$img_keywords = trim({$_POST["keywords"]});

- ---
Aaron Axelsen
AIM: AAAK2
Email: [EMAIL PROTECTED]

Want reliable web hosting at affordable prices?
www.modevia.com
 
Web Dev/Design Community/Zine
www.developercube.com



- -Original Message-
From: Micah Montoy [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 09, 2003 10:26 PM
To: [EMAIL PROTECTED]
Subject: [PHP] $_POST problem


Anyone see what when I submit this, I can't do a $_POST on it?  I
check with the DB first to see if there is a value and if so, I fill
it, otherwise, it will return a blank for the user to fill if they
want.

" size="53" maxlength="500">

On the page that it goes to when it is submitted, the post looks like
this:

$img_keywords = trim($_POST["keywords"]);


thanks



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


-BEGIN PGP SIGNATURE-
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPwzdn7rnDjSLw9ADEQIcCQCgkktDGf9u26bOntsqMPw93lpINdcAoM9h
tVqNcesMuM/L3fZaXmIdKdId
=fJlG
-END PGP SIGNATURE-



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



RE: [PHP] $_POST problem

2003-07-09 Thread Aaron Axelsen
 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Sometimes in situatinos like that, it does the trick for me, im not
really sure why though .., I just now it works :)

- ---
Aaron Axelsen
AIM: AAAK2
Email: [EMAIL PROTECTED]

Want reliable web hosting at affordable prices?
www.modevia.com
 
Web Dev/Design Community/Zine
www.developercube.com



- -Original Message-
From: Joe Harman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 09, 2003 11:09 PM
To: 'Micah Montoy'; [EMAIL PROTECTED]
Subject: RE: [PHP] $_POST problem


Hey... Just for Sh** and giggles... Try removing the quotes from
keywords

Make it look like this...

$img_keywords = trim({$_POST[keywords]})

Hmmm. Something is up here... Never seen curly brackets used like
this... But that would probably be normal for me LOLjust
thought I point out anything unusual...



- -Original Message-
From: Micah Montoy [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 09, 2003 11:57 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] $_POST problem


Nope.  That didn't do it.  The errors I'm receiving are:

Notice: Undefined index: keywords in
c:\inetpub\wwwroot\webpage10\example\v_images\dsp_update_image.php on
line 22 and

Notice: Undefined variable: img_keywords in
c:\inetpub\wwwroot\webpage10\example\v_images\dsp_update_image.php on
line 29

thanks

"Aaron Axelsen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Try:
>
> $img_keywords = trim({$_POST["keywords"]});
>
> - ---
> Aaron Axelsen
> AIM: AAAK2
> Email: [EMAIL PROTECTED]
>
> Want reliable web hosting at affordable prices? www.modevia.com
>
> Web Dev/Design Community/Zine
> www.developercube.com
>
>
>
> - -Original Message-
> From: Micah Montoy [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 09, 2003 10:26 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] $_POST problem
>
>
> Anyone see what when I submit this, I can't do a $_POST on it?  I
> check with the DB first to see if there is a value and if so, I
> fill  it, otherwise, it will return a blank for the user to fill if
> they  want.
>
>  ?>" size="53" maxlength="500">
>
> On the page that it goes to when it is submitted, the post looks
> like this:
>
> $img_keywords = trim($_POST["keywords"]);
>
>
> thanks
>
>
>
> - --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> -BEGIN PGP SIGNATURE-
> Version: PGPfreeware 7.0.3 for non-commercial use
> <http://www.pgp.com> 
>
> iQA/AwUBPwzdn7rnDjSLw9ADEQIcCQCgkktDGf9u26bOntsqMPw93lpINdcAoM9h
> tVqNcesMuM/L3fZaXmIdKdId
> =fJlG
> -END PGP SIGNATURE-
>
>



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

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA+AwUBPwzqPLrnDjSLw9ADEQKPYgCgjokK/dQZwk10ylF+5Pjpz2YANisAmNGk
LTtC/a1boJlKfxXawTNyDPs=
=ptOt
-END PGP SIGNATURE-



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



RE: [PHP] $_POST problem

2003-07-09 Thread Aaron Axelsen
 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Whenever I call a vriable, I do something like $_POST['keyword']

Are you just getting a parse error?


- ---
Aaron Axelsen
AIM: AAAK2
Email: [EMAIL PROTECTED]

Want reliable web hosting at affordable prices?
www.modevia.com
 
Web Dev/Design Community/Zine
www.developercube.com



- -Original Message-
From: Micah Montoy [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 09, 2003 11:21 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] $_POST problem


Didn't make a difference.  Still getting the errors.


"Joe Harman" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hey... Just for Sh** and giggles... Try removing the quotes from 
> keywords
>
> Make it look like this...
>
> $img_keywords = trim({$_POST[keywords]})
>
> Hmmm. Something is up here... Never seen curly brackets used
> like  this... But that would probably be normal for me
> LOLjust 
> thought I point out anything unusual...
>
>
>
> -Original Message-
> From: Micah Montoy [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 09, 2003 11:57 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] $_POST problem
>
>
> Nope.  That didn't do it.  The errors I'm receiving are:
>
> Notice: Undefined index: keywords in 
> c:\inetpub\wwwroot\webpage10\example\v_images\dsp_update_image.php
> on  line 22 and
>
> Notice: Undefined variable: img_keywords in 
> c:\inetpub\wwwroot\webpage10\example\v_images\dsp_update_image.php
> on  line 29
>
> thanks
>
> "Aaron Axelsen" <[EMAIL PROTECTED]> wrote in message 
> news:[EMAIL PROTECTED]
> >
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> >
> > Try:
> >
> > $img_keywords = trim({$_POST["keywords"]});
> >
> > - ---
> > Aaron Axelsen
> > AIM: AAAK2
> > Email: [EMAIL PROTECTED]
> >
> > Want reliable web hosting at affordable prices? www.modevia.com
> >
> > Web Dev/Design Community/Zine
> > www.developercube.com
> >
> >
> >
> > - -Original Message-
> > From: Micah Montoy [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, July 09, 2003 10:26 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] $_POST problem
> >
> >
> > Anyone see what when I submit this, I can't do a $_POST on it?  I
> >  check with the DB first to see if there is a value and if so, I
> > fill  it, otherwise, it will return a blank for the user to fill
> > if they  want.
> >
> > 
> > ?>" size="53" maxlength="500">
> >
> > On the page that it goes to when it is submitted, the post looks 
> > like
> > this:
> >
> > $img_keywords = trim($_POST["keywords"]);
> >
> >
> > thanks
> >
> >
> >
> > - --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> > -BEGIN PGP SIGNATURE-
> > Version: PGPfreeware 7.0.3 for non-commercial use 
> > <http://www.pgp.com>
> >
> > iQA/AwUBPwzdn7rnDjSLw9ADEQIcCQCgkktDGf9u26bOntsqMPw93lpINdcAoM9h
> > tVqNcesMuM/L3fZaXmIdKdId
> > =fJlG
> > -END PGP SIGNATURE-
> >
> >
>
>
>
> --
> 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

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPwzq0rrnDjSLw9ADEQIGnACfbrvO1NUgRj11QHK9stcM1Tir250AoOeA
AHg0A8YeasOSjhaFIlZoEadb
=qWEI
-END PGP SIGNATURE-



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



[PHP] Storing HTML string in database

2003-07-10 Thread Aaron Axelsen
 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I have a php script set up for a user to upload a word document,
which is then coverted to html form, which I would then lke to store
in a database.

Howver, when I run the following command:

INSERT into sermons (data) VALUE ('$output');

It failes to work, because the $output strings contains "", which
messes things up.  Is there some way that this can be ignored while
entering into the databse?

Or am I better of replace all the "" with ''?

Thanks for the assistance.

- ---
Aaron Axelsen
AIM: AAAK2
Email: [EMAIL PROTECTED]

Want reliable web hosting at affordable prices?
www.modevia.com
 
Web Dev/Design Community/Zine
www.developercube.com


-BEGIN PGP SIGNATURE-
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPw4PI7rnDjSLw9ADEQLL5QCg6rxSs/roIiGyxC6nN3XNiuONg00AoK/T
PSAAAbM+O7+e6iVNMMnpK5AC
=phqJ
-END PGP SIGNATURE-



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



RE: [PHP] Storing HTML string in database

2003-07-10 Thread Aaron Axelsen
 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I had forgotten about that, thanks alot

- ---
Aaron Axelsen
AIM: AAAK2
Email: [EMAIL PROTECTED]

Want reliable web hosting at affordable prices?
www.modevia.com
 
Web Dev/Design Community/Zine
www.developercube.com



- -Original Message-
From: Jacob C [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 10, 2003 8:18 PM
To: Aaron Axelsen
Subject: Re: [PHP] Storing HTML string in database


Have a look at:

http://www.php.net/addslashes


Quoting Aaron Axelsen <[EMAIL PROTECTED]>:

>  
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> I have a php script set up for a user to upload a word document,
> which  is then coverted to html form, which I would then lke to
> store in a  database.
> 
> Howver, when I run the following command:
> 
> INSERT into sermons (data) VALUE ('$output');
> 
> It failes to work, because the $output strings contains "", which 
> messes things up.  Is there some way that this can be ignored while
>  entering into the databse?
> 
> Or am I better of replace all the "" with ''?
> 
> Thanks for the assistance.
> 
> - ---
> Aaron Axelsen
> AIM: AAAK2
> Email: [EMAIL PROTECTED]
> 
> Want reliable web hosting at affordable prices? www.modevia.com
>  
> Web Dev/Design Community/Zine
> www.developercube.com
> 
> 
> -BEGIN PGP SIGNATURE-
> Version: PGPfreeware 7.0.3 for non-commercial use
> <http://www.pgp.com>  
> 
> iQA/AwUBPw4PI7rnDjSLw9ADEQLL5QCg6rxSs/roIiGyxC6nN3XNiuONg00AoK/T
> PSAAAbM+O7+e6iVNMMnpK5AC
> =phqJ
> -END PGP SIGNATURE-
> 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


- -- 
"If there's a World War III, World War IV will be fought with sticks
and 
stones."

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPw4S7rrnDjSLw9ADEQIQXACfYZfZ7CAp0q2tbwC0cpZQthcfS3wAn2XM
0vltmGXLCHmFaUFAx5paU8ya
=TYDm
-END PGP SIGNATURE-



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



[PHP] Coding Question

2003-07-20 Thread Aaron Axelsen
 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,

I am currently trying to think of how I want to solve an issue, and
im looking for some input.

I have a page that will query information from a database and then
properly display it on the screen.  Now the thing I want to set up is
the option to split the information over 2,3 or more pages.

For example, the user can set a value in the config file for how many
results to display for page, then on each page ill have something
that says results 25-50 here and what not.

The only thing that comes to my mind, is somehow setting up some
tests, and then altering the sql statement with the list option.  Is
this the best way to do this?  Does anyone else have any other
suggestions??

Thanks in advance for the assistance.

- ---
Aaron Axelsen
AIM: AAAK2
Email: [EMAIL PROTECTED]

Want reliable web hosting at affordable prices?
www.modevia.com
 
Web Dev/Design Community/Zine
www.developercube.com


-BEGIN PGP SIGNATURE-
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPxpK1brnDjSLw9ADEQK0cQCgmFLBwO/IeqIYZIJUhR2j23Na5/sAniYv
nXehy/vKSs6AE8/yI3O9BixJ
=s7G2
-END PGP SIGNATURE-



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



[PHP] Weird Problem

2003-07-29 Thread Aaron Axelsen
 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I have the following chunk of code:

$sql = "SELECT setting from settings where name='display_rows'";
include("connect.inc.php");
print $sql;
$row = mysql_fetch_row($result);
$path = $row[0];
print $path;

It always prints out "1"

But if I run the code at the sql command prompt, it prints out "25",
which is the correct value.

Does anyone have any ideas why im having this problem??

- ---
Aaron Axelsen
AIM: AAAK2
Email: [EMAIL PROTECTED]

Want reliable web hosting at affordable prices?
www.modevia.com
 
Web Dev/Design Community/Zine
www.developercube.com


-BEGIN PGP SIGNATURE-
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPybNTLrnDjSLw9ADEQI4LQCeP+vaCk+UtDJSeDU9H5yTt+r12JEAniaI
LVwLVog89WOCsXxzIHbGsIEb
=g4P4
-END PGP SIGNATURE-



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



RE: [PHP] Weird Problem

2003-07-29 Thread Aaron Axelsen
 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Yes, connect.inc.php does the following:

@$connect=mysql_connect("localhost",$dbuser,$dbpass);
if (!$connect) {
echo "Could not connect to mysql!";
exit();
}

@$db=mysql_select_db($dbname);
if (!$db){
echo "Could not connect to database";
exit ();
}

@$result=mysql_query($sql);
if (!$result){
echo "Invalid Sql Command";
        exit ();
}


- ---
Aaron Axelsen
AIM: AAAK2
Email: [EMAIL PROTECTED]

Want reliable web hosting at affordable prices?
www.modevia.com
 
Web Dev/Design Community/Zine
www.developercube.com



- -Original Message-
From: Jennifer Goodie [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 29, 2003 2:46 PM
To: Aaron Axelsen; [EMAIL PROTECTED]
Subject: RE: [PHP] Weird Problem


> I have the following chunk of code:
>
>   $sql = "SELECT setting from settings where name='display_rows'";
>   include("connect.inc.php");
>   print $sql;
>   $row = mysql_fetch_row($result);
>   $path = $row[0];
>   print $path;
>
> It always prints out "1"
>
> But if I run the code at the sql command prompt, it prints out
> "25",  which is the correct value.
>
> Does anyone have any ideas why im having this problem??
>

Are you actually executing the query?  I don't see a mysql_query()
anywhere and it would be anti-intuituve to have that in your
connection include.


-BEGIN PGP SIGNATURE-
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPybRBrrnDjSLw9ADEQJrmACg70sEqN0efwGDg4o958tPx9s6K+0AoJKK
3WZTtCIVXsszKlGA/jOzrmMR
=LwnA
-END PGP SIGNATURE-



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



RE: [PHP] Weird Problem

2003-07-29 Thread Aaron Axelsen
 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

The only setting contained in that table is the one im calling for,
and its value is 25.

- ---
Aaron Axelsen
AIM: AAAK2
Email: [EMAIL PROTECTED]

Want reliable web hosting at affordable prices?
www.modevia.com
 
Web Dev/Design Community/Zine
www.developercube.com



- -Original Message-
From: Aaron Axelsen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 29, 2003 2:40 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Weird Problem


 
- -BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I have the following chunk of code:

$sql = "SELECT setting from settings where name='display_rows'";
include("connect.inc.php");
print $sql;
$row = mysql_fetch_row($result);
$path = $row[0];
print $path;

It always prints out "1"

But if I run the code at the sql command prompt, it prints out "25",
which is the correct value.

Does anyone have any ideas why im having this problem??

- - ---
Aaron Axelsen
AIM: AAAK2
Email: [EMAIL PROTECTED]

Want reliable web hosting at affordable prices?
www.modevia.com
 
Web Dev/Design Community/Zine
www.developercube.com


- -BEGIN PGP SIGNATURE-
Version: PGPfreeware 7.0.3 for non-commercial use
<http://www.pgp.com>

iQA/AwUBPybNTLrnDjSLw9ADEQI4LQCeP+vaCk+UtDJSeDU9H5yTt+r12JEAniaI
LVwLVog89WOCsXxzIHbGsIEb
=g4P4
- -END PGP SIGNATURE-



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


-BEGIN PGP SIGNATURE-
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPybRWLrnDjSLw9ADEQJMrQCeIFkRzjnN2zoOhtS+JEO3tcVxiJ0AnR2v
JHRpp/8B2Gb581ntxzS+5OGL
=85R7
-END PGP SIGNATURE-



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



[PHP] preg_match

2003-06-19 Thread Aaron Axelsen
Title: preg_match






-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I am trying to code a search, and i need to get my matching
_expression_ to work right.  The user can enter a value swhich is
stored in the vraible $search.

What the below loop needs to do, is search each entry of the array
for any occurance of the $search string.  If i hard code in the
string it works, but not when passed as a varaible.  Is there
something I am missing? Do i need to convert the $search variable to
soetmhing?

    if (preg_match ("/.*?\\\$search.*?/i",$date[$i])) {
    print "$date[$i]";
    }

- ---
Aaron Axelsen
AIM: AAAK2
Email: [EMAIL PROTECTED]

Want reliable web hosting at affordable prices?
www.modevia.com

Web Dev/Design Community/Zine
www.developercube.com



-BEGIN PGP SIGNATURE-
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPvKWA7rnDjSLw9ADEQIfGQCgwAO5ikh/RIN5OXoVkC8F4FH/YAoAoJE5
zMxHkRssHbU2Vm4svv2hId8O
=DJOi
-END PGP SIGNATURE-




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

RE: [PHP] Re: preg_match

2003-06-20 Thread Aaron Axelsen
 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Thanks,

I weas reading on the php website under the preg_match functino and
people were saying that you had to excape the $ so that iw ould be
evaluated right.  That's what got me confused.

- ---
Aaron Axelsen
AIM: AAAK2
Email: [EMAIL PROTECTED]

Want reliable web hosting at affordable prices?
www.modevia.com
 
Web Dev/Design Community/Zine
www.developercube.com



- -Original Message-
From: sven [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 20, 2003 4:31 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: preg_match


preg_matchtry without backslashes.

$pattern = "/$search/i";
if (preg_match ($pattern, $date[$i]))
{
echo "$date[$i]";
}

you don't need the .*? in your regex (either * or ? multiplier) as
preg_match searches for any occurance (not from begin ^ or to end $).

ciao SVEN
  "Aaron Axelsen" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1

  I am trying to code a search, and i need to get my matching
  expression to work right.  The user can enter a value swhich is
  stored in the vraible $search.

  What the below loop needs to do, is search each entry of the array
  for any occurance of the $search string.  If i hard code in the
  string it works, but not when passed as a varaible.  Is there
  something I am missing? Do i need to convert the $search variable
to
  soetmhing?

  if (preg_match ("/.*?\\\$search.*?/i",$date[$i])) {
      print "$date[$i]";
  }

  - ---
  Aaron Axelsen
  AIM: AAAK2
  Email: [EMAIL PROTECTED]

  Want reliable web hosting at affordable prices?
  www.modevia.com

  Web Dev/Design Community/Zine
  www.developercube.com



  -BEGIN PGP SIGNATURE-
  Version: PGPfreeware 7.0.3 for non-commercial use
<http://www.pgp.com>

  iQA/AwUBPvKWA7rnDjSLw9ADEQIfGQCgwAO5ikh/RIN5OXoVkC8F4FH/YAoAoJE5
  zMxHkRssHbU2Vm4svv2hId8O
  =DJOi
  -END PGP SIGNATURE-


-BEGIN PGP SIGNATURE-
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPvM3FrrnDjSLw9ADEQLSSQCgp9Fmuoyn1LEkAA2vhcAsbXdsoKMAnjXd
VSnoMXvBNIzW4BmJdk7Ki8rt
=aWuk
-END PGP SIGNATURE-



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



RE: [PHP] Chomp, Chomp, Chomp

2003-06-20 Thread Aaron Axelsen
 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

The php chop function is suppose to act like the perl chomp.

- ---
Aaron Axelsen
AIM: AAAK2
Email: [EMAIL PROTECTED]

Want reliable web hosting at affordable prices?
www.modevia.com
 
Web Dev/Design Community/Zine
www.developercube.com



- -Original Message-
From: Lars Torben Wilson [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 20, 2003 6:00 PM
To: Sparky Kopetzky
Cc: PHP General
Subject: Re: [PHP] Chomp, Chomp, Chomp


On Fri, 2003-06-20 at 15:47, Sparky Kopetzky wrote:
> I looked at the documentation on rtrim. It trims ALL whitespace 
> characters from the end, not just the '\n'. I need only the '\n' 
> trimmed.

Look again, but check out the second argument:




Good luck,

Torben


> Sparky
> - Original Message -
> From: "Lars Torben Wilson" <[EMAIL PROTECTED]>
> To: "Sparky Kopetzky" <[EMAIL PROTECTED]>
> Cc: "PHP General" <[EMAIL PROTECTED]>
> Sent: Friday, June 20, 2003 16:47
> Subject: Re: [PHP] Chomp, Chomp, Chomp
> 
> 
> > On Fri, 2003-06-20 at 15:37, Sparky Kopetzky wrote:
> > > Does anyone have a piece of code that emulates a Perl 'Chomp' 
> > > function?
> I need one.
> > >
> > > Thanks in advance!!
> > >
> > > Robin E. Kopetzky
> > > Black Mesa Computers/Internet Services www.blackmesa-isp.net
> >
> > This should do it for you:  http://www.php.net/rtrim
> >
> >
> > Good luck!
> >
> >
> > Torben
> >
> >
> > --
> >  Torben Wilson <[EMAIL PROTECTED]>   
> > +1.604.709.0506 
> >  http://www.thebuttlesschaps.com 
> > http://www.inflatableeye.com 
> >  http://www.hybrid17.com 
> > http://www.themainonmain.com 
> >  - Boycott Starbucks!  http://www.haidabuckscafe.com 
> > -
> >
> >
> >
- -- 
 Torben Wilson <[EMAIL PROTECTED]>   
+1.604.709.0506
 http://www.thebuttlesschaps.com 
http://www.inflatableeye.com
 http://www.hybrid17.com 
http://www.themainonmain.com
 - Boycott Starbucks!  http://www.haidabuckscafe.com
-




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

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPvOV0brnDjSLw9ADEQLbXACeKGsGbjjW3pGWT91Jd3cQP48wq+oAn1Ev
gb2AnVvs5zgRdejT13vmNoJ2
=gg1T
-END PGP SIGNATURE-



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



[PHP] Preg Replace

2004-01-05 Thread Aaron Axelsen
Hello,

I am fighting replacing items in the following hunk of code.  This code is
pulled from a database, and then I want to replace items like <> with
the contents of a variable $name.

I have tried code like:
preg_replace("/\<\<\?.*?\>\>/",$name,$paypal);

However it doesn't work, any suggestions are appreciated.  Thanks.


Here is the chunk code:






-- 
Aaron Axelsen 
AIM: aaak2 
Email: [EMAIL PROTECTED] 



[PHP] using return in include files

2007-01-22 Thread Aaron Axelsen
I'm trying to figure out what the desired behavior is of using the
return function to bail out of an include page.

I did some testing, and this is what I concluded.

First, I created the following file:

";
?>

I then called it as follows:
include('test.php');
include('test.php');
include('test.php');

The output is:
blah blah blah blah

Second, I changed the test.php file to be the following:

";

function myFunc($test) {

}
?>

When I load the page now, it throws the following error: PHP Fatal
error: Cannot redeclare myfunc()

It appears that if there are functions in the include page that you
can't use return to bail out.  What is the desired functionality in this
case?  Is this a bug in how php handles it? or was return never designed
to be used this way?

Any thoughts are appreciated.

-- 
Aaron Axelsen
[EMAIL PROTECTED]

Great hosting, low prices.  Modevia Web Services LLC -- http://www.modevia.com

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



[PHP] AutoPostgreSQLBackup Released

2005-04-08 Thread Aaron Axelsen
Greetings,
I am proud to announce the initial release of AutoPostgreSQLBackup!  It
is based on the AutoMySQLBackup script written by [EMAIL PROTECTED]
A previous version of this script was ported to Postgresql by Friedrich
Lobenstock <[EMAIL PROTECTED]>.  I have been using the script for a couple
weeks, and so far it's working like a charm.
Visit the project page for my details: http://autopgsqlbackup.frozenpc.net
Any problems, questions, bugs can be posted on the forum.
I hope others can find this as useful as I do!
--
Aaron Axelsen
[EMAIL PROTECTED]
Great hosting, low prices.  Modevia Web Services LLC -- 
http://www.modevia.com

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


[PHP] [PHP 4.3.6] Compiling agaisnt MySQL 4.0.18 on Redhat 8

2004-05-20 Thread Aaron Axelsen
Greetings,

I compiled and installed mysql from source, and now I am trying to recompile
php agaisnt the new version of MySQL (was previous running 3.23.53).  Here
is the configure string I used:

./configure --with-apxs2=/usr/local/apache/bin/apxs --prefix=/usr/local/php
--with-mysql=/usr/local/mysql --with-pgsql=/usr/local/pgsql --with-gettext

Note: I have used this exact string compilng against myql 3.23.53 with no
issues.

When I run the make command, I get the following error:

ext/mysql/php_mysql.lo: In function `zif_mysql_create_db':
/home/aaron/php-4.3.6/ext/mysql/php_mysql.c:1158: undefined reference to
`mysql_create_db'
ext/mysql/php_mysql.lo: In function `zif_mysql_drop_db':
/home/aaron/php-4.3.6/ext/mysql/php_mysql.c:1200: undefined reference to
`mysql_drop_db'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

Any suggestions?  Thanks.

-- 
Aaron Axelsen 
AIM: aaak2 
Email: [EMAIL PROTECTED] 



RE: [PHP] [PHP 4.3.6] Compiling agaisnt MySQL 4.0.18 on Redhat 8

2004-05-20 Thread Aaron Axelsen
The mysql 3.x was installed with prefix /usr/local/mysql 


--
Aaron Axelsen
Email: [EMAIL PROTECTED]

-Original Message-
From: Curt Zirzow [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 20, 2004 7:08 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] [PHP 4.3.6] Compiling agaisnt MySQL 4.0.18 on Redhat 8

* Thus wrote Aaron Axelsen ([EMAIL PROTECTED]):
> Greetings,
> 
> I compiled and installed mysql from source, and now I am trying to 
> recompile php agaisnt the new version of MySQL (was previous running 
> 3.23.53).  Here is the configure string I used:
> 
> ./configure --with-apxs2=/usr/local/apache/bin/apxs 
> --prefix=/usr/local/php --with-mysql=/usr/local/mysql 
> --with-pgsql=/usr/local/pgsql --with-gettext
> 
> ...
> 
> ext/mysql/php_mysql.lo: In function `zif_mysql_create_db':
> /home/aaron/php-4.3.6/ext/mysql/php_mysql.c:1158: undefined reference 
> to `mysql_create_db'

That sound like php used a 3.x mysql_version.h file to include but is trying
to link against the real 4.x mysqlclient.so (since 4.x does not have
mysql_create_db).

At what prefix was mysql 3.x installed? /usr or /usr/local? 

Couple quick commands to find your mysql files  > locate mysql.h  > locate
mysql_version.h  > find / find / -type f -name "mysql*.h" #last resort


Curt
--
"I used to think I was indecisive, but now I'm not so sure."

--
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] [PHP 4.3.6] Compiling agaisnt MySQL 4.0.18 on Redhat 8

2004-05-20 Thread Aaron Axelsen
I was trying to upgrade over the older one, which is why the paths are the
same.  I want to stick with the stable realease 


--
Aaron Axelsen
Email: [EMAIL PROTECTED]

-Original Message-
From: raditha dissanayake [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 20, 2004 7:47 PM
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] [PHP 4.3.6] Compiling agaisnt MySQL 4.0.18 on Redhat 8

Aaron Axelsen wrote:

>The mysql 3.x was installed with prefix /usr/local/mysql
>  
>
So why are you pointing to the 3.x path when compiling with 4.x?
And since you are going through all this trouble might as well use a very
recent version of mysql

>
>--
>Aaron Axelsen
>Email: [EMAIL PROTECTED]
>
>  
>
>>Greetings,
>>
>>I compiled and installed mysql from source, and now I am trying to 
>>recompile php agaisnt the new version of MySQL (was previous running 
>>3.23.53).  Here is the configure string I used:
>>
>>./configure --with-apxs2=/usr/local/apache/bin/apxs
>>--prefix=/usr/local/php --with-mysql=/usr/local/mysql 
>>--with-pgsql=/usr/local/pgsql --with-gettext
>>
>>...
>>
>>ext/mysql/php_mysql.lo: In function `zif_mysql_create_db':
>>/home/aaron/php-4.3.6/ext/mysql/php_mysql.c:1158: undefined reference 
>>to `mysql_create_db'
>>
>>
>
>That sound like php used a 3.x mysql_version.h file to include but is 
>trying to link against the real 4.x mysqlclient.so (since 4.x does not 
>have mysql_create_db).
>
>At what prefix was mysql 3.x installed? /usr or /usr/local? 
>
>Couple quick commands to find your mysql files  > locate mysql.h  > 
>locate mysql_version.h  > find / find / -type f -name "mysql*.h" #last 
>resort
>
>
>Curt
>--
>"I used to think I was indecisive, but now I'm not so sure."
>
>  
>


--
Raditha Dissanayake.
-
http://www.raditha.com/megaupload/upload.php
Sneak past the PHP file upload limits.

--
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] include question

2004-06-21 Thread Aaron Axelsen
Below is the chunk of code i am using.  In the verify_faculty_info.php
file i call the search function.  The search function is coded in the
function.php file which is included in the accesscontrol.php.

I thought that it would carry over to the verify_Faculty_info.php file. 
Was I mistaken?

Thanks




--
Aaron Axelsen
aim: aaak2
email: [EMAIL PROTECTED]

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



RE: [PHP] include question

2004-06-28 Thread Aaron Axelsen
Thanks, worked wonders. 


--
Aaron Axelsen
Email: [EMAIL PROTECTED]

-Original Message-
From: Greg Donald [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 21, 2004 10:40 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] include question

On Mon, 21 Jun 2004 10:31:42 -0500 (CDT), Aaron Axelsen <[EMAIL PROTECTED]>
wrote:
> Below is the chunk of code i am using.  In the verify_faculty_info.php 
> file i call the search function.  The search function is coded in the 
> function.php file which is included in the accesscontrol.php.
> 
> I thought that it would carry over to the verify_Faculty_info.php file.
> Was I mistaken?
> 
> Thanks
> 
>  include('accesscontrol.php');
> if (isset($_GET['action'])){
> 
>  if ($_GET['action'] == "add" && $_SESSION['role'] == 1) {
>include('includes/add_product.php');
>  } elseif ($_GET['action'] == "verify") {
>echo "verifying now";
>search();
>include('includes/verify_faculty_info.php');
>  } else {
>echo "action asked for is not specified";  } } else {
>   echo "action is not specified";
> }
> ?>

Looks like it would work to me.  You might try function_exists() to help
track down the problem.  Probably a typo or mispelled function name.

--
Greg Donald
http://destiney.com/

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

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



[PHP] Coding Advice

2004-07-21 Thread Aaron Axelsen
Hello,

I am writing an app and right now im working on code that will display x
number of items on one page, and if there is overflow, provide a link to
the next.  The url coming into the page looks something like:

projects.php?action=view&completed=no&start=0

My code so far, i just took the $_SERVER['REQUEST_URI'] and added
start=newstart to the end.

The problem is, i will eventually get a string thats very long, ebcause
start keeps appending onto the end.  What is the easiest way to preserve
projects.php?action=view&completed=no and be able to add start=somenumber
to the end?

Thanks for your assistance.


--
Aaron Axelsen
aim: aaak2
email: [EMAIL PROTECTED]

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



[PHP] PHP Fatal error: Call to undefined function hash_hmac()

2007-09-12 Thread Aaron Axelsen
We are running Novell SUSE Linux Enterprise Server 10 sp1.  It has php
5.1.2.  We are using a standard out of the box install, and for some
reason the hash functions only work using the cli interface, and fails
to work with apache giving the following error:

PHP Fatal error:  Call to undefined function hash_hmac()

Does anyone have any suggestions as to what might be causing this?

-- 
Aaron Axelsen
[EMAIL PROTECTED]

Great hosting, low prices.  Modevia Web Services LLC -- http://www.modevia.com

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



[PHP] Send XML file with curl functions

2008-04-12 Thread Aaron Axelsen

I am trying to create the following command with the php curl functions:

curl -F "[EMAIL PROTECTED]" "http://path/to/api";

The problem i'm having is that i'm creating the xml file with php - so 
the contents are stored in a variable.  How can I send the contents of 
that variable via curl?  I thought just assigning the xml variable to 
data would work - but it hasn't.


Any suggestions?

--
Aaron Axelsen
[EMAIL PROTECTED]

Great hosting, low prices.  Modevia Web Services LLC -- http://www.modevia.com


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



Re: [PHP] Send XML file with curl functions

2008-04-13 Thread Aaron Axelsen

Option 2 is what I'm trying to do, but the problem is that when curl
sends the file over the command line, when it's processes via PHP the
attached file comes over $_FILES.

But, added the postdata obviously doesn't allow it to come over that
way.  Is there any way to use option 2 and transmit the file so it will
come over under $_FILES?

-- Aaron

Bojan Tesanovic wrote:


On Apr 12, 2008, at 11:37 PM, Aaron Axelsen wrote:


I am trying to create the following command with the php curl functions:

curl -F "[EMAIL PROTECTED]" "http://path/to/api";

The problem i'm having is that i'm creating the xml file with php - 
so the contents are stored in a variable.  How can I send the 
contents of that variable via curl?  I thought just assigning the xml 
variable to data would work - but it hasn't.


Any suggestions?

--
Aaron Axelsen
[EMAIL PROTECTED]

Great hosting, low prices.  Modevia Web Services LLC -- 
http://www.modevia.com



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





What I can suggest
1. save the XML to file eg xmldata.xml   and use
system('curl -F "[EMAIL PROTECTED]" "http://path/to/api"; ');

2. or Use PHP CURL functions

fufunction postData($postFileds,$url){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST  ,1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$postFileds);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION  ,1);
curl_setopt($ch, CURLOPT_HEADER  ,0);  // DO NOT RETURN 
HTTP HEADERS
curl_setopt($ch, CURLOPT_RETURNTRANSFER  ,1);  // RETURN THE 
CONTENTS OF THE CALL

$data = curl_exec($ch);
curl_close($ch);
return $data;
}

$xmlData = 'some xml data';
$postFileds = 'data='. urlencode($xmlData);

//call function
postData($postFileds,"http://path/to/api";);



---
Bojan
http://www.carster.us/







--
Aaron Axelsen
[EMAIL PROTECTED]

Great hosting, low prices.  Modevia Web Services LLC -- 
http://www.modevia.com


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



Re: [PHP] Send XML file with curl functions

2008-04-13 Thread Aaron Axelsen
The problem is that it is a 3rd party API that I am trying to submit 
data to.  I have submitted a request to make the necessary changes for 
what I'm trying to do.



Nathan Nobbe wrote:

On Sun, Apr 13, 2008 at 1:07 PM, Aaron Axelsen <[EMAIL PROTECTED]> wrote:

  

Option 2 is what I'm trying to do, but the problem is that when curl
sends the file over the command line, when it's processes via PHP the
attached file comes over $_FILES.




im lost here.  in option 2 from Bojan's post there is no attached file.
there is only a variable that happens to store xml.  if php is handling the
request on the system hosting $url from said post then the xml data will be
made available in the $_POST array albiet the 'data' index.
ergo, php on said system would look something like this


  




  

But, added the postdata obviously doesn't allow it to come over that
way.  Is there any way to use option 2 and transmit the file so it will
come over under $_FILES?




i dont understand the 'need'  to have the request data available in the
$_FILES array; whats wrong w/ $_POST ?

-nathan

  


--
Aaron Axelsen
[EMAIL PROTECTED]

Great hosting, low prices.  Modevia Web Services LLC -- http://www.modevia.com


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



[PHP] creating zip's with php - high memory usage

2008-06-11 Thread Aaron Axelsen

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I am working on a script that will take a few folders, copy them to a 
temp location, and then create a zipfile.  The problem i'm running into 
is that some of these zips are upwards of 300mb, and when I use exec to 
execute the zip function, or use the ZipArchive extension, the php 
memory usages increases - close to 300mb.  Is there any way to get 
around this spike of memory usage from within php?  Or is there a better 
way alltogether to handle this?  I'm open to suggestions!


- --
Aaron Axelsen
[EMAIL PROTECTED]

Great hosting, low prices.  Modevia Web Services LLC -- 
http://www.modevia.com

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIUEYuuucONIvD0AMRAnhCAJ9BaE1jA0VSmhxs9o7EnCGmOxUbdgCglbCs
iWFyJr5MVW5rBfmAB8MbSDo=
=oBqU
-END PGP SIGNATURE-


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



[PHP] Changing Session Timeout

2007-04-26 Thread Aaron Axelsen
I am trying to change my session timeout to 180 minutes, and everything
ive tried has not worked.  Does anyone have any idea why this isn't
working properly?

I currently am trying to set the following:

session_name('myapp');

$mytimeout = 180 * 60; // minutes * 60

session_set_cookie_params($mytimeout);

$sessdir = ini_get('session.save_path')."/myapp";
if (!is_dir($sessdir)) { mkdir($sessdir, 0777); }
ini_set('session.save_path', $sessdir);

session_cache_limiter();
session_cache_expire($mytimeout);
ini_set('session.gc_maxlifetime', $mytimeout);
#ini_set('session.gc_probability',1);
#ini_set('session.gc_divisor',1);

session_start();


-- 
Aaron Axelsen
[EMAIL PROTECTED]

Great hosting, low prices.  Modevia Web Services LLC -- http://www.modevia.com

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



Re: [PHP] Changing Session Timeout

2007-04-27 Thread Aaron Axelsen
I now have the following settings:

session_name('myapp');
$mytimeout = 180 * 60; // minutes * 60

session_set_cookie_params($mytimeout);

$sessdir = ini_get('session.save_path')."/myapp";
if (!is_dir($sessdir)) { mkdir($sessdir, 0777); }
ini_set('session.save_path', $sessdir);

// New Attempt
session_cache_limiter();
session_cache_expire($mytimeout / 60);
ini_set('session.gc_maxlifetime', $mytimeout / 60);
#ini_set('session.gc_probability',1);
#ini_set('session.gc_divisor',1);

session_start();

I logged in and then left the computer untouched for an hour.  When I
came back the session was timed out, and I was required to login. 
Something still isn't working right.  Any ideas?  I have checked the
settings using phpinfo() and confirmed that the values are in fact being
set by the above commands.

-- Aaron


Tijnema ! wrote:
> On 4/27/07, Aaron Axelsen <[EMAIL PROTECTED]> wrote:
>> I am trying to change my session timeout to 180 minutes, and everything
>> ive tried has not worked.  Does anyone have any idea why this isn't
>> working properly?
>>
>> I currently am trying to set the following:
>>
>> session_name('myapp');
>>
>> $mytimeout = 180 * 60; // minutes * 60
>>
>> session_set_cookie_params($mytimeout);
>>
>> $sessdir = ini_get('session.save_path')."/myapp";
>> if (!is_dir($sessdir)) { mkdir($sessdir, 0777); }
>> ini_set('session.save_path', $sessdir);
>>
>> session_cache_limiter();
>> session_cache_expire($mytimeout);
>> ini_set('session.gc_maxlifetime', $mytimeout);
>> #ini_set('session.gc_probability',1);
>> #ini_set('session.gc_divisor',1);
>>
>> session_start();
>>
>>
>> -- 
>> Aaron Axelsen
>> [EMAIL PROTECTED]
>>
>
> session_set_cookie_params requires the number given in seconds, which
> you did correct. But session_cache_expire requires the number given in
> minutes. and session.gc_maxlifetime is in minutes again. So that is
> correct too.
>
> you could try replace this:
> session_cache_expire($mytimeout);
> with:
> session_cache_expire($mytimeout / 60);
>
> That should fix it, if not, just come back, but then tell us what
> exactly is wrong, does the session timeout too early? does the session
> timeout too late? does the session timeout never?
>
> Tijnema
>

-- 
Aaron Axelsen
[EMAIL PROTECTED]

Great hosting, low prices.  Modevia Web Services LLC -- http://www.modevia.com

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



Re: [PHP] Changing Session Timeout

2007-04-27 Thread Aaron Axelsen
With the following set, its still timing me out.  I logged in and
waited about 40 minutes, and it was timed out by then.  This is
getting very confusing, what else could it be that is causing this to
not work?

session_name('myapp');

$mytimeout = 180 * 60; // minutes * 60

session_set_cookie_params($mytimeout);

$sessdir = ini_get('session.save_path')."/myapp";
if (!is_dir($sessdir)) { mkdir($sessdir, 0777); }
ini_set('session.save_path', $sessdir);

// New Attempt
session_cache_limiter();
session_cache_expire($mytimeout / 60);
ini_set('session.gc_maxlifetime', $mytimeout);
#ini_set('session.gc_probability',1);
#ini_set('session.gc_divisor',1);

session_start();


Tijnema ! wrote:
> On 4/27/07, Aaron Axelsen <[EMAIL PROTECTED]> wrote:
>> I now have the following settings:
>>
>> session_name('myapp');
>> $mytimeout = 180 * 60; // minutes * 60
>>
>> session_set_cookie_params($mytimeout);
>>
>> $sessdir = ini_get('session.save_path')."/myapp";
>> if (!is_dir($sessdir)) { mkdir($sessdir, 0777); }
>> ini_set('session.save_path', $sessdir);
>>
>> // New Attempt
>> session_cache_limiter();
>> session_cache_expire($mytimeout / 60);
>> ini_set('session.gc_maxlifetime', $mytimeout / 60);
>> #ini_set('session.gc_probability',1);
>> #ini_set('session.gc_divisor',1);
>>
>> session_start();
>>
>> I logged in and then left the computer untouched for an hour.  When I
>> came back the session was timed out, and I was required to login.
>> Something still isn't working right.  Any ideas?  I have checked the
>> settings using phpinfo() and confirmed that the values are in fact
>> being
>> set by the above commands.
>>
>> -- Aaron
>
> My mistake, gc_maxlifetime is in seconds, i meant to say that, but i
> said it was in minutes :)
>
> if you change this:
> ini_set('session.gc_maxlifetime', $mytimeout / 60);
> back to
> ini_set('session.gc_maxlifetime', $mytimeout);
>
> It will work i guess :)
>
> Tijnema
>>
>>
>> Tijnema ! wrote:
>> > On 4/27/07, Aaron Axelsen <[EMAIL PROTECTED]> wrote:
>> >> I am trying to change my session timeout to 180 minutes, and
>> everything
>> >> ive tried has not worked.  Does anyone have any idea why this isn't
>> >> working properly?
>> >>
>> >> I currently am trying to set the following:
>> >>
>> >> session_name('myapp');
>> >>
>> >> $mytimeout = 180 * 60; // minutes * 60
>> >>
>> >> session_set_cookie_params($mytimeout);
>> >>
>> >> $sessdir = ini_get('session.save_path')."/myapp";
>> >> if (!is_dir($sessdir)) { mkdir($sessdir, 0777); }
>> >> ini_set('session.save_path', $sessdir);
>> >>
>> >> session_cache_limiter();
>> >> session_cache_expire($mytimeout);
>> >> ini_set('session.gc_maxlifetime', $mytimeout);
>> >> #ini_set('session.gc_probability',1);
>> >> #ini_set('session.gc_divisor',1);
>> >>
>> >> session_start();
>> >>
>> >>
>> >> --
>> >> Aaron Axelsen
>> >> [EMAIL PROTECTED]
>> >>
>> >
>> > session_set_cookie_params requires the number given in seconds,
>> which
>> > you did correct. But session_cache_expire requires the number
>> given in
>> > minutes. and session.gc_maxlifetime is in minutes again. So that is
>> > correct too.
>> >
>> > you could try replace this:
>> > session_cache_expire($mytimeout);
>> > with:
>> > session_cache_expire($mytimeout / 60);
>> >
>> > That should fix it, if not, just come back, but then tell us what
>> > exactly is wrong, does the session timeout too early? does the
>> session
>> > timeout too late? does the session timeout never?
>> >
>> > Tijnema
>> >
>>
>> --
>> Aaron Axelsen
>> [EMAIL PROTECTED]
>>
>> Great hosting, low prices.  Modevia Web Services LLC --
>> http://www.modevia.com
>>
>>
>

-- 
Aaron Axelsen
Technical Director
Modevia Web Services LLC

1-866-451-9198 x802
[EMAIL PROTECTED]
www.modevia.com

-- 
Aaron Axelsen
[EMAIL PROTECTED]

Great hosting, low prices.  Modevia Web Services LLC -- http://www.modevia.com

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



Re: [PHP] Changing Session Timeout

2007-04-27 Thread Aaron Axelsen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
Everything i've read in the documentation states to call session_start
after you have changed your necessary settings.  Do you have a working
example using session cookies I can compare this with?

Richard Lynch wrote:
> On Fri, April 27, 2007 1:37 pm, tedd wrote:
>> At 12:26 PM -0500 4/27/07, Aaron Axelsen wrote:
>>> With the following set, its still timing me out.  I logged in
>>> and waited about 40 minutes, and it was timed out by then. This
>>> is getting very confusing, what else could it be that is
>>> causing this to not work?
>>>
>>> session_name('myapp');
>>>
>>> $mytimeout = 180 * 60; // minutes * 60
>>>
>>> session_set_cookie_params($mytimeout);
>>>
>>> $sessdir = ini_get('session.save_path')."/myapp"; if
>>> (!is_dir($sessdir)) { mkdir($sessdir, 0777); }
>>> ini_set('session.save_path', $sessdir);
>>>
>>> // New Attempt session_cache_limiter();
>>> session_cache_expire($mytimeout / 60);
>>> ini_set('session.gc_maxlifetime', $mytimeout);
>>> #ini_set('session.gc_probability',1);
>>> #ini_set('session.gc_divisor',1);
>>>
>>> session_start();
>>>
>> The above is not the order of your code, is it?
>>
>> If so, move session_start(); to the top, namely the first line of
>>  code.
>
>
> I don't think you want to do that...
>
> You want all those settings to take effect BEFORE you actually
> start the session which sends out the headers.
>

- --
Aaron Axelsen

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFGMlEWuucONIvD0AMRAp+4AKDJK9D06s+yWt4tkHw4dUhZvz0VngCgjiA3
x117Mf7dwR3VIpvuhZFxTgg=
=jOud
-END PGP SIGNATURE-

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



Re: [PHP] Changing Session Timeout

2007-04-29 Thread Aaron Axelsen
I did some more investigating, and tracked down the problem. 
Apparently, even though i was setting a separate save_path inside the
default save path the garbage collector was still picking up the
sessions in that directory.

I moved the session save_path dir to a separate location and the
sessions were removed according to the ini settings.  The 1 weird thing
I noticed is that the session cookie on the client PC is not getting set
properly.  I am trying to set a session timeout of 3 hours, the server
is set to GMT time, and the client PC is set to CST time.  The cookie on
the client PC reports that it has an expiration time of 1.5 hours
instead of 3.  Does anyone have any ideas why thats happening?

Aaron Axelsen wrote:
> Everything i've read in the documentation states to call session_start
> after you have changed your necessary settings.  Do you have a working
> example using session cookies I can compare this with?
>
> Richard Lynch wrote:
> > On Fri, April 27, 2007 1:37 pm, tedd wrote:
> >> At 12:26 PM -0500 4/27/07, Aaron Axelsen wrote:
> >>> With the following set, its still timing me out.  I logged in
> >>> and waited about 40 minutes, and it was timed out by then. This
> >>> is getting very confusing, what else could it be that is
> >>> causing this to not work?
> >>>
> >>> session_name('myapp');
> >>>
> >>> $mytimeout = 180 * 60; // minutes * 60
> >>>
> >>> session_set_cookie_params($mytimeout);
> >>>
> >>> $sessdir = ini_get('session.save_path')."/myapp"; if
> >>> (!is_dir($sessdir)) { mkdir($sessdir, 0777); }
> >>> ini_set('session.save_path', $sessdir);
> >>>
> >>> // New Attempt session_cache_limiter();
> >>> session_cache_expire($mytimeout / 60);
> >>> ini_set('session.gc_maxlifetime', $mytimeout);
> >>> #ini_set('session.gc_probability',1);
> >>> #ini_set('session.gc_divisor',1);
> >>>
> >>> session_start();
> >>>
> >> The above is not the order of your code, is it?
> >>
> >> If so, move session_start(); to the top, namely the first line of
> >>  code.
>
> > I don't think you want to do that...
>
> > You want all those settings to take effect BEFORE you actually
> > start the session which sends out the headers.
>
>

-- 
Aaron Axelsen
Technical Director
Modevia Web Services LLC

1-866-451-9198 x802
[EMAIL PROTECTED]
www.modevia.com

-- 
Aaron Axelsen
[EMAIL PROTECTED]

Great hosting, low prices.  Modevia Web Services LLC -- http://www.modevia.com

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



[PHP] Connecting to Webdav with php

2006-09-01 Thread Aaron Axelsen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
Hello,

I am looking to create a small script which can connect to a webdav
server, authenticate and spit back the contents of a given directory
on the server.  What is the best way to do this?  I've bene looking
around and so far haven't found anything.  Thanks!

- --
Aaron Axelsen
[EMAIL PROTECTED]

Great hosting, low prices.  Modevia Web Services LLC --
http://www.modevia.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFE+FuvuucONIvD0AMRAl94AKCjnoLBQ4n/F3kucQD2KiyVcRrqLgCeKOuP
mp8zPv1ktojV2oDmNfnL9jo=
=sIQc
-END PGP SIGNATURE-

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



Re: [PHP] local php.ini not recognized in php 5.1.x?

2006-09-03 Thread Aaron Axelsen
Marten,

I have also been trying to figure this out.  Have you came to any
conclusions?  I have done some searching and so far haven't found any
answers.  Is there anyone else on the list that can shed some light on this?

Thanks!

-- Aaron

Marten Lehmann wrote:
> Hello,
>
> we switched from php 5.0.6 to 5.1.6. php is running as CGI. We have a global
> php.ini in the /lib directory of the php installation with settings that are
> valid for all users.
>
> In php 5.0.6 (and previous php releases) additionally the local php.ini in the
> directory of the executed php-script has been parsed so users could overwrite
> options like register_globals. But now in php 5.1.6 this local php.ini doesn't
> seem to be recognized at all, not any option in it is evaluated.
>
> Is there anything that changed from php 5.0.x to 5.1.x regarding the handling
> of php.ini's? I don't have any idea what went wrong because I compiled php
> 5.1.6 with the same options as php 5.0.6.
>
> Regards
> Marten
>
>   

-- 
Aaron Axelsen
[EMAIL PROTECTED]

Great hosting, low prices.  Modevia Web Services LLC -- http://www.modevia.com

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



[PHP] Include Errors

2004-04-01 Thread Aaron Axelsen
 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I recently upgraded from 4.3.4 to 4.3.5 and now I get some errors. 
When I try to include a URL that is not abosulte, for example
http://somewebsite.com I get the following chunk of errors:

Warning: main(): php_network_getaddresses: getaddrinfo failed: Name
or service not known in /path/to/index.php on line 386

Warning: main(http://some.url/gallery/block-random.php): failed to
open stream: Resource temporarily unavailable in /path/to/index.php
on line 386

Warning: main(): Failed opening
'http://some.url/gallery/block-random.php' for inclusion
(include_path='.:/path/to/php/lib/php') in /path/to/index.php on line
386

Any ideas or suggetsions are greatly welcome.  Thanks.
- ---
Aaron Axelsen
AIM: AAAK2
Email: [EMAIL PROTECTED]

Want reliable web hosting at affordable prices?
www.modevia.com
 
Web Dev/Design Community/Zine
www.developercube.com


-BEGIN PGP SIGNATURE-
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBQGvUKbrnDjSLw9ADEQLbEQCfRd1fjICqnS3Fotu4X3Pf08QvbOMAnim1
fCN+YXqDK6oQ/un4H68fv07K
=Fh9f
-END PGP SIGNATURE-

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



RE: [PHP] Include Errors

2004-04-01 Thread Aaron Axelsen
 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Allow_url_fopen is turned on

- ---
Aaron Axelsen
AIM: AAAK2
Email: [EMAIL PROTECTED]

Want reliable web hosting at affordable prices?
www.modevia.com
 
Web Dev/Design Community/Zine
www.developercube.com



- -Original Message-
From: Nikolay Bachiyski [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 01, 2004 3:01 AM
To: Aaron Axelsen
Subject: Re: [PHP] Include Errors


On April, 01 2004 ?. 11:41 Aaron Axelsen" <[EMAIL PROTECTED]> wrote
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> I recently upgraded from 4.3.4 to 4.3.5 and now I get some errors. 
> When I try to include a URL that is not abosulte, for example 
> http://somewebsite.com I get the following chunk of errors:
>
> Warning: main(): php_network_getaddresses: getaddrinfo failed: Name
> or  service not known in /path/to/index.php on line 386
>
> Warning: main(http://some.url/gallery/block-random.php): failed to 
> open stream: Resource temporarily unavailable in /path/to/index.php
> on  line 386
>
> Warning: main(): Failed opening 
> 'http://some.url/gallery/block-random.php' for inclusion
> (include_path='.:/path/to/php/lib/php') in /path/to/index.php on
> line  386
>
> Any ideas or suggetsions are greatly welcome.  Thanks.
> - ---
> Aaron Axelsen
> AIM: AAAK2
> Email: [EMAIL PROTECTED]
>
> Want reliable web hosting at affordable prices? www.modevia.com
>
> Web Dev/Design Community/Zine
> www.developercube.com
>
>
> -BEGIN PGP SIGNATURE-
> Version: PGPfreeware 7.0.3 for non-commercial use
> <http://www.pgp.com> 
>
> iQA/AwUBQGvUKbrnDjSLw9ADEQLbEQCfRd1fjICqnS3Fotu4X3Pf08QvbOMAnim1
> fCN+YXqDK6oQ/un4H68fv07K
> =Fh9f
> -END PGP SIGNATURE-
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Hello, Aaron,

Are you sure allow_url_fopen in your php.ini is on?
Although the default value is on it could either have been changed or
you might be using your older php.ini file.

Regards,
Nikolay


-BEGIN PGP SIGNATURE-
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBQGw99rrnDjSLw9ADEQJbJgCbBQHJhjKfvY1NKH609eIyo9NEnmYAn1q7
5R7N/8lWbB3adQxRnIOJXnor
=kyQH
-END PGP SIGNATURE-

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



[PHP] Very Odd Session Array Problem

2004-12-18 Thread Aaron Axelsen
We have the chunk of code at the bottom of the page.  It is behaving 
very strangly under php 4.3.9.  Basically, if it is not coded exactly as 
listed below, it will not work right.  The development server is running 
5.0.3, and it works fine.  However, the live server has 4.3.9.  Is there 
something vastly different with arrays and session variables?

   $key = $_REQUEST['quote'];
   $quotes = $_SESSION['quotes'][$key];
   //unset($_SESSION['quotes'][$key]);
   $doc = $file_array[$key];
  
   // handle a new quantity request
   if(isset($_REQUEST['qty']) && 
preg_match('/^\d+$/',$_REQUEST['qty']))
   {
   if(!(is_array($quotes)))
   $quotes = array();

   //print $_REQUEST['qty'];
   $found = false;
   if(count($quotes) > 0)
   {
   foreach($quotes as $qty)
   {
   if($qty == $_REQUEST['qty'])
   $found = true;
   }
  
   }
  
   //print_r($quotes);
   if(!$found) {
   print "Before";
   print_r($quotes);
   array_push($quotes, $_REQUEST['qty']);
   print "After";
   print_r($quotes);
   $quoteString = implode(",",$quotes);
   $_SESSION['quotes'][$key] = explode(",",$quoteString);
   } else {
   $quoteString = implode(",",$quotes);
   $_SESSION['quotes'][$key] = explode(",",$quoteString);
   }
   //print_r($quotes);
  
   //sort($quotes);
   //print_r($quotes);
   //print_r($_SESSION['quotes'][$key]);
   //$_SESSION['quotes'][$key] = array();
   //$quotes = $_SESSION['quotes'][$key];
   print "Session";
   print_r($_SESSION['quotes'][$key]);

--
Aaron Axelsen
[EMAIL PROTECTED]
Great hosting, low prices.  Modevia Web Services LLC -- http://www.modevia.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Very Odd Session Array Problem

2004-12-20 Thread Aaron Axelsen
Let me see if i can explain this.
Basically, if i dont have this chunk of code:
$quoteString = implode(",",$_SESSION['quotes'][$key]);
$_SESSION['quotes'][$key] = explode(",",$quoteString);
If i dont do that, when i do a print_r($_SESSION['quotes'][$key]) i get 
errors that say RECURSION and its almost like the arrays are making new 
arrays instead of just storing them in the one session array.  It is a 
very odd problem.  Does that make things any clearer?

Richard Lynch wrote:
Aaron Axelsen wrote:
 

We have the chunk of code at the bottom of the page.  It is behaving
very strangly under php 4.3.9.  Basically, if it is not coded exactly as
listed below, it will not work right.  The development server is running
5.0.3, and it works fine.  However, the live server has 4.3.9.  Is there
something vastly different with arrays and session variables?
   

You are going to have to define "behaving very strangely" and "will not
work right"
Right now, we've got *NOTHING* to work with in terms of what your problem is.
 

--
Aaron Axelsen
[EMAIL PROTECTED]
Great hosting, low prices.  Modevia Web Services LLC -- http://www.modevia.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Very Odd Session Array Problem

2004-12-20 Thread Aaron Axelsen
I understand the recursion part, but i dont understand why this fixes it:
$quoteString = implode(",",$_SESSION['quotes'][$key]);
$_SESSION['quotes'][$key] = explode(",",$quoteString);
That is essentially just reading the values out, and sticking them back in.
Jason Barnett wrote:
 > If i dont do that, when i do a print_r($_SESSION['quotes'][$key]) i 
get

errors that say RECURSION and its almost like the arrays are making new 

If you have a SESSION['quotes'] array... and one of the elements in 
the array references the same SESSION['quotes'] array... then you are 
going to have recursion.  It's not exactly an error, but it *is* a 
recursive array that never ends because it keeps pointing to itself.  
Hopefully this makes sense?

--
Aaron Axelsen
[EMAIL PROTECTED]
Great hosting, low prices.  Modevia Web Services LLC -- http://www.modevia.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] LDAPS agaisnt Active Directory

2005-10-18 Thread Aaron Axelsen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
Hello,

I am trying to authenticate against an Active Directory 2003 server
using LDAPS.  I have the cert from the server, however i'm not exactly
sure how to set it up so that php will recognize it.  I have read the
docs and googled a bit, but everyone seems to have a different way.
What is the best way to accomplish this?

- --
Aaron Axelsen
[EMAIL PROTECTED]

Great hosting, low prices.  Modevia Web Services LLC --
http://www.modevia.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFDVWc2uucONIvD0AMRApAhAJ4uc7kriaMLXavTWHz6eFUYZjcLSgCfWQgo
wypmsI10a/J5goQi8cp1ZuU=
=fpYX
-END PGP SIGNATURE-

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



Re: [PHP] LDAPS agaisnt Active Directory

2005-10-20 Thread Aaron Axelsen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
I have been successful in getting apache to use the cert for .htaccess
authentication.  But i'm not seeing a clear way on how to make this
happen with php.  Can anyone offer any suggestions?


- --
Aaron Axelsen
[EMAIL PROTECTED]

Great hosting, low prices.  Modevia Web Services LLC --
http://www.modevia.com



Aaron Axelsen wrote:
> Hello,
>
> I am trying to authenticate against an Active Directory 2003 server
>  using LDAPS.  I have the cert from the server, however i'm not
> exactly sure how to set it up so that php will recognize it.  I
> have read the docs and googled a bit, but everyone seems to have a
> different way. What is the best way to accomplish this?
>
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFDV6HCuucONIvD0AMRAnvMAKCZ259ydN/ZSeiMdmz9U2c7NtjmHACg3iY8
ODRThzU6AuiniDUT58tDHHc=
=2atb
-END PGP SIGNATURE-

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