Re: [PHP] msession - giving me a hard time

2003-11-15 Thread Marek Kilimajer
John W. Holmes wrote: Heh... okay, let's start over. From Server1: If you create a link like this: a href=server2/page.php??php echo SID; ?Server 2/a The problem with SID is that it is defined as session_name=session_id if the client did not send session cookie. Otherwise it will be an empty

Re: [PHP] CGI error when loading iFRAME

2003-11-15 Thread Marek Kilimajer
Miroslav I. wrote: Hi, people #The problem: There is an error message that stops proper loading of one iFRAME, I couldn't understand what is the problem. Complete error message issued: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers

[PHP] What is white space

2003-11-15 Thread Gerard Samuel
Most of the time, I edit files via the command line, (FBSD). When the files are saved, it adds a \n (newline) character (at least I believe that is what it is) after the closing ? When viewing these files in a windows GUI editor, there is an extra line after the ? closing tag. Using the php

[PHP] Using $_SERVER

2003-11-15 Thread Gerard Samuel
Whats your take on adding your own data in the $_SERVER array? For example, if I wanted to add a value to the $_SERVER array like - $_SERVER['foo'] = 'bar'; Yes its possible, but Im looking for legality issues with this frame of thought. Thanks -- PHP General Mailing List

[PHP] Alternet row colors

2003-11-15 Thread PAUL FERRIE
Hello all I have been working on this website http://thor.ancilenetworks.co.uk/~pferrie/vinrev/index2.htm I did not design the site i have just been asked to tweak it My php knowledge is limited always learning something new. Anyways I have been trying to use a code that i got from

RE: [PHP] Alternet row colors

2003-11-15 Thread Boaz Yahav
You can also check : A PHP function To Make Alternative Colored table rows http://www.weberdev.com/get_example.php3?count=3609 Alternating background color for HTML table rows http://www.weberdev.com/get_example.php3?count=3482 Another way to alternate table rows

Re: [PHP] Alternet row colors

