Re: [PHP] Internal Server Error

2006-04-13 Thread Georgi Ivanov
Do you have access to server logs ? If yes, what they say ? PHP as module or as CGI/FastCGI ? When the error occurs ? immediately or after some time ? On Thursday April 13 2006 17:00, Rahul S. Johari wrote: > Ave, > > This is something I don¹t understand. > I have 3 php scripts that run fine on m

Re: [PHP] preventing duplicate rows?

2006-04-13 Thread Georgi Ivanov
You have several opportunities here : 1.If you use mysql 4.1.x you can use "insert into .. on duplicate key update" (check the correct syntax) 2.You can make unique key from the two columns and check for error number 1062 (duplicate key) like this : myusql_query($qins) or $errno=mysql_errno();

[PHP] no,no,no,Re: [PHP] HTML_AJAX and formSubmit method - Yes ! But why ?

2006-04-05 Thread Georgi Ivanov
instead of : HTML_AJAX.formSubmit(this,'target') // This was in the example i've used for testing So i didn't changed the HTML_AJAX code. Just the client code. Now the problem is fixed but i still don't understand why ... On Wednesday April 5 2006 16:05, Georgi Ivanov wrote: > > doe

Re: [PHP] HTML_AJAX and formSubmit method - Yes ! But why ?

2006-04-05 Thread Georgi Ivanov
> does the following make it work? ... Yes it did ! But why ? I'm passing string ... not variable... I don't understand .... > > Georgi Ivanov wrote: > > ... > > > formSubmit: function (form, target, customRequest) > > { > > if (t

Re: [PHP] Error when compiling PHP from source on Mac OS X 10.4 server

2006-04-05 Thread Georgi Ivanov
I think you are missing httpd-devel package. At least on Linux is called something like this. Also look for /usr/sbin/apxs(2) If you are with apache 2.x you should use --with-apxs2[=/usr/sbin/apxs2] Good luck On Wednesday April 5 2006 12:54, Frank Arensmeier wrote: > Hello. > > I try to compile

[PHP] HTML_AJAX and formSubmit method

2006-04-05 Thread Georgi Ivanov
Hi List ! I'm playing around with HTML_AJAX PEAR module and came to a strange situation . Consider following code :  This is where the result will be printed Login User: Password:

Re: [PHP] Looping information into a table

2006-04-04 Thread Georgi Ivanov
Sorry . The correct SQL should be: $query ="select * from cforum cf INNER JOIN scforum ON cforum.id=scforum.cfid"; :) On Tuesday April 4 2006 11:58, Georgi Ivanov wrote: > A little OT but i think it is important : > I really would not write this code like this . > You

Re: [PHP] Looping information into a table

2006-04-04 Thread Georgi Ivanov
A little OT but i think it is important : I really would not write this code like this . You are making too many queries to the database . If u have 100 rows in first table and 200 rows returned from second query , you make 100*200 queries to the database ! Try using SQL Joins. Like this :

Re: [PHP] Can't get XSLT on PHP

2006-03-30 Thread Georgi Ivanov
I have it working with : --with-xsl --enable-xslt --with-xslt-sablot Do you have the libxslt-devel package ? I'm not sure if it compiles it as module... If it is module make sure it is enabled in php.ini On Wednesday March 29 2006 22:17, MARG wrote: > Anthony Ettinger wrote: > > obvious one, but

Re: [PHP] Class constructor

2006-01-31 Thread Georgi Ivanov
Yes, I noticed that PHP5 call the old way constructor, but what if in future version they drop this feature ? I think this is workaround for the problem . Or not ? On Tuesday January 31 2006 15:52, David Grant wrote: > Georgi, > > Drop __construct, PHP5 will call Test() anyway. > > >From http://u

[PHP] Class constructor

2006-01-31 Thread Georgi Ivanov
Hi, I'm writing a simple class. In order to be compatible with php4 and php5 I've done this : class test{ function Test(){ //This will be called in PHP4 } function __construct(){ //This will be called in PHP5 $this->Test();

Re: [PHP] Re: [Bulk] Re: [PHP] PHP errors in Apache error logs

2005-12-20 Thread Georgi Ivanov
You need to compile php4-extensions or php5-extensions /usr/ports/lang/ Good luck. On Monday December 19 2005 22:32, Jose Borquez wrote: > John Nichel wrote: > > Jose Borquez wrote: > > > > > >> The Makefile configuration did have "--disable-all" included. Here > >> is the link to my phpinfo pa

[PHP] IE and AJAX returning HTML with

2005-12-02 Thread Georgi Ivanov
Hi, I have application that does this: When one press a specific button, I'm calling JS function that make http(ajax) request to some php file . The php returns HTML like this : -- SOME HTML HERE -- The returned HTML i placed in tag. The lo

[PHP] imap_mail_move

2005-11-30 Thread Georgi Ivanov
Hi , I'm trying to move some mail from one dir to another: $mbox=imap_open(...); imap_mail_move($mbox,"2","INBOX,Sent") or die (imap_last_error()); I get this error : error in imap command received by server . I'm not sure what this error means. Any suggestions? Thanks in advance. -- PHP Gener

Re: [PHP] GLOB sort order

2005-11-22 Thread Georgi Ivanov
On Tuesday 22 November 2005 11:41, Mark Lucas wrote: > Can anyone help me please? I'm not an advanced PHP user! > > I'm looing for a way to sort the array returned by the GLOB function. I > would like to be able to sort the result by filemtime. > > Any good ideas? I think you can walk the array re

Re: [PHP] Re: php5 call by refference

2005-11-21 Thread Georgi Ivanov
Thanks ! It's all clear now . :) On Monday 21 November 2005 14:45, Oliver Grätz wrote: > Georgi Ivanov schrieb: > > Hi, > > AFAIK, in PHP5 one can't call function with function parameters . > > The error is that you only can pass variables by reference. >

[PHP] php5 call by refference

2005-11-21 Thread Georgi Ivanov
Hi, AFAIK, in PHP5 one can't call function with function parameters . The error is that you only can pass variables by reference. foo(strlen('aaa'),strlen('')); Is there some sort of workaround ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

Re: [PHP] Fixing ID's in mySQL Table

2005-11-08 Thread Georgi Ivanov
You van do this : 1.Create new table with exactly the same structure as orig table. 2.Create little php script which does this : select * from origTBL while($line=mysql_fecth_array($res)){ insert into newtbl values() } In the new tbl yuo will have the records ordered. Than just

Re: [PHP] Pictureupload

2005-11-04 Thread Georgi Ivanov
On Thursday 03 November 2005 19:12, twistednetadmin wrote: My advise is not to use $_FILES['img']['type'] or use it with some switch statement. Different browsers send different mime types for same image format. For example on mozila you have image/png on IE you have image/x-png (or vise versa)

Re: [PHP] Upper case problem

2005-10-03 Thread Georgi Ivanov
On Monday 03 October 2005 16:28, Merlin wrote: > Hi there, > > I am having problems with users who upload text that only contains upper > case letters. For example "SEARCHING FOR". Is there a way to detect this > via PHP?` I would like to have the script return him to the form and inform > him th

Re: [PHP] Size limits of mysql

2005-09-15 Thread Georgi Ivanov
There is [max allowed packet] variable in mysql. The default is 1MB in my config. May be this is what stops you. Try increasing this value. On Wednesday 14 September 2005 01:07, [EMAIL PROTECTED] wrote: > Hi All, > > > > > > I have a simple database with one table with about 6 fields, just > hol

Re: [PHP] Apache Linux question

2005-09-06 Thread Georgi Ivanov
It is no clear which option you are looking for. If it's PHP compile options use : This will give you information you need. On Tuesday 06 September 2005 16:39, Feris Thia C. wrote: > Hi All, > > If I already install my Apache on linux system, then is it possible to > check what configuration sett

[PHP] running process in the background

2005-08-31 Thread Georgi Ivanov
Hi, I'm experiencing strange behavior when trying to run background process in PHP. Code : //Run_check.php foreach ($_POST as $kid){ `php run.php param1 param2 > /dev/null &`; } In this case PHP waits all the instances of the process to complete. I don't understand why. I have a workaroun

Re: [PHP] display error line in object method

2005-08-10 Thread Georgi Ivanov
Thank you for the replay. I know i can pass __LINE to $db->error(). This is not the idea. I want $db->error() to print the line on which it was executed . $parent::__LINE__ Who is the $parent here ? On Wednesday 10 August 2005 18:20, Mike Johnson wrote: > From: Georgi Ivanov [mail

[PHP] display error line in object method

2005-08-10 Thread Georgi Ivanov
Hi, I have a db wrapper class. I use it like this : $db->query"(SQL HERE") or die ($db->error()); Is there a way to display the line on which $db->error() is executed without doing die (__LINE__." ".$db->error() )? If i put __LINE__ in the class the line number is always the line in the class fil

Re: [PHP] function MAX with WHERE

2005-07-25 Thread Georgi Ivanov
; > -- > Este mensaje ha sido analizado por MailScanner > en busca de virus y otros contenidos peligrosos, > y se considera que está limpio. -- Regards Georgi Ivanov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PDO Error

2005-07-15 Thread Georgi Ivanov
All(); > $rows = $stmt->fetchAll(); > $count = count($rows); > foreach ($rows as $row) { > print_r($row); > } > $stmt = null; > > Wht's wrong with the example? > > Greetings > holografix -- Regards Georgi Ivanov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Display picture from MySQL

2005-06-27 Thread Georgi Ivanov
/*Fetch the image :*/ $res=mysql_query("select picture from pics_table where id=1") or die("err"); $line=mysql_fecth_array($res); /*Send headers*/ header("content-type: image/png"); echo $line[picture]; On Monday 27 June 2005 15:38, Bagus Nugroho wrote: > Hi All, > > I'm looking for tutorial/temp

Re: [PHP] domxml problem

2005-05-16 Thread Georgi Ivanov
On Friday 13 May 2005 20:03, Brian V Bonini wrote: > On Fri, 2005-05-13 at 10:31, Georgi Ivanov wrote: > > But it gives me error on this line : > > $DomDocument = domxml_open_file($file); > > What's the error? The error is : "Call to undefined function

[PHP] domxml problem

2005-05-13 Thread Georgi Ivanov
Hello, I compiled PHP 5 with following ./configure line ./configure \ --prefix=/usr/local/php5 \ --with-apxs2=/usr/sbin/apxs2-prefork \ --with-config-file-path=/etc/php5 \ --enable-mbstring \ --enable-mbregex \ --with-mysql \ --with-gd \