RE: [PHP] serialize

2005-09-24 Thread Murray @ PlanetThoughtful
> I have an app that stores evaluation scores so I have 30+ values all > within a certain range, currently in the db, each of these values has > it's own column: > > Table test >id >user_id >motivation >caring >personal_characteristics >creativity, >...etc. > > If the

Re: [PHP] serialize

2005-09-24 Thread Gustav Wiberg
- Original Message - From: "blackwater dev" <[EMAIL PROTECTED]> To: Sent: Sunday, September 25, 2005 4:17 AM Subject: [PHP] serialize I have an app that stores evaluation scores so I have 30+ values all within a certain range, currently in the db, each of these values has it's own colu

Re: [PHP] Is PHP the language for me???

2005-09-24 Thread Gustav Wiberg
- Original Message - From: "Jasper Bryant-Greene" <[EMAIL PROTECTED]> To: Sent: Sunday, September 25, 2005 1:38 AM Subject: Re: [PHP] Is PHP the language for me??? Gustav Wiberg wrote: I have read some posts about this issue, but one point that is essential that I've not read about i

Re: [PHP] OT - database and indexes... but anyone please?

2005-09-24 Thread Gustav Wiberg
- Original Message - From: "Rory Browne" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]> Cc: "PHP General" Sent: Sunday, September 25, 2005 1:26 AM Subject: Re: [PHP] OT - database and indexes... but anyone please? I'm not an expert on databases, and I haven't a notion of

Re: [PHP] How to Looking at Raw Binary Data with PHP and curl

