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
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 - 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
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
> 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
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
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(
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:
>
>
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:
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
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
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
> 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
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\
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
> 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
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
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
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
> 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 - 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
> 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
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\
23 matches
Mail list logo