Re: [PHP] What's wrong with this code?

2001-04-22 Thread Chris Fry
I think you need to specify the full path rather than relative when using fopen eg: $file = fopen("/usr/local/apache/htocs/includes/about.inc", "r"); Chris Alexander Wagner wrote: > Tyler Longren wrote: > > $file = fopen("includes/about.inc", "r"); > > $data = fread($file, 2400); > [..] >

Re: [PHP] Where can I get php_msql.dll?

2001-04-22 Thread elias
try: www.php4win.de -elias http://eassoft.cjb.net ""Shan GAO"" <[EMAIL PROTECTED]> wrote in message 002501c0ca82$116784d0$579a86cb@shans">news:002501c0ca82$116784d0$579a86cb@shans... Can anybody tell me where I can get extension for MINI sql -- php_msql.dll for NT4.0? Cheers Shan GAO -- P

Re: [PHP] What's wrong with this code?

2001-04-22 Thread Alexander Wagner
Tyler Longren wrote: > $file = fopen("includes/about.inc", "r"); > $data = fread($file, 2400); [..] > 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, php4.0.4pl1. > The server it doesn't work on is Linux, Apache, php4

Re: [PHP] php powered forums

2001-04-22 Thread Nick Terzich
http://www.vbulletin.com/ > Can anyone recommend a good php powered forum that > I could use on my > site. = -- Nick Terzich Creative Director - PopSmack, LLC Insane Advertising Posse http://www.popsmack.com/studio __ Do You Yahoo!? Yahoo! Au

[PHP-CVS] cvs: php4(PHP_4_0_5) / configure.in

2001-04-22 Thread Jani Taskinen
sniper Sun Apr 22 23:36:51 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4 configure.in Log: MFH Index: php4/configure.in diff -u php4/configure.in:1.221.4.9 php4/configure.in:1.221.4.10 --- php4/configure.in:1.221.4.9 Mon Apr 2 14:09:21 2001 +++ php4

RE: [PHP] Remove headers and footer from printed pages.

2001-04-22 Thread Peter Houchin
I suggest you just send a email around to people with the instructions on how to do it :) -Original Message- From: Peter Houchin [mailto:[EMAIL PROTECTED]] Sent: Monday, April 23, 2001 4:34 PM To: Dezider Góra; PHP General Subject: RE: [PHP] Remove headers and footer from printed p

RE: [PHP] Remove headers and footer from printed pages.

2001-04-22 Thread Peter Houchin
you have to do it manually in IE & NS as far as i know to do in NS click on file then page set up uncheck all things to do with header and footer click ok Peter -Original Message- From: Dezider Góra [mailto:[EMAIL PROTECTED]] Sent: Monday, April 23, 2001 4:25 PM To: PHP G

[PHP] Remove headers and footer from printed pages.

2001-04-22 Thread Dezider Góra
Hi guys, I have created a little "order" system for our company internal needs, and when I want to print the order, I use a special page, that has a jpg picture as a background and all items are positioned absolutely on the picture. This thing makes all the frames and lines look good. Now, whe

Re: [PHP] php powered forums

2001-04-22 Thread David Robley
On Mon, 23 Apr 2001 15:34, kenny.hibs wrote: > Don't know if this id the place to ask but > Can anyone recommend a good php powered forum that I could use on my > site. > > kenny Phorum - http://www.phorum.org/ -- David Robley| WEBMASTER & Mail List Admin RESEAR

[PHP] php powered forums

2001-04-22 Thread kenny.hibs
Don't know if this id the place to ask but Can anyone recommend a good php powered forum that I could use on my site. kenny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the lis

[PHP-CVS] cvs: php4 / configure.in

2001-04-22 Thread Rasmus Lerdorf
rasmus Sun Apr 22 23:00:43 2001 EDT Modified files: /php4 configure.in Log: Uh, weird typo. Wonder when that crept in. Index: php4/configure.in diff -u php4/configure.in:1.236 php4/configure.in:1.237 --- php4/configure.in:1.236 Sat Apr 21 18:16:2

