Quoting Manuel Lemos <[EMAIL PROTECTED]>:
> You may just need to tune qmail to maximize the number of simultaneous deliveries
> according to the available bandwidth.
How do I tune qmail in that manner ? If the answer is too long and complicated, pls
flame me softly as this is already OT.
> Fo
Hi!
How can I make a code into html format like this
Shi MuQi
> instead of the POSIX regexp, tr using PERL style RegExps
> (www.php.net/pcre) Once you've done that, you can add the pattern modifier
> 'm' to allow multilines .
i think im lost now. i had a look at the site but im not sure what im
looking at. any chance u could make a mock script up so i can
Hi,
I'm trying to find how to execute a shell command in a php script, I
meen I would like for example to stop services like ssh or others in
/etc/init.d with command stop and start it again.
I've tried some commands without success, and I've missed something like
script owner or group. I really
Champinoamn wrote:
hi everyone,
im fairly new to php scripting and was having trouble grabing information
from a website.
i have been able to grab information that is in amongst other text (for
example, the word firemaking below)
---
Firemaking
7,386
61
333,575
---
but the number i wa
hi everyone,
im fairly new to php scripting and was having trouble grabing information
from a website.
i have been able to grab information that is in amongst other text (for
example, the word firemaking below)
---
Firemaking
7,386
61
333,575
---
but the number i want to grab is the
Vincent Fonteneau wrote:
Hi,
I'm trying to find how to execute a shell command in a php script, I
meen I would like for example to stop services like ssh or others in
/etc/init.d with command stop and start it again.
I've tried some commands without success, and I've missed something like
script ow
where abouts am i putting the modifier 'm' in the expression to allow the
multilines?
"Champinoman" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
>> instead of the POSIX regexp, tr using PERL style RegExps
>> (www.php.net/pcre) Once you've done that, you can add the pattern
>>
>From http://gnosis.cx/publish/programming/regular_expressions.html:
"Sometimes you have a programming problem and it seems like the best
solution is to use regular expressions; now you have two problems."
To me regular expressions are some kind of black art, I've been programming
for 20 years an
Hi.
Any one could tell me about how to implement VeriSign Payment
Gateway.
I mean I want to know how to implement the AVS and CSC filter settings
in test mode and how to convert them in to live mode. Its Very Important
Thanks in advance...
--
PHP General Mailing List (http://www
so does this look right:
eregi
("username=champinoman&category=13.*align=\"right\">(.*)"m,$line,$out))
is that where i am ment to put the 'm' modifier? or am i still off on the
wrong track?
"Graham Cossey" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> From http://gnosis.cx/
I thought I clearly stated that for the m modifier you need to use PCRE
functions!
eg:
preg_match('/username=champinoman&category=13.*align="right">(.*)/mi',
$text, $out);
Champinoman wrote:
so does this look right:
eregi
("username=champinoman&category=13.*align=\"right\">(.*)"m,$line,$out))
ugh, obviously I'm a bad typer :) The code should be:
preg_match('#username=champinoman&category=13.*align="right">(.*)#mi',
$text, $out);
Or using any other patterndelimiter... ;)
M. Sokolewicz wrote:
I thought I clearly stated that for the m modifier you need to use PCRE
functions!
eg:
preg_m
- Original Message -
From: "Sethi, Samir (IDS DM&DS)" <[EMAIL PROTECTED]>
To: "Victor Alvarez" <[EMAIL PROTECTED]>
Sent: Monday, September 27, 2004 5:47 PM
Subject: RE: [PHP] how to execute a remote command from php
Exactly, I had to generate keys for nobody and now I am able to execut
"Raditha Dissanayake" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
> Ricardo Cezar wrote:
>
> >Hello all,
> >
> >I want to put a instant messenger in a website. People connect to this
> >website to stay in touch with each other. There is a photo album for
> >everyone, a Forum, g
Use jabber.
They had a web interface over a year ago, and it can be tweaked to
operate with or without a locked down registration form.
I had some scripts at my old job to handle just this very thing, but
alas I did not get a chance to copy them before I left. It's pretty
straight forward and
* and then Marek Kilimajer declared
> >oookay... i think i understand the page, but how would i imlement that
>
> $fp = fsockopen ("proxy.server.net", 8080, $errno, $errstr, 30);
> if (!$fp) {
> echo "$errstr ($errno)\n";
> } else {
> fputs ($fp, "OPTIONS * HTTP/1.0\r\nMax-Forwards: 0
On Tuesday 28 September 2004 12:40, [EMAIL PROTECTED] wrote:
> How can I make a code into html format like this
You can have a look at the highlight_file() function.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Intern
Stupid me completely forgot about the socket functions in PHP. Again, that's
what I get for having too little coffee last night.
Thanks for the help everyone.
- Original Message -
From: "Chris Shiflett" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, Septem
suneel wrote:
Hi.
Any one could tell me about how to implement VeriSign Payment
Gateway.
I mean I want to know how to implement the AVS and CSC filter settings
in test mode and how to convert them in to live mode. Its Very Important
Thanks in advance...
http://www.php.net/manual/en/
i said i was learning this and didnt really understand it.
so going by what has been said i have come up with the following but
still doesnt want to work.
heres what i have:
http://hiscore.runescape.com/aff/runescape/hiscorepersonal.cgi?username=champinoman","r";);
$line = fgets ($file, 1024)
fgets() will read in from file until end of line or end of file up to the No
bytes given.
Is there an end of line between the "username=chapinoman" and the "70,277" ?
If there is a line break then $line will never contain both strings.
You may need to use fread() instead.
HTH
Graham
-Ori
Anyone with hands on PHP frameworks?
I tried Mojavi, BlueShoes, GPF, PHP-MVC, and alot of more ( alot of
them are available)
I need the answer from an experienced programmer( not a php newbie )
rather an application designer or a windows-dna programmer who is into
php.
I have some sort of unders
I just switched hosts and I am now working on all the stuff that once
worked but now doesn't. I have an image upload script with the
following code:
?method=upload&id='>
On Tue, 28 Sep 2004 14:54:24 +0800, Roger Thomas <[EMAIL PROTECTED]> wrote:
> Quoting Manuel Lemos <[EMAIL PROTECTED]>:
> > For this reason, during deliveries of messages to many recipients, it is better to
> > pause once in a while to let the queue be fully processed and do not stall other
> > p
Hi!
I need make a cron file, for example a .job file:
#mi hodimeseq jobcomment
45 11** 0-5 php -q /home/test/test.php # Make backup
How can make it?.
Regards.
JP
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
[snip]
I need make a cron file, for example a .job file:
#mi hodimeseq jobcomment
45 11** 0-5 php -q /home/test/test.php # Make backup
How can make it?.
[/snip]
Type crontab -e and the cron file will be openedunless you're on a
Wind
Jay Blanchard wrote:
[snip]
I need make a cron file, for example a .job file:
#mi hodimeseq jobcomment
45 11** 0-5 php -q /home/test/test.php # Make backup
How can make it?.
[/snip]
Type crontab -e and the cron file will be openedunl
Hi,
I have a field in the db called
join_date_time(timestamp 14)
which has data like:
20040928170708
20040916163619
etc
This keeps track of the customer join date, I need to
know if the client has joined in the last 24hrs or
more than 24hrs back...
Anybody have a function for this? or can he
[snip]
data like:
20040928170708
20040916163619
etc
Anybody have a function for this? or can help? am a
bit confused because reading on google I see that
there are 2 possible problems as MySql has its own
time and PHP its own time (most of the time!)
[/snip]
http://www.php.net/date
http://ww
Juan Pablo Herrera wrote:
Hi!
I need make a cron file, for example a .job file:
#mi hodimeseq jobcomment
45 11** 0-5 php -q /home/test/test.php # Make backup
How can make it?.
How about asking on the proper list? Or Google?
Do we now ad
[snip]
Juan Pablo Herrera wrote:
> Hi!
> I need make a cron file, for example a .job file:
> #mi hodimeseq jobcomment
> 45 11** 0-5 php -q /home/test/test.php # Make
backup
> How can make it?.
How about asking on the proper list? Or Go
Jay Blanchard wrote:
At least he is CRON'ing a php script
Well, we can't have that. Maybe we can talk the OP to change his
question...maybe he can ask how to set up a cron to sync his system
clock with a time server. ;)
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
P
I do not understand what is the problem, you just add the
the time format as should be and put the following at the beginning of
your script:
#!/usr/local/bin/php -q (or your path to the php interpreter)
then you simply add the line (crontab -e)
0 3 * * * /area_backup/bin/sync.php [args]
hope i
-- Forwarded message --
From: BonusMail from MyPoints <[EMAIL PROTECTED]>
Date: Mon, 27 Sep 2004 11:24:19 -0600
Subject: [SPAM] Plan Ahead. Shop For Life Insuranc
To: [EMAIL PROTECTED]
Justin, your current
Point balance is
4,565
Quotes based on a composit
Juan,
Are you trying to do so from inside a PHP script?
If that is the case, you could do:
$entry = "$min $h $d $m $s $command $comment";
$added = system ("echo $entry >>
/var/spool/cron/tabs/$user", $retval);
if ($retval) {
echo "success";
} else {
echo "failure";
}
Please notice th
Justin Patrin wrote:
-- Forwarded message --
From: BonusMail from MyPoints <[EMAIL PROTECTED]>
Date: Mon, 27 Sep 2004 11:24:19 -0600
Subject: [SPAM] Plan Ahead. Shop For Life Insuranc
To: [EMAIL PROTECTED]
Why?
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
There's also a pear package that might help you:
http://pear.php.net/package/Text_Highlighter
Cheers
Chris
Jason Wong wrote:
> On Tuesday 28 September 2004 12:40, [EMAIL PROTECTED] wrote:
>
>
>>How can I make a code into html format like this
>
>
> You can have a look at the highlight_file(
Just select out records that are NOW() - (24 * 60 * 60)or if you use
datetime field instead of timestamp, which is prolly better off ofr many
reasons, use DATE_SUB(NOW(), INTERVAL 1 DAY) or something similar. you
can get timestamps from datetime fields, if that is an issue for you...
Jason
M
Hi,
Thanks for replying.
> Just select out records that are NOW() - (24 * 60 *
> 60)
I just need this for 1 record, when the user logs in I
want to know if he has joined more than 1 day back or
not...
I am looking into php.net/date and php.net/time, but
if have an example for me...:-)
Tha
sorry, my cuestion is about the construction of the job file with php.
I send parameters via POST: day, hours, minute, sentence for execuite with
cron. This is cached for a php file that make the job file. Well, my
problem is make this php file.I think to use file() for this, but maybe somebody thi
Hi,
I've an Apple G5 Xserve with MacOsX server 10.3 (Darwin 7.3.1)
and PHP 4.3.2 and I need to run a PHP script containing this line:
Linux: $temp=shell_exec("date 01/01/2004 +%a");
Mac: $temp=shell_exec("date 010104 +%a");
(man date says me how to write correctly date string in bot
hi everyone,
I have a simplified bit of code below:
What i'd like to do is have a count inside that loop that will trigger
some action every 20 iterations of the foreach. Like this:
How might i do that?
Much thanks...
--
Nick W
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
Nick Wilson wrote:
hi everyone,
I have a simplified bit of code below:
What i'd like to do is have a count inside that loop that will trigger
some action every 20 iterations of the foreach. Like this:
How might i do that?
Much thanks...
$count = 0;
foreach ( $someArray as $someVal ) {
i
[snip]
I have a simplified bit of code below:
What i'd like to do is have a count inside that loop that will trigger
some action every 20 iterations of the foreach. Like this:
[/snip]
if ($count%20 == 0)
http://ca3.php.net/manual/en/language.operators.arithmetic.php in the
manual (look for Mod
% operator: http://www.php.net/operators
Nick Wilson wrote:
hi everyone,
I have a simplified bit of code below:
What i'd like to do is have a count inside that loop that will trigger
some action every 20 iterations of the foreach. Like this:
How might i do that?
Much thanks...
--
PHP General Ma
[snip]
What i'd like to do is have a count inside that loop that will trigger
some action every 20 iterations of the foreach. Like this:
How might i do that?
[/snip]
With modulus
...http://us2.php.net/manual/en/language.operators.arithmetic.php
--
PHP General Mailing List (http://www.php.net/
Reading the man page on a Mac it says that you are trying to set the
system date if you provide a date, which you need to be root to be able
to do. If you just run your command in the shell, you'll see that you
get an operation not permitted error. Using the -r switch you can
provide the second
* and then Pablo Gosse declared
> if ($count%20 == 0)
>
> http://ca3.php.net/manual/en/language.operators.arithmetic.php in the
> manual (look for Modulus).
Yes, thankyou very much, got a bunch of similar replys in my personal
inbox to ;-) And there was me sifting through the math functions!
* and then Marek Kilimajer declared
> % operator: http://www.php.net/operators
Thanks EVERYONE, i feel like i should have known that, but i didnt, my
thanks! - and the guy that suggested the other way? that was how i was
trying to do it ;-)
--
Nick W
--
PHP General Mailing List (http://w
How might i do that?
Something like that.
Justin
Much thanks...
--
Nick W
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Nick Wilson wrote:
hi everyone,
I have a simplified bit of code below:
What i'd like to do is have a count inside that loop that will trigger
some action every 20 iterations of the foreach. Like this:
How might i do that?
if($count % 20 == 0 ) {
Janet
--
Janet Valade -- janet.valade.com
--
--sorry if you get this twice...it didn't seem to go through the first time--
I just switched hosts and I am now working on all the stuff that once
worked but now doesn't. I have an image upload script with the
following code:
?method=upload&id='>
I see lots of references to modulus, which works fantastic.. but how
abut just testing if its equal to 20, then there isnt that extra
arthmitc call.. this is just another way to do the same thing.. take
your pick.. unless someone can see a bad reason for this method.
$count = 0;
foreach . {
* and then Jesse Castro declared
> [snip]
> $count=0;
> foreach($someArray as $someVal) {
> if($count is divisible by 20 exactly) {
> // do some stuff
> }
> //do some stuff
> }
> ?>
> [/snip]
>
> if($count is divisible by 20 exactly)
> Can be written as
> If ($count
Hi all.
It took me some time to discover that you can't use a "MATCH | AGAINST"
statement unless you create an fulltext index of the fields to search at the
same time. Strange, I know.
What's more strange is that as I read more I wonder why people use it
because it will only seartch complete w
So I understand, correct me if i am wrong, that your problem is just to
append a line to the file ?
if that is the case:
//open and place pointer at the end of the file
$fhandler = fopen("file",'a');
fputs($fhandler,$string_with_code);
fclose($fhandler);
if not, the case and you are h
Is there a way to get __call to work for static methods? It doesn't
seem to work by default and the docs are pretty sparse.
Thanks,
-Jackson
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
I know this post is lengthy and I apologise for putting you to sleep but
I'd
really love to get to the bottom of this one sometime soon. Has anyone
else
experienced similar frustrations searching their databases - I can't be
the
only one...!
[/snip]
What you are dealing with here, Michae
[snip]
Is there a way to get __call to work for static methods? It doesn't
seem to work by default and the docs are pretty sparse.
[/snip]
http://us4.php.net/manual/en/language.oop5.static.php may help.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/
[snip]
Is there a way to get __call to work for static methods? It doesn't
seem to work by default and the docs are pretty sparse.
[/snip]
Found a little more info
http://us4.php.net/manual/en/language.oop5.overloading.php
x;
}
}
$foo = new Caller();
$a = $foo->test(1, "2", 3.4, true);
var_du
The URL that you're grabbing there is a frameset, it's probably not the
page you want to look at.
When you right-click on the page you want to parse and select "View
Source" and get the information you posted below, do the same thing but
right-click and select "Properties" (in IE at least) and it'
* and then Jason Davidson declared
> I see lots of references to modulus, which works fantastic.. but how
> abut just testing if its equal to 20, then there isnt that extra
> arthmitc call.. this is just another way to do the same thing.. take
> your pick.. unless someone can see a bad reason
On Tue, 28 Sep 2004 10:45:19 -0700, Jason Davidson <[EMAIL PROTECTED]> wrote:
> I see lots of references to modulus, which works fantastic.. but how
> abut just testing if its equal to 20, then there isnt that extra
> arthmitc call.. this is just another way to do the same thing.. take
> your pick.
Hello there,
PHP set up as CGI (either with binfmt and suEXEC or via suPHP) can
expose your system to a denial of service attack. Even a very simple
page like
can bog down a server completely if the reload button on the browser is
pressed continously for some seconds. I already tried the RMax
Hmm don't see clearly how could work for static methods :P
On Tue, Sep 28, 2004 at 01:39:46PM -0500, Jay Blanchard wrote:
> [snip]
> Is there a way to get __call to work for static methods? It doesn't
> seem to work by default and the docs are pretty sparse.
> [/snip]
>
> Found a little more inf
Andrew Kreps wrote:
On Tue, 28 Sep 2004 10:45:19 -0700, Jason Davidson <[EMAIL PROTECTED]> wrote:
I see lots of references to modulus, which works fantastic.. but how
abut just testing if its equal to 20, then there isnt that extra
arthmitc call.. this is just another way to do the same thing.. tak
You missed the $count = 0;
right below it Andrew... his code works just like the modulus one...
On Tue, 28 Sep 2004 12:10:21 -0700, Andrew Kreps <[EMAIL PROTECTED]> wrote:
> On Tue, 28 Sep 2004 10:45:19 -0700, Jason Davidson <[EMAIL PROTECTED]> wrote:
> > I see lots of references to modulus, whic
So, now you have found the static method docs, and you have found the
very minimal __call() docs but you have not come close to answering
anything about using call with static methods.
For those who seem to miss the point, a static method call would be like:
$a = Caller::test(1, "2", 3.4, true);
[snip]
So, now you have found the static method docs, and you have found the
very minimal __call() docs but you have not come close to answering
anything about using call with static methods.
[/snip]
Sorry, I was just trying to help.
--
PHP General Mailing List (http://www.php.net/)
To unsubscrib
Hello all,
I have a class Foo. In PHP4 I could create an instance of Foo in the following manner:
$className = "Foo";
$fooInstance = new $className;
This would yield the same result as:
$fooInstance = new Foo;
In my efforts to port this over to PHP5 I am having trouble. Not only do I not get
well, actually, the code resets the count var, so it makes absolutely no
difference how many iterations the loop makes, it could iterated
indefinately and still function identically.
Jason
Andrew Kreps <[EMAIL PROTECTED]> wrote:
>
> On Tue, 28 Sep 2004 10:45:19 -0700, Jason Davidson <[EMAIL PRO
On Tue, 28 Sep 2004 13:46:27 -0600, Daniel Watrous
<[EMAIL PROTECTED]> wrote:
> In my efforts to port this over to PHP5 I am having trouble. Not only do I not get
> back an
> instance of my Foo class, but the script execution stops entirely without so much as
> a
> warning.
My first suggesti
Hey, im sorry, i didnt read the other responses to your post, ive posted
the same thing...
Jason
"Jason Davidson" <[EMAIL PROTECTED]> wrote:
>
> well, actually, the code resets the count var, so it makes absolutely no
> difference how many iterations the loop makes, it could iterated
> indefin
I agree with Trevor... but if he manages to nvigate to the page and
try to parse it, he will end up finding the problem Graham said. He is
only reading the first line. He can either use fread or shrink his
regex to #align="right">([0-9]*,?[0-9]*)# and make a loop using
fgets. The second option is t
[snip]
well, actually, the code resets the count var, so it makes absolutely no
difference how many iterations the loop makes, it could iterated
indefinately and still function identically.
[/snip]
That is quite true, but which is more elegant?
--
PHP General Mailing List (http://www.php.net/)
T
you are just missing the (); it wont work either in php4 or php5 that
way.
$className = "Foo";
$fooInstance = new $className();
Cheers
On Tue, Sep 28, 2004 at 01:46:27PM -0600, Daniel Watrous wrote:
> Hello all,
>
> I have a class Foo. In PHP4 I could create an instance of Foo in the follow
does that work for sub directories ... i.e. I have multiple "mini"
sites that I run on my domain and they are just folders underneath...
I.E. mydom.com
--- mydom.com/123
--- mydom.com/ahr
--- mydom.com/subsite4
On Sat, 25 Sep 2004 14:17:50 -0700, Jasper Howard <[EMAIL PROTECTED]> wrote:
Just curious to see how "everyone else does it" when it comes to validating your
xml against an xsd file.
Right now I'm fighting a problem where I don't have DOM installed that would
enable me the ability to write my own validator and none of the online
validators seem to want to play nice with p
Jay Blanchard wrote:
[snip]
well, actually, the code resets the count var, so it makes absolutely no
difference how many iterations the loop makes, it could iterated
indefinately and still function identically.
[/snip]
That is quite true, but which is more elegant?
Whichever way Martha Stewart wo
Well, elegance, is in the eye of the beholder !!.. but ya, i certainly
wasnt contesting the modulas solutiion, ive used mod in similar cases
myself, i was just adding some variety.
Jason
"Jay Blanchard" <[EMAIL PROTECTED]> wrote:
>
> [snip]
> well, actually, the code resets the count var, so it
this could be handy for you:
print_r($_SERVER); or phpinfo();
On Tue, Sep 28, 2004 at 04:15:39PM -0400, GH wrote:
> does that work for sub directories ... i.e. I have multiple "mini"
> sites that I run on my domain and they are just folders underneath...
>
> I.E. mydom.com
> --- mydom.com/123
>
I don't know if this is the right place to post this, so my fault if it isn't.
I am looking for PHP & MySQL Developers to help create a web-based RPG
written using the latest versions of PHP and MySQL. I unfortunately am
not a programmer, but hope to find programmers that can take my ideas
and tur
On Wednesday 29 September 2004 01:44, blackwater dev wrote:
> Then, here is part of the code doing the upload:
To be precise this is the part of the code which handles the upload. The files
have already been uploaded and stored by your webserver long before your
script starts executing.
> It p
> I don't know if this is the right place to post this, so my fault if it
> isn't.
>
> I am looking for PHP & MySQL Developers to help create a web-based RPG
> written using the latest versions of PHP and MySQL. I unfortunately am
> not a programmer, but hope to find programmers that can take my id
Hi guys,
OK I need some ideas.
Somebody created the stupidest XML file I've ever seen. And of
course they can't change it, and I *must* be able to read it. I'm all out of
brain power on thinking how to go about reading it. I typically use
simplexml to read xml and that's where my
Yoed Anis wrote:
Hi guys,
OK I need some ideas.
Somebody created the stupidest XML file I've ever seen. And of
course they can't change it, and I *must* be able to read it. I'm all out of
brain power on thinking how to go about reading it. I typically use
simplexml to read xml and that's w
Well, that is one approach.
>how about ignoring them? :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sorry for the probably basic question, but I would like to change the
default mta on my FC2 box from sendmail to exim. I believe to do this I need
to change the 'entry' in /etc/alternatives/ to point to
/usr/sbin/sendmail.exim instead of /usr/sbin/sendmail.sendmail.
Doing a 'ls -al' on /etc/alter
Sorry, mailed to the wrong list :(
-Original Message-
From: Graham Cossey [mailto:[EMAIL PROTECTED]
Sent: 28 September 2004 23:27
To: Php-General
Subject: [PHP] Changing mta in /etc/alternatives : how?
Sorry for the probably basic question, but I would like to change the
default mta on
On Tue, 28 Sep 2004 16:22:18 -0300, Eduardo Sampaio <[EMAIL PROTECTED]> wrote:
> You missed the $count = 0;
> right below it Andrew... his code works just like the modulus one...
Whoops, my mistake. I write code, really I do. :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Graham Cossey wrote:
Sorry for the probably basic question, but I would like to change the
default mta on my FC2 box from sendmail to exim. I believe to do this I need
to change the 'entry' in /etc/alternatives/ to point to
/usr/sbin/sendmail.exim instead of /usr/sbin/sendmail.sendmail.
Doing a 'ls
I'm sorry to ask a question that I'm sure exists in the documents, but I
have yet to see it? How does one compile php 5.0.2. statically into your
apache 2.0.51 binary, everything, I've seen thus far shows how to create a
php shared module?
Thank You
--
PHP General Mailing List (http://www.php.n
On Tue, 28 Sep 2004 16:58:07 -0500, Yoed Anis <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> OK I need some ideas.
>
> Somebody created the stupidest XML file I've ever seen. And of
> course they can't change it, and I *must* be able to read it. I'm all out of
> brain power on thinking
i tried putting in fread() but still getting a blank screen. any other
errors in here?
http://hiscore.runescape.com/aff/runescape/hiscorepersonal.cgi?username=champinoman","r";);
$line = fread ($file, 1024);
if
(preg_match('#username=champinoman&category=13.*align="right">(.*)#mi',$line,$out))
Doesn't print out anything.
On Wed, 29 Sep 2004 05:32:32 +0800, Jason Wong <[EMAIL PROTECTED]> wrote:
> On Wednesday 29 September 2004 01:44, blackwater dev wrote:
>
> > Then, here is part of the code doing the upload:
>
> To be precise this is the part of the code which handles the upload. The
* Thus wrote Jackson Miller:
> So, now you have found the static method docs, and you have found the
> very minimal __call() docs but you have not come close to answering
> anything about using call with static methods.
>
> For those who seem to miss the point, a static method call would be like:
* Thus wrote Maciek Ruckgaber Bielecki:
> you are just missing the (); it wont work either in php4 or php5 that
> way.
>
>
> $className = "Foo";
> $fooInstance = new $className();
$a = new Foo;
Is perfectly valid.
Curt
--
The above comments may offend you. flame at will.
--
PHP General
* Thus wrote Daniel Watrous:
> Hello all,
>
> I have a class Foo. In PHP4 I could create an instance of Foo in the following
> manner:
> $className = "Foo";
> $fooInstance = new $className;
>
> This would yield the same result as:
> $fooInstance = new Foo;
Can you provide the definition of you
Works fine for me. It still works if you add methods or properties to
Foo as well, I'm not sure why it wouldn't work for you, possibly you
have another error along the lines somewhere. I am on PHP 5.0.1 BTW
On Tue, 2004-09-28 at 19:42, Curt Zirzow wrote:
> * Thus wrote Daniel Watrous:
> > Hello
1 - 100 of 115 matches
Mail list logo