[PHP] RE: How do I prevent a session from rebuilding itself?

2006-07-11 Thread Daevid Vincent
> The session data that you store in $_SESSION is written to > the files in your /tmp dir. > Are you sure your session files are getting written to that directory? Yes. > You are sure those aren't old session files from a previous configuration? Positive. I wipe the /tmp dir clean. Login to my

Re: [PHP] DB Create Table help - using Pear DB

2006-07-11 Thread Scott Heinrichs
Jochem Maas wrote: Scott Heinrichs wrote: Hello all, This is the first time I have posted an issue to this forum, so please excuse in noob questions or statement. I am trying to create a table from a string that created by a DESCRIBE TABLE query... this is the generated string: CREATE TABLE

Re: [PHP] How do I prevent a session from rebuilding itself?

2006-07-11 Thread Robert Cummings
On Tue, 2006-07-11 at 17:27, Daevid Vincent wrote: > I've noticed a 'feature' that seems to be causing me some pain. > > When a user logs in, we store various pieces of info and their user class in > a $_SESSION variables. > > This includes a flag saying that they've ben authenticated. > > I wou

[PHP] List of Restricted Countries to Leave Out of Credit Card Form?

2006-07-11 Thread Michael B Allen
For my credit card form I provide the user with a list of countries. I suppose these are ISO country codes? For the US is there an official list of countries with which I'm not supposed to do business with? Will Authorize.Net catch those transactions? Thanks, Mike -- Michael B Allen PHP Extensio

Re: [PHP] Startinga shell process with a life of its own

2006-07-11 Thread Kevin Waterson
This one time, at band camp, "Daevid Vincent" <[EMAIL PROTECTED]> wrote: > > I wish PHP would add threading. We write enterprise level products with PHP, > and we end up using DBUS and letting Ruby do all the "real work". submit patch Kevin -- "Democracy is two wolves and a lamb voting on what

Re: [PHP] DB Create Table help - using Pear DB

2006-07-11 Thread tedd
At 5:05 PM -0700 7/11/06, Scott Heinrichs wrote: >Can anyone give me a solution If all else fails, use phpAdminMySQL to set up your tables. I seldom program it. tedd -- http://sperling.com http://ancientstones.

[PHP] DB Create Table help - using Pear DB

