[PHP] Please check this program (its working)

2004-01-09 Thread Ryan A
Hi, I dont know if this is the right way to do this, so please have a looksee and tell me. Its working perfectly well...but will I have problems if I try it on a large email list or will it hog resourcesetc? ANY advice appreciated. ?php $hostt=localhost; $userr=ryan; $passs=pass; $db=test;

[PHP] XML?

2004-01-09 Thread Jake McHenry
Hi everyone, Can someone point me in the right direction towards creating and implementing XML with php? I've heard it can make things much easier on me, and would like more info on it. Also, if anyone has any storys from using it, might give me an idea of what I'm getting into. Is it easy to

[PHP] Rsvp/invite script?

2004-01-09 Thread Dustin Choe
I have checked hotscripts/resourceindex/etc, but to no avail. I am looking for a script where I can have several meetings and having members rsvping which meeting they can attend. Thanks -- Dustin Choe http://www.dchoe.com

[PHP] critical case, please read and comment !!

2004-01-09 Thread Nabil
I have the following example case: 1- More than 1000 record in my MySQL database. 2- I have to submit those record via HTTP GET or POST method. 3- I have to read the confirmation message that will be printed on the remote page showing me that the vars have been inserted in the remote database. 4-

php-general Digest 9 Jan 2004 09:50:14 -0000 Issue 2520

2004-01-09 Thread php-general-digest-help
php-general Digest 9 Jan 2004 09:50:14 - Issue 2520 Topics (messages 174065 through 174095): open_basedir clarification 174065 by: Matt Grimm 174082 by: Matt Grimm Re: php on linux.. 174066 by: memoimyself.yahoo.com.br Content-type vs session_start() 174067

[PHP] Is it possible to see if a jpeg is RGB or CMYK via PHP GD2?

2004-01-09 Thread SED
I'm allowing user to upload images to a gallery. However, some user seem to have both RGB and CMYK jpeg images. I get an error from ImageCreateFromJPEG when the script is creating thumbnails from a CMYK jpeg. Can I somehow see if the image is RGB or CMYK, so I know when to skip the automatic

RE: [PHP] detecting flash in php

2004-01-09 Thread Julien Wadin
php is server side try in javascript -Message d'origine- De : Louie Miranda [mailto:[EMAIL PROTECTED] Envoyé : vendredi 9 janvier 2004 6:12 À : [EMAIL PROTECTED] Objet : [PHP] detecting flash in php is there anyway of detecting flash? in php -- - Louie Miranda http://www.axishift.com

[PHP] [problem solved] - Is it possible to see if a jpeg is RGB or CMYK via PHP GD2?

2004-01-09 Thread SED
I was to fast on this list... I found the solution reading the manual better ;) ... With JPG images, two extra indexes are returned: channels and bits. channels will be 3 for RGB pictures and 4 for CMYK pictures. bits is the number of bits for each color. Beginning with PHP 4.3, bits and

Re: [PHP] Content-type vs session_start()

2004-01-09 Thread Børge Strand
Do you have any ideas what I should do to make both .php and .cgi versions work? Here's test3.cgi: == #! /usr/local/bin/php ?php print 'Content-type: text/html' . \n\n; session_start(); Have you tried putting

[PHP] _ENV

2004-01-09 Thread Diana Castillo
Can someone tell me the name of the environmental variable that tells you the path that you are in? -- -- Diana Castillo Global Reservas, S.L. C/Granvia 22 dcdo 4-dcha 28013 Madrid-Spain Tel : 00-34-913604039 Fax : 00-34-915228673 email: [EMAIL PROTECTED] Web : http://www.hotelkey.com

Re: [PHP] Content-type vs session_start()

2004-01-09 Thread Børge Strand
Cheers Chris I will try to explain using your code: Here's test3.cgi: == #! /usr/local/bin/php ?php print 'Content-type: text/html' . \n\n; When you are running as a CGI, you can set the Content-Type header in this way.

Re: [PHP] _ENV

2004-01-09 Thread Stuart
Diana Castillo wrote: Can someone tell me the name of the environmental variable that tells you the path that you are in? http://php.net/getcwd or for the virtual path to the script... dirname($_SERVER['SCRIPT_NAME']); or for the document root of the current site... $_SERVER['DOCUMENT_ROOT']

