Re: [PHP] Formatted text from mySQL DB

2003-08-10 Thread Curt Zirzow
* Thus wrote David Nicholson ([EMAIL PROTECTED]): > Hello, > > The newlines will be there if you view the source of your page. > Browsers do not render newlines in the source as newlines in the > browser display, as you have found out you have to convert the > newlines to s. It probably could be

Re: [PHP] Re: Frequent Mode Switching

2003-08-10 Thread Jason Sheets
Kevin Stone wrote: I used to program that way. The logic and presentation portions of my scripts were combined into one or two monolithic files. That worked well for small projects. But as I got involved in larger projects and had to juggle many code files at once I found that I prefered to s

Re: [PHP] chown / chgrp of a http owned file after upload

2003-08-10 Thread Adrian
you could setup a cronjob running as root which chowns the files. or maybe you can so something with sudo -- Adrian mailto:[EMAIL PROTECTED] www: http://www.planetcoding.net www: http://www.webskyline.de -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re[2]: [PHP] config tests

2003-08-10 Thread Uros Gruber
Hi, You don't need to do that way. I also test speed if you select for example 5 diferent values. You get 5 queries. I just select everything in one place then I use $config['config_color'] or you can write some function getConfig('config_color') to get selected value from this array. I use te

Re: [PHP] PHP Name of Script -0-T-

2003-08-10 Thread Justin French
I'd say it sounds like a 'services directory' or a 'staff directory' or 'contact database', broken into categories. However, like with almost everything else, I doubt you'll find exactly what you want. Do a tutorial to do with contact databases (adding, editing, deleting, searching) so that

[PHP] Re: Frequent Mode Switching

2003-08-10 Thread Kevin Stone
"Derrick Fogle" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thoughts on frequent switching in and out of PHP mode: > > ?>Switch out, static HTML > ?>Switch out, more static HTML > > I've found that I prefer programming this way, for the most part, > putting most of the heavy PH

Re: [PHP] htmlspecialchars() and HTML code

2003-08-10 Thread CPT John W. Holmes
From: "Thaddeus J. Quintin" <[EMAIL PROTECTED]> > I'm working on a site where users have the option to type HTML code into > a textarea, or upload HTML code from a local file which is then > displayed in the text area. > > The obvious problem is that an uploaded file that contains a closing tag > f

[PHP] Re: Question on class syntax

2003-08-10 Thread Greg Beaver
Hi Luis, http://www.php.net/manual/en/keyword.paamayim-nekudotayim.php Basically, if this is global code, you are calling the method cleanup of class htmlcleaner as if it were simply a function. Within a class, the $this variable is set, and calling htmlcleaner::cleanup() will work as if clea

Re: [PHP] magical file writing truncation

2003-08-10 Thread skate
[snip] Session+Start+%28Yahoo%21+-+fatcubanskate%3Athe_lady_in_waiting1982%29%3 A+Th u+Jul+10+21%3A23%3A42+2003+%3Cbr+%2F%3E%0D%0A%5B21%3A23%5D+the_lady_in_w aiti ng1982%3A+hey+sexy%21%21%21+%3Cbr+%2F%3E%0D%0A%5B21%3A24%5D+fatcubanskat e%3A +hey+sugar+%3Cbr+%2F%3E%0D%0A%5B21%3A24%5D+fatcubanskate%3

[PHP] how do i get assosciative name in foreach

2003-08-10 Thread Dan Anderson
I want to send an assosciative array to a foreach loop. Is there any way to get the name? For instance, now I have: I want to do: Is what I want possible? Thanks in advance, Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Piping and the CLI parser

2003-08-10 Thread Tom Rogers
Hi, Tuesday, August 5, 2003, 3:25:47 PM, you wrote: NF> Greets everybody. NF> My question regards psuedo-DOS (XP cmd.exe) piping and the CLI php parser. NF> If you could help please continue reading. NF> The documention specifies that the CLI php parser "sets up" STDIN and its NF> kin. NF> It d

RE: [PHP] Best PHP CMS

2003-08-10 Thread Ralph Guzman
Any opinions on ezPublish 3? http://www.ez.no/ I am considering this as a CMS and framework for my future projects. -Original Message- From: Matt Schroebel [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 12:14 PM To: Anthony; [EMAIL PROTECTED] Subject: RE: [PHP] Best PHP CMS

