Max Belushkin wrote:
John Nichel wrote:
Jay Blanchard wrote:
[EMAIL PROTECTED] ?
I am getting failure notices out the wazoo for some very old messages
to the
general list.
I am too.
Waves hand in air Ask me! Ask me!
No, I'm not getting them
Cheers
--
David Robley
A clean desk is a
John Nichel wrote:
Miles Thompson wrote:
At 11:45 AM 12/7/2005, Jay Blanchard wrote:
[snip]
Two words punch cards. 'Nuff said.
Come on now Jay, we know you're old and all, but everyone knows that you
cannot edit php with punch cards. Hanging chads will cause too many
fatal
Jim Moseby wrote:
Curt Zirzow wrote:
On Tue, Dec 06, 2005 at 06:36:33PM +0100, M. Sokolewicz wrote:
Jason Petersen wrote:
On 12/6/05, Jeff McKeon [EMAIL PROTECTED] wrote:
Hey all,
Forever now I've been using Frontpage for all my web work
including php.
I'm sure there's
John Nichel wrote:
Jay Blanchard wrote:
[snip]
man you guys are wimps.. gvim on windows... :)
Pt'Edit' in DOS. ;)
(Pt * 2) 'edlin' in DOS. :)
Infinitely recursive pfft A pencil and a piece of paper and
ringing people to describe the cool web
Jay,
gonna have to correct you on this lot (sorry ;-)
Jay Blanchard wrote:
[snip]
is there a way to dynamically define a class constant during runtime
in PHP 5?
for example I would like to achieve the result of something like:
class Example {
const FOO = bar();
}
However this
Eternity Records Webmaster wrote:
I have this code that doesnt print the db results like they should... it
'like it should' means what exactly?
uses pear::db package for the database. Was wondering if anybody can figure
out how come it doesnt work...
what does not work?
?php
Roman Ivanov wrote:
Task:
Create a script that converts text into HTML with paragraphs.
Problem:
Input text could use the book notation, as well as the web notation,
plus it can contain HTML.
==
h1This is a title/h1
This is a Book paragraph.
This is another book paragraph.
This is yet
I wish I had the punch card version. I have to rewire my php box everytime
I want to change something.
On 12/8/05, David Robley [EMAIL PROTECTED] wrote:
John Nichel wrote:
Miles Thompson wrote:
At 11:45 AM 12/7/2005, Jay Blanchard wrote:
[snip]
Two words punch cards. 'Nuff
Jeffrey Sambells wrote:
You've got 83px in you XML file for the fontsize. the 'px' is messing
it up change it to just 83 in the XML file or cast the value to (float)
which will extract the 83 and remove the px:
well spotted Jeffery; James didn't I say to var_dump() the vars you
create
Chris Shiflett wrote:
Mathijs wrote:
How can i add more callback_outputs to ob_start?
I want to have both: ob_start('switchContent');
and: ob_start('ob_gzhandler');
I don't think you can, but you could have a single function that calls
both, then specify that function in ob_start().
I
Can someone help me overcome this recurring problem? I am using the
Joomla content management system and I keep coming across the following
errors.
Fatal error: Call to undefined function mysql_real_escape_string()
in /usr/local/apache2/htdocs/common.php on line 24
Fatal error: Call to
Hi all,
I'm facing a bad behaviour of 'file' command used by fileinfo PECL module
(recommanded for mime-type checking):
* Some Microsoft Excel documents are detected as Microsoft Word documents
* Some HTML files are just text/plain
* ...
I tested on multiple machines (with different version of
Try using mysqli, instead of mysql.
Have you tried Joomla! support channels?
Paul Hickey wrote:
Can someone help me overcome this recurring problem? I am using the
Joomla content management system and I keep coming across the following
errors.
Fatal error: Call to undefined function
I have PHP compiled with mysqli.
The standard answer from the Joomla forums is that I need to have
mysql vice mysqli. I was looking for a more global solution than
having to modify the code for every component, module, mambot I want to
use.
I don't understand why I'm getting undefined function
Is there no way to specify the database functions in Joomla?
You're getting undefined function because you haven't compiled it with
mysql, but mysqli instead, which means the functions you need are
prefixed with mysqli instead of mysql.
Paul Hickey wrote:
I have PHP compiled with mysqli.
The
Hi,
IMO, the best way to avoid XSS is to filter _output_.
My script:
http://nengine.korsengineering.com/files/src/misc/HtmlFilter.phps
uhm,
1st. filter input
2nd escape output
--
Marco Kaiser
[snip]
it doesn't fail and is not imho foolish by definition ... the value of the
constant,
although changing stays the same for the duration of the request,
IIRC Rasmus himself once mentioned that it can be useful to be able to set
a constant to a 'dynamic' value like this - nuff said really :-)
Paul Hickey wrote:
Can someone help me overcome this recurring problem? I am using the
Joomla content management system and I keep coming across the following
errors.
Fatal error: Call to undefined function mysql_real_escape_string()
in /usr/local/apache2/htdocs/common.php on line 24
Fatal
Paul Hickey wrote:
I have PHP compiled with mysqli.
The standard answer from the Joomla forums is that I need to have
mysql vice mysqli. I was looking for a more global solution than
having to modify the code for every component, module, mambot I want to
use.
I don't understand why I'm getting
Hi John,
John Nichel wrote:
Paul Hickey wrote:
I don't understand why I'm getting undefined function errors.
PHP.ini has no reference to mysqli. I don't know if changing this would
enable the functions specific to PHP 4.x.
In your configuration line (how php was configured then compiled),
-Original Message-
From: Jason Gerfen [mailto:[EMAIL PROTECTED]
Sent: 07 December 2005 19:34
To: comex
Cc: php-general@lists.php.net
Subject: Re: [PHP] Preventing Cross Site Scripting Vulnerbilities
function chk_input( $string ) {
if( eregi( ^[0-9a-z_ -]$, $string ) ) {
Hello,
I'm using the PEAR Validate::email method to validate email addresses on our
contact forms since the spam bots have gotten so bad. I am using the
check_domain flag which calls the php function checkdnsrr. This form
processor is used on several sites now and all is going well except one
Validate::email appears to check for a MX or A record. I'm a bit rusty
on my RFCs, but isn't is possible the mail host could be specified using
a CNAME?
Cheers,
David
Eric Butera wrote:
Hello,
I'm using the PEAR Validate::email method to validate email addresses on our
contact forms since
Quoting Roman Ivanov [EMAIL PROTECTED]:
Eric Gorr wrote:
Quoting Roman Ivanov [EMAIL PROTECTED]:
Output text should be correctly formatted without using lots of
br's and nbsp;'s. Doing so manually is not a problem, I would just
use p for web paragraphs, and p class=book for book
Hi Roman,
Check out this: http://www.michelf.com/projects/php-markdown/
Would this help you?
Cheers,
David
Roman Ivanov wrote:
Task:
Create a script that converts text into HTML with paragraphs.
Problem:
Input text could use the book notation, as well as the web notation,
plus it can
/* comments inline */
On Dec 8, 2005, at 2:34 AM, Curt Zirzow wrote:
On Wed, Dec 07, 2005 at 09:30:36PM -0500, Alan Pinstein wrote:
On Dec 7, 2005, at 12:36 AM, Curt Zirzow wrote:
I'm not sure how you mean a weak reference, and well a refcount is
rather meaning less in php userland.
So,
I have an array $journal that I want to carry from a page (where it was
created) to another page (a popup that shows the variables contents). Is
this automatically available? or do I have to do something special to php??
One way:
$serArray = serialize($array);
input type=hidden
What happens when you print out journal?:
print_r( $journal );
Are your keys the exact case as your table fields?
ID vs id or Date vs date
-Original Message-
From: Eternity Records Webmaster [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 07, 2005 11:31 PM
To:
Has something changed in recent versions of cyrus imapd? I'm trying to
code up a PHP interface, or, rather, fix one ... according to the php man
age, I should be able to do:
imap_set_quota($mbox, 'user.'.$user, -1);
to disable it ... but if I do, it doesn't do anything ... and I can't pass
$results-query('select * from eternityrecords.journal');
Should this not be:
$results = $db-query('select * from eternityrecords.journal');
See:
http://pear.php.net/manual/en/package.database.db.db-result.fetchinto.php
Ben
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
On Wed, 07 Dec 2005 14:33:07 -0500
Chris Shiflett [EMAIL PROTECTED] wrote:
Michael B Allen wrote:
Can someone recommend a general method for avoiding / eliminating XSS
vulnerbilities with PHP?
Yeah, escape output. It's really that simple.
Well after looking at this for a while I agree
mime types are very unreliable and should never be used for file type
authentication (they can also be faked by users). Instead you could try
using the extension of the file or an identifying statement in the file.
On 12/8/05, Manuel Vacelet [EMAIL PROTECTED] wrote:
Hi all,
I'm facing a bad
so the web server is running 5.0.4 and the cli version is running
4.3.11. Is there an easy way for me to switch the cli version to the
web version without a recomplie?
-jonathan
On Dec 6, 2005, at 1:10 AM, Marco Kaiser wrote:
Hi Jonathan,
/usr/bin/php
/usr/include/php
/usr/lib/php
How
Good catch:
So I normally do
$results = $db-query ( SELECT * FROM table );
What is the difference between using the and not using the .
-Original Message-
From: Ben Blay [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 08, 2005 10:27 AM
To: php-general@lists.php.net
Subject: Re:
I'm using the POST method but I would also like to access QUERY_STRING
parameters. Is there a convienient global array for these? If not,
what is the definitive method for accessing them?
Thanks,
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Michael B Allen wrote:
I'm using the POST method but I would also like to access QUERY_STRING
parameters. Is there a convienient global array for these? If not,
what is the definitive method for accessing them?
$_GET
$_REQUEST
+
read manual
--
PHP General Mailing List (http://www.php.net/)
To
On Thu, 08 Dec 2005 17:56:14 -0500
Roman Ivanov [EMAIL PROTECTED] wrote:
Michael B Allen wrote:
I'm using the POST method but I would also like to access QUERY_STRING
parameters. Is there a convienient global array for these? If not,
what is the definitive method for accessing them?
I have written a PHP script that creates dynamic links to CAD files on a
local machine. The anchors/links work on two W2K pro machines, but does
nothing on a XP pro machine where I really need the script to reside. I
am stumped if it is an Apache setting, IE setting, or what. I'm getting
use $_REQUEST['name'] to get value
On 12/8/05, Michael B Allen [EMAIL PROTECTED] wrote:
On Thu, 08 Dec 2005 17:56:14 -0500
Roman Ivanov [EMAIL PROTECTED] wrote:
Michael B Allen wrote:
I'm using the POST method but I would also like to access QUERY_STRING
parameters. Is there a
Michael B Allen wrote:
I'm using the POST method but I would also like to access
QUERY_STRING parameters. Is there a convienient global array
for these?
Yeah, $_GET. I know it seems a bit confusing, since the request method
is POST, not GET, but it's a reference to how data is passed when the
On Dec 8, 2005, at 2:46 PM, Michael B Allen wrote:
I'm using the POST method but I would also like to access QUERY_STRING
parameters. Is there a convienient global array for these? If not,
what is the definitive method for accessing them?
Not sure if this script will help, but you can point
Solved. My mistake. I was visiting the form with a URL that had
QUERY_STRING parameters but when I submit the form the QUERY_STRING is
not propagated.
In my particular case I replaced the form tag with the following PHP:
?php
echo form action=\ . $_SERVER['REQUEST_URI'] . \ method=\post\;
?
Hello all,
I have been trying to get the Content-Encoding header from Curl, but
have yet to manage.
Using curl from command line I have no problems simply using:
curl --compress page_to_get -o local_page_copy -D dumpheader.txt
The data gets compressed and uncompressed also in PHP, I am just
Notepad++ is inherently better then notepad (and textpad) and free.
I wish I had the punch card version. I have to rewire my php box everytime
I want to change something.
On 12/8/05, David Robley [EMAIL PROTECTED] wrote:
John Nichel wrote:
Miles Thompson wrote:
At 11:45 AM
Eclipse+PHPEclipse
2005/12/9, Zack Bloom [EMAIL PROTECTED]:
Notepad++ is inherently better then notepad (and textpad) and free.
I wish I had the punch card version. I have to rewire my php box
everytime
I want to change something.
On 12/8/05, David Robley [EMAIL PROTECTED] wrote:
On Thu, Dec 08, 2005 at 08:32:56AM -0500, Paul Hickey wrote:
I have PHP compiled with mysqli.
The standard answer from the Joomla forums is that I need to have
mysql vice mysqli. I was looking for a more global solution than
having to modify the code for every component, module, mambot I
'k, I searched google, and the only thing I could find was a response from
someone telling someone else who asked to search the archives, the answer
is there ...
well, I searched both the php-general and pear-general archives, and I'm
not finding any threads that talk about this :(
hi guys,
anyone will like to help me out from some problem in dealing with
sessions in internet explorer for some $10-$30? please send me private
mail. no reply to this mailing list please. and sorry guys for sending
this mail on the list. i couldn't help myself! i am damn frustrated!
On Thu, Dec 08, 2005 at 02:41:43PM -0500, Zack Bloom wrote:
mime types are very unreliable and should never be used for file type
authentication (they can also be faked by users). Instead you could try
using the extension of the file or an identifying statement in the file.
He isn't using the
On Thu, Dec 08, 2005 at 12:31:52PM +0100, Manuel Vacelet wrote:
Hi all,
I'm facing a bad behaviour of 'file' command used by fileinfo PECL module
(recommanded for mime-type checking):
* Some Microsoft Excel documents are detected as Microsoft Word documents
* Some HTML files are just
On Wed, Dec 07, 2005 at 04:27:49PM -0800, james crooks wrote:
I trying to get php_printer.dll extension to work on a xp system . I
downloaded correct version of php_printer.dll to match php version 5.1.1 .
The extension_dir is set correctly , because other extensions load and work
perfectly.
51 matches
Mail list logo