[PHP] limit mysql connections

2004-01-09 Thread Diana Castillo
Is there any way to limit the connections so that this error never happens? Warning: mysql_connect(): Too many connections at /home/local/global/php/libraries/dblayer_mysql.php line 14. -- -- Diana Castillo Global Reservas, S.L. C/Granvia 22 dcdo 4-dcha 28013 Madrid-Spain Tel : 00-34-913604039

RE: [PHP] critical case, please read and comment !!

2004-01-09 Thread Jay Blanchard
[snip] 1-the problem is that the 30 second of execution time expired before i can send even 200 records. [/snip] Use set_time_limit() in the page itself, requires no mod to php.ini http://www.php.net/set_time_limit -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] open_basedir clarification

2004-01-09 Thread Ford, Mike [LSS]
On 09 January 2004 01:16, Matt Grimm wrote: Can anyone clarify this for me? Is open_basedir recursive or restricted to the exact paths specified? This is a bit hard to find in the manual, but everything you need to know should be at

[PHP] Time Limit in save-mode

2004-01-09 Thread Pavel Janda
Hello, a have this problem. I am reading some data from another server via http-conection for which I have used fsock_open. But sometimes, it is possible, that reading is longer, than for example 5 seconds, and I want to stop this reading a return false... I found function set_time_limit,

Re: [PHP] Please check this program (its working)

2004-01-09 Thread Richard Davey
Hello Ryan, Friday, January 9, 2004, 7:20:09 AM, you wrote: RA Its working perfectly well...but will I have problems if I try it on a large RA email list or RA will it hog resourcesetc? ANY advice appreciated. Stick this at the bottom of your loop (INSIDE the loop!): set_time_limit(30);

[PHP] deamon / server

2004-01-09 Thread Decapode Azur
hello, Is it possible to make php scripts working like deamons and build something like a server? -- thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] deamon / server

2004-01-09 Thread Jay Blanchard
[snip] Is it possible to make php scripts working like deamons and build something like a server? [/snip] *scratching chin* Anything is possible. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] deamon / server

2004-01-09 Thread Stuart
Decapode Azur wrote: Is it possible to make php scripts working like deamons and build something like a server? Yes. http://homepages.tesco.net/~J.deBoynePollard/FGA/questions-with-yes-or-no-answers.html -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: deamon / server

2004-01-09 Thread pete M
What you trying to achieve... Decapode Azur wrote: hello, Is it possible to make php scripts working like deamons and build something like a server? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: limit mysql connections

2004-01-09 Thread pete M
check out the mssql.max_links setting in php.ini There's a dew other settings in there 200 pete Diana Castillo wrote: Is there any way to limit the connections so that this error never happens? Warning: mysql_connect(): Too many connections at /home/local/global/php/libraries/dblayer_mysql.php

Re: [PHP] open_basedir clarification

2004-01-09 Thread Tom Dangler
Matt, From the php manual: The restriction specified with open_basedir is actually a prefix, not a directory name. This means that open_basedir = /dir/incl also allows access to /dir/include and /dir/incls if they exist. When you want to restrict access to only the specified directory, end

Re: [PHP] critical case, please read and comment !!

2004-01-09 Thread Christophe Chisogne
Nabil wrote: for ($i=0 ; $iNUM OF RECORDS ; $i++) { send_rec( $var1 , $var2 , $var3 ); } with n records you send n http GET requets, which take a long time, using bandwith, and needs n executions of php script on webserver2. Why not simply creating a csv file on the fly, with all your 3fields

[PHP] Display syslog file?

2004-01-09 Thread Carlton L. Whitmore
I didn't make my last request very clear. I used lastlog as an example, but what I really want to do is open a syslog file (text file), that is coming in from a VPN box. I'd like to have it displayed live so I can scan it during the day. What is the best way to do this? Someone had suggested using

Re: [PHP] Display syslog file?

2004-01-09 Thread Ray Hunter
On Fri, 2004-01-09 at 07:28, Carlton L. Whitmore wrote: I didn't make my last request very clear. I used lastlog as an example, but what I really want to do is open a syslog file (text file), that is coming in from a VPN box. That is easy enough to do if you have access to the syslog file.

Re: [PHP] XML?