[PHP] need help with table lock - could this be performed with mysql commands or do I to write my own PHP function

2003-08-10 Thread anders thoresson
Hi, For an application that I'm working on, I wan't users to be able to show content even while an editor/administrator makes changes in one of my database's tables. But if another editor tries to load the same content for editing, he/she shouldn't be able to do this. I've been reading up on M

RE: [PHP] Stop neurotic posting

2003-08-10 Thread Chris W. Parker
John Manko on Tuesday, August 05, 2003 11:36 PM said: > perhaps there should be two lists (novice and advanced), and the > advanced listed shouldn't answer questions if it's considered > trivial enough for the novice list to answer. w00t! w00t! -- PHP General Maili

RE: [PHP] Problem sortiing dyn query

2003-08-10 Thread Creative Solutions New Media
Hi John, Thanks. Just wanted to make sure we were on the same page as the line of code in question wrapped in my original message. You saying the solution is $query_Recordset1 = sprintf("SELECT * FROM sti_tracking ORDER BY %s %s",$reSort_Recordset1,$direction_Recordset1); Correct? Tim Wint

Re: [PHP] problem using unlink()

2003-08-10 Thread Pascal Miquet
I think that the safe mode is on But no executables into the safe_mode_exec_dir beware if you set the safe mode to OFF. This is my value, but my server is in a safe place. HTH Regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Frequent Mode Switching

2003-08-10 Thread Derrick Fogle
Thoughts on frequent switching in and out of PHP mode: Switch out, static HTML Switch out, more static HTML I've found that I prefer programming this way, for the most part, putting most of the heavy PHP programming at the top, and then using static HTML interspersed mostly with quick statement

[PHP] Re: Repopulating forms

2003-08-10 Thread Anthony
Opp... forgot this use htmlspecialchars( ) to fix it. It will convert your " to " for you. So you code should look like this: "; echo ''; ?> and it will work :) - Anthony Gerard L Petersen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi > > My code looks like this

[PHP] posix_kill process group

2003-08-10 Thread Victor
Hi. I am trying to use posix_kill(0, $signo); to signal children forked by the parent. All children seem to be in the processgroup of the parent, but sending either 0 or -10 does not seem to signal the children at all. What am I doing wrong? I even tried setting the process group (didn't affec

RE: [PHP] trying to match the front and end...

2003-08-10 Thread Ford, Mike [LSS]
On 08 August 2003 15:39, Dan Joseph wrote: > I've searched the high heavens for a method of doing this... > Here's what > I'm doing... First, the code.. > > $middlenum = preg_replace("/^".$this->start_num."/", "", > $this->ach_acct_num); $middlenum = > preg_replace("/".$this->end_num."$/", "", $m

[PHP] trying to match the front and end...

2003-08-10 Thread Dan Joseph
Hi Everyone, I've searched the high heavens for a method of doing this... Here's what I'm doing... First, the code.. $middlenum = preg_replace("/^".$this->start_num."/", "", $this->ach_acct_num); $middlenum = preg_replace("/".$this->end_num."$/", "", $middlenum); In a nutshell, what I want to d

Re: [PHP] com obj from php

2003-08-10 Thread Stephen Holly
Cheers Jay, but Ive seen this already, i'ts the wrong way round!! Steve. "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] This is using COM in php scripts, I want to create a com obj (or anything really) that was written in php and use it in a .NET app [/snip] O

Re: [PHP] does PHP have a equivalent to the C++ #ifndef #define?

2003-08-10 Thread Curt Zirzow
* Thus wrote Dan Anderson ([EMAIL PROTECTED]): > > Is there an equivalent to the C++: > > #ifndef some_header_file_h > #define some_header_file_h > > // insert code that shouldn't be repeated here > > #endif // some_header_file_h > Yes. sort of.. if (! defined('_SOME_HEADER_FILE_H_') ) {

[PHP] PHP Name of Script -0-T-

2003-08-10 Thread Ryan A
Hi, I want to have an index of services available on my site.. eg: webdesigners programmers (if possible sub category here - JSP,ASP,PHP,C etc) graphic artists webhosting etc etc where a person comes, clicks on the category and either searches the available entries or can enter his/her own entry..

Re: [PHP] Reformatting phone number string from user input

2003-08-10 Thread John W. Holmes
Verdon vaillancourt wrote: Hi :) I've been working on reformatting a phone number string from user input via a form field. Ultimately, my goal is to format all phone numbers in the same way regardless of whether a user inputs '(123) 456-7890', '123-456-7890', '123.456.7890', etc. before I insert

