[PHP] Problem iterating over an array with foreach and a reference variable

2007-07-24 Thread Chris Mika
I don't know if I'm doing something wrong or if this is a bug. Very simply: I created an array with values 1-5. I use a foreach loop to iterate over it to add 1 to the values. It correctly iterates over the array except for the last value. Code: "; foreach ($test as $part) { print "($part)

Re: [PHP] Problem compile 5.2.3 souce under SUSE 10.1

2007-07-23 Thread Chris
Jeff Lanzarotta wrote: Hello, I am not sure if this is the right mailing list or not, but here goes... I am attempting to compile php 5.2.3 from source under SUSE 10.1. The compile is fine, it is the 'make test' that is failing... When I run 'make test' I am getting:

[PHP] Problem compile 5.2.3 souce under SUSE 10.1

2007-07-23 Thread Jeff Lanzarotta
Hello, I am not sure if this is the right mailing list or not, but here goes... I am attempting to compile php 5.2.3 from source under SUSE 10.1. The compile is fine, it is the 'make test' that is failing... When I run 'make test' I am getting: =

[PHP] problem with install php 5.2.3 on apache 2.2.4 in windows xp sp2

2007-07-20 Thread arvin lee
system: windows xp sp 2 apache: apache_2.2.4-win32-x86-no_ssl PHP: php-5.2.3-win32-installer.msi i try to install php on my computer so that i can finish my homework, but after download these files nightmare begins. Install apache with default settings, install php with default settings. Rest

[PHP] problem with pcode function

2007-07-17 Thread Ross
I have this postcode selector working on my localhost but remotely it gives a parse error. It should only call the function when the postcode is submitted. Any ideas? The error is: Parse error: parse error, unexpected T_NEW in /homepages/3/d154908384/htdocs/legalsuk/consultants/nearest.php on

Re: [PHP] problem with array

2007-07-15 Thread Jim Lucas
Ross wrote: I am using postcode anywhere for a 'where's my nearest' function. All the geographical info is contained in an array, which when dumped looks like this var_dump ($result); array(1) { [0]=> array(13) { ["origin_postcode"]=> string(7) "EH2 2BE" ["destination_postcode"]=> string(6)

[PHP] problem with array

2007-07-15 Thread Ross
I am using postcode anywhere for a 'where's my nearest' function. All the geographical info is contained in an array, which when dumped looks like this var_dump ($result); array(1) { [0]=> array(13) { ["origin_postcode"]=> string(7) "EH2 2BE" ["destination_postcode"]=> string(6) "EH2 2BE" ["di

Re: [PHP] Problem with GD after upgrading Entropy 5.1.6 -> 5.2.2

2007-07-11 Thread Richard Lynch
Comment out the header("Content-type"); Change error_reporting to E_ALL. Surf directly to chart.php. See error messages. Fix them. On Tue, July 10, 2007 3:26 pm, M5 wrote: > I've got a little PHP script that generates charts, that has been > working perfectly every day for the past couple year

Re: [PHP] Problem with GD after upgrading Entropy 5.1.6 -> 5.2.2

