RE: [PHP] Simple preg I think [SOLVED]

2004-05-31 Thread Dave Carrera
Thanks to everyone who answered my request for help with this. Yes, as some of you have pointed out, the pattern was correct but my logic was wrong. So once again thank you to all that helped. Dave C :-) -Original Message- From: Liu Jihua [mailto:[EMAIL PROTECTED] Sent: 31 May 2004

Re: [PHP] Send HTML/plain text email using PHP

2004-05-31 Thread Jeremy Johnstone
Just as an FYI, the following line will get your email a lot of spam points in SpamAssassin: $headers .= X-MSMail-Priority: High\r\n; Also, I don't know if this has already been suggested, but there is an awesome class named htmlMimeMail which will handle your needs perfectly. Google it and

Re: [PHP] CVS web front end

2004-05-31 Thread Jeremy Johnstone
Although I have never seen a full app, I have seen PHP code which handles checkin/checkout of files as a class. I don't know if that will help you, but if it will then please let me know and I will dig it up. -Jeremy On Saturday 29 May 2004 09:50 pm, Brian V Bonini wrote: On Sat, 2004-05-29

[PHP] Re: Simple calender

2004-05-31 Thread Torsten Roehr
Ryan A [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hey, been looking at a lot of calenders most of them are either too big for my use (whole page), not free, in javascript or too complicated. I require a calender that is simple, loads fast,small and not javascript, the

Re: [PHP] Re: PHP Coding Standards

2004-05-31 Thread Torsten Roehr
Travis Low [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have to say I like everything about the PEAR coding standards except for the KR bracing style. I much prefer: if( foo ) { blah; } to if( foo ) { blah; } The latter form (KR) conserves

Re: [PHP] PEAR Mail/smtp sending problem

2004-05-31 Thread Burhan Khalid
Christopher J. Mackie wrote: I'm following the PEAR docs to use Mail/SMTP. Below is the code I use, swiped directly from the docs--I've changed the authorization data to protect privacy, but otherwise it's identical (and email sent from a client on this same machine using the same settings works

[PHP] Re: Simple calender

2004-05-31 Thread Craig
Ryan, with a bit of tweaking you can edit that script to what you want. heres an example = ?php function calendar($date) { //If no parameter is passed use the current date. if($date == null)

[PHP] installing php4 in windows 2000

2004-05-31 Thread rohit mohta
i have configured apache 2.0.49 in my system and included the following lines of code in my http:conf file LoadModule php4_module c:/php/sapi/php4apache2.dll AddType application/x-httpd-php .php i have also configured the php.ini file and created a test script(phpinfo.php,placed it in my

[PHP] Re: installing php4 in windows 2000

2004-05-31 Thread Johan Holst Nielsen
Rohit Mohta wrote: i have configured apache 2.0.49 in my system and included the following lines of code in my http:conf file LoadModule php4_module c:/php/sapi/php4apache2.dll AddType application/x-httpd-php .php i have also configured the php.ini file and created a test

[PHP] Anyone interested in freelance/part time job?

2004-05-31 Thread Davis Tan
Hi, we have a few projects which requires suitable people to provide coding work for PHP/MySQL and HTML. If you are interested, please email me so that I can provide you with more info. FYI, system analysis and design is completed. Only require development work. Thanks! Davis. -- PHP General

[PHP] Socket w/SSL Issues

2004-05-31 Thread Steve Douville
PHP is installed without openssl here at pair. I want to make a socket call to port 443 on a server and I'm getting an error from fsocketopen() that no ssl support is built in, of course. I thought that using ssl:// might work around this, but I guess not. Any ideas for me? $host = my.host.com;

Re: [PHP] installing php4 in windows 2000

2004-05-31 Thread Daniel Clark
Is your php.ini in the windows or winnt directory? i have configured apache 2.0.49 in my system and included the following lines of code in my http:conf file LoadModule php4_module c:/php/sapi/php4apache2.dll AddType application/x-httpd-php .php i have also configured the php.ini file and

[PHP] BUTTONS

2004-05-31 Thread Brent Clark
Hi all I came across this on freshmeat, I thought I must share it http://phpbutton.sourceforge.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] multiple checkbox help

2004-05-31 Thread Bob Lockie
I tried this HTML: input name=deleteID value=1 type=checkbox input name=deleteID value=2 type=checkbox $_REQUEST['deleteID'] === the last box checked. so I did a google search and changed my HTML to: input name=deleteID[] value=1 type=checkbox input name=deleteID[] value=2 type=checkbox Now the

[PHP] Re: multiple checkbox help

2004-05-31 Thread Thomas Seifert
On Mon, 31 May 2004 10:50:52 -0400 [EMAIL PROTECTED] (Bob Lockie) wrote: I tried this HTML: input name=deleteID value=1 type=checkbox input name=deleteID value=2 type=checkbox $_REQUEST['deleteID'] === the last box checked. so I did a google search and changed my HTML to: input

Re: [PHP] multiple checkbox help

2004-05-31 Thread Daniel Clark
Change $_REQUEST to $_POST (a little more secure). foreach( $deleteID as $key = $value) { echo 'deleting ' . $value . 'br /' ; } I tried this HTML: input name=deleteID value=1 type=checkbox input name=deleteID value=2 type=checkbox $_REQUEST['deleteID'] === the last box checked. so I did

Re: [PHP] multiple checkbox help

2004-05-31 Thread Bob Lockie
Thanks to all those who responded. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] R: [PHP] multiple checkbox help

2004-05-31 Thread Alessandro Vitale
I usually use this approach: INPUT NAME=myName[1] VALUE=CHECKED TYPE=CHECKBOX . . INPUT NAME=myName[N] VALUE=CHECKED TYPE=CHECKBOX --- foreach($_REQUEST['myName'] as $id = $value) { if($value == CHECKED) array_push($idArray, $id); } if something is not clear, let me know

[PHP] duplicating a row

2004-05-31 Thread Bob Lockie
I want to duplicate a row (back it up - copy to a table with the same schema) regardless of the table schema. This in MySQL but I need a solution that can be made easily portable to other databases. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: duplicating a row

2004-05-31 Thread Craig
http://dev.mysql.com/doc/mysql/en/INSERT_SELECT.html Bob Lockie [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I want to duplicate a row (back it up - copy to a table with the same schema) regardless of the table schema. This in MySQL but I need a solution that can be made easily

Re: [PHP] duplicating a row

2004-05-31 Thread Daniel Clark
INSERT INTO new_table (column1, column2, ...) SELECT column1, column2, ... FROM original_table I want to duplicate a row (back it up - copy to a table with the same schema) regardless of the table schema. This in MySQL but I need a solution that can be made easily portable to other databases.

Re: [PHP] Re: duplicating a row

2004-05-31 Thread Bob Lockie
On 05/31/04 11:42 Craig spoke: http://dev.mysql.com/doc/mysql/en/INSERT_SELECT.html Bob Lockie [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I want to duplicate a row (back it up - copy to a table with the same schema) regardless of the table schema. This in MySQL but I need a solution

Re: [PHP] multiple checkbox help

2004-05-31 Thread John W. Holmes
Bob Lockie wrote: I tried this HTML: input name=deleteID value=1 type=checkbox input name=deleteID value=2 type=checkbox $_REQUEST['deleteID'] === the last box checked. so I did a google search and changed my HTML to: input name=deleteID[] value=1 type=checkbox input name=deleteID[] value=2

[PHP] GD Library Upgrade

2004-05-31 Thread Ryan Schefke
I'm working with a host on a Linux box with PHP 4.2.2. The version of GD Library they have is 1.8.4. I was uploading some pictures using a script that leveraged GD Library 2+. Using the php version with the newer GD library seemed to produce a better quality image. I have two questions: 1

[PHP] Re: Re: drop down menu populated from a directory

2004-05-31 Thread Dustin Krysak
I gave it a go, and I got the error: Parse error: parse error, unexpected '}' This was on the last }. Now I am brand new at php, but should there not be an opening and closing curly bracket? in this code there are one { and three } So I made my code: ?php if ($handle = opendir('../../../mov'))

[PHP] Referer problem

2004-05-31 Thread Merlin
Hi there, I am trying to prevent hotlinking of images by other servers. Pictures are generated on the fly by a php script, where I have included this code to prevent hot linking: $haystack = $_SERVER['HTTP_REFERER']; $needle = 'globosapiens'; $pos = strpos($haystack, $needle); if ($pos ===

Re: [PHP] Re: Re: drop down menu populated from a directory

2004-05-31 Thread Daniel Clark
With the SELECT drop down, you'd need a submit button, and then the value of $file would be passed to the next page and read. There you could open that file. So I made my code: ?php if ($handle = opendir('../../../mov')) { while (false !== ($file = readdir($handle))) if ($file !=

[PHP] Re: Re: drop down menu populated from a directory

2004-05-31 Thread Torsten Roehr
Dustin Krysak [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I gave it a go, and I got the error: Parse error: parse error, unexpected '}' Sorry there are some braces missing. Please try this: if ($handle = opendir('../../../mov')) { while (false !== ($file = readdir($handle)))

Re: [PHP] Referer problem

2004-05-31 Thread Marek Kilimajer
Merlin wrote: Hi there, I am trying to prevent hotlinking of images by other servers. Pictures are generated on the fly by a php script, where I have included this code to prevent hot linking: $haystack = $_SERVER['HTTP_REFERER']; $needle = 'globosapiens'; $pos = strpos($haystack,

[PHP] Re: drop down menu populated from a directory

2004-05-31 Thread Dustin Krysak
ok, I added brackets and made my code to: ?php if ($handle = opendir('../../../mov')) { while (false !== ($file = readdir($handle))) { if ($file != '.' $file != '..') { $fileName = str_replace('.mov', '', $file); echo 'option value=../../../mov/' . $file . '' .

[PHP] Re: drop down menu populated from a directory

2004-05-31 Thread Torsten Roehr
Dustin Krysak [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ok, I added brackets and made my code to: ?php if ($handle = opendir('../../../mov')) { while (false !== ($file = readdir($handle))) { if ($file != '.' $file != '..') { $fileName =

[PHP] Text file

2004-05-31 Thread alantodd
What would be the easiest way to open a text file, remove a line if the line begins with a word from an array of words (there are 5 words I will be looking for) then write that back to the text file with everything removed Thanks Alan

[PHP] Test Files

2004-05-31 Thread alantodd
What would be the easiest way to open a text file, remove a line if the line begins with a word from an array of words (there are 5 words I will be looking for) then write that back to the text file with everything removed Thanks Alan

Re: [PHP] triggering php scripts...

2004-05-31 Thread hitek
At 10:19 PM 5/30/2004, you wrote: Chris Wagner wrote: i am wondering if there is a good way to trigger a php script from a web page *without* sending the user to a new page or opening a new browser windows. for instance, suppose you wanted to make a button/link on a web page that, when clicked,

Re: [PHP] Referer problem

2004-05-31 Thread John W. Holmes
Merlin wrote: I am trying to prevent hotlinking of images by other servers. Pictures are generated on the fly by a php script, where I have included this code to prevent hot linking: $haystack = $_SERVER['HTTP_REFERER']; $needle = 'globosapiens'; $pos = strpos($haystack, $needle); if ($pos

[PHP] Text Streaming in PHP

2004-05-31 Thread Stephen Lake
Hey All, I know I asked this before a couple of weeks ago, but I need a good swift kick in the right direction :D I need to know how to do a text stream in PHP. I have tried the following: while loop with flush and sleep functions HTTP/1.1 Connection: Stream (seems to work in the above while

[PHP] How to verify that data is in a blob?

2004-05-31 Thread phil
I want to verify that there is data (doesn't matter whether it's valid data or not) inside a MySQL blob using a PHP function. How do I do this? Thanks!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Text Streaming in PHP

2004-05-31 Thread Robert Cummings
On Mon, 2004-05-31 at 15:28, Stephen Lake wrote: Hey All, I know I asked this before a couple of weeks ago, but I need a good swift kick in the right direction :D I need to know how to do a text stream in PHP. I have tried the following: while loop with flush and sleep functions

[PHP] Slightly OT Mysql question

2004-05-31 Thread Dave Carrera
Hi List, Sorry for this question being slightly OT but its is to due with my Php script in a way. MySql has stopped adding rows since the db table hit 1mb... Anyone know why ? I have search mysql.com docs and other web resources but can not figure it out. Running FreeBSD 4.7 and MySql 3.23.58

[PHP] Receiving an associative array from Flash

2004-05-31 Thread Radek Zajkowski
Hey what would the syntax look like if I was receiving an array from flash. Assume that it is inside a class with a proper contructor class receiveRemoting{ function receiveRemoting{ //ALL THE CONFIG STUFF } function receiveArrayFromFlash($arrayFromFlash){ //THIS IS WHERE

Re: [PHP] Text file

2004-05-31 Thread John W. Holmes
alantodd wrote: What would be the easiest way to open a text file, remove a line if the line begins with a word from an array of words (there are 5 words I will be looking for) then write that back to the text file with everything removed ?php $lookfor = array('one','two','three','four','five');

[PHP]

2004-05-31 Thread René Fournier
What's the difference between function myfunction() { } and function myfunction() { } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP]

2004-05-31 Thread René Fournier
Oops... I mean, what's the difference between function myfunction() { } and function myfunction() { } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP]

2004-05-31 Thread Chris
The ampersand indicates that the function is returning by reference: http://www.php.net/references.return Chris René Fournier wrote: Oops... I mean, what's the difference between function myfunction() { } and function myfunction() { } ? -- PHP General Mailing List (http://www.php.net/) To

[PHP] PHP login script

2004-05-31 Thread René Fournier
I'm looking for some good, secure login code, and found the following article: http://www.devshed.com/c/a/PHP/Creating-a-Secure-PHP-Login-Script/ Not being much of a security expert, I was wondering if anyone here could say whether this code is any good? Or if there's a better one elsewhere?

[PHP] shortcut if

2004-05-31 Thread Bob Lockie
No syntax error but this always returns 's'. $add = $delete_count 0 ? s : x; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Secure login script

2004-05-31 Thread René Fournier
The link I posted previously is causing me some grief, apparently because I don't know the first thing about object-oriented PHP or PEAR. Here's the thing: If I MUST learn these two things in order to copy the security of the sample script, I will, but is it really necessary in your opinion?

Re: [PHP] shortcut if

2004-05-31 Thread Marek Kilimajer
Bob Lockie wrote: No syntax error but this always returns 's'. $add = $delete_count 0 ? s : x; That means $delete_count is always greater than 0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] shortcut if

2004-05-31 Thread John W. Holmes
Bob Lockie wrote: No syntax error but this always returns 's'. $add = $delete_count 0 ? s : x; Hmm.. that's odd because if(false) { return false; } always returns false for me... -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP

[PHP] compiling php with mysql ver3 or 4

2004-05-31 Thread Richard Kurth
Hello , How can I compile PHP so that it does not mater what version of mysql is installed. If I compile it for mysql 3.X and then upgrade mysql to ver 4 PHP will not install. I get error while loading shared libraries: libmysqlclient.so.12: cannot open shared object file this is

Re: [PHP] compiling php with mysql ver3 or 4

2004-05-31 Thread Rachel Rodriguez
--- Richard Kurth [EMAIL PROTECTED] wrote: Hello , How can I compile PHP so that it does not mater what version of mysql is installed. If I compile it for mysql 3.X and then upgrade mysql to ver 4 PHP will not install. I get error while loading shared libraries:

[PHP] Re: Socket w/SSL Issues

2004-05-31 Thread Manuel Lemos
Hello, On 05/31/2004 10:14 AM, Steve Douville wrote: PHP is installed without openssl here at pair. I want to make a socket call to port 443 on a server and I'm getting an error from fsocketopen() that no ssl support is built in, of course. I thought that using ssl:// might work around this, but I

[PHP] Re: Text Streaming in PHP

2004-05-31 Thread Manuel Lemos
On 05/31/2004 04:28 PM, Stephen Lake wrote: I know I asked this before a couple of weeks ago, but I need a good swift kick in the right direction :D I need to know how to do a text stream in PHP. I have tried the following: while loop with flush and sleep functions HTTP/1.1 Connection: Stream

Re: [PHP] Secure login script

2004-05-31 Thread Raj Shekhar
On Mon, 31 May 2004 16:11:07 -0600, René Fournier [EMAIL PROTECTED] wrote: If I MUST learn these two things in order to copy the security of the sample script, I will, but is it really necessary in your opinion? Let me see. Will you let a surgeon who does not know how to handle a scalpel to

[PHP] kill a script...plz help

2004-05-31 Thread CurlyBraces Technologies \( Pvt \) Ltd
sorry for asking such questions , ... If u all don't have codings for such cases , could u plz direct me with some steps ? Thank u # i used this script to run that abc.pl in command prompt. It is perfectly running. ?php

[PHP] Re: drop down menu populated from a directory

2004-05-31 Thread Dustin Krysak
Ok - here is the relevant Quicktime code: !-- START QUICKTIME CONTENT -- object classid=clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B width=320 height=256 codebase=http://www.apple.com/qtactivex/qtplugin.cab; param name=autoplay value=true param name=controller value=true param

[PHP] Calender code help

2004-05-31 Thread Ryan A
Hey, Thanks to you guys on the list I have started to tweak the simple calender which I posted earlier...but have run into problems ;-) (I didnt go with the PEAR one coz we don't have PEAR installed on all our shared hosting accounts) What I am trying to do is, have some dates be clickable

[PHP] RE: GD Library Upgrade

2004-05-31 Thread Ryan Schefke
Any thoughts on this? I'm working with a host on a Linux box with PHP 4.2.2. The version of GD Library they have is 1.8.4. I was uploading some pictures using a script that leveraged GD Library 2+. Using the php version with the newer GD library seemed to produce a better quality image. I

[PHP] Cannot find MySQL header files under

2004-05-31 Thread Jough P
Greetings, when compiling PHP with the 'with-mysql' option I get an warning against using the built-in mysql support. So, I tried '--with-mysql=/path/to/mysql.so and got the following error: Cannot find MySQL header files under... What are the names of the mysql header files this message is