[PHP] problem in using ldap_add() function

2007-03-05 Thread Arun Sadasivan
Hi , i m trying to insert a new user account into the ldap using php . bt i m getting the following warning and the data is not geting inserted _ Warning: ldap_add() [function.ldap-add]: Value array must have consecutive indices 0, 1, ... in /

[PHP] problem in using ldap_add() function

2007-03-05 Thread Arun Sadasivan
Hi , i m trying to insert a new user account into the ldap using php . bt i m getting the following warning and the data is not geting inserted *Warning*: ldap_add() [function.ldap-add]: Value array must have consecu

Re[2]: [PHP] Problem with spam

2007-03-05 Thread Bc. Radek Krejca
Hello, JM> grep -l "mail(" *.php I of course tried this before but I have hundereds domains and a lot of files where clients using function mail. -- Regards, Bc. Radek Krejca ICQ: 65895541 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Image storing

2007-03-05 Thread tedd
At 8:55 PM +0100 3/5/07, Børge Holen wrote: This dude is just trying to start another skirmishand probably a riot. Was there something I missed. :-) tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] Re: Matching Proper Versions Of PHP and MySQL

2007-03-05 Thread Chris
zerof wrote: revDAVE escreveu: Hello All, I'm a newbie. My server just upgraded to PHP version 5.1.2 from php 4.3.11 MySQL currently is v 4.0.27 Q: What is the oldest - best/safest version of mySQL to use with PHP version 5.1.2.? The reason I mentioned the oldest - is because, for legacy

[PHP] Re: advise on data encryption security.

2007-03-05 Thread Mark
Gregory Machin wrote: > Hi > Can anyone point me in the direction of some good docs / howto's on > building php apps that have fully encrypted databases etc .. > Many thanks I'm not sure you'll find any links to "fully encrypted" databases. That's almost useless. You may want to consider encrypte

Re: [PHP] Re: pictures stored in PostgreSQL DB

2007-03-05 Thread Robert Cummings
On Mon, 2007-03-05 at 17:08 -0500, markw@mohawksoft.com wrote: > > On Mon, 2007-03-05 at 14:48 -0500, markw@mohawksoft.com wrote: > >> > On Mon, 2007-03-05 at 10:16 -0500, Mark wrote: > > >> "I gained nothing at all from supreme enlightenment - and for that very > >> reason, it is called supreme en

[PHP] Turning serialize data into an array

2007-03-05 Thread Richard Kurth
How can I get the data out of this string that has been serialize I need to get it into an array so I can access the data with something like $testdata[1] I have tried $testdata= unserialize($testdata); also $sst= base64_encode(serialize($testdata)); $testdata1= unserialize(base64_decode($sst));

Re: [PHP] Re: pictures stored in PostgreSQL DB

2007-03-05 Thread markw
> On Mon, 2007-03-05 at 14:48 -0500, markw@mohawksoft.com wrote: >> > On Mon, 2007-03-05 at 10:16 -0500, Mark wrote: >> >> Alain Roger wrote: >> >> >> >> > Hi, >> >> > >> >> > It's amazing that my previous post has raised so much consideration >> >> about >> >> > the fact to store or not pictures i

Re: [PHP] Re: pictures stored in PostgreSQL DB

2007-03-05 Thread Martin Marques
Robert Cummings escribió: On Mon, 2007-03-05 at 14:48 -0500, markw@mohawksoft.com wrote: Yea, and 1+1 = what ever the engineer or the business requirements want it to be, right? Once again it depends. What base are we working in? Are we working in some kind of odd algebraic space? 1+1 only eq

[PHP] Re: Matching Proper Versions Of PHP and MySQL

2007-03-05 Thread zerof
revDAVE escreveu: Hello All, I'm a newbie. My server just upgraded to PHP version 5.1.2 from php 4.3.11 MySQL currently is v 4.0.27 Q: What is the oldest - best/safest version of mySQL to use with PHP version 5.1.2.? The reason I mentioned the oldest - is because, for legacy clients, I would

