[PHP] "The Kewl Script"

2001-09-29 Thread Maxim Maletsky \(PHPBeginner.com\)


Hey, The Kewl Script is now v0.1.1 :-)

I reduced it's size by double. It is now loading (that very PNG logo) in
only 226k instead of 440 as before. (remember those 1.440 of once? Now
pathetic).
I ported it to use a hybrid of CSS/HTML which slows a bit the browser
down but having less size it is way better acceptable than before, plus
kewl script is now smart enough to choose where to use CSS and where
FONT depending on occurrences of that color.

I still cannot figure out how to get it two-dimensional. I mean to be
able to calculate it vertically, not only horizontally. A few tentative
brought me almost nowhere. 

So, what will be the next step now?
Ideas, please!


 http://maxim.cx/test/img.php 
 http://maxim.cx/test/img.phps (source)



Maxim Maletsky
www.PHPBeginner.com



-Original Message-
From: ReDucTor [mailto:[EMAIL PROTECTED]] 
Sent: lunedì 30 luglio 2001 8.42
To: Maxim Maletsky (PHPBeginner.com)
Subject: Re: [P H P] The Histor of The Kewl Script


I can't seem to access the source code...and the image is turning out
spaced
- Original Message -
From: "Maxim Maletsky (PHPBeginner.com)" <[EMAIL PROTECTED]>
To: "'ReDucTor'" <[EMAIL PROTECTED]>
Sent: Sunday, September 30, 2001 10:35 AM
Subject: RE: [P H P] The Histor of The Kewl Script


>
> Nope. At least I haven't seen it. Will look better soon.
> Hey, I'm coming pretty close. Check the HTML source out of the
>
> http://maxim.cx/test/img2.php
> http://maxim.cx/test/img2.phps (source)
>
>
>
>
> Maxim Maletsky
> www.PHPBeginner.com
>
>
>
> -Original Message-
> From: ReDucTor [mailto:[EMAIL PROTECTED]]
> Sent: lunedì 30 luglio 2001 0.58
> To: Maxim Maletsky (PHPBeginner.com)
> Subject: Re: [P H P] The Histor of The Kewl Script
>
>
> So there is no Register New Project when you login, just below your 
> Logout window?
> - Original Message -
> From: "Maxim Maletsky (PHPBeginner.com)" <[EMAIL PROTECTED]>
> To: "'ReDucTor'" <[EMAIL PROTECTED]>
> Sent: Sunday, September 30, 2001 5:06 AM
> Subject: RE: [P H P] The Histor of The Kewl Script
>
>
> > OK, when you confirm me the thing I will add you.
> > I am going to open the account now. The problem is that I am having 
> > some difficulties doing it - I find no "Register New Project" 
> > button... Pretty funny...
> >
> >
> > Maxim Maletsky
> > www.PHPBeginner.com
> >
> >
> >
> > -Original Message-
> > From: ReDucTor [mailto:[EMAIL PROTECTED]]
> > Sent: domenica 29 luglio 2001 20.21
> > To: Maxim Maletsky (PHPBeginner.com)
> > Subject: Re: [P H P] The Histor of The Kewl Script
> >
> >
> > Yep, Its ReDucT0r, i would use ReDucTor, but i lost the pass to 
> > that, and it just doesn't like to send the password
> > - Original Message -
> > From: "Maxim Maletsky (PHPBeginner.com)" 
> > <[EMAIL PROTECTED]>
> > To: "'ReDucTor'" <[EMAIL PROTECTED]>
> > Sent: Sunday, September 30, 2001 4:19 AM
> > Subject: RE: [P H P] The Histor of The Kewl Script
> >
> >
> > > Alright,
> > > I will add you.
> > >
> > > Do you have an account there?
> > > If not then you should sign up with them. Give me your username 
> > > and you will be added as one of the developers and later on you 
> > > tell me what else you want to contribute to - there are several 
> > > categories of responsibilities
> > >
> > > Maxim Maletsky
> > > www.PHPBeginner.com
> > >
> > >
> > > -Original Message-
> > > From: ReDucTor [mailto:[EMAIL PROTECTED]]
> > > Sent: domenica 29 luglio 2001 20.13
> > > To: Maxim Maletsky (PHPBeginner.com)
> > > Subject: Re: [P H P] The Histor of The Kewl Script
> > >
> > >
> > > Yep...
> > > - Original Message -
> > > From: "Maxim Maletsky (PHPBeginner.com)" 
> > > <[EMAIL PROTECTED]>
> > > To: "'ReDucTor'" <[EMAIL PROTECTED]>
> > > Sent: Sunday, September 30, 2001 4:13 AM
> > > Subject: RE: [P H P] The Histor of The Kewl Script
> > >
> > >
> > > > I am opening a project on Source Forge.
> > > > Want to participate?
> > > >
> > > >
> > > > Maxim Maletsky
> > > > www.PHPBeginner.com
> > > >
> > > >
> > > >
> > > > -Original Message-
> > > > From: ReDucTor [mailto:[EMAIL PROTECTED]]
> > > > Sent: domenica 29 luglio 2001 20.09
> > > > To: Maxim Maletsky (PHPBeginner.com)
> > > > Subject: Re: [P H P] The Histor of The Kewl Script
> > > >
> > > >
> > > > 3.768 seconds isn't to bad what does it get if it does the 
> > > > display
>
> > > > with out the array output?
> > > >
> > > > you should pop on the openprojects php irc channel...Might be a 
> > > > little
> > >
> > > > easier to talk about the best methods of doing this :D hehe
> > > >
> > > >   - James "ReDucTor" Mitchell
> > > > - Original Message -
> > > > From: "Maxim Maletsky (PHPBeginner.com)" 
> > > > <[EMAIL PROTECTED]>
> > > > To: "'ReDucTor'" <[EMAIL PROTECTED]>
> > > > Sent: Sunday, September 30, 2001 3:54 AM
> > > > Subject: RE: [P H P] The Histor of The Kewl Script
> > > >
> > > >
> > > > >
> > > > > It is in a way similar to what I am doing now.
> > > > > See the non-working

