php-general Digest 27 Mar 2007 11:27:28 -0000 Issue 4700

2007-03-27 Thread php-general-digest-help
php-general Digest 27 Mar 2007 11:27:28 - Issue 4700 Topics (messages 251432 through 251443): Re: Performance: While or For loop 251432 by: Jake Gardner 251434 by: Travis Doherty 251437 by: Tijnema ! short open tags not working even if enabled - lighttpd + fastcgi

Re: [PHP] Performance: While or For loop

2007-03-27 Thread Tijnema !
On 3/27/07, Travis Doherty [EMAIL PROTECTED] wrote: Jake Gardner wrote: He said if you run the /script/ itself 1000 times, not a loop with 1000 iterations. This is quite possible; I am fairly certain there are websites out there that get accessed well over 1000 times a minute, yes? So

Re: [PHP] short open tags not working even if enabled - lighttpd + fastcgi

2007-03-27 Thread Tijnema !
On 3/27/07, Matt Arnilo S. Baluyos (Mailing Lists) [EMAIL PROTECTED] wrote: Hello everyone, I have a working lighttpd + fastcgi + PHP + eaccelerator installation. I have also enabled short tags on the /usr/local/lib/php.ini but I'm having problems with PHP not escaping the short tags. To

[PHP] Re: short open tags not working even if enabled - lighttpd + fastcgi

2007-03-27 Thread Colin Guthrie
Matt Arnilo S. Baluyos (Mailing Lists) wrote: Hello everyone, I have a working lighttpd + fastcgi + PHP + eaccelerator installation. I have also enabled short tags on the /usr/local/lib/php.ini but I'm having problems with PHP not escaping the short tags. To better illustrate, my

[PHP] Smarty Website down?

2007-03-27 Thread Mario Guenterberg
Hi... I try to connect in the last hours and the results are timeouts. Greetings Mario -- - | havelsoft.com - Ihr Service Partner für Open Source | | Tel: 033876-21 966 | | Notruf: 0173-277 33 60

Re: [PHP] short open tags not working even if enabled - lighttpd + fastcgi

2007-03-27 Thread Jochem Maas
Matt Arnilo S. Baluyos (Mailing Lists) wrote: Hello everyone, I have a working lighttpd + fastcgi + PHP + eaccelerator installation. I have also enabled short tags on the /usr/local/lib/php.ini but I'm having problems with PHP not escaping the short tags. either you stopped using short php

Re: [PHP] Optimization of all mysql databases on a server

2007-03-27 Thread Jochem Maas
Tijnema ! wrote: On 3/26/07, Chris [EMAIL PROTECTED] wrote: itoctopus wrote: The purpose of this script is to optimize all associated tables in all databases on a mysql server. This script is working great, you can put in a CRON and run it every day. Feel free to throw in your 2 cents!

[PHP] Re: Smarty Website down?

2007-03-27 Thread itoctopus
looks ok now -- itoctopus - http://www.itoctopus.com Mario Guenterberg [EMAIL PROTECTED] wrote in message news:20070327092337.GA24779@/bin/dnsdomainname... Hi... I try to connect in the last hours and the results are timeouts. Greetings Mario --

Re: [PHP] short open tags not working even if enabled - lighttpd + fastcgi

2007-03-27 Thread Satyam
- Original Message - From: Tijnema ! [EMAIL PROTECTED] On 3/27/07, Matt Arnilo S. Baluyos (Mailing Lists) [EMAIL PROTECTED] wrote: Hello everyone, I have a working lighttpd + fastcgi + PHP + eaccelerator installation. I have also enabled short tags on the /usr/local/lib/php.ini but

Re: [PHP] Smarty Website down?

2007-03-27 Thread Martin Marques
On Tue, 27 Mar 2007, Mario Guenterberg wrote: Hi... I try to connect in the last hours and the results are timeouts. Excelent connection here. -- 21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18 - Lic. Martín

[PHP] Re: gethostbyname () uses old DNS server

