Re: [PHP] Re: Mass Mailing Using PHP

2004-09-28 Thread Roger Thomas
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. For

[PHP] How can I formated a PHP script into colored HTML

2004-09-28 Thread shimuqiiheb
Hi! How can I make a code into html format like this ?php $foo = 5bar; // string $bar = true; // boolean settype($foo, integer); // $foo 5 (integer) settype($bar, string); // $bar 1 (string) ? TABLE BORDER=0 BGCOLOR=#E0E0E0 CELLPADDING=5 TR TD code font color=#00 font

[PHP] Re: grabbing information from websites

2004-09-28 Thread champinoman
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

[PHP] Shell command in php script

2004-09-28 Thread Vincent FONTENEAU
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

[PHP] Re: grabbing information from websites

2004-09-28 Thread M. Sokolewicz
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) --- tda href=hiscoreuser.cgi?username=champinomancategory=12

[PHP] grabbing information from websites

2004-09-28 Thread champinoamn
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) --- tda href=hiscoreuser.cgi?username=champinomancategory=12

[PHP] Re: Shell command in php script

2004-09-28 Thread M. Sokolewicz
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

[PHP] Re: grabbing information from websites

2004-09-28 Thread champinoman
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 modifier

RE: [PHP] Re: grabbing information from websites

2004-09-28 Thread Graham Cossey
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 and

[PHP] Need help in implementing Payment Gatewaydetails

2004-09-28 Thread suneel
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

Re: [PHP] Re: grabbing information from websites

2004-09-28 Thread champinoman
so does this look right: eregi (username=champinomancategory=13.*align=\right\(.*)/tdm,$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

Re: [PHP] Re: grabbing information from websites

2004-09-28 Thread M. Sokolewicz
I thought I clearly stated that for the m modifier you need to use PCRE functions! eg: preg_match('/username=champinomancategory=13.*align=right(.*)/td/mi', $text, $out); Champinoman wrote: so does this look right: eregi (username=champinomancategory=13.*align=\right\(.*)/tdm,$line,$out)) is

Re: [PHP] Re: grabbing information from websites

2004-09-28 Thread M. Sokolewicz
ugh, obviously I'm a bad typer :) The code should be: preg_match('#username=champinomancategory=13.*align=right(.*)/td#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:

Re: [PHP] how to execute a remote command from php [done]