[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 mis

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 wa

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"

[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

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 opti

Re: [PHP] Re: Linux Suggestion

2001-04-22 Thread Jason Caldwell
>> Windows XP Beta contains the sum total of what Windows has been up to now Well, kinda... but not really.. XP is a re-write and is an offshoot of 2000 (although, not really 2000 / NT) -- so it is experimental (as its still in B.) I have not experienced your problem... however, I would recommen

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

Re: [PHP] web page grab

2001-04-22 Thread Michael Hall
Something like this: $grab = eregi("Some leading code(.*)Some trailing code"); the (.*) is what you're grabbing. Mick On Sun, 22 Apr 2001, Ed Lazor wrote: > Hi =) > > I'm trying to grab content from another web page. After having browsed > through the mailing list archives and such, it lo

[PHP] web page grab

2001-04-22 Thread Ed Lazor
Hi =) I'm trying to grab content from another web page. After having browsed through the mailing list archives and such, it looks like I'll need to use the eregi_replace function, but I'm not sure how to properly format the command. The goal is to get rid of everything from the start of the

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

RE: [PHP] redirection to another page function

2001-04-22 Thread Chris Aitken
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 e-commerce website (coding in ASP, but what can I d

[PHP] Counting Words In a String

2001-04-22 Thread Jason Beebe
Hi, 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 way to

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 w

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. > >W

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 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 no

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

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) > > { > > ?> > > > > parent.locatio

[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 Jason Murray
> 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) > { > ?> > > parent.location.href=''; > > } > >

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

Re: [PHP] Incrementing a String Name

2001-04-22 Thread Meir kriheli
On Monday 23 April 2001 03:58, Chris Aitken wrote: > 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 > $na

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.""; 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 s

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

RE: [PHP] redirection to another page function

2001-04-22 Thread Tyler Longren
header ("Location: http://www.location.com/home.html"); > -Original Message- > From: Carlos Fernando Scheidecker Antunes [mailto:[EMAIL PROTECTED]] > Sent: Sunday, April 22, 2001 8:19 PM > To: PHP-GENERAL > Subject: [PHP] redirection to another page function > Importance: High > > > Hel

[PHP] redirection to another page function

2001-04-22 Thread Carlos Fernando Scheidecker Antunes
Hello all! Is there any PHP native function to redirect to another page or URL? I would like that once the user clicks on home.php4 and a few verifications are done, he/she would be redirected to home.html. Thanks, C.F.

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, > An

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 s

[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 prin

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 valu

[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;

[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 +++

[PHP] PHP4 for Apache httpd-2_0_16

2001-04-22 Thread The Doctor
Does anyone know how to build a static module for Apache httpd-2_0_16? -- 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] 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]

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-CVS] cvs: php4 /ext/ccvs ccvs.c

2001-04-22 Thread Sterling Hughes
sterlingSun Apr 22 16:40:34 2001 EDT Modified files: /php4/ext/ccvs ccvs.c Log: Fix bug #10447. Index: php4/ext/ccvs/ccvs.c diff -u php4/ext/ccvs/ccvs.c:1.13 php4/ext/ccvs/ccvs.c:1.14 --- php4/ext/ccvs/ccvs.c:1.13 Sun Feb 25 22:06:48 200

[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, php4.0.4

Re: [PHP] Link Color Questions

2001-04-22 Thread Adam
# yes, make a style sheet called "domain.css" and put in this text: # a.domain1:link { color: #FF; } a.domain2:link { color: #FF; } a.domain3:link { color: #FF8000; } # in the h

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

[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] writing to file on server

2001-04-22 Thread Adam
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 -- 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 administ

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 Ha

[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 wan

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 whi

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

2001-04-22 Thread Steve Lawson
Yea, I got a solution. Choose a flavor of linux, format your HD, install, and run the that server like it was meant to run. Apache is not even 100% on NT much less the XP beta, it's like your running a beta on a beta...That's why it's not working. Here is a good quote from apache.org: "Please

RE: [PHP] Link Color Questions

2001-04-22 Thread Jeff Oien
You need to use style sheets: http://www.awlonline.com/cseng/titles/0-201-41998-X/liebos/ http://www.builder.com/Authoring/CSS/?tag=st.bl.7258.dir1.bl_CSS http://www.wdvl.com/Authoring/Style/Sheets/ Jeff Oien > Hi, > > I would like to know how to make different link in different color on > o

[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 w

[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 Maili

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

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 4/22/2

[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-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. >

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-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 pl

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 conclusi

[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 unsubscri

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: > >

[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 no

[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 exactly

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 PR

[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 m

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 sai

[PHP-CVS] cvs: php4 /ext/pcre php_pcre.c

2001-04-22 Thread Sascha Schumann
sas Sun Apr 22 10:20:03 2001 EDT Modified files: /php4/ext/pcre php_pcre.c Log: Fix freeing of a NULL pointer Index: php4/ext/pcre/php_pcre.c diff -u php4/ext/pcre/php_pcre.c:1.91 php4/ext/pcre/php_pcre.c:1.92 --- php4/ext/pcre/php_pcre.c:1.91

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 a

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 guru

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 stuff how you can set prepends and execuction > limits etc. but i think thats a bit much to

[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" th

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 stuff how you can set prepends and execuction limits etc. but i think thats a bit much to get added at this time Cameron Sascha Schu

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

2001-04-22 Thread Jack Dempsey
if the lines are exact duplicates, then you could open the file with PHP or Perl, then scan through it, line by line, each time throwing the line in the next cell of an arraythen you should be able to sort by the values in those cells, and after you have that, deleting duplicates would be simp

[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 Sebastian Bergmann
[EMAIL PROTECTED] wrote: > be covered by an RC I think. If an RC8 is finished, I'll test it on Win32 with Apache as CGI, and on Linux 2.4.3 with thttpd and ircg. -- sebastian bergmann[EMAIL PROTECTED] http://www.sebastian-ber

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 ar

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
Well, as I said before, this commits are harmless with regard to the rest of the system. Additionally, builds with thttpd and IRCG have been completed successfully. A test run producing 2GB of output from IRCG with thttpd-2.21 and 4.0.5 seems to show a memory leak which I'm c

[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
Liz there are lots of changes for 4.0.6 already we branch CVS when we start the release cycle. Its just a question of if these changes need to be in the branch, on the IRCG front I can see no real problem as long as Sascha is willing to test and post results (although I also feel that they should

[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 >

Re: [PHP] help!! newbie

2001-04-22 Thread Plutarck
You'll want to use the LIMIT option in SQL. So on the end of your query add: "LIMIT 0,10" to get the first ten results. The first number is the "offset", and the last is the max amount to retrieve. To get links 20 through 40 you'd use: "LIMIT 19, 39" The offset is refering to an array, so offs

[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 chan

[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 th

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

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.

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

2001-04-22 Thread Plutarck
Hm, that would probably explain it. I assumed it wasn't it because the programs are so comparitively small...then again, it's not the size that counts blah blah... Since it loads so much up at one time rather than a little bit at a time, it probably eats a huge amount of ram. Forte probably load

[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) /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 php4/ext/i

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

2001-04-22 Thread Brian Clark
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 can be the cause of that. http://www.google.com/search?q="Transport+endpoint+is+not+connected" -

[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 (http://w

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 Retha

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

2001-04-22 Thread CC Zona
In article <9btgks$fc6$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("McShen") wrote: > $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. Perhaps if you

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 Li

  1   2   >