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
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
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
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
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
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
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)
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
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
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 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;
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
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
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
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
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
Thanks to all those who responded.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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:
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
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.
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
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
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
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'))
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 ===
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 !=
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)))
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,
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 . '' .
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 =
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
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
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,
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
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
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
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
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
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
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');
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
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
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
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?
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
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?
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
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
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
--- 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:
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
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
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
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
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
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
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
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
59 matches
Mail list logo