2003-11-15 Thread PAUL FERRIE
Thats pretty much what i have got off www.hotscripts.com. The problem is adding it to my exsisting code. ~cheers Paul Boaz Yahav [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You can also check : A PHP function To Make Alternative Colored table rows

Re: [PHP] Alternet row colors

2003-11-15 Thread zhuravlev alexander
On Sat, Nov 15, 2003 at 06:09:18PM +0200, Boaz Yahav wrote: function alternate_rows( // color_1 and color_2 have default values, but can be over-ridden. $data, $color_1 = '#99', $color_2 = 'black' ) { // Declare $color as static so it retains its value when program //

[PHP] Who controls PHP?

2003-11-15 Thread John Smith
Hi, Please, can someone shed a little light on this subject: who controls PHP? How much Zend has the power to say what goes into PHP and what not? How much does the community actually have power? For example, there are practical reasons why one should be concerned about this: PHP doesn't have

Re: [PHP] What is white space

2003-11-15 Thread Chris Shiflett
--- Gerard Samuel [EMAIL PROTECTED] wrote: Most of the time, I edit files via the command line, (FBSD). When the files are saved, it adds a \n (newline) character (at least I believe that is what it is) after the closing ? When viewing these files in a windows GUI editor, there is an extra

Re: [PHP] Who controls PHP?

2003-11-15 Thread Chris Shiflett
--- John Smith [EMAIL PROTECTED] wrote: Please, can someone shed a little light on this subject: who controls PHP? PHP is open source. You should have received the license when you downloaded it. It is not something to be controlled. Please, tell me that Zend is not the dictator here. No one

Re: [PHP] Who controls PHP?

2003-11-15 Thread Nathan Taylor
Hello, Zend in no way dictates PHP, they are simply a major player in it's development and are just as important as the PHP community. Zend develops much of the core extensions for PHP but at the same time, they do not own or even run. Nathan - Original Message - From: John Smith

Re: [PHP] Include an encoder into PHP distribution?

2003-11-15 Thread John Smith
Ok then, that's nice to hear. How about then the idea of including a reasonably good compiler/encoder into standard PHP distribution? For example Turck MMcache is one, gpl'd and comes as a php/zend extension. I don't think there are other free encoders as this, so there wouldn't even be a

Re: [PHP] Include an encoder into PHP distribution?

2003-11-15 Thread Nathan Taylor
Well that's all good and grand but why increase the size of the distribution when it's not necessary to? Nobody wants to download something they don't necessarily need included. Nathan - Original Message - From: John Smith To: [EMAIL PROTECTED] Sent: Saturday, November 15,

Re: [PHP] strtotime bad logic or strtotime bug?

2003-11-15 Thread Chris Shiflett
--- Gnik [EMAIL PROTECTED] wrote: I isolated the problem to be in the 'strtotime' function. Here is a test I ran - when it runs, after getting to 2003-10-26, it scrolls incessently: BEGIN CODE-- ?php $stop= 2003-12-27 ; $start= 2003-01-01 ; While ($start $stop) { echo BR

Re: [PHP] Include an encoder into PHP distribution?

2003-11-15 Thread Chris Shiflett
--- John Smith [EMAIL PROTECTED] wrote: How about then the idea of including a reasonably good compiler/encoder into standard PHP distribution? For example Turck MMcache is one, gpl'd and comes as a php/zend extension. I don't think there are other free encoders as this, so there wouldn't

Re: [PHP] Include an encoder into PHP distribution?

2003-11-15 Thread John Smith
I think Zend even has their business model partly in the encoder software, there must be some need for it. Don't you think so? Granted, this would increase the size of the download by a hundred kilobytes. I have no connection to Turck MMcache in any way than just a user who needs it. But

[PHP] Storing images

2003-11-15 Thread Paul Marinas
Hi, i was wondering which is the best way to store images. I'm using an upload section for my site and i'm using a script to put those images from the upload section on a diferent section of the site. 10x Paul GnuPG Key http://sgi.rdscv.ro/~paulm/paulm.PGP -- PHP General Mailing List

Re: [PHP] Include an encoder into PHP distribution?

2003-11-15 Thread John Smith
I don't think there are other free encoders as this, so there wouldn't even be a dispute over which to choose? Which one should be chosen? Doesn't it seem a bit ridiculous for the PHP development team to be picking a winner? Open source is all about choice, in my opinion. If I had to

Re: [PHP] Include an encoder into PHP distribution?

2003-11-15 Thread Eugene Lee
On Sat, Nov 15, 2003 at 07:52:28PM +0200, John Smith wrote: : : I have no connection to Turck MMcache in any way than just a user who needs : it. But distributing software encoded with it is difficult while it is not : so easily available (have to be separately downloaded and installed). I'm

Re: [PHP] Include an encoder into PHP distribution?

2003-11-15 Thread John Smith
Yes, it's still quite a new piece of software, at least so I have understood. But anyway, as an idea for the future. Just about any encoder would be great. If it's really built-in, always-on, that would be even better. Besides encoding, I think code profiling features should be (almost) built in

RE: [PHP] Storing images

2003-11-15 Thread Boaz Yahav
Interesting that you should bring this up now :) I have started a thread about this with my opinion at : http://www.weberblog.com/article.php?story=20031115124356140 I hope people will share their experience. Sincerely berber Visit http://www.weberdev.com/ http://www.weberblog.com/ Today!!!

Re: [PHP] Include an encoder into PHP distribution?

2003-11-15 Thread zhuravlev alexander
On Sat, Nov 15, 2003 at 11:58:18AM -0600, Eugene Lee wrote: On Sat, Nov 15, 2003 at 07:52:28PM +0200, John Smith wrote: : : I have no connection to Turck MMcache in any way than just a user who needs : it. But distributing software encoded with it is difficult while it is not : so easily

Re: [PHP] Include an encoder into PHP distribution?

2003-11-15 Thread Ryan A
Hey, Or CodeSecure from http://securecents.com Cheers, -Ryan P.S - biased opinion as i work with them. Ok then, that's nice to hear. How about then the idea of including a reasonably good compiler/encoder into standard PHP distribution? For example Turck MMcache is one, gpl'd and comes

Re: [PHP] Who controls PHP?

2003-11-15 Thread John Nichel
Chris Shiflett wrote: --- John Smith [EMAIL PROTECTED] wrote: Please, tell me that Zend is not the dictator here. No one is a dictator. Chris So there is an opening for a dictator then? How can I get my name on the ballot? ;) -- By-Tor.com It's all about the Rush http://www.by-tor.com --

Re: [PHP] What is white space

2003-11-15 Thread Robert Cummings
On Sat, 2003-11-15 at 12:12, Chris Shiflett wrote: --- Gerard Samuel [EMAIL PROTECTED] wrote: Most of the time, I edit files via the command line, (FBSD). When the files are saved, it adds a \n (newline) character (at least I believe that is what it is) after the closing ? When viewing

Re: [PHP] Who controls PHP?

2003-11-15 Thread Derek Ford
John Nichel wrote: Chris Shiflett wrote: --- John Smith [EMAIL PROTECTED] wrote: Please, tell me that Zend is not the dictator here. No one is a dictator. Chris So there is an opening for a dictator then? How can I get my name on the ballot? ;) I am the only dictator here. -- PHP

