I think that PHP is the best scripting language ever created...I'm currently
doing a study of PHP and I want to know how APC can be used to improve PHP
performance and how it can be implemented and also if there is some other
alternative other than APC of improving PHP performance ? The problem
On Sun, 2006-12-17 at 23:19 +, julian haffegee wrote:
> > will set the element of ordinal number 0 and key ' 2' to 'dog'. To get
> > that value you would either ask for $array[0] or $array[' 2'].
>
>
> thanks for all the comments so far, i'm not sure you are understanding what
> I am askin
will set the element of ordinal number 0 and key ' 2' to 'dog'. To get
that value you would either ask for $array[0] or $array[' 2'].
thanks for all the comments so far, i'm not sure you are understanding what
I am asking for.
My problem is NOT knowing what is in the arrays, but how to ac
don't hijack an existing thread. (i.e.
don't reply to someone elses' post/reply if your
asking a new question.
you need to learn to use var_dump(), and if you look at
the line of code below you should have everything you need
to know about numeric array keys:
$a = array(2 => "foo"); $b = array("2
- Original Message -
From: "julian haffegee" <[EMAIL PROTECTED]>
To:
Sent: Sunday, December 17, 2006 7:31 PM
Subject: [PHP] PHP problem with array keys / pointers
Hi all,
I've a problem thats been bothering me for a week now
I have an array $animals
keys an
1 => cat
2 => dog
3 => mouse
4 => horse
iwfm with array(1=>'cat',2=>'dog',3=>'mouse',4=>'horse'):
output:
Array
(
[1] => cat
[2] => dog
[3] => mouse
[4] => horse
)
dog
source:
'cat',2=>'dog',3=>'mouse',4=>'horse');
print_r($animals);
$x=2;
echo $animals[$x]."\n";
?>
t
--
PHP Gen
Hi all,
I've a problem thats been bothering me for a week now
I have an array $animals
keys and values like this
1 => cat
2 => dog
3 => mouse
4 => horse
I want to be able to access them using either a key or a pointer, however
the key/pointer will be a variable
without variables, if I want
anyone looking for an example of how not to ask a question
on a mailing list, this is it:
Rama wrote:
in a huge php page it's happen that some page included in index.php, for some
strange reason went write.
2 byte are write on the pages included, and are always the same (FF and FE in
hexadecil
Hi Matteo,
can you reduce the code to the smallest one and provide your scripts
here to reproduce it?
> in a huge php page it's happen that some page included in index.php, for some
> strange reason went write.
> 2 byte are write on the pages included, and are always the same (FF and FE in
> he
in a huge php page it's happen that some page included in index.php, for some
strange reason went write.
2 byte are write on the pages included, and are always the same (FF and FE in
hexadecilam) at the start of file.
so the file will be
FF FE
i cannot understand why, i don't use fopen, fwrite,
* Thus wrote Carinus Carelse:
> variables I get an error message in the browser Illegitimate format. I
> am including a copy of the link I click on to call the page below. I
> wonder if someone on the list can may be help me. Have I compiled PHP
> wrong or is the code itself wrong. Or is there a
I got a PHP program running in a Apache 2.0.52 webserver with PHP
4.3.10. The page is supposed to go to a predefined place and pick a raw
email file and use the exim command to forward it. The PHP page is
contained in a link with certain variables when I define the variables
on the command line a
First off i`m using windows 2000 advance server with PHP 4.3 i believe it
is.I can reboot my server and it will go away for awhile.
http://syp-triple-h.com/webpost
http://automotionsclub.com/guestbook
that is some links that will show the access violation and it is at the end
of the script.
Tha
up with
a number of PHP-related links, but haven't investigated yet.
Your message is about as helpful as "PHP is broken, please fix".
-M
> -Original Message-
> From: GD-Aqua [mailto:[EMAIL PROTECTED]
> Sent: Friday, December 17, 2004 2:43 PM
> To: [EMAIL PROTE
I would like to know what this problem is.
PHP has encountered an Access Violation at 01650AFD
Thank You
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Please take a look at http://hedges.org/code/wine.php - You'll see what I
can't figure out how to do.
thanks,
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
changed $rows to $row on line 29
added variable identifier $ to 'row' variables on others.
while ($row=mysql_fetch_array($mysql_result)) {
$ID=$row['ID']; # this is line 30
$first_name=$row['first_name'];
$surname=$row['surname'];
$email=$row[
Hi Aaron,
I noticed several things, first you are fetching your database row into
$rows but you are referencing the data in $row, and second you do not
have a $ in front of your $row variable name, in order to get the
contents of a variable you must use $variable.
I've included modified code to d
Dear Sir/Madam,
trying to displaying records by php get error :
Parse error: parse error in /hsphere/local/home/ozhomene/ardownes.com/ViewContacts.php
on line 30
see below for code for ViewContacts.php :
";
}
} # end else
mysql_close($connection);
?>
Any help will be appre
Chris, or anyone,
I have tried to escape the slashes. Debugging ...
$sql = 'SELECT ... ...
AGAINST (\'"ready maria"\' IN BOOLEAN MODE) ...';
This works. But if I addslashes or stripslashes, or do nothing, it does not
work.
See these 3 variations. Neither work. What should I do? A part from hang
On Mon, 2 Dec 2002, jtjohnston wrote:
> SELECT id,AU,ST,BT,AT FROM jdaxell.ccl WHERE MATCH
> (TNum,YR,AU,ST,SD,BT,BC,AT,PL,PR,PG,LG,AUS,KW,GEO,AN,RB,CO) AGAINST
> ('"ready maria"' IN BOOLEAN MODE) ORDER
> BY id asc
>
> When I run the same (copied and pasted) SQL in PHP, it is as though
> MySQL is
I'm stuck. I have been to the MySQL lists for this.
Now I'm reconsidering my PHP code.
http://ccl.flsh.usherb.ca/print/display.table.inc.phps
I just don't know where I'm going wrong anymore.
If I run this SQL in PHPMyAdmin, it works. jdaxell.ccl should have one
entry for "ready maria".
SELECT i
s [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 09, 2002 9:33 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] PHP problem
>
> Hi there,
>
> I need some help here:
>
> 1 - I have a table created on a DB where I insert the data that I
want.
> 2 - I have a submit page to s
Hi there,
I need some help here:
1 - I have a table created on a DB where I insert the data that I want.
2 - I have a submit page to submit the info I want to the DB
3 - I have a page that displays the info from the DB (choosed by id)
4 - I have a page where I have a text box field and a button.
Hi Alia:
On Fri, Aug 09, 2002 at 02:50:32PM +0300, Alia Mikati wrote:
>
> I have to parse an html file and replace
> src attribute of an img. I'm using 'preg_match_all'
First off, if you're doing a search and replace, use preg_replace().
> having problem with patterns. This is the part of cod
Hi again,
I hope u can help me with this. I have to parse an html file and replace
src attribute of an img. I'm using 'preg_match_all' but it seems i'm
having problem with patterns. This is the part of code that should find
the appropriate img src:
$preg='//si';
if (preg_match_all($preg,$arrFi
"johnny1b1g" <[EMAIL PROTECTED]> wrote:
?
Well I guess I could try to help you if you elaborate your question a bit
further.
/ Jimmy
Start with RTFM :-)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://
?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I've installed PHP-4.0.6 using the following configuration:
'./configure' '--prefix=/ECommerce/bin/apache/1.3.22'
'--with-oci8=/opt/apps/oracle/8.1.7'
'--with-apxs=/ECommerce/bin/apache/1.3.22/bin/apxs'
'--without-mysql' '--with-zlib-dir=/usr/local'
'--with-jpeg-dir=/usr/local' '--with-png-di
Hi
Win' 98 comes only with PWS and not IIS, generally. But some versions of
windows 98 do have IIS in it, but I dont' know about the config. there,
whether it'll be the same as we do for PWS, becoz for the past 2 yrs, I have
PHP on my machine with Windows'98 and PWS and so far, I haven't had
I didn't know you could get IIS4 on windows 98. Are you sure you don't mean
PWS?
Knotek Vlastimil wrote:
> Hi all,
>
> I have following problem. I have 2 computers:
> 1. Win98, IIS4, PHP4.04pl1
> 2. Win2000, IIS4, PHP4.04pl1
>
> with same php.ini
>
> When I am tried to execute my page on the
Hi all,
I have following problem. I have 2 computers:
1. Win98, IIS4, PHP4.04pl1
2. Win2000, IIS4, PHP4.04pl1
with same php.ini
When I am tried to execute my page on the first one, everything works well.
When I am tried to execute it on the second one following error appears:
FATAL: emalloc():
32 matches
Mail list logo