Re: [PHP] Search engine

2005-01-20 Thread Jordi Canals
On Thu, 20 Jan 2005 14:04:44 +0200, Rosen [EMAIL PROTECTED] wrote: Hi, Can someone recommend me a search engine script in PHP for inside one site? http://www.phpdig.net/ Regards, Jordi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Best way to encode?

2005-01-20 Thread Sephiroth
in HTML with HTTP_GET, you can use: xxx.href = my.php?data=+encodeURI(escape(...foreign strings...)); my.php: $data = uniDecode($_GET[data]); echo $data; function uniDecode($sText) { $sData = preg_replace_callback(/%u[0-9A-Za-z]{4}/,toUtf8, $sText); return unescape($sData); } function

Re: [PHP] For HomeSite users...

2005-01-20 Thread daniel
.org don't work but www.phpeclipse.de does. Sorry yeh , anyway it took me a while to change, but with all the added plugins i now have a cooolIDE which does cvs, debugging, xml, html, xsl testing, db schema, db modeller, uml, java, tomcat,team syncing, the list goes on. One thing i cant

[PHP] Extending a Class

2005-01-20 Thread Phillip S. Baker
Greetings all, I have a class I use for MySQL connection and functions. I also have a class that I use to create Paged Results. The paged results class connects to a DB and uses allot of sql calls to make this happen. I am noticing that it does allot that the MySQL class does. What I would

[PHP] Allow users to upload images to directory

2005-01-20 Thread Tim Burgan
Hello, How can I allow users of my website to upload JPEG's to a set directory, and then have the JPEG scaled-down if they upload some huge image (both in pixel size and resolution)? Is there anything around that clearly (and simply) explains this? Thanks Tim -- PHP General Mailing List

Re: [PHP] Allow users to upload images to directory

2005-01-20 Thread Greg Donald
On Fri, 21 Jan 2005 13:12:54 +1030, Tim Burgan [EMAIL PROTECTED] wrote: Hello, How can I allow users of my website to upload JPEG's to a set directory, and then have the JPEG scaled-down if they upload some huge image (both in pixel size and resolution)? Is there anything around that

Re: [PHP] too slow to unset big array (after mem fragment)

2005-01-20 Thread Xuefer Tinys
On Wed, 19 Jan 2005 16:28:21 -0700, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: A question from another naive reader. Have you tried re-setting the array to an empty one, using array(), instead of using unset()? indeed!, unset($arr); $arr = array(); or $arr = array(); directly it's same :(

[PHP] Re: Search engine

2005-01-20 Thread Raj Shekhar
Rosen [EMAIL PROTECTED] writes: Hi, Can someone recommend me a search engine script in PHP for inside one site? If you need to index through static pages phpdig can be useful for you http://www.phpdig.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Hidden Images.

2005-01-20 Thread Paul Birnstihl
If you have a 2bit GIF with only white and transparent and you place it on a white page (background), you can hide it until it's highlit. Not very pretty but it works. Rob Adams wrote: I've been figuring out how to create hidden images. The concept is: when you highlight an image in Internet

[PHP] mkdir security concern

2005-01-20 Thread kids_pro
Hi there, I want to create a script. When user register I want to create a folder : users\new_user_folder\images The purpose is that I want to allow them to upload image to this image folders. What sort of permission should I give to each folder Root: users, new_user_folders, and images

[PHP] file upload

2005-01-20 Thread akshay
Hi all, I hv problem while file upload. I hv one server and multiple client. I want to upload a file from Server to client. how this is possible in PHP with regds, akshay -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] mkdir security concern

2005-01-20 Thread Marek Kilimajer
kids_pro wrote: Hi there, I want to create a script. When user register I want to create a folder : users\new_user_folder\images The purpose is that I want to allow them to upload image to this image folders. What sort of permission should I give to each folder Root: users, new_user_folders,

Re: [PHP] Problem with hidden form input values

2005-01-20 Thread Ben Edwards
On Wed, 19 Jan 2005 15:22:55 -0800 (PST), Richard Lynch [EMAIL PROTECTED] wrote: Ben Edwards (lists) wrote: I know this is not strictly speaking a PHP question but it is to do with a PHP app. I have a form with a number of hidden values in it. After the post print_r( $_POST ) shows

Re: [PHP] Problem with hidden form input values