2007-07-10 Thread M5
Thanks Jim, Such common sense revealed the cause—out of memory when generating the chart. The session 'problem' was a red herring—the reason the script ran out of memory is that GD only needed more than 8MB when it was able to produce a large enough GIF (since the session data was availab

Re: [PHP] Problem with GD after upgrading Entropy 5.1.6 -> 5.2.2

2007-07-10 Thread Eric Butera
On 7/10/07, M5 <[EMAIL PROTECTED]> wrote: I've got a little PHP script that generates charts, that has been working perfectly every day for the past couple years. Since upgrading the Xserve's PHP from 5.1.6 to 5.2.2 (both Entropy), it has stopped working. Specifically, it doesn't return any GIFs

Re: [PHP] Problem with GD after upgrading Entropy 5.1.6 -> 5.2.2

2007-07-10 Thread Jim Lucas
M5 wrote: I've got a little PHP script that generates charts, that has been working perfectly every day for the past couple years. Since upgrading the Xserve's PHP from 5.1.6 to 5.2.2 (both Entropy), it has stopped working. Specifically, it doesn't return any GIFs (charts). Actually, it will o

[PHP] Problem with GD after upgrading Entropy 5.1.6 -> 5.2.2

2007-07-10 Thread M5
I've got a little PHP script that generates charts, that has been working perfectly every day for the past couple years. Since upgrading the Xserve's PHP from 5.1.6 to 5.2.2 (both Entropy), it has stopped working. Specifically, it doesn't return any GIFs (charts). Actually, it will output a

Re: [PHP] Problem extending mysqli - "No database connected"

2007-07-02 Thread Richard Lynch
Somewhere in that mess there should be something to do a mysqli_select_db() to choose WHICH database to use... Where it's supposed to be in the mess of OOP layers you're wrapped around yourself, god only knows. On Fri, June 29, 2007 12:31 pm, Lee PHP wrote: > Hi, > > I have a class that extends m

Re: [PHP] Problem extending mysqli - "No database connected"

2007-06-29 Thread Stut
Please always include the list when replying. Lee PHP wrote: Yup, that was it - thanks! Coming from a Java OO background, I find it frustrating that PHP doesn't warn me about stuff like that. Oh well, I guess I'll know next time. End the frustration, turn notices on. This reminds me of a sayin

Re: [PHP] Problem extending mysqli - "No database connected"

2007-06-29 Thread Stut
Lee PHP wrote: public static function getInstance($url = null) { // Set the URL if one is provided. if (isset($url)) { $this->setUrl($url); } // Instantiate the Singleton if not already instantiated. if(empty(self::$INSTANCE)) {

Re: [PHP] Problem extending mysqli - "No database connected"

2007-06-29 Thread Stut
Lee PHP wrote: I have a class that extends msyqli that AFAIK can connect to the database, but gives me an error when I try and query it. Here's my class: -- BEGIN DATABASE CLASS -- require_once('Configuration.php'); require_once('RSFSException.php'); class Database extends mysqli { pri

[PHP] Problem extending mysqli - "No database connected"

2007-06-29 Thread Lee PHP
Hi, I have a class that extends msyqli that AFAIK can connect to the database, but gives me an error when I try and query it. Here's my class: -- BEGIN DATABASE CLASS -- require_once('Configuration.php'); require_once('RSFSException.php'); class Database extends mysqli { privat

Re: [PHP] problem with composing URL with GET Variables

2007-05-24 Thread Richard Lynch
On Wed, May 23, 2007 1:39 am, Angelo Zanetti wrote: > Dear all. > > I have a script that is called by an AJAX popup. Now I use an image > file to get the path of an image for an tag > > eg: > > > > > the $getImageURL is composed as follows: > > $getImageURL = "getImage.php?imageid=". > $imageID.

[PHP] SOLVED Re: [PHP] problem with composing URL with GET Variables

2007-05-23 Thread Angelo Zanetti
SOLVED. seems that something else was causing the script not to work. Thanks anyway Angelo Zanetti wrote: Dear all. I have a script that is called by an AJAX popup. Now I use an image file to get the path of an image for an tag eg: the $getImageURL is composed as follows: $

[PHP] problem with composing URL with GET Variables

2007-05-22 Thread Angelo Zanetti
Dear all. I have a script that is called by an AJAX popup. Now I use an image file to get the path of an image for an tag eg: the $getImageURL is composed as follows: $getImageURL = "getImage.php?imageid=". $imageID."&height=275&width=375&quality=65"; However when I look at t

Re: [PHP] problem with string & floats in PHP

2007-05-15 Thread Andrei
If you need precision with floats or doubles you can use BCMath Arbitrary Precision Mathematics Functions. http://www.php.net/manual/en/ref.bc.php Andy Pablo Luque wrote: > Hello, Im designing a website in which I have to read some data > (numbers) from a txt file and then send this dat

Re: [PHP] problem with string & floats in PH

2007-05-15 Thread Dave Goodchild
What function(s) are you using to read the file contents? How are you inserting them into the array? Code examples please...

Re: [PHP] problem with string & floats in PHP

2007-05-15 Thread Richard Davey
Hi Pablo, Tuesday, May 15, 2007, 7:44:52 PM, you wrote: > Hello, Im designing a website in which I have to read some data (numbers) > from a txt file and then send this data to a function which prints a graphic > with them. When I read the data I save it in an array and the numbers are in > this

[PHP] problem with string & floats in PHP

2007-05-15 Thread Pablo Luque
Hello, Im designing a website in which I have to read some data (numbers) from a txt file and then send this data to a function which prints a graphic with them. When I read the data I save it in an array and the numbers are in this format: 5.812E-08. I have read the php documentation about it,

Re: [PHP] Problem with mssql_query()

2007-05-10 Thread Chris
Richard Lynch wrote: PostgreSQL will simply throw an error, because '8' is not no way no how an INT. It's a string. Since when? test=# create table b(b int); CREATE TABLE test=# insert into b(b) values ('1'); INSERT 0 1 test=# SELECT * from b; b --- 1 (1 row) test=# select * from b where b

Re: [PHP] Problem with mssql_query()

2007-05-09 Thread Richard Lynch
I dunno 100% for sure about MSsql, but I know for sure that MySQL lets you do wording_id = '8' when wording_id is an INT and PostgreSQL will simply throw an error, because '8' is not no way no how an INT. It's a string. I suspect MS SQL may be doing the same, in its own unique bland non-desript w

RE: [PHP] Problem with mssql_query()

2007-05-09 Thread Chris Boget
x27;]; } $this->connection = $conn; return DB_OK; } We use the DSN: mssql://UID:[EMAIL PROTECTED]/db_name. We are not using persistent connections. thnx, Chris From: Dan Shirah [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 09, 200

