php-general Digest 13 May 2001 08:37:21 -0000 Issue 683

2001-05-13 Thread php-general-digest-help
php-general Digest 13 May 2001 08:37:21 - Issue 683 Topics (messages 52588 through 52614): Re: Repeat : I'm Living in cookie hell 52588 by: Scott Brown Re: referencing a constant inside an object 52589 by: Michael Kimsal Re: Site search engine suggestion.

FW: [PHP] PHP Editor

2001-05-13 Thread James Crowley
You might also want to try a freeware opens ource editor I am developing, called Developers Pad http://www.developerspad.com/ Regards, - James Editor, VB Web == Web - http://www.vbweb.co.uk Email - [EMAIL PROTECTED] ICQ# - 60612011 ==

Re: [PHP] PHP's OO is bad?

2001-05-13 Thread Zeev Suraski
Using OO usually results in a significant slowdown. Significant doesn't necessarily mean 50% performance drop; 5% to 20% is not uncommon, and as you said, YMMV. We're working on ways to improve the OO performance, but it's pretty difficult, due to the very dynamic nature of PHP. Zeev At

Re: [PHP] A question on how to get the root directory

2001-05-13 Thread Luke Welling
C Benn [EMAIL PROTECTED] wrote: MY QUESTION: What in PHP acts like the 'server.mappath' function in ASP? It gives you the ability to determain the root of the web site and use it as a reference. Is $DOCUMENT_ROOT what you are looking for. To see a list of the predefined constants, look at

[PHP] 最近どう瘢雹?

2001-05-13 Thread [EMAIL PROTECTED]
★★ Chyoi Machi Mail ★★ 情報提供企業名 : NET-DOCONO ◆◇◆◇◆◇◆◇ http://sv.g-spot.to/docono/ ねぇねぇ聞いてよ おしゃれでかっこ人がいっぱい らしい。よかったら、覗いてみて! きっと、出会いがあるよ。 http://sv.g-spot.to/docono/

[PHP] multiline text areas and mysql doesn't work :(

2001-05-13 Thread Ciaron Nixon
I'm trying to insert the conents of a submitted textarea into a field of a db but it seems to be stripping the control characters or not fomatting them properly. The record updates fine but when I display it all the newlines are gone ie the whole field appears on 1 line. Any ideas how to get it

Re: [PHP] multiline text areas and mysql doesn't work :(

2001-05-13 Thread Ethan Schroeder
It should be storing them unless you are doing something to the data before inserting it into the database. Have you tried outputting the data through nl2br() ?http://www.php.net/manual/en/function.nl2br.php Ethan Schroeder - Original Message - From: Ciaron Nixon [EMAIL PROTECTED] To:

Re: [PHP] multiline text areas and mysql doesn't work :(

2001-05-13 Thread Keith Ng
In reply to [EMAIL PROTECTED]: Return-Path: [EMAIL PROTECTED] Received: from toye.php.net (va.php.net [198.186.203.51]) by cobalt1.intermedia.com.sg (8.10.2/8.10.2) with SMTP id f4DGDXZ25935 for [EMAIL PROTECTED]; Mon, 14 May 2001 00:13:39 +0800 Received: (qmail 12864

[PHP] Can't add PHP4 module to Apache (win32)

2001-05-13 Thread Andrew Kirilenko
Hi All! Just installed PHP4 Apache. Apache has started well. Then I've added two strings from install.txt to the httpd.conf: LoadModule php4_module c:/php/sapi/php4apache.dll AddType application/x-httpd-php .php4 (I've PHP installed in c:\apps\PHP\) After Apache restart, I've got following

Re: [PHP] Re-directing

2001-05-13 Thread Raquel Rice
Todd Cary wrote: In my Index.html, what do I write so that the Surfer goes to my Start.Php? Todd I use a little bit of javascript ... script language=JavaScript location = newURL.php; /script inside the head/head tags. -- Raquel

Re: [PHP] statistical functions

2001-05-13 Thread eschmid+sic
On Sun, May 13, 2001 at 08:55:20PM +0300, Adi Ionescu wrote: Can someone please help me find the normal distribution function! I dont know of statistical functions within PHP. But I have asked on the developers list to make a interface to R. That is a language much more better for statistical

[PHP] File upload !!!!

2001-05-13 Thread Matthias Roggendorf
Hi, sorry for asking such easy things but I really have a hard time to get this to work: I use exactly the scripts which are given on the PHP website to upload files. The problem is that the variable $userfile just contains none and $userfile_size is 0. The rest of the variables have the right

Re: [PHP] File upload !!!!