2005-01-20 Thread Ben Edwards
On Thu, 20 Jan 2005 07:33:01 +0800, Jason Wong [EMAIL PROTECTED] wrote: On Thursday 20 January 2005 07:07, Ben Edwards (lists) wrote: I know this is not strictly speaking a PHP question but it is to do with a PHP app. I have a form with a number of hidden values in it. After the post

Re: [PHP] file upload

2005-01-20 Thread Marek Kilimajer
akshay wrote: Hi all, I hv problem while file upload. I hv one server and multiple client. I want to upload a file from Server to client. how this is possible in PHP This is usualy called download. Is this what you want? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Search engine

2005-01-20 Thread Rosen
Hi, Can someone recommend me a search engine script in PHP for inside one site? Thanks in advance! Rosen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Search engine

2005-01-20 Thread Ben Edwards
This kind of depends on what database you are using (I am asuming you mean you have a data driven site you want to search so strictly speaking it is the database that you want to search). Mysl has free text search facilities (i.e. you can pass it a number of words and it can search for them in a

Re: [PHP] file upload

2005-01-20 Thread anirudh dutt
On Thu, 20 Jan 2005 12:26:07 +0100, Marek Kilimajer [EMAIL PROTECTED] wrote: akshay wrote: Hi all, I hv problem while file upload. I hv one server and multiple client. I want to upload a file from Server to client. how this is possible in PHP This is usualy called download. Is this

Re: [PHP] Search engine

2005-01-20 Thread Rosen
I try many scripts for searching, but they don't work how I want. The problem is, that part of site is static text ( not in database ) , other part ( products ) are in MySQL database - this part is generating from PHP scripts. Ben Edwards [EMAIL PROTECTED] wrote in message news:[EMAIL

Re: [PHP] file upload

2005-01-20 Thread M. Sokolewicz
Anirudh Dutt wrote: On Thu, 20 Jan 2005 12:26:07 +0100, Marek Kilimajer [EMAIL PROTECTED] wrote: akshay wrote: Hi all, I hv problem while file upload. I hv one server and multiple client. I want to upload a file from Server to client. how this is possible in PHP This is usualy called download. Is

Re: [PHP] Search engine

2005-01-20 Thread Ben Edwards
Looks like you will have to write your own. Have a look at the scripts you have and see how they do it. One option is to write the 'static' pages into the database as well as the file system. I personaly put all content into a database and do not really have any static pages atall. Ben On

[PHP] php 5 interfaces

2005-01-20 Thread Sergio Gorelyshev
Hi all. Situation: interface MyInterface { public static myMethod(); } class MyClass implements MyInterface { public static myMethod() {} } This sample will crash with message Fatal error: Access type for interface method MyInterface::myMethod() must be omitted in somefile.php on line NN

Re: [PHP] Search engine

2005-01-20 Thread Rosen
But here the problem is, that the texts in database uses from different scripts and on the search engine I should show and link to the sctipt, thath shows searched data. My idea was for search script, who explore the whole site (as generated from PHP scripts - via links ). Ben Edwards [EMAIL

Re: [PHP] Search engine

2005-01-20 Thread Robert Sossomon
Why not use PHP to create static pages from your dynamic info (say 5 minutes after the data is update?) and allow for the system to search the site then? I have noticed that I don't even have to do that for the search spiders from Google and yahoo to trawl my site and get everything, so maybe

Re: [PHP] file upload

2005-01-20 Thread anirudh dutt
On Thu, 20 Jan 2005 13:30:35 +0100, M. Sokolewicz [EMAIL PROTECTED] wrote: what you're doing is server = server What the akshay wants is server = client The only not yet posted other options are client = client (which is essentially impossible with PHP, unless you use the server=server setup)

[PHP] Use a query twice

2005-01-20 Thread Shaun
Hi, I have the following query: $result = mysql_query(SELECT * FROM Users); while( $r = db_fetch_array( $result ) ){ echo $r['Name']; } Is it possible to use the same result set to loop through the values form the begining or do I have to create the $result varible again? Thanks for your

[PHP] Search indexing.. Re: [PHP] Search engine

2005-01-20 Thread tg-php
Just out of curiosity.. relating to this subject.. does anyone have any good documentation on creating your own site index so you can create your own search engine? That is.. do search engines like Google take every word in a web page and if you search for that specific word it has a list of

Re: [PHP] Use a query twice

2005-01-20 Thread Sergio Gorelyshev
On Thu, 20 Jan 2005 13:06:54 - Shaun [EMAIL PROTECTED] wrote: Hi, I have the following query: $result = mysql_query(SELECT * FROM Users); while( $r = db_fetch_array( $result ) ){ echo $r['Name']; } Is it possible to use the same result set to loop through the values form

Re: [PHP] Re: multiple sessions on same server/domain

2005-01-20 Thread Marek Kilimajer
Richard Lynch wrote: Marek Kilimajer wrote: Jason Barnett wrote: Valter Toffolo wrote: ok i have one server with a single domain, each user have it's home with a public_html so i get mydomain.com/~user1/ and mydomain.com/~user2/ and so on. but each user might like to use sessions so how can i

Re: [PHP] Re: which is best php editor?

2005-01-20 Thread QT
hi, I am using editplus 2 as well. But don't you want to see functions in the another window or some quick coompletion, when you write codes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] What's the purpose of your coding? Applications? Just some sort of dynamic code here n there?

[PHP] Re: class structure.

2005-01-20 Thread Jason Barnett
Dustin Krysak wrote: Hi there, I am pretty new to writing classes (and pretty new to PHP itself), but I was wondering what was the best format for constructing There are a few general patterns that show up time after time. They happen so often that there are formal names for them. This isn't

[PHP] quoting values in HTML - is there a diference between ' and

2005-01-20 Thread Ben Edwards
I always thought quoting values in HTML had to be dome with double quotes (). however on reeding some stuff in the PHP manual the examples use single quoted. Single quotes are allot more convenient as I use double quotes generally for quoting strings. So are the two totally synonymous in HTML?

Re: [PHP] quoting values in HTML - is there a diference between ' and

2005-01-20 Thread tg-php
I believe HTML uses ' and interchangeably. No real difference. Well, it also depends on the HTML rendering engine too I guess. IE might do it ok but Firefox might not.. things like that. But I think as far as the spec goes, you can use both.In a lot of cases, as long as there are no

[PHP] How to load PDF file page by page

2005-01-20 Thread Deepak Dhake
Hello all, Can anyone tell me how to read large PDF file and outputs it but the PDF file should load page by page before it completely downloads. Thanks in advance! Deepak -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Search engine

2005-01-20 Thread Greg Donald
On Thu, 20 Jan 2005 14:04:44 +0200, Rosen [EMAIL PROTECTED] wrote: Can someone recommend me a search engine script in PHP for inside one site? Use HTDig. Here's a tutorial on how to use it and how to write a PHP wrapper around the result set for total customization of the display results:

Re: [PHP] quoting values in HTML - is there a diference between ' and

2005-01-20 Thread Greg Donald
On Thu, 20 Jan 2005 14:47:21 +, Ben Edwards [EMAIL PROTECTED] wrote: I always thought quoting values in HTML had to be dome with double quotes (). however on reeding some stuff in the PHP manual the examples use single quoted. Single quotes are allot more convenient as I use double

Re: [PHP] Search indexing.. Re: [PHP] Search engine

2005-01-20 Thread Greg Donald
On Thu, 20 Jan 2005 8:16:28 -0500, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Just out of curiosity.. relating to this subject.. does anyone have any good documentation on creating your own site index so you can create your own search engine? http://www.devshed.com/c/a/PHP/Search-This/ --

Re[2]: [PHP] quoting values in HTML - is there a diference between ' and

2005-01-20 Thread Richard Davey
Hello, Thursday, January 20, 2005, 2:55:09 PM, you wrote: tpgc I believe HTML uses ' and interchangeably. No real difference. tpgc Well, it also depends on the HTML rendering engine too I guess. tpgc IE might do it ok but Firefox might not.. things like that. But tpgc I think as far as the spec

[PHP] Firefox's Web Developer Extension.. Re: [PHP] quoting values in HTML - is there a diference between ' and

2005-01-20 Thread tg-php
Yeah, that looks like it. Even one little feature like being able to show table cell borders and toggle that one and off can be invaluable to someone who habitually goes in and sets a border=1 for a table then has to go back and do border=0 after checking the table. The web browser knows

[PHP] Re: php 5 interfaces

2005-01-20 Thread M. Sokolewicz
Sergio Gorelyshev wrote: Hi all. Situation: interface MyInterface { public static myMethod(); } class MyClass implements MyInterface { public static myMethod() {} } This sample will crash with message Fatal error: Access type for interface method MyInterface::myMethod() must be omitted in

Re: [PHP] Re: SPL Exceptions

2005-01-20 Thread Gerard Samuel
M. Sokolewicz wrote: Gerard Samuel wrote: Does anyone know when the exception objects listed in item #6 at http://www.php.net/~helly/php/ext/spl/ will be available in base php5?? Thanks when you install the SPL extension :) I don't think it's planned for php5-source though [UPDATE 1-20-2005] Im

Re: [PHP] Re: php 5 interfaces

2005-01-20 Thread Sergio Gorelyshev
On Thu, 20 Jan 2005 16:39:21 +0100 M. Sokolewicz [EMAIL PROTECTED] wrote: Sergio Gorelyshev wrote: Hi all. Situation: interface MyInterface { public static myMethod(); } class MyClass implements MyInterface { public static myMethod() {} } This sample will crash

[PHP] phppatterns.com, Nice idea, shame about the site (was Re: [PHP] Re: class structure.)

2005-01-20 Thread Ben Edwards
On Thu, 20 Jan 2005 09:37:37 -0500, Jason Barnett [EMAIL PROTECTED] wrote: Dustin Krysak wrote: Hi there, I am pretty new to writing classes (and pretty new to PHP itself), but I was wondering what was the best format for constructing There are a few general patterns that show up time

[PHP] filling a pdf form.

2005-01-20 Thread marc serra
Hello, I got a problem with PDF. I got a PDF form that i want to put on a server to allow users to fill it. After this, i want to collect information entered by users and recreate a PDF file with all of them. It's important that's the original PDF file and the filled one had the same shape.

[PHP] Re: phppatterns.com, Nice idea, shame about the site (was Re: [PHP] Re: class structure.)

2005-01-20 Thread Jason Barnett
Ben Edwards wrote: On Thu, 20 Jan 2005 09:37:37 -0500, Jason Barnett [EMAIL PROTECTED] wrote: Dustin Krysak wrote: Hi there, I am pretty new to writing classes (and pretty new to PHP itself), but I was wondering what was the best format for constructing There are a few general patterns that show

Re: [PHP] Re: SPL Exceptions

2005-01-20 Thread Jason Barnett
[UPDATE 1-20-2005] Im making a minor additional note, just in case it comes up again. From the lack of responses I got on this, I thought I may have missed the point from your responses. But I've found some information that may or may not be correct. Speculation - The SPL exceptions that I

[PHP] EREGI_REPLACE? HELP!!!

2005-01-20 Thread Kiason Turner
I'm trying to take a string and remove all invalid characters from it. $string=Frid#ays are@ re$ally G{}[]RE~AT. F*riday at 5 is be^tter.; The only characters that should be allowed are A-Z, a-z, 0-9, .(period), -(dash), ;(semi-colon), and :(colon). All other characters should be removed. After

[PHP] Seemingly weird regex problem

2005-01-20 Thread Tim Boring
Hello! I'm having an odd regex problem. Here's a summary of what I'm trying to accomplish: I've got a report file generated from our business management system (Progress 4GL), one fixed-width record per line. I've got a php script that reads in the raw file one line at a time, and strips out

Re: [PHP] Seemingly weird regex problem

2005-01-20 Thread Richard Lynch
Tim Boring wrote: Hello! I'm having an odd regex problem. Here's a summary of what I'm trying to accomplish: switch ($line) { case ($total_counter = 5): break; case preg_match(/^\W+/, $line): While it would be Really Nifty (tm) if PHP worked this way, as

Re: [PHP] Re: phppatterns.com, Nice idea, shame about the site (was Re: [PHP] Re: class structure.)

2005-01-20 Thread Ben Edwards
On Thu, 20 Jan 2005 11:55:37 -0500, Jason Barnett [EMAIL PROTECTED] wrote: Ben Edwards wrote: On Thu, 20 Jan 2005 09:37:37 -0500, Jason Barnett [EMAIL PROTECTED] wrote: Dustin Krysak wrote: Hi there, I am pretty new to writing classes (and pretty new to PHP itself), but I was wondering

[PHP] debugging modules

2005-01-20 Thread Arshavir Grigorian
Hi, I am having trouble debugging a PECL module (APC) because while I am able to --enable-debug when configuring the PHP course, I cannot do the same for APC (no such configure option). Does anyone know how to do that? PHP Warning: Unknown(): apc: Unable to initialize module\nModule compiled

[PHP] URGENT: Break-lines disappearing.

2005-01-20 Thread Bruno B B Magalhães
Hi you all, I am having a very big problem... I have an article module in a system, when an user creates an article it's parsed (as everything else in the system) by an input class, after, it is checked for emptily and after is build an insert query... But the break-lines just disappear... I've

Re: [PHP] Seemingly weird regex problem

2005-01-20 Thread Bret Hughes
On Thu, 2005-01-20 at 11:59, Richard Lynch wrote: Tim Boring wrote: Hello! I'm having an odd regex problem. Here's a summary of what I'm trying to accomplish: switch ($line) { case ($total_counter = 5): break; case preg_match(/^\W+/, $line):

RE: [PHP] EREGI_REPLACE? HELP!!!

2005-01-20 Thread Chris W. Parker
Kiason Turner mailto:[EMAIL PROTECTED] on Thursday, January 20, 2005 9:19 AM said: I'm trying to take a string and remove all invalid characters from it. $string=Frid#ays are@ re$ally G{}[]RE~AT. F*riday at 5 is be^tter.; Any ideas? Your help is appreciated. What have you tried so

Re: [PHP] filling a pdf form.

2005-01-20 Thread Richard Lynch
marc serra wrote: I got a problem with PDF. I got a PDF form that i want to put on a server to allow users to fill it. After this, i want to collect information entered by users and recreate a PDF file with all of them. It's important that's the original PDF file and the filled one had the

Re: [PHP] Seemingly weird regex problem

2005-01-20 Thread Tim Boring
On Thu, 2005-01-20 at 12:59, Richard Lynch wrote: Tim Boring wrote: Hello! I'm having an odd regex problem. Here's a summary of what I'm trying to accomplish: switch ($line) { case ($total_counter = 5): break; case preg_match(/^\W+/, $line):

Re: [PHP] EREGI_REPLACE? HELP!!!

2005-01-20 Thread Greg Donald
On Thu, 20 Jan 2005 11:19:10 -0600, Kiason Turner [EMAIL PROTECTED] wrote: I'm trying to take a string and remove all invalid characters from it. $string=Frid#ays are@ re$ally G{}[]RE~AT. F*riday at 5 is be^tter.; The only characters that should be allowed are A-Z, a-z, 0-9, .(period),

[PHP] downloading file and displaying HTML

2005-01-20 Thread Michael Grunewalder
Hi, I have a list of files that are outside the web root and can't be accessed with a URL directly. If a user clicks the link for a file on the download page, I would like to send that file to the browser as a download *and* display HTML in the browser window. How can I do that - if it is

Re: [PHP] How to load PDF file page by page

2005-01-20 Thread Richard Lynch
Deepak Dhake wrote: Can anyone tell me how to read large PDF file and outputs it but the PDF file should load page by page before it completely downloads. I think that's more of an Adobe question than PHP, really... I vaguely recall that you could make this happen (only?) if you were using not

Re: [PHP] Seemingly weird regex problem

2005-01-20 Thread Jason Wong
On Friday 21 January 2005 01:52, Tim Boring wrote: To try to help spot the issue, I put in the if(preg_match(/^\W+/, $line)) logic, and the weird thing is that this logic isn't outputting the line beginning with things like AKRN, yet the same line is getting caught in the switch statement and

Re: [PHP] Seemingly weird regex problem

2005-01-20 Thread Jason Wong
On Friday 21 January 2005 02:16, Tim Boring wrote: It's perfectly legit to use expressions. Now perhaps there is something wrong with the regex I'm trying to use, but using a regex in and of itself is legal. http://www.php.net/manual/en/control-structures.switch.php Yes, but comparing those

Re: [PHP] Re: multiple sessions on same server/domain

2005-01-20 Thread Richard Lynch
2) Cookie security, so user1 can read user2's cookie files Something like above, but cookies are not files as I'm sure you know ;) (though they are stored somewhere, this is just implementation). They are stored in files, by default, though you can put them in a database, or whatever you