2004-09-28 Thread Victor Alvarez
- Original Message - From: Sethi, Samir (IDS DMDS) [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 execute remote

Re: [PHP] Website with a Instant Messenger

2004-09-28 Thread Ricardo Cezar
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, groups... The

Re: [PHP] Website with a Instant Messenger

2004-09-28 Thread Robert Sossomon
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

Re: [PHP] Testing Response of A Proxy with PHP?

2004-09-28 Thread Nick Wilson
* 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)br\n; } else { fputs ($fp, OPTIONS * HTTP/1.0\r\nMax-Forwards: 0\r\n\r\n);

Re: [PHP] How can I formated a PHP script into colored HTML

2004-09-28 Thread Jason Wong
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 * Internet

Re: [PHP] submit to a remote form without the use of curl?? Is it possible?

2004-09-28 Thread Brent Clements
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, September 27,

Re: [PHP] Need help in implementing Payment Gatewaydetails

2004-09-28 Thread Burhan Khalid
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...

Re: [PHP] Re: grabbing information from websites

2004-09-28 Thread champinoman
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: ?php $file = fopen (http://hiscore.runescape.com/aff/runescape/hiscorepersonal.cgi?username=champinoman,r;); $line =

RE: [PHP] Re: grabbing information from websites

2004-09-28 Thread Graham Cossey
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 td align=right70,277 ? If there is a line break then $line will never contain both strings. You may need to use fread() instead. HTH

[PHP] PHP Web-App Frameworks?

2004-09-28 Thread M Saleh EG
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

[PHP] files not uploading

2004-09-28 Thread blackwater dev
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: form method='post' enctype='multipart/form-data' action='?=$_SERVER['PHP_SELF'];??method=uploadid=? echo $id?' ?php for( $i = 0; $i

Re: [PHP] Re: Mass Mailing Using PHP

2004-09-28 Thread Paul Bissex
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 programs.

[PHP] Make cron file

2004-09-28 Thread Juan Pablo Herrera
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,

RE: [PHP] Make cron file

2004-09-28 Thread Jay Blanchard
[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

Re: [PHP] Make cron file

2004-09-28 Thread M. Sokolewicz
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

[PHP] simple date/now() question

2004-09-28 Thread Mag
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

RE: [PHP] simple date/now() question

2004-09-28 Thread Jay Blanchard
[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

Re: [PHP] Make cron file

2004-09-28 Thread John Nichel
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

RE: [PHP] Make cron file

2004-09-28 Thread Jay Blanchard
[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

Re: [PHP] Make cron file

2004-09-28 Thread John Nichel
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] --

Re: [PHP] Make cron file

2004-09-28 Thread Maciek Ruckgaber Bielecki
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) ?PHP php code here ? then you simply add the line (crontab -e) 0 3 * * *

[PHP] Fwd: [SPAM] Plan Ahead. Shop For Life Insuranc

2004-09-28 Thread Justin Patrin
-- 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 composite

Re: [PHP] Make cron file

2004-09-28 Thread E SA
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 that the

Re: [PHP] Fwd: [SPAM] Plan Ahead. Shop For Life Insuranc

2004-09-28 Thread John Nichel
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] snip Why? -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL

Re: [PHP] How can I formated a PHP script into colored HTML

2004-09-28 Thread Chris Dowell
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()

Re: [PHP] simple date/now() question

2004-09-28 Thread Jason Davidson
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

Re: [PHP] simple date/now() question

2004-09-28 Thread Mag
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...:-)

Re: [PHP] Make cron file

2004-09-28 Thread Juan Pablo Herrera
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

[PHP] GNU/Linux MacOsX Server different behaviour

2004-09-28 Thread Francesco Casalena
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 both

[PHP] Loop within Loop help please

2004-09-28 Thread Nick Wilson
hi everyone, I have a simplified bit of code below: ?php foreach($someArray as $someVal) { //do some stuff } ? 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: ?php $count=0; foreach($someArray as

Re: [PHP] Loop within Loop help please

2004-09-28 Thread John Nichel
Nick Wilson wrote: hi everyone, I have a simplified bit of code below: ?php foreach($someArray as $someVal) { //do some stuff } ? 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: ?php $count=0;

RE: [PHP] Loop within Loop help please

2004-09-28 Thread Pablo Gosse
[snip] I have a simplified bit of code below: ?php foreach($someArray as $someVal) { //do some stuff } ? 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: ?php $count=0; foreach($someArray as $someVal) {

Re: [PHP] Loop within Loop help please

2004-09-28 Thread Marek Kilimajer
% operator: http://www.php.net/operators Nick Wilson wrote: hi everyone, I have a simplified bit of code below: ?php foreach($someArray as $someVal) { //do some stuff } ? What i'd like to do is have a count inside that loop that will trigger some action every 20 iterations of the

RE: [PHP] Loop within Loop help please

2004-09-28 Thread Jay Blanchard
[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: ?php $count=0; foreach($someArray as $someVal) { if($count is divisible by 20 exactly) { // do some stuff } //do some stuff } ? How

Re: [PHP] GNU/Linux MacOsX Server different behaviour

2004-09-28 Thread Brent Baisley
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

Re: [PHP] Loop within Loop help please

2004-09-28 Thread Nick Wilson
* 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!

Re: [PHP] Loop within Loop help please

2004-09-28 Thread Nick Wilson
* 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

RE: [PHP] Loop within Loop help please

2004-09-28 Thread Justin Palmer
?php $count=0; foreach($someArray as $someVal) { $count++; if($count == 20) { // do some stuff $count = 0; } //do some stuff } ? How might i do that? Something like that. Justin Much thanks... -- Nick W -- PHP General Mailing List

Re: [PHP] Loop within Loop help please

2004-09-28 Thread Janet Valade
Nick Wilson wrote: hi everyone, I have a simplified bit of code below: ?php foreach($someArray as $someVal) { //do some stuff } ? 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: ?php $count=0;

[PHP] can't upload files

2004-09-28 Thread blackwater dev
--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: form method='post' enctype='multipart/form-data'

Re: [PHP] Loop within Loop help please

2004-09-28 Thread Jason Davidson
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 . {

Re: [PHP] Loop within Loop help please

2004-09-28 Thread Nick Wilson
* and then Jesse Castro declared [snip] ?php $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 %20 == 0)

[PHP] Match Vs Where - Fulltext Search

2004-09-28 Thread Harlequin
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

Re: [PHP] Make cron file

2004-09-28 Thread Maciek Ruckgaber Bielecki
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

[PHP] __call and static methods

2004-09-28 Thread Jackson Miller
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

RE: [PHP] Match Vs Where - Fulltext Search

2004-09-28 Thread Jay Blanchard
[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,

RE: [PHP] __call and static methods

2004-09-28 Thread Jay Blanchard
[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:

RE: [PHP] __call and static methods

2004-09-28 Thread Jay Blanchard
[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 ?php class Caller { private $x = array(1, 2, 3); function

RE: [PHP] Re: grabbing information from websites

2004-09-28 Thread Gryffyn, Trevor
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'll

Re: [PHP] Loop within Loop help please

2004-09-28 Thread Nick Wilson
* 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 for

Re: [PHP] Loop within Loop help please

2004-09-28 Thread Andrew Kreps
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..

[PHP] PHP as CGI: Denial of Service?

2004-09-28 Thread Florian Effenberger
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 ? echo Hello world; ? can bog down a server completely if the reload button on the browser is pressed continously for some seconds. I

Re: [PHP] __call and static methods

2004-09-28 Thread Maciek Ruckgaber Bielecki
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 info

Re: [PHP] Loop within Loop help please

2004-09-28 Thread John Nichel
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.. take

Re: [PHP] Loop within Loop help please

2004-09-28 Thread Eduardo Sampaio
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, which

Re: [PHP] __call and static methods

2004-09-28 Thread 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: $a = Caller::test(1, 2, 3.4, true); I

RE: [PHP] __call and static methods

2004-09-28 Thread Jay Blanchard
[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

[PHP] classes in php5

2004-09-28 Thread 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; In my efforts to port this over to PHP5 I am having trouble. Not only do I not get

Re: [PHP] Loop within Loop help please

2004-09-28 Thread Jason Davidson
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

Re: [PHP] classes in php5

2004-09-28 Thread Andrew Kreps
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 suggestion

Re: [PHP] Loop within Loop help please

2004-09-28 Thread Jason Davidson
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 indefinately

Re: [PHP] Re: grabbing information from websites

2004-09-28 Thread Eduardo Sampaio
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]*)/td# and make a loop using fgets. The second option is

RE: [PHP] Loop within Loop help please

2004-09-28 Thread Jay Blanchard
[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/)

Re: [PHP] classes in php5

2004-09-28 Thread Maciek Ruckgaber Bielecki
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 following

Re: [PHP] Re: how to retrieve path to web server files

2004-09-28 Thread GH
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:

[PHP] How do you guys validate your xml schema's with php?

2004-09-28 Thread bclem
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

Re: [PHP] Loop within Loop help please

2004-09-28 Thread John Nichel
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

RE: [PHP] Loop within Loop help please

2004-09-28 Thread Jason Davidson
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 makes

Re: [PHP] Re: how to retrieve path to web server files

2004-09-28 Thread Maciek Ruckgaber Bielecki
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 ---

[PHP] SF Project: In Need of PHP MySQL Developers

2004-09-28 Thread Michael Lauzon
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

Re: [PHP] can't upload files

2004-09-28 Thread Jason Wong
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

Re: [PHP] SF Project: In Need of PHP MySQL Developers

2004-09-28 Thread Matthew Sims
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

[PHP] Need some ideas

2004-09-28 Thread Yoed Anis
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

[PHP] Re: Need some ideas

2004-09-28 Thread M. Sokolewicz
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

RE: [PHP] Re: Need some ideas

2004-09-28 Thread Yoed Anis
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

[PHP] Changing mta in /etc/alternatives : how?

2004-09-28 Thread Graham Cossey
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

[PHP] RE: [IGNORE] [PHP] Changing mta in /etc/alternatives : how?

2004-09-28 Thread Graham Cossey
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

Re: [PHP] Loop within Loop help please

2004-09-28 Thread Andrew Kreps
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,

Re: [PHP] Changing mta in /etc/alternatives : how?

2004-09-28 Thread John Holmes
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

[PHP] apache 2.0.51 and php 5.0.2 static compile

2004-09-28 Thread Francis Davidson
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

Re: [PHP] Need some ideas

2004-09-28 Thread Paul Bissex
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 how to

Re: [PHP] Re: grabbing information from websites

2004-09-28 Thread champinoman
i tried putting in fread() but still getting a blank screen. any other errors in here? ?php $file = fopen (http://hiscore.runescape.com/aff/runescape/hiscorepersonal.cgi?username=champinoman,r;); $line = fread ($file, 1024); if

Re: [PHP] can't upload files

2004-09-28 Thread blackwater dev
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 files

Re: [PHP] __call and static methods

2004-09-28 Thread Curt Zirzow
* 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: $a

Re: [PHP] classes in php5

2004-09-28 Thread Curt Zirzow
* 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 Mailing

Re: [PHP] classes in php5

2004-09-28 Thread Curt Zirzow
* 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 your class

Re: [PHP] classes in php5

2004-09-28 Thread Matthew Fonda
?php class Foo { } $className = Foo; $fooInstance = new $className; ? 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

  1   2   >