Re: [PHP] Incrementing dates

2001-04-21 Thread James, Yz
Hiya Martin. You'd probably be better working around a database solution to your needs, but I am a bit drunk (and probably can't sensibly attempt to answer your question properly), but it got me thinking, so I decided to have a play with date incrementations. If anyone has any comments on this,

[PHP-CVS] cvs: CVSROOT / gen_acl_file.m4

2001-04-21 Thread Thies C. Arntzen
thies Fri Apr 20 23:48:43 2001 EDT Modified files: /CVSROOTgen_acl_file.m4 Log: give asautins,dbenson karma for oci8 and docs Index: CVSROOT/gen_acl_file.m4 diff -u CVSROOT/gen_acl_file.m4:1.150 CVSROOT/gen_acl_file.m4:1.151 ---

[PHP] Recursive Childs

2001-04-21 Thread Natasha
Hiya, This is something that I'm not able to figure out : I am building something like a Yahoo! directry. I wanted to display a "new" image infront of a category, like Yahoo! does. But I want to show this even if the main category may not have any new link, but a category in that might have,

Re: [PHP] ENUM or SET and PHP

2001-04-21 Thread Christian Reiniger
On Friday 20 April 2001 19:13, Jason Caldwell wrote: Actually did that... plus sacrificed several small rodents, rubbing their internal organs all over the manual... in hopes that the PHP Gods would be kind and giving went into a cave for 12 years, then came back out ... having learned

php-general Digest 21 Apr 2001 08:56:43 -0000 Issue 640

2001-04-21 Thread php-general-digest-help
php-general Digest 21 Apr 2001 08:56:43 - Issue 640 Topics (messages 49596 through 49651): Sessions and header-redirect 49596 by: Scott 49619 by: Plutarck PERL vs. PHP 49597 by: Jason Caldwell 49598 by: Steve Lawson 49599 by: Butler, Shaun

Re: [PHP] Drag and drop

2001-04-21 Thread Kevin A Williams
Hi, Whilst you cant use PHP to implement Drag and Drop (PHP is server side, hence once compiled, its done its job), you can implement DHTML (Javascript, CSS DOM) to attain this effect. So called DHTML handles all client-side (browser) manipulation, and through DOM allows you to manipulate

Re: [PHP] Can Variables be in functions?

2001-04-21 Thread Kevin A Williams
Classic Global function definition problem inside the function, insert the line global $footercontent; Also technically, the exit command can be quite messy, a 'cleaner' method would be to use something like function generate_footer() { ? !-- footer -- /BODY /HTML ? } and then call it at

[PHP] imap

2001-04-21 Thread Martin Oust
is there any function to convert the body of a e-mail-massege from mime like you do with the imap_mime_header_decode() ??? -- 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

[PHP] mime

2001-04-21 Thread Martin Oust
is there any function to convert the body of a e-mail-massege from mime like you do with the imap_mime_header_decode() ??? -- 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

Re: [PHP] I don't get it ... suddenly my script doesn't work ...

2001-04-21 Thread Johannes Janson
Hi, a general thought at first. When posting a rahter long sxrpit it would be helpful to mark the lines which produce the errors. But now straight to the point. change the inside of your if/elseif parethesis from just the variable to (isset($variable)) respectively to (! isset($variable)).

[PHP] compiling PHP 4.04pl1 as dymanic module with Apache 1.3.19

2001-04-21 Thread David Bouw
Hi there, Till now I have always compiled and used PHP as an static module with Apache.. For the experience and to make it a little easier to compile different PHP packages I want to use PHP as an dynamic module.. Reading the documentation this seems easy... First I got apache 1.3.19 and ran:

Re: [PHP] RE: Site Sesions: Online/off...

2001-04-21 Thread Richard
Hehehe.. Yeah. Thanks alot, this will do perfectly good. - Richard ""Plutarck"" [EMAIL PROTECTED] wrote in message 9bqhpe$f3d$[EMAIL PROTECTED]">news:9bqhpe$f3d$[EMAIL PROTECTED]... If you want to make it easy on yourself, convert it into a timestamp (unix preferably). Then all you have to

Re: [PHP] PERL vs. PHP

2001-04-21 Thread Dean Hall
"Rasmus Lerdorf" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... but since you replied, can i ask what influenced you most when developing PHP? Whenever I couldn't decide what sort of syntax to use I copied C -Rasmus This makes me think that any

RE: [PHP] PERL vs. PHP

2001-04-21 Thread PHPBeginner.com
Funny! You, Rasmus, must be getting it every week at least. btw Jason, we had some very interesting discussions on how Rasmus has started PHP, look the archives - you would find it very curious. Maxim Maletsky -Original Message- From: Jason Caldwell [mailto:[EMAIL PROTECTED]]

[PHP-CVS] cvs: php4 /main php_ini.c