2004-01-09 Thread Ray Hunter
On Fri, 2004-01-09 at 00:30, Jake McHenry wrote: Can someone point me in the right direction towards creating and implementing XML with php? I've heard it can make things much easier on me, and would like more info on it. Also, if anyone has any storys from using it, might give me an idea of

RE: [PHP] Display syslog file?

2004-01-09 Thread Carlton L. Whitmore
Ray, I'm using the root user to access the file so rights aren't an issue. I want to display the file thru a webserver. I'd like the page to refresh so I can watch the activity coming in from my SonicWall router. I don't mind watching all the activity coming in on that syslog file, maybe later I

RE: [PHP] XML?

2004-01-09 Thread Jake McHenry
Not sure. Just asking. I haven't used it before and don't really know what it's about. I've read about it on xml.com. Either nothing sank in, or I'm just confused. It's pretty much for data organization, right? Almost all of the documentation I've read on it deals with asp. I know it is used

[PHP] XML/HTML encoding?

2004-01-09 Thread Vincent Jansen
I'm doing some XML processing with PHP5 I'm using UTF-8 encoding When I look at my xml doc it looks something like ?xml version=1.0 ? doc textdotted e (ë) works/text /doc (I hope you see a dotted e) After xslt I end up with a html document with a souce

RE: [PHP] Display syslog file?

2004-01-09 Thread Ray Hunter
On Fri, 2004-01-09 at 08:05, Carlton L. Whitmore wrote: Ray, I'm using the root user to access the file so rights aren't an issue. I want to display the file thru a webserver. I'd like the page to refresh so I can watch the activity coming in from my SonicWall router. I don't mind watching

Re: [PHP] picturing webpage