Re: [PHP] Re: pictures stored in PostgreSQL DB

2007-03-05 Thread markw
> Robert Cummings escribió: >>> This is engineering, not art class. There are ways to evaluate >>> solutions >>> as being better than others. >> >> This is computer science, not engineering. There are considerations for >> one approach over another not necessarily confined to your idea of >> "effic

Re: [PHP] Session_Start() error

2007-03-05 Thread Jochem Maas
Helder Lopes wrote: > *hi people, > > Hi have this error in the session cookie, how to solve this??? did you read the error message? did you look up the lines specified in the error message? did you read the manual pages related to sessions and session functions? headers have already been sent b

Re: [PHP] Accessing to an Object from a function

2007-03-05 Thread Jochem Maas
Stut wrote: > Lorenzo Giuliani wrote: >> i made a script that uses an object to access to the site data, i >> divided the whole site into various high specialized functions. All >> functions accesses to a single object (the object is a txtSQL >> instance). >> ... but ... i can't access to the varia

Re: [PHP] session question

2007-03-05 Thread Stut
Alain Roger wrote: the index.php page is the first page where user should logon. it consists of 3 flags (english, french and slovak). when use click on 1 flags, it reload the "index.php" page and changes the login and password words by their relative translation into the flag country selected.

Re: [PHP] Image storing

2007-03-05 Thread Robert Cummings
On Mon, 2007-03-05 at 20:55 +0100, Børge Holen wrote: > This dude is just trying to start another skirmishand probably a riot. Well he didn't ask about filesystems, so if everyone keeps it on topic there shouldn't be an issue ;) On Monday 05 March 2007 19:50, Jay Blanchard wrote: > > [snip] > > C

Re: [PHP] Image storing

2007-03-05 Thread Børge Holen
This dude is just trying to start another skirmishand probably a riot. On Monday 05 March 2007 19:50, Jay Blanchard wrote: > [snip] > Can you recommend the best way to store an image into the MySQL database > > and optimze it. > > And display and manipulate that image in PHP. > [/snip] > > There a

Re: [PHP] Re: pictures stored in PostgreSQL DB

2007-03-05 Thread Robert Cummings
On Mon, 2007-03-05 at 14:48 -0500, markw@mohawksoft.com wrote: > > On Mon, 2007-03-05 at 10:16 -0500, Mark wrote: > >> Alain Roger wrote: > >> > >> > Hi, > >> > > >> > It's amazing that my previous post has raised so much consideration > >> about > >> > the fact to store or not pictures into DB. >

[PHP] Re: PHP Clustering solution -- Beta Testers Needed

2007-03-05 Thread Mark
Manuel Lemos wrote: > Hello, > > on 03/05/2007 12:22 PM Mark said the following: >> I have a web clustering solution. >> It is better than putting session files on NFS and better than using a >> database. Take a look and give it a try. >> >> I need feedback on platforms, installation problems, b

Re: [PHP] Re: pictures stored in PostgreSQL DB

2007-03-05 Thread Børge Holen
On Monday 05 March 2007 19:14, Robert Cummings wrote: > On Mon, 2007-03-05 at 10:16 -0500, Mark wrote: > > Alain Roger wrote: > > > Hi, > > > > > > It's amazing that my previous post has raised so much consideration > > > about the fact to store or not pictures into DB. > > > > And yet you ask agai

[PHP] Re: session question

2007-03-05 Thread Fahad Pervaiz
ORIGINAL # I have an "index.php" page which does not user session_start(); command. However in this "index.php" page, there are some $_SESSION['...']; variables stored. How is it possible that $_SESSION['...']; works even if no session has been created before ? moreover, if i use a print

Re: [PHP] Re: pictures stored in PostgreSQL DB

