php-general Digest 23 Jun 2008 06:40:58 - Issue 5529
Topics (messages 275786 through 275793):
Re: How to make a Auto View and a Download Link for PDF?
275786 by: Nitsan Bin-Nun
Re: (*OT) What we are going to do about those OT's?
275787 by: Colin Guthrie
275788 by:
Ron Piggott wrote:
I am writing a form right now.
I would like to make the checkbox an array variable. The first part of
the array is the component reference, the second part is the package
reference. What name would you assign to it that I could use in
processing the form in the PHP script
%20
-Original Message-
From: joaquinbordado [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2008 3:35 AM
To: php-general@lists.php.net
Subject: [SPAM] [PHP] escape character in query string
Importance: Low
would someone happen to know the escape character for query string?
here is my
Hey all,
I had a quick question. How come I can do this:
?php
class Foo {
}
class Bar {
public $f = 'SomeFoo';
}
?
But this does not work:
?php
class Foo {
}
class Bar {
public $f = new Foo();
}
?
*(Parse error: syntax error, unexpected T_NEW in test.php on line 8)*
**
Thanks!
(I'm running
On 23 Jun 2008, at 09:36, Osman A. Osman (عثمان) wrote:
I had a quick question. How come I can do this:
?php
class Foo {
}
class Bar {
public $f = 'SomeFoo';
}
?
But this does not work:
?php
class Foo {
}
class Bar {
public $f = new Foo();
}
?
*(Parse error: syntax error, unexpected T_NEW in
You can use a contructor in this case
?php
class Foo {
}
class Bar {
function __construct() {
public $f = 'SomeFoo';
}
}
?
But this does not work:
?php
class Foo {
}
class Bar {
function __construct() {
public $f = new Foo();
}
}
?
for a space I belive a plus sign would work +
try the urlencode function it would make it much easier.
/James Dempster
On Mon, Jun 23, 2008 at 3:34 AM, joaquinbordado [EMAIL PROTECTED]
wrote:
would someone happen to know the escape character for query string?
here is my querysting
Hello Friends,
I have one php file in this file i have just use mail function to send the
email for testing.
In other php file i have used exec('/usr/bin/php -f filepath/filename.php');
and when i run the second file which contains exec command. But i do not get
any email.
So it is not working
Jim what you sent is very helpful.
I had an error message when I submitted the form with a POST
your_cleaning_function
gave me this error:
Fatal error: Call to undefined function: your_cleaning_function()
I am trying to save the ones that were checked to a mySQL table and then
notify the
Can you send us some of the code so we would be able to help you?
On 23/06/2008, Ron Piggott [EMAIL PROTECTED] wrote:
Jim what you sent is very helpful.
I had an error message when I submitted the form with a POST
your_cleaning_function
gave me this error:
Fatal error: Call to
Michelle Konzack wrote:
Currently I do things like:
[ '/var/www/debian.devel/htdocs/index.php'
]
$DIR_BASE=/var/www/customers/konzack
$DIR_HOST=$DIR_BASE/debian.devel
$DIR_TMP=$DIR_BASE/TMP
$DIR_GPG=$DIR_BASE/GNUPG
exec(sed '^/Format:/,/^$/!d'
[snip]
Please don't create another list.
You don't have to read all the threads if you don't want to and skipping
over OT posts takes me about 2s a day... (hint use the r key in
Thunderbird to mark the thread as read!). I don't know about you but I
can afford that amount of time for the
Javed Chauhan wrote:
Hello Friends,
I have one php file in this file i have just use mail function to send the
email for testing.
In other php file i have used exec('/usr/bin/php -f filepath/filename.php');
and when i run the second file which contains exec command. But i do not get
any
Quoting Ron Piggott [EMAIL PROTECTED]:
Jim what you sent is very helpful.
I had an error message when I submitted the form with a POST
your_cleaning_function
gave me this error:
Fatal error: Call to undefined function: your_cleaning_function()
I am trying to save the ones that were
NOLOH (Not One Line Of HTML), a fully object-oriented development
platform for PHP launched a Beta Program today for developers.
More information can be found at http://www.noloh.com.
A blog post detailing the release can be found here:
http://www.danshafer.com/onemind/node/813
--
PHP
-Original Message-
From: Per Jessen [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2008 12:23 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Re: Military Service WAS [PHP] Capitalization of
variable
---8---
There's no flame-war brewing here at all, but whether or not
-Original Message-
From: Michelle Konzack [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 21, 2008 8:10 AM
To: php-general@lists.php.net
Subject: [PHP] Re: [MOREINFO] How to prevent DoS on PHP script?
Hello,
I should note additionaly they http password protection is not realy
an
-Original Message-
From: Richard Heyes [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 21, 2008 9:40 AM
To: PHP General List
Subject: [PHP] Another canvas example
Hi,
Latest in my new series of look at me, aren't I cool canvas examples
is here:
2008/6/23 Boyd, Todd M. [EMAIL PROTECTED]:
THANK YOU. (Re: mixed opinions on the armed forces.) All we need now is for
people to start debating religion.
Actually, I thought that the list has been, up until now, very
responsible and have kept politics out of it. People have mentioned
which
-Original Message-
From: Dotan Cohen [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2008 10:59 AM
To: php-general@lists.php.net
Subject: Re: Re: [PHP] Re: Military Service WAS [PHP] Capitalization of
variable
2008/6/23 Boyd, Todd M. [EMAIL PROTECTED]:
THANK YOU. (Re: mixed
2008/6/23 Boyd, Todd M. [EMAIL PROTECTED]:
Regardless, let's turn this back around:
?php
echo Hello, politically-heterogenous world!;
?
To all those who insist that _all_ programs have bugs, behold this
wonder and repent!
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
I want the damn code to look at! Not a hosted environment...
:)
Sounds like that's not an option right now?
On 6/23/08, Asher Snyder [EMAIL PROTECTED] wrote:
NOLOH (Not One Line Of HTML), a fully object-oriented development platform
for PHP launched a Beta Program today for developers.
More
I want the damn code to look at! Not a hosted environment...
:)
Sounds like that's not an option right now?
If they let you look at the code, why would you purchase their hosting space?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Pretty sweet! My only problem with it is that I had to use the keyboard
to get to the Attach button, since I couldn't click on it with it
being behind the pie chart in the page's Z-order.
Yes, no way around (I think). Even with the buttons z-index set to 99 it
still shows up behind the
Hey Mike,
Currently we're *freely* hosting all developer sandboxes. Your sandbox
contains several examples of NOLOH applications of which you can freely
access and modify the source. We're getting the Developer Zone in order
along with many more examples, videos, and reosurces to help you
On Mon, Jun 23, 2008 at 11:05 AM, Boyd, Todd M. [EMAIL PROTECTED] wrote:
THANK YOU. (Re: mixed opinions on the armed forces.) All we need now is for
people to start debating religion.
You missed this about a year or two ago. Check the archives.
--
/Daniel P. Brown
Dedicated Servers -
Well it's a framework right? I expected it to be like any other...
It says it will run on any webserver - which means it's expected to be
hosted on your own boxes at some point. It looks like they're running
a hosted beta program first though.
On 6/23/08, Wolf [EMAIL PROTECTED] wrote:
If they
On 6/23/08, Asher Snyder [EMAIL PROTECTED] wrote:
Hey Mike,
Currently we're freely hosting all developer sandboxes. Your sandbox
contains several examples of NOLOH applications of which you can freely
access and modify the source.
Ah, then maybe I'll signup. I probably am too busy to write
At 10:42 PM +0100 6/22/08, Colin Guthrie wrote:
It's not really about the project etc. it's more about, h,
etiquette. I'd like people to know if I've shuffled of this mortal
coil so they can all write nice things about me on their blogs etc.
In this modern age I find myself with several
On Mon, Jun 23, 2008 at 12:20 PM, Wolf [EMAIL PROTECTED] wrote:
If they let you look at the code, why would you purchase their hosting space?
The site mentions the option of open source usage, in addition to
commercial and educational.
--
/Daniel P. Brown
Dedicated Servers - Intel 2.4GHz
-Original Message-
From: Daniel Brown [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2008 11:23 AM
To: Boyd, Todd M.
Cc: Per Jessen; php-general@lists.php.net
Subject: Re: Re: [PHP] Re: Military Service WAS [PHP] Capitalization
of
variable
On Mon, Jun 23, 2008 at 11:05 AM,
On Mon, Jun 23, 2008 at 12:04 PM, Boyd, Todd M. [EMAIL PROTECTED] wrote:
You are right. This list, above many others I have subscribed to in the past,
has done a very good job about keeping it PHP-related and not branching off
into a political flame war (or even a polite political
-Original Message-
From: Daniel Brown [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2008 11:42 AM
To: Boyd, Todd M.
Cc: Dotan Cohen; php-general@lists.php.net
Subject: Re: Re: [PHP] Re: Military Service WAS [PHP] Capitalization
of
variable
On Mon, Jun 23, 2008 at 12:04 PM,
On Mon, Jun 23, 2008 at 6:24 AM, Ron Piggott [EMAIL PROTECTED] wrote:
Fatal error: Call to undefined function: your_cleaning_function()
This is the perfect example as to why NOT to copy-and-paste code
from anywhere until you've checked it out yourself first.
Jim placed the function
tedd wrote:
At 10:42 PM +0100 6/22/08, Colin Guthrie wrote:
It's not really about the project etc. it's more about, h,
etiquette. I'd like people to know if I've shuffled of this mortal
coil so they can all write nice things about me on their blogs etc.
In this modern age I find myself
On Mon, Jun 23, 2008 at 12:48 PM, Boyd, Todd M. [EMAIL PROTECTED] wrote:
?php
foreach($php-general-subscriber as $subscriber)
{
$subscriber-spread_the_love();
}
Notice: Use of undefined constant general - assumed 'general' in
/home/obd2code/public_html/g.php on line 3
Notice:
[snip]
The only fly in the ointment would be how to notify your account that
you are dead? Might have difficulty detecting that, at least just
yet. :-)
[/snip]
Have the instructions in your will.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Mon, Jun 23, 2008 at 6:14 AM, Javed Chauhan
[EMAIL PROTECTED] wrote:
In other php file i have used exec('/usr/bin/php -f filepath/filename.php');
Have you ever heard of `include` or `require`?
--
/Daniel P. Brown
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
Am 2008-06-21 19:45:32, schrieb Dotan Cohen:
In my country, those who have served in a foreign army are exempt from
serving here.
Realy?
I know at least on Jew, which was 1 1/2 years in the french
army for his service national and then 5 years in Israel.
Thanks, Greetings and nice Day/Evening
Am 2008-06-21 20:52:22, schrieb Dotan Cohen:
While I won't confirm nor deny my opinion of your statement, tell me,
in your opinion how much does training matter? And dedication to the
The problem is, that the training starts in the brain an not with
muscles. A thing most peoples do not
2008/6/23 Daniel Brown [EMAIL PROTECTED]:
(In actuality, you can't use dashes in a variable name. You may
have meant to use an underscore [ _ ].)
IHateUnderscoresInVariableNames!
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
On Mon, 2008-06-23 at 20:19 +0300, Dotan Cohen wrote:
2008/6/23 Daniel Brown [EMAIL PROTECTED]:
(In actuality, you can't use dashes in a variable name. You may
have meant to use an underscore [ _ ].)
IHateUnderscoresInVariableNames!
iHateCapitalizedFirstLetterInVariableNames!
;)
On Jun 23, 2008, at 1:23 PM, Robert Cummings wrote:
On Mon, 2008-06-23 at 20:19 +0300, Dotan Cohen wrote:
2008/6/23 Daniel Brown [EMAIL PROTECTED]:
(In actuality, you can't use dashes in a variable name. You may
have meant to use an underscore [ _ ].)
IHateUnderscoresInVariableNames!
On Mon, 2008-06-23 at 13:28 -0400, Jason Pruim wrote:
On Jun 23, 2008, at 1:23 PM, Robert Cummings wrote:
On Mon, 2008-06-23 at 20:19 +0300, Dotan Cohen wrote:
2008/6/23 Daniel Brown [EMAIL PROTECTED]:
(In actuality, you can't use dashes in a variable name. You may
have meant to use
On Jun 23, 2008, at 1:33 PM, Robert Cummings wrote:
On Mon, 2008-06-23 at 13:28 -0400, Jason Pruim wrote:
On Jun 23, 2008, at 1:23 PM, Robert Cummings wrote:
On Mon, 2008-06-23 at 20:19 +0300, Dotan Cohen wrote:
2008/6/23 Daniel Brown [EMAIL PROTECTED]:
(In actuality, you can't use
On Mon, 2008-06-23 at 13:37 -0400, Jason Pruim wrote:
On Jun 23, 2008, at 1:33 PM, Robert Cummings wrote:
On Mon, 2008-06-23 at 13:28 -0400, Jason Pruim wrote:
On Jun 23, 2008, at 1:23 PM, Robert Cummings wrote:
On Mon, 2008-06-23 at 20:19 +0300, Dotan Cohen wrote:
2008/6/23 Daniel
Having some issues with outputting my table data as an array.
In the code below I am outputting the column titles of my table into an
excel spreadsheet. I get the column titles just fine in Excel.
if($numberFields) { // Check if we need to output anything
$types = ifx_fieldtypes($query);
if
At 5:52 PM +0100 6/23/08, Colin Guthrie wrote:
At least we'll probably fine a practical use for the die() function ;)
LOL -- that's funny.
It reminds me of:
/world
Cheers,
tedd
--
---
http://sperling.com http://ancientstones.com http://earthstones.com
--
PHP General Mailing List
At 8:19 PM +0300 6/23/08, Dotan Cohen wrote:
2008/6/23 Daniel Brown [EMAIL PROTECTED]:
(In actuality, you can't use dashes in a variable name. You may
have meant to use an underscore [ _ ].)
IHateUnderscoresInVariableNames!
Dotan Cohen
When I can't describe the variable better, I
What wierd things have you read?
I'm agreeing with Dotan, I dont know how things going these days in the
Israeli army, but if you are looking at the history, it proves what Dotan
said, whenever we had no technolgy, no development we were still able to
strike out the enemy.
I guess any of us can't
On Mon, Jun 23, 2008 at 1:23 PM, Robert Cummings [EMAIL PROTECTED] wrote:
On Mon, 2008-06-23 at 20:19 +0300, Dotan Cohen wrote:
2008/6/23 Daniel Brown [EMAIL PROTECTED]:
(In actuality, you can't use dashes in a variable name. You may
have meant to use an underscore [ _ ].)
2008/6/22 Michelle Konzack [EMAIL PROTECTED]:
Am 2008-06-21 19:45:32, schrieb Dotan Cohen:
In my country, those who have served in a foreign army are exempt from
serving here.
Realy?
I know at least on Jew, which was 1 1/2 years in the french
army for his service national and then 5 years
On Mon, Jun 23, 2008 at 1:46 PM, Dan Shirah [EMAIL PROTECTED] wrote:
if($numberFields) { // Check if we need to output anything
$types = ifx_fieldtypes($query);
if (isset($types)) {
foreach($types as $field_name[] = $data_type) {
}
}
Is there a particular reason you're telling PHP
When I have = $data_type in there my column title values for $field_name
display correctly. If I take out = $data_type it displays the the column
type. IE SQLNUMINT SQLCHAR...instead of the column title.
On 6/23/08, Daniel Brown [EMAIL PROTECTED] wrote:
On Mon, Jun 23, 2008 at 1:46 PM, Dan
2008/6/22 Michelle Konzack [EMAIL PROTECTED]:
Am 2008-06-21 20:52:22, schrieb Dotan Cohen:
While I won't confirm nor deny my opinion of your statement, tell me,
in your opinion how much does training matter? And dedication to the
The problem is, that the training starts in the brain an
Hello,
I´m developing a PHP system that needs one of these lines in the .htaccess,
depending of the server configuration:
AddHandler application/x-httpd-php .xyz
or
AddHandler application/x-httpd-php4 .xyz
or
AddHandler application/x-httpd-php5 .xyz
How can i detect on the fly which line i
---8--- lotsa snip
I call you Israelien camerads @army Kanonenfutter.
I do not know French nor German, so I can only guess that means cannon
snacks?
Cannon fodder is an informal term for military personnel who are regarded or
treated as expendable in the face of enemy fire. The term is
Is there a particular reason you're telling PHP that, for each
$types variable, set this key of the $field_name array to equal
$data_type, and do nothing else about it?
The ifx_fieldtypes function returns the data as an array with the field
names as the key, and the field types as the data.
2008/6/23 Boyd, Todd M. [EMAIL PROTECTED]:
I do not know French nor German, so I can only guess that means cannon
snacks?
Cannon fodder is an informal term for military personnel who are regarded or
treated as expendable in the face of enemy fire. The term is generally used
in situations
Dan Shirah wrote:
Having some issues with outputting my table data as an array.
In the code below I am outputting the column titles of my table into an
excel spreadsheet. I get the column titles just fine in Excel.
if($numberFields) { // Check if we need to output anything
$types =
AH HA! Got it!
The problem was I did not need to loop through the array headers to
associate the data. So I removed:
foreach($field_name as $fieldName) { // Loop through the array of headers
as we fetch the data
$row[] = parseCSVComments($info-$fieldName);
} // End loop
And ran it as:
Hello,
within a CGI-wrapped hosting environment, we are calling PHP as command
line interpreter (not cli). This works fine, except one thing: Settings
from parent php.inis are not inherited. This is very annoying. Lets say,
there is a script /user/123/index.php and some libraries in
// Initialize/clear the contents of the $row variable
$row = array();
// You probably need to reset the $field_name var with each
// iteration over it. from what I understand, foreach will move
// the internal pointer of the array to the end. Then the
R B [EMAIL PROTECTED] wrote:
Hello,
I´m developing a PHP system that needs one of these lines in the .htaccess,
depending of the server configuration:
AddHandler application/x-httpd-php .xyz
or
AddHandler application/x-httpd-php4 .xyz
or
AddHandler application/x-httpd-php5
The people that will install this system, don´t have programming knowledge.
They have a website, buy don´t have knowledge of configurations.
If i add all the lines, it don´t works, unless the last line is the correct
for that particular server.
Why not just read the manual and add the
Marten Lehmann [EMAIL PROTECTED] wrote:
Hello,
within a CGI-wrapped hosting environment, we are calling PHP as command
line interpreter (not cli). This works fine, except one thing: Settings
from parent php.inis are not inherited. This is very annoying. Lets say,
there is a script
Marten Lehmann [EMAIL PROTECTED] wrote:
Hello,
within a CGI-wrapped hosting environment, we are calling PHP as command
line interpreter (not cli). This works fine, except one thing: Settings
from parent php.inis are not inherited. This is very annoying. Lets say,
there is a script
Chetan Rane wrote:
But this does not work:
?php
class Foo {
}
class Bar {
function __construct() {
public $f = new Foo();
}
}
?
do this:
?php
class Foo {
}
class Bar {
public $f;
function __construct() {
$this-f = new Foo();
}
}
$x =
R B wrote:
Hello,
I´m developing a PHP system that needs one of these lines in the .htaccess,
depending of the server configuration:
AddHandler application/x-httpd-php .xyz
or
AddHandler application/x-httpd-php4 .xyz
or
AddHandler application/x-httpd-php5 .xyz
How can i detect on the fly
Hey everyone. Here's a simple question. I'd like to be able to import
information from a text file located on the client without actually
saving it on the server; that is, I simply want to read the data into
memory on the server, without actually saving it to a file.
I've been googling
Jay Blanchard wrote:
[snip]
www.goarmy.com
http://www.gocoastguard.com/
[/snip]
http://www.airforce.com/
Army, 1990-1995, crypto-ranger!
-shawn (formerly Shawn)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-Original Message-
From: Dotan Cohen [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2008 1:49 PM
To: Boyd, Todd M.
Cc: php-general@lists.php.net
Subject: Re: [PHP] Re: Re: Re: Military Service WAS [PHP]
Capitalization of variable
---8--- snip
Shamelessly lifted that from
-Original Message-
From: James Colannino [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2008 3:48 PM
To: php-general@lists.php.net
Subject: [PHP] Uploading files without saving them
Hey everyone. Here's a simple question. I'd like to be able to
import
information from a text
2008/6/24 Boyd, Todd M. [EMAIL PROTECTED]:
I am not familiar with the game, sorry.
Don't be sorry... play it for FREE! :)
http://www.games4win.com/games/cannon-fodder/
Although it seems to install fine in the latest (1.0!) Wine, the game
is unplayable. The screen just flashes. I'll wait
Boyd, Todd M. wrote:
IIRC, if you never move it out of PHP's defaulted temporary storage
sandbox, it will eventually be wiped. When files are uploaded via PHP,
they must explicitly be moved into the active file system.
Ah, I see. What would happen if two people just happened to upload
files
Nitsan Bin-Nun wrote:
PHP uses randomaly name for each of them (during the upload to the
temporary directory), when its done PHP moves the file to the objective
location, i dont think you will obstacle filename problems.
Ah, excellent! Thanks :)
James
--
My blog:
On Mon, Jun 23, 2008 at 6:05 PM, James Colannino [EMAIL PROTECTED] wrote:
Ah, I see. What would happen if two people just happened to upload files
with the same filename at the same time? Would one stomp over the other, or
does PHP have mechanisms to handle that sort of situation?
Todd
Daniel Brown wrote:
On Mon, Jun 23, 2008 at 6:05 PM, James Colannino [EMAIL PROTECTED] wrote:
Ah, I see. What would happen if two people just happened to upload files
with the same filename at the same time? Would one stomp over the other, or
does PHP have mechanisms to handle that sort of
On Mon, Jun 23, 2008 at 5:41 PM, Shawn McKenzie [EMAIL PROTECTED] wrote:
Army, 1990-1995, crypto-ranger!
96 Bravo?
That was the alternative MOS I was considering upon enlisting in
the Army a few years after the Coast Guard. It was between that and
68W (combat medic), and the latter
On Mon, Jun 23, 2008 at 5:58 PM, Dotan Cohen [EMAIL PROTECTED] wrote:
Although it seems to install fine in the latest (1.0!) Wine, the game
is unplayable. The screen just flashes. I'll wait until games4lin
comes out, I suppose. Or not.
Check your video drivers. Wine 1.0 should be
On Mon, Jun 23, 2008 at 8:17 PM, Shawn McKenzie [EMAIL PROTECTED] wrote:
Oooo... where can I get this 'summer.jpg'?
It's an Easter Egg embedded in the $_FILES array under an
undocumented hidden key.
?php
When I joined it was 29S, Field COMSEC Equipment Repairer, but in 95
just before I got out they moved it out of signal into ordnance and I
think it was 35E.
What is the age limit now? It doesn't matter much, I don't think I
could run 2 miles in less than 8 hours now anyway. ;-)
-Shawn
Hi all. I have a rather large application on which I need to do some memory
performance profiling and optimization. Basically it's eating up more RAM
than it should and I'm not sure why. I have some suspects, but nothing
concrete.
Are there any (open source) tools that people can recommend
Larry Garfield wrote:
Hi all. I have a rather large application on which I need to do some memory
performance profiling and optimization. Basically it's eating up more RAM
than it should and I'm not sure why. I have some suspects, but nothing
concrete.
Are there any (open source)
84 matches
Mail list logo