2001-05-13 Thread Kevin Williams
Hi, A snippet of code could help, but I recently experienced two problems with uploading and gaining the information. Are you using the correct ENCTYPE for the upload, along with using POST (GET doesn't work). Also, if you are trying to us the information from inside a function, I had to

Re: [PHP] statistical functions

2001-05-13 Thread eschmid+sic
On Sun, May 13, 2001 at 03:08:36PM -0400, Billy Harvey wrote: On Sun, May 13, 2001 at 08:55:20PM +0300, Adi Ionescu wrote: Can someone please help me find the normal distribution function! I dont know of statistical functions within PHP. But I have asked on the developers list to

Re: [PHP] Free Database Design Program

2001-05-13 Thread Augusto Cesar Castoldi
The software can be really a freeware (better) or... can be cracked..., than he becomes free. regards, Augusto Cesar Castoldi On Fri, 11 May 2001, Anuradha Ratnaweera wrote: On Sat, 5 May 2001, Augusto Cesar Castoldi wrote: Anyone know a Free database Design program? I'm needing to

[PHP] phpMyAdmin: dumping problem

2001-05-13 Thread PeterOblivion
i got a 1.21 txt file worth of backup data on my HD. I need to get it up and running on my new mysql server asap. 2 problems tho i dont have ftp or telnet access, and two phpMyAdmin always gives me a syntax error.. this is most likely because HTML is included in the contexs of the database.

php-general Digest 13 May 2001 20:53:43 -0000 Issue 684

2001-05-13 Thread php-general-digest-help
php-general Digest 13 May 2001 20:53:43 - Issue 684 Topics (messages 52615 through 52634): Re: PHP Editor 52615 by: James Crowley Re: PHP's OO is bad? 52616 by: Phil Driscoll 52617 by: Zeev Suraski Re: A question on how to get the root directory 52618 by:

[PHP] passing variables without form submit

2001-05-13 Thread brent simpson
I'm trying to write what I thought would be a pretty simple script action to pass a variable from a form element without a sumbit button to subsequent pages; instead of a form button i would like any number of links to other pages to be able to pass this checkbox value: ie whether it is

[PHP] Multiple Selections?

2001-05-13 Thread Jason Caldwell
I have a Multiple Selection HTML Field --- the user can select any number of items by holding down the CTRL key. When I submit my form to my (say) TestProg.php -- in the Hidden Input Field I only see the value for the *last* item I selected... how can I see all the items I selected? Thanks.

[PHP] indexing records

2001-05-13 Thread midget2000x
What I want to do is figure out a way to index MySQL query results on my PHP site that's not dependent on the id of each record. I've got a MySQL photo database that runs my photo site. Right now, the 'id' field is a sequential, auto-incremented number, and I am using that id as an index for

[PHP] One database, different forms

2001-05-13 Thread midget2000x
I am writing a PHP application that will operate on a MySQL database. There will be 4 types of forms (like catalog request, info request, etc.) calling the code which writes the data to the database. Since the variable names on the forms will equal the MySQL column names (as they should), I am

Re: [PHP] File upload !!!!

2001-05-13 Thread Chris Cameron
Unless you're using PHP3, I'd try using $HTTP_POST_FILES variable as suggested in http://www.php.net/manual/en/features.file-upload.php. Chris -- ... perhaps yer just such a man you put an embarasing fire in her loins - Noah A. On Sun, 13 May 2001, Matthias Roggendorf wrote: Hi,

[PHP] Receiving a text stream

2001-05-13 Thread Todd Cary
I am not sure about this topic, so my question may refect this lack of knowledge. I have an application where I send a credit card request to a credit card processor. They return the information in a POST stream and I open a socket and read the information into a variable. This works very

[PHP] validate form with javascript

2001-05-13 Thread Chris Mason
I have a form in which I validate the email address using a php function then alert the operson if the email address is not correct. However, I would like to pop up an alert with javascript if the email field is left blank. I am using the function below but it down't work with php, probably works

[PHP] changing error messages

2001-05-13 Thread todd kennedy
do you know of an easy way to change the errors generated by PHP to come out in WML instead of HTML do they're easier to debug in a WML emulator? thanks. todd kennedy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [PHP] mysql - SUBSTRING

2001-05-13 Thread Nuno Silva
hello, i would try this: SELECT SUBSTRING(field,pos,len) AS mystring, id, blah FROM mytable WHERE mystring LIKE '%ABC%'; regards, Nuno Silva andreas (@work) wrote: hi, if i use SUBSTRING(field,pos,len) in a SELECT statement it works fine but i cant work it out how to use this

Re: [PHP] validate form with javascript

2001-05-13 Thread Steve
What is the particular error you're getting? Chris Mason [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have a form in which I validate the email address using a php function then alert the operson if the email address is not correct. However, I would like

Re: [PHP] Search engines and mod_rewrite

2001-05-13 Thread Steve
Tom, I can't be sure, since I'm not too knowledgeable with this, but I would think this would work just fine. The search engine should be seeing the URL just as the user would. Further, a site I know does a similar trick (though I'm not sure they use mod_rewrite) where /users/username is

[PHP] fgetcsv

2001-05-13 Thread Steve Wade
Hi all - just wondering if anyone knows of a function like fputcsv - that is, writes a line to a csv file - opposite of fgetcsv. Any help would be appreciated :-) swadie ~~~ Steve Wade Youth Outreach Coordinator Fusion Australia Ltd (Sydney

RE: [PHP] fgetcsv

2001-05-13 Thread Jason Murray
Hi all - just wondering if anyone knows of a function like fputcsv - that is, writes a line to a csv file - opposite of fgetcsv. A CSV file is just a text file with a different file extension, so you can use fgets to write it out... Jason -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] HallMark uses PHP!!!!

2001-05-13 Thread Steve Wade
Hmm - seems clear to me that PHP *is* some form of drug - judging by the way it seems to affect some people's lives... *grin* ~~~ Steve Wade Youth Outreach Coordinator Fusion Australia Ltd (Sydney North) ABN 26 001 273 105 +61 2 9477 1110

RE: [PHP] HallMark uses PHP!!!!

2001-05-13 Thread Jason Murray
Yes, when I first started using php nearly 2 years ago not many people even knew what it was (most thought it was some form of a drug). Now days you are hard pressed not to at least come across one site using it during a normal web browsing session. At this point, I'll throw in that

[PHP] writing updateable code

2001-05-13 Thread Scott Mebberson
Has anybody ever written some code for a product and want it to be able to update itself... and made it look for updates? Does anybody have some ideas or information on this? Thanks Scott. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] writing updateable code

2001-05-13 Thread elias
Should be actually hard... Write Update.php file that connects to your web-site and reads your version-information file and then read version information site from the hoster site and check if you have a new version, if so then the update.php will again query the version-info file and get new