[PHP] sessions

2001-12-20 Thread Daniel Masur
my logout.php looks like this session_start(); session_register("SESSION"); //these 2 things have to be on every page right? require ('validate_session.php'); //does compare $PHPSESSID and the sessid i have in every url // start of validate_session.php "; exit; } ?> // end of validate_sessi

[PHP] Can it be improved upon?

2001-12-20 Thread jtjohnston
Can it be improved upon? Suggestions welcome, John Welcome: $PHP_AUTH_USER"; echo "Password: $PHP_AUTH_PW"; exit; } } fclose($fp); function authenticate() { global $PHP_AUTH_USER, $PHP_AUTH_PW; header( "WWW-Authenticate: Basic realm=\"Students\""); header( "HTTP/1.0 401 Unauthori

Re: [PHP] Re: mail function

2001-12-20 Thread Peter
Sorry but I am a bit of a newbie at this. So do you mean that I am supposed write it like this? else { $mailheaders = "From: $email\r\n"; $mailheaders .= "Reply-To: $email\r\n"; $mailheaders .= "Content-Type: text/html; charset=iso-8859-1\r\n"; $remarks .= "$items"; mail("[EMAIL PROTECTED]", "qu

[PHP] JavaScript Windows with PHP

2001-12-20 Thread Carlos Fernando Scheidecker Antunes
Hello all! I've wrote to scripts that use Javascript too. The idea is to have a parent window teste_popup.php4 and a child window pop.php4. When a link is clicked on the parent window, the child window will open. After the user enters information on the child window he must close it and that will

Re: [PHP] Re: php telnet

2001-12-20 Thread Thies C. Arntzen
the attached file implements a minimal telnet client and is free to use. re, tc On Wed, Dec 19, 2001 at 02:16:36PM -0800, Chris Lee wrote: > if I nc to my server on port 23 I get the same thing. ie there is nothing > wrong. your going to have to emulate the telnet protocal now,

Re: [PHP] Beginner question?

2001-12-20 Thread jtjohnston
:) Again why 1024? or 4096 or ... ? > while (!foef($fp)) > { > $line = fgets($fp, 1024); > echo $line; > } -- 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-ma

[PHP] Re: mail function

2001-12-20 Thread jtjohnston
If you declare a header after you used html or echoed something, it will fail. header("Location: http://www.winwhole.com.hk/sent.php";) HTH. Here is some code that works: \r\n" ."Content-Type: multipart/mixed; boundary=\"15E3B1D587950C2CAADCBF93\" This is a multi-part message in M

[PHP] Re: mail function

2001-12-20 Thread jtjohnston
If you declare Here is code that works: \r\n" ."Content-Type: multipart/mixed; boundary=\"15E3B1D587950C2CAADCBF93\" This is a multi-part message in MIME format. --15E3B1D587950C2CAADCBF93 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit $yo

Re: [PHP] Beginner question?

2001-12-20 Thread jtjohnston
Michael, $fp = fopen ("./users.txt", "r"); while (!feof ($fp)) { $buffer = fgets($fp, 4096); echo $buffer; } fclose($fp); Ok. But $buffer is not an array, is it? Why/what is 4096? What is !feof ? Can anyone show me how to split() each line and parse to see if $user exists? Here's what I'm u

[PHP] arrays

2001-12-20 Thread php dood
I'm trying to figure out how to parse an xml document, and convert it into html... i know how to parse in simple xml stuff for example easy is pretty easy to parse in, and i know how to code that, but when you start adding flags that i'm going to need variables for, example easy is not so easy. *

[PHP] mail function

2001-12-20 Thread Peter
Hi, Can someone tell me if there is something wrong with the order of the mail function in here. I am trying to get the text in HTML format, but I am not getting the text in html format. else { $mailheaders = "From: $email\r\n"; $mailheaders .= "Reply-To: $email\r\n"; $mailheaders .= "Content-T

Re: [PHP] Suggestions for the next php

2001-12-20 Thread Vincent Stoessel
I did not know that, thank you for the info. I just downloaded phpIDE beta and I am highly impressed with the debugger. It say that it can do remote debugging as well. That sounds cool but I wonder how secure it is. Zend folks, I apologize for taking so long to try out this product, it's great!

Re: [PHP] How to check if a session exists

2001-12-20 Thread Peter J. Schoenster
On 20 Dec 2001, at 17:34, Alex Shi wrote: > If a sesson_id is known, how can check if the session exists? I think this answers the question (function.session-id.html) > session_id > (PHP 4 >= 4.0.0) > session_id -- Get and/or set the current session id > Description > string session_id ([string

Re: [PHP] Error while calling a function--Thanks

2001-12-20 Thread J.F.Kishor
Hi pals, Thanks a lot for all the PHP pals , I have recoded my script an' now itz working fine. cheers an' regards, - JFK kishor Nilgiri Networks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-m

Re: [PHP] Suggestions for the next php

2001-12-20 Thread Manuel Lemos
Hello, Vincent Stoessel wrote: > > I would love to see a decent debugger like perl has. > Nothing is more frustrating then having to echo and die() > to debug code. Especially when you are assigned the task of > updating code from a developer that has long gone without > leaving any documentatio

Re: [PHP] Multiple JavaScript Windows with PHP

2001-12-20 Thread Carlos Fernando Scheidecker Antunes
It still the same thing. It child does not close on Nestcape and Konqueror and when it closes on IE now it refreshes teh parent window twice. - Original Message - From: "Martin Towell" <[EMAIL PROTECTED]> To: "'Carlos Fernando Scheidecker Antunes'" <[EMAIL PROTECTED]>; "PHP-GENERAL" <[EM

Re: [PHP] Suggestions for the next php

2001-12-20 Thread Vincent Stoessel
I would love to see a decent debugger like perl has. Nothing is more frustrating then having to echo and die() to debug code. Especially when you are assigned the task of updating code from a developer that has long gone without leaving any documentation. Stephano Mariani wrote: > Hi! > > I hav

Re: [PHP] Beginner question?

2001-12-20 Thread Michael Sims
At 12:13 AM 12/21/2001 -0500, jtjohnston wrote: >This seems newbie. So what am I doing wrong? I want to print the >contents of the file. I get resource id #1 instead. Do I need to add a >header or what? > > >//$fp = fopen ("C:/Program Files/localhost/info.txt", "r"); >//$fp = fopen ("http://compca

RE: [PHP] Beginner question?

2001-12-20 Thread Martin Towell
http://compcanlit.ca/";, "r"); $fp = fopen ("./info.txt", "r"); while (!foef($fp)) { $line = fgets($fp, 1024); echo $line; } fclose($fp); ?> what you were doing was opening a file ready for reading and then printing the pointer to the file, and not the file itself... -Original Message-

[PHP] Beginner question?

2001-12-20 Thread jtjohnston
This seems newbie. So what am I doing wrong? I want to print the contents of the file. I get resource id #1 instead. Do I need to add a header or what? http://compcanlit.ca/";, "r"); $fp = fopen ("./info.txt", "r"); print $fp; fclose($fp); ?> -- PHP General Mailing List (http://www.php.net/

RE: [PHP] Multiple JavaScript Windows with PHP

2001-12-20 Thread Martin Towell
I haven't tried your code, but I'm thinking what's happening is that the browsers that the code isn't working in is stopping at the "returnwin=window.opener.navigate(urlLoc);" line - what happens if you change it to "returnwin=window.opener.location = urlLoc;" ?? Original Message- From: C

[PHP] Multiple JavaScript Windows with PHP

2001-12-20 Thread Carlos Fernando Scheidecker Antunes
Hello all! I've wrote to scripts that use Javascript too. The idea is to have a parent window teste_popup.php4 and a child window pop.php4. When a link is clicked on the parent window, the child window will open. After the user enters information on the child window he must close it and that wil

[PHP] embed pdf.

2001-12-20 Thread Webleycity
Does anybody out there know how to embed pdf in a web page --- Mark Webley Multimedia design and development WebleyCity Limited London United Kingdom [EMAIL PROTECTED] [EMAIL PROTECTED] Mobile: 07980 213 627 Fax/Tel: 0208 678 1721 Pager 07654 581816 ht

Re: [PHP] Positioning HTML output in browser window

2001-12-20 Thread Ken
At 06:59 PM 12/20/01 -0700, Leland wrote: >I tried generating a in the orginal list, but I haven't >been able to create the return link on the other page that will refrence >this. I tried Link but it doesn't >work. Did you try Link ? From RFC 2396, "Uniform Resource Identifiers (URI): Generic

[PHP] PRINT FROM A DATABASE to a printer?

2001-12-20 Thread Webleycity
HELLO ALL I have a client who wishes to print the contents of a database to a printer. Does anybody out there know how the command, tables at the click of a button on a content management tool. --- Mark Webley Multimedia design and development WebleyCity

[PHP] Re: Algorithm: Limiting Large Numbers of Pages to 10 visible

2001-12-20 Thread Manuel Lemos
Hello, > I've got to believe that there's a really slick way of doing this. I've > searched the usual > places (weberdev.com, devshed.com, zend.com) but there's no really good > keywords, > and when you search on 'paging" you get too many results to be useful http://phpclasses.upperdesign.com/b

RE: [PHP] How to save the "result page" generated by a Form?

2001-12-20 Thread Martin Towell
separate the email address with, can remember which now, either a comma or a semicolon - try one, if it does work, it must be the other :) -Original Message- From: Webleycity [mailto:[EMAIL PROTECTED]] Sent: Friday, December 21, 2001 3:52 PM To: Stefan Rusterholz; Joe Cc: PHP Subject: Re:

[PHP] COMEDY FORUM

2001-12-20 Thread Webleycity
DOES ANY BODY OUT THERE KNOW OF A GOOD COMEDY FORUM? OR A FREE REAL PLAYER COMEDY CHANNE.L ALL THIS WORK CAN DRIVE A MAN MAD. --- Mark Webley Multimedia design and development WebleyCity Limited London United Kingdom [EMAIL PROTECTED] [EMAIL PROTECTED]

Re: [PHP] How to save the "result page" generated by a Form?

2001-12-20 Thread Webleycity
When one sends an email to an address in PHP, does any one out there no how to send to two or more email addresses. --- Mark Webley Multimedia design and development WebleyCity Limited London United Kingdom [EMAIL PROTECTED] [EMAIL PROTECTED] Mobile:

RE: [PHP] Re: Mommy, is it true that...?

2001-12-20 Thread Martin Towell
another 2c worth... So it's the programmer's responsibility to ensure all his/her code is as secure as possible. If it can be shown that it isn't secure, then the programmer should endevour to close that hole. This goes for any area that hackers can exploit, software and hardware... -Origin

Re: [PHP] Re: Mommy, is it true that...?

2001-12-20 Thread Michael Sims
At 11:28 PM 12/20/2001 -0500, Billy Harvey wrote: > > Freshmeat.net is a very popular database of linux software and includes a > > wide variety of PHP scripts. My point was that if you downloaded an > > insecure script from such a popular site then you are asking for trouble > > because chances

Re: [PHP] Re: Mommy, is it true that...?

2001-12-20 Thread Billy Harvey
> Freshmeat.net is a very popular database of linux software and includes a > wide variety of PHP scripts. My point was that if you downloaded an > insecure script from such a popular site then you are asking for trouble > because chances are thousands of would-be hackers have ALSO downloaded

RE: [PHP] Re: Mommy, is it true that...?

2001-12-20 Thread Martin Towell
My 2c worth... IMO, If you download a script and just blindly copy it to your system, then you're just asking for trouble, period - I think you should ALWAYS check code for anything that could be malicious and also check for any loopholes that need to be closed before using it. This might mean ch

Re: [PHP] Re: Mommy, is it true that...?

2001-12-20 Thread Michael Sims
At 04:51 AM 12/21/2001 +0200, Bogdan Stancescu wrote: > > > > True, but in a shared hosting environment this is very likely. > > > > > >...not to mention open source code. > > > > Oh yeah. Guess I had a mental lapse there. If you are using, say, a > > script downloaded from freshmeat.net and it

[PHP] Algorithm: Limiting Large Numbers of Pages to 10 visible

2001-12-20 Thread Lara J. Fabans
Hi, I need an algorithm for paging. If I have 100 pages of results, I only want to show << Prev 1 2 3 4 5 6 7 8 9 10 Next >> Where I limit the number to 10 results of pages, but I cannot figure it out for the life of me. for ($i = $page; $i <= ($page+10); $i++) { if ($i != $page) {

Re: [PHP] Re: Mommy, is it true that...?

2001-12-20 Thread Bogdan Stancescu
> > > True, but in a shared hosting environment this is very likely. > > > >...not to mention open source code. > > Oh yeah. Guess I had a mental lapse there. If you are using, say, a > script downloaded from freshmeat.net and it happens to be poorly secured > then obviously the entire free worl

Re: [PHP] Re: Mommy, is it true that...?

2001-12-20 Thread Michael Sims
At 04:26 AM 12/21/2001 +0200, Bogdan Stancescu wrote: >Philip Hallstrom wrote: > > > > A definite possibility, but it does depend on the hacker in question > > > knowing exactly how your script is written... > > > > True, but in a shared hosting environment this is very likely. > >...not to mentio

Re: [PHP] Re: Mommy, is it true that...?

2001-12-20 Thread Bogdan Stancescu
Well, the official point is rather obvious from my original e-mail. What I personally do is either forget about it -- again, see the original e-mail -- or, if for some reason high security is needed, I simply add 0 (zero) to numeral input fields and addslashes to strings. Bogdan [EMAIL PROTECTED

Re: [PHP] Re: Mommy, is it true that...?

2001-12-20 Thread Joelmon2001
how does one prevent a hacker deleting tables or what not? This is a topic I do not know enough about, thanks for opening my eyes to this matter joel

Re: [PHP] Re: Mommy, is it true that...?

2001-12-20 Thread Bogdan Stancescu
Philip Hallstrom wrote: > > A definite possibility, but it does depend on the hacker in question > > knowing exactly how your script is written... > > True, but in a shared hosting environment this is very likely. ...not to mention open source code. However, the discussion was indeed oriented to

Re: [PHP] Positioning HTML output in browser window

2001-12-20 Thread Bogdan Stancescu
Well, you can always code in a little Javascript, such as "window.location='#lastpos'"... Leland wrote: > I tried generating a in the orginal list, but I haven't > been able to create the return link on the other page that will refrence > this. I tried Link but it doesn't > work. > > Any ideas

Re: [PHP] Re: Mommy, is it true that...?

2001-12-20 Thread Philip Hallstrom
> At 06:03 PM 12/20/2001 -0800, Philip Hallstrom wrote: > > > I've done something similar in the past just for kicks, and I got the same > > > result you did (i.e. an error). I believe this is because mysql_query() > > > expects ONE query at a time and will break if you send two or more. I > > >

Re: [PHP] Re: Mommy, is it true that...?

2001-12-20 Thread Michael Sims
At 06:03 PM 12/20/2001 -0800, Philip Hallstrom wrote: > > I've done something similar in the past just for kicks, and I got the same > > result you did (i.e. an error). I believe this is because mysql_query() > > expects ONE query at a time and will break if you send two or more. I > > could be

[PHP] Positioning HTML output in browser window

2001-12-20 Thread Leland
Hi Folks, I have a script that outputs a large data list to the web browser. When the user clicks the link for a particular data item they are taken to a new script to modify the record and then when the post the changes they are taken back to the original data list. (no problem so far) What I

[PHP] Re: Mommy, is it true that...?

2001-12-20 Thread Philip Hallstrom
> >2. Please enter your age: 25; drop database mysql > > > >Does this actually work? > [...] > >So I decided I had to test this: I wrote the code exactly as in the > >example; I provided the exact dangerous input (well, to be honest, I > >tried a select instead of drop mysql). When I tried it, the

[PHP] Re: Re: Global Arrays ?

2001-12-20 Thread Philip Hallstrom
I don't think it has to do with local/global variables... it's more likely that he's already looped through a global array in which case the next call to each() will fail because it's already at the end. On Fri, 21 Dec 2001, Bogdan Stancescu wrote: > Why is this needed in this case an not for lo

Re: [PHP] Mommy, is it true that...?

2001-12-20 Thread Michael Sims
At 03:39 AM 12/21/2001 +0200, Bogdan Stancescu wrote: >Hi everybody! > >Two things I consider urban myths about PHP (plus MySQL) - please let me >know what you think of these: > >1. The evil global variables [...] >My question to you guys is this: does anybody know of a real example of >reasonably

[Fwd: [PHP] Number Format]

2001-12-20 Thread Bogdan Stancescu
Inadvertedly sent to me: Bas van Rooijen wrote: > sprintf("%02d", $i); > > but you should indeed check out how this function works.. > > >phantom wrote: > > > >> I would like to format numbers to be a fixed width. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAI

RE: [PHP] How can I have CVS ?

2001-12-20 Thread Michael Sims
At 10:19 AM 12/20/2001 -0800, Nathan Cassano wrote: >And the answer is... WinCVS > >Check it our at. >http://www.cvsgui.org/ And don't forget TortoiseCVS. http://www.cvsgui.org/TortoiseCVS/index.shtml -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

[PHP] Mommy, is it true that...?

2001-12-20 Thread Bogdan Stancescu
Hi everybody! Two things I consider urban myths about PHP (plus MySQL) - please let me know what you think of these: 1. The evil global variables Ok, the classic is obviously valid. But let's be serious, who codes this? The example code is valid and it's easily crackable indeed, but you don't

Re: [PHP] Help with Sessions - Should be easy =]

2001-12-20 Thread Michael Sims
At 01:53 AM 12/21/2001 +1100, Tomasz Jachimczak wrote: >I am retreiving user information from a database after verification, and >would like to place certain feilds into a session variable for easy >access/retreival. I can get the information out of the database, but cannot >place it into any sort

[PHP] Bookmarking pages

2001-12-20 Thread Jason Rennie
Hi all, again, I need to be able to have working bookmarkable pages in a system. The user has session ID's which have to time out, so when they do the user is kicked out of the system. But i've been asked to set it up so that after a user gets kicked to a login screen becasue they have an expir

Re: [PHP] Number Format

2001-12-20 Thread Steve Edberg
Or http://www.php.net/manual/en/function.sprintf.php or http://www.php.net/manual/en/function.printf.php At 04:45 PM 12/20/01 , Bogdan Stancescu <[EMAIL PROTECTED]> wrote: >if ($i<10) { $i="0".$i } ? :-) > >phantom <[EMAIL PROTECTED]> wrote: > > > I would like to format number

Re: [PHP] Re: Global Arrays ?

2001-12-20 Thread Bogdan Stancescu
Why is this needed in this case an not for local variables? You probably are right, I don't imply you aren't, but why is a reset needed in local scope when using global variables? Is it possible to start an each() in a function and continue it in another for global arrays? Philip Hallstrom wrote:

[PHP] Re: Number Format

2001-12-20 Thread Philip Hallstrom
Like the other guy said or take a look at the sprintf() function. On Thu, 20 Dec 2001, phantom wrote: > I would like to format numbers to be a fixed width. > > I want all numbers to be 2 characters in width to the left of the > decimal point. > > 1 should be 01 > 2 should be 02 > 3 should be 03

[PHP] Re: Global Arrays ?

2001-12-20 Thread Philip Hallstrom
Add a reset($g_months) right before your while(...) statement. On Fri, 21 Dec 2001, Jason Rennie wrote: > > Sounds quite odd - you may try an "echo(serialize($g_months))" in the > > function and see what you get... It may be that the code generating the > > option box has problems - this way you

Re: [PHP] Number Format

2001-12-20 Thread Bogdan Stancescu
if ($i<10) { $i="0".$i } ? :-) phantom wrote: > I would like to format numbers to be a fixed width. > > I want all numbers to be 2 characters in width to the left of the > decimal point. > > 1 should be 01 > 2 should be 02 > 3 should be 03 > > How can I do this? > > -- > PHP General Mailing List

[PHP] Number Format

2001-12-20 Thread phantom
I would like to format numbers to be a fixed width. I want all numbers to be 2 characters in width to the left of the decimal point. 1 should be 01 2 should be 02 3 should be 03 How can I do this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

[PHP] Preg Match

2001-12-20 Thread phantom
I am passing a string and making sure all the characters in that string are valid. Example: For a persons age I am using: if (!preg_match("/^[0-9]+$/", $Age)) echo "Please Enter numeric value for age". But how would I include the following characters as permissible in preg match ~!@#$%^&*()

Re: [PHP] How can I have CVS ?

2001-12-20 Thread jimphp
get a linux box and run secureCRT. :) Jim > > > and log to it from windows ? -- 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] Global Arrays ?

2001-12-20 Thread Jason Rennie
> It may be a bug in your PHP - walking an array with each probably sets some > internal position marker which may be buggy for your very situation (global > variable in local function - something like that). Thanks for that. I tried it with foreach and it works now. Jason -- Hofstadter's Law

Re: [PHP] Global Arrays ?

2001-12-20 Thread Bogdan Stancescu
The first thing that comes to mind - if you say it's working with local variables - is trying to set it local prior to using it (i.e. insert a "$loc_months=$g_months" just below "global $g_months" and use the local variable from then on). It may be a bug in your PHP - walking an array with each p

php-general Digest 20 Dec 2001 23:58:35 -0000 Issue 1064

2001-12-20 Thread php-general-digest-help
php-general Digest 20 Dec 2001 23:58:35 - Issue 1064 Topics (messages 78314 through 78368): Re: PHP3 NOT being parsed for SSI!! HELP!! 78314 by: dimok Re: Size of array in bytes 78315 by: Bogdan Stancescu 78316 by: Stefan Rusterholz PHP / SSL 78317 by: Rich

Re: [PHP] Global Arrays ?

2001-12-20 Thread Jason Rennie
> Sounds quite odd - you may try an "echo(serialize($g_months))" in the > function and see what you get... It may be that the code generating the > option box has problems - this way you make sure $g_months is empty indeed. Thanks for that. IT appears to be a problem with the function itself, as

Re: [PHP] Global Arrays ?

2001-12-20 Thread Bogdan Stancescu
Sounds quite odd - you may try an "echo(serialize($g_months))" in the function and see what you get... It may be that the code generating the option box has problems - this way you make sure $g_months is empty indeed. Bogdan Jason Rennie wrote: > Hi all, > > I've got an array in the global scop

[PHP] New Object Oriented Programming (OOP) mailing list for PHP programmers

2001-12-20 Thread Manuel Lemos
Hello, Despite I already created this list a long time ago, only now I am announcing it as a general purpose forum for discussing matters related with Object Oriented Programming done in PHP. Everybody is invited and to join all you need to do is to send a message to [EMAIL PROTECTED] or go to t

[PHP] Global Arrays ?

2001-12-20 Thread Jason Rennie
Hi all, I've got an array in the global scope called $g_months which oddly enough contains the names of the months. Now when I try to import this into a function as global $g_months; it doesn't work. When php prints out the array as an option box I just wind up with no options. Any ideas why

[PHP] How to check if a session exists

2001-12-20 Thread Alex Shi
If a sesson_id is known, how can check if the session exists? Alex -- 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] MS Word text pasted into forms

2001-12-20 Thread Gerard Onorato
Jim, Have you tried a regular expression. Something like ereg_replace("[^[:alnum:]|[:space:]|[:punct:]@]", "", $string); to clean the string? Gerard O On Thu, 20 Dec 2001 17:02:58 -0500, jimtronic wrote: > >Occasionally, I have a problem dealing with some of the special >characters from te

[PHP] MS Word text pasted into forms

2001-12-20 Thread jimtronic
Occasionally, I have a problem dealing with some of the special characters from text authored in MS Word, and then pasted into a web form. It seems that somewhere something bad happens and what eventually gets put into mysql via php is not correct. In particular, I have trouble with apostroph

[PHP] Translate question

2001-12-20 Thread Mehmet Kamil ERISEN
Hello, I am trying to transalte entry in Turkish Characters to English Characters. I wrote the following code. function translate_turkish($string) { $estring = strtr($string, "ç", "c"); $estring = strtr($string, "ç", "c"); $estring = strtr($estring, "ð", "g"); $estring = strtr($estr

[PHP] Suggestions for the next php

2001-12-20 Thread Stephano Mariani
Hi! I have been a PHP user since version 3.0 came out, and have seen it develop a lot along the way, but theres some things I find it lacks that it really should not. If people agree, I'll glady contribute to the PHP codebase. For example, multi-threading. Looking at the PHP sources, I can see t

[PHP] web server crashing with either 4.1.0 or 4.0.6

2001-12-20 Thread Ian McNish
when trying at access any php scripts my web server is crashing. i'm experiencing this problem with both php 4.0.6 and 4.1.0 on iplanet enterprise 6.0sp1 on solaris 8. my web server is logging the following error: catastrophe (21929): Server crash detected (signal SIGSEGV) info (21929): Crash oc

[PHP] Issues with fopen & long file names?

2001-12-20 Thread Javier Muniz
I'm trying to open a file using php 4.1.0 under windows 2k server. The script uses fopen and the filename is long (approx 40 characters + extension). I'm getting the error: Warning: fopen("c:\_file_345176fo90301b70374d2f30e5a11d5b.ext ", "r") - Invalid argument in file.php on line 127 can fope

[PHP] Re: undefined function: ftp_connect()

2001-12-20 Thread Mike Eheler
You need to compile with ftp support. --with-ftp is not the right command, it should be --enable-ftp Mike Sam Schenkman-Moore wrote: > I've compiled php 4.0.6 on Darwin as CGI. "--with-ftp" shows up in the php > configuration display but I still get this message: > > undefined function: ftp_c

[PHP]

2001-12-20 Thread Arsen Kirillov
Ok i am in test -- 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] SSL Connection with cURL

2001-12-20 Thread Gerard Onorato
Roman, This is certainly not the exact answer you are looking for however... We had a lot of trouble using the PHP curl commands directly. We are currently doing a large volume of transactions using cURL with great success by shelling to it. I am attaching a very simple example of what we are

[PHP] SSL Connection with cURL

2001-12-20 Thread Roman Eich
Hi NG, i want to establish an SSL connection with cURL. I used two different scripts, 1) $URL="ssl.server.com/path/file.ext"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"https://$URL";); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS , "$data"); curl_setopt($ch, CURLO

[PHP] Re: undefined function: ftp_connect()

2001-12-20 Thread Chris Lee
run phpinfo() is ftp support in there? if not run configure like you normally do and scroll up to the ftp section, are there any errors in there? if so what are they? -- Chris Lee [EMAIL PROTECTED] "Sam Schenkman-Moore" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL P

Re: [PHP] Images

2001-12-20 Thread Joel Boonstra
> > > > > > > > > The code is like this: > > > > > > > > > $szPicture = "myimage.gif"; > > > > > > $url = "http://www.mysite.com/"; . $szPicture; > > > header("Content-type: image/gif"); > > > header("Content-Length: " . strlen($url)); > > > echo $url; > >

Re: [PHP] Need another verse

2001-12-20 Thread bill
Ooh, good. That's what it needed. Maybe even some tragedy: How-to books mourn unused, dusty, having ceased with Java Beans, Now I program quickly, PHP Kevin Stone wrote: > Okay you need to interject some emotion into your song... try something > like... > > Now PERL's been sending emails, > S

Re: [PHP] Images

2001-12-20 Thread PHP List
Thanks, but my html is valid, and what you are doing is not what I want to do. I want to display a random image included in the page, just like a banner program would work. I do not allow php execution on the page so the only way to get the image is to call the script with the img src tag, just li

[PHP] List all session currently associated with a web site

2001-12-20 Thread Alex Shi
Hi, I 'd like to know how can we list all the sessions concurrently active on a web site. If anyone out there knows how to do the trick please help. Thanks in advance! Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

Re: [PHP] Quanta IDE - PHP Highlighing for 4.0.1

2001-12-20 Thread Austin Gonyou
So is glimmer. On Wed, 2001-12-19 at 17:27, Mike Eheler wrote: > Attached is a text file that will update Quanta IDE 2.0.1 syntax > highlighting for PHP. > > Simply use your favourite text edit quanta/kwrite/highlight.cpp in your > quanta-2.0.1 source tree, and paste the text from this attache

[PHP] undefined function: ftp_connect()

2001-12-20 Thread Sam Schenkman-Moore
I've compiled php 4.0.6 on Darwin as CGI. "--with-ftp" shows up in the php configuration display but I still get this message: undefined function: ftp_connect() I've read a couple past articles with people having this problem but I did not spot a solution. Any suggestions? Thanks, Sam -- P

[PHP] Images

2001-12-20 Thread PHP List
Hi, I am trying to do something like this: The code is like this: $szPicture = "myimage.gif"; $url = "http://www.mysite.com/"; . $szPicture; header("Content-type: image/gif"); header("Content-Length: " . strlen($url)); echo $url; But nothing happens, I

Re: [PHP] Need another verse

2001-12-20 Thread Kevin Stone
Okay you need to interject some emotion into your song... try something like... Now PERL's been sending emails, She sais she's feeling jealousy, Because I have a new friend, PHP -Kevin - Original Message - From: "bill" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December

[PHP] Re: $PHP_SELF not working -please help

2001-12-20 Thread Phillip Oertel
Alawi wrote: > use $PHPSELF not $PHP_SELF in windows BAD IDEA. what happens if one day you (or even worse: someone else) wants to run your scripts on a different server? one of the nicest things about PHP that you can run it on many different any OS's. phil. -- PHP General Mailing List

Re: [PHP] Re: PHP 4.1.0 patch for Quanta IDE, The Sequel

2001-12-20 Thread Mike Eheler
"); Print_R(GET_defined_VaRs()); sPrinTF('%s',''); ?> Variable names are the *only* exception. So yes, $var != $Var; And variable names are not syntax highlighted specifically (other than the fact that variables are highlighted). So by case-sensitizing keyword and function references, that is

RE: [PHP] How can I have CVS ?

2001-12-20 Thread Nathan Cassano
And the answer is... WinCVS Check it our at. http://www.cvsgui.org/ -Original Message- From: Alawi [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 20, 2001 7:51 AM To: PHP genral Subject: [PHP] How can I have CVS ? and log to it from windows ? -- PHP General Mailing List (ht

Re: [PHP] Re: PHP 4.1.0 patch for Quanta IDE, The Sequel

2001-12-20 Thread Jack Dempsey
really? seems sensitive to me... Mike Eheler wrote: > Cool, however PHP is not case sensitive, nor is ASP or HTML for that > matter, therefore case sensitive syntax highlighting will not be good > for these languages. > > Mike > > J Smith wrote: > > > I sumbitted a similar patch to the Quanta

[PHP] fsockopen / fopen

2001-12-20 Thread James Cox
Anyone know what errno 0 is for fsockopen? Thanks, . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . James Cox :: Senior Support Engineer Wherewithal, Inc. e: [EMAIL PROTECTED] Wherewithal. Capture Creative Connections. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . --

[PHP] Re: PHP 4.1.0 patch for Quanta IDE, The Sequel

2001-12-20 Thread Mike Eheler
Cool, however PHP is not case sensitive, nor is ASP or HTML for that matter, therefore case sensitive syntax highlighting will not be good for these languages. Mike J Smith wrote: > I sumbitted a similar patch to the Quanta team about a week ago. It may > appear in an upcoming release, possi

[PHP] Re: Help with Sessions - Should be easy =]

2001-12-20 Thread Fred
Why don't you give us a code snippet so we know how you are trying to do it. Fred Tomasz Jachimczak <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am coming from an asp background, and am used to setting session variables > very easily, but I cannot work th

[PHP] rrd tool's graphing and png

2001-12-20 Thread Lancashire, Pete
I must be doing something wrong that is really simple hence I can't figure out what I'm doing wrong. I'm using a package called rrd tool, one of its (unix) command line programs has the option to output to stdout a png image. I'm trying to get that output feed in to ImagePNG to display the image

[PHP] Re: PHP 4.1.0 patch for Quanta IDE, The Sequel

2001-12-20 Thread J Smith
I sumbitted a similar patch to the Quanta team about a week ago. It may appear in an upcoming release, possibly Quanta 3, which will come with KDE 3.0. A few other additions I made: - highlighting is now case-insensitive for everything. I believe older versions were case-sensitive for keywor

[PHP] Need another verse

2001-12-20 Thread bill
To the tune of "Let it Be", with apologies to the Beatles and all those who have gone before: When I find my code in tons of trouble, Then the newsgroups come to me, Speaking words of wisdom: "PHP" As the deadline fast approaches, And the bugs are all I see, Somewhere, someone whispers" "PHP" P

[PHP] compressed content and output buffering

2001-12-20 Thread Shane Wright
Hi The way output buffering and output compression work, all the output is buffered until script termination, at which point it's compressed and then all sent to the browser. Is there any way having it compressed but not buffering it? gzip is a stream based algorithm, so there shouldn't be a

[PHP] How can I have CVS ?

2001-12-20 Thread Alawi
and log to it from windows ?

[PHP] Re: $PHP_SELF not working -please help

2001-12-20 Thread Alawi
sorry $PHPSELF not $PHP_SELF in windows I forget $ :) - Original Message - From: "Alawi" <[EMAIL PROTECTED]> To: "PHP genral" <[EMAIL PROTECTED]> Sent: Thursday, December 20, 2001 6:34 PM Subject: [PHP] Re: $PHP_SELF not working -please help > > > USE PHPSELF in windows not $PHP_S

  1   2   >