Re: [PHP-WIN] ARRAY Question!

2003-03-04 Thread Aidal
Hmm.. When using arrays with loops a for structure comes in handy. $count = sizeof($yourArray); For ($i = 0; $i < $count; $i++) { ...do somthing... ... do some more... } Remember that index of arrays start at 0 and not at 1, so if you want to add a value to the end of the array you can

[PHP-WIN] compilation error using VC++ 5.0

2003-03-04 Thread Joe Wong
Hello, I am using VC++ 5.0 to compile PHP 4.3.0 on a NT box, I got the following error during compilation: Configuration: Zend - Win32 Release Compiling... zend.c zend_alloc.c zend_API.c zend_builtin_functions.c zend_compile.c zend_constants.c zend_execute.c

php-windows Digest 5 Mar 2003 01:12:29 -0000 Issue 1618

2003-03-04 Thread php-windows-digest-help
php-windows Digest 5 Mar 2003 01:12:29 - Issue 1618 Topics (messages 18830 through 18846): Re: Unexplained CGI error 18830 by: Rich Gray 18835 by: Michael Power Re: Retrieving Server and PHp variables 18831 by: fran.thomas.barclays.co.uk 18832 by: Sharat Hegd

[PHP-WIN] transferring another .jpg file to yours

2003-03-04 Thread Anthony Ritter
Using PHP 4.1.1. / Apache / Win 98 I'd like to use a .jpg from another URL - say: http://www.blah.com/foo.jpg and turn it into a variable using PHP and then once it is a variable to try to manipulate that image using GD Libraries which are installed. Is this possible? I tried placing the strin

RE: [PHP-WIN] ADOdb for PHP Website... anyone know what's wrong?

2003-03-04 Thread Rich Gray
> I think I'm going to shoot myself. I LOVE ADOdb for PHP but his website > seems to be down (has been for two days now)... anyone have an > inside track > as to when/if he's coming back? > > http://php.weblogs.com/adodb > > Thanks, > > John Don't pull that trigger yet... I just loaded the site no

RE: [PHP-WIN] ARRAY Question!