2001-04-21 Thread Andi Gutmans
andiSat Apr 21 04:40:05 2001 EDT Modified files: /php4/main php_ini.c Log: - Get rid of warning. Index: php4/main/php_ini.c diff -u php4/main/php_ini.c:1.55 php4/main/php_ini.c:1.56 --- php4/main/php_ini.c:1.55Sat Mar 17 15:35:32 2001 +++

[PHP] Developy a Management tree in Php

2001-04-21 Thread 453110
Hi, I have a huge problem !!! I try develop a managementtree (like W2K Management) for my Network management Tool. My 1. Problem: This Tree should be changeable about a web interface. - thats no the real problem. My 1. Problem: How I can develop this tree - I haven't any Idea. How I can do

[PHP] xml-rcp problem

2001-04-21 Thread Peter Van Dijck
Hi, I was playing with the xml-rcp example given at o'reilly http://www.oreillynet.com/pub/a/rss/2000/11/14/meerkat_xmlrpc.html which uses Edd Dumbill's PHP XML-RPC modules But when I run the example mentioned in the oreilly article (on Apache on win NT), I get a popup saying error in php.exe:

Re: [PHP] xml-rcp problem

2001-04-21 Thread Peter Van Dijck
Also, when I uncomment stuff, the line that seems to be giving the problems is: $response = $client-send($msg); When I comment that no more errors. (but nothing else either ofcourse) Peter ~~ http://liga1.com building multiple language/culture websites

[PHP] Searching arrayed file... Suggestions?

2001-04-21 Thread Richard
Greetings. I have made a try to write a search engine for a site I run. This search iterates through all links which are made up like so: "|BY|EMAIL|CATEGORY|FOLDER/BAND|LINKNAME|LINKURL|". Now, I use the code: if ($txtLinkname=="") return; $logfile="entries.txt"; $file_line =

RE: [PHP] Searching arrayed file... Suggestions?

2001-04-21 Thread Jason Lotito
And that is all the code I use. Where have I done wrong? You see, the problem is that I found only some links, but not all. And if I have a link called "Necrolust - Tribute to MayheM", it cannot find the "Necro" nor "necRO". And as you can see, I HAVE used uppercase methods to find portions

RE: [PHP] Searching arrayed file... Suggestions?

2001-04-21 Thread PHPBeginner.com
Have you evrer heard of in_array() ? could help though... :-) Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Richard [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 21,

Re: [PHP] pumping database dump in mysql

2001-04-21 Thread David Bouw
If you can do it on the command line why not just use the system function and use the command you would use on the command line..? What you try to do now is to feed the whole dump file to mysql_query.. This will never work because mysql_query will only accept one query at a time and the

[PHP] redirection

2001-04-21 Thread Kishore
How to redirect to another page in php. Is there any inbuilt function available for redirection. If possible send with example. Thanks kishor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] pumping database dump in mysql

2001-04-21 Thread Data Driven Design
Isn't that what load data infile does? http://www.mysql.com/doc/L/O/LOAD_DATA.html Data Driven Design P.O. Box 1084 Holly Hill, Florida 32125-1084 http://www.datadrivendesign.com http://www.rossidesigns.net - Original Message - From: Peter Van Dijck [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] redirection

2001-04-21 Thread Jason Brooke
header("Location: http://your.dom/file"); - Original Message - From: "Kishore" [EMAIL PROTECTED] To: "phpgeneral" [EMAIL PROTECTED] Sent: Saturday, April 21, 2001 11:28 PM Subject: [PHP] redirection How to redirect to another page in php. Is there any inbuilt function available for

Re: [PHP] redirection

2001-04-21 Thread KPortsmout
In a message dated 21/04/2001 15:31:36 GMT Daylight Time, [EMAIL PROTECTED] writes: How to redirect to another page in php. Is there any inbuilt function available for redirection. If possible send with example. Thanks kishor Use the Header call,for more info see www.php.net and

[PHP] [Apache] Win32 Virtual Host - Sub Domain

