[PHP] Stripping!!!

2001-01-11 Thread K.Simon

I have a file with 45000 newsgroups in there. It looks like that:

alt.1d 070753 057290 y
alt.2600 515487 435743 y
alt.3d 073441 059461 y
alt.abortion.inequity 272142 227847 y
alt.abuse-recovery 36 36 m
alt.abuse.recovery 137940 021046 y
alt.acting 052147 005774 y
alt.activism 541011 437813 y
alt.activism.d 050394 047001 y
alt.activism.death-penalty 192721 097832 y

Now i want to strip all the numbers out (not really all) so that it look like this:

alt.1d
alt.2600
alt.3d
alt.abortion.inequity
alt.abuse-recovery
alt.abuse.recovery

How can this be done with PHP?


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP Programmer needed!

2001-01-11 Thread K.Simon

Hi,
i want to open a domain registration company and i started to write a program myself 
because i couldnt find software which fits my needs and OpenSRS was not a choice for 
me. The software i am doing is basically a whois search and a mysql shopping cart 
(taken from a scripts found out there). Now as i am not a PHP programmer and I have to 
do more things i am at an death end.  I need an programmer who's able to continue and 
finish fastly this project with me. After we would think about if we release it as GPL 
or commercial. Please contact me urgently under [EMAIL PROTECTED]
Thx


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: PHP programmer needed.

2001-01-11 Thread K.Simon

I did very much of the work already! There are just some smaller (and important) 
things to fix, but I think for an experienced programmer would it be just a day of 
work. You can see what i did until now here 
http://www.zabia.net/admin/dregtest/index.php?do_global=1
Just check it out!

*** REPLY SEPARATOR  ***

On 11/01/2001 at 6:03 nonoy apellido wrote:

>hi,
>   how much you could spare with us for doing the
>job..  we are from philippines..
>
>
>
>--- "K.Simon" <[EMAIL PROTECTED]> wrote:
>> What i need is to integrate an existing domain
>> search (which i modified to suit my needs)into an
>> from me started shopping cart to enable online
>> domain registrations. But now I dont know where to
>> go on and i really dont have any spare time at the
>> moment and this thing is urgent! Sooner i can start
>> to make money :)
>>
>>
>
>
>__
>Do You Yahoo!?
>Yahoo! Photos - Share your holiday photos online!
>http://photos.yahoo.com/




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: PHP programmer needed.

2001-01-11 Thread K.Simon


If you finish it fast and as i want (i will help with the signup) 
you will get 2 domain registrations for free for 2 years each!!!
K.Simon
Webmaster http://www.zabia.net

*** REPLY SEPARATOR  ***

On 11/01/2001 at 6:32 nonoy apellido wrote:

>hi,
>
>   what do u you mean? we make it for you for
>free?
>what the deal if we can finish the said job?
>
>
>
>--- "K.Simon" <[EMAIL PROTECTED]> wrote:
>> I did very much of the work already! There are just
>> some smaller (and important) things to fix, but I
>> think for an experienced programmer would it be just
>> a day of work. You can see what i did until now here
>>
>http://www.zabia.net/admin/dregtest/index.php?do_global=1
>> Just check it out!
>> 
>> *** REPLY SEPARATOR  ***
>> 
>> On 11/01/2001 at 6:03 nonoy apellido wrote:
>> 
>> >hi,
>> >   how much you could spare with us for doing
>> the
>> >job..  we are from philippines..
>> >
>> >
>> >
>> >--- "K.Simon" <[EMAIL PROTECTED]> wrote:
>> >> What i need is to integrate an existing domain
>> >> search (which i modified to suit my needs)into an
>> >> from me started shopping cart to enable online
>> >> domain registrations. But now I dont know where
>> to
>> >> go on and i really dont have any spare time at
>> the
>> >> moment and this thing is urgent! Sooner i can
>> start
>> >> to make money :)
>> >>
>> >>
>> >
>> >
>> >__
>> >Do You Yahoo!?
>> >Yahoo! Photos - Share your holiday photos online!
>> >http://photos.yahoo.com/
>> 
>> 
>> 
>
>
>__
>Do You Yahoo!?
>Yahoo! Photos - Share your holiday photos online!
>http://photos.yahoo.com/




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: PHP programmer needed.

