[PHP] PHP problem

2009-06-01 Thread tRace DOliveira
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

Re: [PHP] PHP problem with array keys / pointers

2006-12-17 Thread Robert Cummings
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

Re: [PHP] PHP problem with array keys / pointers

2006-12-17 Thread julian haffegee
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

Re: [PHP] PHP problem with array keys / pointers

2006-12-17 Thread Jochem Maas
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

Re: [PHP] PHP problem with array keys / pointers

2006-12-17 Thread Satyam
- 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

Re: [PHP] PHP problem with array keys / pointers

2006-12-17 Thread Pintér Tibor
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

[PHP] PHP problem with array keys / pointers

2006-12-17 Thread julian haffegee
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

Re: [PHP] php problem

2005-12-02 Thread Jochem Maas
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

Re: [PHP] php problem

2005-12-02 Thread Marco Kaiser
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

[PHP] php problem

2005-12-02 Thread Rama
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,

Re: [PHP] Php Problem Parsing or so I think

2005-02-06 Thread Curt Zirzow
* 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

[PHP] Php Problem Parsing or so I think

2005-02-05 Thread Carinus Carelse
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

Re: [PHP] PHP problem

2004-12-18 Thread GD-Aqua
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

RE: [PHP] PHP problem

2004-12-17 Thread Mike
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

[PHP] PHP problem

2004-12-17 Thread GD-Aqua
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

[PHP] PHP Problem regarding updating through text boxes

2003-06-20 Thread Matt Hedges
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

Re: [PHP] php problem

2003-02-04 Thread Jason k Larson
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[

Re: [PHP] php problem

2003-02-04 Thread Jason Sheets
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

[PHP] php problem

2003-02-04 Thread Aaron Downes
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

Re: [PHP] PHP Problem or MySQL (Match ... against)?

2002-12-02 Thread jtjohnston
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

Re: [PHP] PHP Problem or MySQL (Match ... against)?

2002-12-02 Thread Chris Wesley
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

[PHP] PHP Problem or MySQL (Match ... against)?

2002-12-02 Thread jtjohnston
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

RE: [PHP] PHP problem

2002-10-09 Thread John W. Holmes
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

[PHP] PHP problem

2002-10-09 Thread Miguel Brá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.

Re: [PHP] PHP: problem with patterns

2002-08-09 Thread Analysis & Solutions
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

[PHP] PHP: problem with patterns

2002-08-09 Thread Alia Mikati
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

[PHP] Re: [[PHP] php problem]

2002-05-10 Thread Jimmy Lantz
"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] php problem

2002-05-10 Thread johnny1b1g
? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP problem with freetype

2001-12-03 Thread MDowling
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

Re: [PHP] PHP problem

2001-03-09 Thread TV Karthick Kumar
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

Re: [PHP] PHP problem

2001-03-09 Thread Michael Kimsal
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

[PHP] PHP problem

2001-03-09 Thread Knotek Vlastimil
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():