2001-04-21 Thread Jon Shoberg
Sorry for the OT post but this has me stumped and Google is not giving me any good leads. I am trying to setup Apache with PHP on Win32 (don't ask why). Anyhow, PHP is working great but virtual hosting is not going so well. When the browser brings up http://localhost/ it reads from [Apache

[PHP] ? interbase ?

2001-04-21 Thread Bart A. Verbeek
Hello, I'm internet-databasing for over a year now and only used MySQL up untill now. Last week I spoke with a guy that was interested in running Interbase on a Unix-webserver, so I've got a couple of questions... 1. Can interbase be installed and run on every Unix-type (BSD)? I've taken a

[PHP] include file using .htaccess

2001-04-21 Thread Keyur Kalaria
Hello, How can I include any html or php file via .htaccess ? I want to include an html file in a site contaning around 1000 pages. I want to add header footer dynamically on these pages . Is there any way to include header footer on these pages using .htaccess file. thanks in advance

Re: [PHP] include file using .htaccess

2001-04-21 Thread Rasmus Lerdorf
Make sure AllowOverride includes Options and put these lines in your .htaccess: php_value auto_prepend_file header.html php_value auto_append_file footer.html -Rasmus On Sat, 21 Apr 2001, Keyur Kalaria wrote: Hello, How can I include any html or php file via .htaccess ? I want to include

RE: [PHP] include file using .htaccess

2001-04-21 Thread PHPBeginner.com
the syntax for it is: php_value auto_prepend_file /full/path/to/the/prepend.inc php_value auto_append_file /full/path/to/the/append.inc or you could also do this: php_value include_path /full/path/to/the/includes php_value auto_prepend_file prepend.inc php_value auto_append_file append.inc

[PHP] user active

2001-04-21 Thread FredrikAT
Hi! I have users logging in on my site (they write news).. What is the best way to show how's online? Write to MySQL (last logged in) ? Somehow use the sessions to this ? - Fredrik A. Takle [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] unserialize returns nothing.

2001-04-21 Thread Alexander Wagner
Taylor, Stewart wrote: I'm fetching a serialized array from a database but when I call unserialize() the function returns false. Any suggestions as to why unserialize is returning false? I once had this problem when I serialized an array which contained a variable from global namespace

[PHP] Where can I get php_msql.dll?

2001-04-21 Thread Shan GAO
Can anybody tell me where I can get extension for MINI sql -- php_msql.dll for NT4.0? Cheers Shan GAO

Re: [PHP] Site Searchable function

2001-04-21 Thread ~~~i LeoNid ~~
On 20 Apr 2001 10:00:32 -0700 impersonator of [EMAIL PROTECTED] ("Matthew Luchak") planted I saw in php.general: check php.ini file for "allow fopen" I think. =20 Matthew Luchak=20 Webmaster Kaydara Inc.=20 [EMAIL PROTECTED] Thanks, I don't know if you are

[PHP] Buttons and such...

2001-04-21 Thread Jason Caldwell
I know this is off-topic -- please forgive me. But I figure someone here would know. I'm looking for some really nice *professional* looking (submit, logon, buy, help, etc) buttons for my website... I've done all kinds of searches on MSN and Yahoo -- found a ton of sites that offer all

[PHP] imap_fetch_overview vs. imap_header

2001-04-21 Thread Sigitas Paulavicius
I'm wondering why IMAP_FETCH_OVERVIEW does not return the "to" value of the message and why IMAP_HEADER does not return the UID of the message. I need both of those values, but the idea of calling two functions which are 80% the same does not sound good to me... I suppose this will at least

Re: [PHP] redirection

2001-04-21 Thread Sigitas Paulavicius
header("Location: http://any.URL/you/need") NOTE: header must be sent prior to any output. Otherwise this won't work and a warning will be issued. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

RE: [PHP] Buttons and such...

2001-04-21 Thread PHPBeginner.com
See, that's for the website. You often don't want to look same as others, do you? Then you should be making the buttons yourself, perhaps on a sexy Mac OS X with some PhotoShop or Fireworks. OK, nor even I make myself the buttons when I design a software interface for internal use. I go to

[PHP] connection problème!

2001-04-21 Thread Francois Boucher
I wrote this code but nothing append. If i look de code in the browser it's stopping to starting! What is the problème? HTMLBODY ?php echo "starting..."; if ( mysql_connect("localhost","php","php") ) { echo "ok"; } else echo "error!"; ? /BODY/HTML --

Re: [PHP] I don't get it ... suddenly my script doesn't work ...

2001-04-21 Thread Plutarck
Check your error report settings. When you refer to something like $id as: if ($id)... PHP will throw a warning that $id isn't set. It's a nice debugging feature, but a pain in the arse otherwise. The problem is PHP now has a higher error level for some reason, so just nock it down to normal.

[PHP] Re: [PHP-DB] super simple....... but!

2001-04-21 Thread andreas \(@work\)
try HTMLBODY ?php echo "starting..."; if ( mysql_connect("localhost","php","php") ) { echo "ok"; } else { echo "error!"; } ? /BODY/HTML - Original Message - From: "Francois Boucher" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, April 21, 2001

[PHP] Re: [PHP-DB] super simple....... but!

2001-04-21 Thread andreas \(@work\)
try HTMLBODY ?php echo "starting..."; if ( mysql_connect("localhost","php","php") ) { echo "ok"; } else { echo "error!"; } ? /BODY/HTML - Original Message - From: "Francois Boucher" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, April 21, 2001

Re: [PHP] I'm a moron. So?

2001-04-21 Thread Plutarck
Personally I like to use mt_rand() rather than rand() as it's billed to be faster and more random than plain old rand(). Kind of makes me wonder why they haven't just replaced rand() with mt_rand()... "seed" requires srand() for rand() and mt_srand() for mt_rand(). -- Plutarck Should be

Re: [PHP] connection problème!

2001-04-21 Thread Sigitas Paulavicius
I suggest you should check if the mysql server is running. And also you should check if there is a user "php" with password "php" and with access from "localhost" granted on your mysql server. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] connection problème!

