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
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
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
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
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
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
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!
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
--
- 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
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
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
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
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
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
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
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
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
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
--
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
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
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:
?
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
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
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
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:
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?
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
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
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
use: $_POST['max_id'] ==
or even better:
if (empty($_POST['max_id']))
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
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 =
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
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
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.
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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]
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
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
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
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
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)
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] =
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
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
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 --
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 =
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
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
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
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
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(',',
-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]=
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(',',
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
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
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
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
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
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
}
73 matches
Mail list logo