2004-01-09 Thread David T-G
Eli -- ...and then Eli Hen said... % % Hello All, Hi! % % I wanted to know if it is possible to picture a webpage via PHP. % By picturing I mean that the program can generate a picture, a view, out Hmmm... An interesting concept. % of the page URL given. (Like sometimes you have in

RE: [PHP] XML?

2004-01-09 Thread Ray Hunter
On Fri, 2004-01-09 at 08:22, Jake McHenry wrote: It's pretty much for data organization, right? yes, it is a method for organizing data into a standard format that is platform independent. I do a lot of importing and exporting to/from excel. I belive it could help me out here. Perhaps.

Re: [PHP] XML/HTML encoding?

2004-01-09 Thread Ray Hunter
On Fri, 2004-01-09 at 08:23, Vincent Jansen wrote: I'm doing some XML processing with PHP5 I'm using UTF-8 encoding When I look at my xml doc it looks something like ?xml version=1.0 ? doc textdotted e (ë) works/text /doc (I hope you see a dotted e)

RE: [PHP] picturing webpage

2004-01-09 Thread Jake McHenry
-Original Message- From: David T-G [mailto:[EMAIL PROTECTED] Sent: Friday, January 09, 2004 10:29 AM To: PHP General list Cc: Eli Hen Subject: Re: [PHP] picturing webpage Eli -- ...and then Eli Hen said... % % Hello All, Hi! % % I wanted to know if it is

RE: [PHP] XML/HTML encoding?

2004-01-09 Thread Vincent Jansen
I see this using MSIE 6 But in Mozilla 1.5 I get ë for ë I'm hoping this is fixable without changing browser settings -Original Message- From: Ray Hunter [mailto:[EMAIL PROTECTED] Sent: vrijdag 9 januari 2004 16:34 To: 'Php-general' Subject: Re: [PHP] XML/HTML encoding? On Fri,

RE: [PHP] Display syslog file?

2004-01-09 Thread Peter Vertes
On Fri, 2004-01-09 at 10:05, Carlton L. Whitmore wrote: I'm using the root user to access the file so rights aren't an issue. Actually it is an issue because PHP is not running with root privileges (at least I hope you haven't changed it and made it run with root privileges; that would

RE: [PHP] XML/HTML encoding?

2004-01-09 Thread Ray Hunter
On Fri, 2004-01-09 at 08:44, Vincent Jansen wrote: I see this using MSIE 6 But in Mozilla 1.5 I get ë for ë I'm hoping this is fixable without changing browser settings Do you have this page accessible via the web that i can take a look at it. -- Ray -- PHP General Mailing List

RE: [PHP] picturing webpage

2004-01-09 Thread Ed Curtis
Hi! % % I wanted to know if it is possible to picture a webpage via PHP. % By picturing I mean that the program can generate a picture, a view, out Don't know if this is exactly what you're looking for but this might be what you're after. It was posted on Freshmeat just this

[PHP] Dynamically Created Arrays

2004-01-09 Thread Cameron B. Prince
Hey guys, I'm making progress on my perl to PHP conversion project but I need some help... I have a configuration table in MySQL made up like this: CREATE TABLE config ( code mediumint(9) NOT NULL auto_increment, site varchar(32) NOT NULL default '', name varchar(64) NOT NULL default '',

[PHP] Re: Please help with mail function

2004-01-09 Thread memoimyself
Hello Rolf, On 9 Jan 2004 at 0:51, Rolf Berkenbosch wrote: I have a big problem with the mail function in a php script. If I run this script with root access, the mail function is working. If I try to run it like http://www.i-s-u.nl/test.php it won't work. What is happening, what can I

[PHP] Re: Please check this program (its working)

2004-01-09 Thread memoimyself
On 9 Jan 2004 at 8:20, Ryan A wrote: I dont know if this is the right way to do this, so please have a looksee and tell me. Its working perfectly well...but will I have problems if I try it on a large email list or will it hog resourcesetc? ANY advice appreciated. One step at a time,

[PHP] Re: XML?

2004-01-09 Thread memoimyself
Hi there, Jake, On 9 Jan 2004 at 2:30, Jake McHenry wrote: Can someone point me in the right direction towards creating and implementing XML with php? I've heard it can make things much easier on me, and would like more info on it. Also, if anyone has any storys from using it, might give me

[PHP] $_SERVER['PHP_AUTH_USER'] doesn't work with location header for Mozilla.

2004-01-09 Thread Scott Fletcher
Hi! The login page where the HTTP Authentication would pop-up asking the web user to enter the user id and password to log in. I'm using the PHP's $_SERVER['PHP_AUTH_USER'] and it work okay in both Internet Explorer and Gecko browsers, like Mozilla for example. What I had discovered is that

[PHP] md5() and string-length?

2004-01-09 Thread Michael Müller
Hi, is anybody here who knows the max_length of a string which is encoded by md5()? thx, Michael Berlin, Germany -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] md5() and string-length?

2004-01-09 Thread Peter Vertes
It's always a 32 character string. http://us4.php.net/manual/en/function.md5.php -Peter On Fri, 2004-01-09 at 11:30, Michael Mller wrote: Hi, is anybody here who knows the max_length of a string which is encoded by md5()? thx, Michael Berlin, Germany -- perl -e 'print pack(H*,

[PHP] not sure why regex is doing this

2004-01-09 Thread craig
Hi, I have a text file that I have to parse and insert into a db. these are a couple of sample lines (they are part of the variable $query) (4536,'golf tournament management',430,0,0), (1434,'Premium golf balls',,,0), I have to replace the blank entries (,,) with NULLs, and I am using this

Re: [PHP] Dynamically Created Arrays

2004-01-09 Thread Marek Kilimajer
This should be what you need: if(!is_array($conf[$name])) $conf[$name] = array($val); else $conf[$name][] = $val; Cameron B. Prince wrote: Hey guys, I'm making progress on my perl to PHP conversion project but I need some help... I have a configuration table in MySQL made up like this: CREATE

Re: [PHP] $_SERVER['PHP_AUTH_USER'] doesn't work with location header for Mozilla.

2004-01-09 Thread Miguel J. Jimnez
I think it's because all headers must be sent BEFORE doing anything else ... Scott Fletcher wrote: Hi! The login page where the HTTP Authentication would pop-up asking the web user to enter the user id and password to log in. I'm using the PHP's $_SERVER['PHP_AUTH_USER'] and it work okay

RE: [PHP] Dynamically Created Arrays

2004-01-09 Thread Cameron B. Prince
Hi Marek, I came up with this hack, which seems to work: $query = SELECT name, value FROM config WHERE site = '$site' ORDER BY name, seq; $result = mysql_query($query) or die(Query failed : . mysql_error()); $conf = array (); $last = ; while ($line = mysql_fetch_array($result,

[PHP] Re: not sure why regex is doing this

2004-01-09 Thread Pavel Janda
Hi Craig, the mistake is in regex, because you replace only the pair of , with ,NULL,... So in case, that there are tree , in row, there is only one pair and it means one replacing.. For example, when your string is like this: (12345) //two pair of ,, the result is (12345,NULL,,NULL,) But

Re: [PHP] md5() and string-length?

2004-01-09 Thread Michael Müller
mhm, I think there was a missunderstanding ;) I want to know, how long the input-string could be (so that the encoded strings, that you get, are unique) Michael

Re: [PHP] md5() and string-length?

2004-01-09 Thread Brad Pauly
On Fri, 2004-01-09 at 10:29, Michael Mller wrote: mhm, I think there was a missunderstanding ;) I want to know, how long the input-string could be (so that the encoded strings, that you get, are unique) I don't think there is a limit, theoretically. In practice you might have other constraints

Re: [PHP] md5() and string-length?

2004-01-09 Thread Jason Wong
On Saturday 10 January 2004 01:29, Michael Müller wrote: mhm, I think there was a missunderstanding ;) I want to know, how long the input-string could be (so that the encoded strings, that you get, are unique) Basically, as long as you like (within memory constraints). -- Jason Wong -

RE: [PHP] md5() and string-length?

2004-01-09 Thread Julien Wadin
No limit for the input string -Message d'origine- De : Michael Müller [mailto:[EMAIL PROTECTED] Envoyé : vendredi 9 janvier 2004 18:29 À : [EMAIL PROTECTED] Objet : Re: [PHP] md5() and string-length? mhm, I think there was a missunderstanding ;) I want to know, how long the input-string

Re: [PHP] md5() and string-length?

2004-01-09 Thread Mike Migurski
mhm, I think there was a missunderstanding ;) I want to know, how long the input-string could be (so that the encoded strings, that you get, are unique) In theory, you are limited by the fact that the MD5 message digest is 128 bits long, so collisions are /possible/, but not /probable/. In

[PHP] Re: not sure why regex is doing this

2004-01-09 Thread Pavel Janda
Hi again, I am not sure, that it is the clearest way, how to do it, but I've tried this: ? $query=(4536,'golf tournament management',4300,0), (1434,'Premium golf balls'0),; while (eregi(',\s*,',$query)): $query = preg_replace('/,\s*,/',',NULL,', $query, -1); endwhile; echo

Re: [PHP] picturing webpage

2004-01-09 Thread Ryan A
Hey, These sons of bitches at top--sites have done this, I call them that coz I regularly get spam from them. Try this URL: http://top--sites.com/update.htm?d=spamcop.come=p change spamcop to any other url... Cheers, -Ryan On 1/9/2004 4:28:33 PM, David T-G ([EMAIL PROTECTED]) wrote: Eli --

[PHP] Form validation: client- or server-side?

2004-01-09 Thread Matt Grimm
Is there a distinct advantage to doing form validation / error checking on the server side using PHP? That's how I've always done it because I know PHP better than JavaScript, but wouldn't it make sense to validate as much of your form as possible using JavaScript before the form was ever posted?

RE: [PHP] picturing webpage

2004-01-09 Thread Jake McHenry
-Original Message- From: Ryan A [mailto:[EMAIL PROTECTED] Sent: Friday, January 09, 2004 12:55 PM To: David T-G Cc: [EMAIL PROTECTED] Subject: Re: [PHP] picturing webpage Hey, These sons of bitches at top--sites have done this, I call them that coz I regularly get spam from

Re: [PHP] Form validation: client- or server-side?

2004-01-09 Thread David T-G
Matt -- ...and then Matt Grimm said... % % Is there a distinct advantage to doing form validation / error checking on % the server side using PHP? That's how I've always done it because I know 1) I hate JavaScript. 2) Don't trust anything coming from a client. You should be validating on the