2001-04-21 Thread Plutarck
Not enough "}". Change it to: ?php echo "starting..."; if ( mysql_connect("localhost","php","php") ) { echo "ok"; } else { echo "error!"; } ? -- Plutarck Should be working on something... ...but forgot what it was. ""Francois Boucher"" [EMAIL

Re: [PHP] Output graphic or other download file to client's browser

2001-04-21 Thread Plutarck
No real completely effective way of keeping someone from downloading an image. If they _really_ want the image they can take a screenshot then slice the image out. You could always use a *shudder* java applet, but if they're very familiar with a decompiler they can probably rip such a small

Re: [PHP] bug, querk, or mistake?

2001-04-21 Thread Rasmus Lerdorf
if($reqcat["indexname"] == $row["maincat"]){ Well, something is different about them. Are you sure there are no leading or trailing spaces? Do a strlen() on each and make sure they are the same lengths or trim() each one before the compare. -Rasmus -- PHP General Mailing List

Re: [PHP] bug, querk, or mistake?

2001-04-21 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] ("Adam Charnock") wrote: The following if statement always claims to be false. However, I print out the variables in the if (which are strings) and they are identical. Here it is: if($reqcat["indexname"] == $row["maincat"]) It would

[PHP] Buggy Java GUI? (just a tad OT)

2001-04-21 Thread Plutarck
I've been toying around with Java to possibly interface with PHP, but I have a question about it. Is it just me, or is the GUI in most standalone java applications remarkably (and annoyingly) buggy? I downloaded Forte for Java by Sun, and after the 45 second loading time I noticed that if you

Re: [PHP] Buttons and such...

2001-04-21 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] ("PHPBeginner.com") wrote: See, that's for the website. You often don't want to look same as others, do you? Then you should be making the buttons yourself, perhaps on a sexy Mac OS X with some PhotoShop or Fireworks. OK, nor even I make

Re: [PHP] Output graphic or other download file to client's browser

2001-04-21 Thread Sigitas Paulavicius
Hi It is possible though quite complicated. You must write some kind of a "proxy" with PHP. The process looks something like this: The php script checks if the user is ok, reads the image file and then echoes it out to the client. - simple as it may sound. But there is a couple of points.

RE: [PHP] [Apache] Win32 Virtual Host - Sub Domain

2001-04-21 Thread Andrew Braund
-Original Message- From: Jon Shoberg [mailto:[EMAIL PROTECTED]] Sent: Sunday, 22 April 2001 00:39 To: phpgeneral Subject: [PHP] [Apache] Win32 Virtual Host - Sub Domain Sorry for the OT post but this has me stumped and Google is not giving me any good leads. A good lead is the

Re: [PHP] Redirection II

2001-04-21 Thread Wade
I got it! :-) ""Wade"" [EMAIL PROTECTED] wrote in message 9bsudp$g23$[EMAIL PROTECTED]">news:9bsudp$g23$[EMAIL PROTECTED]... I am submitting a form to a PHP page. I would like to check the form variables before I load the page, and redirect them to another page if they variables are incorrect

Re: [PHP] Buggy Java GUI? (just a tad OT)

2001-04-21 Thread Seung-woo Nam
Hi: If you don't have plenty of ram on your machine, forget about running Forte. Java applications that use swing look nice but they use a lot of systems resources. It's not a bug, per se, but whenever your systems runs out of physical memory and start writing stuff on the virtual memory, that's

[PHP] Incrementing dates

2001-04-21 Thread Martin Skjldebrand
How do I increment dates past the turn of the month (or year)? Say I've got a booking of equipment A for the 28 April to 5 May and want to add each instance to a calendar (mysql table). Can I increment the variable (format 2001-04-28) holding the date ($txtDate++) somehow so that it doesn't add

[PHP] Re: Cool

2001-04-21 Thread Pank Floyd
-BEGIN PGP MESSAGE- Version: PGP 6.5.8ckt (Build 04) Comment: Encryption is my right.PGP-6.5.8ckt is my choice ! qANQR1DBwk4DYzEkcS8WIUEQC/wIOOdxWfRr21Oxc1f8G7amgZrOFdJ47rx7YZ5X XcQjDUlaivNQ3HZpoR5syHUc0hauWhB7Qaw9F0m/hrQNonpIT4n6iqIMo7NkoGBs