2003-03-04 Thread Matt Babineau
It's a numerical key so $myArray[] = "value"; will work perfectly! Thanks! --> -Original Message- --> From: Ben O'Neill [mailto:[EMAIL PROTECTED] --> Sent: Tuesday, March 04, 2003 5:06 PM --> To: [EMAIL PROTECTED] --> Subject: Re: [PHP-WIN] ARRAY Question! --> --> --> Using that it wou

Re: [PHP-WIN] ARRAY Question!

2003-03-04 Thread Ben O'Neill
Using that it would be: $array_length = count($myArray); $myArray[$array_length] = $new_data; As arrays start at 0, and count() returns the number of elements. - Ben O'Neill "Chris Kranz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Something like... > > $array_length = count(

[PHP-WIN] Re: ARRAY Question!

2003-03-04 Thread Ben O'Neill
Well, you can add items onto the end of an array by doing: $myarray[] = "added on end"; -- Ben "SheepCow" O'Neill GameSpyDaily Weekend Editor http://www.gamespydaily.com "Matt Babineau" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Ok here goes! > > Lets say I have an array: > >

RE: [PHP-WIN] ARRAY Question!

2003-03-04 Thread Chris Kranz
Something like... $array_length = count( $myArray ); $myArray[$array_length + 1] = $new_data; This what your after? I think there might be a function for this tho, but I'm a bit thick :p chris kranz fatcuban.com -Original Message- From: Matt Babineau [mailto:[EMAIL PROTECTED] Sent:

[PHP-WIN] ARRAY Question!

2003-03-04 Thread Matt Babineau
Ok here goes! Lets say I have an array: $myArray = array(); Now lets say I am looping over something How do I simply add a new value to the array?? I just want to start tacking on new key/value pairs to the array. I must be missing something really basic, but I'm not getting it LOL

[PHP-WIN] ADOdb for PHP Website... anyone know what's wrong?

2003-03-04 Thread Asendorf, John
I think I'm going to shoot myself. I LOVE ADOdb for PHP but his website seems to be down (has been for two days now)... anyone have an inside track as to when/if he's coming back? http://php.weblogs.com/adodb Thanks, John - John Asendorf - [EMAIL PROTECTED] Web Applications

[PHP-WIN] Anyone using PHP with activePDF Toolkit?

2003-03-04 Thread Herhuth, Ron
I'm trying to dynamically generate PDFs using an FDF form, a SQL database and PHP along with activePDF Toolkit. I basically have created an FDF form using Acrobat and I need to auto populate the form and save a PDF from the resulting data merge. Does anyone have any samples of how to do this

[PHP-WIN] EZ_Publish

2003-03-04 Thread Franco Pozzer
> Can anyone explain to me how to do to make a demo db? I have load in my dbrms demokernel.sql and i have modify httpd.conf with indication about ez_publish/doc/install. I have modify set.ini with a name of the db and the uid a pwd to access of the db. Thanks for all. -- PHP Windows Mailing

[PHP-WIN] php_pgsql.dll problem

2003-03-04 Thread Peter Kmet
Hello, i'm trying to use php with postgres on win32 i have found some problems with php 4.3.1 (same for php 4.3.0) and php_pgsql.dll. When i try to load php_pgsql.dll extension in php.ini i get error notice PHP Warning: Unknown(): Unable to load dynamic library 'C:\Program Files\php\extensions\

[PHP-WIN] Re: Unexplained CGI error

2003-03-04 Thread Michael Power
I say again: > > At last found some info... > > > > http://bugs.php.net/bug.php?id=9852 > "Vlad" > > Hi, > > I have the same problem. And it is totaly random. You can hit F5 several > times - everything works fine and on the next hit - "CGI error". It > sounds to me like bug of uninitialized

RE: [PHP-WIN] Retrieving Server and PHp variables

2003-03-04 Thread Rich Gray
> Thanks Rich, > > That worked fine on my PHP Version 4.3.1 > > The older syntax seems to work fine on an earlier version of PHP though > (Version 4.2.3)!! > > Regards, > Sharat > If register_globals is switched on in your php.ini (it's off by default in later versions of php) then it'll work in v

[PHP-WIN] internal server error - any idea whats this?

2003-03-04 Thread Ruby Otero
i encounter this error while i;m testing my php script, its just a form to send email using mail() function, when suddenly it says that php.exe performs illegal operation. [Thu Feb 27 14:55:14 2003] [error] [client 127.0.0.1] Premature end of script headers: c:/php-4.3.0-win32/php.exe i uses win9

RE: [PHP-WIN] Retrieving Server and PHp variables

2003-03-04 Thread Sharat Hegde
Thanks Rich, That worked fine on my PHP Version 4.3.1 The older syntax seems to work fine on an earlier version of PHP though (Version 4.2.3)!! Regards, Sharat -Original Message- From: Rich Gray [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 4:11 PM To: Sharat Hegde; [EMAIL PR

RE: [PHP-WIN] Retrieving Server and PHp variables

2003-03-04 Thread fran . thomas
Autoglobals not on,use $_SERVER['{VAR}'] instead. .:Fran -Original Message- From: Rich Gray [mailto:[EMAIL PROTECTED] Sent: 04 March 2003 10:41 To: Sharat Hegde; php-windows Subject: RE: [PHP-WIN] Retrieving Server and PHp variables > Hello, > > I just upgraded from PHP3 to PHP4 on Apac

RE: [PHP-WIN] Re: Unexplained CGI error

2003-03-04 Thread Rich Gray
> I have the same problem. And it is totaly random. You can hit F5 several > times - everything works fine and on the next hit - "CGI error". It > sounds to me like bug of uninitialized variable or some buffer overrun > problems (if it would be a problem in php.ini - at least it would not be >

php-windows Digest 4 Mar 2003 10:41:52 -0000 Issue 1617

2003-03-04 Thread php-windows-digest-help
php-windows Digest 4 Mar 2003 10:41:52 - Issue 1617 Topics (messages 18819 through 18829): Re: php.ini 18819 by: Chris Kranz Re: Recommended for newbies 18820 by: Beach, Jim 18823 by: Ted Maciag Re: include_path 18821 by: Christoph Grottolo Re: does any one

RE: [PHP-WIN] Retrieving Server and PHp variables

2003-03-04 Thread Rich Gray
> Hello, > > I just upgraded from PHP3 to PHP4 on Apache 1.3.x on Windows NT. I need to > access the PHP and SERVER variables on my PHP 4 installation. My > code is as > follows: > >echo $SERVER_SOFTWARE; > echo $PHP_SELF; > ?> > > However, I get the following error: > > Notice: Undef

[PHP-WIN] Retrieving Server and PHp variables

2003-03-04 Thread Sharat Hegde
Hello, I just upgraded from PHP3 to PHP4 on Apache 1.3.x on Windows NT. I need to access the PHP and SERVER variables on my PHP 4 installation. My code is as follows: However, I get the following error: Notice: Undefined variable: SERVER_SOFTWARE in c:\program files\apache group\apache\htdocs\