RE: [PHP] Form validation: client- or server-side?

2004-01-09 Thread Mike Brum
Yes, it's considered best practice to do as much client-side validation as you can as to save your server time and load. This doesn't mean you still shouldn't do full validation on the server-side, but the fewer times the form is posted to your site the better. You might want to recheck what

Re: [PHP] Form validation: client- or server-side?

2004-01-09 Thread Ray Hunter
On Fri, 2004-01-09 at 11:07, Matt Grimm wrote: Is there a distinct advantage to doing form validation / error checking on the server side using PHP? That's how I've always done it because I know PHP better than JavaScript, but wouldn't it make sense to validate as much of your form as

[PHP] Re: Form validation: client- or server-side?

2004-01-09 Thread Manuel Lemos
Hello, On 01/09/2004 04:07 PM, Matt Grimm wrote: Is there a distinct advantage to doing form validation / error checking on the server side using PHP? That's how I've always done it because I know PHP better than JavaScript, but wouldn't it make sense to validate as much of your form as possible

RE: [PHP] picturing webpage

2004-01-09 Thread Mike Brum
I can tell you this much, .cfm is ColdFusion. And CF is somewhat similar to PHP in it's embedded-in style of scripting. It could be similar to how you can build a PDF. They could just take your HTML and then use that to build a .JPG. I'm sure it's a very *expensive* process (server CPU -wise)