[PHP] Re: Storing images

2003-11-15 Thread Kim Steinhaug
Well as far as I can see you have 2 options. a) Store them directly on disc b) Store them in a database (eg. mySQL) I would think that a) is the best way without doubt, since it doest use any extra processing power to serve the images to your visitors as its only the webserver doing the usuall

[PHP] Can't fetch HTTP POST data in PHP?

2003-11-15 Thread Ivan Marenic
Any idea why? I am sending HTTP post request from j2me mobile device. Request is OK because it works well on ASP page. Thanks for help! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Storing images

2003-11-15 Thread Chris Shiflett
--- Kim Steinhaug [EMAIL PROTECTED] wrote: Well as far as I can see you have 2 options. a) Store them directly on disc b) Store them in a database (eg. mySQL) I would think that a) is the best way without doubt I usually take this option myself, but when you are creating an application to

[PHP] Re: Alternet row colors

2003-11-15 Thread Kim Steinhaug
Well, first of all Ill just scrap you script since this one is so easy its better to do it from scratch. OK, somewhere in your script you have the code that accually aoutputs the tables you are working with. Im refferring to lines here, and Im meaning the bottom of this document which is the

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-15 Thread Chris Shiflett
--- Ivan Marenic [EMAIL PROTECTED] wrote: Any idea why? I am sending HTTP post request from j2me mobile device. Request is OK because it works well on ASP page. You have to provide some information if you want anyone to help you. Chris = Chris Shiflett - http://shiflett.org/ PHP

[PHP] Re: Can't fetch HTTP POST data in PHP?

2003-11-15 Thread Manuel Lemos
Hello, On 11/15/2003 06:54 PM, Ivan Marenic wrote: Any idea why? I am sending HTTP post request from j2me mobile device. Request is OK because it works well on ASP page. You may want to try this class to submit HTTP request. See the test_http_post.php example script:

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-15 Thread Ivan Marenic
Here is j2me code snippet: byte[] postData=This is my test line! It works! Yipi-Yai-Yee!!!.getBytes(); try{ c = (HttpConnection)Connector.open(url_post); c.setRequestMethod(HttpConnection.POST); c.setRequestProperty( User-Agent, Profile/MIDP-1.0

Re: [PHP] Include an encoder into PHP distribution?

2003-11-15 Thread Manuel Lemos
Hello, On 11/15/2003 03:24 PM, John Smith wrote: Ok then, that's nice to hear. How about then the idea of including a reasonably good compiler/encoder into standard PHP distribution? For example Turck MMcache is one, gpl'd and comes as a php/zend extension. I don't think there are other free

Re: [PHP] Include an encoder into PHP distribution?

2003-11-15 Thread John Smith
Anyway, I don't think Zend people will allow a competing extension be included in the core PHP distribution precisely because it compromises their business. This is exactly the reason I started this thread by asking Who controls PHP? ... Thanks for clearing this out. Either way, another

php-general Digest 15 Nov 2003 21:30:47 -0000 Issue 2417

2003-11-15 Thread php-general-digest-help
php-general Digest 15 Nov 2003 21:30:47 - Issue 2417 Topics (messages 169731 through 169765): Re: CGI error when loading iFRAME 169731 by: Marek Kilimajer What is white space 169732 by: Gerard Samuel 169739 by: Chris Shiflett 169755 by: Robert Cummings

Re: [PHP] Re: Storing images

2003-11-15 Thread David Otton
On Sat, 15 Nov 2003 13:01:21 -0800 (PST), you wrote: --- Kim Steinhaug [EMAIL PROTECTED] wrote: Well as far as I can see you have 2 options. a) Store them directly on disc b) Store them in a database (eg. mySQL) I would think that a) is the best way without doubt I usually take this

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-15 Thread Ivan Marenic
Here is ASP code that works. Dim binread Dim bytecount bytecount = Request.TotalBytes binread = Request.BinaryRead(bytecount) 'Send response back to client Response.BinaryWrite binread -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Parse error?