Re: [PHP] How to load PDF file page by page

2005-01-20 Thread Deepak Dhake
Hi Richard, There is a concept called byte-serving with you can control the loading of PDF file using PHP. I am not very sure how to do it. If you get a chance to look into it then please let me know. Thanks, Deepak Richard Lynch wrote: Deepak Dhake wrote: Can anyone tell me how to read

Re: [PHP] php 5 interfaces

2005-01-20 Thread Richard Lynch
Sergio Gorelyshev wrote: Hi all. Situation: interface MyInterface { public static myMethod(); } class MyClass implements MyInterface { public static myMethod() {} } This sample will crash with message Fatal error: Access type for interface method MyInterface::myMethod() must be

Re: [PHP] Problem with hidden form input values

2005-01-20 Thread Richard Lynch
Ben Edwards wrote: On Wed, 19 Jan 2005 15:22:55 -0800 (PST), Richard Lynch [EMAIL PROTECTED] wrote: Ben Edwards (lists) wrote: I know this is not strictly speaking a PHP question but it is to do with a PHP app. I have a form with a number of hidden values in it. After the post

Re: [PHP] Seemingly weird regex problem

2005-01-20 Thread Tim Boring
On Thu, 2005-01-20 at 13:41, Jason Wong wrote: On Friday 21 January 2005 01:52, Tim Boring wrote: Well the biggest problem in your code right now is your incomprehensible (to me anyway) use of the switch construct. For a start I've no idea why you're using ... switch ($line) ...