Re: [PHP] Allowed mem size exhausted

2003-08-10 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 5 Aug 2003 at 17:57, lines prefixed by '>' were originally written by you. > I would prepare the file on disk instead of memory. If you do > increase the memory to handle bigger files, what happens when you > get 10 requests at the same ti

Re: [PHP] Stop neurotic posting

2003-08-10 Thread Nicholas Robinson
Andu's right. I've left several lists in the past, not because of people listing questions where they should have read the manual first, but because I couldn't stand the sad b**ds who get their kicks by belittling people with less knowledge but more manners than themselves. I've actually le

Re: [PHP] gzip to max 9

2003-08-10 Thread Decapode Azur
> try setting zlib.output_compression_level in your php.ini won't it turn 'zlib.output_compression' to On ? (because I prefere to keep it Off) -- > > > function wrl2wrz($buffer) { return gzencode ($buffer, 9); } > > ob_start("wrl2wrz"); > > /* here the file */ > > ob_end_flush(); # end of t

RE: [PHP] Unzipping Files

2003-08-10 Thread Matt Palermo
Yeah, I know someone mentioned using the exec for this, but I was wondering if anyone knew where I could find the command-line code for this to use in PHP... Anyone know? Thanks, Matt -Original Message- From: Mike Migurski [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 8:53 P

Re: [PHP] Configuring PHP to use aspell

2003-08-10 Thread daniel
talking of aspell how could i intergrate this into a search engine, so i could correct typos in a search ? > I have the following set up... > > RH Linux version 7.3 > > PHP 4.3.2 > > Aspell installed on the server > > I have NEVER configured PHP and am looking for some assistance in > configuring P

[PHP] Re: suggestion on php-editor?

2003-08-10 Thread AciD
I use PHPed from nusphere (www.nusphere.com), it's a very good editor which can work under windows or linux. On Fri, 8 Aug 2003 09:57:45 +0200, Rush <[EMAIL PROTECTED]> wrote: "Louie Miranda" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] But i was wondering if you guys have any other

[PHP] Regular Expression

2003-08-10 Thread Ralph Guzman
Been working on this one for a while but can't get it working properly. I need a regular expression to match if address is 1. PO Box 2. P.O. Box 3. P.O.Box I'm using /i to make this case insensitive. I got it working with 1 & 2, but it's still not matching 3. Any suggestions? if(preg_match( "

[PHP] bug in code - can't find it!

2003-08-10 Thread Amanda McComb
Ok, after all of the discussion on posting, I'm afraid to post. Unfortunately, no one I know is a programmer, and I am a beginner. I can normally figure out what I've done wrong, but I'm missing something here. Ok, here is my query and the bit of code I can't figure out: $query = "SELECT * from

Re: [PHP] mail() usage in for loops

2003-08-10 Thread Curt Zirzow
* Thus wrote John W. Holmes ([EMAIL PROTECTED]): > Mohanaraj wrote: > > >What would be the best way to handle this ? > > Go get a program that's made to send out emails like this. Odds are > it'll be faster and less of a strain on your server. PHP is great, but > there are other solutions out t

Re: [PHP] Old version of PHP

2003-08-10 Thread Philip Olson
> > > Thanks for all the feedback, guys. Is there an errata page somewhere > > > lists known bugs in the PHP interpretter? > > > > google > php bugs > > I appreciate the (rather indirect) pointer to the PHP bug tracking site - I > didn't know about that. Errata, it seems to me anyway, perform a dif

[PHP] Imagick

2003-08-10 Thread Jacob Marble
Excuse me, I accidentally sent that last incomplete message. I have successfully compiled PHP 4.3.3RC3 with the --with-imagick flag after compiling and installing ImageMagick 5.5.7 (that was a headache on it's own). The following error keeps cropping up: Fatal error: Call to undefined function: i

Re: [PHP] PHP Fusebox

2003-08-10 Thread daniel
ok i have a standard of executing things i use a switch case to switch $_GET ['action'] , so i can have ?action=add_entry ?action=edit ?action=insert ? action=update ?action=delete etc .. this works well for a cms system > Hi Ralph! > > I suggest MVC. > > http://phrame.sourceforge.net/ > http://ww

Re: [PHP] problem looping through records

2003-08-10 Thread David Otton
On Sun, 10 Aug 2003 22:11:09 +0100, you wrote: >I have a sql statement which brings about 15 records... inside the while >loop i am trying to get data from another table by passing an id, the >problem is i am only getting the first record .. not the whole 15 records.. > >any suggestion?? > >functi

Re: [PHP] htmlspecialchars() and HTML code

2003-08-10 Thread Robert Cummings
You're safe because when you apply htmlentities() these will be doubly marked up. So if the file contains "&" then the browser will receive "&". HTH, Rob. On Fri, 2003-08-08 at 11:57, Thaddeus J. Quintin wrote: > CPT John W. Holmes wrote: > > > Try this: > > > > This is text >

[PHP] MySQL field data type for ISBN numbers

2003-08-10 Thread James Johnson
Hi, Don't know if this is an OT or not. I have a MySQL database for books. The ISBN field is set as varchar(15) and I've put a test ISBN number in of 1--111-11. Can someone tell me why this SQL query isn't working? $ISBN = $_GET['isbn']; $query = "SELECT * FROM book_details WHERE ISBN = '$IS

[PHP] Reformatting phone number string from user input

2003-08-10 Thread Verdon vaillancourt
Hi :) I've been working on reformatting a phone number string from user input via a form field. Ultimately, my goal is to format all phone numbers in the same way regardless of whether a user inputs '(123) 456-7890', '123-456-7890', '123.456.7890', etc. before I insert them into a db. I know I've

Re: [PHP] Container functions....

2003-08-10 Thread Mike Morton
Justin: Not ColdFusion - ancient language by Brian Fox called MetaHTML - actually a VERY good language - just not supported or developed anymore as far as I can tell ;) Anyhow - that is one solution that I had not thought of - but ideally I would like to use a function rather than an IF statement