RE: [PHP] Subroutines

2001-09-29 Thread Jack Dempsey

they're just functions


function your_function($arg1,$arg2){
echo $arg1;
echo $arg2;
}

-Original Message-
From: Chris Herring [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 30, 2001 2:08 AM
To: php list
Subject: Re: [PHP] Subroutines


My bad, http://www.b000.net/code/
- Original Message -
From: "Chris Herring" <[EMAIL PROTECTED]>
To: "php list" <[EMAIL PROTECTED]>
Sent: Sunday, September 30, 2001 1:07 AM
Subject: [PHP] Subroutines


I've looked through the manual (or at least searched) for subroutines, and I
can't find them, there's a guy I know who made a script with "custom PHP
subroutines". (http://b000.net/) Anyway, I want to know how to make them.
Thanks for any input.



--
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] Running a script with Crontab

2001-09-29 Thread Carlos Fernando Scheidecker Antunes

Hello All,

I wrote an script to do database maintenance and I forgot how to run a script on the 
command line without opening it with a web browser. My idea is to add a crontab daily 
entry to run this script.

Can anyone enlight me on this

thank you very much,

C.F. Scheidecker Antunes.


Linux User #207984




Re: [PHP] Subroutines

2001-09-29 Thread Chris Herring

My bad, http://www.b000.net/code/
- Original Message -
From: "Chris Herring" <[EMAIL PROTECTED]>
To: "php list" <[EMAIL PROTECTED]>
Sent: Sunday, September 30, 2001 1:07 AM
Subject: [PHP] Subroutines


I've looked through the manual (or at least searched) for subroutines, and I
can't find them, there's a guy I know who made a script with "custom PHP
subroutines". (http://b000.net/) Anyway, I want to know how to make them.
Thanks for any input.



-- 
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] Subroutines

2001-09-29 Thread Chris Herring

I've looked through the manual (or at least searched) for subroutines, and I can't 
find them, there's a guy I know who made a script with "custom PHP subroutines". 
(http://b000.net/) Anyway, I want to know how to make them. Thanks for any input.



[PHP] Real tip about XML and PHP

2001-09-29 Thread Augusto Cesar Castoldi

This week I've been looking for functions to work with
XML.

If you want to create XML files, always use DOMXML
functions (php compile --with-dom).

Here is some code:

add_root('sites');

  $site = $root->new_child('site', '');
$site->new_child('title', 'PHP.net');
$site->new_child('url', 'http://www.php.net');

  $site = $root->new_child('site', '');
$site->new_child('title', 'Test');
$site->new_child('url',
'http://localhost/teste.php');

  $fp = @fopen('tst.xml', 'w');

  if (!$fp)
die('Error open tst.xml');

  fwrite($fp, $doc->dumpmem());

  fclose($fp);

  echo $doc->dumpmem();
?>



___
Yahoo! GeoCities
Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo! GeoCities. É fácil 
e grátis!
http://br.geocities.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] oci8.max_links missing from php.ini

2001-09-29 Thread John Lim

Hello,

I checked the windows php.ini and i did not see any reference to

oci8.allow_persistent=On ; allow or prevent persistent links
oci8.check_persistent=On ; check that a connection is still validbefore
reuse
oci8.max_persistent=-1 ; maximum number of persistent links. -1 means no
limit
oci8.max_links=-1 ; maximum number of links (persistent+non persistent). -1
means no limit


Are they actually supported?

Thanks, John





-- 
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] XHTML and PHP