Re: [PHP] Re: class structure.

2005-01-20 Thread Richard Lynch
Jason Barnett wrote: Think of declaration of properties and methods as a contract. When something is public it is available to all of PHP. When it is private it is only usable by the class that you define it in. When it is protected it is a hybrid; it is usable to the class that defined it

Re: [PHP] class structure.

2005-01-20 Thread Richard Lynch
Dustin Krysak wrote: var $local; var $query_rs_biz; var $rs_biz; You never actually use these as properties on the object, only as variables within a single function. So don't put them here. Only put stuff here that you pass between functions or which you want other scripts to be able to

Re: [PHP] downloading file and displaying HTML

2005-01-20 Thread Richard Lynch
Michael Grunewalder wrote: I have a list of files that are outside the web root and can't be accessed with a URL directly. If a user clicks the link for a file on the download page, I would like to send that file to the browser as a download *and* display HTML in the browser window. How

Re: [PHP] Seemingly weird regex problem

2005-01-20 Thread Bret Hughes
On Thu, 2005-01-20 at 12:43, Jason Wong wrote: On Friday 21 January 2005 02:16, Tim Boring wrote: It's perfectly legit to use expressions. Now perhaps there is something wrong with the regex I'm trying to use, but using a regex in and of itself is legal.

Re: [PHP] quoting values in HTML - is there a diference between ' and