RE: [PHP] picturing webpage

2004-01-09 Thread Jake McHenry
-Original Message- From: Ryan A [mailto:[EMAIL PROTECTED] Sent: Friday, January 09, 2004 12:55 PM To: David T-G Cc: [EMAIL PROTECTED] Subject: Re: [PHP] picturing webpage Hey, These sons of bitches at top--sites have done this, I call them that coz I regularly get spam from

RE: [PHP] Form validation: client- or server-side?

2004-01-09 Thread craig
Is there a distinct advantage to doing form validation / error checking on the server side using PHP? The actual code you use to validate remains hidden from a potential malicious user, while javascript code can be seen, so if there is a hole in your error checking, it can be found easier. The

Re: [PHP] md5() and string-length?

2004-01-09 Thread Peter Vertes
Sorry my bad; I read your post but I didn't understand it fully. I agree with the others; there is no theoretical limit (only physical like available memory, disk space, etc..) to the size of a string which you can pass to the md5() function. -Pete On Fri, 2004-01-09 at 12:29, Michael Mller

Re: [PHP] not sure why regex is doing this

2004-01-09 Thread Kelly Hallman
On Fri, 9 Jan 2004, craig wrote: (4536,'golf tournament management',430,0,0), (1434,'Premium golf balls',,,0), I have to replace the blank entries (,,) with NULLs, using this regex: $query = preg_replace('/,\s*,/',',NULL,', $query, -1); after this line, only ONE of the ,, sets is replaced

Re: [PHP] Form validation: client- or server-side?

2004-01-09 Thread Peter Vertes
On Fri, 2004-01-09 at 13:07, Matt Grimm wrote: Is there a distinct advantage to doing form validation / error checking on the server side using PHP? That's how I've always done it because I know PHP better than _javascript_, but wouldn't it make sense to validate as much of your form as

[PHP] Re: Form validation: client- or server-side?

2004-01-09 Thread Matt Grimm
Thanks for the great input guys. Sounds like I'm using a sound method now with full server-side validation. Perhaps to make the most user- and server-friendly forms, one could use JavaScript as a guide to the user, alerting them to erroneous input and suggesting alternatives rather than being

[PHP] Re: XML?

2004-01-09 Thread Manuel Lemos
Hello, On 01/09/2004 05:30 AM, Jake McHenry wrote: Hi everyone, Can someone point me in the right direction towards creating and implementing XML with php? I've heard it can make things much easier on me, and would like more info on it. Also, if anyone has any storys from using it, might give me

[PHP] Re: XML/HTML encoding?

2004-01-09 Thread Manuel Lemos
Hello, On 01/09/2004 01:23 PM, Vincent Jansen wrote: I'm doing some XML processing with PHP5 I'm using UTF-8 encoding When I look at my xml doc it looks something like ?xml version=1.0 ? doc textdotted e (ë) works/text /doc (I hope you see a dotted e) After

RE: [PHP] not sure why regex is doing this

2004-01-09 Thread craig
Thanks Kelly. That works just like I wanted, only starting the regex engine once. Guess I'll have to figure out lookahead. -Craig -Original Message- From: Kelly Hallman [mailto:[EMAIL PROTECTED] Sent: January 9, 2004 11:24 AM To: craig Cc: Php Subject: Re: [PHP] not sure why regex

[PHP] Re: not sure why regex is doing this

2004-01-09 Thread Justin Patrin
while (eregi(',\s*,',$query)): $query = preg_replace('/,\s*,/',',NULL,', $query, -1); endwhile; Please don't mix the regex engines like that...it could lead to much suffering. instead of eregi, use preg_match. -- paperCrane Justin Patrin -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Form validation: client- or server-side?

2004-01-09 Thread Chris Shiflett
--- Matt Grimm [EMAIL PROTECTED] wrote: Is there a distinct advantage to doing form validation / error checking on the server side using PHP? Yes, security. Basically, I never think of it as client-side *versus* server-side. I think of it more like this: 1. Server-side data validation? YES 2.

Re: [PHP] Form validation: client- or server-side?

2004-01-09 Thread Peter Vertes
On Fri, 2004-01-09 at 14:22, Chris Shiflett wrote: But, no matter what, always validate data on the server. Otherwise, it's like being a teacher and having your students grade their own work; it only works when everyone is honest (and I can guarantee you that won't be the case on a public Web

Re: [PHP] Form validation: client- or server-side?

2004-01-09 Thread Matt Matijevich
[snip] why would you validate data on the server if you have a JavaScript that checked the user's input before it gets submitted to the server ? I mean the whole point of you having that JavaScript is to make sure the the correct data gets entered so why bother checking it once again on the

[PHP] Intermitent problems retreiving PDF's from a MySQL database.

2004-01-09 Thread Donald Tyler
Hi, I have a website where the admin can create entries in a news list and upload an associated PDF document. I am storing the document in a MySQL database on another machine on the same network. For some reason, occasionaly when loading a PDF document, internet explorer will lock up, the

[PHP] Spell checker in PHP

2004-01-09 Thread Robin Kopetzky
Good afternoon! I know aspell and pspell are available but pspell won't work in my Windows environment. Does anyone know how to tie into Word's spell checker using php or another spell check option? What I need is a way to check spelling on city/state names and select the most appropriate if the

[PHP] Fw: Intermitent problems retreiving PDF's from a MySQL database.

2004-01-09 Thread Donald Tyler
Hi, I have a website where the admin can create entries in a news list and upload an associated PDF document. I am storing the document in a MySQL database on another machine on the same network. For some reason, occasionaly when loading a PDF document, internet explorer will lock up, the

RE: [PHP] Spell checker in PHP

2004-01-09 Thread Vail, Warren
Haven't heard of anyone doing this, and it's got to be slow but you could consider creating a word document, invoking word, and saving/retrieving the results. I would start with http://www.php.net/manual/en/ref.com.php this should show you how to invoke word from your php script since you are

Re: [PHP] Spell checker in PHP

2004-01-09 Thread David O'Brien
I used system call to a dos spell checker program from here http://fmg-www.cs.ucla.edu/fmg-members/geoff/ispell.html#ftp-sites using the places2k.txt file from the US census as the dictionary http://www.census.gov/geo/www/gazetteer/places2k.html -Dave At 02:57 PM 1/9/2004, Robin Kopetzky

Re: [PHP] Form validation: client- or server-side?

2004-01-09 Thread Chris Shiflett
--- Peter Vertes [EMAIL PROTECTED] wrote: Just to play devil's advocate; why would you validate data on the server if you have a JavaScript that checked the user's input before it gets submitted to the server? I mean the whole point of you having that JavaScript is to make sure the the correct

RE: [PHP] picturing webpage

2004-01-09 Thread Ryan A
Yep, They might be spammers and lowlifes but they have a pretty nice program running there. I wrote to them twice but didnt get a replyI wonder if its because I kind of said a few bad words directed at them, their mothers, fathers and family.??? Cheers, -Ryan On 1/9/2004 7:10:35 PM,

RE: [PHP] picturing webpage

2004-01-09 Thread Ryan A
Hey, if they are paying for this service of getting thumbnails.maybe I can write a script that keeps on hitting their site with different random URLs Would be a good way to make them pay for spamming me anyway. Whos with me? Cheers, -Ryan * Getting closer.. Did a little digging..

Re: [PHP] Form validation: client- or server-side?

2004-01-09 Thread Peter Vertes
It makes perfect sense now. Thanks for clearing it up for me Chris :) -Peter On Fri, 2004-01-09 at 15:29, Chris Shiflett wrote: --- Peter Vertes [EMAIL PROTECTED] wrote: Just to play devil's advocate; why would you validate data on the server if you have a _javascript_ that checked the