Re: [PHP] Allowed mem size exhausted

2003-08-10 Thread Curt Zirzow
* Thus wrote Shawn McKenzie ([EMAIL PROTECTED]): > I have the following code that generates the following error. I am using > this code to prepare a zip or tar.gz file as an email attachment. Can > someone suggest a better / more efficient way to do this and maybe avoid the > error??? > > I beli

RE: [PHP] undefined function imagecreate()

2003-08-10 Thread Jay Blanchard
[snip] What am I looking for in the output of phpinfo? Must I alter extensions in php.ini? Is this gd librabry not inlcuded in the originial install of php? [/snip] You are looking to see soemthing like this in the Configure Command section Configure Command './configure' '--with-apxs=/usr/local

RE: [PHP] Piping and the CLI parser

2003-08-10 Thread Ford, Mike [LSS]
On 06 August 2003 15:19, Jason Wong wrote: > On Wednesday 06 August 2003 21:29, Nicolas Frisby wrote: > > > Regardless of that, do you know anything of how the piping mechanism > > works? > > Not really. I do know that what you're trying to do doesn't work for > bash scripts either. IE you canno

Re: [PHP] how do i get assosciative name in foreach

2003-08-10 Thread CPT John W. Holmes
From: "Dan Anderson" <[EMAIL PROTECTED]> > I want to do: > > > $array['element1'] = 'element1'; > $array['element2'] = 'element2'; > > foreach ($array as $element) > { > // assuming get_assoc gets the assosciative name > if (get_assoc($element) == 'element1') > {get_assoc($element) do_s

Re: [PHP] Old version of PHP

2003-08-10 Thread Dan Phiffer
I appreciate the (rather indirect) pointer to the PHP bug tracking site - I didn't know about that. Errata, it seems to me anyway, perform a different purpose. I don't mind RTFM-style responses, but please at least read my question more closely. I find the "reporting bugs" link on the PHP website

Re: [PHP] MySQL field data type for ISBN numbers

2003-08-10 Thread Michael Geier
functions you should consider: trim urlencode/urldecode rawurlencode/rawurlencode try "echo '{$_GET['isbn']}'" (or $query) on the result page to see what you are truly getting. I bet the browser is encoding the variable in the GET string, even though it doesn't appear that way to you.

[PHP] Container Functions Continued.....

2003-08-10 Thread Mike Morton
Thanks to everyone who responded to me so far, but I fear that I have not explained myself too clearly. First of all, I understand the argument about having a testing, development and live servers, however, in the real world not every client can afford that hardware and it is not always feasable f

Re: [PHP] Stop neurotic posting

2003-08-10 Thread CPT John W. Holmes
Honestly, if you people ignored the stupid responses as much as you want us to ignore the stupid questions... we wouldn't be having this "discussion". ---John Holmes... - Original Message - From: "Nicholas Robinson" <[EMAIL PROTECTED]> To: "andu" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>

[PHP] a good read about posting to lists.

2003-08-10 Thread Chris Edwards
I know there is alot of heated debate. Maybe this will help. http://www.catb.org/~esr/faqs/smart-questions.html I think a link to this document should be on the php mailing list sign-up page. -- Chris Edwards Web Application Developer Outer Banks Internet, Inc. 252-441-6698 [EMAIL PROTECTED] h

RE: [PHP] Max script size

2003-08-10 Thread Jay Blanchard
[snip] URL's correct. If I cut the script in half it runs fine. FYI The scrpit in full of 4000 or so mysql SQL statements. [/snip] It is not a PHP issue then. It is probably an issue with Apache (look in httpd.conf or perhaps a local .htaccess). 4000 MySQL statements? WOW. Why? Is it necessary t

[PHP] Container functions....

2003-08-10 Thread Mike Morton
In a language that I used to program in - for development we used to be able to make a function that basically just executed everything inbetween: Print "This is html printed" Print "this is more code"; So basically everything in between hidecode and /hidecode is executed the same as if the hid

Re: [PHP] segmentation faults

2003-08-10 Thread Mike Migurski
>I have a large project underway which is (hopefully!) nearing completion, >running on the latest stable release, 4.3.2. However, strange things >have started happening... > >My main page sometimes causes Apache to seg fault at some point during >the execution (e.g. [Sun Aug 10 18:05:55 2003] [not

Re: [PHP] gettin parameters from url, architecture question

2003-08-10 Thread Curt Zirzow
* Thus wrote Merlin ([EMAIL PROTECTED]): > Hi there, > > I recently dumped into a site which was kind of search engine optimized. > They had urls like this: > > server.com/country_province_city_222.html > > where country would be a php file, but how are those guys picking the right > file? Where

[PHP] Re: PHP Fusebox

2003-08-10 Thread Nicolas Frisby
I just recently did a bit of research into "standardized development processes" and such and the most robust system I have found is XML and XSLT. I realize that the whole idea of the 'fusebox' page is lost, but XSL allows you to generate just about anything and XML's standard formats (DocBook and

Re: [PHP] Mail

2003-08-10 Thread Sean
Got it if anyone else has trouble. In the IIS SMTP properties go to the Access Tab. Click the Relay button at the bottom and change the selection from "Only the list below" to "All except the list below" I have no idea if this is a security risk it works that's all I care about for now. Sean --

RE: [PHP] Still can't pass variable through url

2003-08-10 Thread Martin Towell
See if changing it to page.php?year=$year&month=$month works The separator between the page and the query string is "?" The separator between each key/value pair is just "&" -Original Message- From: Jack [mailto:[EMAIL PROTECTED] Sent: Friday, 8 August 2003 4:30 PM To: [EMAIL PRO

Re: [PHP] find string

2003-08-10 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Mon, 11 Aug 2003 at 00:25, lines prefixed by '>' were originally written by you. > Isn't there an in_array function you can use? > If (in_array($action, array(a1,a2,a3,a4)) { > // do something > else { > // do something else > Carl. Make sure

[PHP] MIME Mail Problem with Netscape

2003-08-10 Thread Hendry J
Hi all, I'm having problem sending MIME Mail using PHP (SMTP) to netscape.net emails, it didn't display the content of html, (although i've filled the content-type with text/html), instead, it display the garbled text. I've tried to encode the message with 7bit and base64 encoding, but those don

Re: [PHP] [PROBLEM] Killed sshd, want to start it via PHP script.

2003-08-10 Thread Jason Wong
On Monday 11 August 2003 13:01, Simon Fredriksson wrote: > Anyway; I want to make some sort of PHP backdoor to start sshd again. As > far as I know, only root can do so though so just an exec() won't do. > How can I switch to root, enter the password and then start sshd via a > PHP script that I r