2005-01-20 Thread Jochem Maas
[EMAIL PROTECTED] wrote: I believe HTML uses ' and interchangeably. No real difference. Well, it also depends on the HTML rendering engine too I guess. IE might do it ok but Firefox might not.. things like that. But I think as far as the spec goes, you can use both.In a lot of cases,

Re: [PHP] Seemingly weird regex problem

2005-01-20 Thread Richard Lynch
Tim Boring wrote: It's perfectly legit to use expressions. Now perhaps there is something wrong with the regex I'm trying to use, but using a regex in and of itself is legal. http://www.php.net/manual/en/control-structures.switch.php Ah... Well, the User Contributed notes provide some

Re: [PHP] URGENT: Break-lines disappearing.

2005-01-20 Thread Richard Lynch
Where are the break-lines?!?!? I am really desperate! Please! I am using MySQL and PHP4. Did you use View Source in your browser, or are you just seeing the data dumped out to a browser which *IGNORES* line-breaks?... When you print debug output, use PRE and /PRE around it for anything that's

Re: [PHP] Re: php 5 interfaces

2005-01-20 Thread Jochem Maas
M. Sokolewicz wrote: Sergio Gorelyshev wrote: Hi all. Situation: interface MyInterface { public static myMethod(); } class MyClass implements MyInterface { public static myMethod() {} } This sample will crash with message Fatal error: Access type for interface method MyInterface::myMethod()

