|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
php-general Digest 3 Jun 2004 12:40:28 -0000 Issue 2800
php-general-digest-help
lists.php.net
Date: Thu Jun 03 2004 - 07:40:28 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php-general Digest 3 Jun 2004 12:40:28 -0000 Issue 2800
Topics (messages 187501 through 187519):
Re: mail() problem
187501 by: Larry Brown
187505 by: Ligaya Turmelle
187506 by: Stephen Lake
Re: Can session.save_path data be saved to a database instead of a file system?
187502 by: Caleb Walker
187511 by: Marek Kilimajer
Re: PHP Coding Standards
187503 by: Justin French
Re: how to insert form data
187504 by: Ligaya Turmelle
187514 by: Ford, Mike [LSS]
Re: meet problem while use imap_close
187507 by: php maillist
Re: how to insert form data // BigMark
187508 by: Shahed, Raja
Alternative to freetype?
187509 by: Victor Spĺng Arthursson
[PHP-General] - LOC/FP for PHP.
187510 by: francesco[AT]automationsoft[DOT]biz
Sophisticated rss builder class
187512 by: electroteque
PHP and HVCI
187513 by: Arndt Touby
(Newbie question) Advice on comment system (no db!) design issues
187515 by: Yngve
IMPORTANT MASSAGE FROM THE BANK
187516 by: Davies Harries
Class Syntax Help or Globals issue
187517 by: bob pilly
187518 by: Marek Kilimajer
PHP 4.3.7 Released
187519 by: Ilia Alshanetsky
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
Sounds like a problem for the maintainers of the spam blocking software?
You can't correct the problem with the headers if you don't know what the
spam software is objecting to. It may be objecting to the fact that the
source is 127.0.0.1?
-----Original Message-----
From: Rick [mailto:web
nwmbrand.com]
Sent: Wednesday, June 02, 2004 8:35 PM
To: php-general
lists.php.net
Subject: [PHP] mail() problem
Hi All,
Does anyone know a good format for sending email using the mail()
function that doesnt get stopped by antispam software?
I need to send and email from my sever when a new member creates an account,
this ive done but my email gets binned straight away? must be the headers?
Regards
Rick
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
minor suggestion: make sure you have a from address.
Respectfully,
Ligaya Turmelle
"Rick" <web
nwmbrand.com> wrote in message
news:20040603003433.63314.qmail
pb1.pair.com...
> Hi All,
> Does anyone know a good format for sending email using the mail()
> function that doesnt get stopped by antispam software?
>
> I need to send and email from my sever when a new member creates an
account,
> this ive done but my email gets binned straight away? must be the headers?
>
> Regards
>
> Rick
attached mail follows:
Another suggestion is if its an HTML format mail, make sure you use
proper....ie making sure all tags are closed that kind of stuff....some
software will block if the HTML is not well formed
"Rick" <web
nwmbrand.com> wrote in message
news:20040603003433.63314.qmail
pb1.pair.com...
> Hi All,
> Does anyone know a good format for sending email using the mail()
> function that doesnt get stopped by antispam software?
>
> I need to send and email from my sever when a new member creates an
account,
> this ive done but my email gets binned straight away? must be the headers?
>
> Regards
>
> Rick
attached mail follows:
>>
>
> This is how I would do it and would require no additional changes to the
> code - just set your auto prepend in a .htaccess file if you're using
> Apache.
This sounds interesting. Could you elaborate a little more? I mean what
is the "auto prepend" and what is the syntax for the .htaccess? Thanks
very much.
Caleb
attached mail follows:
Caleb Walker wrote:
>>This is how I would do it and would require no additional changes to the
>>code - just set your auto prepend in a .htaccess file if you're using
>>Apache.
>
>
> This sounds interesting. Could you elaborate a little more? I mean what
> is the "auto prepend" and what is the syntax for the .htaccess? Thanks
> very much.
>
> Caleb
>
The manual says it all:
http://sk2.php.net/manual/en/configuration.changes.php
http://sk2.php.net/manual/en/configuration.directives.php#ini.sect.data-handling
attached mail follows:
On 02/06/2004, at 3:00 AM, Justin Patrin wrote:
> And I'm one of them. :-) I like the K&R version because it saves
> verticaly space and most editors can't really handle correct tabbing
> when you put it after. IMHO it's just not necessary as ALL blocks
> should have braces, even those that are one-line. If you always use
> the braces, you can looks for indenting as the open of the block and
> the end-brace (and un-indenting) as the close of the block.
I used to be a big fan of both versions, but honestly, I didn't care,
as long as an app was consistent, so that one could become comfortable
with it over time. The reality is that good editors like BBEdit can
help match braces, highlight code blocks, etc.
But recently, I've changed my tactic to whatever helps the code be as
readable and clear as possible...
$file = 'a'; if(file_exists($file)) { include($file); }
$file = 'b'; if(file_exists($file)) { include($file); }
$file = 'c'; if(file_exists($file)) { include($file); } else {
include('x'); }
$file = 'd'; if(file_exists($file)) { include($file); } else {
include('x'); }
$file = 'e'; if(file_exists($file)) { include($file); }
is a lot clearer,line-efficient and faster to comprehend than...
$file = 'a';
if (file_exists($file)) {
include($file);
}
$file = 'b';
if (file_exists($file)) {
include($file);
}
$file = 'c';
if (file_exists($file)) {
include($file);
} else {
include('x');
}
$file = 'd';
if (file_exists($file)) {
include($file);
} else {
include('x');
}
$file = 'e';
if (file_exists($file)) {
include($file);
}
Of course, looping through an array of file names would be even
clearer, but you get my point :)
---
Justin French
http://indent.com.au
attached mail follows:
shouln't be
QUOTE: <input type = "textarea" name="quote"...
Respectfully,
Ligaya Turmelle
"Matt Macleod" <matt
bigbarn.co.uk> wrote in message
news:D5849F35-B489-11D8-B8BC-000A95DA376E
bigbarn.co.uk...
> Should be:
>
> <form name="form" meth0d="post" action="input/php">
> NAME: <input type="text" name="name" id="name" />
> QUOTE: <textarea name="quote" id="quote"></textarea>
> <input type="submit" name="submit" value="Submit" />
> </form>
>
> HTH
>
>
> Matt
>
> On 3 Jun 2004, at 04:33, BigMark wrote:
>
> > OK no errors now but no data inserted, my form must be wrong as well.
> >
> > <form method="post" action="input.php">
> > NAME
> > <input name="textfield" type="text" id="name" >
> > QUOTE
> > <input name="textarea" type="text" "id="quote" >
> >
> > <input type="submit" name="Submit" value="Submit">
> >
> > </form>
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
attached mail follows:
On 03 June 2004 03:57, Ligaya Turmelle wrote:
> shouln't be
> QUOTE: <input type = "textarea" name="quote"...
If that was a question, then: No, it shouldn't. Some versions of a certain
browser may have supported this, but it has never been part of any HTML
standard.
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS, LS6 3QS, United Kingdom
Email: m.ford
leedsmet.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
attached mail follows:
Let me answer my question myself
my os is installed redhat 9.0 and use imap rpm
after I start deamon imap and imaps
(I didn't start imaps deamon at startup)
everything goes well~!
but it still need to add "/notls" behind protocol
Frederick Kuo 6/3
Php Maillist wrote:
> hello everybody, I need help for using imap functions in php
>
> I refer the imap functions from the book Professional PHP4
> it introduces the imap server from telnet it to writing a brief scripts
> it teach me that type "telnet localhost 143" behind prompts
> and I got the right response from my imap server
> I can fetch my email by command line and watch the correct content
>
> but when I processed to the next step, writing a test PHP script for
> connecting to my imap server....I got error
> "Warning: Couldn't open stream {127.0.0.1:143)INBOX in
> /var/www/html/imap_test.php on line 2"
> I installed the imap module for php by rpm, this error seens but for
> module include error, but it just can't connect to my imap server
>
> I searched imap in php maillist, someone discuss that the first
> parameter should expressed as {127.0.0.1:143/imap/notls} etc...
> but i tried a lot of different ways..It still couldn't work
>
> I didn't know to much about my imap server ..I just confirm that I can
> use any mailing software to connect to my imap server for recesiving
> mail correctly
>
> query my rpms I got this:
> [yhvh
a614-3 yhvh]$ rpm -qa|grep imap
> php-imap-4.2.2-17
> imap-2001a-18
>
> is there anyone could give me a hand?..I really confused...
> thanx a lot~!!!!!
>
> PS: I looking for imap functions in squirrelmail..I found that he
> connect to imap server by fsockopen?!
attached mail follows:
BigMark wrote
$sql = "INSERT INTO whosaid (name,quote) VALUES ('$name', '$quote')";
//$sql = "INSERT INTO whosaid (name,quote) VALUES ('','$name', '$quote')";
//if you have auto_incrementing id
$result = mysql_qeury($sql);
Try this way!
Best regards
Raja shahed
>-----Ursprüngliche Nachricht-----
>Von: BigMark [mailto:neretlis
westnet.com.au]
>Gesendet: Donnerstag, 3. Juni 2004 05:13
>An: php-general
lists.php.net
>Betreff: [PHP] how to insert form data
>
>
>I am trying to learn how to take the value of $name and $quote
>from a form
>and put it in the database -whosaid
>but obviuosly i have it all wrong. Can anyone point out what
>im doing wrong.
>
>thx in advance
>
>
><?php
>include("connect.php");
>$name = $_POST['name'];
>$quote = $_POST['quote'];
>$sql = "INSERT INTO whosaid values (name='$name',quote='$quote');
>?>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
> raja
christine nothdurfter . it
>
attached mail follows:
Hi!
Since it's almost impossible to find a web server which has freetype
installed, I wonder which the alternatives are to put text on an
image…?
Sincerely
Victor
attached mail follows:
Hi all,
I have a question about PHP in relation with software engineering, and in particular, in order to apply COCOMO metod in a web-oriented software.
I want to do a cost estimation of a software write in PHP-MySQL (and Linux-Apache) for a LAN.
I know the teory about the software enginnering and especially of the model for estimation cost.
I have many books and online materials about this, but in all I haven't table that show the coefficient of LOC/FP or SLOC/UFP (for COCOMOII) of PHP (in these tables there are coefficient for C, C++, Java, Lisp, Basic, ADA, Assembly, but not about PHP or scripting languages).
Anyone know anything about this arguments?
Thanks in advance and regards to all folks.
Francesco
francesco
automationsoft.biz
attached mail follows:
Hi there, I am wanting to know if there is any good rss builder classes,
that is similar to what the PEAR XML_Tree class can do. Sadly there is no
pear rss builder out there, and the ones on PHP classes are dodgy. Please
let me know thanks.
attached mail follows:
Hi,
does anybody have an idea how to implement HBCI-functionality to a PHP-Site?
greetings
Arndt Touby
attached mail follows:
Hi!
I am about to write a comment system in PHP, but as i am not any good at PHP
i am seeking some advice.
This is what i want from the system:
* Flexibility! I want to be able to attach it where i want let the user give
comments easily. For example comments could be on a blog entry or on a
downloadable file, whatever i like it to be.
* I will moderate all comments from all "commentpoints" before they are
published.
* Not use a database.
I am wondering what the best approach is?
I thought of this:
Use an object oriented approach, and have a class called CommentSystem.
When i create an instance of the class the "commentpoint" id (some
integer/string) is passed and the comments are read into the object.
After the object creation i can display all comments using something similar
to: aCommantSystem->outputHTML() in my code.
The inner datastructure holding the comments should be an array, perhaps
multidimensional with different data in each column? When a comment is added
using something similar to
aCommantSystem->addComment($username,$comment,$date) the array has one
element appended to it.
Persistent storage of the commentsystem is done through serialize and
unserialize and saved to a file with equal name to the specific
"commentpoint" id.
I will have some way to list all new comments from all commentpoints so that
i can moderate them (accept/refuse) before they are to be viewed in public.
I haven´t thought of some good way to do this though.
Does the above sound like a good solution? Or should i do it in some other
way? All feedback would be appreciated!
attached mail follows:
FROM:Mr DAVIES HARRIES
bills and exchange director
GUARANTY TRUST BANK PLC
Email:info_metro
mail2world.com
Fax No:14134519233
Dear Sir,
I am Mr.Davies Harries the bills and exchange director
at the GUARANTY TRUST BANK PLC, I am writing this
letter to solicit for support and assistance from you
to carry out this business opportunity in my
department.
Lying in an inactive account is the sum of
us$34.7million belonging to a foreign customer(mr
James Kelly) who happens to be deceased. he died with
his wife and two children in a plane crash on board an
ADC airline flight at the Egirin river Lagos Nigeria
in november 1997.
Ever since he died the bank has been expecting his
next of kin to come and claim these fund. To this
effect, we can not release the money unless someone
applies for it as next of kin, as indicated in our
banking guideline.
Unfortunately he has no family member in Nigeria or
Over-sea who are aware of the existence of the
money(as he was a contractor with the federal Republic
of Nigeria).
At this juncture i have decided to do business with
you.To this effect I solicit your assistance in
applying as the next of kin then the money will be
released to you. As I do not want this money to go
into the bank treasury as an unclaimed bill.
The banking law and guideline stipulates that if such
money(s) remains unclaimed for a period of up to 8
years(8yrs)the money will be transferred into the
banks treasury as an unclaimed bill.My request for a
foreigner as next of kin is occasioned by the fact
that the customer was a foreigner and a Nigerian
cannot stand as next of kin.
Sir, 20% of the money will be your share as a foreign
partner and your assistance to actualise this
business,5% for any expenses incured. Thereafter i
will visit your country with your help once the money
hits your account for disbursement according to the
percentage indicated.
To effect the immediate transfer of the fund to you as
agreed,you must apply first to the bank as the next
of kin to the deceased,then we will follow up all
formalities for the transaction.
Upon receipt of your reply, i will send to you by fax
or email the text of the application you are to send
to the bank, as soon as you receive the text i will
further clarify you in other issues as to affect the
business.
Awaiting to hear from you.
Best Regards
Davies Harries
REPLY ME ON MY PERSONAL EMAIL:info_metro
mail2world.com
--mjileijlcbgppmippeob
Content-Type: message/rfc822
Content-Disposition: inline; filename="php-general_187517.ezm"
Message-ID: <20040603120909.72901.qmail
web86401.mail.ukl.yahoo.com>
Date: Thu, 3 Jun 2004 13:09:09 +0100 (BST)
From: =?iso-8859-1?q?bob pilly?= <bobpilly
yahoo.co.uk>
To: php-general
lists.php.net
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Subject: Class Syntax Help or Globals issue
Hi All
I am new to classes and are trying to work out whether
they will make my coding experience easier. I have
written the following test class which is trying to
take three variables from a mssql query and add them
as variables in a new class. This isnt working as i
keep getting an error that says ;
Warning: Missing argument 1 for app() in
/var/www/htdocs/temp3.php on line 13
Warning: Missing argument 2 for app() in
/var/www/htdocs/temp3.php on line 13
Warning: Missing argument 3 for app() in
/var/www/htdocs/temp3.php on line 13
the code .....
//a basic class to store basic appointment details in
class App {
var $name;
var $the_date;
var $result;
//add values to the variables
function App($app1name,$appdate,$appresult){
$this->name=$app1name;
$this->the_date=$appdate;
$this->result=$appresult;
}
}
$query="select app1name,appdate,appresult from
appresult where appdate > 'jun 01 2004'";
$qresult=mssql_query($query,$numero);//get the number
of rows returned
$numrow=mssql_num_rows($qresult);
if($row=mssql_fetch_array($qresult)){
$i
do{
$j=$i;
$j= new App;
$j->App($row[app1name],$row['appdate'],$row['appresult']);
}
while($row=mssql_fetch_array($qresult));
}
?>
Is there a syntax problem with the way im trying to
pass the value of the $row array cells into the class
function?
I have looked at the online manual for classes but
find it a bit confusing on how to input and extract
variables data in classes. Any help or pointing in the
direction of some good docs would be greatly
appreciated!
thanks for any help in advance.
____________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
--mjileijlcbgppmippeob
Content-Type: message/rfc822
Content-Disposition: inline; filename="php-general_187518.ezm"
Message-ID: <40BF19A7.3010408
kilimajer.net>
Date: Thu, 03 Jun 2004 14:29:27 +0200
From: Marek Kilimajer <lists
kilimajer.net>
MIME-Version: 1.0
To: bob pilly <bobpilly
yahoo.co.uk>
CC: php-general
lists.php.net
Content-Type: text/plain; charset=us-ascii; formatowed
Content-Transfer-Encoding: 7bit
Subject: Re: [PHP] Class Syntax Help or Globals issue
bob pilly wrote:
> Hi All
>
> I am new to classes and are trying to work out whether
> they will make my coding experience easier. I have
> written the following test class which is trying to
> take three variables from a mssql query and add them
> as variables in a new class. This isnt working as i
> keep getting an error that says ;
>
> Warning: Missing argument 1 for app() in
> /var/www/htdocs/temp3.php on line 13
>
> Warning: Missing argument 2 for app() in
> /var/www/htdocs/temp3.php on line 13
>
> Warning: Missing argument 3 for app() in
> /var/www/htdocs/temp3.php on line 13
>
> the code .....
> //a basic class to store basic appointment details in
> class App {
>
> var $name;
> var $the_date;
> var $result;
>
> //add values to the variables
>
This is the function's constructor, it's called when you create a class
instance using "new" operator:
> function App($app1name,$appdate,$appresult){
> $this->name=$app1name;
> $this->the_date=$appdate;
> $this->result=$appresult;
> }
>
> }
>
> $query="select app1name,appdate,appresult from
> appresult where appdate > 'jun 01 2004'";
> $qresult=mssql_query($query,$numero);//get the number
> of rows returned
> $numrow=mssql_num_rows($qresult);
> if($row=mssql_fetch_array($qresult)){
> $i
> do{
> $j=$i;
So instead of:
> $j= new App;
>
> $j->App($row[app1name],$row['appdate'],$row['appresult']);
you have to suply the arguments to the contructor this way:
$j= new App($row[app1name],$row['appdate'],$row['appresult']);
> }
> while($row=mssql_fetch_array($qresult));
> }
>
> ?>
>
>
> Is there a syntax problem with the way im trying to
> pass the value of the $row array cells into the class
> function?
>
> I have looked at the online manual for classes but
> find it a bit confusing on how to input and extract
> variables data in classes. Any help or pointing in the
> direction of some good docs would be greatly
> appreciated!
>
> thanks for any help in advance.
>
--mjileijlcbgppmippeob
Content-Type: message/rfc822
Content-Disposition: inline; filename="php-general_187519.ezm"
From: Ilia Alshanetsky <ilia
prohost.org>
Reply-To: ilia
prohost.org
To: php-general
lists.php.net,
internals
lists.php.net,
php-announce
php.net,
pear-general
lists.php.net
Date: Thu, 3 Jun 2004 08:40:26 -0400
MIME-Version: 1.0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-Id: <200406030840.26293.ilia
prohost.org>
Subject: PHP 4.3.7 Released
PHP Development Team is proud to announce the release of PHP 4.3.7.
This is a maintenance release that in addition to several non-critical bug
fixes, addresses an input validation vulnerability in escapeshellcmd() and
escapeshellarg() functions on the Windows platform. Users of PHP on Windows
are encouraged to upgrade to this release as soon as possible.
Aside from the above mentioned issues this release includes the following
important fixes:
Synchronized bundled GD library with GD 2.0.23.
Fixed a bug that prevented compilation of GD extensions against FreeType
2.1.0-2.1.2.
Fixed thread safety issue with informix connection id.
Fixed incorrect resolving of relative paths by glob() in windows.
Fixed mapping of Greek letters to html entities.
Fixed a bug that caused an on shutdown crash when using PHP with Apache
2.0.49.
Fixed a number of crashes inside pgsql, cpdf and gd extensions.
All in all this release fixes over 30 bugs that have been discovered and
resolved since the 4.3.6 release.
Enjoy,
PHP Development Team.
--mjileijlcbgppmippeob--
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]