2007-03-05 Thread markw
> On Mon, 2007-03-05 at 10:16 -0500, Mark wrote: >> Alain Roger wrote: >> >> > Hi, >> > >> > It's amazing that my previous post has raised so much consideration >> about >> > the fact to store or not pictures into DB. >> >> And yet you ask again!? Did you not learn? No good can come from this >> qu

Re: [PHP] session question

2007-03-05 Thread Alain Roger
the index.php page is the first page where user should logon. it consists of 3 flags (english, french and slovak). when use click on 1 flags, it reload the "index.php" page and changes the login and password words by their relative translation into the flag country selected. if user click on LOGO

RE: [PHP] Image storing

2007-03-05 Thread Jay Blanchard
[snip] Can you recommend the best way to store an image into the MySQL database and optimze it. And display and manipulate that image in PHP. [/snip] There are many tutorials; http://www.google.com/search?hl=en&q=store+image+in+database+PHP -- PHP General Mailing List (http://www.php.net/) To

[PHP] Image storing

2007-03-05 Thread Delta Storm
Hi, Can you recommend the best way to store an image into the MySQL database and optimze it. And display and manipulate that image in PHP. Thank you very much! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] session question

2007-03-05 Thread Alain Roger
Hi, I have an "index.php" page which does not user session_start(); command. However in this "index.php" page, there are some $_SESSION['...']; variables stored. How is it possible that $_SESSION['...']; works even if no session has been created before ? moreover, if i use a print "Session ID :

Re: [PHP] Holes in mysql primary key and other db issues...

2007-03-05 Thread Steve Edberg
At 2:49 PM -0600 3/4/07, Larry Garfield <[EMAIL PROTECTED]> wrote: On Sunday 04 March 2007 1:15 pm, Mike Shanley wrote: Stut wrote: >> I have a sidebar on my site that gets a few random articles from that >> table, prints the titles, small blurbs, and a link. The link goes to >> the main art

[PHP] Matching Proper Versions Of PHP and MySQL

2007-03-05 Thread revDAVE
Hello All, I'm a newbie. My server just upgraded to PHP version 5.1.2 from php 4.3.11 MySQL currently is v 4.0.27 Q: What is the oldest - best/safest version of mySQL to use with PHP version 5.1.2.? The reason I mentioned the oldest - is because, for legacy clients, I would like to do the mini

Re: [PHP] Session_Start() error

2007-03-05 Thread datsclark
Also make sure you don't have empty lines before the wrote in message news:[EMAIL PROTECTED] > *hi people, > > Hi have this error in the session cookie, how to solve this??? > > Warning*: session_start() > [function.session-start]: > Cannot send session ca

Re: [PHP] Re: pictures stored in PostgreSQL DB

2007-03-05 Thread Robert Cummings
On Mon, 2007-03-05 at 10:16 -0500, Mark wrote: > Alain Roger wrote: > > > Hi, > > > > It's amazing that my previous post has raised so much consideration about > > the fact to store or not pictures into DB. > > And yet you ask again!? Did you not learn? No good can come from this > question. He

Re: [PHP] Session_Start() error

2007-03-05 Thread Rabih Tayyem
Hi, just put session_start() (first line) the first thing in your php file and this should solve the problem. Regards, Rabih On 3/5/07, Helder Lopes <[EMAIL PROTECTED]> wrote: *hi people, Hi have this error in the session cookie, how to solve this??? Warning*: session_start() [function.ses

[PHP] Session_Start() error

2007-03-05 Thread Helder Lopes
*hi people, Hi have this error in the session cookie, how to solve this??? Warning*: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:\PHP\xampp\htdocs\index.php:10) in *D:\PHP\xampp\h

[PHP] Re: PHP Clustering solution -- Beta Testers Needed

2007-03-05 Thread Manuel Lemos
Hello, on 03/05/2007 12:22 PM Mark said the following: > I have a web clustering solution. > It is better than putting session files on NFS and better than using a > database. Take a look and give it a try. > > I need feedback on platforms, installation problems, bugs, suggestions, and > if you

