[PHP] Connecting to a MS Access database

2001-04-22 Thread Søren Soltveit
How can I connect to a Microsoft Access database, whitout using ODBC?? -- 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] [php] what creates an Transport endpoint is not connected

2001-04-22 Thread ruud habets
Brian Clark [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi ruud, @ 4:05:08 AM on 4/22/2001, ruud habets wrote: a perfectly working website suddenly went dead yesterday the resulting error is: Transport endpoint is not connected i have no idea what

RE: [PHP] Remove duplicates, as long as you have it.

2001-04-22 Thread Taylor, Stewart
Have you tried the array_unique function http://www.php.net/manual/en/function.array-unique.php -Stewart -Original Message- From: Richard [mailto:[EMAIL PROTECTED]] Sent: 22 April 2001 12:36 To: [EMAIL PROTECTED] Subject: [PHP] Remove duplicates, as long as you have it. Greetings.

[PHP] UUdecode

2001-04-22 Thread Paul A. Owen
Is there an UUdecode function in PHP? If not then how would I implement this under NT? Thanks, Paul. -- 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

Re: [PHP] Connecting to a MS Access database

2001-04-22 Thread Andrew Hill
The Access native driver IS an ODBC driver. That is, I believe, your only option. Best regards, Andrew Andrew Hill - OpenLink Software Directory of Technology Evangelism Internet Data Integration Technology http://www.openlinksw.com On Saturday,

Re: [PHP] writing to file on server

2001-04-22 Thread chris herring
unless that file you're writing to is on a different server, just put the relative location to the file. ie: ./guestbook.txt if this doesn't work I have nothing to offer you. :-\ - Original Message - From: Joeri Vankelst [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, April 22,

[PHP] Remove duplicates, as long as you have it.

2001-04-22 Thread Richard
Greetings. I have this link file which has been active for quite a while, but the problem is that when I used a "admin" program to manage the links (admin.php) it kinda wrote the file multiple times, which means that it has sorted the file and added multiple instances of the lines. How

Re: [PHP] pumping database dump in mysql

2001-04-22 Thread Christian Reiniger
On Saturday 21 April 2001 15:39, Peter Van Dijck wrote: Hi, I want to write a script that takes a mysql dump file and pumps it into the database. What about simply using phpMyAdmin? -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "Software is like sex: the best is for free"

RE: [PHP] passing variables

2001-04-22 Thread PHPBeginner.com
using POST, Cookies or sessions. session is the most appropriate way to do that. php.net/sessions Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Adam [mailto:[EMAIL

[PHP] what's wrong with this?

2001-04-22 Thread McShen
this is something related to my last post. $start is passed by the url. like http://mydomain.com/links.ph?start=0; $end =$start+15; $query = "SELECT * FROM refer ORDER BY hits desc LIMIT $start,$end"; it didn't work. Please help. -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Incrementing dates

2001-04-22 Thread PHPBeginner.com
You can (mySQL, right?) do the following: UPDATE table SET date=(date+INTERVAL 10 DAYS); so if date there was 04-28, it will be added 10 more days and so will become 05-08 Use SQL for this things, it treats dates as 'dates' while PHP treats them as integers and strings. Sincerely, Maxim

[PHP] File Download With A Twist....

2001-04-22 Thread Donovan J. Edye
G'Day, I would like to do the following when a user clicks on a link to this PHP script. The script would be located on www.myserver.com but the page with the link would be on a mirror say in Australia (www.someserver.com.au): - Log info about the user download request to a text file - Display

RE: [PHP] Incrementing dates

2001-04-22 Thread PHPBeginner.com
I am not sure on how your possibilities are, but doing this in PHP means literally "adding useless lines and loops" If possible, do it with SQL queries. Read the documentations on date datatypes, this is so much easier... almost magic. Sincerely, Maxim Maletsky Founder, Chief Developer

Re: [PHP] Recursive Childs

2001-04-22 Thread mukul
Hi, thanks for that, could you just explain how it should start, should i just call the function, how does the level get determined ??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

RE: [PHP] what's wrong with this?

2001-04-22 Thread PHPBeginner.com
$end should be 15. ie: LIMIT 50, 10 will display 10 rows starting from 51. so, it will show rows 51-60 (included) Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: McShen

Re: [PHP] help!! newbie

2001-04-22 Thread McShen
then, should i do this? --- $query = "SELECT * FROM refer ORDER BY hits desc LIMIT $i,$end"; $result = mysql_db_query ("celebzone", $query); $num = mysql_num_rows($result); echo $num; for ($i; $i $end; $i++) { $r = mysql_fetch_array($result,$i); $id = $r[id]; $title =

RE: [PHP] Incrementing dates

2001-04-22 Thread Martin Skjldebrand
PHPBeginner.com wrote: INSERT INTO table SELECT date+INTERVAL 10 DAYS AS date FROM table WHERE bla=bla; it is just a way to do it. you will definitely have to play with it. However you can easily make two queries to read the previous date combining it with INTERVAL and then do an

[PHP-CVS] cvs: php4 /sapi/thttpd thttpd_patch

2001-04-22 Thread Sascha Schumann
sas Sun Apr 22 07:00:54 2001 EDT Modified files: /php4/sapi/thttpd thttpd_patch Log: Update patch to thttpd-2.21 Index: php4/sapi/thttpd/thttpd_patch diff -u php4/sapi/thttpd/thttpd_patch:1.7 php4/sapi/thttpd/thttpd_patch:1.8 ---

Re: [PHP] Buttons and such...

2001-04-22 Thread Geir Eivind Mork
On Saturday 21 April 2001 20:15, Jason Caldwell wrote: 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 try do

php-general Digest 22 Apr 2001 09:39:44 -0000 Issue 642

2001-04-22 Thread php-general-digest-help
php-general Digest 22 Apr 2001 09:39:44 - Issue 642 Topics (messages 49704 through 49733): Redirection II 49704 by: Wade 49706 by: Wade Re: [Apache] Win32 Virtual Host - Sub Domain 49705 by: Andrew Braund Re: Buggy Java GUI? (just a tad OT) 49707 by:

Re: [PHP] Recursive Childs

2001-04-22 Thread Joe Conway
Subject: [PHP] Recursive Childs snip like hotscripts.com too, so i thought if someone could tell me how to use get all the children : ID | NAME | PARENT 1X 0 2Y 1 3Z 2 4A 2 5F 1 6G 5 if i want to get all children of 1, i want to

RE: [PHP] Incrementing dates

2001-04-22 Thread PHPBeginner.com
you can then do this: INSERT INTO table SELECT date+INTERVAL 10 DAYS AS date FROM table WHERE bla=bla; it is just a way to do it. you will definitely have to play with it. However you can easily make two queries to read the previous date combining it with INTERVAL and then do an insert.

RE: [PHP] Incrementing dates

2001-04-22 Thread Martin Skjldebrand
PHPBeginner.com wrote: I am not sure on how your possibilities are, but doing this in PHP means literally "adding useless lines and loops" If possible, do it with SQL queries. Read the documentations on date datatypes, this is so much easier... almost magic. AND You can (mySQL,

RE: [PHP] Incrementing dates

2001-04-22 Thread PHPBeginner.com
well, then you have to do it with PHP, as I said - if possible, then mySQL does it better. Try converting each date into UNIX timestamp adding to it 60*60*24*10 . It will create you a set of dates incremented by 10 days. What I previously meant was : say you design a poll, you have a table

Re: [PHP] Incrementing dates

2001-04-22 Thread Martin Skjldebrand
James, Yz wrote: If anyone has any comments on this, I'd like to hear them (there's probably a simpler way around what I have done). Here's the URL: http://www.yorkshire-zone.co.uk/date_increment.php And here's the code that powers it: HTML BODY ? $date = date("2001-04-28");

Re: [PHP] Buttons and such...

2001-04-22 Thread Plutarck
Another way of getting buttons without actually "hiring" someone is to kind of trade them work. Works especially well with people you already know, or people your friends know. You'll do a little website programming for them (like a custom form-to-email or user login system) and they'll make

RE: [PHP] Incrementing dates

2001-04-22 Thread Warren Vail
If you are looking for a PHP only solution you might try hand calculating the amount of time you want to adjust in seconds (i.e. 60 seconds x 60 minutes x 24 hours x 10 days = 864000) $newdatetime = (strtotime($otherdatetime) + 864000; I often use something similar to adjust for timezone

[PHP] passing variables

2001-04-22 Thread Adam
how could i pass a variable between pages without them seeing the variable stated in the URL? -- 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

Re: [PHP] writing to file on server

2001-04-22 Thread Plutarck
When you are using that on your site, what basically happens is that you are trying to open an FTP session with yourself. Not too efficient. So just kill off the url and use the path to your file. -- Plutarck Should be working on something... ...but forgot what it was. ""Joeri Vankelst""

Re: [PHP] UUdecode

2001-04-22 Thread Henrik Hansen
"Paul A. Owen" [EMAIL PROTECTED] wrote: Is there an UUdecode function in PHP? If not then how would I implement this under NT? a base64 decode? http://dk.php.net/manual/function.base64-decode.php else look here, there are some more:

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

2001-04-22 Thread Tim Thorburn
Hi all, Just to let you know, I found out my problem with my PHP script ... I had installed the self installer version of PHP on my system this time around, rather than installing the full version - now the script works great. Thanks again -Tim -- PHP General Mailing List

Re: [PHP] help!! newbie

2001-04-22 Thread Chris Adams
On 21 Apr 2001 19:26:03 -0700, McShen [EMAIL PROTECTED] wrote: then, should i do this? --- $query = "SELECT * FROM refer ORDER BY hits desc LIMIT $i,$end"; Is $end set at this point? Also, if you always want to display 15 records, this could just be LIMIT $i, 15. -- PHP General Mailing List

[PHP-CVS] cvs: php4(PHP_4_0_5) /win32 php4dllts.dsp

2001-04-22 Thread Harald Radi
phanto Sun Apr 22 05:14:44 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4/win32 php4dllts.dsp Log: added ext/com/com.h to PHP_4_0_5 branch Index: php4/win32/php4dllts.dsp diff -u php4/win32/php4dllts.dsp:1.32 php4/win32/php4dllts.dsp:1.32.2.1 ---

[PHP] [php] what creates an Transport endpoint is not connected

2001-04-22 Thread ruud habets
a perfectly working website suddenly went dead yesterday the resulting error is: Transport endpoint is not connected i have no idea what can be the cause of that. the error can be viewed at www.kgv.nl (just wait 30 seconds) any ideas? thanks ruud habets -- PHP General Mailing List

[PHP] help!! newbie

2001-04-22 Thread McShen
hi I have 30 links stored in a table(mysql) now. I wanna show them accorging to the traffic they send. But i don't want to list all of them in just 1 page because i will be adding 300 links soon. (I don't want my visitors to wait 3 minutes to load the links)How should i do it? I wanna do it like

[PHP-CVS] cvs: php4(PHP_4_0_5) /sapi/thttpd thttpd.c thttpd_patch

2001-04-22 Thread Sascha Schumann
sas Sun Apr 22 07:33:09 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4/sapi/thttpd thttpd.c thttpd_patch Log: Merge thttpd-2.21-related changes into 4.0.5 branch Index: php4/sapi/thttpd/thttpd.c diff -u php4/sapi/thttpd/thttpd.c:1.38

[PHP-CVS] cvs: php4 /sapi/thttpd thttpd_patch

2001-04-22 Thread Sascha Schumann
sas Sun Apr 22 07:33:58 2001 EDT Modified files: /php4/sapi/thttpd thttpd_patch Log: remove Only.* lines from patch Index: php4/sapi/thttpd/thttpd_patch diff -u php4/sapi/thttpd/thttpd_patch:1.8 php4/sapi/thttpd/thttpd_patch:1.9 ---

[PHP-CVS] cvs: php4(PHP_4_0_5) /ext/com COM.c com.h php_COM.h typedef_VARIANT.c

2001-04-22 Thread Harald Radi
phanto Sun Apr 22 04:57:18 2001 EDT Added files: (Branch: PHP_4_0_5) /php4/ext/com com.h Modified files: /php4/ext/com COM.c php_COM.h typedef_VARIANT.c Log: merging changes from main branch to fix a memory leak #sorry for

Re: [PHP] Remove duplicates, as long as you have it.

2001-04-22 Thread Richard
That removes instances in an array, I am talking about a file. Each line contains non-duplicate words, but the lines are mixed and duplicated, perhaps trippled. - Richard ""Taylor, Stewart"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Have you tried the

Re: [PHP-CVS] cvs: php4(PHP_4_0_5) /sapi/thttpd thttpd.c thttpd_patch

2001-04-22 Thread derick
On Sun, 22 Apr 2001, Sascha Schumann wrote: sas Sun Apr 22 07:33:09 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4/sapi/thttpd thttpd.c thttpd_patch Log: Merge thttpd-2.21-related changes into 4.0.5 branch Nice, when will RC8 be out? Derick Rethans

[PHP-CVS] cvs: php4(PHP_4_0_5) /ext/ircg config.m4 ircg.c php_ircg.h

2001-04-22 Thread Sascha Schumann
sas Sun Apr 22 08:17:57 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4/ext/ircg config.m4 ircg.c php_ircg.h Log: MFH allocation-related and thttpd-independence changes Index: php4/ext/ircg/config.m4 diff -u php4/ext/ircg/config.m4:1.5

[PHP] Getting a binary file from URL

2001-04-22 Thread Jaime Torres
Hi, I'm trying to get a binary file from an URL and then save it to a local disk. I'm trying this: $fd = fopen ($filename, "rb"); $contents = fread ($fd, filesize ($filename)); fclose ($fd); $fp = fopen ($tempfile, "wb"); fwrite ($fp,$contents); fclose ($fp); If I use $filename="local_file"

RE: [PHP-CVS] cvs: php4(PHP_4_0_5) /ext/ircg config.m4 ircg.c php_ircg.h

2001-04-22 Thread James Moore
sas Sun Apr 22 08:17:57 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4/ext/ircgconfig.m4 ircg.c php_ircg.h Log: MFH allocation-related and thttpd-independence changes Sascha can you please STOP MFH'ding your changes will have to wait for 4.0.6 now

RE: [PHP] Getting a binary file from URL

2001-04-22 Thread Jaime Torres
Well, it use to happen... [from function.filesize.html] int filesize (string filename) This function will not work on remote files; the file to be examined must be accessible via the server's filesystem. Ok, I screwed up. But now that I know what went wrong, how can I override this? The docs

RE: [PHP-CVS] cvs: php4(PHP_4_0_5) /ext/ircg config.m4 ircg.cphp_ircg.h

2001-04-22 Thread Sascha Schumann
On Sun, 22 Apr 2001, James Moore wrote: sas Sun Apr 22 08:17:57 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4/ext/ircg config.m4 ircg.c php_ircg.h Log: MFH allocation-related and thttpd-independence changes Sascha can you please STOP MFH'ding

[PHP-CVS] Re: [PHP-QA] RE: [PHP-CVS] cvs: php4(PHP_4_0_5) /ext/ircg config.m4ircg.c php_ircg.h

2001-04-22 Thread derick
On Sun, 22 Apr 2001, Sascha Schumann wrote: On Sun, 22 Apr 2001, James Moore wrote: Sascha can you please STOP MFH'ding Well, that really surprises me. I commit minimal changes while other people commit _huge_ patches to the release branch and noone complains about that.

[PHP-CVS] RE: [PHP-QA] RE: [PHP-CVS] cvs: php4(PHP_4_0_5) /ext/ircg config.m4 ircg.c php_ircg.h

2001-04-22 Thread James Moore
On Sun, 22 Apr 2001, James Moore wrote: sas Sun Apr 22 08:17:57 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4/ext/ircgconfig.m4 ircg.c php_ircg.h Log: MFH allocation-related and thttpd-independence changes Sascha can you

[PHP-CVS] RE: [PHP-QA] RE: [PHP-CVS] cvs: php4(PHP_4_0_5) /ext/ircg config.m4 ircg.c php_ircg.h

2001-04-22 Thread Liz
Depending on the changes whether they are more enhancements or showing stopping bug fixes, could they not be withdrawn and put in as first changes for 4.0.6? -Original Message- From: James Moore [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 22, 2001 5:01 PM To: Sascha Schumann Cc:

[PHP] weird mail() behaviour

2001-04-22 Thread Christian Dechery
I have a formmail script that works both under Win32 as in Linux. It has a function email() that calls either mail() if in Win32 or sendmail() if in Linux... in Linux this sendmail() function works exactly as mail() but calling a popen() to sendmail... and it works fine.. but sometimes in Win

Re: [PHP] Getting a binary file from URL

2001-04-22 Thread Sigitas Paulavicius
Solution #1 $contents = fread ($pointer, 1); Solution #2 $contents=""; while ($partial = fread ($pointer, 8192)) { $contents.=$partial; }; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP-CVS] RE: [PHP-QA] RE: [PHP-CVS] cvs: php4(PHP_4_0_5)/ext/ircg config.m4 ircg.c php_ircg.h

2001-04-22 Thread Cameron
well, im not about to test ircg but im going to do the rounds with testing thttpd yet again. would be nice to have some form of limiting in thttpd like the apache virtualhost stuff how you can set prepends and execuction limits etc. but i think thats a bit much to get added at this time Cameron

Re: [PHP-CVS] RE: [PHP-QA] RE: [PHP-CVS] cvs: php4(PHP_4_0_5)/ext/ircg config.m4 ircg.c php_ircg.h

2001-04-22 Thread Sascha Schumann
On Mon, 23 Apr 2001, Cameron wrote: well, im not about to test ircg but im going to do the rounds with testing thttpd yet again. would be nice to have some form of limiting in thttpd like the apache virtualhost stuff how you can set prepends and execuction limits etc. but i think thats a bit

[PHP] strtok not working...

2001-04-22 Thread Christian Dechery
I have a chunk of text like this: $string="bla bla bla (12837) ble blo bli sjhs9 39udjkd"; I only want "bla bla bla" out of it... what is wrong with: $newString = strtok ($string,"(128"); altough this seems to work: $newStrArray = explode("(128",$string); so $newStrArray[0] would have

Re: [PHP-CVS] RE: [PHP-QA] RE: [PHP-CVS] cvs: php4(PHP_4_0_5)/ext/ircgconfig.m4 ircg.c php_ircg.h

2001-04-22 Thread Cameron
yes but thats thttpd wide, not per host or per directory i have been sitting and thinking about it since i sent that message and i could imagine it being not TOO hard to create that in a xml file with all the hosts listed and their restrictions but that would still be a lot of coding for the

Re: [PHP-CVS] RE: [PHP-QA] RE: [PHP-CVS] cvs: php4(PHP_4_0_5)/ext/ircgconfig.m4ircg.c php_ircg.h

2001-04-22 Thread Sascha Schumann
On Mon, 23 Apr 2001, Cameron wrote: yes but thats thttpd wide, not per host or per directory That is why it said "thttpd-specific configs". i have been sitting and thinking about it since i sent that message and i could imagine it being not TOO hard to create that in a xml file with all

RE: [PHP-CVS] cvs: php4(PHP_4_0_5) /ext/ircg config.m4 ircg.c php_ircg.h

2001-04-22 Thread Zeev Suraski
I'm going to base 4.0.5 on the RC7 tag, so this won't make it in anyway. Zeev At 18:35 22/4/2001, James Moore wrote: sas Sun Apr 22 08:17:57 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4/ext/ircgconfig.m4 ircg.c php_ircg.h Log: MFH

[PHP] Link Color Questions

2001-04-22 Thread Mark Lo
Hi, I would like to know how to make different link in different color on one page. etc. www.domain1.com in blue color www.domain2.com in red color www.domain3.com in orange color Thank you for your help Mark -- PHP General Mailing List (http://www.php.net/) To

[PHP] Apache, PHP, Windows XP, MSIE 6, Cheese, and Cookies.

2001-04-22 Thread Padraic Tynan
Hey, I'm new to the list, and this issue may have already been addressed... It seems that with Apache and PHP (running in Windows XP Beta 2, which identifies to Apache as an NT system) as the server and being accessed by MSIE 6.0b or MSIE 5.5 that cheese doesn't taste right. No, wait, that's

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

2001-04-22 Thread Geir Eivind Mork
On Saturday 21 April 2001 04:42, [EMAIL PROTECTED] wrote: Alrighty. I'm baack! Anyways, I seem to be having stupid little problems, al of which are driving me insane. I'll feel really stupid when you tell me the problem. A friend told me something about "seeding" for random() but I

[PHP] imap ssl on port 993

2001-04-22 Thread Drew Adams
Can anyone tell me the correct syntax for connecting to an imap server using imap_open and an ssl connection. normally $link = imap_open ("{mail.whatever.com:143}", "username", "password"); Is this the correct way to do it for ssl? ... because it is not working for me. ssl

Re: [PHP] writing to file on server

2001-04-22 Thread Joeri Vankelst
But when I try using the path to the file I get denied permission ... How can I use my password then? Or can I bypass that in some way? ""Plutarck"" [EMAIL PROTECTED] wrote in message 9bupqt$b8s$[EMAIL PROTECTED]">news:9bupqt$b8s$[EMAIL PROTECTED]... When you are using that on your site, what

[PHP] CGI x DSO: Output Buffering

2001-04-22 Thread Christian Dechery
As I've seen and tested, Apache running in Win2k won't do output buffering running PHP as CGI. But will perfectly running PHP as DSO. Any explanations? . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web Developer -- PHP General

Re: [PHP] problem with storing displaying image in db

2001-04-22 Thread Steve Lawson
Why not just store the filename? SL. - Original Message - From: "Keyur Kalaria" [EMAIL PROTECTED] To: "php" [EMAIL PROTECTED] Sent: Saturday, April 21, 2001 9:52 AM Subject: [PHP] problem with storing displaying image in db Hello everybody, I am facing a strange problem while

[PHP] Re: Linux Suggestion

2001-04-22 Thread Padraic Tynan
You know, that's a tad rude, just suggestion an OS switch like that. : I mean, my http server isn't the only thing I run -- this is my personal use computer. Windows XP Beta contains the sum total of what Windows has been up to now, so I don't think the OS has very much to do with it. I just

php-general Digest 22 Apr 2001 21:49:08 -0000 Issue 643

2001-04-22 Thread php-general-digest-help
php-general Digest 22 Apr 2001 21:49:08 - Issue 643 Topics (messages 49734 through 49765): Re: Incrementing dates 49734 by: PHPBeginner.com 49738 by: Martin Skjöldebrand 49742 by: PHPBeginner.com 49747 by: Warren Vail Re: UUdecode 49735 by: Henrik

RE: [PHP-CVS] cvs: php4(PHP_4_0_5) /ext/ircg config.m4 ircg.c php_ircg.h

2001-04-22 Thread Sascha Schumann
On Sun, 22 Apr 2001, Zeev Suraski wrote: I'm going to base 4.0.5 on the RC7 tag, so this won't make it in anyway. It would be really inconvenient for users of PHP, if PHP 4.0.5 would not be compatible with existing web-servers. Would you mind explaining how you came to the

[PHP-CVS] RE: [PHP-QA] RE: [PHP-CVS] cvs: php4(PHP_4_0_5) /ext/ircg config.m4 ircg.c php_ircg.h

2001-04-22 Thread Liz
It would be really inconvenient for users of PHP, if PHP 4.0.5 would not be compatible with existing web-servers. Would you mind explaining how you came to the conclusion that PHP 4.0.5 needs to be based on the RC7 tag? Without leaping into a battle that isnt mine.. (so

RE: [PHP-CVS] cvs: php4(PHP_4_0_5) /ext/ircg config.m4 ircg.c php_ircg.h

2001-04-22 Thread Zeev Suraski
At 22:47 22/4/2001, Sascha Schumann wrote: On Sun, 22 Apr 2001, Zeev Suraski wrote: I'm going to base 4.0.5 on the RC7 tag, so this won't make it in anyway. It would be really inconvenient for users of PHP, if PHP 4.0.5 would not be compatible with existing web-servers. Would

Re: [PHP] writing to file on server

2001-04-22 Thread Felix Kronlage
On Sun, Apr 22, 2001 at 03:06:04PM -0700, Adam wrote: chmod the file to 777, this will allow anyone write permission to the file and thus you will be able to append to the file file-mode 777 is ugo=rwx. You want 'chmod 666', which is ugo=rw. read is 4 write is 2 execute is 1 If you want rw

RE: [PHP-CVS] cvs: php4(PHP_4_0_5) /ext/ircg config.m4 ircg.c php_ircg.h

2001-04-22 Thread Andi Gutmans
I don't want to get into it but you had a big problem with config.m4 changes during RC's when I added the fastcgi support. Anyway no need to make a big deal about it but you almost killed me back then as config.m4 could potentially create problems for the whole release. Andi At 09:47 PM

[PHP-CVS] Re: [PHP-QA] RE: [PHP-CVS] cvs: php4(PHP_4_0_5) /ext/ircg config.m4ircg.c php_ircg.h

2001-04-22 Thread derick
On Sun, 22 Apr 2001, Zeev Suraski wrote: At 22:47 22/4/2001, Sascha Schumann wrote: On Sun, 22 Apr 2001, Zeev Suraski wrote: I'm going to base 4.0.5 on the RC7 tag, so this won't make it in anyway. It would be really inconvenient for users of PHP, if PHP 4.0.5 would not be

[PHP] What's wrong with this code?

2001-04-22 Thread Tyler Longren
$file = fopen("includes/about.inc", "r"); $data = fread($file, 2400); $stripped = stripslashes($data); $formatted_data = nl2br($stripped); echo "$formatted_data"; Any ideas why that doesn't work on one server but it will work on another server? The server it works on is Win2k, IIS5,

[PHP-CVS] Re: [PHP-QA] RE: [PHP-CVS] cvs: php4(PHP_4_0_5) /ext/ircg config.m4 ircg.c php_ircg.h

2001-04-22 Thread Zeev Suraski
I disagree. Bug fixes are endless (this is not just a figure of speech), and if we schedule another RC every time someone fixes a bug, we'll never release. None of the bugs fixed since RC7 are showstoppers, so the show goes on... Zeev At 23:56 22/4/2001, [EMAIL PROTECTED] wrote: On Sun, 22

Re: [PHP] Recursive Childs

2001-04-22 Thread Joe Conway
Subject: Re: [PHP] Recursive Childs thanks for that, could you just explain how it should start, should i just call the function, how does the level get determined ??? After the function ends, starting at * $conn = pg_connect("dbname=mydb user=postgres");

[PHP] is there something like get_time_limit() ?

2001-04-22 Thread almir
is it possible to get time limit of script on server ? almir -- 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] Reference to arrays

2001-04-22 Thread Wayne Parrott
Hi, I'm trying to make a reference to an array but it doesn't seem to work, is this supported? am i doing it wrong? Here is the code... $this-level[$this-breaklevel][column] = $col; $this-level[$this-breaklevel][level] = $this-breaklevel;

Re: [PHP] is there something like get_time_limit() ?

2001-04-22 Thread CC Zona
In article 9bvs8e$g9p$[EMAIL PROTECTED], [EMAIL PROTECTED] ("almir") wrote: is it possible to get time limit of script on server ? Since the "max_execution_time" can be set in php.ini, the current value should be displayable with a call to phpinfo(). I expect you can also check that value

[PHP] Incrementing a String Name

2001-04-22 Thread Chris Aitken
Hi Just a quick puzzle I cant seem to get around at the moment... Im trying to create a loop that increments the string name by a digit. For example, if I had the following 4 strings submitted to a script. $name1 $name2 $name3 $name4 What I want to do is create a while loop that will

Re: [PHP] Incrementing a String Name

2001-04-22 Thread Andreas Landmark
On Mon, Apr 23, 2001 at 10:58:20AM +1000, Chris Aitken produced this golden nugget: Hi Just a quick puzzle I cant seem to get around at the moment... Im trying to create a loop that increments the string name by a digit. For example, if I had the following 4 strings submitted to a

Re: [PHP] Connecting to a MS Access database

2001-04-22 Thread Steve Maroney
This brings up a question that I always wondered. Does Access have server functionality? Where do you configure these settings ? Thanks, Steve On Sat, 21 Apr 2001, Andrew Hill wrote: The Access native driver IS an ODBC driver. That is, I believe, your only option. Best regards, Andrew

RE: [PHP] redirection to another page function

2001-04-22 Thread Jason Murray
Is there any PHP native function to redirect to another page or URL? No, because you can only redirect a browser to another page using the appropriate HTTP command (it is a header) or JavaScript. I would like that once the user clicks on home.php4 and a few verifications are done, he/she

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

2001-04-22 Thread Andrei Zmievski
andrei Sun Apr 22 17:24:06 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Access to PHP-GTK docs for Markus. Index: CVSROOT/avail diff -u CVSROOT/avail:1.150 CVSROOT/avail:1.151 --- CVSROOT/avail:1.150 Thu Apr 19 20:34:10 2001

Re: [PHP] Incrementing a String Name

2001-04-22 Thread Tom Rogers
Hi Here is another way $x = 1; while($x 5): $index = "name".$x; $name = $$index; echo $name."br"; endwhile; had troubles with echo and $$variable, thats why the extra stephabit Tom At 10:58 AM 23/04/01 +1000, Chris Aitken wrote: Hi Just a quick puzzle I cant

RE: [PHP] redirection to another page function

2001-04-22 Thread Christian Dechery
At 11:22 23/4/2001 +1000, Jason Murray wrote: Is there any PHP native function to redirect to another page or URL? No, because you can only redirect a browser to another page using the appropriate HTTP command (it is a header) or JavaScript. I would like that once the user clicks on

[PHP] Printing

2001-04-22 Thread Dmitry
Hello, all! Do you know, can I print some page using PHP or JavaScript? Dmitry. [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

RE: [PHP] redirection to another page function

2001-04-22 Thread Christian Dechery
At 11:56 23/4/2001 +1000, you wrote: I never had any trouble using header() to redirect, but wouldn't something like this work even better (without worring about previous outputs)?? function redirect($dest) { ? script language="JavaScript"

RE: [PHP] redirection to another page function

2001-04-22 Thread Jason Murray
Yeah... I know that... but, c'mon... a browser that doesn't support Javascript can't surf trough at least 30% of all websites... it's the absolute minority. Netscape itself is a minority. That's not the point. You should be writing the code such that you shouldn't need to make this kind of

RE: [PHP] redirection to another page function

2001-04-22 Thread Chris Aitken
At 11:15 PM 22/04/2001, Christian Dechery wrote: Yeah... I know that... but, c'mon... a browser that doesn't support Javascript can't surf trough at least 30% of all websites... it's the absolute minority. Netscape itself is a minority. While its true Netscape is a minority, and browsers not

Re: [PHP] Printing

2001-04-22 Thread Chris Anderson
try the javascript print() command - Original Message - From: "Dmitry" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, April 22, 2001 10:11 PM Subject: [PHP] Printing Hello, all! Do you know, can I print some page using PHP or JavaScript? Dmitry.

RE: [PHP] redirection to another page function

2001-04-22 Thread Christian Dechery
At 12:22 23/4/2001 +1000, Chris Aitken wrote: At 11:15 PM 22/04/2001, Christian Dechery wrote: Yeah... I know that... but, c'mon... a browser that doesn't support Javascript can't surf trough at least 30% of all websites... it's the absolute minority. Netscape itself is a minority. While its

RE: [PHP] redirection to another page function

2001-04-22 Thread Jason Murray
I work on a e-commerce website (coding in ASP, but what can I do?) with lots of JavaScript calls that in some cases are the heart of the operation, and we never had any trouble or complaints with it. I want your job. We have people complain every time we set a cookie. Imagine the fuss

RE: [PHP] redirection to another page function

2001-04-22 Thread Christian Dechery
At 12:42 23/4/2001 +1000, you wrote: I work on a e-commerce website (coding in ASP, but what can I do?) with lots of JavaScript calls that in some cases are the heart of the operation, and we never had any trouble or complaints with it. I want your job. I don't think u do. :) ASP sux.

RE: [PHP] redirection to another page function

2001-04-22 Thread Christian Dechery
At 12:48 23/4/2001 +1000, Chris Aitken wrote: At 11:40 PM 22/04/2001, you wrote: I justed pointed out that it could work nicely... and I just tought of that... I user header("location: ... ") on all my scripts and struggle to put them before any output (that's not easy)... I work on a

Re: [PHP] web page grab

2001-04-22 Thread Michael Hall
In other words ... $grab = eregi("wish(.*)numbers ."); the (.*) is what you're grabbing. You don't need to include the entire file up to 'wish' and beyond 'numbers', just enough to make a unique portion. Mick I'm trying to grab content from another web page. After having

Re: [PHP] web page grab

2001-04-22 Thread nicuc.ac.jp
I thinks you should use eregi_replace (http://www.php.net/manual/en/function.eregi-replace.php) and then strip_tags (http://www.php.net/manual/function.strip-tags.php) to strip HTML tag from string . so, you will get a plain text of the grab page. -- -Tuna- "Ed Lazor" [EMAIL PROTECTED] wrote

RE: [PHP] Counting Words In a String

2001-04-22 Thread Greg Donald
I want to check a string and return the amount of words present in it. These strings could be quite large, some higher than 100,000 characters. I realize I could explode the string on the whitespace and count the number of values. However, I'm not sure this would be the most optimized

[PHP] calculate length between date to date

2001-04-22 Thread [EMAIL PROTECTED]
Hi all I have 2 variables here that store date start and date end, I want to compare the lenght between the start date and the end date, how would I do that? $dateStart = $year . $mon . $date ; ( for instance, it will return 20010102) $dateEnd = $yearEnd . $monEnd . $dateEnd ; ( for instance, it

RE: [PHP] calculate length between date to date

2001-04-22 Thread Jason Murray
I have 2 variables here that store date start and date end, I want to compare the lenght between the start date and the end date, how would I do that? $dateStart = $year . $mon . $date ; ( for instance, it will return 20010102) $dateEnd = $yearEnd . $monEnd . $dateEnd ; ( for instance,

Re: [PHP] redirection to another page function

2001-04-22 Thread Adam
use the javascript function, but also use as backup plan such as a link at the bottom or even code at the top like this: /// if (conditionals == true) { header(location:home.html); } // that way

[PHP] IMAP Help

2001-04-22 Thread Nashirak Bosk
I am experimenting a little with IMAP and was wondering exactly how to send mail to mailboxes that you create with the imap_createmailbox(). I know that it puts a file under an account like INBOX.whatever, but, as I said dont know exactly how to send mail to this mailbox. Now I might totally

  1   2   >