2001-01-11 Thread K.Simon


PS: Plus Free Domain Parking if you need to!

*** REPLY SEPARATOR  ***
If you finish it fast and as i want (i will help with the signup) 
you will get 2 domain registrations for free for 2 years each!!!
K.Simon
Webmaster http://www.zabia.net

*** REPLY SEPARATOR  ***

On 11/01/2001 at 6:32 nonoy apellido wrote:

>hi,
>
>   what do u you mean? we make it for you for
>free?
>what the deal if we can finish the said job?
>
>
>
>--- "K.Simon" <[EMAIL PROTECTED]> wrote:
>> I did very much of the work already! There are just
>> some smaller (and important) things to fix, but I
>> think for an experienced programmer would it be just
>> a day of work. You can see what i did until now here
>>
>http://www.zabia.net/admin/dregtest/index.php?do_global=1
>> Just check it out!
>> 
>> *** REPLY SEPARATOR  ***
>> 
>> On 11/01/2001 at 6:03 nonoy apellido wrote:
>> 
>> >hi,
>> >   how much you could spare with us for doing
>> the
>> >job..  we are from philippines..
>> >
>> >
>> >
>> >--- "K.Simon" <[EMAIL PROTECTED]> wrote:
>> >> What i need is to integrate an existing domain
>> >> search (which i modified to suit my needs)into an
>> >> from me started shopping cart to enable online
>> >> domain registrations. But now I dont know where
>> to
>> >> go on and i really dont have any spare time at
>> the
>> >> moment and this thing is urgent! Sooner i can
>> start
>> >> to make money :)
>> >>
>> >>
>> >
>> >
>> >__
>> >Do You Yahoo!?
>> >Yahoo! Photos - Share your holiday photos online!
>> >http://photos.yahoo.com/
>> 
>> 
>> 
>
>
>__
>Do You Yahoo!?
>Yahoo! Photos - Share your holiday photos online!
>http://photos.yahoo.com/




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Stripping!!!

2001-01-11 Thread K.Simon

Thx, but could anybody give me an example? It shouldnt be too hard?!

*** REPLY SEPARATOR  ***

On 11/01/2001 at 13:50 Moritz Petersen wrote:

>with every line do the following to get the name:
>
>$name = strtok($line, " ");
>
>Mo.
>
>> -----Original Message-
>> From: K.Simon [mailto:[EMAIL PROTECTED]]
>> Sent: Thursday, January 11, 2001 1:19 PM
>> To: [EMAIL PROTECTED]
>> Subject: [PHP] Stripping!!!
>>
>>
>> I have a file with 45000 newsgroups in there. It looks like that:
>>
>> alt.1d 070753 057290 y
>> alt.2600 515487 435743 y
>> alt.3d 073441 059461 y
>> alt.abortion.inequity 272142 227847 y
>> alt.abuse-recovery 36 36 m
>> alt.abuse.recovery 137940 021046 y
>> alt.acting 052147 005774 y
>> alt.activism 541011 437813 y
>> alt.activism.d 050394 047001 y
>> alt.activism.death-penalty 192721 097832 y
>>
>> Now i want to strip all the numbers out (not really all) so that
>> it look like this:
>>
>> alt.1d
>> alt.2600
>> alt.3d
>> alt.abortion.inequity
>> alt.abuse-recovery
>> alt.abuse.recovery
>>
>> How can this be done with PHP?
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Stripping!!!

2001-01-11 Thread K.Simon

Ok Robin,
Many Thx!

*** REPLY SEPARATOR  ***

On 11/01/2001 at 16:13 Robin Vickery wrote:

>> "S" == "K Simon" <[EMAIL PROTECTED]> writes:
>
> > Thx, but could anybody give me an example? It shouldnt be too hard?!
>
>
>If you feel you have to do it in php then this should work. You'd save
>a lot of effort if you used the unix 'cut' command though.
>
>cut -d ' ' -f 1 inputfile.txt > outputfile.txt
>
>is equivalent to (but considerably faster than) this:
>
>
>$in_file   = fopen( "inputfile.txt",  "r" ) or die( "failed to open input file."  );
>$out_file  = fopen( "outputfile.txt", "w" ) or die( "failed to open output file." );
>
>while ( !feof($in_file) ) {
>  fwrite( $out_file, strtok(fgets($in_file, 1024), " ") . "\n");
>}
>
>fclose ($in_file);
>fclose ($out_file);
>
>?>
>
>
>--
>Still nothing
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Wondering whats wrong?

2001-01-13 Thread K.Simon

Hello,
running the following script (exec.php) on telnet account i get this error:
Warning: Supplied argument is not a valid file handler resource in exec.php on line 21
Can anybody tell me whats wrong with it? Normally it should fetch the newsgroups on my 
local news server and insert them into rows on a mysql database. This script is part 
of  myPHPusenet-0.9.9.
I hope the script was not too long.

THE SCRIPT:
*

#!/usr/bin/php -q




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Who to make an additon of fetched rows

2001-01-16 Thread K.Simon

How can i add all the fetched rows from a table?

$result=mysql("$DBName","SELECT * FROM basket WHERE UserID='$UID'");
while ($row = mysql_fetch_array($result)) {
$CID=$row[0];
$DMN=$row[1];
$DMB=$row[2];
$BID=$row[4];
do{
print "$DMB";
}


Let's say i have to display the endprice from all the items from user $UID in the 
basket. Price from the items is in row $[2] or $DMB. How can i do that?


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Who to make an additon of fetched rows

2001-01-16 Thread K.Simon

yeah, but if the user has 20 items in the cart (=20 rows), how do i show the endprice 
of his items? In the below example it just prints all the rows from the user but i 
want to make a simple mathematical addition $DMB+$DMB+$DMB and so on as rows for this 
user exists. It might simple for you but not for a "newcomer" :)

*** REPLY SEPARATOR  ***

On 16/01/2001 at 8:51 Chris Lee wrote:

>well your code snipit allready shows your answer.
>
>$result = mysql_db_query($DBName, "SELECT * FROM basket WHERE
>UserID='$UID'");
>while ($row = mysql_fetch_array($result))
>{
> $CID = $row[0];
> $DMN = $row[1];
> $DMB = $row[2];
> $BID = $row[4];
>
> echo "Price: $DMB\n";
>}
>
>Chris Lee
>Mediawaveonline.com
>
>
>
>""K.Simon"" <[EMAIL PROTECTED]> wrote in message
>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>How can i add all the fetched rows from a table?
>
>$result=mysql("$DBName","SELECT * FROM basket WHERE UserID='$UID'");
>while ($row = mysql_fetch_array($result)) {
>$CID=$row[0];
>$DMN=$row[1];
>$DMB=$row[2];
>$BID=$row[4];
>do{
>print "$DMB";
>}
>
>
>Let's say i have to display the endprice from all the items from user $UID
>in the basket. Price from the items is in row $[2] or $DMB. How can i do
>that?
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] if php is so great, why is it so hard to make it work?

2001-01-16 Thread K.Simon

Goto http://www.zabia.com/downloads.php?op=viewslink&sid=24 and coose the one you like!

*** REPLY SEPARATOR  ***

On 16/01/2001 at 13:13 Serge Montmarquette wrote:

>if php is so great, why is it so hard to make it work?
>please...someone ...for win2000 nt 5.0 ...I have apache, iis installed
>...nothing's working, did changes to php.ini, my registry...httpd.conf
>nothing! nothing! nothig!!!
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]