Re: [PHP] Seemingly weird regex problem

2005-01-20 Thread Jason Wong
On Friday 21 January 2005 03:21, Tim Boring wrote: On Thu, 2005-01-20 at 13:41, Jason Wong wrote: On Friday 21 January 2005 01:52, Tim Boring wrote: Well the biggest problem in your code right now is your incomprehensible (to me anyway) use of the switch construct. For a start I've no

Re: [PHP] Seemingly weird regex problem

2005-01-20 Thread Richard Lynch
Tim Boring wrote: On Thu, 2005-01-20 at 13:41, Jason Wong wrote: On Friday 21 January 2005 01:52, Tim Boring wrote: Well the biggest problem in your code right now is your incomprehensible (to me anyway) use of the switch construct. For a start I've no idea why you're using ...

Re: [PHP] php 5 interfaces

2005-01-20 Thread Jochem Maas
Richard Lynch wrote: Sergio Gorelyshev wrote: Hi all. Situation: interface MyInterface { public static myMethod(); } class MyClass implements MyInterface { public static myMethod() {} } This sample will crash with message Fatal error: Access type for interface method MyInterface::myMethod() must

Re: [PHP] Re: phppatterns.com, Nice idea, shame about the site (was Re: [PHP] Re: class structure.)

2005-01-20 Thread Jason Barnett
Ben Edwards wrote: ... http://phppatterns.com/index.php/article/archive/1/ Cool, thats the type of thing. Why don't you have a link at the top with something like 'patterns directory' or alternativly have a 'about us' link with the stuff at phppatterns and use phppatterns for the paterns