Re: [PHP] Problem with mssql_query()

2007-05-09 Thread Dan Shirah
Post your block of code from your connection string (Leave out your username/password info please) to the end of the result set for your query so I can take a look at it. On 5/9/07, Chris Boget <[EMAIL PROTECTED]> wrote: I noticed the following in my logs: 22:04:42 [warning] [D:\PHP\pear\DB\m

[PHP] Problem with mssql_query()

2007-05-09 Thread Chris Boget
I noticed the following in my logs: 22:04:42 [warning] [D:\PHP\pear\DB\mssql.php][439]: mssql_query(): Unable to set query 22:04:42 [info] Backtrace: [D:\PHP\pear\DB\mssql.php][439]; function( mssql_query ); args( 1[value:select @@ERROR as ErrorCode] 2[value:Resource id #21] ) 22:04:42 [i

Re: [PHP] Problem to insert the field

2007-05-08 Thread Richard Lynch
On Tue, May 8, 2007 5:35 am, uni uni wrote: > im having problem in making php news. > > I have session variables in login prosses: > > $_SESSION['username']=$rec['username']; > $_SESSION['registered_admin']=TRUE; > > $_SESSION['username'] is taken from "admin" table > > registered_admin can publish

Re: [PHP] Problem to insert the field

2007-05-08 Thread Zoltán Németh
2007. 05. 8, kedd keltezéssel 03.35-kor uni uni ezt írta: > im having problem in making php news. > > I have session variables in login prosses: > > $_SESSION['username']=$rec['username']; > $_SESSION['registered_admin']=TRUE; > > $_SESSION['username'] is taken from "admin" table > > registered

[PHP] Problem to insert the field

2007-05-08 Thread uni uni
im having problem in making php news. I have session variables in login prosses: $_SESSION['username']=$rec['username']; $_SESSION['registered_admin']=TRUE; $_SESSION['username'] is taken from "admin" table registered_admin can publish the news, and i want to insert the value that were sent fr

Re: [PHP] Problem with timeout

2007-05-05 Thread Frank Arensmeier
4 maj 2007 kl. 23.48 skrev Richard Lynch: On Fri, May 4, 2007 3:42 pm, Frank Arensmeier wrote: I still think that the best way to go is to not involve Apache at all when running the script. Because the script already has functions for output logging etc. it is no big deal to change the code so

Re: [PHP] Problem with timeout

2007-05-04 Thread Frank Arensmeier
4 maj 2007 kl. 21.58 skrev Richard Lynch: On Fri, May 4, 2007 8:37 am, Frank Arensmeier wrote: I am currently working on a script that parses a given http adress by looking for anchor tags, background images and so on - a crawler if you like. The downloaded content is temporarily stored on the

Re: [PHP] Problem with timeout

2007-05-04 Thread Richard Lynch
On Fri, May 4, 2007 8:37 am, Frank Arensmeier wrote: > I am currently working on a script that parses a given http adress by > looking for anchor tags, background images and so on - a crawler if > you like. The downloaded content is temporarily stored on the server > (Mac OS X Server 10.4.9 with PH

[PHP] Problem with timeout

2007-05-04 Thread Frank Arensmeier
Hello. I am currently working on a script that parses a given http adress by looking for anchor tags, background images and so on - a crawler if you like. The downloaded content is temporarily stored on the server (Mac OS X Server 10.4.9 with PHP 5) and, when the script is done, the conte

Re: [PHP] problem with shared object file

2007-05-02 Thread Richard Lynch
On Wed, May 2, 2007 5:10 pm, Tijnema ! wrote: > On 5/3/07, Richard Lynch <[EMAIL PROTECTED]> wrote: >> On Sat, April 28, 2007 6:15 pm, Tijnema ! wrote: >> > You have exactly the same problem as i have. My shared hosting has >> > safe_mode off en dl on, so i could load them :) >> > But i don't have

Re: [PHP] problem with shared object file

2007-05-02 Thread Tijnema !
On 5/3/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Sat, April 28, 2007 6:15 pm, Tijnema ! wrote: > You have exactly the same problem as i have. My shared hosting has > safe_mode off en dl on, so i could load them :) > But i don't have access to write to the php.ini file. > Maybe we should cre

Re: [PHP] problem with shared object file

2007-05-02 Thread Richard Lynch
On Sat, April 28, 2007 6:15 pm, Tijnema ! wrote: > You have exactly the same problem as i have. My shared hosting has > safe_mode off en dl on, so i could load them :) > But i don't have access to write to the php.ini file. > Maybe we should create such workaround as you provided? Some script > tha

Re: [PHP] problem with shared object file

2007-04-28 Thread Tijnema !
On 4/28/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Fri, April 27, 2007 5:49 pm, Tijnema ! wrote: >> Also, I think dl() is going away in PHP 6, so you may want to >> re-think >> this from the get-go... > > Yes, if seen it is deprecated, but how could somebody include dynamic > library without

Re: [PHP] problem with shared object file

2007-04-28 Thread Richard Lynch
On Fri, April 27, 2007 5:49 pm, Tijnema ! wrote: >> Also, I think dl() is going away in PHP 6, so you may want to >> re-think >> this from the get-go... > > Yes, if seen it is deprecated, but how could somebody include dynamic > library without editing php.ini? I was a little bit shocked when i > r

Re: [PHP] problem with shared object file

2007-04-27 Thread Tijnema !
On 4/27/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Thu, April 26, 2007 5:48 am, Marten Lehmann wrote: > Hello, > > I'm trying to include a shared object file with the function dl(). But > I > always get: > > Warning: dl() [function.dl]: Unable to load dynamic library > '/homepages/xyz/util.s

Re: [PHP] problem with shared object file

2007-04-27 Thread Richard Lynch
On Thu, April 26, 2007 5:48 am, Marten Lehmann wrote: > Hello, > > I'm trying to include a shared object file with the function dl(). But > I > always get: > > Warning: dl() [function.dl]: Unable to load dynamic library > '/homepages/xyz/util.so' - /homepages/xyz/util.so: cannot open shared > objec

Re: [PHP] problem with shared object file

2007-04-26 Thread Tijnema !
On 4/26/07, Marten Lehmann <[EMAIL PROTECTED]> wrote: Hello, I'm trying to include a shared object file with the function dl(). But I always get: Warning: dl() [function.dl]: Unable to load dynamic library '/homepages/xyz/util.so' - /homepages/xyz/util.so: cannot open shared object file: No suc

Re: [PHP] problem with shared object file

2007-04-26 Thread Stut
Marten Lehmann wrote: I'm trying to include a shared object file with the function dl(). But I always get: Warning: dl() [function.dl]: Unable to load dynamic library '/homepages/xyz/util.so' - /homepages/xyz/util.so: cannot open shared object file: No such file or directory in /homepages/xyz

[PHP] problem with shared object file

2007-04-26 Thread Marten Lehmann
Hello, I'm trying to include a shared object file with the function dl(). But I always get: Warning: dl() [function.dl]: Unable to load dynamic library '/homepages/xyz/util.so' - /homepages/xyz/util.so: cannot open shared object file: No such file or directory in /homepages/xyz/test.php on l

Re: [PHP] Problem with uploading file using FireFox

2007-04-21 Thread Jürgen Wind
Richard Kurth-2 wrote: > > I know this is not a PHP problem it is a Browser problem but I need a > workaround to make this work. So I can finishing my php script > Using this to select the file and path > > > > > > > > My problem I In

[PHP] Problem with uploading file using FireFox

2007-04-21 Thread Richard Kurth
I know this is not a PHP problem it is a Browser problem but I need a workaround to make this work. So I can finishing my php script Using this to select the file and path My problem I Internet explore this will produce C:\directory\directory\uploaded.file But it FireFox

Re: [PHP] Problem with characters

2007-04-20 Thread Richard Lynch
On Fri, April 20, 2007 12:19 pm, enediel gonzalez wrote: > Hello. > I have a php site connected to one database mysql. > > using phpmyadmin I can read that in one register of the database > exists the > string > Vérifie que le service > > reading the registry in php code > $description = $row[$desc

Re: [PHP] Problem with characters

2007-04-20 Thread Davi
Em Sexta 20 Abril 2007 14:19, enediel gonzalez escreveu: > Hello. > using phpmyadmin I can read that in one register of the database exists the > string > Vérifie que le service > > reading the registry in php code > $description = $row[$description_field]); > exec("echo '$description' >> /tmp/ttt.

[PHP] Problem with characters

2007-04-20 Thread enediel gonzalez
Hello. I have a php site connected to one database mysql. using phpmyadmin I can read that in one register of the database exists the string Vérifie que le service reading the registry in php code $description = $row[$description_field]); exec("echo '$description' >> /tmp/ttt.txt"); inside of

Re: [PHP] Problem with XSLT importStyleSheet

2007-03-28 Thread Tijnema !
On 3/28/07, Timothy Murphy <[EMAIL PROTECTED]> wrote: I've been trying to use PHP/XSLT on my desktop, running Fedora-6 Linux (with all current updates). The function importStyleSheet() seems to cause a Segmentation Violation, as eg in the following script from http://ie2.php.net/manual/en/functi

[PHP] Problem with XSLT importStyleSheet

2007-03-28 Thread Timothy Murphy
I've been trying to use PHP/XSLT on my desktop, running Fedora-6 Linux (with all current updates). The function importStyleSheet() seems to cause a Segmentation Violation, as eg in the following script from http://ie2.php.net/manual/en/function.xsl-xsltprocessor-construct.php -

RE: [PHP] Problem with MySQL

2007-03-21 Thread Németh Zoltán
2007. 03. 21, szerda keltezéssel 00.04-kor Richard Lynch ezt írta: > On Tue, March 20, 2007 11:08 am, Ford, Mike wrote: > >> what do you want with that '@' here? > >> that operator can be used to suppress error messages when calling > >> functions but not when using a variable > > This is most def

RE: [PHP] Problem with MySQL

2007-03-20 Thread Richard Lynch
On Tue, March 20, 2007 11:08 am, Ford, Mike wrote: >> what do you want with that '@' here? >> that operator can be used to suppress error messages when calling >> functions but not when using a variable This is most definitely way wrong. > What complete tosh! @ is a unary operator, so can be app

RE: [PHP] Problem with MySQL

2007-03-20 Thread Németh Zoltán
2007. 03. 20, kedd keltezéssel 16.08-kor Ford, Mike ezt írta: > On 20 March 2007 13:26, Németh Zoltán wrote: > > > 2007. 03. 20, kedd keltezéssel 15.09-kor Pavel Kaznarskiy ezt írta: > > > Hello ! > > > I have problem with access in mysql > > > > > > it is my code: > > > > > > SQL Query Sender >

RE: [PHP] Problem with MySQL

2007-03-20 Thread Ford, Mike
On 20 March 2007 13:26, Németh Zoltán wrote: > 2007. 03. 20, kedd keltezéssel 15.09-kor Pavel Kaznarskiy ezt írta: > > Hello ! > > I have problem with access in mysql > > > > it is my code: > > > > SQL Query Sender > > > > > $host=""; > > $user=""; > > $password=""; > > /* Section that execute

Re: [PHP] Problem with MySQL

2007-03-20 Thread Jochem Maas
Németh Zoltán wrote: > 2007. 03. 20, kedd keltezéssel 15.09-kor Pavel Kaznarskiy ezt írta: >> Hello ! ... > > what do you want with that '@' here? > that operator can be used to suppress error messages when calling > functions but not when using a variable > not true - although it's a lazy/bad

RE: [PHP] Problem with MySQL

2007-03-20 Thread Jim Moseby
> > > > Warning: mysql_select_db(): Access denied for user > 'ODBC'@'localhost' (using password: NO) in > z:\home\localhost\www\2.php on line 12 > > > > Warning: mysql_select_db(): A link to the server could not > be established in z:\home\localhost\www\2.php on line 12 > > > > Warning: mysql_qu

Re: [PHP] Problem with MySQL

2007-03-20 Thread Tijnema !
On 3/20/07, Pavel Kaznarskiy <[EMAIL PROTECTED]> wrote: Hello ! I have problem with access in mysql it is my code: SQL Query Sender {$_POST['database']} Query: $queryResults"; if($result == 0) echo "Error ".mysql_errno().": ".mysql_error(). ""; elseif (@mysql_num_rows($result) == 0) echo("Quer

Re: [PHP] Problem with MySQL

2007-03-20 Thread Németh Zoltán
2007. 03. 20, kedd keltezéssel 15.09-kor Pavel Kaznarskiy ezt írta: > Hello ! > I have problem with access in mysql > > it is my code: > > SQL Query Sender > > $host=""; > $user=""; > $password=""; > /* Section that executes query */ > if(@$_GET['form'] == "yes") what do you want with that '@'

[PHP] Problem with MySQL

2007-03-20 Thread Pavel Kaznarskiy
Hello ! I have problem with access in mysql it is my code: SQL Query Sender {$_POST['database']} Query: $queryResults"; if($result == 0) echo "Error ".mysql_errno().": ".mysql_error(). ""; elseif (@mysql_num_rows($result) == 0) echo("Query completed. No results returned. "); else { echo " "; fo

Re: [PHP] Problem with script....

2007-03-08 Thread Jim Lucas
Fabio Silva wrote: Hi all, i have a problem with this script... could anybody help me?? Regards, Password change First question to you is, what version of PHP are you using? all the above should be in this format: $list = array('user','oldpw','newpw1','newpw2'); foreach ( $list AS $valu

Re: [PHP] Problem with script....

2007-03-08 Thread Tijnema !
On 3/8/07, Fabio Silva <[EMAIL PROTECTED]> wrote: Hi all, i have a problem with this script... could anybody help me?? What is your problem? you are only posting your code here and whe have to find the error? What error comes up? Tijnema Regards, Password change "; echo ""; echo

[PHP] Problem with script....

2007-03-08 Thread Fabio Silva
Hi all, i have a problem with this script... could anybody help me?? Regards, Password change "; echo ""; echo "Username:"; echo "Old Password:"; echo "New Password:"; echo ""; echo "New Password, again:"; echo ""; echo ""; echo ""; echo ""; exit(); } if (!

[PHP] Problem with APC

2007-03-07 Thread steve
Hi, I upgraded to PHP 4.4.6 and APC 3.0.13 at the same time. Every day at some point, it starts having a problem and the load on that machine styrockets. It does not happen with the opcode cache in Zend Platform for PHP 4.4.6. Also, in the error log I see a lot of things like this: [apc-warnin

Re: [PHP] Problem with spam

2007-03-06 Thread Børge Holen
On Monday 05 March 2007 12:15, Bc. Radek Krejca wrote: > 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

Re: [PHP] Problem with spam

2007-03-06 Thread Jochem Maas
Bc. Radek Krejca wrote: > 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. that sucks then doesn't it ... there is no better way, unless you search out the patch someone wrote (which may

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

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

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

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

[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] Problem with pgsql.so and extensions.

2007-03-01 Thread Richard Lynch
Is it possible that you have an OLD pgsql.so file on your box that a cold Apache start finds, but an Apache restart does not fine?... On Wed, February 28, 2007 4:34 pm, Marc Burgauer wrote: > I found various links via Google mentioning the problem of ordering > the extension in the ini file. In

Re: [PHP] Problem with pgsql.so and extensions.

2007-02-28 Thread Chris
Marc Burgauer wrote: I found various links via Google mentioning the problem of ordering the extension in the ini file. In my case this hasn't produced quite the result. I haven't found an order that works for me. Here the problem: Freebsd 6 apache 1.3.34 PHP 5.2.1 I am using the ports colle

[PHP] Problem with pgsql.so and extensions.

2007-02-28 Thread Marc Burgauer
I found various links via Google mentioning the problem of ordering the extension in the ini file. In my case this hasn't produced quite the result. I haven't found an order that works for me. Here the problem: Freebsd 6 apache 1.3.34 PHP 5.2.1 I am using the ports collection and I have don

Re: [PHP] Problem Directing the Page with header

2007-02-16 Thread Martin Marques
On Thu, 15 Feb 2007, Ashish Rizal wrote: You need to put a session_commit(); here, so session gets writen. header("Location: $adminAddress"); exit(); } -- 21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18 - Lic. M

Re: [PHP] Problem with Redirect

2007-02-16 Thread David Blanco
Hi! Ashish Rizal escribió: > Hi friends, I am having problem with following code. > I have actually made the whole code on same page (login.php) and > the functions that i used in > this code are in functions.php. Now this time it is showing the > warning : > Warning: Cannot modify header informa

Re: [PHP] Problem Directing the Page with header

2007-02-16 Thread Németh Zoltán
2007. 02. 15, csütörtök keltezéssel 18.41-kor Ashish Rizal ezt írta: > Hey Jim, > Thanks for the quick response. I have actually made the whole > code on same page (login.php) and the functions that i used in > this code are in functions.php. Now this time it is showing the > warning : > Warning: C

Re: [PHP] Problem with Redirect

2007-02-15 Thread Richard Lynch
[Didn't I see this thread before?...] On Thu, February 15, 2007 7:39 pm, Ashish Rizal wrote: > Hi friends, I am having problem with following code. > I have actually made the whole code on same page (login.php) and > the functions that i used in > this code are in functions.php. Now this time it i

Re: [PHP] Problem Directing the Page with header

2007-02-15 Thread Jim Lucas
Ashish Rizal wrote: Hi, I am having problem with redirecting the page in user authenication page . I am working on my windows machine as a localhost with PHP Version 5.2.0. Everything is working good in local machine (in Windows) but now when i tried to upload the same code to the server which is

[PHP] Problem Directing the Page with header

2007-02-15 Thread Ashish Rizal
Hi, I am having problem with redirecting the page in user authenication page . I am working on my windows machine as a localhost with PHP Version 5.2.0. Everything is working good in local machine (in Windows) but now when i tried to upload the same code to the server which is using PHP Version 5.1

Re: [PHP] Problem with displaying image

2007-01-05 Thread Jim Lucas
Budi Setiawan wrote: do you have an example/page that we can look at? here is one of them : http://10.126.11.246/schematics2007/main_logic.php and the image URL : http://10.126.11.246/schematics2007/image/banner/mainlog.jpg all will be be displayed in an unusual manner in FFox.. thanks O

Re: [PHP] Problem with displaying image

2007-01-05 Thread Budi Setiawan
do you have an example/page that we can look at? here is one of them : http://10.126.11.246/schematics2007/main_logic.php and the image URL : http://10.126.11.246/schematics2007/image/banner/mainlog.jpg all will be be displayed in an unusual manner in FFox.. thanks

Re: [PHP] Problem with displaying image

2007-01-05 Thread Jim Lucas
Budi Setiawan wrote: hi, im Budi, recently i have some problems here with displaying jpeg image in firefox browser. at first, when i tested my web page using IE it jsut works fine, but when i decided to test it using Firefox 2 the problem occurs. some of my images left undisplayed. but the th

[PHP] Problem with displaying image

2007-01-05 Thread Budi Setiawan
hi, im Budi, recently i have some problems here with displaying jpeg image in firefox browser. at first, when i tested my web page using IE it jsut works fine, but when i decided to test it using Firefox 2 the problem occurs. some of my images left undisplayed. but the things that i cant still u

Re: [PHP] Problem with copy() function

2007-01-05 Thread Richard Lynch
On Fri, January 5, 2007 5:01 pm, R B wrote: > I'm trying to copy a file like this: > > copy("home/xxx/public_html/yyy/zzz/index.php", > "home/xxx/public_html/yyy/www/index.php") > > and have this error: > > *Warning*: Wrong parameter count for copy() in */home/.* > > Someone can help me please?

Re: [PHP] Problem with copy() function

2007-01-05 Thread Jochem Maas
R B wrote: > Hi, > > I'm trying to copy a file like this: > > copy("home/xxx/public_html/yyy/zzz/index.php", > "home/xxx/public_html/yyy/www/index.php") ^ -- your missing a slash (although that shouldn't be the problem) > > and have this error: > > *Warning*: Wrong parameter count for copy()

[PHP] Problem with copy() function

2007-01-05 Thread R B
Hi, I'm trying to copy a file like this: copy("home/xxx/public_html/yyy/zzz/index.php", "home/xxx/public_html/yyy/www/index.php") and have this error: *Warning*: Wrong parameter count for copy() in */home/.* Someone can help me please? Thanks,

Re: [PHP] Problem with file reading

2007-01-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-05 17:40:49 +: > Using mod_php with Apache will make the current directory the directory > that contains the script being requested. I am assuming that the OP is > trying to access the file from the script that is being requested and > not an included file in a

Re: [PHP] Problem with file reading

2007-01-05 Thread Stut
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-05 17:17:46 +: Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-05 16:34:41 +: Delta Storm wrote: I'm a beginner and i'm still learning PHP and I got a problem: $file = "http://localhost/test_folde

Re: [PHP] Problem with file reading

2007-01-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-05 17:17:46 +: > Roman Neuhauser wrote: > ># [EMAIL PROTECTED] / 2007-01-05 16:34:41 +: > >>Delta Storm wrote: > >>>I'm a beginner and i'm still learning PHP and I got a problem: > >>> > >>> $file = "http://localhost/test_folder/test1.txt";; //I have >

<    1   2   3   4   5   6   7   8   9   10   >