[repost, not sure if it worked last time]
If I want to prevent a method from being called statically in PHP4, how can
I do it? So far I've tried these techniques:
Anotstatic = true;
}
function dynamic() {
if (!isset($this) or !is_a($this, 'A') or !(isset($this->Anotstatic) and
$this->Anot
What command in php? can i convert certain text ex the
[EMAIL PROTECTED] to [EMAIL PROTECTED]
--
Louie Miranda
http://www.axishift.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm writing a simple search script in PHP and wasn't sure whether the best
way to search for the records in MySQL was this way...
SELECT * FROM db WHERE field1 LIKE "var%" OR field2 LIKE "var%" ...
...or would it be faster and more efficient to use fulltext indexes with
MATCH() and AGAINST()? I
Hello,
I have an email string that sometimes has a name and the email address
between <> and sometimes has the email adress right away.
Two examples of the possible value of $address
Joe Doe <[EMAIL PROTECTED]>
[EMAIL PROTECTED]
I need to convert this string always to the email address and disc
How can I create word document with table in php. I need insert some
data from php script to the word document but i need inserted this data
to the table.
Thank you
roman
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
C.F. Scheidecker Antunes wrote:
Hello,
I have an email string that sometimes has a name and the email address
between <> and sometimes has the email adress right away.
Two examples of the possible value of $address
Joe Doe <[EMAIL PROTECTED]> [EMAIL PROTECTED]
Off the top of my head - have you
On Thu, 22 Jul 2004 12:05, Bruce wrote:
> ok...
>
> if i simply use the shell commands "exec/system/passthru" without
> specifying a dir, ie exec("ls"), then it works. however, if i specify
> "exec('ls /foo')" where foo is another dir, then i don't get a response.
> is there someplace where i can
On Thu, 22 Jul 2004 05:50, Msa wrote:
> aaah, simple for you..
>
> I have to fit that line into the following:
>
> $colauthor_rsResults = "0";
> if (isset($_GET['Author'])) {
> $colauthor_rsResults = (get_magic_quotes_gpc()) ? $_GET['Author'] :
> addslashes($_GET['Author']);
> }
>
> and don't
At 2:18 AM -0600 7/22/04, C.F. Scheidecker Antunes wrote:
Hello,
I have an email string that sometimes has a name and the email
address between <> and sometimes has the email adress right away.
Two examples of the possible value of $address
Joe Doe <[EMAIL PROTECTED]> [EMAIL PROTECTED]
I need to
Roman Duriancik wrote:
How can I create word document with table in php. I need insert some
data from php script to the word document but i need inserted this data
to the table.
Thank you
roman
Create a html file, give it .doc extension and serve it as a word file.
I hope you know how to create
On Thu, 22 Jul 2004 17:44, Monty wrote:
> I'm writing a simple search script in PHP and wasn't sure whether the best
> way to search for the records in MySQL was this way...
>
> SELECT * FROM db WHERE field1 LIKE "var%" OR field2 LIKE "var%" ...
>
> ...or would it be faster and more efficient
Is the compiler cache a function of the my web host or my code?
You can cache the PHP bytecode on the server (which is more what I meant
originally), and you can also cache in your code. For an easy example of
caching with your code you could check out PEAR's package Cache_lite.
--
PHP General
Thanks Torsten.
I basically deleted the HTACCESS files and then put them back with an added
entry but the host in question hasn't got a clue about technical support so
I'm using another host.
Their loss.
--
-
Michael Mason
Arras People
www.arraspeople.co.uk
--
Hey guys, I'm getting some unexpected results when trying to use ArrayIterator -
but since it's undocumented this might be correct. When I use a
DirectoryIterator to traverse a directory I can't seem to create an array
containing all of the directory elements. I've tried using references as we
See:
http://www.php.net/manual/en/language.oop5.reflection.php
Curt
Oops, hadn't seen that yet. Great!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
"Harlequin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Thanks Torsten.
>
> I basically deleted the HTACCESS files and then put them back with an
added
> entry but the host in question hasn't got a clue about technical support
so
> I'm using another host.
>
> Their loss.
That's t
hello,
i faced a small problem i have a perl script but i want to execute that
in a php script. unfortunately i cannot convert to php.
please advice.
regards
Tassos
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The easiest way I can think of to prevent static method calls is to use the
$this pseudo variable in your method. A method *cannot* be used statically if
the method requires use of $this.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PHP is more of a "binding" language that takes advantage of many different
coding practices and puts them together. PHP is not jealous and does not
separate or shun itself from other languages and borrows many of the ideas,
schemes, similar libraries, etc. from these other languages. And yet, it is
On Thursday 22 July 2004 16:09, Louie Miranda wrote:
> What command in php? can i convert certain text ex the
> [EMAIL PROTECTED] to [EMAIL PROTECTED]
If this is to protect people's email addresses then make it easy on yourself
and just discard the whole domain.
--
Jason Wong -> Gremlins Assoc
"Tassos T" <[EMAIL PROTECTED]> ???/ ? ?:
news:[EMAIL PROTECTED]
> hello,
>
> i faced a small problem i have a perl script but i want to execute that
> in a php script. unfortunately i cannot convert to php.
i think it is inpossible :-(
--
PHP General Mailing List (h
on 22/7/04 10:49, Jason Barnett at [EMAIL PROTECTED] wrote:
> The easiest way I can think of to prevent static method calls is to use the
> $this pseudo variable in your method. A method *cannot* be used statically if
> the method requires use of $this.
Unfortunately that doesn't work - it is ex
on 22/7/04 10:42, Tassos T at [EMAIL PROTECTED] wrote:
> i faced a small problem i have a perl script but i want to execute that
> in a php script. unfortunately i cannot convert to php.
No problem, look at:
http://uk2.php.net/manual/en/function.system.php
http://uk2.php.net/manual/en/function.e
Tassos T wrote:
i faced a small problem i have a perl script but i want to execute that
in a php script. unfortunately i cannot convert to php.
virtual()
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.c
If you need a copy of an object (like the default in PHP4), you can explicitly
do that with clone.
$cErrorHandler = new testErrors();
$clone = clone $cErrorHandler;
If you do this you shouldn't need zend engine 1 compatibility (unless you need
that for other reasons).
--
PHP General Mailing Lis
"End of the commercial break, we're going back to the news headlines"
But hey, what to expect on a PHP list, right?
Well, at least a story that makes sense.
This is crap, so to speak. Syed, I suggest you should search on Google
(for example, search for "PHP vs Perl" on groups) and see what people
Please, keep the discusion on the list.
[EMAIL PROTECTED] wrote:
Thank you for your answer but thsi file isn't orignal word document. I need
insert table to existing word document.
Then you need to use COM functions.
Roman Duriancik wrote:
How can I create word document with table in php. I need i
Give us the exact error as it is displayed in your browser. Also did you try to
print_r on every Add as was suggested to you earlier?
To be honest, I'm starting to wonder if we haven't stumbled on a bug. I have
had similar problems (in an entirely different context) and improper cloning may
b
Hmmm... this may be difficult to implement. For simple include/require trees it
could be done quite easily... but __autoload opens up a whole other bag of
worms. But now that I think of it I suppose you could create Reflections and
get the location of class defintions from that. This might fi
Jason,
I need it for other reasons. This is not a new application that is causing
this. It was built on PHP 4 and therefore has lots of non PHP 5 elements.
So I'm pretty sure I need than on, unless someone has another idea...
Thanks,
Jules...
"Jason Barnett" <[EMAIL PROTECTED]> wrote in message
Use eregi_replace to match the text between the @ and the "." and replace it
with the text you want. You'll have to use pattern matching which can be
tricky, but its more than possible.
Jules...
http://nl.php.net/manual/en/function.eregi-replace.php
"Louie Miranda" <[EMAIL PROTECTED]> wrote in m
I never tried but i think it is possible using the pecl extension:
http://pecl.php.net/package/perl
Tassos T wrote:
hello,
i faced a small problem i have a perl script but i want to execute
that in a php script. unfortunately i cannot convert to php.
please advice.
regards
Tassos
--
PHP General
Hi,
thanks for the help. I had removed the ";" but had not moved the
libmysql.dll to the C:\windows\system32 directory. Also found in the manual
that MySQL is not "included by default" in MySQL 5.0.0 and hence you need to
include the extension.
All working hunky dory now.
thanks again to those
--- raditha dissanayake <[EMAIL PROTECTED]> wrote:
> PHP Gen wrote:
>
> >>how about using SSH tunneling instead.
> >>
> >>
> >
> >Never tried it, any examples for a win2k pro
> machine?
> >
> >
> There are some tutorials on this topic search term
> may be 'ssh tunnel
> howto' you do need
Jules wrote:
Jason,
I need it for other reasons. This is not a new application that is causing
this. It was built on PHP 4 and therefore has lots of non PHP 5 elements.
So I'm pretty sure I need than on, unless someone has another idea...
Thanks,
Jules...
Not sure what all your classes do, but here
> I never tried but i think it is possible using the pecl extension:
>
> http://pecl.php.net/package/perl
Here is a short tutorial
http://www.zend.com/php5/articles/php5-perl.php?print=1
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have decided to look for an alternative to file_exists() because it is
taking too long. Is fopen() a good alternative or what?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
regarding spamcease, what i had suspected appears to be the case. it appears
that this is an app of some sort, looking for emails, or it's just a badly
written/f*ed up app...
i got a msg stating that "i" had signed up, using my email address, stating
that i should enter my information, etc... i've
> I have decided to look for an alternative to file_exists() because it is
> taking too long. Is fopen() a good alternative or what?
maybe stat()
http://us4.php.net/manual/en/function.stat.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Tassos,
just what are you trying to do? if you're trying to run a perl app from a
commandline php function, that's one thing. if you're trying to create a
php/web based app, and you want to run an existing perl app that's sitting
on your server, that's another.
either way, it's possible/reasonabl
Quoting bruce <[EMAIL PROTECTED]>:
> i got a msg stating that "i" had signed up, using my email address,
> stating that i should enter my information, etc... i've never signed
> up...
> as i stated before... if you get the msgs.. just delete and keep going...
To me it seems like a company maki
I have 2 text files
One has arp list
IP Address MAC Address Type
-- --
165.166.182.204 00:0a:04:98:b5:d3 dynamic
One file has a mac list
Modem MAC Address IP Address
Hi all--
I subscribed to this list because I have an interest in PHP, but am more of
a dabbler than an actual programmer; in other words, I never thought I
would be posting a question to the list. So, the following is a problem I
send on behalf of one of the programmers in my group, who is relat
"Alantodd" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have 2 text files
>
>
>
> One has arp list
>
>
>
> IP Address MAC Address Type
>
> -- --
>
> 165.166.182.204 00:0a:04:98:b5:d3
On Thursday 22 July 2004 10:23 am, Tobias Brasier wrote:
> The problem is that when I run the page, the log files show that the page
> was accessed twice.
I would be looking for calls to the header() function or a meta refresh tag in
the header of this program. Maybe there is an include() file th
"Tobias Brasier" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi all--
>
> I subscribed to this list because I have an interest in PHP, but am more
of
> a dabbler than an actual programmer; in other words, I never thought I
> would be posting a question to the list. So, the followi
Matt M. wrote:
I never tried but i think it is possible using the pecl extension:
http://pecl.php.net/package/perl
Here is a short tutorial
http://www.zend.com/php5/articles/php5-perl.php?print=1
Hey thanks that looks very interesting indeed.
--
Raditha Dissanayake.
---
Tobias Brasier wrote:
> I have recently noticed a problem with our code or our webserver
> (Apache) when I execute a .php file. I have taken all php code out,
> but within an html tag, I use background="#", which is used for
> older browsers such as Netscape 4.7 if you have a background color or
Tobias Brasier wrote:
I have recently noticed a problem with our code or our webserver
(Apache) when I execute a .php file. I have taken all php code out,
but within an html tag, I use background="#", which is used for
older browsers such as Netscape 4.7 if you have a background color or
imag
I tried posting this to php-win a while back with no result so forgive the duplication.
Under IIS6 (Windows 2003) you 'register' the file extensions in the web extensions
manager which /appears/ to preclude running different binaries for PHP with the
same file extension.
Example 1:
Sitephp
> If anyone knows how to setup IIS6 to allow the same .php extension to be used
> with dedicated copies of php.exe + ini files I would really appreciate the
> assistance. Maybe some clue I am missing about the behavior of the web extensions
> manager or a method of defeating it?
Have you tried a
- Original Message -
From: "Matt M." <[EMAIL PROTECTED]>
To: "Petar [Lists]" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, July 22, 2004 11:28 PM
Subject: Re: [PHP] mutiple copies of php with windows iis6
> > If anyone knows how to setup IIS6 to allow the same .php extensi
Hi,
i'm working with PHP 5.0.0 (Linux) and have some trouble using function sin().
In PHPs opinion
sin(20)
is
0.912945250728
I have had a look at the bug.php.net, but couldn`t find anything. Is it a bug
or am I just misunderstanding something??
Marcus
--
PHP General Mailing List (http:/
Hi,
thanks for your comment. Right, and similarly, it struck me that in case
there are variable-names in the path, like in
require_once $my_lib_dir . "some_funcs.php";
the variable $my_lib_dir could only be known at run-time and not by any
simple script just scanning the source.
Still, it would
It's giving you sin(20) in radians, not in degrees (which is what you
seem to want). It's not a bug.
On Thu, 22 Jul 2004 12:17:19 -0400, Ashwin Purohit <[EMAIL PROTECTED]> wrote:
> It's giving you sin(20) in radians, not in degrees (which is what you
> seem to want). It's not a bug.
>
>
>
> On
If you want it in degrees, use sin(deg2rad(20);
> On Thu, 22 Jul 2004 12:17:19 -0400, Ashwin Purohit <[EMAIL PROTECTED]> wrote:
> > It's giving you sin(20) in radians, not in degrees (which is what you
> > seem to want). It's not a bug.
>>
> > On Thu, 22 Jul 2004 17:40:21 +0200, Marcus Strube <[EM
Thanks a lot. I've overseen a word in the manual. Now i got it.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, 22 Jul 2004 11:26:44 +0100, Marcus Bointon
<[EMAIL PROTECTED]> wrote:
> on 22/7/04 10:49, Jason Barnett at [EMAIL PROTECTED] wrote:
>
> > The easiest way I can think of to prevent static method calls is to use the
> > $this pseudo variable in your method. A method *cannot* be used statica
Here's the deal, if your PHP install is --enable-sigchild, pclose() and
proc_close() do NOT return a proper exit status code.
http://bugs.php.net/bug.php?id=29123
Currently illia at PHP.net are saying this WILL NOT be fixed until PHP
5.1 or so. Personally, I think this is bogus and SHOULD BE FI
On Thu, 22 Jul 2004 13:31:20 +0200 (CEST), Jurgen Stroo
<[EMAIL PROTECTED]> wrote:
> "End of the commercial break, we're going back to the news headlines"
>
> But hey, what to expect on a PHP list, right?
> Well, at least a story that makes sense.
>
> This is crap, so to speak. Syed, I suggest yo
I would like to think that someone has found a semi-elegant way around
this, since this bug has existed for so long:
http://bugs.php.net/bug.php?id=14182
addendum: That was the first instance of this bug 3 years ago, which I
guess was fixed in that version tree. The following bug is where I
n
On 22 July 2004 07:50, Five wrote:
> > Sounds like an old bug in PHP. What version are you using?
>
> I've been trying to get it to work at:
> http://members.lycos.co.uk/primeooze/info.php
According to this phpinfo(), that site has session.use_cookies=On and
session.use_trans_sid=Off. This mea
Youll find knowing both languages will be handy in development. Im
not a huge fan of having to program in perl, however, at times, its
far easier to use perl than any other language. An example of that,
would be to create a small server client program that possibly parses
or extrapolates data fro
I have ran into a rather interesting problem while zlib or gzip compression
is enabled on my site. I have an external javascript-php file (a javascript
file that is dynamically generated as in filename.js.php) which is included
in the main template using the element (for example