[PHP] jpeg Uploader issue

2004-01-09 Thread Mike R
I am having an issue where a user with a MAC can't see jpegs uploaded to a web site I built. They are getting some sort of corrupt file indicator. All PC users are fine from what I gather. I saw only one reference to this on the web in a forum, and it lead to no particular answer; just a few

Re: [PHP] Display syslog file?

2004-01-09 Thread Steve Edberg
I don't know if the same syntax is available on Linux, but on Solaris I can use the 'tail -f' command to watch lines being appended to a file from the commandline.. You might be able to do something via passthru(tail -f $PathToSyslog); in a frame on your page...although there might be

[PHP] Re: XML/HTML encoding?

2004-01-09 Thread memoimyself
Hello Vincent, On 9 Jan 2004 at 16:23, Vincent Jansen wrote: After xslt I end up with a html document with a souce that looks something like ?xml version=1.0 encoding=UTF-8 standalone=yes? !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN

[PHP] Hiding files away from /public_html/

2004-01-09 Thread Philip J. Newman
Hi, just wanted to pick someones brain. I want to store some images outside the /public_html/ how ever my isp has decided that i'm not aloud to write files in that area. Would the next best solution that wold be as secure to maybe put them in a folder with a .htaccess file in it? --- Philip

RE: [PHP] Buffalo'ed, stumped, confused...