2003-11-15 Thread Frank Keessen
Hi Guys, Sorry to trouble you on a saturday night (at least in The Netherlands...).. Get a parse error on line 42, but i can't see what is causing the trouble. (Parse error: parse error in /home/.sites/95/site92/web/admin/editreis.php on line 42) if(is_array($_POST['accomodatieid'])) {

[PHP] ASP code that works!

2003-11-15 Thread Ivan Marenic
Dim binread Dim bytecount bytecount = Request.TotalBytes binread = Request.BinaryRead(bytecount) Response.BinaryWrite binread -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-15 Thread Chris Shiflett
--- Ivan Marenic [EMAIL PROTECTED] wrote: Here is j2me code snippet: I try to avoid all of the crap that begins with the letter J, but your example code looks like you are sending a POST request. Here is PHP code snippet: // Show any post vars, but nothing shows - never!

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-15 Thread Ivan Marenic
This looks you are expecting to receive a POST request with PHP. So, are you wanting to send one or receive one? Receive one. Chris Shiflett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] --- Ivan Marenic [EMAIL PROTECTED] wrote: Here is j2me code snippet: I try to avoid all

Re: [PHP] Include an encoder into PHP distribution?

2003-11-15 Thread Chris Shiflett
--- Manuel Lemos [EMAIL PROTECTED] wrote: Anyway, I don't think Zend people will allow a competing extension be included in the core PHP distribution precisely because it compromises their business. [snip] IMHO, if you really want to make software free without confusion, forget GPL.

Re: [PHP] Parse error?

2003-11-15 Thread David Otton
On Sat, 15 Nov 2003 22:38:07 +0100, you wrote: Get a parse error on line 42, but i can't see what is causing the trouble. (Parse error: parse error in /home/.sites/95/site92/web/admin/editreis.php on line 42) if(is_array($_POST['accomodatieid'])) { foreach($_POST['accomodatieid'] as $Key =

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-15 Thread Chris Shiflett
--- Ivan Marenic [EMAIL PROTECTED] wrote: This looks you are expecting to receive a POST request with PHP. So, are you wanting to send one or receive one? Receive one. Is it possible for you to show us the HTTP request that is failing? It is possible that it is malformed in some way that

Re: [PHP] Parse error?

2003-11-15 Thread Boyan Nedkov
Frank Keessen wrote: Hi Guys, Sorry to trouble you on a saturday night (at least in The Netherlands...).. Get a parse error on line 42, but i can't see what is causing the trouble. (Parse error: parse error in /home/.sites/95/site92/web/admin/editreis.php on line 42)

Re: [PHP] Parse error?

2003-11-15 Thread Chris Shiflett
--- David Otton [EMAIL PROTECTED] wrote: I can't be bothered to figure out a test case, but you apparently have a SQL injection risk with your code. You're assuming that the data from the client is correct. This is a very good point. To highlight an example in the sample code you provided

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-15 Thread Ivan Marenic
Is it possible for you to show us the HTTP request that is failing? It is possible that it is malformed in some way that is fine with some Web servers and not with others. That may be possible but I am testing ASP i PHP(4.3.2) on same server IIS 5.0, localy. Can't sniff that (Network adapter

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-15 Thread Chris Shiflett
--- Ivan Marenic [EMAIL PROTECTED] wrote: Here is failed POST REQUEST to that server: * POST /http_post.php HTTP/1.1 User-Agent: Profile/MIDP-1.0 Configuration/CLDC-1.0 Host: www.milleniumtip.com:80 Content-Disposition: attachment; name=userfile;

Re: [PHP] Parse error?

2003-11-15 Thread Frank Keessen
Thanks for the help, and pointing out the security risk, Chris David! Regards, Frank - Original Message - From: Chris Shiflett [EMAIL PROTECTED] To: David Otton [EMAIL PROTECTED]; Frank Keessen [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, November 15, 2003 11:05 PM Subject:

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-15 Thread Ivan Marenic
I did not omit content. Copied whole text box in sniffer using context menu comands (select all, copy) - pasted to news agent. There is no content. However, when using local server, on my desktop, I assume there is content because I am getting response from ASP page with exact data wich is sent

Re: [PHP] Include an encoder into PHP distribution?

2003-11-15 Thread Manuel Lemos
Hello, On 11/15/2003 07:46 PM, Chris Shiflett wrote: Anyway, I don't think Zend people will allow a competing extension be included in the core PHP distribution precisely because it compromises their business. [snip] IMHO, if you really want to make software free without confusion, forget

[PHP] Oracle 9iAS - Add PHP module

2003-11-15 Thread Ahbaid Gaffoor
I'm running Oracle 9iAS on Linux, does anyone know if it's possible to add PHP to it as a module? Given that it's based on Apache? are there any docs out there on how to do this? thanks Ahbaid -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Unzip a file.

2003-11-15 Thread Vincent M.
Hello, Is there an easy way to unzip a zipped file which contains files (images), using a function from the zlib or any. To something like that: exec(unzip zipfile.zip -d /path/to/images) ; But without using the exec function. Thanks, Vincent. -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] What is white space

