Jason Barnett wrote:
Jake, as you probably already know you usually have to give the class
name when attempting to get a static variable, i.e.
YourClassName::$bob;
You *can* dynamically refer to a static class variable from within an
object without knowing the name of the class; this is what
On Sun, 2004-11-07 at 07:55 +0200, Jyry Kuukkanen wrote:
On Sun, 7 Nov 2004, raditha dissanayake wrote:
David wrote:
I need a PHP accelerator but am not sure which one to use. I would
highly prefer to not use a commercial accelerator and need one that
works with PHP 5. Does
raditha dissanayake wrote:
this one:
- Turck MMCache for PHP
Turck MM Cache does not work with PHP 5. It's possible to compile and
load it and some pages are working but most of the time it segfaults.
By the way: Does anybody know if the Turck MM Cache project is still
active? The last change in
On Sun, 2004-11-07 at 01:37, Larry E.Ullman wrote:
Yes of course...but was confused since some says it is so and some
says it
is not...So thought of asking the pros..
It is. PHP4 had limited support for OOP, though it was quite usable.
PHP5 goes further and provides pretty much
count() is prefered over mysql_num_rows, because the later requires a
full resultset to be tranfered, while the first doesn't.
(so, the 2nd is more resource intensive if you don't require the resultset)
[EMAIL PROTECTED] wrote:
Yeah definitely use COUNT(*) or mysql_num_rows() function.
Nate
hi,
it's a limitation, and not allowed in PHP. There was a whole line of
posts about it in internals.
- Tul
Jake Press wrote:
Hello All,
I am having an interesting syntax problem. :(
I have been battling this little bugger for the last week and a half, I
have exhausted google and numerous php
Matt Cassarino wrote:
Hi,
I am trying to add x days to the current date for a calendar program that I am writing.
x represents any integer from 1 to 7. So, for x=4, the program will get the current
date
2004-11-06
and add 4 days to it:
2004-11-10
I need it to account for the next month if I
From a theoretical stand point, for a language to be OO, it should
support encapsulation, inheritance and polymorphism
On Nov 7, 2004, at 2:26 AM, Robert Cummings wrote:
On Sun, 2004-11-07 at 01:37, Larry E.Ullman wrote:
Yes of course...but was confused since some says it is so and some
says it
I've spent the last 6 hours or so trying to get pspell going on my php
install, version 4.3.9. I've searched all over the net, but haven't
found a solution.
I'm using debian so I'm using the packaged version of php4 and apache. I
installed aspell using apt-get and then downloaded and compiled
Hey all,
Hope some of you also work on sundays :)
I have a little javascript which displays a images (with previous / next
thing)
Now, i populate the javascript array with an php array:
SCRIPT LANGUAGE=JavaScript
!-- Begin
NewImg = new Array (
?php
while($row = mysql_fetch_object($result)){
On Sun, 7 Nov 2004 11:44:33 +0100, Reinhart Viane [EMAIL PROTECTED] wrote:
Hope some of you also work on sundays :)
I have a little javascript which displays a images (with previous / next
thing)
Now, i populate the javascript array with an php array:
SCRIPT LANGUAGE=JavaScript
!--
Reinhart,
?php
for($i = 0; $i mysql_num_rows($result)-1; $i++)
{
$row = mysql_fetch_object($result);
echo ''.$row-picture_url.'';
if($i = mysql_num_rows($result)-2)
{
echo ',';
}
}
?
Here is how I do in my developments.
Thank you very much,
After some small adjustements to make it work with the rest of the
javascript it works like a charm!!
Have a nice Sunday :)
Greetings,
Reinhart
-Original Message-
From: Bruno B B Magalhães [mailto:[EMAIL PROTECTED]
Sent: zondag 7 november 2004 12:33
To: [EMAIL
I asked a question yesterday about this but I think my
question is now more fine tuned:
Right now I have about 50+ session variables that will
be inserted into my mysql database in a transaction.
I need to do the mysql_real_escape_string and because
magic_quotes_gpc is turned on stripslashes as
Hello,
I am desperately looking for a solution of a problem that seems quite
simple.
I need a PHP script to create an email message in a way that a subject line
in Hebrew will be readable in all mail clients. Some mail clients cannot
cope with Hebrew if they don't have character set explicitly
On Sun, 7 Nov 2004 03:52:28 -0800 (PST), Stuart Felenstein
[EMAIL PROTECTED] wrote:
I asked a question yesterday about this but I think my
question is now more fine tuned:
Right now I have about 50+ session variables that will
be inserted into my mysql database in a transaction.
I need to
--- Jordi Canals [EMAIL PROTECTED] wrote:
In the manual
http://es2.php.net/manual/en/function.get-magic-quotes-gpc.php
you have an example just for that. Take a look to
the Example 2.
Ok, that makes sense. Thank you .
Stuart
--
PHP General Mailing List (http://www.php.net/)
To
--- Stuart Felenstein [EMAIL PROTECTED] wrote:
On second thought, I have a question. What is the
$value in the example ?
Does that mean I put in my own values ?
Stuart
?php
if (get_magic_quotes_gpc()) {
function stripslashes_deep($value)
{
$value = is_array($value) ? ---?
On Sunday 07 November 2004 13:03, Stuart Felenstein wrote:
On second thought, I have a question. What is the
$value in the example ?
$_POST, then $_GET, then $_COOKIE
Does that mean I put in my own values ?
1) No.
2) Lookup array_map() and understand what it does.
3) stripslashes_deep()
--- Jason Wong [EMAIL PROTECTED] wrote:
2) Lookup array_map() and understand what it does.
3) stripslashes_deep() is a recursive function (ie.
it calls itself). You
should find a good tutorial on recursive functions
to learn exactly what it
does.
Thank you Jason.
Another thing I'm
Hello all,
I have the source code for a C library who's functions i wish to
expose to php. Ideally i'd like to be able to use dl() or put the
library file location into php.ini to allow use of the functions.
Is there a tutorial on how to do this? I've read over the Zend API
stuff,
On Sat, 6 Nov 2004 21:58:49 -0600, Dustin Wish with INDCO Networks
[EMAIL PROTECTED] wrote:
I am opening a file and then have to look for a value inside the string. Is
there an easy way to do this?
I need the value in this string for the var djLast = '45.11';
preg_match() can do that.
On Sun, Nov 07, 2004 at 08:32:53AM -0600, Greg Donald wrote:
On Sat, 6 Nov 2004 21:58:49 -0600, Dustin Wish with INDCO Networks
preg_match() can do that.
php.net/preg_match
Easiest possible way to do this ( for you the programmer ) is to slurp
the whole file in as a string and search for
-{ Rene Brehmer }- wrote:
Spam message reported, original sender added to permanent blacklist
Have a nice day
Rene
At 02:56 06-11-2004, floydjeffers wrote:
[skip spam]
Butbutbutwhat if we really won? ;)
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing
I'd rather suggest using strpos(), seen as it's quite a bit faster than
using a regular expression engine (especially when you don't need one)
Greg Donald wrote:
On Sat, 6 Nov 2004 21:58:49 -0600, Dustin Wish with INDCO Networks
[EMAIL PROTECTED] wrote:
I am opening a file and then have to look
Noodles wrote:
I've spent the last 6 hours or so trying to get pspell going on my php
install, version 4.3.9. I've searched all over the net, but haven't
found a solution.
I'm using debian so I'm using the packaged version of php4 and apache. I
installed aspell using apt-get and then
it won't be a php-parameter. Seen as the script isn't executed when the
server decides it is the same as the cached version. So only if it deems
not to be, then it runs the script, and when it does that, the script
doesn't need to know anything about modified-since, because that checks
has
I'd rather suggest using strpos(), seen as it's quite a bit faster than
using a regular expression engine (especially when you don't need one)
Greg Donald wrote:
On Sat, 6 Nov 2004 21:58:49 -0600, Dustin Wish with INDCO Networks
[EMAIL PROTECTED] wrote:
I am opening a file and then
Hello all,
I was working on my OnlineStore up to 04:30 in the morning and all was
working fine. Now for 20 minutes a friend has called me, my OnlineStore
give an error.
After checking I do not know, so I have
echo ?php echo=\What the hell... ?\; ? pest.php
and called it with
This array_walk() looks like a good function
Would this be a legitimate call:
array_walk($myarray, 'mysql_real_escape_string');
?
Thank you,
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks in advise,
Exile
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
On 11/07/2004 09:57 AM, Marina Markus wrote:
I am desperately looking for a solution of a problem that seems quite
simple.
I need a PHP script to create an email message in a way that a subject line
in Hebrew will be readable in all mail clients. Some mail clients cannot
cope with Hebrew
Hi all,
I have a question that I can't get my head around and was hoping someone
could answer for me.
I have a form with a number of fields.
Field one is a tdselect name=thisSteamField/td
The option fields are built from an sql statement and a where clause builds
the options fields
Forgotten to post the error.log:
[Sun Nov 7 18:45:13 2004] [error] (13)Permission denied: exec of /home/
onlinstore/public_html/pest.php failed
[Sun Nov 7 18:45:15 2004] [error] [client 65.222.145.42] Premature end
of script headers: /home/onlinestore/public_html/pest.php
and access.log:
function recursePathLookup($CatID, $Path = array()) {
//Get the catid for this subcat
$sql = SELECT SubCategoryID, Name FROM categories WHERE CategoryID =
'.$CatID.';
$query = mysql_query($sql);
if(mysql_num_rows($query) == 1) {
$data =
[EMAIL PROTECTED] wrote:
function recursePathLookup($CatID, $Path = array()) {
//Get the catid for this subcat
$sql = SELECT SubCategoryID, Name FROM categories WHERE CategoryID =
'.$CatID.';
$query = mysql_query($sql);
if(mysql_num_rows($query) == 1) {
$data =
Exile wrote:
Thanks in advise,
Exile
is what like perldoc?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Stuart Felenstein wrote:
This array_walk() looks like a good function
Would this be a legitimate call:
array_walk($myarray, 'mysql_real_escape_string');
?
Thank you,
Stuart
array_map() is faster :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Of course! Thank you.
Nate
-Original Message-
From: M. Sokolewicz [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 07, 2004 11:03 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: recursive function not returning anything..
[EMAIL PROTECTED] wrote:
function recursePathLookup($CatID,
I tried it with just aspell (including the aspell-en dictionary package)
and whenever I tried to configure php to use pspell it couldn't find
pspell (./configure --with-pspell)
John Nichel wrote:
Noodles wrote:
I've spent the last 6 hours or so trying to get pspell going on my php
install,
On Sun, 2004-11-07 at 13:57 +0200, Marina Markus wrote:
Hello,
Hi!
I need a PHP script to create an email message in a way that a subject line
in Hebrew will be readable in all mail clients. Some mail clients cannot
cope with Hebrew if they don't have character set explicitly denoted.
I
On Sun, 2004-11-07 at 20:42 +0100, Fredrik Tolf wrote:
On Sun, 2004-11-07 at 13:57 +0200, Marina Markus wrote:
Is there a possibility in PHP allowing to encode a string
with WIN-1255 character set encoding? The result should look like:
=?windows-1255?B?Rlc6IOz26eHl+CDk8uXj6e0=?=
This can be done with javascript or you can use an event-driven solution
like PRADO
Hi all,
I have a question that I can't get my head around and was hoping
someone
could answer for me.
I have a form with a number of fields.
Field one is a tdselect name=thisSteamField/td
The option
Hello all,
it was realy stupid...
One of my VirtualHosts had
AddHandler cgi-script .php .cgi .sh .pl
but NOT inside the VirtualHost directive...
...and has blocked all
Greetings
Michelle
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
Michelle Konzack Apt. 917
[EMAIL PROTECTED] (Megiddo) wrote in message news:[EMAIL PROTECTED]...
Is there an HTTP server that parses PHP that will run on the Axim x3i?
I'd really like to know the answer to this question.
I'm a big PHP programmer, and would love to be able to test my scripts on my
Axim.
Anybody?
Hello,
Whats going on with the ListServer of php.net ?
For every Message I send I get an error Message...
But the E-Mails was correctly delivered...
Greetings
Michelle
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
Michelle Konzack Apt. 917 ICQ
Thanks Tul,
Okay, so its a limitation :(
I cant find the line of posts, any idea on it - or possible keywords i
can google with ?
I'd like to find out the reasons behind why this a fixed limitation
Best Regards
Jake Press
M. Sokolewicz wrote:
hi,
it's a limitation, and not
Can anyone give me a clue what I have done wrong here.
//These would be passed as ints:
array_walk($l_industry, 'mysql_escape_string');
Warning: Wrong parameter count for
mysql_escape_string() in
/xxx//public_html/Test2.php on line 104
//These would be passed as ints:
array_walk($l_tterm,
Hi,
I need to improve my current search mecanism but got stuck in a
dilema : build one or use an existing engine?
My site, that uses php/smarty allows my users to browse products in a
category listing or search. Currently my search only performs a
'select xxx from where field like ' and show
You've just hijacked this thread.
Please start a new message instead of replying to a message and
changing the subject to talk about something else.
Curt
--
Quoth the Raven, Nevermore.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You've just hijacked this thread.
Please start a new message instead of replying to a message and
changing the subject to talk about something else.
Curt
--
Quoth the Raven, Nevermore.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You've just hijacked this thread.
Please start a new message instead of replying to a message and
changing the subject to talk about something else.
Curt
--
Quoth the Raven, Nevermore.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
* Thus wrote Kevin:
Hello all,
I have the source code for a C library who's functions i wish to
expose to php. Ideally i'd like to be able to use dl() or put the
library file location into php.ini to allow use of the functions.
Look at http://pecl.php.net, it is dedicated to
Oops, sorry :(
I accidentally hi-jacked another thread.
Here are the relevant posts for anyone thats reading:
- http://news.php.net/php.general/201395
- http://news.php.net/php.general/201403
- http://news.php.net/php.general/201405
- http://news.php.net/php.general/201410
-
Noodles wrote:
I tried it with just aspell (including the aspell-en dictionary package)
and whenever I tried to configure php to use pspell it couldn't find
pspell (./configure --with-pspell)
If Debian is like Red Hat, you will also need to install some type of
development package for aspell
* Thus wrote Stuart Felenstein:
Can anyone give me a clue what I have done wrong here.
//These would be passed as ints:
array_walk($l_industry, 'mysql_escape_string');
Warning: Wrong parameter count for
mysql_escape_string() in
/xxx//public_html/Test2.php on line 104
The callback
* Thus wrote robert mena:
Hi,
I need to improve my current search mecanism but got stuck in a
dilema : build one or use an existing engine?
My site, that uses php/smarty allows my users to browse products in a
category listing or search. Currently my search only performs a
'select xxx
Hello,
On 11/07/2004 09:10 PM, Robert Mena wrote:
I need to improve my current search mecanism but got stuck in a
dilema : build one or use an existing engine?
My site, that uses php/smarty allows my users to browse products in a
category listing or search. Currently my search only performs
* Thus wrote Jake Press:
Oops, sorry :(
I accidentally hi-jacked another thread.
Thanks for taking notice :)
Here are the relevant posts for anyone thats reading:
- http://news.php.net/php.general/201395
- http://news.php.net/php.general/201403
- http://news.php.net/php.general/201405
John Nichel wrote:
Noodles wrote:
I tried it with just aspell (including the aspell-en dictionary
package) and whenever I tried to configure php to use pspell it
couldn't find pspell (./configure --with-pspell)
If Debian is like Red Hat, you will also need to install some type of
development
Curt Zirzow wrote:
* Thus wrote robert mena:
Hi,
I need to improve my current search mecanism but got stuck in a
dilema : build one or use an existing engine?
My site, that uses php/smarty allows my users to browse products in a
category listing or search. Currently my search only performs a
John Nichel wrote:
If Debian is like Red Hat, you will also need to install some type of
development package for aspell (aspell-devel in Red Hat), or install
from source so that the headers are present on your system. You may
also need to point the php configure script to the location of your
Hi
Can I use them (swish-e HtDig) for unicode scripts?
Sadeq
On Mon, 08 Nov 2004 13:49:32 +1300, Noodles [EMAIL PROTECTED] wrote:
Curt Zirzow wrote:
* Thus wrote robert mena:
Hi,
I need to improve my current search mecanism but got stuck in a
dilema : build one or use an existing
I believe swish-e does Unicode, but I'm not 100% sure
Nick
-Original Message-
From: Sadeq Naqashzade [mailto:[EMAIL PROTECTED]
Sent: Monday, 8 November 2004 2:57 p.m.
To: Noodles
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Search engine : build a new one or use an alreadry
existing one ?
Hi,
What search engine script you recommend to use for my Unicode web site
(English/Persian/Arabic at least) ?. It must able crawel my html files
too. and I prefer to able index my database driven pages too.
- Sadeq
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
using apache 2, mysql 5.0.1 rpm install, php 5.0.2
i want to install php with both mysql and mysqli support. but everytime i get
this error. help please.
configure command
==
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr
* Thus wrote Michelle Konzack:
Hello,
Whats going on with the ListServer of php.net ?
For every Message I send I get an error Message...
But the E-Mails was correctly delivered...
This is rather new.. I'm looking into why this is occuring.
Curt
--
Quoth the Raven, Nevermore.
--
Hi,
I need to make a function that will execute automatically at some regular
intervals.
Is it possible? If yes, can any give me some hint how can I make such thing?
Thanks.
Kevin.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sunday, November 07, 2004, at 09:38PM, Kevin Javia [EMAIL PROTECTED] wrote:
Hi,
I need to make a function that will execute automatically at some regular
intervals.
Is it possible? If yes, can any give me some hint how can I make such thing?
Thanks.
Kevin.
I presume you're talking about
Execute the script with a cron'd event. (assuming this is nix based)
If its not, I am pretty sure there is a similar system for windows.
-Original Message-
From: Kevin Javia [mailto:[EMAIL PROTECTED]
Sent: November 7, 2004 22:28
To: [EMAIL PROTECTED]
Subject: [PHP] Automatic Execution
Yes, you could very easily create a Windows Scheduled Task to call php.exe
with the path to the script you write.
-M
-Original Message-
From: Matthew Davey [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 07, 2004 10:50 PM
To: 'Kevin Javia'
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP]
Noodles wrote:
John Nichel wrote:
If Debian is like Red Hat, you will also need to install some type of
development package for aspell (aspell-devel in Red Hat), or install
from source so that the headers are present on your system. You may
also need to point the php configure script to the
John Nichel wrote:
Well, the header file is in /usr/include, so try
./configure --with-pspell=/usr
Still the same message =/
I tried it with --with-pspell=/usr and then --with-pspell=/usr/include
but no luck
Nick
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
.You upgrade MySQL from 4.0.x to 4.1.x and you get excited because now you
can include subselects in your pages.
Much warmth,
Murray
http://www.planetthoughtful.org
Building a thoughtful planet,
One quirky comment at a time.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
I have a class called FrontEnd which extends a TemplateManager class.
The purpose of the TemplateManager class is to initate Smarty.
So my FrontEnd constructor looks like this:
function FrontEnd()
{
$db = new DatabaseConnection();
$this-db = $db-initDatabase();
$this-sm =
You've just hijacked this thread.
Please start a new message instead of replying to a message and
changing the subject to talk about something else.\
Hi Curt,
It would have been helpful if you'd included a little of the post you are
concerned about. The last reply I have in this thread
Murray @ PlanetThoughtful wrote:
.You upgrade MySQL from 4.0.x to 4.1.x and you get excited because now you
can include subselects in your pages.
You know you're a geek when you know which list deals with which top
and when you know that subselects in mysql is not much faster than the
nested
On Sunday, November 07, 2004, at 10:38PM, raditha dissanayake [EMAIL
PROTECTED] wrote:
Murray @ PlanetThoughtful wrote:
.You upgrade MySQL from 4.0.x to 4.1.x and you get excited because now you
can include subselects in your pages.
You know you're a geek when you know which list deals
Hi,
Please visit
http://www.phpcertification.com/manual.php/functions.arguments.html#func
tions.arguments.by-reference
Hope it will be helpful.
zareef Ahmed
-Original Message-
From: Jonathan Chum [mailto:[EMAIL PROTECTED]
Sent: Monday, November 08, 2004 9:52 AM
To: [EMAIL
Ryan King wrote:
On Sunday, November 07, 2004, at 10:38PM, raditha dissanayake [EMAIL
PROTECTED] wrote:
Murray @ PlanetThoughtful wrote:
.You upgrade MySQL from 4.0.x to 4.1.x and you get excited because now you
can include subselects in your pages.
You know you're a geek when you
Awesome, great tip. It works just fine in PHP 5, but after gooogling more
information about references and values, it appears that PHP 5 supports
references automatically.
I was trying to get it to work under 4.3.8 which I had to use the .
For anyone else, this page goes into more depth:
Try using the $_POST.
Reference:
http://www.php.net/language.variables.predefined
Respectfully,
Ligaya Turmelle
Christian Ista wrote:
Hello,
In a PHP page I use a form with POST method.
I'd like in the action page recover all the variable posted. Could you tell
me how to do that ?
Thanks,
I'd like to use sessions, but implement a bit of security. As of v4.3, I
have the ability to ini_set an option called session.use_only_cookies that
will limit sessions to those situations where cookies are enabled, so SID
won't automatically be placed in a URL.
What I'm wondering is, is there
--- Don [EMAIL PROTECTED] wrote:
What I'm wondering is, is there a test that will tell me a visitor
has blocked cookies, so I can suppress any actions specific to a
session?
I have some example code here:
http://shiflett.org/books/http-developers-handbook/code
It mostly demonstrates HTTP
On Monday 08 November 2004 01:19, Noodles wrote:
John Nichel wrote:
If Debian is like Red Hat, you will also need to install some type of
development package for aspell (aspell-devel in Red Hat), or install
from source so that the headers are present on your system. You may
also need to
Hi to all
My problem is that i want to create one regular expression which can fatch this
image tag from my site
img src=\https://abc.com/first.php?
site_id=abcaid=keyinlid=keyinref=q=\ width=\1\ height=\1\;
?php
$value = print_links(http://www.mysite.com;);
function print_links($url)
{
Jason Wong wrote:
--with-pspell=/usr is what you want.
I tried this and it still didn't help things
Execute:
find / -name '*[a|p]spell*' | sort | less
and see if 'aspell.h'/'pspell.h' and 'libaspell.so'/'libpspell.so' are in
there somewhere.
I have:
/usr/include/aspell.h
Hello,
Here is page that shows phpinfo() in my webserver.
http://www.webyog.com/indexsam.php
As I can see, the configure command has '--enable-safe-mode' but in the PHP
core configuration - safe_mode is set to off.
The max_execution_time is given to be 30 by default, but in my PHP i have
set
These MIGHT work... I don't know though (not too good with regex).
img.+src=\(.+)\.+
a.+href=\(.+)\.+
Nate
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 07, 2004 10:29 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Pb'lm of Regular Expression
Hi
89 matches
Mail list logo