php-general Digest 15 Apr 2001 18:00:22 -0000 Issue 629 Topics (messages 48619 through 48642): Re: next release? 48619 by: Plutarck Netscape 4.77 and PHP 48620 by: Jason Caldwell 48621 by: Adam 48624 by: Martin Skjöldebrand 48626 by: B. van Ouwerkerk 48628 by: Ben Quick 48634 by: Matt Friedman 48637 by: Miles Thompson sessions problem (and spec. Mozilla vs Opera) 48622 by: Martin Skjöldebrand Re: Sorry :( 48623 by: Plutarck 48629 by: Richard Re: converting DATETIME to a readable date. 48625 by: Plutarck Re: Sorry :(Just Testing) 48627 by: Effendi Mahfud 48630 by: Richard Mailbox and PHP 48631 by: Richard 48635 by: Martin Skjöldebrand 48636 by: Plutarck 48640 by: Richard Re: PHP without a webserver 48632 by: Yasuo Ohgaki Re: What's XML's Purpose?? 48633 by: Sander Pilon test 48638 by: george search string 48639 by: Joseph Bannon Creating thumbnails 48641 by: Lauri Vain getcwd() 48642 by: kenny.hibs Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
Nope, it 4.0.5 hasn' been released yet. However at one point I believe there was a 4.0.6dev source code on CVS, before the Midgaard extension required another round of release candidates. So I think that's where the mentions came from. And I'm sure some people are planning their features to be in 4.0.6. Then again, there are probably people who claim their features will be in PHP5 ;) -- Plutarck Should be working on something... ...but forgot what it was. "Michael Kimsal" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm seeing references to functions that 'are' in 4.0.6, but I wasn't > even > aware that 4.0.5 was released yet. I've seen references to RCs for > 4.0.5, > but nothing's on the php.net page. Did I miss something? > > > > > -- > 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] >
I've created a test.php file that dynamically loads HTML.. works totally fine in IE 5, but when I test it with Netscape 4.77 -- nothing comes up... just a totally blank page. Anyone know why this might be happening? Thanks. Jason
try sending us the sample code. I use netscape 4 for testing and it seems to work just fine.
Adam wrote: > try sending us the sample code. I use netscape 4 for testing and it seems > to work just fine. My whole project is based on inserting pieces of html. Works like a dream in Netscape 4.75 Linux. M.
>I've created a test.php file that dynamically loads HTML.. works totally >fine in IE 5, but when I test it with Netscape 4.77 -- nothing comes up... >just a totally blank page. > >Anyone know why this might be happening? Yes. You made one or more mistakes in the HTML code you're sending to the browser. NS is less forgiving then M$ IE. Just take a closer look at the HTML code.. Bye, B.
Do you use tables? If so, check all <tr>, <td>, <th> and <table> tags have a closing tag to go with them -----Original Message----- From: Jason Caldwell <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: 15 April 2001 06:55 Subject: [PHP] Netscape 4.77 and PHP >I've created a test.php file that dynamically loads HTML.. works totally >fine in IE 5, but when I test it with Netscape 4.77 -- nothing comes up... >just a totally blank page. > >Anyone know why this might be happening? > >Thanks. >Jason > > > > >-- >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] > >
This is almost always an html problem, not a php one. If a table tag or something isn't closed properly netscape will show a blank screen. IE is more (too) forgiving and assumes it knows where you meant to put the tag. Check your html and you'll fix it. Matt Friedman Spry New Media http://www.sprynewmedia.com ----- Original Message ----- From: "Jason Caldwell" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, April 14, 2001 10:55 PM Subject: [PHP] Netscape 4.77 and PHP > I've created a test.php file that dynamically loads HTML.. works totally > fine in IE 5, but when I test it with Netscape 4.77 -- nothing comes up... > just a totally blank page. > > Anyone know why this might be happening? > > Thanks. > Jason > > > > > -- > 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] > > >
Jason, Netscape is really fussy about closing tags. Have you checked to make certain you don't have a table open? Try capturing the source of the page and running it through tidy. (Available at http://www.w3.org/People/Raggett/tidy/ ) Miles At 10:55 PM 4/14/01 -0700, Jason Caldwell wrote: >I've created a test.php file that dynamically loads HTML.. works totally >fine in IE 5, but when I test it with Netscape 4.77 -- nothing comes up... >just a totally blank page. > >Anyone know why this might be happening? > >Thanks. >Jason > > > > >-- >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]
On my login page (index.php) I have at the top <? session_start(); session_destroy(); The intended function of which is to stop people from hitting the Back button to reenter the site after having logged out (which bring people to the page index.php). Now, hitting BACK on Mozilla results in failed authentication and the app closes. Hitting BACK on Opera (5.0b7 Linux) you get into the app again but selecting anything from the menus results in failed authentication. Which one is behaving correctly? Is it a bug in Opera (hopefully). If, when logged in you go somewhere else, e.g. www.sunet.se, THEN hit back you get back in. Is there a way of stopping this? Martin S.
Remember: There are no stupid questions. Only stupid people. ...*couldn't resist* ;) -- Plutarck Should be working on something... ...but forgot what it was. ""Chris Anderson"" <[EMAIL PROTECTED]> wrote in message 002b01c0c528$7ea85a60$0d1012d1@null">news:002b01c0c528$7ea85a60$0d1012d1@null... > Well thanks everyone, don't feel like I'm "leeching" from the community > anymore. Now when it comes to me and napster, thats another story.... > ----- Original Message ----- > From: "Brian Clark" <[EMAIL PROTECTED]> > To: "PHP is not a drug." <[EMAIL PROTECTED]> > Sent: Saturday, April 14, 2001 7:47 PM > Subject: Re: [PHP] Sorry :( > > > > Hi Chris, > > > > @ 3:51:02 PM on 4/14/2001, Chris Anderson wrote: > > > > > I realized that'll that I don't do much to help this community. I > > > rarely reply to people's questions. Mainly because I have 56.6 and > > > when I get mail people answered already. I also ask alot of > > > questions. Just saying thanks for putting up with me. Chris, The 17 > > > yr Old Php Coder > > > > As far as I'm concerned, you don't have a thing to be sorry about. > > > > There isn't a thing wrong with asking questions here. In fact, if you > > have a good book and this list to get help from, you're far more > > likely to become successful with PHP. > > > > -Brian > > -- > > PGP is spoken here: 0xE4D0C7C8 > > Please, DO NOT carbon copy me on list replies. > > > > > > > > -- > > 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] >
hahaha ""Plutarck"" <[EMAIL PROTECTED]> wrote in message 9bbq7u$9vr$[EMAIL PROTECTED]">news:9bbq7u$9vr$[EMAIL PROTECTED]... > Remember: There are no stupid questions. Only stupid people. > > > ...*couldn't resist* > > ;) > > > -- > Plutarck > Should be working on something... > ...but forgot what it was. > > > ""Chris Anderson"" <[EMAIL PROTECTED]> wrote in message > 002b01c0c528$7ea85a60$0d1012d1@null">news:002b01c0c528$7ea85a60$0d1012d1@null... > > Well thanks everyone, don't feel like I'm "leeching" from the community > > anymore. Now when it comes to me and napster, thats another story.... > > ----- Original Message ----- > > From: "Brian Clark" <[EMAIL PROTECTED]> > > To: "PHP is not a drug." <[EMAIL PROTECTED]> > > Sent: Saturday, April 14, 2001 7:47 PM > > Subject: Re: [PHP] Sorry :( > > > > > > > Hi Chris, > > > > > > @ 3:51:02 PM on 4/14/2001, Chris Anderson wrote: > > > > > > > I realized that'll that I don't do much to help this community. I > > > > rarely reply to people's questions. Mainly because I have 56.6 and > > > > when I get mail people answered already. I also ask alot of > > > > questions. Just saying thanks for putting up with me. Chris, The 17 > > > > yr Old Php Coder > > > > > > As far as I'm concerned, you don't have a thing to be sorry about. > > > > > > There isn't a thing wrong with asking questions here. In fact, if you > > > have a good book and this list to get help from, you're far more > > > likely to become successful with PHP. > > > > > > -Brian > > > -- > > > PGP is spoken here: 0xE4D0C7C8 > > > Please, DO NOT carbon copy me on list replies. > > > > > > > > > > > > -- > > > 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] >
The I "now" get a date from MySQL (hehe) is to use UNIX_TIMESTAMP then feed it over to date. That way if I want to change the way the date is displayed, I don't have to touch my query syntax. And I personally find it easier to use PHP's date() function rather than MySQL's. -- Plutarck Should be working on something... ...but forgot what it was. "Chris Adams" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On 14 Apr 2001 17:31:02 -0700, DRN <[EMAIL PROTECTED]> wrote: > >$date = $row["date"]; > > > >$new_date = date("l, j M Y, G:i:s", strtotime($date)); > >~~ > > > >but I cannot get this to work :(, I get an "unexpected error in > >date()" > > At a guess strtotime() is choking on the format MySQL used to return the date, > which would lead date() to fail as well. > > The best way of handling this is to eliminate the need for your program to > worry about the day formats. Modify your mysql query so that instead of "SELECT > date" you have something like "SELECT UNIX_TIMESTAMP(date) AS date". Then you > can simply use date($row["date"]) directly. Alternately, you could use MySQL's > date formatting function to return the desired format directly. In either case, > you'll save a great deal of trouble by avoiding the need for PHP and MySQL to > be parsing each other's human-readable date formats. > > -- > 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] >
> -----Original Message----- > From: Plutarck [SMTP:[EMAIL PROTECTED]] > Sent: Sunday, April 15, 2001 4:38 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Sorry :( > > Remember: There are no stupid questions. Only stupid people. > > > ...*couldn't resist* > > ;) > > > -- > Plutarck > Should be working on something... > ...but forgot what it was. > > > ""Chris Anderson"" <[EMAIL PROTECTED]> wrote in message > 002b01c0c528$7ea85a60$0d1012d1@null">news:002b01c0c528$7ea85a60$0d1012d1@null... > > Well thanks everyone, don't feel like I'm "leeching" from the community > > anymore. Now when it comes to me and napster, thats another story.... > > ----- Original Message ----- > > From: "Brian Clark" <[EMAIL PROTECTED]> > > To: "PHP is not a drug." <[EMAIL PROTECTED]> > > Sent: Saturday, April 14, 2001 7:47 PM > > Subject: Re: [PHP] Sorry :( > > > > > > > Hi Chris, > > > > > > @ 3:51:02 PM on 4/14/2001, Chris Anderson wrote: > > > > > > > I realized that'll that I don't do much to help this community. I > > > > rarely reply to people's questions. Mainly because I have 56.6 and > > > > when I get mail people answered already. I also ask alot of > > > > questions. Just saying thanks for putting up with me. Chris, The 17 > > > > yr Old Php Coder > > > > > > As far as I'm concerned, you don't have a thing to be sorry about. > > > > > > There isn't a thing wrong with asking questions here. In fact, if you > > > have a good book and this list to get help from, you're far more > > > likely to become successful with PHP. > > > > > > -Brian > > > -- > > > PGP is spoken here: 0xE4D0C7C8 > > > Please, DO NOT carbon copy me on list replies. > > > > > > > > > > > > -- > > > 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]
There is PHP.TEST if you would like to test your posts "Effendi Mahfud" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > > -----Original Message----- > > From: Plutarck [SMTP:[EMAIL PROTECTED]] > > Sent: Sunday, April 15, 2001 4:38 PM > > To: [EMAIL PROTECTED] > > Subject: Re: [PHP] Sorry :( > > > > Remember: There are no stupid questions. Only stupid people. > > > > > > ...*couldn't resist* > > > > ;) > > > > > > -- > > Plutarck > > Should be working on something... > > ...but forgot what it was. > > > > > > ""Chris Anderson"" <[EMAIL PROTECTED]> wrote in message > > 002b01c0c528$7ea85a60$0d1012d1@null">news:002b01c0c528$7ea85a60$0d1012d1@null... > > > Well thanks everyone, don't feel like I'm "leeching" from the community > > > anymore. Now when it comes to me and napster, thats another story.... > > > ----- Original Message ----- > > > From: "Brian Clark" <[EMAIL PROTECTED]> > > > To: "PHP is not a drug." <[EMAIL PROTECTED]> > > > Sent: Saturday, April 14, 2001 7:47 PM > > > Subject: Re: [PHP] Sorry :( > > > > > > > > > > Hi Chris, > > > > > > > > @ 3:51:02 PM on 4/14/2001, Chris Anderson wrote: > > > > > > > > > I realized that'll that I don't do much to help this community. I > > > > > rarely reply to people's questions. Mainly because I have 56.6 and > > > > > when I get mail people answered already. I also ask alot of > > > > > questions. Just saying thanks for putting up with me. Chris, The 17 > > > > > yr Old Php Coder > > > > > > > > As far as I'm concerned, you don't have a thing to be sorry about. > > > > > > > > There isn't a thing wrong with asking questions here. In fact, if you > > > > have a good book and this list to get help from, you're far more > > > > likely to become successful with PHP. > > > > > > > > -Brian > > > > -- > > > > PGP is spoken here: 0xE4D0C7C8 > > > > Please, DO NOT carbon copy me on list replies. > > > > > > > > > > > > > > > > -- > > > > 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] > > -- > 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] >
Greetings. I have no problem writing an email client in PHP, which sends emails and such things. One thing only, can I check someones POP3, such as mine, through PHP? If so, what should be needed to complete it..? The server I am using is running Linux FreeBSd (I think..) with the options for the user to change quite alot.. - Richard
Richard wrote: > Greetings. > > I have no problem writing an email client in PHP, which sends emails > and > such things. One thing only, can I check someones POP3, such as mine, > through PHP? If so, what should be needed to complete it..? The server I > am using is running Linux FreeBSd (I think..) with the options for the > user to change quite alot.. You can find a class lib in the e-mail section at the address below. Don't know how good it is, but I've done a (very) quick test and it does work. http://phpclasses.upperdesign.com/browse.html/package/2
Check out PHPost: http://webgadgets.com/ It doesn't use IMAP, so you can probably learn quite a bit how POP3 mail can be handled. One of these days I'm going to actually figure it out myself... -- Plutarck Should be working on something... ...but forgot what it was. ""Richard"" <[EMAIL PROTECTED]> wrote in message 9bc03m$3ad$[EMAIL PROTECTED]">news:9bc03m$3ad$[EMAIL PROTECTED]... > Greetings. > > I have no problem writing an email client in PHP, which sends emails and > such things. One thing only, can I check someones POP3, such as mine, > through PHP? If so, what should be needed to complete it..? The server I am > using is running Linux FreeBSd (I think..) with the options for the user to > change quite alot.. > > - Richard > > > > -- > 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] >
Thanks alot, seems to work allright. - Richard "Martin Skjöldebrand" <[EMAIL PROTECTED]> wrote in message 9bc8bf$5kb$[EMAIL PROTECTED]">news:9bc8bf$5kb$[EMAIL PROTECTED]... > Richard wrote: > > > Greetings. > > > > I have no problem writing an email client in PHP, which sends emails > > and > > such things. One thing only, can I check someones POP3, such as mine, > > through PHP? If so, what should be needed to complete it..? The server I > > am using is running Linux FreeBSd (I think..) with the options for the > > user to change quite alot.. > > > You can find a class lib in the e-mail section at the address below. Don't > know how good it is, but I've done a (very) quick test and it does work. > > http://phpclasses.upperdesign.com/browse.html/package/2 > > -- > 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] >
You can use PHP for many purposes. You can use PHP - General scripting language. (Use GCI binary with -q option. You may need other setting to meet your purpose) - GUI Application development (USE PHP-GTK) Refer to following link for PHP-GTK http://gtk.php.net/ There is compiler (I don't use it so I'm not sure if it is a really a compiler or not) for PHP that works under Windows. Look for my post in mailing list archive for URL. (I think you can find, if you search "Compiler" as keyword.) Regards, -- Yasuo Ohgaki ""Plutarck"" <[EMAIL PROTECTED]> wrote in message 9b9qu0$786$[EMAIL PROTECTED]">news:9b9qu0$786$[EMAIL PROTECTED]... > I've heard much about how PHP is far more than just a language for web > programming, and I agree. I agree enough that I would like to actually try > it. I'd like to use PHP scripting in a C/C++ program that doesn't need a > webserver as an intermediary. I basically want to use PHP in a > standalone/TCP-IP program rather than having to build a whole "IMF-esk" > hairball myself. > > > Are there any articles or documentation which focuses, or at least would > give me useful information, on how such a task would be accomplished? I'm > looking at the API documentation itself which will be helpful, but is there > anything a little more "pointed" than that? > > I'd love to see PHP grow an arm of offline scripting. It would just be > _perfect_ for compiling high-level developer-friendly scripts into a format > usable for 3D real-time environment manipulation, for instance. > > > > -- > Plutarck > Should be working on something... > ...but forgot what it was. > > > > > > -- > 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] >
XML, IMHO, can best be regarded as a layer between the real data and the application. We used to make up new formats for allmost every type of data exchange. Every type had its own format, its own parser, and because of that the same mistakes were made over and over again. Some formats weren't extensible. Parsers contain(ed) bugs. XML solves all this. If your data is suitable to be encapsulated in xml (meaning its not binary data and a little tag-overhead isn't a big deal) there is no need for these mistakes anymore. You can use a trusted, standard format, which is extensible and readable, and you can use standard tools to read and write the data. (no more, or at least less, bugs in parsers.) -S
Just a test -- george chiefmonkey@<my_pants>wisemonkeydesign.co.uk remove my_pants to reply....
What is the function to search a string? Basically, I want search a string (a url) to see if it has "www.yahoo.com" in it and if yes, tell the user their submission cannot be accepted. J
Hello everybody, I just finished reading a message from the server root and I have been told that the server I have to work with by our current project doesn't support GD and they can't install it neither. We will, however, need to create thumbnails from larger images (JPEG). Are there any other solutions that don't require installing? Some CGI scripts or something similar perhaps? Or does anybody have any other ideas? Perhaps letting another server to do the thumbnailing? There will be only a max of 20 images per day which have to be converted to a 100*200px image. Our main scripting language will be PHP and the database will be some form of SQL. Thanks in advance! Yours, Lauri
Is there a php3 alternative to the getcwd() function kenny