2001-09-29 Thread Navid Yar

David, it works now! Matt Dreer pointed the solution out to me as well. I
should have used:
\n"); ?>

Thanks to both of you! One more simple question. I would like to understand
how and why this renders correctly. I look at this script and to me there is
no difference between:
\n"); ?> and the correct
solution noted above. Can someone explain this phenomenon to me? Thanks
again in advance...

Navid Yar





-Original Message-
From: David Otton [mailto:[EMAIL PROTECTED]]
Sent: Saturday, September 29, 2001 2:36 PM
To: Navid Yar
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] XHTML and PHP


On Sat, 29 Sep 2001 13:13:24 -0500, you wrote:

>>>The first line of an XHTML document must include an XML processing
>>>instruction, as such:
>>>

>>>But PHP will parse it as PHP code because of the question marks. How do I
>>>get around this problem? I don't want PHP to read that element as PHP, I
>>>want it to leave it alone the way it is. I tried echoing the tag and

>>\n"); ?>

>That approach doesn't work. It treats the string literally and prints:
>
>\n"); ?> in the HTML.
>
>Thanks for trying to help...

Weird - it works for me (WML stuff). Are you certain "short tags" is
set to "on" in the .ini? And other code parses ok?

Have you tried :

\n"); ?>

djo


-- 
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] sock prob

2001-09-29 Thread sagar N Chand

hi,

the socket() function is not working on win2k. any help?

thanx,
/sagar



[PHP] PHPEd

2001-09-29 Thread Kath

Is it worth picking up the retail NuSphere copy of PHPEd?

I'm using the 1.75 Alpha now and enjoy it a lot over what I was using prior 
(Dreamweaver).

Only peeve is what seems like a memory leak (PHPEd will crash after a bit of very 
minor web browser/message client/email use) in 1.75.  Have issues like this been 
resolved?

- k



RE: [PHP] Problem with mail()

2001-09-29 Thread Michael Katz

Good call, rtrim() seems to have brought back my sanity!

-Original Message-
From: ReDucTor [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 29, 2001 10:28 AM
To: Martín Marqués; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Problem with mail()


You might want to check if there is a newline at the end, you should do
rtrim() when you draw the subject from the db
- Original Message -
From: "Martín Marqués" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, September 30, 2001 12:24 AM
Subject: Re: [PHP] Problem with mail()


> On Sáb 29 Sep 2001 10:47, you wrote:
> > I am using this simple script:
> >
> > ?PHP
> > global $id, $subject, $news;
> > $database="yisny";
> > include ("yisny_db.inc");
> > db_connect ($database);
> > print ("$id");
> > $query = "select news_id, summary, news from news where news_id=$id";
> >
> > $result = mysql_query ($query)
> >or die ("sorry");
> >
> > $row = mysql_fetch_array ($result);
> > $news =strip_tags(stripslashes($row["news"]));
> > $subject= strip_tags(stripslashes($row["summary"]));
> > $to = "[EMAIL PROTECTED]";
> >
> > mail($to,$subject,$news, "From: yis <[EMAIL PROTECTED]>");
> > print ("See Events");
> > ?>
> >
> > Problem is that the from: header ends up in the body of the message.
>
> And what from do you get?
>
> > If I change $subject to "subject" (no variable) and $news to "news",
> > headers are fine.
>
> Could have something to do with quotes?
> Example:
> mail("martin","a test","this is a "test"","test")
>
> which should be:
>
> mail("martin","a test","this is a \"test\"","test")
>
> but this may not be your problem. I need more info.
>
> > I used to pass the variables between multiple html forms as globals and
> > hidden fields and I had no problems until the size of $message became
too
> > large.  When it grew above 7kb or so the subject header would disappear.
> >
> > At this point I would like to use the above script and have the from:
> > header appear as a header and not in the message body.
> >
> > Running Linux and PHP4.05
>
> You should think about upgrading.
>
> Saludos... :-)
>
> --
> Porqué usar una base de datos relacional cualquiera,
> si podés usar PostgreSQL?
> -
> Martín Marqués  |[EMAIL PROTECTED]
> Programador, Administrador, DBA |   Centro de Telematica
>Universidad Nacional
> del Litoral
> -
>
> --
> 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] COM