2003-11-15 Thread Leif K-Brooks
Robert Cummings wrote: FYI, if you're woprried about the header cannot be sent due to output... error, then if your file only has code and no HTML, then you can omit the ? tag at the end of your script. This solves countless issues with there being a space, a tab, a newline, or any whitespace

[PHP] Example In Changes in PHP 5/Zend Engine 2.0

2003-11-15 Thread chong wee huat
Below is the first php example found in Changes in PHP 5/Zend Engine 2.0 ?php class MyClass { private $Hello = Hello, World!\n; protected $Bar = Hello, Foo!\n; protected $Foo = Hello, Bar!\n; function printHello() { print MyClass::printHello() . $this-Hello;

Re: [PHP] What is white space

2003-11-15 Thread Keith Greene
It's not a bug. Anything (including spaces, newlines etc) that is not inside ? and ? is output directly to the browser. At 03:49 PM 11/15/2003, you wrote: Robert Cummings wrote: FYI, if you're woprried about the header cannot be sent due to output... error, then if your file only has code and

Re: [PHP] What is white space

2003-11-15 Thread Robert Cummings
On Sat, 2003-11-15 at 18:49, Leif K-Brooks wrote: Robert Cummings wrote: FYI, if you're woprried about the header cannot be sent due to output... error, then if your file only has code and no HTML, then you can omit the ? tag at the end of your script. This solves countless issues with

Re: [PHP] Re: Alternet row colors

2003-11-15 Thread Keith Greene
It's so much easier to use the mod (%) operator: using the mod operator, you can check if a variable is divisible by some other number without leaving a remainder. For this example, we want to change every other row, so we would compare our $count against 2 to see if it leaves a remainder: $bg

Re: [PHP] What is white space

2003-11-15 Thread Keith Greene
Yep. It allows you to only use php where needed, and use HTML for the rest. At 04:02 PM 11/15/2003, you wrote: On Sat, 2003-11-15 at 18:49, Leif K-Brooks wrote: Robert Cummings wrote: FYI, if you're woprried about the header cannot be sent due to output... error, then if your file only has

Re: [PHP] What is white space

2003-11-15 Thread Leif K-Brooks
Keith Greene wrote: It's not a bug. Anything (including spaces, newlines etc) that is not inside ? and ? is output directly to the browser. No, I'm talking about not using ?. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be

Re: [PHP] What is white space

2003-11-15 Thread Leif K-Brooks
Keith Greene wrote: That's not a bug either. Leaving out the ? is simply telling the php parser that it has to parse the rest of the script. Where's the manual page saying that's allowed? -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-15 Thread Arne Rusek
Hello. I read throughout this thread and it looks like I have encountered the same problem. Everything looks just fine but somehow the PHP does not parse the request data sent to the script. I did some research on that but gave up since I couldn't find how and where those data were parsed. But

Re: [PHP] What is white space

2003-11-15 Thread Keith Greene
Ok, you're getting into semantics now. http://www.php.net/manual/en/language.basic-syntax.php doesn't say whether it is acceptable or not, but as Robert pointed out, if your script is purely php, omitting it is a good way of eliminating the headache of trailing white spaces that may interfere

Re: [PHP] What is white space

2003-11-15 Thread Leif K-Brooks
Keith Greene wrote: Ok, you're getting into semantics now. http://www.php.net/manual/en/language.basic-syntax.php doesn't say whether it is acceptable or not, but as Robert pointed out, if your script is purely php, omitting it is a good way of eliminating the headache of trailing white

Re: [PHP] What is white space

2003-11-15 Thread Chris Shiflett
--- Keith Greene [EMAIL PROTECTED] wrote: It's not a bug. Anything (including spaces, newlines etc) that is not inside ? and ? is output directly to the browser. There are two different things being discussed, and I'm not positive which is considered a bug. 1. When a closing PHP tag, such as

Re: [PHP] Include an encoder into PHP distribution?

2003-11-15 Thread Manuel Lemos
Hello, On 11/15/2003 07:31 PM, John Smith wrote: Anyway, I don't think Zend people will allow a competing extension be included in the core PHP distribution precisely because it compromises their business. This is exactly the reason I started this thread by asking Who controls PHP? ... Thanks

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-15 Thread Chris Shiflett
--- Arne Rusek [EMAIL PROTECTED] wrote: I used this form: form action=test.php method=POST Your name: input type=text name=username/br/ Email: input type=text name=email//br input type=submit name=submit value=Submit me! /form The test.php script contained this code:

[PHP] giving variable value in URL problem

2003-11-15 Thread Burak Delice
hi, when I enter url like that http://localhost/menu.php?status=0 php return an error below : Warning: Undefined variable: status in D:\calismalar\cengiz_ozdelice\web\menu.php on line 41 my code on 41.line is : if ($status==0) echo 'trying; what is problem? thank you. -- PHP General

Re: [PHP] giving variable value in URL problem

2003-11-15 Thread Chris Shiflett
--- Burak Delice [EMAIL PROTECTED] wrote: http://localhost/menu.php?status=0 php return [snip] if ($status==0) echo 'trying; if (!$_GET['status']) { echo 'trying; } Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security Handbook Coming mid-2004 HTTP

Re: [PHP] What is white space

2003-11-15 Thread Gerard Samuel
On Saturday 15 November 2003 08:22 pm, Chris Shiflett wrote: 1. When a closing PHP tag, such as ?, is followed by a newline, the newline is not output. Im the original author to this thread, and this is an attempt to bring back this thread to square one, as it was straying in other directions

[PHP] Segfault using ibase (firebird) with PEAR

2003-11-15 Thread Jos Romero (SistemasJG)
Hi folks, I'm very new to PHP and PEAR. But I'm having very strange troubles with this simple thing. I'm trying to run the following script into a php file: ?php require_once 'DB.php'; $db = DB::Connect('ibase(firebird)://SYSDBA:[EMAIL

[PHP] ereg_replace()

2003-11-15 Thread erythros
ok, so i'm stupid. how do i replace all '? ' with '?? ' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ereg_replace()

2003-11-15 Thread Chris Shiflett
--- erythros [EMAIL PROTECTED] wrote: ok, so i'm stupid. how do i replace all '? ' with '?? ' $foo = '? '; $bar = str_replace('? ', '?? ', $foo); Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security Handbook Coming mid-2004 HTTP Developer's Handbook

Re: [PHP] ereg_replace()

2003-11-15 Thread Justin French
On Sunday, November 16, 2003, at 02:31 PM, erythros wrote: ok, so i'm stupid. how do i replace all '? ' with '?? ' No need for regular expressions here. ? $str = 'well, how do I do this? should i experiment?'; $newStr = str_replace('? ','?? ',$str); echo $newStr; // should echo well, how

Re: [PHP] ereg_replace()

2003-11-15 Thread erythros
chris and justin, you guys rock. thanx for pointing towards str_replace(). my code works now. thanx! Justin French [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Sunday, November 16, 2003, at 02:31 PM, erythros wrote: ok, so i'm stupid. how do i replace all '? ' with '?? '

[PHP] Limiting repetitive file access

2003-11-15 Thread Andre Dubuc
Hi, Recently, a 'user' attempted to access a restricted area of my site repetitively (spanning five hours) entering the same url repetitively [probably by script]. A massive log file was generated. I would like to ban such behavior by limiting the number of successive 'get's a user can do (say

Re: [PHP] Limiting repetitive file access

2003-11-15 Thread Raditha Dissanayake
Hi, While your solution is feasible it would still consume processor and memory because you are doing this at a very high level, you will be better of solving this at a lower level by a proper use of a firewall. What you have described sounds like a kiddie script attempt at a denial of service

Re: [PHP] giving variable value in URL problem

2003-11-15 Thread Burak Delice
thanx Chris, this code is running on Web, is not on Local. and I did your way, it did not work regards Chris Shiflett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] --- Burak Delice [EMAIL PROTECTED] wrote: http://localhost/menu.php?status=0 php return [snip] if ($status==0)

Re: [PHP] Unzip a file.

2003-11-15 Thread John Nichel
Vincent M. wrote: Hello, Is there an easy way to unzip a zipped file which contains files (images), using a function from the zlib or any. To something like that: exec(unzip zipfile.zip -d /path/to/images) ; But without using the exec function. Thanks, Vincent. You may want to check here