Re: [PHP] file uploads grief

2001-07-20 Thread Saquib Farooq
the "5000" represent byter try making it 500 i.e 5 megabytes i think the file you are trying to upload might be bigger than 5k and 5M is safe you can keep the fileseize fixed to a large value to be safe. and instead all the fancy code just try the move_uploaded_file() command to see if it work

[PHP] Odd include/variable problem

2001-07-20 Thread rm
php4.0.5 win32 I have a page called results.php. Short but with any number of 12 include files depending on the logic flow. The first include file is a config file include("config.fil"); that contains all the variables to run the app., included is : $MYSQL_LINK=mysql_connect($host,$uName,$

[PHP] Knowing when a visitor leaves.

2001-07-20 Thread Saquib Farooq
Hi all I have a small web shop, what happens in it is that when a visitor clicks a displayed object ( adds it to his shopping cart) then it is marked as booked in the MySQL table, the problem is that when the visitor leaves without checking out, i.e. just chooses sumthing and decides to le

RE: [PHP] sample code snippets writing text to images?

2001-07-20 Thread Kurt Lieber
Thanks for the example, Thiago. This raises another question, however. I noticed that the code below sends the header after the HTML tag, which (if I understand correctly) requires a special setting in the php.ini file. Assuming I don't have access to that file, is there a way to work around thi

Re: [PHP] sample code snippets writing text to images?

2001-07-20 Thread Justin French
http://www.webmonkey.com has a tutorial on it. http://www.phpbuilder.com has one too i think Kurt Lieber wrote: > > I'm learning how to work with images in PHP and specifically learning > how to write text dynamically to an existing image. > > Does anyone have any sample code and/or pointers t

Re: [PHP] sample code snippets writing text to images?

2001-07-20 Thread Thiago Locatelli da Silva
test.php PHP - button button.php Regards thiago

[PHP] sample code snippets writing text to images?

2001-07-20 Thread Kurt Lieber
I'm learning how to work with images in PHP and specifically learning how to write text dynamically to an existing image. Does anyone have any sample code and/or pointers that might help me out? I work best from examples, rather than muddling through the manual (though that's what I'm doing righ

[PHP] file uploads grief

2001-07-20 Thread Justin French
Hi all, I know this topic get's covered all the time, but i've copied this code direct from the online manual, and it still fails to work!! My environment is PHP4.0.1, under FreeBSD. To my knowledge, NONE of the php.ini file has been changed at all, and the rest of PHP has been working finr for

Re: [PHP] Gettin' system enviroment (Urgent, please)

2001-07-20 Thread Rasmus Lerdorf
Check phpinfo() On Sat, 21 Jul 2001, Thiago Locatelli da Silva wrote: > Well, this code get the name of the user that is logged in win9x/2k/nt (ASP) > > Request.ServerVariables("LOGON_USER") > > and, how can i do it in php? > I tryed getenv() and not worked. > > Please, help me! > > > -- PHP

[PHP] Gettin' system enviroment (Urgent, please)

2001-07-20 Thread Thiago Locatelli da Silva
Well, this code get the name of the user that is logged in win9x/2k/nt (ASP) Request.ServerVariables("LOGON_USER") and, how can i do it in php? I tryed getenv() and not worked. Please, help me! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

Re: [PHP] PHP security

2001-07-20 Thread Rasmus Lerdorf
> I need to store username and password for mysql in a file to be used by PHP. > I am concerned with PHP's security. Can anyone use showsource() to read php > source even if they are on a different server or they are spoofing my ip > address (hacking)? No, of course not. > If I put a file with

[PHP] PHP security

2001-07-20 Thread Michelle
I need to store username and password for mysql in a file to be used by PHP. I am concerned with PHP's security. Can anyone use showsource() to read php source even if they are on a different server or they are spoofing my ip address (hacking)? If I put a file with the secure data in a directory

Re: [PHP] What's wrong with this regular expression?

2001-07-20 Thread Philip Murray
Hi James, This is what you want $body=eregi_replace ("]+)\">([^<]+)","[url=\"\\1\"]\\2[/url]",$body); You were checking for no ['s in the string instead of no >'s or <'s - -- - - - Philip Murray - [EMAIL PROTECTED] http://www.open2view.com - Open2View.com -

RE: [PHP] include, require, require_once

2001-07-20 Thread Martin Marconcini
> Subject: [PHP] include, require, require_once > > what is the diference beetwen this functions? The difference is well explained on www.php.net -> documentation -> {include, require, require_once} RTFM! Martin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMA

Re: [PHP] include, require, require_once

2001-07-20 Thread Joshua Pierre
Hi, On Sat, Jul 21, 2001 at 12:18:38AM -0300, Thiago Locatelli da Silva wrote: > what is the diference beetwen this functions? I believe the include/require_once() functions check to see if that particular include was previously included in the script and if it was it ignores it, at least that

[PHP] include, require, require_once

2001-07-20 Thread Thiago Locatelli da Silva
what is the diference beetwen this functions? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] testing if var is empty

2001-07-20 Thread Rasmus Lerdorf
http://php.net/empty On Sat, 21 Jul 2001, Justin French wrote: > Hi, > > I'm a semi-newbie, and if I want to check if a variable is set, or > contains something, i've been doing it like this: > > if($var != "") { ... } > > I'm sure there is a better/safer/smarter/faster/more reliable way? > > >

[PHP] testing if var is empty

2001-07-20 Thread Justin French
Hi, I'm a semi-newbie, and if I want to check if a variable is set, or contains something, i've been doing it like this: if($var != "") { ... } I'm sure there is a better/safer/smarter/faster/more reliable way? Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Printing a HTML page

2001-07-20 Thread Brad Hubbard
I have written part of an online ordering system that produces an order which must be stored in a database, emailed to the relevant address, and printed on a local printer (lp, RedHat 7.0). The database storage is not a problem and I've created a HTML page which I can email. What are peoples o

[PHP] Redirect Problems w/netscape

2001-07-20 Thread Chris Francy
Hi, I have a calendar script which I wrote with the following section of code. if ($HTTP_POST_VARS["ACTION"]=="DELETE" && $HTTP_POST_VARS["MsgId"]!="" && ereg("^([0-9])+$",$HTTP_POST_VARS["MsgId"]) ) { $sqltxt1="delete from CalendarData where ID='". $HTTP_POST_VARS["M

[PHP] COOL BAMBOO MATS

2001-07-20 Thread chunpai
DEAR SIR /MADAM: WE ARE PRODUCING HIGH QUALITY COOL BAMBOO MATS,WELCOME ORDER. PRICE FOB TO SHENZHEN CHINA: US¡ç14.6 TO US¡ç17.0 PER PIECE ( FIRST GRADE OF SIZE 150cm¡Á193cm ) PRICE FOB TO SHENZHEN CHINA: US¡ç5.2 TO US¡ç5.9 PER sq.m. ( FIRST GRADE OF OTHER SIZE ) DELIVERY TIME: 7-15 DAYS A

RE: [PHP] Stoping Frame Breakers

2001-07-20 Thread Brinkman, Theodore
For the record: If you check the HTML spec, you'll discover that tags aren't allowed within tags. Most browsers handle them, but YMMV. (Last time I tested it, Mozilla (aka Netscape 6) didn't even display pages with scripts in the header because it's invalid html. I couldn't convince any

RE: [PHP] a good PHP editor

2001-07-20 Thread Maxim Maletsky
Then why would you post this to the list instead of emailing me directly? We all like to express ourselves, including you Lyonya, then do so to only whom should read this - me (you have with me, right?) I, honestly, apologize for starting this thread, but DO BLAME most of the others who still ke

Re: [PHP] Re: split on whitespace, preserving whitespace... (a rephrase of the question)

2001-07-20 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Garth Dahlstrom) wrote: > > $sometext2split = "hello world witha lot ofwhitespaces!"; > > $myarray = preg_split ("/\s+/",$sometext2split); > > > > you should get > > $myarray := ['hello', 'world', 'with', 'a', 'lot', 'of', 'whitespa

[PHP] formatting "host" output

2001-07-20 Thread Tyler Longren
$data = exec("host $lookup"); printf("%s", $data); How can I format the output of that properly? Sometimes, it's all on one line, and it's fine. Other times, there's more than one line...like if there was an alias. Any way to format it like it is on the command line? Thanks, Tyler -- PHP Ge

Re: [PHP] Problem installing PHP under NT service Pack 4

2001-07-20 Thread Marisol Díaz E.
Review here: http://www.php.net/manual/cs/install-windows.php - Original Message - From: "Emiliano Marmonti" <[EMAIL PROTECTED]> To: "Lista PHP" <> Sent: Friday, July 20, 2001 5:43 AM Subject: [PHP] Problem installing PHP under NT service Pack 4 Hello! We have had a problem tryi

[PHP] Empty headers with Pspell

2001-07-20 Thread Nick Foster
Hi, I am having real problems getting Pspell to work with PHP. I have recently installed: apache 1.3.20 php 4.0.6 pspell .12.2 aspell .33.6.3 I have installed pspell and aspell with the prefix /usr/local/pspell when I run ./aspell from the command line it works fine and when I complile and r

RE: [PHP] mssql_fetch_row - result array returns only 255 chars in one value

2001-07-20 Thread ckieninger
i 've used the following default definition. the some behavior. my result value is cut at position 255. Christian ; Valid range 0 - 2147483647. Default = 4096. mssql.textlimit = 4096 ; Valid range 0 - 2147483647. Default = 4096. mssql.textsize = 4096 -Original Message- From: Brad

Re: [PHP] split on whitespace, preserving whitespace...

2001-07-20 Thread Garth Dahlstrom
Yup, I hear that... I'm going to use something like the following to do my pspell application... [$text][". implode('|',$matches)."]"; ?> On Fri, 20 Jul 2001 15:11:26 -0500 "Brad S. Jackson" wrote: > > > I got this to work. I wish I had found this when I wrote our pspell > code. I > wro

RE: [PHP] inserting free-form text with quotes to mysql

2001-07-20 Thread Don Read
On 20-Jul-2001 garman wrote: > I'm creating a specialized "suggestion box" type of web application in PHP. > I'm using MySQL for data storage. > > Whenever I try to submit text that contains a double quote character ("), > the > submission gets truncated at the first occurance of a double quot

[PHP] Problem installing PHP under NT service Pack 4

2001-07-20 Thread Emiliano Marmonti
Hello! We have had a problem trying to install as ISAPI Module PHP. Allways appears with a down oriented red dot in Filters. The unique solution is configuring as CGI. Anybody can help? Thanks in advance... Emiliano H.Marmonti

Re: [PHP] split on whitespace, preserving whitespace...

2001-07-20 Thread Alexandr Grinko
http://www.zend.com/zend/spotlight/spellchecking.php - Original Message - From: "Don Read" <[EMAIL PROTECTED]> To: "Garth Dahlstrom" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, July 20, 2001 11:41 PM Subject: RE: [PHP] split on whitespace, preserving whitespace... > > On

Re: [PHP] Memory Leaks

2001-07-20 Thread Paul Strange
The database is MySQL. On Friday 20 July 2001 10:15, Rasmus Lerdorf wrote: > > Thank you for taking the time out of you busy schedule to help me. We > > have not been able to get 4.0.6 to work on the server. We can compile > > fine, but when we perform a check with phpinfo (), the server report

Re: [PHP] Re: (another, not entirely)sessions question

2001-07-20 Thread Don Read
On 20-Jul-2001 [EMAIL PROTECTED] wrote: > Hi Don! > On Fri, 20 Jul 2001, Don Read wrote: > >> Because the database is optimized for this kind of stuff ? >> >> Once you get the db handle (and you have. you've authenticated right ?), >> "SELECT count(*) from msgposts where user_id=$foo" is l

Re: [PHP] inserting free-form text with quotes to mysql

2001-07-20 Thread rm
you can try the lazy man's wayI just replace the double quotes using ereg with " whatever the html code is for quotes. I store in my mysql that way and write it to web pages --- garman <[EMAIL PROTECTED]> wrote: > I'm creating a specialized "suggestion box" type of > web application in

[PHP] Retrieving a PDF file from a MySQL database

2001-07-20 Thread James Willard
Hello, I'm having trouble with getting a PHP script to pull a file (a PDF file) out of a MySQL database. I don't know if the problem is the insertion or the retrieval, but I'll try to paste as much code as I can to hopefully reveal to someone more skilled in PHP than I what the problem is. The

Re: [PHP] inserting free-form text with quotes to mysql

2001-07-20 Thread Jason Bell
well, you failed to supply any example of your code, so I have no reason to assume anything but a syntax issue, therefore I provided an example of proper syntax that works for me. - Original Message - From: "garman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 20, 2001 1

Re: [PHP] Unusual error.

2001-07-20 Thread Charlie Llewellin
Does the MySQL user have permission to execute this query on the new table? > >line 14 is $result = mysql_db_query... I've never encountered this, and it >only happens when I change the table it's supposed to look into for the >data. Using the old table, it's fine, The new table, it gives me t

RE: [PHP] split on whitespace, preserving whitespace...

2001-07-20 Thread Don Read
On 20-Jul-2001 Garth Dahlstrom wrote: > Hi all, > > I'm trying to build a spell checker for a web form. > What has got me stumped is being able to do a split > so that whitespace and words are stored as seperate > elements of the same array. > > ideally, I'd use some form of preg_split to put:

[PHP] Verisign pfpro functions in Windows environment ... newbie ...

2001-07-20 Thread Robert Dyke
Hi ... I posted this in the php.windows newsgroup and got no answer ... I'm trying to connect to Verisign Payflo Pro on my home development machine. The idea is that I'll do the development in a windows environment, then upload to a Linux server. I've loaded the PHP4 win32 binaries (4.0.6), but

RE: [PHP] inserting free-form text with quotes to mysql

2001-07-20 Thread garman
Dude! I already said that wasn't working :) MG >= Original Message From "Jason Bell" <[EMAIL PROTECTED]> = >$newstring = addslashes($oldstring); > >then, use $newstring for everything should work. > >- Original Message - >From: "garman" <[EMAIL PROTECTED]> >To: <[EMAIL PRO

[PHP] mssql_fetch_row - result array returns only 255 chars in one value

2001-07-20 Thread ckieninger
hey, i've the following problem. I start a query and get a result If I list this result list($value) = mssql_fetch_row($result); the value in the databasetable is a string value with over 255 characters but the value in the listed $value has only 255 characters. How to get the value from dat

Re: [PHP] inserting free-form text with quotes to mysql

2001-07-20 Thread Jason Bell
$newstring = addslashes($oldstring); then, use $newstring for everything should work. - Original Message - From: "garman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 20, 2001 11:57 AM Subject: [PHP] inserting free-form text with quotes to mysql > I'm creating a

[PHP] One & one webhosting

2001-07-20 Thread Seb Frost
anyone know what the socket for connecting to mysql is with these guys? Have emailed their support but was wondering if anyone can answer me now. Am trying to install phpMyAdmin. cheers, seb -Original Message- From: Steve Werby [mailto:[EMAIL PROTECTED]] Sent: 20 July 2001 19:51 To: Seb

[PHP] inserting free-form text with quotes to mysql

2001-07-20 Thread garman
I'm creating a specialized "suggestion box" type of web application in PHP. I'm using MySQL for data storage. Whenever I try to submit text that contains a double quote character ("), the submission gets truncated at the first occurance of a double quote and beyond. Single quotes don't seem t

Re: [PHP] Displaying tables

2001-07-20 Thread Steve Werby
"Seb Frost" <[EMAIL PROTECTED]> wrote: > OK I'm playing around with MySQL on my ISP's server. Created myself some > forms that create/delete tables and enter/display data in a table. > > Is there a simple way to generate a list of all my tables, or even better to > display all of the tables with

[PHP] Unusual error.

2001-07-20 Thread Robert Reed
I wrote a small column script for a site a while back, it worked without a hitch. I moved this script over for another column to use, and it worked fine until someone edited a few of the files, then I kept getting this error. Warning: MySQL: Unable to save result set in /home/prowrest/public_htm

[PHP] What's wrong with this regular expression?

2001-07-20 Thread James Crowley
Hi, Could someone please point out where I've gone wrong with this regular expression...? $body="http://www.fred.com\";>my test or here"; $body=eregi_replace ("([^\\[]*)","[url=\"\\1\"]\\2[/url]",$body); #$body should now be [url="http://www.fred.com"]my test[/url] or [url="/show.asp?id=

[PHP] Re: how do you use a CLASS ???

2001-07-20 Thread dc
Class files should be independant of platform. However, that does not mean it is not. For instance the class may query the database. So then it would be dependant on the database, type of database, or whatever. Your variables should not be the same name as your classes. e.g. $myCar = new Car() $b

[PHP] Re: how do you use a CLASS ???

2001-07-20 Thread dc
Lets say you have a class called Car. You should see a "constructor in the class the same as the class name: class Car { function Car(possible params...) { } function start() { ... } function stop() { } } To create a new car object you would do something lik

Re: [PHP] Unlink Woes

2001-07-20 Thread Inércia Sensorial
Run the function phpinfo(); -- Julio Nobrega. This is a man's world. But it would be nothing. It would be nothing without a woman or a girl. "Sheridan Saint-Michel" <[EMAIL PROTECTED]> wrote in message 02d101c1113d$f7a5ccc0$[EMAIL PROTECTED]">news:02d101c1113d$f7a5ccc0$[EMAIL PROTECTED]... >

Re: [PHP] Re: (another, not entirely)sessions question

2001-07-20 Thread teo
Hi Don! On Fri, 20 Jul 2001, Don Read wrote: > > On 20-Jul-2001 Er Galv?o Abbott wrote: > > Just a sugestion here, that may sound strange, but I'd do it like > > this: > > > > Why don't you keep a simle text-counter file for each user? Why this > > HAVE to go trough SQL? > > > > Just creat a t

[PHP] Displaying tables

2001-07-20 Thread Seb Frost
OK I'm playing around with MySQL on my ISP's server. Created myself some forms that create/delete tables and enter/display data in a table. Is there a simple way to generate a list of all my tables, or even better to display all of the tables with all of their information? cheers, seb -- PH

[PHP] gmp problem

2001-07-20 Thread Chris Caldwell
For some odd reason, I'd like to be able to take a number like 534 and make a larger number by repeating it 5 times, to get 534534534534534. This is part of a parser, so the two integers are passed as gmp numbers. gmp_init(str_repeat(gmp_strval($a),gmp_intval($b))) sometimes works and some

[PHP] how do you use a CLASS ???

2001-07-20 Thread sunny AT wde
ok, this must be the simplest question alive, but help me please?? i've seen loads of classes all over the net, and i want to use them, but not sure where to start! are class files independent of platform?? do you have to name your variables same as them? or do i just call it or something? the

Re: [PHP] Memory Leaks

2001-07-20 Thread Rasmus Lerdorf
> Thank you for taking the time out of you busy schedule to help me. We have > not been able to get 4.0.6 to work on the server. We can compile fine, but > when we perform a check with phpinfo (), the server reports php-4.0.4pl1. We > have configured PHP as a module to apache but do not know ho

RE: [PHP] PWS setup with PHP

2001-07-20 Thread Jerry Lake
Or there are some pre-configured executables that will install apache, MySQL, PHP and PhpMyAdmin all from one download go to www.hotscripts.com btw you can use php with PWS, but it is a pain. Jerry Lake Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Onlin

Re: [PHP] Unlink Woes

2001-07-20 Thread Sheridan Saint-Michel
How can I find out if my server is in Safe mode? Do I have to call my Host and ask them? Sheridan - Original Message - From: <[EMAIL PROTECTED]> To: Sheridan Saint-Michel <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, July 20, 2001 11:25 AM Subject: Re: [PHP] Unlink Woes > on

RE: [PHP] Re: (another, not entirely)sessions question

2001-07-20 Thread Don Read
On 20-Jul-2001 Er Galvão Abbott wrote: > Just a sugestion here, that may sound strange, but I'd do it like > this: > > Why don't you keep a simle text-counter file for each user? Why this > HAVE to go trough SQL? > > Just creat a text file with "0" on it. When the user posts, retrieve > the num

Re: [PHP] Unlink Woes

2001-07-20 Thread Sheridan Saint-Michel
I know... that's why I included all the info about how I chmod'ed both the files and directories 777 > > If you're running PHP as an Apache module it runs as the owner that Apache > runs as and can only unlink files owned by that user unless the file you are > trying to unlink is world-writable.

Re: [PHP] PHP & MySQL

2001-07-20 Thread Jason Bell
Also, to add to this, it's worth noting that the opposite of DESC is ASC as in Descending and Ascending order - Original Message - From: "Steve Werby" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, July 20, 2001 9:55 AM Subject: Re:

Re: [PHP] Unlink Woes

2001-07-20 Thread Steve Werby
<[EMAIL PROTECTED]> wrote: > on 7/20/01 11:48 AM, Sheridan Saint-Michel at [EMAIL PROTECTED] wrote: > > > Warning: Unlink failed (Permission denied) in > > /home/www/foxjet/employees/admin.php on line 108 > I had this error to from unlink, it may be because your server is in "safe > mode" If y

Re: [PHP] PHP & MySQL

2001-07-20 Thread Steve Werby
<[EMAIL PROTECTED]> wrote: > on 7/20/01 12:32 PM, Erich Kolb at [EMAIL PROTECTED] wrote: > > > When you query a MySQL Database, how do you set the order alphabetically? > > > If it's a text field just say DESC Anyone that tries would figure out, but I just wanted to clarify that what Susan sugges

Re: [PHP] Help! Parse error.....

2001-07-20 Thread rm
in the great big FWIW department, the error may not be on that line, it may only indicate the point where php recognized an error. I had one page with several includes and html code...php reported a parse error on the main page, I couldn't find it, however, eventually, I tracked the error to an e

Re: [PHP] PHP & MySQL

2001-07-20 Thread [EMAIL PROTECTED]
on 7/20/01 12:32 PM, Erich Kolb at [EMAIL PROTECTED] wrote: > When you query a MySQL Database, how do you set the order alphabetically? If it's a text field just say DESC Susan -- [EMAIL PROTECTED] http://futurebird.diaryland.com -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] Unlink Woes

2001-07-20 Thread [EMAIL PROTECTED]
on 7/20/01 11:48 AM, Sheridan Saint-Michel at [EMAIL PROTECTED] wrote: > Warning: Unlink failed (Permission denied) in > /home/www/foxjet/employees/admin.php on line 108 > > Here's the code > > if($submit == "Delete") > { > for ($j = 0; $j < $numfiles; $j++) > { > $checkname = $files[$j]; > if

Re: [PHP] PHP & MySQL

2001-07-20 Thread Jason Bell
What's wrong with using "ORDER BY" in your sql statement? - Original Message - From: "Erich Kolb" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 20, 2001 9:32 AM Subject: [PHP] PHP & MySQL > When you query a MySQL Database, how do you set the order alphabetically? > >

Re: [PHP] PHP & MySQL

2001-07-20 Thread Marisol Díaz E.
select [campo] from [tabla] order by [campo] if you want for each leter select [campo] from [tabla] where [campo] like 'A' Marisol - Original Message - From: "Erich Kolb" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 20, 2001 11:32 AM Subject: [PHP] PHP & MySQL > Wh

Re: [PHP] PHP & MySQL

2001-07-20 Thread Alexander Wagner
Erich Kolb wrote: > When you query a MySQL Database, how do you set the order > alphabetically? SELECT whatever FROM wherever ORDER BY insert_fieldname_here regards Wagner -- Madness takes its toll. Please have exact change. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e

[PHP] PHP & MySQL

2001-07-20 Thread Erich Kolb
When you query a MySQL Database, how do you set the order alphabetically? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] split on whitespace, preserving whitespace...

2001-07-20 Thread Don Read
On 20-Jul-2001 Garth Dahlstrom wrote: > Hi all, > > I'm trying to build a spell checker for a web form. > What has got me stumped is being able to do a split > so that whitespace and words are stored as seperate > elements of the same array. > > ideally, I'd use some form of preg_split to put:

Re: [PHP] Memory Leaks

2001-07-20 Thread Paul Strange
Zeev, Thank you for taking the time out of you busy schedule to help me. We have not been able to get 4.0.6 to work on the server. We can compile fine, but when we perform a check with phpinfo (), the server reports php-4.0.4pl1. We have configured PHP as a module to apache but do not know h

RE: [PHP] Storing Java Script Varable into php variable

2001-07-20 Thread Erik H. Mathy
Hi Mike! Generally the only way to send information from a clientside javascript to a serverside language (in this case PHP) is via a form submit or putting that value into an HREF the user will click. For example: Save your screen settings... (please note: this is all rough

[PHP] fsockopen doesn't time out for 10 minutes

2001-07-20 Thread Lance Lovette
I am calling fsockopen with a timeout parameter of 60 seconds. Despite the timeout value however fsockopen on some servers doesn't return for 10 to 13 minutes. The error given is usually "Connection timed out" and sometimes "No route to host". Is this much of a delay to be expected? Is there any w

[PHP] Unlink Woes

2001-07-20 Thread Sheridan Saint-Michel
I am working on a webpage that lets people manage certain files on the server. Everything is going pretty well, except everytime I run my Delete Code I get Warning: Unlink failed (Permission denied) in /home/www/foxjet/employees/admin.php on line 108 Here's the code if($submit == "Delete")

RE: [PHP] please remove me from the mail list

2001-07-20 Thread Seb Frost
Send a message to [EMAIL PROTECTED] to achieve this danny. - seb -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of danny brown Sent: 20 July 2001 16:03 To: [EMAIL PROTECTED] Subject: [PHP] please remove me from the mail list thanks -- PHP General Maili

RE: [PHP] Storing Java Script Varable into php variable

2001-07-20 Thread Johnson, Kirk
> -Original Message- > From: Mike Mike [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 20, 2001 9:34 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Storing Java Script Varable into php variable > > My question is I have some java script I want to store > the java script variable into a php v

[PHP] Storing Java Script Varable into php variable

2001-07-20 Thread Mike Mike
Hello, I look through the php-general list database but could not find the answer. My question is I have some java script I want to store the java script variable into a php variable so I can submit it into a database. Here is the Java sript code. <-- function show(){ if (!document.all&&!document

Re: [PHP] Memory Leaks

2001-07-20 Thread Zeev Suraski
Paul, First off, this is definitely not what's killing your server. The reason for this is simple - the leak reports you see in the error log are only for debug purposes. PHP takes care of these leaks automatically, and frees these blocks. Such leaks are not a good thing (they imply there's

Re: [PHP] encryption

2001-07-20 Thread Jeff Bearer
That is Complicated. if it's just for admins personal use, I'd say set up a secure sever and use your own certifiacate. On Fri, Jul 20, 2001 at 10:17:30AM -0400, Francis Fillion wrote: > The best thing will be to sync clock, if it's in an other time zone just > get your script to do +x or -x. Ev

Re: [PHP] a good PHP editor

2001-07-20 Thread ~~~i LeoNid ~~
On Thu, 19 Jul 2001 05:51:29 +0900 impersonator of Maxim Maletsky <[EMAIL PROTECTED]> planted &I saw in mail.common: >yeah I do, not for doing it, but for giving this stupid topic to the list. >we should moderate ourselves, I think. > And we'd better begin with NOT top-posting for better consumpt

Re: [PHP] a good PHP editor

2001-07-20 Thread ~~~i LeoNid ~~
On Thu, 19 Jul 2001 05:51:29 +0900 impersonator of Maxim Maletsky <[EMAIL PROTECTED]> planted &I saw in mail.common: >yeah I do, not for doing it, but for giving this stupid topic to the list. >we should moderate ourselves, I think. > And we'd better begin with NOT top-posting for better consumpt

[PHP] please remove me from the mail list

2001-07-20 Thread danny brown
thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Hack on Server.

2001-07-20 Thread Ng Hak Beng
Hi! Not sure if it the same one, there's a new IIS exploit that'll change the main page.but only in memory. It's known as Code Red Worm at the cert.org site. I noticed it after I had lots of weird requests in my httpd logs for about 8 hours last night (+800) which I thou

Re: [PHP] Help! Parse error.....

2001-07-20 Thread Jack Sasportas
Tried the alternative stuff with no luck... Looking for any crazy ideas that might work... Thanks ! Paul Strange wrote: > On Friday 20 July 2001 06:16, Jack Sasportas wrote: > > I have some code that runs under php3 perfectly, but now under 4 I get a > > parse error > > on this specific line, c

[PHP] Still need help, please. [was: Simple (I hope) updating contents question]

2001-07-20 Thread Er Galvão Abbott
I've made some changes in the code myself, so here it is: The reading process is made by this: "; $i++; } fclose($abrir); ?> This is working great, thanks to you, but the writing script is working with the second line only I think I'm really making a mess here, so here it is: Note: The

Re: [PHP] a good PHP editor

2001-07-20 Thread Alex Tretjakov
Somebody known a good PHP editor with support of KOI8? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list a

Re: [PHP] Help! Parse error.....

2001-07-20 Thread Paul Strange
On Friday 20 July 2001 06:16, Jack Sasportas wrote: > I have some code that runs under php3 perfectly, but now under 4 I get a > parse error > on this specific line, can't figure out how to resolve it. > > the code looks like this > > > > > > the error is in the middle line which is the end of

Re[2]: [PHP] SHA-1

2001-07-20 Thread Gianluca Baldo
Thanks Joe - I also searched php.net for "SHA-1" but didn't found that page. I have had problems installing mhash libraries in my debian box so, for nowt, I solved the problem with a javasript implementation of the SHA-1 algorithm. Anyway thanks for you help. Cheers, Gianluca JC>

Re: [PHP] Re: a good PHP editor

2001-07-20 Thread Paul Strange
On Friday 20 July 2001 05:48, James Crowley wrote: > I would recommend Developers Pad (http://www.developerspad.com/). It's free > and open source. OK, I am the author, but I've had lots of positive > comments about it :-) > > Regards, > > - James > > Editor, VB Web > == > Web -

Re: [PHP] Confirmation Requester

2001-07-20 Thread Sheridan Saint-Michel
I Just wrote a page that does basic file management. For the Delete part I used function confirmSubmit() { var agree=confirm("Deleted Files Cannot Be Recovered. Are You Sure?"); if (agree) return true ; else return false ; } In my and In my form. I think that should do what you want.

Re: [PHP] Memory Leaks

2001-07-20 Thread Paul Strange
On Friday 20 July 2001 07:22, Johnson, Kirk wrote: > > -Original Message- > > From: Paul Strange [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, July 19, 2001 1:18 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP] Memory Leaks > > > > When we review the error_log from apache, we see the follo

Re: [PHP] Re: split on whitespace, preserving whitespace... (a rephrase of the question)

2001-07-20 Thread Stefan Rusterholz
I thought, Jack's solution should work (with php 4.05 and above), but however if you say it doesn't then there is another solution. I don't find it very hmm "good", but it should work (I cannot test it, because a cant rund php on this machine): $text="your space containing text"; $splittext

Re: [PHP] Re: split on whitespace, preserving whitespace...

2001-07-20 Thread Garth Dahlstrom
The workstation I'm on is only running 4.0.4... perhaps it's time to upgrade. :) I'll try it again. On Fri, 20 Jul 2001 10:30:18 -0400 "Jack Dempsey" wrote: > Actually, it does. I just ran it again with that exact code. What > version of php are you running? > Here's a direct copy/paste of wha

[PHP] Re: Zipping Output Before Sending To Browser

2001-07-20 Thread Steve Brett
yup. what you need is ob_start("ob_gzhandler"); at the beginning of the bit you want to compress, usually at the top of the script and //ob_end_flush(); to send the output to the browser. bit of a time lag as the browser decompresses but should save you a bomb on bandwidth. check out the php man

Re: [PHP] Stoping Frame Breakers

2001-07-20 Thread Sheridan Saint-Michel
I would actually suggest JavaScript, rather than PHP here. Try putting something like if (parent.location != "http://www.domain.com/frames.php";) window.location = "http://www.domain.com/frames.ph

RE: [PHP] Memory Leaks

2001-07-20 Thread Johnson, Kirk
> -Original Message- > From: Paul Strange [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 19, 2001 1:18 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Memory Leaks > > When we review the error_log from apache, we see the following alot: > > zend_hash.c(291) : Freeing 0x0812738C (65 bytes)

Re: [PHP] encryption

2001-07-20 Thread Francis Fillion
The best thing will be to sync clock, if it's in an other time zone just get your script to do +x or -x. Even they hours are not really important, except that if you use it as a key, they minutes are important. It's easy to sync time if it's for they admin, but for the user at large it's not possi

Re: [PHP] Re: split on whitespace, preserving whitespace... (a rephrase of the question)

2001-07-20 Thread Garth Dahlstrom
On Fri, 20 Jul 2001 15:34:48 +0200 "Stefan Rusterholz" wrote: > If you'r using PHP >4 use preg_split. (works also with php 3 >= 3.09) > see http://www.php.net/manual/en/function.preg-split.php for detailed > information. > The split pattern you'd need is: > $sometext2split = "hello world with

Re: [PHP] Re: split on whitespace, preserving whitespace...

2001-07-20 Thread Garth Dahlstrom
On Fri, 20 Jul 2001 09:32:00 -0400 "Jack Dempsey" wrote: > > $text = "This contanswhite space ."; > $matches = preg_split("/(\s+)/",$text,-1, PREG_SPLIT_DELIM_CAPTURE); > echo implode('',$matches); Nope that doesn't do it. here's the test: echo "[$text][". implode('',$matches)."]"; here

  1   2   >