2004-01-09 Thread Ralph Guzman
For debugging purposes, if you want to see all values in $_POST use this code: print 'pre'; print_r($_POST); print '/pre'; or this: print 'pre'; var_dump($_POST); print '/pre'; -Original Message- From: Robin Kopetzky [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 4:31 PM

RE: [PHP] Hiding files away from /public_html/

2004-01-09 Thread Ralph Guzman
Put them in a folder with .htaccess: RewriteEngine onRewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://yourdomain.com/.*$ [NC] ReWriteRule .*\.(gif|jpg)$ - [N,F,L] -Original Message-

RE: [PHP] post vars not by form

2004-01-09 Thread Ralph Guzman
Use socket connection: http://www.php.net/fsockopen read the User Contributed Notes where you will find functions and examples. -Original Message- From: Nabil [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 2:07 PM To: [EMAIL PROTECTED] Subject: [PHP] post vars not by form

RE: [PHP] Re: Not working?

2004-01-09 Thread Ralph Guzman
Or this: system(rename('/path/to/new.sh', '/path/to/old' . $today)); -Original Message- From: Matt Grimm [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 10:28 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Not working? You can't use variables inside single quotes, either.

RE: [PHP] Sorting data into columns vertically

2004-01-09 Thread Ralph Guzman
Here is a function that will do this, assuming $items is an array you would do the following: // $size INTEGER // $width INTEGER // border INTEGER // $cpadding INTEGER // $cspacing INTEGER // $data ARRAY function horizontalTable($size, $width, $border, $cpadding, $cspacing, $data) {

RE: [PHP] Sorting data into columns vertically

2004-01-09 Thread Ralph Guzman
Here is a function I use. Assuming data is stored in an array called $items you will call out horizontalTable() like this: horizontalTable(3,600,1,3,3, $items); Here is the horizontalTable() function code: // $size: number of columns // $width: table width // $border: table border //

RE: [PHP] Sorting data into columns vertically

2004-01-09 Thread Ralph Guzman
DISREGARD THIS ONE -Original Message- From: Ralph Guzman [mailto:[EMAIL PROTECTED] Sent: Friday, January 09, 2004 4:35 PM To: 'Raditha Dissanayake'; 'dareal hamsta' Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Sorting data into columns vertically Here is a function that will do this,

Re: [PHP] limit mysql connections

2004-01-09 Thread John W. Holmes
Diana Castillo wrote: Is there any way to limit the connections so that this error never happens? Warning: mysql_connect(): Too many connections at /home/local/global/php/libraries/dblayer_mysql.php line 14. The connections are already limited, that's why you get this warning. You need to handle

[PHP] [Newbie Guide] For the benefit of new members

2004-01-09 Thread Ma Siva Kumar
=== This message is for the benefit of new subscribers and those new to PHP.  Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en

  1   2   >