2006-07-11 Thread Scott Heinrichs
Hello all, This is the first time I have posted an issue to this forum, so please excuse in noob questions or statement. I am trying to create a table from a string that created by a DESCRIBE TABLE query... this is the generated string: CREATE TABLE 'users' ( 'username' varchar(120) NOT NULL pri

Re: [PHP] PHP 5...

2006-07-11 Thread Rory Browne
Unless there is some specific reason that you need this code to run on both php4 and php5, then inform your boss/admin that the idea of developing on php5, to deploy on php4 is nuts. If they disagree inform them that they are personally nuts( tell them some guy on the internet said so ). It may b

RE: [PHP] PHP 5...

2006-07-11 Thread Daevid Vincent
It's silly to have two different environments like that. Either code the thing in PHP4. or upgrade the production environment to PHP5. DÆVID > -Original Message- > From: Ryan A [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 11, 2006 6:08 AM > To: php php > Subject: [PHP] PHP 5... >

[PHP] PHP 5...

2006-07-11 Thread Ryan A
Hi, Something strange and dont really know what to expect so was hoping you more experienced PHP 5 people can help me out. We have been given a development server thats running php5 with MySql Client API version 5.0.22 (didnt know there was one that high) the problem is, we have to develop on t

[PHP] How do I prevent a session from rebuilding itself?

2006-07-11 Thread Daevid Vincent
I've noticed a 'feature' that seems to be causing me some pain. When a user logs in, we store various pieces of info and their user class in a $_SESSION variables. This includes a flag saying that they've ben authenticated. I would expect that if I 'rm -rf /tmp/sess_*' that the user would get pr

Re: [PHP] GD to database directly

2006-07-11 Thread Adam Zey
Eric Butera wrote: On 7/11/06, Kevin Waterson <[EMAIL PROTECTED]> wrote: How much of a performance hit? Kevin -- "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] order/reorder pull out data from arrays

2006-07-11 Thread Jochem Maas
Dallas Cahker wrote: > I have an array that i would like to sort and reorder based on a simple > critera. I already order the data but I would like to break the data now > into sections by customer id, so one customer has 5 things and another > customer has one. How can I do that with an array. >

Re: [PHP] order/reorder pull out data from arrays

2006-07-11 Thread Jake Gardner
Ok I understand your method now. your code does not match your output. how would your print line produce that , $customerid ? anyways... $data = orders($id,$status); $c = count($data); $currentId; $n = 1; for($i=0; $i<$c; $i++) { $orderid = $data[$i]['orderid']; $customerid = $data[$i]['cu

[PHP] Re: ftp_put()'ing a string ...

2006-07-11 Thread Jochem Maas
Jochem Maas wrote: > hi everyone, > > I was wondering if anyone knew how (if possible) I could take a string > and ftp_put()/ftp_fput() that string directly onto the remote server as a file > (without first saving the string to disk temporarily locally) > > I imagine that there is a way to create

[PHP] order/reorder pull out data from arrays

2006-07-11 Thread Dallas Cahker
I have an array that i would like to sort and reorder based on a simple critera. I already order the data but I would like to break the data now into sections by customer id, so one customer has 5 things and another customer has one. How can I do that with an array. $data = orders($id,$status);

Re: [PHP] PHP 5....

2006-07-11 Thread Jochem Maas
Ryan A wrote: > Hi, > Something strange and dont really know what to expect so was hoping you more > experienced PHP 5 people can help me out. btw which minor version of php5 your running is important ... plenty of things have changed in [semi] breaking ways between minor php5 versions. > > We

Re: [PHP] Problems with caching and headers.

2006-07-11 Thread Jochem Maas
Mathijs wrote: > Jochem Maas wrote: >> Mathijs wrote: ... > (Hartelijk dank voor de hulp :D ). we kunnen geheime taal gaan gebruiken - vinden ze hier vast leuk ;-) > > Mathijs > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] GD to database directly

2006-07-11 Thread Eric Butera
On 7/11/06, Kevin Waterson <[EMAIL PROTECTED]> wrote: How much of a performance hit? Kevin -- "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Re: I cannot forget you!

2006-07-11 Thread Robert Cummings
On Tue, 2006-07-11 at 05:26, Barry wrote: > [EMAIL PROTECTED] schrieb: > > your big love, ;-) > > > Well PHP is good but is it that good? *shsh* Where have you been? http://marc.theaimsgroup.com/?l=php-general&m=115129593132595&w=2 Cheers, Rob. -- .

[PHP] PHP 5....

2006-07-11 Thread Ryan A
Hi, Something strange and dont really know what to expect so was hoping you more experienced PHP 5 people can help me out. We have been given a development server thats running php5 with MySql Client API version 5.0.22 (didnt know there was one that high) the problem is, we have to develop on t

Re: [PHP] Startinga shell process with a life of its own

2006-07-11 Thread John Gunther
Great approach! Slicker'n snot. I added one enhancement: The shell script writss progress info to the database which the trigger page displays on entry. Richard Lynch wrote: I would recommend, however, that you re-structure things slightly so that the Architecture is more like this: User vi

[Fwd: [PHP] Problem installing php] - SOLVED

2006-07-11 Thread Ruben Rubio Rey
Solved installing csv version. Is it officially stable? Do anyone know when is it going to be stable? Original Message Subject:[PHP] Problem installing php Date: Tue, 11 Jul 2006 12:04:18 +0200 From: Ruben Rubio Rey <[EMAIL PROTECTED]> To: php-general@lists.php.n

Re: [PHP] Problems with caching and headers.

2006-07-11 Thread Mathijs
Jochem Maas wrote: Mathijs wrote: ... Now i have a problem with the ETag. what are you using this header for? I Use this header to check if the content of a file has changed. This because the content can be variable. But is static most of the time. I Compute an MD5 of the content, and add t

Re: [PHP] Problems with caching and headers.

2006-07-11 Thread Jochem Maas
Mathijs wrote: ... >>> >>> Now i have a problem with the ETag. >> >> what are you using this header for? > > I Use this header to check if the content of a file has changed. > This because the content can be variable. But is static most of the time. > > I Compute an MD5 of the content, and add

Re: [PHP] Problems with caching and headers.

2006-07-11 Thread Mathijs
Mathijs wrote: Jochem Maas wrote: Mathijs wrote: Hello there, I can't figure out why there are some headers set while i don't set them myself. The following headers are sent to the browser. -Expires: Thu, 19 Nov 1981 08:52:00 GMT -Cache-Control: no-store, no-cache, must-revalidate, post-check

Re: [PHP] printing special characters in PHP