Re: [PHP] Firefox's Web Developer Extension.. Re: [PHP] quoting values in HTML - is there a diference between ' and

2005-01-20 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Yeah, that looks like it. Even one little feature like being able to show table cell borders and toggle that one and off can be invaluable to someone who habitually goes in and sets a border=1 for a table then has to go back and do border=0 after checking the table.

Re: [PHP] Problem with hidden form input values

2005-01-20 Thread Jason Wong
On Friday 21 January 2005 03:20, Richard Lynch wrote: The *do* POST, but PHP only handles one level of array references in NAME=xxx [snip] What you are receiving from HTTP/POST/PHP is the same as: $keyField['mb_memberhips][0'] = 'mb_e_id'; Note the lack of intervening apostrophes you

Re: [PHP] Seemingly weird regex problem

2005-01-20 Thread Bret Hughes
On Thu, 2005-01-20 at 13:21, Tim Boring wrote: On Thu, 2005-01-20 at 13:41, Jason Wong wrote: On Friday 21 January 2005 01:52, Tim Boring wrote: Well the biggest problem in your code right now is your incomprehensible (to me anyway) use of the switch construct. For a start I've no

Re: [PHP] Problem with hidden form input values

2005-01-20 Thread Jochem Maas
Richard Lynch wrote: Ben Edwards wrote: On Wed, 19 Jan 2005 15:22:55 -0800 (PST), Richard Lynch [EMAIL PROTECTED] wrote: ... PHP only parses POST data to *ONE* dimension. for the second time now: BULLSHIT - this is not true and has not been for along as I have used PHP (and that I was aware of

RE: [PHP] Seemingly weird regex problem

2005-01-20 Thread Michael Sims
Tim Boring wrote: On Thu, 2005-01-20 at 13:41, Jason Wong wrote: I suspect what you want to be doing is something like this: switch (TRUE) { case ANY_EXPRESSION_THAT_EVALUATES_TO_TRUE: ... } Thanks for the suggestion, but I'm not sure that does what I'm looking for. I really

Re: [PHP] Re: class structure.

2005-01-20 Thread Jason Barnett
Richard Lynch wrote: Jason Barnett wrote: Think of declaration of properties and methods as a contract. When something is public it is available to all of PHP. When it is private it is only usable by the class that you define it in. When it is protected it is a hybrid; it is usable to the class

[PHP] Providing a means for the surfer to send a file

2005-01-20 Thread Todd Cary
I am looking for some sample code on setting up a page that provides a means for the surfer to send a file to the server. Todd -- inline: NewLogo.gif

Re: [PHP] Firefox's Web Developer Extension.. Re: [PHP] quoting values in HTML - is there a diference between ' and

2005-01-20 Thread tg-php
just to hammer the point home - CSS - the table killer. I still like tables. Absolute positioning be damned. Most times I'm perfectly happy letting the browser figure out where to put things without being explicit. Given, I need to do more work with CSS, but one thing I know that drives

Re: [PHP] Seemingly weird regex problem

2005-01-20 Thread Tim Boring
On Thu, 2005-01-20 at 14:40, Bret Hughes wrote: On Thu, 2005-01-20 at 12:43, Jason Wong wrote: On Friday 21 January 2005 02:16, Tim Boring wrote: It's perfectly legit to use expressions. Now perhaps there is something wrong with the regex I'm trying to use, but using a regex in and of

Re: [PHP] Seemingly weird regex problem

2005-01-20 Thread Tim Boring
On Thu, 2005-01-20 at 13:43, Jason Wong wrote: On Friday 21 January 2005 02:16, Tim Boring wrote: It's perfectly legit to use expressions. Now perhaps there is something wrong with the regex I'm trying to use, but using a regex in and of itself is legal.

Re: [PHP] Seemingly weird regex problem

2005-01-20 Thread Bret Hughes
On Thu, 2005-01-20 at 14:06, Bret Hughes wrote: I think I see a possible explanation for the behavior. preg_replace does not return a true or false value it returns the string passed as the subject with any matched replacements done. Hmm the manual says it better: If matches are found,

RE: [PHP] Seemingly weird regex problem

2005-01-20 Thread Tim Boring
On Thu, 2005-01-20 at 15:13, Michael Sims wrote: Tim Boring wrote: On Thu, 2005-01-20 at 13:41, Jason Wong wrote: I suspect what you want to be doing is something like this: switch (TRUE) { case ANY_EXPRESSION_THAT_EVALUATES_TO_TRUE: ... } Thanks for the suggestion,

Re: [PHP] Providing a means for the surfer to send a file

2005-01-20 Thread Bret Hughes
On Thu, 2005-01-20 at 14:03, Todd Cary wrote: I am looking for some sample code on setting up a page that provides a means for the surfer to send a file to the server. Hmm lets see: http://www.google.com/search?hl=enlr=q=html+file+upload+phpbtnG=Search First hit looks promising. Bret --

Re: [PHP] Seemingly weird regex problem

2005-01-20 Thread Jochem Maas
Tim Boring wrote: Hello! I'm having an odd regex problem. Here's a summary of what I'm trying to accomplish: I've got a report file generated from our business management system (Progress 4GL), one fixed-width record per line. I've got a php script that reads in the raw file one line at a time,

RE: [PHP] Providing a means for the surfer to send a file

2005-01-20 Thread Jay Blanchard
[snip] I am looking for some sample code on setting up a page that provides a means for the surfer to send a file to the server. [/snip] ? Do you mean a file upload? http://us3.php.net/manual/en/features.file-upload.php BTW, HTML e-mail to a list is just bad karma dude. -- PHP General Mailing

Re: [PHP] Problem with hidden form input values

2005-01-20 Thread Richard Lynch
Jochem Maas wrote: Richard Lynch wrote: Ben Edwards wrote: On Wed, 19 Jan 2005 15:22:55 -0800 (PST), Richard Lynch [EMAIL PROTECTED] wrote: ... PHP only parses POST data to *ONE* dimension. for the second time now: BULLSHIT - this is not true and has not been for along as I have used

[PHP] Upgrading PHP 4.2.2 on Red Hat 9

2005-01-20 Thread James Butler
Greetings, Has anyone successfully upgraded a PHP 4.2.2 installation on a Red Hat 9 machine to a more secure version? I just want any more-secure version of PHP than 4.2.2, but it's looking like I'll have to use Fedora or Gentoo or Mandrake or something in order to be successful. Of course,

[PHP] Re: [PHP-DB] php5 busts php4 code

2005-01-20 Thread Jochem Maas
Hassan Ebrahimi-Nuyken wrote: Thank you Martin Richard, First Richard's question: I am using the preconfigured binary install package for Mac OS X 10.3.7 from Marc Liyanage at: http://www.entropy.ch/ It has support for mysql compiled into it with the mysql client library ver. 4.1.3beta as if

[PHP] For HomeSite users...

2005-01-20 Thread Daevid Vincent
OMG! This is quite possibly the coolest thing I've found in a while, and it breathes new life into my aging HomeSite+ v5.2 (now that Macromedia isn't really updating it and is focusing more on their DreamWeaver line). http://www.wilk4.com/asp4hs/installation.htm#parser

Re: [PHP] For HomeSite users...

2005-01-20 Thread daniel
I havent used Homesite in years, I am now an Eclipse advocate :) www.phpeclipse.org :) OMG! This is quite possibly the coolest thing I've found in a while, and it breathes new life into my aging HomeSite+ v5.2 (now that Macromedia isn't really updating it and is focusing more on their

Re: [PHP] Upgrading PHP 4.2.2 on Red Hat 9

2005-01-20 Thread Bret Hughes
On Thu, 2005-01-20 at 18:12, James Butler wrote: Greetings, Has anyone successfully upgraded a PHP 4.2.2 installation on a Red Hat 9 machine to a more secure version? I just want any more-secure version of PHP than 4.2.2, but it's looking like I'll have to use Fedora or Gentoo or Mandrake

Re: [PHP] debugging modules

2005-01-20 Thread Rasmus Lerdorf
Arshavir Grigorian wrote: Hi, I am having trouble debugging a PECL module (APC) because while I am able to --enable-debug when configuring the PHP course, I cannot do the same for APC (no such configure option). Does anyone know how to do that? PHP Warning: Unknown(): apc: Unable to initialize

  1   2   >