2005-09-24 Thread Graham Anderson
Is this good enough encryption for daily use ? FYI, I need to keep the first part of the file unencrypted so the file will progressively load Functions were taken from the mycrypt php page :) $chunkSize = 32768; $key = "6q9nKLg5" if( $fd = fopen($filepath, 'rb')){ while(!feof($fd)

[PHP] serialize

2005-09-24 Thread blackwater dev
I have an app that stores evaluation scores so I have 30+ values all within a certain range, currently in the db, each of these values has it's own column: Table test id user_id motivation caring personal_characteristics creativity, ...etc. If the client decides they want to

Re: [PHP] basic user/input form questions... more validation!

2005-09-24 Thread Jasper Bryant-Greene
bruce wrote: i would agree, and didn't think it made sense.. but i don't know what you mean by the phrase 'escape all output'!! i don't see the need to escape all output from the mysql db/tbl... so i'm not sure you meant this. Output can be (among other things): * Your script => MySQL * Your s

Re: [PHP] Is PHP the language for me???

2005-09-24 Thread Jasper Bryant-Greene
Gustav Wiberg wrote: I have read some posts about this issue, but one point that is essential that I've not read about is the future! I mean, what are your plans in the future? Or what plans is it for the website. Just because it's only simple links now, it might be right to consider if for exa

RE: [PHP] basic user/input form questions... more validation!

2005-09-24 Thread bruce
chris... i would agree, and didn't think it made sense.. but i don't know what you mean by the phrase 'escape all output'!! i don't see the need to escape all output from the mysql db/tbl... so i'm not sure you meant this. for my $0.02, i'd quote/escape all 'strings/date' vars that would be inser

Re: [PHP] LINKS

2005-09-24 Thread Rory Browne
On 9/24/05, php @ net mines <[EMAIL PROTECTED]> wrote: > Hi all > > is there a way to have a program detecting when a link was clicked and > automatically opening another window (that can "plugged-in" in any website - > running php of course)? That would be done using client-side JS. you would de

Re: [PHP] OT - database and indexes... but anyone please?

2005-09-24 Thread Rory Browne
I'm not an expert on databases, and I haven't a notion of mailing you off-list, with information that could potentially benifit others as well, but from my understanding, deleting an index(a good index that is) would slow the db down in certain cases. Deleting a "bad index" would speed certain oper

Re: [PHP] How to Looking at Raw Binary Data with PHP and curl

2005-09-24 Thread Jasper Bryant-Greene
Graham Anderson wrote: How do you display raw binary data of a file sent from a server with curl ? You can probably just use file_get_contents() if allow_url_fopen is enabled (it is by default). For binary data, base64_encode and it's friend base64_decode allow you to encode and decode b

[PHP] How to Looking at Raw Binary Data with PHP and curl

2005-09-24 Thread Graham Anderson
How do you display raw binary data of a file sent from a server with curl ? When I curl a movie file with curl -l -i "path2file/file.php",I get the below output in my Terminal. file.php: $find = array($find1,$find2,$find3,$find4); $replace = array($replace1,$replace2,$replace3,$replace4)

[PHP] OT - database and indexes... but anyone please?

2005-09-24 Thread Gustav Wiberg
Hi there! This is not strictly PHP... but if there's anyone out there with good knowledge of indexes, please mail me off-list. My question: If I delete an index, what is the WORST thing that can happen? /G http://www.varupiraten.se/ -- PHP General Mailing List (http://www.php.net/) To unsubs

[PHP] Using fopen('php://stdout') with apache

2005-09-24 Thread andrew morton
I'm trying to move some code that was written for the CLI to the web. It makes extensive use fprintf() and fputs() and under Apache2 it give no output. The simple test case that demonstrates the problem looks like: Using php-cli on FreeBSD: [EMAIL PROTECTED]:/home/www/multivac> php phptest.php

[PHP] Cross Tabulation

2005-09-24 Thread Shaun
Hi, The following article describes cross tabulation within MySQL and ends with a Perl application that automates the process, does anyone know of a PHP version? http://dev.mysql.com/tech-resources/articles/wizard/index.html Thanks for your advice. -- PHP General Mailing List (http://www.ph

Re: [PHP] Is PHP the language for me???

2005-09-24 Thread Gustav Wiberg
- Original Message - From: "Emily McCall" <[EMAIL PROTECTED]> To: Sent: Friday, September 23, 2005 11:07 PM Subject: [PHP] Is PHP the language for me??? I am trying to figure out whether php will help me to set up a website which is essentially just links to donwloadable material. I

Re: [PHP] LINKS

2005-09-24 Thread Gustav Wiberg
- Original Message - From: "php @ net mines" <[EMAIL PROTECTED]> To: Sent: Saturday, September 24, 2005 4:34 PM Subject: [PHP] LINKS Hi all is there a way to have a program detecting when a link was clicked and automatically opening another window (that can "plugged-in" in any webs

[PHP] LINKS

2005-09-24 Thread php @ net mines
Hi all is there a way to have a program detecting when a link was clicked and automatically opening another window (that can "plugged-in" in any website - running php of course)? I know... I hate pop-ups too but a client asked for it... Thanks M -- PHP General Mailing List (http://www.php

Re: [PHP] php 4 script with php 5.

2005-09-24 Thread Dwayne Hottinger
Quoting Torgny Bjers <[EMAIL PROTECTED]>: > Don't top-post (on mailing lists, always respond below the other > person's post). Please see below for my reply. > > Dwayne Hottinger wrote: > > >Thanks Torgny, > >Im a real newby here at php scripting. What should I put in the ()? > >Copying the s

Re: [PHP] php 4 script with php 5.

2005-09-24 Thread Torgny Bjers
Don't top-post (on mailing lists, always respond below the other person's post). Please see below for my reply. Dwayne Hottinger wrote: >Thanks Torgny, >Im a real newby here at php scripting. What should I put in the ()? >Copying the snip into the script complains about that. This is in a

Re: [PHP] php 4 script with php 5.

2005-09-24 Thread Dwayne Hottinger
Thanks Torgny, Im a real newby here at php scripting. What should I put in the ()? Copying the snip into the script complains about that. This is in a db.php which defines how another script should utilize the database. I could copy the db.php into an email for someone to look over. thanks

Re: [PHP] php 4 script with php 5.

2005-09-24 Thread Torgny Bjers
Dwayne Hottinger wrote: >I am trying to transfer some databases and php scripts that populate them to a >new server. Server is running Fedora core 4 with mysql 4.x and php 5.0.5. >Original scripts were writen with php 4.x and worked fine. I get a PHP Notice: > Undefined variable: return_array wh

[PHP] php 4 script with php 5.

2005-09-24 Thread Dwayne Hottinger
I am trying to transfer some databases and php scripts that populate them to a new server. Server is running Fedora core 4 with mysql 4.x and php 5.0.5. Original scripts were writen with php 4.x and worked fine. I get a PHP Notice: Undefined variable: return_array when running them on the new se

Re: [PHP] selfreferencing script with output

2005-09-24 Thread Sabine
Thanks for your answer, Gustav, now I see I didn't explain good enough what my problem is. My problem is not how to construct a status bar, but not it is possible to provide any output before the headering (*Warning*: Cannot modify header information - headers already sent by). Neither after i

Re: [PHP] selfreferencing script with output

2005-09-24 Thread Sabine
Thank you very much for your answer, Rory, but I fear I don't understand the most important parts of it. It would be very nice of you if you could give me a further hint, more explanation. Rory Browne schrieb: On 9/23/05, Sabine <[EMAIL PROTECTED]> wrote: Hello to all, I have 2 scripts