2007-03-27 Thread itoctopus
gethostbyname uses the local DNS cache, could that be the problem? -- itoctopus - http://www.itoctopus.com Kent Tong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, We have moved our DNS server from one IP to another. But on a Linux server, the PHP programs keep using the old

Re: [PHP] Optimization of all mysql databases on a server

2007-03-27 Thread itoctopus
Agreed that mysqlcheck is much more efficient... As for the timeout thing, I rememeber we were once using wget to run php scripts (which was not the correct way). Anyway, we had a script that was repeating every 15 minutes, and eventually we discovered that by default wget has a timeout of 15

RE: [PHP] preview string with strlen PHP (help)

2007-03-27 Thread Ford, Mike
On 24 March 2007 16:28, tedd wrote: 2007. 03. 23, péntek keltezéssel 17.30-kor Dwayne Heronimo ezt írta: YES this works thank nemeth: your welcome but please call me Zoltán ;) (my first name is Zoltán. in Hungary we write names the opposite order than anywhere else ;) so that's why

[PHP] Anyone TrackPro 2 or Something Similar?

2007-03-27 Thread Rahul Sitaram Johari
Ave, I was looking to incorporate a PHP based web traffic analysis script for one of my website. Nothing too fancy or exceptional, but something like TrackPro from Curve2.com ... I use their scripts before and I liked them. Unfortunately they have a ³temporarily closed² on their website for

Re: [PHP] Anyone TrackPro 2 or Something Similar?

2007-03-27 Thread Tijnema !
On 3/27/07, Rahul Sitaram Johari [EMAIL PROTECTED] wrote: Ave, I was looking to incorporate a PHP based web traffic analysis script for one of my website. Nothing too fancy or exceptional, but something like TrackPro from Curve2.com ... I use their scripts before and I liked them. Unfortunately

Re: [PHP] Anyone TrackPro 2 or Something Similar?

2007-03-27 Thread Rahul Sitaram Johari
Ave, Will give it a try!! Thanks! On 3/27/07 9:37 AM, Tijnema ! [EMAIL PROTECTED] wrote: On 3/27/07, Rahul Sitaram Johari [EMAIL PROTECTED] wrote: Ave, I was looking to incorporate a PHP based web traffic analysis script for one of my website. Nothing too fancy or exceptional, but

[PHP] Re: PHP newbie question on xslt

2007-03-27 Thread Timothy Murphy
Miguel J. Jiménez wrote: // Example 2520. Creating an XSLTProcessor ?php $xml_filename = collection.xml; $xsl_filename= collection.xsl; $doc = new DOMDocument(); $xsl = new XSLTProcessor(); $doc-load($xsl_filename); $xsl-importStyleSheet($doc); $doc-load($xml_filename); echo

Re: [PHP] converting video formats

2007-03-27 Thread Miguel J. Jiménez
Bruce Gilbert escribió: Can someoune point me in the right direction as to how (if possible) to convert a video format uploaded to a server to a flash format (.flv) no matter what the orginal format is? thanks I recommend you use FFMPEG ... It can convert almost any video type to FLV --

[PHP] PHP Session variable

2007-03-27 Thread Chris Carter
Hi, I have retrieved 4 values from database. Out of which 3 are displayed on the same page and one variable, which is email address, needs to be carried to the next page through a hyper link, the next page is actually a web form. I can do this by either transferring that variable through query

Re: [PHP] PHP Session variable

2007-03-27 Thread Erik Jones
On Mar 27, 2007, at 9:17 AM, Chris Carter wrote: Hi, I have retrieved 4 values from database. Out of which 3 are displayed on the same page and one variable, which is email address, needs to be carried to the next page through a hyper link, the next page is actually a web form. I can do

Re: [PHP] PHP Session variable

