RE: [PHP] for??????

2002-10-28 Thread Davy Obdam
Hi Bsantos, Why not use the following code: for ($i="0";$i".result['$i'].""; } I hope this helps. Should be easier then using $number_of_selected_cols_minus_one because how do u get this one? Probably like this, right? $number_of_selected_cols_minus_one = mysql_num_rows($result)-1; This

[PHP] How to get linefeed from textfields registered in mysql?

2002-10-28 Thread Raymond Lilleodegard
Hi! I have made a guestbook to my website driven by php and mysql. But I don't know how to get the text as it is written in the textfield before it is sent to mysql. So is it possible to save the "hits on enter" in the database? Best regards Raymond -- PHP General Mailing List (http://www.ph

Re: [PHP] How to get linefeed from textfields registered in mysql?

2002-10-28 Thread Tom Woody
While I am not exactly sure of everything you are asking I think I had a similar problem... You need to convert the \r to \n before you put it into the DB. On Mon, 28 Oct 2002 19:30:15 +0100 "Raymond Lilleodegard" <[EMAIL PROTECTED]> wrote: > Hi! > > I have made a guestbook to my website drive

Re: [PHP] How to get linefeed from textfields registered in mysql?

2002-10-28 Thread Chris Shiflett
Or maybe you are looking for the nl2br() function ... Tom Woody wrote: While I am not exactly sure of everything you are asking I think I had a similar problem... You need to convert the \r to \n before you put it into the DB. On Mon, 28 Oct 2002 19:30:15 +0100 "Raymond Lilleodegard" <[EMAIL

Re: [PHP] How to get linefeed from textfields registered in mysql?

2002-10-28 Thread 1LT John W. Holmes
www.php.net/nl2br ---John Holmes... - Original Message - From: "Tom Woody" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 28, 2002 1:26 PM Subject: Re: [PHP] How to get linefeed from textfields registered in mysql? > While I am not exactly sure of everything you are

Re: [PHP] ereg_replace???

2002-10-28 Thread Shawn McKenzie
Thanks! Why does preg_replace("^\W^","",$str); not remove undescores _ ? Are they alpha-numeric? I had to do this preg_replace("^\W|_^","",$str); TIA, Shawn "John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:000201c27eab$f4ea0500$7c02a8c0@;coconut... > > I need to replace all NON alpha

[PHP] Mail() function

2002-10-28 Thread Rodrigo de Oliveira
Hi guys I'm having the following problem: I have a mail() function that works by itself, coming from a html form, but when i tryied to put it inside a more complex script it doesn't work. The script is at the end of the message and it is suposed to receive data from a html form and use it to in

Re: [PHP] Mail() function

2002-10-28 Thread Adam Voigt
Try: mail($Destino,"$Assunto",$Mensagem); Adam Voigt [EMAIL PROTECTED] On Mon, 2002-10-28 at 13:39, Rodrigo de Oliveira wrote: > Hi guys I'm having the following problem: > > I have a mail() function that works by itself, coming from a html form, but when i >tryied to put it inside a more compl

Re: [PHP] Mail() function

2002-10-28 Thread Rick Emery
I don't know what "Formulário de Cadastro" is, but it doesn't belong as fourth parameter. That parameter is for From, CC, BCC headers - Original Message - From: "Rodrigo de Oliveira" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 28, 2002 12:39 PM Subject: [PHP] Mail()

Re: [PHP] How to get linefeed from textfields registered in mysql?

2002-10-28 Thread Raymond Lilleodegard
Ok, thanks a lot! Thats what I thougt. Regards Raymond "Tom Woody" <[EMAIL PROTECTED]> wrote in message news:20021028122633.34f2979e.woody@;nfri.com... > While I am not exactly sure of everything you are asking I think I had > a similar problem... > > You need to convert the \r to \n before you p

Re: [PHP] How to pass data without headers

2002-10-28 Thread Drew Kime
Chris Shiflett wrote: You can use the explode() function to separate the content part of the response, which is what you're interested in. Here's a similar example that only returns the content: http://shiflett.org/tutorials/php_post.txt Thanks, that's nearly what I need. But it seems there a

[PHP] newbie: apache prob...

2002-10-28 Thread Mr. BuNgL3
Hi... I have a little problem... when i do //localhost/ on the browser i don't get nothing it gives me "Forbidden - u don't have permission to access"... but i was the one that installed the apache server!! do u know what's the problem? Thanks -- PHP General Mailing List (http://www.php.net/) T

[PHP] Apache authentication and adding a user.

2002-10-28 Thread John Meyer
Hi, is there any way to use PHP to programmatically add a user in terms of Apache user authentication? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Apache authentication and adding a user.

2002-10-28 Thread Daniel Kushner
Try this: http://phpclasses.websapp.com/browse.html/package/387.html Regards, Daniel Kushner _ Need hosting? http://thehostingcompany.us > -Original Message- > From: John Meyer [mailto:johnmeyer_1978@;yahoo.com] > Sent: Monday, October 28, 2002 3

[PHP] Webserver-Administration

2002-10-28 Thread Jochen Kächelin
How can I use PHP to admin my Apache over the browser? How do big providers allow their customers to admin their subdomains, forwarders, ftp-accounts over the webbrowser? Apache should not run under the root account, or?! -- Jochen Kaechelin -- PHP General Mailing List (http://www.php.

[PHP] Add picture in DB

2002-10-28 Thread Christian Ista
Hello, I have a form, with 2 inputs ( a type "file" and a type "text") and a submit. When I submit I receive an error, like this : ':\\Inetpub\\wwwroot\\test\\small2158.jpg)' at line 3 Could you tell me what can I do ? The better solution is save the picture in the database or save the link to

Re: [PHP] Webserver-Administration

2002-10-28 Thread Adam Williams
look up webmin on your favorite search engine. Adam On Mon, 28 Oct 2002, [ISO-8859-1] Jochen Kächelin wrote: > How can I use PHP to admin my Apache over the browser? > > How do big providers allow their customers to admin their > subdomains, forwarders, ftp-accounts

Re: [PHP] newbie: apache prob...

2002-10-28 Thread Jonathan Sharp
Check what user apache is running under (usually nobody) in which case you have to give it world read access (chmod 0755) or make apache run under that user. (second method is perferred). I'm assuming you're running linux. -js Mr. BuNgL3 wrote: Hi... I have a little problem... when i do //loc

[PHP] forcing .html pages to go through the PHP parser

2002-10-28 Thread John Meyer
how do you configure apache to force all .html pages to go through the php parser? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] forcing .html pages to go through the PHP parser

2002-10-28 Thread Daniel Kushner
AddType application/x-httpd-php .php .html (in the httpd.conf file) Regards, Daniel Kushner _ Need hosting? http://thehostingcompany.us > -Original Message- > From: John Meyer [mailto:johnmeyer_1978@;yahoo.com] > Sent: Monday, October 28, 2002 4

Re: [PHP] newbie: apache prob...

2002-10-28 Thread John Nichel
Even though this should go to an apache list Do you have an "index.html" (or .php or whatever you have it set to reconize in the httpd.conf) file in the document root directory? Mr. BuNgL3 wrote: Hi... I have a little problem... when i do //localhost/ on the browser i don't get nothing it gi

[PHP] fread & EOF

2002-10-28 Thread Martin Adler
Hi, this php-script should read from a server (that i've written in perl) until it receives the EOF signal. My server sends the EOF-signal by print $client "\n\004"; # \004 = EOF to my script but fread wouldn't stop reading and i don't have any ideas why. Is php using an other sign for EOF?

[PHP] Browscap.ini

2002-10-28 Thread Scott Fletcher
Any anyone tell me about this? I know it is about browser detection software or something. What I want to know is is it good for general use? Can it be used on UNIX server for PHP to interface with? Does it require a lot of update or something? I saw on that website that describe about BrowseH

Re: [PHP] Webserver-Administration

2002-10-28 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Here is one I just came acrossits even in php. http://webcp.can-host.com/ ~Pauly On Monday 28 October 2002 03:45 pm, Adam Williams wrote: > look up webmin on your favorite search engine. > > Adam > > On Mon, 28 Oct 2002, [ISO

[PHP] Re: Add picture in DB

2002-10-28 Thread Raymond Lilleodegard
Hi! I'm not sure about your error, but I have heard that it's best to store the filepaths in the database. Best regards Raymond "Christian Ista" <[EMAIL PROTECTED]> wrote in message news:01c27ec2$ad371a60$0200a8c0@;p3portable... > Hello, > > I have a form, with 2 inputs ( a type "file" and a

[PHP] Array Question

2002-10-28 Thread PHP List
Hi, Lets say I have a simple array like this: $myarray = array("a"=>"b","d"=>"c"); echo $myarray[0] will return 'b'; How can I get the name of the index? so: echo $myarray[something] would return 'a'; I know I can do a list($key,$value) but I don't need to loop through the array, I just need t

Re: [PHP] Array Question

2002-10-28 Thread Rasmus Lerdorf
I think you are looking for array_search() On Mon, 28 Oct 2002, PHP List wrote: > Hi, > Lets say I have a simple array like this: > $myarray = array("a"=>"b","d"=>"c"); > > echo $myarray[0] will return 'b'; > > How can I get the name of the index? so: > > echo $myarray[something] would return 'a'

RE: [PHP] newbie: apache prob...

2002-10-28 Thread Peter Houchin
check your permissions on htdocs etc and also that u haven't blocked ya self outta there in the httpd.conf > -Original Message- > From: John Nichel [mailto:jnichel@;by-tor.com] > Sent: Tuesday, 29 October 2002 8:09 AM > To: Mr. BuNgL3 > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] newbie: ap

RE: [PHP] New Error?

2002-10-28 Thread Peter Houchin
instead of using break use exit() where u have ur breaks and will work fine > -Original Message- > From: Marek Kilimajer [mailto:kilimajer@;webglobe.sk] > Sent: Tuesday, 29 October 2002 1:30 AM > To: PHP > Subject: Re: [PHP] New Error? > > > Break an continue are for loops (while,for ...

Re: [PHP] Re: Add picture in DB

2002-10-28 Thread Stephen
Since PWS uses Inetpub, I'm guessing you're using PWS and I would recomend against using it. I use PHPdev 5 which works like a charm. I'd recomend switching. http://www.firepages.com.au/devindex.htm Thanks, Stephen http://www.melchior.us - Original Message - From: "Raymond Lilleodegard"

Re: [PHP] Array Question

2002-10-28 Thread PHP List
This doesn't seem to work for anything past the first key: echo array_search(0,$myarray); will print 'a'; None of these give me anything: echo array_search(1,$myarray); echo array_search("1",$myarray); echo array_search(1,$myarray,true); echo array_search("1",$myarray,true); so how do I get 'd'?

[PHP] Plus sign changing to space in html form

2002-10-28 Thread Stan
When i post a string containing plus sign with htmp form to a php scritp, the '+' is changed to space. e.g: i enter 'as+df' to a text input but $_POST[] returns 'as df' instead. It must be in php or apache configuration bcause i have this problem only on sytem with FreeBSD. On windows it works as e

[PHP] preg_replace (underscore)

2002-10-28 Thread Shawn McKenzie
Why does preg_replace("^\W^","",$str); not remove undescores _ ? Are they alpha-numeric? I had to do this preg_replace("^\W|_^","",$str); TIA, Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] preg_replace (underscore)

2002-10-28 Thread John Meyer
i've just used str_replace for underscores and it's worked wonderfully. -Original Message- From: Shawn McKenzie [mailto:nospam@;mckenzies.net] Sent: Monday, October 28, 2002 4:46 PM To: [EMAIL PROTECTED] Subject: [PHP] preg_replace (underscore) Why does preg_replace("^\W^","",$str); not

Re: [PHP] Plus sign changing to space in html form

2002-10-28 Thread Tom Woody
I did your little test and couldn't reproduce the problems you are having. as+df gets returned correctly. Test server: Apache 1.3.23-11 w/ PHP 4.1.2-7 (RH7.3 rpms) On Tue, 29 Oct 2002 00:26:39 +0100 "Stan" <[EMAIL PROTECTED]> wrote: > When i post a string containing plus sign with htmp form to a

[PHP] Have part not be replaced in regex?

2002-10-28 Thread Leif K-Brooks
I'm using some regexes for swear filtering, but I have a problem. I need to look for ab[ct] and have it replaced by xyz but not replace the [ct]. I.e. it would be replaced by xyzc or xyzt. Any ideas? -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to de

Re: [PHP] Add picture in DB

2002-10-28 Thread Frank W.
Have you used a SQL-Statement like: INSERT INTO `tablename` VALUES ('',LOAD_FILE('$file') to insert it with load_file? I used it without problems that way. Christian Ista wrote: Hello, I have a form, with 2 inputs ( a type "file" and a type "text") and a submit. When I submit I receive an e

[PHP] php4.3.0-pre2 - win32 binaries

2002-10-28 Thread Vendigo2000
anyone can download for testing php-4.3.0-pre2 from: http://chat.italma.ru/php/ (compiled with vc++.net) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [PHP-DEV] php4.3.0-pre2 - win32 binaries

2002-10-28 Thread Derick Rethans
Please do NOT use non-offical binaries for testing! Windows binaries will be posted soon. Derick On Mon, 28 Oct 2002 [EMAIL PROTECTED] wrote: > anyone can download for testing php-4.3.0-pre2 from: > > http://chat.italma.ru/php/ > > (compiled with vc++.net) > > > -- > PHP Development Mailing

[PHP] Re: [PHP-DEV] php4.3.0-pre2 - win32 binaries

2002-10-28 Thread Marcus Börger
Could you tell something about compiling php under vc++.net? I tried this but wasn't able to (but did not tried it hard). regards marcus At 16:13 28.10.2002, [EMAIL PROTECTED] wrote: anyone can download for testing php-4.3.0-pre2 from: http://chat.italma.ru/php/ (compiled with vc++.net) -- P

[PHP] Re[2]: [PHP-DEV] php4.3.0-pre2 - win32 binaries

2002-10-28 Thread Vendigo2000
Hello Marcus, Monday, October 28, 2002, 6:40:52 PM, you wrote: MB> Could you tell something about compiling php under vc++.net? MB> I tried this but wasn't able to (but did not tried it hard). MB> regards MB> marcus in fact - nothing special about it. haven't seen any terrible bugs. working und

Re: [PHP] Have part not be replaced in regex?

2002-10-28 Thread Leif K-Brooks
I guess it wouldn't be too hard for me to switch to perl reg... Timothy Hitchens wrote: Can you use or know perl reg?? HiTCHO has Spoken! Timothy Hitchens (HiTCHO) [EMAIL PROTECTED] -Original Message- From: Leif K-Brooks [mailto:eurleif@;buyer-brokerage.com] Sent: Tuesday, 29 Oct

RE: [PHP] Plus sign changing to space in html form

2002-10-28 Thread John W. Holmes
The plus sign is used to signify a space in some URL encoding. PHP is probably thinking the text is encoded and it's removing the plus sign. Not sure on a solution. ---John Holmes... > -Original Message- > From: Stan [mailto:stann@;pobox.sk] > Sent: Monday, October 28, 2002 6:27 PM > To:

RE: [PHP] Have part not be replaced in regex?

2002-10-28 Thread John W. Holmes
> I'm using some regexes for swear filtering, but I have a problem. I > need to look for ab[ct] and have it replaced by xyz but not replace the > [ct]. I.e. it would be replaced by xyzc or xyzt. Any ideas? $new_string = preg_replace("/ab([ct])/","xyz\\0",$old_string); or $new_string = ereg_re

[PHP] What causes this?

2002-10-28 Thread Jimmy Brake
Hi, I am getting this error randomly, just stops and starts. Error: Unable to select database: crm :Commands out of sync; You can't run this command now './configure' '--with-oracle=/opt/oracle/product/8.1.6/' '--with-oci8=/opt/oracle/product/8.1.6/' '--enable-sigchild' '--enable-track-vars'

[PHP] looking for Powerfull Document Management Systems in PHP...

2002-10-28 Thread PHP Beginner
Hi guys, I wonder if anyone of you know about any PHP system (free or Open Source, etc.) that can offer the features (or similar ones) one can enjoy from Microsoft SharePoint Technologies. tanks in advance, Rub.

RE: [PHP] looking for Powerfull Document Management Systems in PHP...

2002-10-28 Thread Peter Houchin
yeah phpnuke, phpnuke.org postnuke, postnuke.com phpwebsite, phpwebsite.appstate.edu there's probably a few more out there too > -Original Message- > From: PHP Beginner [mailto:bphpdev@;icem.cu] > Sent: Tuesday, 29 October 2002 11:14 AM > To: php - List > Subject: [PHP] looking for Powe

Re: [PHP] Plus sign changing to space in html form

2002-10-28 Thread Chris Shiflett
This is true, but the + itself should also be encoded. I did a quick test, and when I post a form variable called test with a value of 1+1=2, the HTTP request looks like this: POST /test.php HTTP/1.1 Host: 127.0.0.1 User-Agent: Mozilla/5.0 Galeon/1.2.6 (X11; Linux i686; U;) Gecko/20020916 Accept

[PHP] Making string upper/lowercase with regex?

2002-10-28 Thread Leif K-Brooks
I need a way to make a string be replaced with its uppercase version using ereg_replace. Any ideas? -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http://www.p

[PHP] Recommend a merchant/store product

2002-10-28 Thread Support @ Fourthrealm.com
Hey everyone, For years I have used a fantastic merchant ( http://www.ihtmlmerchant.com ), which is feature packed and easy to setup and use. It's written in a competing language called iHTML ( http://www.ihtml.com ). As I am getting considerably proficient at coding PHP, I find that I require

Re: [PHP] Making string upper/lowercase with regex?

2002-10-28 Thread Chris Shiflett
Why must you use ereg_replace? Does your question mean that you, for whatever reason, cannot use strtoupper() instead? Leif K-Brooks wrote: I need a way to make a string be replaced with its uppercase version using ereg_replace. Any ideas? -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Making string upper/lowercase with regex?

2002-10-28 Thread Leif K-Brooks
I don't want the entire string upercase, just part of it as defined by a regex. Chris Shiflett wrote: Why must you use ereg_replace? Does your question mean that you, for whatever reason, cannot use strtoupper() instead? Leif K-Brooks wrote: I need a way to make a string be replaced with its

Re: [PHP] Recommend a merchant/store product

2002-10-28 Thread Jason Reid
oscommerce http://oscommerce.com/ supports mysql as the database. i've set it up a few times, never implemented it into production, but its fairly easy to use, and from what i've seen extremly customizable. Jason Reid [EMAIL PROTECTED] -- AC Host Canada www.achost.ca - Original Message -

Re: [PHP] One mail function, multiple recipients

2002-10-28 Thread dwalker
Agreed. Case in point, when I attach more 9 email addresses to one email message via Netzero's servers (1 of 7 different email accounts I have), the delivery fails with a message that reads something like: ' Blah Blah Blah. Too many recipients. Blah Blah Blah.' I could be mistaken about servic

Re: [PHP] Week numbers

2002-10-28 Thread Justin French
The optional second parameter for date() is a timestamp. So, you convert whatever date you have (eg 29.10.2002) into a unix timestamp (probably using strtotime() or maybe you'll have to rearrange the string first), then supply it to the date() function. Justin on 29/10/02 1:57 AM, Davíð Örn Jó

[PHP] Regex question...

2002-10-28 Thread Leif K-Brooks
In my never-ending battle against swearing on my site, I'm trying to use a regex that changes any word that ends with abc to xyz. I'm using: $tofilter = "This is a string containing the word 123abc."; $tofilter= eregi_replace("[^ ]abc","xyz",$tofilter); But it returns "12xyz". It clearly pick

[PHP] Passing the variables ...

2002-10-28 Thread Mukta Telang
I have written followong code in hello.html: enter your name: and following in hello.php: hello %s!",$textbox); ?> This script works fine with php in redhat 7.2 system but does not work in solaris 7 ! I have done the php installation... apache version: 2.0.40 php version: 4.

[PHP] standardization across apps?

2002-10-28 Thread taylor
i might be crazy, but why don't the many CMS, forum, link directory, etc packages integrate with a unified user manager? is this possible? is there perhaps an xml standard for contact datatypes that could be used? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

Re: [PHP] Passing the variables ...

2002-10-28 Thread @ Edwin
Hello, "Mukta Telang" <[EMAIL PROTECTED]> wrote: [snip] > I tried using echo($_GET['$textbox']) instead of printf statement in > hello.php.. [/snip] Try $_POST['textbox'] instead. (You were using "method=post".) - E -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

Re: [PHP] Regex question...

2002-10-28 Thread @ Edwin
Hello, "Leif K-Brooks" <[EMAIL PROTECTED]> wrote: [snip] > But that doesn't work at all. Any ideas on how to do this? [/snip] Would't it be easier (and faster) to use http://www.php.net/manual/en/function.str-replace.php ? - E -- PHP General Mailing List (http://www.php.net/) To unsubsc

RE: [PHP] standardization across apps?

2002-10-28 Thread eNetwizard Developers Team
XML, by definition is an eXtensible Markup Language. That means the markup associated with a document can be whatever that person wants it to be. I think a better question to ask is if there are any projects out there who are working toward a standard XML document type for contact information, an

Re: [PHP] Regex question...

2002-10-28 Thread Leif K-Brooks
I need to do a few other things that require regex though, like making either an a or an @ match (people love to get around filters by using symbols instead of letters...). @ Edwin wrote: Hello, "Leif K-Brooks" <[EMAIL PROTECTED]> wrote: [snip] But that doesn't work at all. Any ideas on h

Re: [PHP] standardization across apps?

2002-10-28 Thread Peter J. Schoenster
On 29 Oct 2002 at 0:14, taylor wrote: > i might be crazy, but why don't the many CMS, forum, link directory, etc > packages integrate with a unified user manager? is this possible? is > there perhaps an xml standard for contact datatypes that could be used? I'm not sure I understand you but I

[PHP] Please Help

2002-10-28 Thread Erich Kolb
I would like to offer a free webhosting account to the first 25 people who apply. We are in the process of starting an internet services company and would like to offer these accounts provided that the applicants are willing to provide some feedback on our service. All free accounts include:

php-general Digest 29 Oct 2002 05:55:20 -0000 Issue 1672

2002-10-28 Thread php-general-digest-help
php-general Digest 29 Oct 2002 05:55:20 - Issue 1672 Topics (messages 121753 through 121818): 4.3.0pre2 Mcrypt Compile failure 121753 by: Mitch Vincent ereg_replace??? 121754 by: Shawn McKenzie 121756 by: John W. Holmes 121764 by: Shawn McKenzie Re: Free com

<    1   2