Re: [PHP] Accessing to an Object from a function

2007-03-05 Thread Stut
Lorenzo Giuliani wrote: i made a script that uses an object to access to the site data, i divided the whole site into various high specialized functions. All functions accesses to a single object (the object is a txtSQL instance). ... but ... i can't access to the variable declared in the main sc

[PHP] Accessing to an Object from a function

2007-03-05 Thread Lorenzo Giuliani
Hi, i made a script that uses an object to access to the site data, i divided the whole site into various high specialized functions. All functions accesses to a single object (the object is a txtSQL instance). ... but ... i can't access to the variable declared in the main script. Best regards.

Re: [PHP] Help with a within week function

2007-03-05 Thread David Giragosian
On 3/5/07, Jim Moseby <[EMAIL PROTECTED]> wrote: > > I have been trying to find a way to search a DB and match a > range within a > week ( php & mysql ). > > This doesn't make sense, so I will describe it in more detail. > > > > Hi everyone, > > I need help with a search, lets say a record has a

Re: [PHP] problem generating a file link

2007-03-05 Thread Myron Turner
There's nothing wrong with this. It's standard. I believe the logic of this is that the first two forward slashes represent the standard protocol indicator: http://, ftp://, file://, while the final forward slash represents a directory off the root directory, as a carry over from unix /tmp, /b

RE: [PHP] Help with a within week function

2007-03-05 Thread Jim Moseby
> > I have been trying to find a way to search a DB and match a > range within a > week ( php & mysql ). > > This doesn't make sense, so I will describe it in more detail. > > > > Hi everyone, > > I need help with a search, lets say a record has a date of > 2/5/2007 and if > someone visits

[PHP] Help with a within week function

2007-03-05 Thread Joey
I have been trying to find a way to search a DB and match a range within a week ( php & mysql ). This doesn't make sense, so I will describe it in more detail. Hi everyone, I need help with a search, lets say a record has a date of 2/5/2007 and if someone visits the website between 2/5/07 and

Re: [PHP] template engine/template class

2007-03-05 Thread Alberto Ferrer
http://www.eframework.org/index.php has one, better than Smarty :P Check docs http://www.eframework.org/doc/ http://www.eframework.org/template-syntax/ 2007/3/5, Ross <[EMAIL PROTECTED]>: I am looking for a template class that will take a basic 2 column template I have made and let the user

RE: [PHP] problem generating a file link