2007-03-27 Thread Richard Davey
Chris Carter wrote: session_start(); session_register (tamma); $HTTP_SESSION_VARS [tamma] = $email; Use $_SESSION. HTTP_SESSION_VARS is deprecated and hasn't been used since PHP 4.0.6 (or rather, shouldn't have been) You don't need session_register(). On the webform: ?

Re: [PHP] PHP Session variable

2007-03-27 Thread Davi
Em Terça 27 Março 2007 11:17, Chris Carter escreveu: Hi, I have retrieved 4 values from database. Out of which 3 are displayed on the same page and one variable, which is email address, needs to be carried to the next page through a hyper link, the next page is actually a web form. I can do

Re: [PHP] usage of flock

2007-03-27 Thread Myron Turner
Richard Lynch wrote: On Fri, March 23, 2007 10:34 pm, Myron Turner wrote: I've never used locks in PHP, but have used them in Perl. In Perl a lock is automatically released on exit or when the locked file is closed. Is that not the same in PHP? According the the man page for the C version

RE: [PHP] preview string with strlen PHP (help)

2007-03-27 Thread tedd
At 12:54 PM +0100 3/27/07, Ford, Mike wrote: On 24 March 2007 16:28, tedd wrote: 2007. 03. 23, péntek keltezéssel 17.30-kor Dwayne Heronimo ezt írta: YES this works thank nemeth: your welcome but please call me Zoltán ;) (my first name is Zoltán. in Hungary we write names the

Re: [PHP] Re: Smarty Website down?

2007-03-27 Thread Mario Guenterberg
On Tue, Mar 27, 2007 at 07:27:18AM -0500, itoctopus wrote: looks ok now The site is ok now. Thanks Mario -- -- | havelsoft.com - Ihr Service Partner fuer Open Source | | Tel: 033876-21 966 | | Notruf:

Re: [PHP] preview string with strlen PHP (help)

2007-03-27 Thread tedd
At 6:57 PM +0200 3/27/07, Tijnema ! wrote: snip As us USA types are told, we all have to adapt to global conventions. :-) ... which presumably explains why the (US-owned) company my wife works for has email addresses in the form [EMAIL PROTECTED] Would you be equally confused by these?

Re: [PHP] preview string with strlen PHP (help)

2007-03-27 Thread Zoltán Németh
2007. 03. 27, kedd keltezéssel 18.57-kor Tijnema ! ezt írta: snip As us USA types are told, we all have to adapt to global conventions. :-) ... which presumably explains why the (US-owned) company my wife works for has email addresses in the form [EMAIL PROTECTED] Would you

[PHP] POST + QUERY