2006-07-11 Thread tedd
At 10:16 AM + 7/11/06, Antonio Bassinger wrote: >Dear ALL, > >I've an binary file with special (non-printable) characters including '<' >'/' & '>'. I retrieve this file from the database, into a variable >$binaryFILE. > >I then copy the content to a temporary file, opened with handle $handle :

Re: [PHP] Problems with caching and headers.

2006-07-11 Thread Mathijs
Jochem Maas wrote: Mathijs wrote: Mathijs wrote: Jochem Maas wrote: Mathijs wrote: Hello there, I can't figure out why there are some headers set while i don't set them myself. The following headers are sent to the browser. -Expires: Thu, 19 Nov 1981 08:52:00 GMT -Cache-Control: no-store, n

RE: [PHP] Randomly rotate image on page load? File under: Image Manipulation WOT

2006-07-11 Thread Jay Blanchard
[snip] One could even say that the slides were rotated. :-) [/snip] LOL at the Carousel reference.but if we are still splitting hairs I owned a Bell & Howell Slide Cube projector. Slides were stacked into cubes and dropped into place. And anyway, the Carousel rotated, not the slides. The slid

Re: [PHP] Problems with caching and headers.

2006-07-11 Thread Jochem Maas
Mathijs wrote: > Mathijs wrote: >> Jochem Maas wrote: >>> Mathijs wrote: Hello there, I can't figure out why there are some headers set while i don't set them myself. The following headers are sent to the browser. -Expires: Thu, 19 Nov 1981 08:52:00 GMT

Re: [PHP] printing special characters in PHP

2006-07-11 Thread nicolas figaro
Antonio Bassinger a écrit : Dear ALL, I've an binary file with special (non-printable) characters including '<' '/' & '>'. I retrieve this file from the database, into a variable $binaryFILE. $binaryMS = explode("",$binaryMMS); foreach ($binaryFILE as $ii) { echo $ii; try this : echo htmlspec

Re: [PHP] printing special characters in PHP

2006-07-11 Thread Jochem Maas
Antonio Bassinger wrote: > Dear ALL, > > I've an binary file with special (non-printable) characters including '<' > '/' & '>'. I retrieve this file from the database, into a variable those 3 chars are not non-printable (the fact that I see them in this email is proof enough. > $binaryFILE. > >

Re: [PHP] Problems with caching and headers.

2006-07-11 Thread Mathijs
Jochem Maas wrote: Mathijs wrote: Hello there, I can't figure out why there are some headers set while i don't set them myself. The following headers are sent to the browser. -Expires: Thu, 19 Nov 1981 08:52:00 GMT -Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0

[PHP] printing special characters in PHP

2006-07-11 Thread Antonio Bassinger
Dear ALL, I've an binary file with special (non-printable) characters including '<' '/' & '>'. I retrieve this file from the database, into a variable $binaryFILE. I then copy the content to a temporary file, opened with handle $handle : if (!fwrite($handle, $binaryFILE)) { echo "Fai

[PHP] Problem installing php

2006-07-11 Thread Ruben Rubio Rey
I have a problem when installing php. I have tried with different versions of apache (2.0.55 and 2.0.58) and php (5.1.4 and 5.1.2). The problem still there (Same error in different versions)!!! Note that I had installed apache 2.0.58 and php 5.1.4 before on this server. Problems began when tri

Re: [PHP] Problems with caching and headers.

2006-07-11 Thread Jochem Maas
Mathijs wrote: > Hello there, > > I can't figure out why there are some headers set while i don't set them > myself. > > The following headers are sent to the browser. > -Expires: Thu, 19 Nov 1981 08:52:00 GMT > -Cache-Control: no-store, no-cache, must-revalidate, post-check=0, > pre-check=0 > -P

[PHP] Re: I cannot forget you!

2006-07-11 Thread Barry
[EMAIL PROTECTED] schrieb: your big love, ;-) Well PHP is good but is it that good? -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problems with caching and headers.

2006-07-11 Thread Mathijs
Hello there, I can't figure out why there are some headers set while i don't set them myself. The following headers are sent to the browser. -Expires: Thu, 19 Nov 1981 08:52:00 GMT -Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 -Pragma: no-cache All those i didn'

[PHP] $previous variable ?

2006-07-11 Thread Roman Rumisek
I am using apache 2.0.50 and php 4.4.3RC2 as mod (on Mandrake 10.1). When I run this script: in cli php, i give 'Undefined variable' error message - OK. But under apache, this variable has value 'N'. Is it error ? I found nothing about $previous variable in php.ini and php config directories.