2001-09-29 Thread Mike

Hi All
Where is some good info on useing COM or DCOM with PHP?

Both of my scripts bellow fail and I cannot seem to find why.


or
Version}\n";
$word->Visible = 1;
$word->Documents->Add();
$word->Selection->TypeText("This is a test...");
$word->Documents[1]->SaveAs("Useless test.doc");
$word->Quit();
?>

Running on Win2K PHP 4.0.6

Sorry if it bugs anyone that I posted here and the WinDoze as well but no
seemed home thereBusy rebooting I guess



-- 
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] Get current date and time

2001-09-29 Thread Martin Kampherbeek

These worked. Thanks


- Original Message -
From: Kurt Lieber <[EMAIL PROTECTED]>
To: 'Martin Kampherbeek' <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Sunday, September 30, 2001 2:34 AM
Subject: RE: [PHP] Get current date and time


> How about one of the mirrors closer to you:
>
> http://php.nederland.net/
> http://nl2.php.net/
> http://nl.php.net/
>
> Or are they all down, too?
>
> Regarding your specific question, you can find the answer either in the
> mySQL manual, as originally suggested, or even in the PHP manual as the
> second person suggested.  (Though that kind of comparison is better done
> in a database, IMO)
>
> --kurt
>
> > -Original Message-
> > From: Martin Kampherbeek [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, September 29, 2001 4:52 PM
> > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > Subject: Re: [PHP] Get current date and time
> >
> >
> > www.php.net is down or somthing like that.
> >
> >
> > - Original Message -
> > From: Joe Kaiping <[EMAIL PROTECTED]>
> > To: 'Martin Kampherbeek' <[EMAIL PROTECTED]>;
> > <[EMAIL PROTECTED]>
> > Sent: Sunday, September 30, 2001 1:51 AM
> > Subject: RE: [PHP] Get current date and time
> >
> >
> > > You might want to check out
> > >
> > > http://www.php.net/manual/en/function.time.php
> > >
> > > -Joe
> > >
> > > > -Original Message-
> > > > From: Martin Kampherbeek [mailto:[EMAIL PROTECTED]]
> > > > Sent: Saturday, September 29, 2001 4:28 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: [PHP] Get current date and time
> > > >
> > > >
> > > > I have a date and time in my database like this
> > 2001-09-30 02:37:01
> > > >
> > > > Now I want to check if this one is lower then the current
> > date and
> > > > time. But how do I get the current date and time?
> > > >
> > > > And do I check it like: where time < currenttime?
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > 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] Get current date and time

2001-09-29 Thread Kurt Lieber

How about one of the mirrors closer to you:

http://php.nederland.net/
http://nl2.php.net/
http://nl.php.net/

Or are they all down, too?

Regarding your specific question, you can find the answer either in the
mySQL manual, as originally suggested, or even in the PHP manual as the
second person suggested.  (Though that kind of comparison is better done
in a database, IMO)

--kurt

> -Original Message-
> From: Martin Kampherbeek [mailto:[EMAIL PROTECTED]] 
> Sent: Saturday, September 29, 2001 4:52 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [PHP] Get current date and time
> 
> 
> www.php.net is down or somthing like that.
> 
> 
> - Original Message -
> From: Joe Kaiping <[EMAIL PROTECTED]>
> To: 'Martin Kampherbeek' <[EMAIL PROTECTED]>; 
> <[EMAIL PROTECTED]>
> Sent: Sunday, September 30, 2001 1:51 AM
> Subject: RE: [PHP] Get current date and time
> 
> 
> > You might want to check out
> >
> > http://www.php.net/manual/en/function.time.php
> >
> > -Joe
> >
> > > -Original Message-
> > > From: Martin Kampherbeek [mailto:[EMAIL PROTECTED]]
> > > Sent: Saturday, September 29, 2001 4:28 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: [PHP] Get current date and time
> > >
> > >
> > > I have a date and time in my database like this 
> 2001-09-30 02:37:01
> > >
> > > Now I want to check if this one is lower then the current 
> date and 
> > > time. But how do I get the current date and time?
> > >
> > > And do I check it like: where time < currenttime?
> > >
> > >
> > >
> > >
> > > --
> > > 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]