2007-03-27 Thread Dan Shirah
Okay, I thought this was VERY simple, but I cannot wrap my mind around what I am doing wrong. echo $_POST['max_id']; *The echo returns the correct result *if($_POST['max_id'] ='') { *This is suppose to run the below query if $_POST['max_id'] is not blank* $max_id = $_POST['max_id']; *Sets

Re: [PHP] preview string with strlen PHP (help)

2007-03-27 Thread Tijnema !
snip If a US company wants to use [EMAIL PROTECTED], then as we all know, management is always right -- so let's all change to that. Except for the companies that do it the other way -- ah, there I go being confused again. There's just no getting around it. Why can't we all just

Re: [PHP] POST + QUERY

2007-03-27 Thread Dave Goodchild
use: $_POST['max_id'] == or even better: if (empty($_POST['max_id']))

Re: [PHP] POST + QUERY

2007-03-27 Thread Tijnema !
On 3/27/07, Dan Shirah [EMAIL PROTECTED] wrote: Okay, I thought this was VERY simple, but I cannot wrap my mind around what I am doing wrong. echo $_POST['max_id']; *The echo returns the correct result *if($_POST['max_id'] ='') { *This is suppose to run the below query if $_POST['max_id'] is

Re: [PHP] POST + QUERY

2007-03-27 Thread Brad Bonkoski
Dan Shirah wrote: Okay, I thought this was VERY simple, but I cannot wrap my mind around what I am doing wrong. echo $_POST['max_id']; *The echo returns the correct result *if($_POST['max_id'] ='') { *This is suppose to run the below query if $_POST['max_id'] is not blank* $max_id =

Re: [PHP] POST + QUERY

2007-03-27 Thread Davi
Em Terça 27 Março 2007 17:02, Dave Goodchild escreveu: use: $_POST['max_id'] == or even better: if (empty($_POST['max_id'])) Why not: if (!(isset($_POST[max_id))) ? -- Davi Vidal [EMAIL PROTECTED] [EMAIL PROTECTED] -- Agora com fortune: Around computers it is difficult to find the

Re: [PHP] POST + QUERY

2007-03-27 Thread Dan Shirah
So I was dancing all around it by trying !== and = but did not try != /??? UGH! On 3/27/07, Tijnema ! [EMAIL PROTECTED] wrote: On 3/27/07, Dan Shirah [EMAIL PROTECTED] wrote: Okay, I thought this was VERY simple, but I cannot wrap my mind around what I am doing wrong. echo

Re: [PHP] POST + QUERY

2007-03-27 Thread Dave Goodchild
Because isset will return true if the variable is set, even if it is blank. Empty will return true is the variable holds an empty string.

Re: [PHP] POST + QUERY

2007-03-27 Thread Tijnema !
On 3/27/07, Davi [EMAIL PROTECTED] wrote: Em Terça 27 Março 2007 17:02, Dave Goodchild escreveu: use: $_POST['max_id'] == or even better: if (empty($_POST['max_id'])) Why not: if (!(isset($_POST[max_id))) ? If form is left empty, it is set, but it's stil empty. So if you submit a form

Re: [PHP] POST + QUERY

2007-03-27 Thread Dan Shirah
Should I use something besides mssql_fetch_row to get my result? No matter which method I use for determining if the value exists, I still get no data populated to my form. On 3/27/07, Tijnema ! [EMAIL PROTECTED] wrote: On 3/27/07, Davi [EMAIL PROTECTED] wrote: Em Terça 27 Março 2007 17:02,

Re: [PHP] POST + QUERY

2007-03-27 Thread Zoltán Németh
2007. 03. 27, kedd keltezéssel 15.58-kor Dan Shirah ezt írta: Okay, I thought this was VERY simple, but I cannot wrap my mind around what I am doing wrong. echo $_POST['max_id']; *The echo returns the correct result *if($_POST['max_id'] ='') { *This is suppose to run the below query if

Re: [PHP] Language detection with PHP

2007-03-27 Thread Zoltán Németh
2007. 03. 27, kedd keltezéssel 15.06-kor William Lovaton ezt írta: Hi there, I am trying to implement language detection with PHP for a web site I am trying to build. The idea is to take a piece of text and try to guess the language it is written in. I have two options but I'd like to

Re: [PHP] POST + QUERY

2007-03-27 Thread Dan Shirah
I have echoed something out after virtually every line of code :) When I echo out my result ($result_info) it returns Resource id#2 When I echo out my row ($row_info) it returns Array When I try to echo out a field from my array($my_info) it returns nothing at all. On 3/27/07, Brad Bonkoski

Re: [PHP] POST + QUERY

2007-03-27 Thread Brad Bonkoski
Echo $info where you hold you query, to make sure that is reasonable. $result_info is the result set. $row_info ...well you can use var_dump() on this to get its contents... but if row_info prints out nothing, then there is probably a problem with the query, or your query is returning

Re: [PHP] Language detection with PHP

2007-03-27 Thread Davi
Em Terça 27 Março 2007 17:33, Zoltán Németh escreveu: 2007. 03. 27, kedd keltezéssel 15.06-kor William Lovaton ezt írta: Hi there, I am trying to implement language detection with PHP for a web site I am trying to build. The idea is to take a piece of text and try to guess the language

Re: [PHP] POST + QUERY

2007-03-27 Thread Davi
Em Terça 27 Março 2007 17:40, Dan Shirah escreveu: I have echoed something out after virtually every line of code :) When I echo out my result ($result_info) it returns Resource id#2 When I echo out my row ($row_info) it returns Array When I try to echo out a field from my array($my_info) it

Re: [PHP] POST + QUERY

2007-03-27 Thread Dan Shirah
print_r($row_info) display the entire column contents of the select id However, *$first = $row_info['first_name']; echo $cc_first;* the above echo still returns nothing. On 3/27/07, Davi [EMAIL PROTECTED] wrote: Em Terça 27 Março 2007 17:40, Dan Shirah escreveu: I have echoed something

Re: [PHP] POST + QUERY

2007-03-27 Thread Dan Shirah
Sorry, had a typo. *$cc_first = $row_info['first_name']; echo $cc_first;* this echo returns nothing. On 3/27/07, Dan Shirah [EMAIL PROTECTED] wrote: print_r($row_info) display the entire column contents of the select id However, *$first = $row_info['first_name']; echo $cc_first;* the above

Re: [PHP] Language detection with PHP

2007-03-27 Thread Tijnema !
On 3/27/07, Zoltán Németh [EMAIL PROTECTED] wrote: 2007. 03. 27, kedd keltezéssel 15.06-kor William Lovaton ezt írta: Hi there, I am trying to implement language detection with PHP for a web site I am trying to build. The idea is to take a piece of text and try to guess the language it is

Re: [PHP] POST + QUERY

2007-03-27 Thread Zoltán Németh
2007. 03. 27, kedd keltezéssel 16.56-kor Dan Shirah ezt írta: print_r($row_info) display the entire column contents of the select id However, *$first = $row_info['first_name']; echo $cc_first;* the above echo still returns nothing. yeah because you assign that value to $first, not to

Re: [PHP] Language detection with PHP

2007-03-27 Thread Zoltán Németh
2007. 03. 27, kedd keltezéssel 22.57-kor Tijnema ! ezt írta: On 3/27/07, Zoltán Németh [EMAIL PROTECTED] wrote: 2007. 03. 27, kedd keltezéssel 15.06-kor William Lovaton ezt írta: Hi there, I am trying to implement language detection with PHP for a web site I am trying to build. The

Re: [PHP] POST + QUERY

2007-03-27 Thread Zoltán Németh
2007. 03. 27, kedd keltezéssel 16.56-kor Dan Shirah ezt írta: Sorry, had a typo. *$cc_first = $row_info['first_name']; echo $cc_first;* this echo returns nothing. and what does echo $row_info['first_name']; print out? if still nothing, then probably 1) you misspelled the field name and

Re: [PHP] POST + QUERY

2007-03-27 Thread Dan Shirah
echo $row_info['first_name']; returns nothing. However I have verified the correct spelling both in the database and in the PHP code and they are identical and when I print_r it shows that there is a value in the first_name column of the record. On 3/27/07, Zoltán Németh [EMAIL PROTECTED]

Re: [PHP] POST + QUERY

2007-03-27 Thread Brad Bonkoski
Send us the output of print_r($row_info) feel free to mask out any data values you may wish. Dan Shirah wrote: echo $row_info['first_name']; returns nothing. However I have verified the correct spelling both in the database and in the PHP code and they are identical and when I print_r it

Re: [PHP] POST + QUERY

2007-03-27 Thread Davi
Have you tried use number instead name? Something like: echo $row_info[0]; On mysql, you've mysql_fetch_object... Does has anything like this on MS Sql Server? best regards... Em Terça 27 Março 2007 18:17, Dan Shirah escreveu: echo $row_info['first_name']; returns nothing. However I have

Re: [PHP] POST + QUERY

2007-03-27 Thread Zoltán Németh
2007. 03. 27, kedd keltezéssel 17.17-kor Dan Shirah ezt írta: echo $row_info['first_name']; returns nothing. However I have verified the correct spelling both in the database and in the PHP code and they are identical and when I print_r it shows that there is a value in the first_name

Re: [PHP] POST + QUERY

2007-03-27 Thread Dan Shirah
Here are the results of my print_r Array ( [0] = 121 [1] = Y [2] = DS [3] = [4] = {03} [5] = 500 [6] = *** *[7] = John* [8] = Mark [9] = Doe [10] = 123 My Way [11] = 456 Your Place [12] = Smithville [13] = 12345 [14] = 5432 [15] = 123555 [16] = 1235550011 [17] = [EMAIL

Re: [PHP] POST + QUERY

2007-03-27 Thread Dan Shirah
Here is the result from the pre/pre Once again, bold and red is the first_name field. array(28) { [0]= int(122) [1]= string(1) Y [2]= string(2) DS [3]= string(16) [4]= string(4) {03} [5]= float(500) [6]= string(4) *** *[7]= string(4) John* [8]= string(4)

Re: [PHP] POST + QUERY

2007-03-27 Thread Brad Bonkoski
Dan Shirah wrote: Here are the results of my print_r Array ( [0] = 121 [1] = Y [2] = DS [3] = [4] = {03} [5] = 500 [6] = *** *[7] = John* [8] = Mark [9] = Doe [10] = 123 My Way [11] = 456 Your Place [12] = Smithville [13] = 12345 [14] = 5432 [15] = 123555 [16] =

Re: [PHP] POST + QUERY

2007-03-27 Thread Davi
I would try an echo $my_info[7]; []s Em Terça 27 Março 2007 18:28, Dan Shirah escreveu: Here are the results of my print_r Array ( [0] = 121 [1] = Y [2] = DS [3] = [4] = {03} [5] = 500 [6] = *** *[7] = John* [8] = Mark [9] = Doe [10] = 123 My Way [11] = 456 Your Place

Re: [PHP] POST + QUERY

2007-03-27 Thread Zoltán Németh
2007. 03. 27, kedd keltezéssel 17.28-kor Dan Shirah ezt írta: Here are the results of my print_r Array ( [0] = 121 [1] = Y [2] = DS [3] = [4] = {03} [5] = 500 [6] = *** *[7] = John* [8] = Mark [9] = Doe [10] = 123 My Way [11] = 456 Your Place [12] = Smithville [13] = 12345

[PHP] pear returns prompt

2007-03-27 Thread Farid Hamjavar
Greetings, Linux Redhat AS 4 with PHP 5.1.6 When I execute pear, I get my prompt back: % which pear /usr/bin/pear % pear % echo $status 255 % pear list % echo $status 255 I double-checked my $PATH to be OK and am executing right pear. Any ideas as what may be happening. Thanks --

Re: [PHP] POST + QUERY

2007-03-27 Thread Jim Lucas
Dan Shirah wrote: Okay, I thought this was VERY simple, but I cannot wrap my mind around what I am doing wrong. echo $_POST['max_id']; *The echo returns the correct result *if($_POST['max_id'] ='') { *This is suppose to run the below query if $_POST['max_id'] is not blank* $max_id =

Re: [PHP] Optimization of all mysql databases on a server

2007-03-27 Thread Chris
Jochem Maas wrote: Tijnema ! wrote: On 3/26/07, Chris [EMAIL PROTECTED] wrote: itoctopus wrote: The purpose of this script is to optimize all associated tables in all databases on a mysql server. This script is working great, you can put in a CRON and run it every day. Feel free to throw in

Re: [PHP] Optimization of all mysql databases on a server

2007-03-27 Thread itoctopus
You're right, it was running from a browser, you need to use set_time_limit. -- itoctopus - http://www.itoctopus.com Chris [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Jochem Maas wrote: Tijnema ! wrote: On 3/26/07, Chris [EMAIL PROTECTED] wrote: itoctopus wrote: The purpose

Re: [PHP] pear returns prompt

2007-03-27 Thread Chris
Farid Hamjavar wrote: Greetings, Linux Redhat AS 4 with PHP 5.1.6 When I execute pear, I get my prompt back: Ask the pear list - http://pear.php.net/support/lists.php -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To

[PHP] changing array to a string

2007-03-27 Thread Richard Kurth
When I submit the for below it gives me an array that looks like this array(5) { [0]= string(1) 3 [1]= string(1) 4 [2]= string(1) 5 [3]= string(1) 6 [4]= string(1) 7 } I would like to convert it to a string like this 3,4,5,6,7 form action=test.php method=post table trtd colspan=2

Re: [PHP] changing array to a string

2007-03-27 Thread Chris
Richard Kurth wrote: When I submit the for below it gives me an array that looks like this array(5) { [0]= string(1) 3 [1]= string(1) 4 [2]= string(1) 5 [3]= string(1) 6 [4]= string(1) 7 } I would like to convert it to a string like this 3,4,5,6,7 $ids = implode(',',

RE: [PHP] changing array to a string

2007-03-27 Thread Peter Lauri
-Original Message- From: Richard Kurth [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 6:12 AM To: php-general@lists.php.net Subject: [PHP] changing array to a string When I submit the for below it gives me an array that looks like this array(5) { [0]= string(1) 3 [1]=

RE: [PHP] changing array to a string

2007-03-27 Thread Richard Kurth
Richard Kurth wrote: When I submit the for below it gives me an array that looks like this array(5) { [0]= string(1) 3 [1]= string(1) 4 [2]= string(1) 5 [3]= string(1) 6 [4]= string(1) 7 } I would like to convert it to a string like this 3,4,5,6,7 $ids = implode(',',

[PHP] PHP 5.2.1: Some scripts are being parsed, but most aren't

2007-03-27 Thread Eddie
Hi all, Previously, I had installed Apache 1.3.37 with PHP 5.2.1 as a static module on Ubuntu 6.06. I am having a problem where, for some reason, some of my PHP scripts just show source code, while some are parsed. In the meantime, while trying to get this issue fixed, I decided to upgrade to

Re: [PHP] using for loop in function

2007-03-27 Thread Chris
Richard Kurth wrote: The function below will create a group of checkboxes it will also check the checkbox that is stored in the table field that is in $select_value this works fine if there is only one value in the variable but if there is more stored like 1,2,3,4 it will not work. I am

Re: [PHP] PHP 5.2.1: Some scripts are being parsed, but most aren't

2007-03-27 Thread Hap-Hang Yu
Check your php files. Make sure the PHP code are enclosed in the tag ?php ... ?, not ? ... ? There's a php.ini option to accept ? ... ?. It's: short_open_tag = On 2007/3/28, Eddie [EMAIL PROTECTED]: Hi all, Previously, I had installed Apache 1.3.37 with PHP 5.2.1 as a static module on Ubuntu

Re: [PHP] using for loop in function

2007-03-27 Thread Jim Lucas
Richard Kurth wrote: The function below will create a group of checkboxes it will also check the checkbox that is stored in the table field that is in $select_value this works fine if there is only one value in the variable but if there is more stored like 1,2,3,4 it will not work. I am

Re: [PHP] PHP 5.2.1: Some scripts are being parsed, but most aren't

2007-03-27 Thread Mario Guenterberg
On Tue, Mar 27, 2007 at 10:22:40PM -0700, Eddie wrote: Hi all, Previously, I had installed Apache 1.3.37 with PHP 5.2.1 as a static module on Ubuntu 6.06. I am having a problem where, for some reason, some of my PHP scripts just show source code, while some are parsed. Hi... I have a

[PHP] How can i convert one object to another. Convert Exception object to MyException Object.

2007-03-27 Thread Mathijs
Hello there, I am trying to convert one object to another, something like clone. For example. --- class MyException extends Exception { // My functions etc.. etc.. } function ExceptionHandler($exception) { // Convert an NoN MyException to an MyException }