2007-03-05 Thread George Pitcher
> Jochem, > > > >>> This is what > >>> the browser (guessed wrong - I'm using Firefox) shows in the > status bar. > >> ok, right - so what does the html source actually contain? > >> > > PDF > > so what happens when you make it like so: > > PDF > > ? No change. George -- PHP General Maili

[PHP] template engine/template class

2007-03-05 Thread Ross
I am looking for a template class that will take a basic 2 column template I have made and let the user -change the page title -add an header image - enter the main body text -save the file to a folder of their choice Is there already a class out there that does this or similar. Smarty is far t

[PHP] PHP Clustering solution -- Beta Testers Needed

2007-03-05 Thread Mark
I have a web clustering solution. It is better than putting session files on NFS and better than using a database. Take a look and give it a try. I need feedback on platforms, installation problems, bugs, suggestions, and if you are up to it, patches. Here is a brief outline http://www.mohawkso

Re: [PHP] problem generating a file link

2007-03-05 Thread Jochem Maas
George Pitcher wrote: > Jochem, > >>> This is what >>> the browser (guessed wrong - I'm using Firefox) shows in the status bar. >> ok, right - so what does the html source actually contain? >> > PDF so what happens when you make it like so: PDF ? > >> I'm assuming that the way firefox is inte

[PHP] RE:[[PHP] Error in Script!!! - SOLVED

2007-03-05 Thread Helder Lopes
Thanxs for helping! The error has that i was not calling the database, neither the connection!! Im so stupid! Sorry for your time lost!

[PHP] Re: pictures stored in PostgreSQL DB

2007-03-05 Thread Mark
Alain Roger wrote: > Hi, > > It's amazing that my previous post has raised so much consideration about > the fact to store or not pictures into DB. And yet you ask again!? Did you not learn? No good can come from this question. > However, none of those posts answered to my question... How can i

Re: [PHP] Error in Script!!!

2007-03-05 Thread Stut
Helder Lopes wrote: Why this script give me a error: *Warning*: mysql_query(): supplied argument is not a valid MySQL-Link resource in *ver.php* on line *23* This means that the second parameter to the mysql_query call ($con) is not a valid connection to a MySQL database. How are you definin

RE: [PHP] problem generating a file link

2007-03-05 Thread George Pitcher
Jochem, > > This is what > > the browser (guessed wrong - I'm using Firefox) shows in the status bar. > > ok, right - so what does the html source actually contain? > PDF > I'm assuming that the way firefox is interpreting the link makes > it not work? > does the link work in IE? > I get exactly

Re: [PHP] error in Script

2007-03-05 Thread Jochem Maas
Helder Lopes wrote: > In other file well then it *must* be correct. have you tried actually looking at $con to see what it contains??? the connection to mysql failed or was never even attempted, the error you get makes that quite clear. > -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] error in Script

2007-03-05 Thread Brad Bonkoski
Helder Lopes wrote: In other file I asked because it might prove helpful to see how that is set because this appears to be what is causing your error. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE:[[PHP] Error in Script!!!

2007-03-05 Thread Helder Lopes
Helder Lopes wrote: Erro no banco de dados!");//line 23 Where is $con defined??? -B $total = mysql_num_rows($result_id); // Caso o usuário tenha digitado um login válido o número de linhas será 1.. if($total) { // Obtém os dados do usuário, para poder verificar a senha e passar os demais d

Re: [PHP] problem generating a file link

2007-03-05 Thread Jochem Maas
George Pitcher wrote: > Jochem, > >>> I have tried variations on the following: >>> >>> $storelink = ">> target=\"_blank\">PDF"; >>> >>> and the link keeps coming out as: >>> >>> file:///G:/575991.pdf >> is that what the browser (let me guess: IE) is interpreting >> the link as or is that what is

[PHP] error in Script

2007-03-05 Thread Helder Lopes
In other file -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error in Script!!!

2007-03-05 Thread Brad Bonkoski
Helder Lopes wrote: Erro no banco de dados!");//line 23 Where is $con defined??? -B $total = mysql_num_rows($result_id); // Caso o usuário tenha digitado um login válido o número de linhas será 1.. if($total) { // Obtém os dados do usuário, para poder verificar a senha e passar os demais

[PHP] Error in Script!!!

2007-03-05 Thread Helder Lopes
Erro no banco de dados!");//line 23 $total = mysql_num_rows($result_id); // Caso o usuário tenha digitado um login válido o número de linhas será 1.. if($total) { // Obtém os dados do usuário, para poder verificar a senha e passar os demais dados para a sessão $dados = mysql_fetch_array($

Re: [PHP] module and access rights

2007-03-05 Thread Stut
Alain Roger wrote: I already started to use SSL, but i do not understand how to keep it running. I mean after user has been authenticated and authorized to go further, all next web pages are opened using PHP location(https://...); command. however, it does not certify that it can not be faked

[PHP] problem generating a file link

2007-03-05 Thread George Pitcher
Hi, I have a web page that only I see, and I want to link to a PDF file on a mapped drive so that it will open in Acrobat. I have tried variations on the following: $storelink = "PDF"; and the link keeps coming out as: file:///G:/575991.pdf So I have 3 x '/' and a '/' where I want a '\'. Can

RE: [PHP] problem generating a file link

2007-03-05 Thread George Pitcher
Jochem, > > I have tried variations on the following: > > > > $storelink = " > target=\"_blank\">PDF"; > > > > and the link keeps coming out as: > > > > file:///G:/575991.pdf > > is that what the browser (let me guess: IE) is interpreting > the link as or is that what is literally in the html sour

[PHP] Re: [PHP-DB] array field type

2007-03-05 Thread Sancar Saran
Thanks for all those replies. It seems there was no easy solution (and or serializing was better solution) for us. Our arrays contains lots of things.. XML may not fit because content of array may broke xml structure. Thanks for help. Regards Sancar. > >>>Hi, > >>> > >>>I want to know is th

Re: [PHP] problem generating a file link

2007-03-05 Thread Jochem Maas
George Pitcher wrote: > Hi, > > I have a web page that only I see, and I want to link to a PDF file on a > mapped drive so that it will open in Acrobat. > > I have tried variations on the following: > > $storelink = " target=\"_blank\">PDF"; > > and the link keeps coming out as: > > file:///G:

RE: [PHP] Problem with spam

2007-03-05 Thread Jim Moseby
> > Hi, > > I have problem with spam over function mail. My clients have badly > written functions and I cannot find where. Is there in php simple > way to detect which script generate mail? I mean like header (in > case of returning mail) or log every using mail function etc. grep -l

Re: [PHP] module and access rights

2007-03-05 Thread Németh Zoltán
2007. 03. 5, hétfő keltezéssel 15.05-kor Alain Roger ezt írta: > I already started to use SSL, but i do not understand how to keep it > running. > > I mean after user has been authenticated and authorized to go further, all > next web pages are opened using PHP location(https://...); command. > ho

Re: [PHP] module and access rights

2007-03-05 Thread Alain Roger
I already started to use SSL, but i do not understand how to keep it running. I mean after user has been authenticated and authorized to go further, all next web pages are opened using PHP location(https://...); command. however, it does not certify that it can not be faked by just typing into br

Re: [PHP] module and access rights

2007-03-05 Thread Alain Roger
But where do you store the $server_unique_key ? in DB ? if yes, it should be different for each user logged-in to system. Moreover, the $chec_string algorithm should not written in cookie as it is a weakness from my point of view. Alain On 3/4/07, Tijnema ! <[EMAIL PROTECTED]> wrote: Give you

[PHP] Re: [PHP-DB] array field type

2007-03-05 Thread Bastien Koert
another option might be to store xml snippets that match the array. if you are using large numbers of arrays, perhaps a revamping of the db structure to map the arrays to sub-tables might be in order bastien From: Micah Stevens <[EMAIL PROTECTED]> To: Sancar Saran <[EMAIL PROTECTED]> CC: ph

[PHP] Problem with spam

2007-03-05 Thread Bc. Radek Krejca
Hi, I have problem with spam over function mail. My clients have badly written functions and I cannot find where. Is there in php simple way to detect which script generate mail? I mean like header (in case of returning mail) or log every using mail function etc. Thank you -- Regards

Re: [PHP] Re: how to display images stored in DB

2007-03-05 Thread Martin Marques
On Sat, 3 Mar 2007, steve wrote: Also, when you hit the 1024 image limit you have to think about directory schema to store the images, as the linux filesystem (and also on other 32 bit systems) will start getting slow, until things like ls will just give you an error. We have a system (I didn't

Re: [PHP] file open dialog box

2007-03-05 Thread Alain Roger
Thanks for your answer Chris, but i already used this example yesterday as base for my request. Alain On 3/5/07, Chris <[EMAIL PROTECTED]> wrote: Alain Roger wrote: > Hi, > > I would like to have an Open file dialog box in my PHP page like it > exist on > Microsoft Windows. > This dialog box s

[PHP] advise on data encryption security.

2007-03-05 Thread Gregory Machin
Hi Can anyone point me in the direction of some good docs / howto's on building php apps that have fully encrypted databases etc .. Many thanks -- Gregory Machin [EMAIL PROTECTED] www.linuxpro.co.za -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub