RE: [PHP] Upgrading PHP 4.2.3 to PHP 4.3.2

2005-08-16 Thread T.N.Prasad
Hi Torgny & All, Thanks for all the responses & suggestions. Thanks TNP Professional Services ZUSTEK INDIA -Original Message- From: Torgny Bjers [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 16, 2005 6:51 PM To

Re: [PHP] counting nested array

2005-08-16 Thread Ing . Josué Aranda
OK this the little function i made to solve this.. [CODE] function countNested($array){ foreach($array as $value){ if(is_array($value)) $total=$this->countNested($value)+$total; }else{ $total=$total+1; } }

[PHP] RE: Problem using Metabase

2005-08-16 Thread Pablo Gosse
[snip] I suspect that the problem is with file permissions. I recall that since Metabase uses include to load class files, the script will not exit when it fails to include a PHP class file. Assuming that is the case, make sure that all Metabase class files are readable by your Web server user.

Re: [PHP] Initiating cronjobs from PHP?

2005-08-16 Thread Jasper Bryant-Greene
Cabbar Duzayak wrote: Hi all, I have a requirement for initiating tasks from my site that requires long processing times, i.e. uploading/downloading some files to remote nodes. And, to avoid timeouts and hence to be able to provide instant responses to the user (user does not need to get the res

[PHP] Initiating cronjobs from PHP?

2005-08-16 Thread Cabbar Duzayak
Hi all, I have a requirement for initiating tasks from my site that requires long processing times, i.e. uploading/downloading some files to remote nodes. And, to avoid timeouts and hence to be able to provide instant responses to the user (user does not need to get the result right away), I was t

Re: [PHP] formatting problems:

2005-08-16 Thread Ryan A
On 8/16/2005 9:59:30 PM, Scott Noyes ([EMAIL PROTECTED]) wrote: > It's not clear to me how strict you want to be regarding the > formatting. Are you trying to keep scenes together on each line, or > just dump everything and let it wrap where it needs to? Perhaps you > could handcode a sample and

Re: [PHP] Anyone on the list using Moodle?

2005-08-16 Thread Esteamedpw
have you tried their forums at moodle.org ? - Clint

[PHP] Anyone on the list using Moodle?

2005-08-16 Thread wayne
Hi, Before I post some of the install script for Moodle I thought that I would ask how $CFG gets instantiated in the install.php script. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] access multiple databases

2005-08-16 Thread Bing Du
Hi, I need to access both MySQL and SQL server 2000 in a PHP script on RHEL 3. In phpinfo(), I noticed 'supported databases' shows 'MySQL ODBC PostgreSQL Microsoft SQL Server FrontBase Oracle 8 (oci8)'. And 'Configure Command' has '--with-unixODBC=shared' included. Do I need to install a

[PHP] PHP 5 limits "readfile" to 1.9 MB?

2005-08-16 Thread Jordan Miller
Hello all, I am new to this list and I have searched the archives to no avail. I am having a peculiar problem when upgrading to PHP 5: My downloads are now limited to the first 1.9 MB of the file in question, with the download either terminating at 1.9 MB or seemingly continuously stuck i

Re: [PHP] formatting problems:

2005-08-16 Thread Scott Noyes
It's not clear to me how strict you want to be regarding the formatting. Are you trying to keep scenes together on each line, or just dump everything and let it wrap where it needs to? Perhaps you could handcode a sample and post a link. I'd also guess that you could make good use of CSS, specif

[PHP] formatting problems:

2005-08-16 Thread Ryan A
Hi, My database has a table called movies which has data like this: flick_name ,flick_cover, part_url flick_name is the name of the movie, the movie is cut into several pieces for faster downloads part_url is the full path to each of the pieces eg: home movie 1 ,a.gif, http://movieserver.com/s

[PHP] Re: Form Processor?

2005-08-16 Thread Aaron Greenspan
Hi, Another shameless plug... Lampshade makes form processing really easy. You define a $form array in your PHP file, you lay out the form in your form file, and go. It error-checks and submits for you. Non-commercial use is free, and there's an example application in the starter kit so you c

[PHP] Re: Form Processor?

2005-08-16 Thread Matthew Weier O'Phinney
* [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > Does anyone have any recomendations for a GOOD PHP Form Processor software? > > Kind of in a bind and don't want to reinvent the wheel if I don't have to. > > Sorry for thr O/T. Not OT at all. Many people like PEAR's HTML_QuickForm. I didn't like it much

Re: [PHP] Form Processor?

2005-08-16 Thread Chris Shiflett
[EMAIL PROTECTED] wrote: Does anyone have any recomendations for a GOOD PHP Form Processor software? Kind of in a bind and don't want to reinvent the wheel if I don't have to. Sorry for thr O/T. This doesn't seem off-topic to me. You might want to look at HTML_Quickform: http://pear.php.net/

[PHP] Form Processor?

2005-08-16 Thread aaronjw
Hey all, Does anyone have any recomendations for a GOOD PHP Form Processor software? Kind of in a bind and don't want to reinvent the wheel if I don't have to. Sorry for thr O/T. TIA! A -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to suppress HTTP headers?

2005-08-16 Thread tg-php
hah.. I should have mentioned this as well, but my brain is absorbed in... sockets... and xml.. and sending headers manually via fputs.. nothing relative to this discussion at all.. hah.. \r\n"; $_FULL_XML_REQUEST = "\r\n"; $_FULL_XML_REQUEST .= "\r\n"; $_FULL_XML_REQUEST .= $_XML_DAT

Re: [PHP] Upgrading PHP 4.2.3 to PHP 4.3.2

2005-08-16 Thread Evert | Rooftop
T.N.Prasad wrote: HI All, Our company servers are being upgraded from 4.2.3 to 4.3.2. Is there any special care that I should take (as far as my scripts are concerned)? Plz help me. I'm new to PHP. Thanks TNP Professional Services ZUSTEK INDIA __

Re: [PHP] Upgrading PHP 4.2.3 to PHP 4.3.2

2005-08-16 Thread Evert | Rooftop
Burhan Khalid wrote: Tim Burgan wrote: Can I extend this.. On a live server I have PHP 4.1. If I upgrade to PHP 5, is something likely to stop working? 99% yes. Especially if you really mean 4.1.0 -- that's quite old. I'd say 90% no :) Evert -- PHP General Mailing List (http://www.php

Re: [PHP] How to suppress HTTP headers?

2005-08-16 Thread Kristen G. Thorson
Or use sockets... http://us3.php.net/manual/en/function.fsockopen.php Just don't send any HTTP headers. kgt [EMAIL PROTECTED] wrote: BTW: I made a mistake last time. Apparently with CLI there are headers. You can use "php -q" to suppress headers when using PHP via CLI. Odd. Not sure I

[PHP] edit $variable online?

2005-08-16 Thread Jesús Alain Rodríguez Santos
Hi, I have in a php page one ($variable = 85), I woud like to change the value from this variable online, without any data base, for example ussing a form where I can put the new value and it change the value of the $variable. -- Este mensaje ha sido analizado por MailScanner en busca de virus y

RE: [PHP] How to suppress HTTP headers?

2005-08-16 Thread tg-php
BTW: I made a mistake last time. Apparently with CLI there are headers. You can use "php -q" to suppress headers when using PHP via CLI. Odd. Not sure I had to do that when I wrote a few CLI scripts before. Oh well, something to play with another day (don't have time to check it right now).

Re: [PHP] [SOLVED]Problem with php.ini

2005-08-16 Thread Tim Boring
On Tue, 2005-08-16 at 17:59 +0200, Torgny Bjers wrote: > Tim Boring wrote: > > >I'm having a problem with php-cli and php_mod reading my php.ini file. > >I've compiled php from source, during which process I set > >"--with-config-file=/etc". Once the compile completed, I then copied > >php.ini-re

Re: [PHP] Problem with php.ini

2005-08-16 Thread Torgny Bjers
Tim Boring wrote: >I'm having a problem with php-cli and php_mod reading my php.ini file. >I've compiled php from source, during which process I set >"--with-config-file=/etc". Once the compile completed, I then copied >php.ini-recommened to /etc/php.ini. > >After restarting Apache, I run phpinfo

RE: [PHP] php 5.04 register_globals aint acting right.

2005-08-16 Thread Daniel Baughman
Its simply a Boolean to indicate whether or not a query should be ran and displayed, and further more its for a small intranet. Register_globals is the directive I meant to say. But your right about globals. Some applications haven't made that change yet... So unless I want to rewrite them (whic

Re: [PHP] counting nested array

2005-08-16 Thread Robin Vickery
On 8/16/05, Ing. Josué Aranda <[EMAIL PROTECTED]> wrote: > > The number of the branches is not always the same.. (it depends on the > query).. when i use count($array, COUNT_RECURSIVE) for nested arrays.. > it give to me the total including the nodes in the branches ( in this > case 28).. now here

Re: [PHP] Problem with php.ini

2005-08-16 Thread John Nichel
Tim Boring wrote: I'm having a problem with php-cli and php_mod reading my php.ini file. I've compiled php from source, during which process I set "--with-config-file=/etc". Once the compile completed, I then copied php.ini-recommened to /etc/php.ini. After restarting Apache, I run phpinfo() an

Re: [PHP] Advice sought on PHP site maintenance

2005-08-16 Thread John Nichel
George Pitcher wrote: John, Thanks for the input. I just knew I hadn't covered everything. My server is currently set up as NT4/IIS. I suppose I could look to switching to Apache though. Cheers George I really don't know the Windows world, but there _may_ be a way to set up include paths g

Re: [PHP] counting nested array

2005-08-16 Thread Torgny Bjers
Ing. Josué Aranda wrote: >Hi to everyone.. > >now i have a little problem counting an nested array. Im using it to >fill a Java TreeView... it looks like this: > >[snip] > >The number of the branches is not always the same.. (it depends on the >query).. when i use count($array, COUNT_RECURSIVE) fo

RE: [PHP] How to suppress HTTP headers?

2005-08-16 Thread Thomas Capote
I knew my description was a bit mangled; I was trying to keep it short. Sorry. Take two: A "remote server" is sending event records to "my server" using HTTP POST requests to http://my.server.com/storeit.php, let's say. The remote server expects acknowledgement by way of a response to its request.

[PHP] counting nested array

2005-08-16 Thread Ing . Josué Aranda
Hi to everyone.. now i have a little problem counting an nested array. Im using it to fill a Java TreeView... it looks like this: [1] => Array ( [1] => Array ( [1] => Array ( [1] => LEC

[PHP] Problem with php.ini

2005-08-16 Thread Tim Boring
I'm having a problem with php-cli and php_mod reading my php.ini file. I've compiled php from source, during which process I set "--with-config-file=/etc". Once the compile completed, I then copied php.ini-recommened to /etc/php.ini. After restarting Apache, I run phpinfo() and "Configuration Fil

Re: [PHP] How to suppress HTTP headers?

2005-08-16 Thread tg-php
So their page POSTs to a PHP page that you've created? I'm not seeing where headers come into play there, they're on output, not input. Maybe I just stayed up too late last night, but I'm having trouble wrapping my brain around the problem. One thing I did notice was you mentioned switches fo

RE: [PHP] Advice sought on PHP site maintenance

2005-08-16 Thread George Pitcher
Mark, Thanks, I'll follow that up as well. I don't have to do this straight away. Cheers George > -Original Message- > From: Mark Rees [mailto:[EMAIL PROTECTED] > Sent: 16 August 2005 3:33 pm > To: php-general@lists.php.net > Subject: Re: [PHP] Advice sought on PHP site maintenance > >

[PHP] How to suppress HTTP headers?

2005-08-16 Thread Thomas Capote
I am coding a PHP page to deal with a badly implemented automated status update script on a remote server (that I do not control) which fails if my response to it's POST request has HTTP headers. Go figure. So the question is "How do I NOT send HTTP headers in my response?" or "How can my script su

Re: [PHP] Advice sought on PHP site maintenance

2005-08-16 Thread Mark Rees
""George Pitcher"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > John, > > Thanks for the input. I just knew I hadn't covered everything. My server is > currently set up as NT4/IIS. I suppose I could look to switching to Apache > though. Far be it from me to discrouage you from swi

Re: [PHP] php 5.04 register_globals aint acting right.

2005-08-16 Thread Jochem Maas
Daniel Baughman wrote: I have register globals enabled, or set to “On”. Isn’t this suppose to take all of the $_POST variables and $_GET variables and make initialize them by name? register_globals should do that. but not "register globals", regardless is a shitty setting.

Re: [PHP] Upgrading PHP 4.2.3 to PHP 4.3.2

2005-08-16 Thread Burhan Khalid
Tim Burgan wrote: Can I extend this.. On a live server I have PHP 4.1. If I upgrade to PHP 5, is something likely to stop working? 99% yes. Especially if you really mean 4.1.0 -- that's quite old. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

[PHP] php 5.04 register_globals aint acting right.

2005-08-16 Thread Daniel Baughman
                 I have register globals enabled, or set to “On”. Isn’t this suppose to take all of the $_POST variables and $_GET variables and make initialize them by name? i.e. $_POST[‘runquery’] will be accessible via simply $runquery ??   Dan Baughman IT Technician Professional Bull Rid

RE: [PHP] Advice sought on PHP site maintenance

2005-08-16 Thread George Pitcher
John, Thanks for the input. I just knew I hadn't covered everything. My server is currently set up as NT4/IIS. I suppose I could look to switching to Apache though. Cheers George > -Original Message- > From: John Nichel [mailto:[EMAIL PROTECTED] > Sent: 16 August 2005 2:25 pm > To: php-

Re: [PHP] Upgrading PHP 4.2.3 to PHP 4.3.2

2005-08-16 Thread Tim Burgan
Can I extend this.. On a live server I have PHP 4.1. If I upgrade to PHP 5, is something likely to stop working? I've been putting off upgrading for months because of the unknown of something going wrong. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

Re: [PHP] Advice sought on PHP site maintenance

2005-08-16 Thread John Nichel
George Pitcher wrote: Hi, I manage several sites for my company. Some are running our own service to about 80 customers and others are running a service for some (5 and growing) of our customers. Its the latter one that I need advice on. I have an application where each customer has a website o

Re: [PHP] Upgrading PHP 4.2.3 to PHP 4.3.2

2005-08-16 Thread Torgny Bjers
T.N.Prasad wrote: >HI All, > >Our company servers are being upgraded from 4.2.3 to 4.3.2. > >Is there any special care that I should take (as far as my scripts are >concerned)? > >Plz help me. I'm new to PHP. > Hello, You don't have to worry at all. Nothing have changed between those version

Re: [PHP] Upgrading PHP 4.2.3 to PHP 4.3.2

2005-08-16 Thread John Nichel
T.N.Prasad wrote: HI All, Our company servers are being upgraded from 4.2.3 to 4.3.2. Is there any special care that I should take (as far as my scripts are concerned)? Plz help me. I'm new to PHP. In theory, no. However, theory can get you into trouble. Check the change log, and if p

Re: [PHP] Problem when encoding non-english into UTF-8

2005-08-16 Thread John Nichel
Wong HoWang wrote: Dear all, When I try to encode non-english char. such as big5 to UTF-8 with utf8_encode(), it always generate a wrong result, which is not readable. What can I do? Please help! http://us2.php.net/iconv -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTEC

RE: [PHP] Upgrading PHP 4.2.3 to PHP 4.3.2

2005-08-16 Thread Jim Moseby
> -Original Message- > From: T.N.Prasad [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 16, 2005 9:00 AM > To: php-general@lists.php.net > Subject: [PHP] Upgrading PHP 4.2.3 to PHP 4.3.2 > Importance: High > > > HI All, > > Our company servers are being upgraded from 4.2.3 to 4.3.2. >

[PHP] I fixed the logic :-) --- Recursive Array on outputing correctly

2005-08-16 Thread Gregory Machin
Here it is.. i found the problem.. 1) all the menu objects->arrChildren have an array , if there are on submenus.. then the array is empty .. the function was trying to recurse through empty arrays. 2) the recursive call needed to pass the arrChildren to recurse correctly "display_menu($value->arr

[PHP] Upgrading PHP 4.2.3 to PHP 4.3.2

2005-08-16 Thread T.N.Prasad
HI All, Our company servers are being upgraded from 4.2.3 to 4.3.2. Is there any special care that I should take (as far as my scripts are concerned)? Plz help me. I'm new to PHP. Thanks TNP Professional Services ZUSTEK INDIA __

[PHP] Advice sought on PHP site maintenance

2005-08-16 Thread George Pitcher
Hi, I manage several sites for my company. Some are running our own service to about 80 customers and others are running a service for some (5 and growing) of our customers. Its the latter one that I need advice on. I have an application where each customer has a website on our service. The funct

[PHP] Windows, DLLs and php.ini

2005-08-16 Thread Chris Boget
I've looked at the documentation but was able to find this. If anyone can point me to the right page, it would be much appreciated. In any case, where do you define where PHP looks for the appropriate DLLs? For example, if a DLL (say, ntwdblib.dll) is in both the "\PHP\dll" directory and the "\w

Re: [PHP] Javascript Src and HTTP_REFERER

2005-08-16 Thread Jasper Bryant-Greene
Dotan Cohen wrote: And, the thing is, within this javascript_dump.php, HTTP_REFERER shows nothing, because it gives you the referer of the html page (page1) that contains this

Re: [PHP] Javascript Src and HTTP_REFERER

2005-08-16 Thread Dotan Cohen
On 8/6/05, Cabbar Duzayak <[EMAIL PROTECTED]> wrote: > Hi, > > I have a web page (say page1) which refers to a php within javascript tag as: > > src="http://mysite.com/javascript_dump.php";> > > As you can see, this calls a ph

Re: [PHP] 'God' has spoken... :-)

2005-08-16 Thread Jochem Maas
l0t3k wrote: not only encoding support, but internationalized date/time/number formatting support (including spellout), collation, breakiteration and transliteration. in many respects we'll be on par with Java I18N support. To see what will be available, see http://icu.sourceforge.net/usergui

[PHP] Re: Problem using Metabase

2005-08-16 Thread Manuel Lemos
Hello, on 08/16/2005 12:01 AM Pablo Gosse said the following: Thanks, Manuel. I tried what you suggested but it didn't work. The server this project is housed on is an IIS server running PHP 4.4.0. I installed the metabase package on a linux server, and was able to connect to a postgres datab

Re: [PHP] php output to string

2005-08-16 Thread Jesús Fernández
thanks everyone, the problem was the url i needed to use. now the problem is solved :) -- "El único error real es aquel en el que no hemos aprendido nada."