Mike Yrabedra wrote:
> Hello,
>
> I want to have a class send some emails.
>
> I wanted to use the excellent phpMailer class to do this.
>
> What is the proper way to use the phpMailer class from within a method of a
> separate class?
the same way you would use it outside of a method of a class
On Wed, 2007-11-28 at 22:47 -0700, Jon Westcot wrote:
> Thanks, Rob! I can see that it's going to be important for me to get
> familiar with the POSIX regular expressions.
You can use the perl versions too. I just got used to the posix versions
a long time ago :). BTW, if you didn't notice I forg
Thanks, Rob! I can see that it's going to be important for me to get
familiar with the POSIX regular expressions.
Jon
- Original Message -
> On Wed, 2007-11-28 at 22:19 -0700, Jon Westcot wrote:
> > Hi all:
> >
> > Since I'm relatively new to PHP, I'm not familiar with all of the
sho
On Wed, 2007-11-28 at 22:19 -0700, Jon Westcot wrote:
> Hi all:
>
> Since I'm relatively new to PHP, I'm not familiar with all of the
> shortcuts and efficient ways one could write a routine that handles
> converting data from one format into another, so I thought I'd ask here for
> recomme
Hi all:
Since I'm relatively new to PHP, I'm not familiar with all of the shortcuts
and efficient ways one could write a routine that handles converting data from
one format into another, so I thought I'd ask here for recommendations on how
to solve one particular issue I've got. I'm viewi
In my solution, I use two scripts. One for showing the image true size
and another for generating a thumbnail -- I may be wrong, but I think
it's better to generate a thumbnail as needed on the fly than it is to
store both images (large and thumbnail) in the dB.
Cache it on the filesystem ev
At 6:12 PM -0600 11/28/07, David Giragosian wrote:
Thing is, the above works just fine as long as I hard code a switch case for
every image file pulled from the db. What I can't seem to do is dynamically
extend it to include newly uploaded images, i.e., for an image count greater
than what I've h
On Thu, 2007-11-29 at 09:24 +0800, Crayon Shin Chan wrote:
> > This has been the expected behavior (adding [SOLVED]) for a long time
> > though it does not occur as often as it should. It has been in the
> > NEWBIE GUIDE for a long time and has been a de-facto standard on IT or
> > computer relate
Hello,
I want to have a class send some emails.
I wanted to use the excellent phpMailer class to do this.
What is the proper way to use the phpMailer class from within a method of a
separate class?
--
Mike B^)>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:/
Gevorg Harutyunyan wrote:
Hi,
I am using Curl extension for my project.
Regulary I am fetching some pages from web using Curl.
Now I must create ban system for some IPs.
What does that mean? Don't fetch the pages on some ip's? Don't allow
some ip's to use curl? Something else?
--
Postgresq
On Wednesday 28 November 2007, Jay Blanchard wrote:
> [snip]
> So the summary of my proposal is as follows:
> reached or question is asked. This will allow a step-by-step document
> (of sorts) to be created and made "searchable" on the web.
> [/snip]
>
> This has been the expected behavio
...
>>>
>> http://www.wellho.net/solutions/php-example-php-form-image-upload-store-in-mysql-database-retreive.html
having taken a quick look at that page I can only hope that you aspire
to write alot better code than that!
>>> Thanks very much for reading this long post.
>>>
>>> David
>>>
>>
> T
Makes sense to me...
Count me in
bastien
> Date: Wed, 28 Nov 2007 10:48:57 -0500
> From: [EMAIL PROTECTED]
> To: php-general@lists.php.net
> Subject: [PHP] PHP RFC # 0001 --- List Etiquette
>
> Good morning (/afternoon/evening) all;
>
> This is
On 11/28/07, Jochem Maas <[EMAIL PROTECTED]> wrote:
>
> you need a *seperate* script that outputs the image data only (+ relevant
> headers)
> and then you refer to that script (passing it a suitable parameter so it
> knows
> which image to output) in the src attribute of an IMG tag.
>
> you seem t
I wonder if he's just pretending to be dumb like that...
Or, there are --- here to reply
On Nov 28, 2007 6:32 PM, Jim Lucas <[EMAIL PROTECTED]> wrote:
> Ronald Wiplinger wrote:
> > Jay Blanchard wrote:
> >> [snip]
> >> I want to create flash animations via a web page. Is it possible? What
Daniel Brown wrote:
> On Nov 28, 2007 3:28 PM, adam_99 <[EMAIL PROTECTED]> wrote:
>> [snip]
>> On the server? http://www.php.net/exec
>> [/snip]
>> I don't know how to use these functions in PHP can you explaine it?
>> And I don't need outpu from the function.
>> Thanks you!
>>
>>
>> --
>> PHP Gene
you need a *seperate* script that outputs the image data only (+ relevant
headers)
and then you refer to that script (passing it a suitable parameter so it knows
which image to output) in the src attribute of an IMG tag.
you seem to be trying to output image data and html in a single request, whi
Thanks for the infos.
I read through the very interesting post, but I did not find it to be a
solution for my problem.
I tried to limit connections with iptables, but it did not work out. I'm
not an expert at this, I tried like it is described here:
http://www.linux-noob.com/forums/index.php?sh
Go back and read Warren's reply to you.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Nov 28, 2007 4:05 PM, George Pitcher <[EMAIL PROTECTED]> wrote:
> Hi,
>
> > On one script (pulling large amount of data from mysql) I'm getting error:
> > "Fatal error: Allowed memory size of 16777216 bytes exhausted..."
> > I put on the beginning of the page
> > ini_set('memory_limit', '64M');
afan pasalic wrote:
Hi,
On one script (pulling large amount of data from mysql) I'm getting error:
"Fatal error: Allowed memory size of 16777216 bytes exhausted..."
I put on the beginning of the page
ini_set('memory_limit', '64M');
but I'm still getting the same error message?!?
Any idea?
Than
Hi,
> On one script (pulling large amount of data from mysql) I'm getting error:
> "Fatal error: Allowed memory size of 16777216 bytes exhausted..."
> I put on the beginning of the page
> ini_set('memory_limit', '64M');
> but I'm still getting the same error message?!?
>
ini_set() returns the old
Hi,
On one script (pulling large amount of data from mysql) I'm getting error:
"Fatal error: Allowed memory size of 16777216 bytes exhausted..."
I put on the beginning of the page
ini_set('memory_limit', '64M');
but I'm still getting the same error message?!?
Any idea?
Thanks for any help.
-afa
Good Afternoon All,
The recent threads about images got me to finally experiment with storing
into and retrieving/displaying images from a database.
Uploading and retrieval is fine, I'm just a bit uncertain about creating the
dynamic display part.
// getting the data out of the db
$imageCountinDB
On Nov 28, 2007 3:28 PM, adam_99 <[EMAIL PROTECTED]> wrote:
> [snip]
> On the server? http://www.php.net/exec
> [/snip]
> I don't know how to use these functions in PHP can you explaine it?
> And I don't need outpu from the function.
> Thanks you!
>
>
> --
> PHP General Mailing List (http://www.php
Ronald Wiplinger wrote:
Jay Blanchard wrote:
[snip]
I want to create flash animations via a web page. Is it possible? What
do I need. I do not want to use Windows
[/snip]
STFW http://www.google.com/search?hl=en&q=create+flash+using+PHP
Excellent link (and bet I tried that one before
On Nov 28, 2007, at 3:19 PM, Brady Mitchell wrote:
On Nov 28, 2007 12:08 PM, Jason Pruim <[EMAIL PROTECTED]> wrote:
if ($res) {
// now see if user's id exists in database
if (mysql_num_rows($res,0) {
You need another ) on that last line:
if (mysql_num_rows($res,0)) {
You might want to c
[snip]
On the server? http://www.php.net/exec
[/snip]
I don't know how to use these functions in PHP can you explaine it?
And I don't need outpu from the function.
Thanks you!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Nov 28, 2007 3:19 PM, Brady Mitchell <[EMAIL PROTECTED]> wrote:
> On Nov 28, 2007 12:08 PM, Jason Pruim <[EMAIL PROTECTED]> wrote:
> > if ($res) {
> > // now see if user's id exists in database
> > if (mysql_num_rows($res,0) {
> You need another ) on that last line:
>
> if (mysql_num_rows(
On Nov 28, 2007 3:08 PM, Jason Pruim <[EMAIL PROTECTED]> wrote:
> I have some code which I'll paste at the end of the e-mail that is
> throwing an error and I can't seem to find where the error is... Here
> is the error: "[Wed Nov 28 15:03:19 2007] [error] PHP Parse error:
> syntax error, unexpecte
On Nov 28, 2007 12:08 PM, Jason Pruim <[EMAIL PROTECTED]> wrote:
> if ($res) {
> // now see if user's id exists in database
> if (mysql_num_rows($res,0) {
You need another ) on that last line:
if (mysql_num_rows($res,0)) {
You might want to consider getting an editor/ide that will higlight
I have some code which I'll paste at the end of the e-mail that is
throwing an error and I can't seem to find where the error is... Here
is the error: "[Wed Nov 28 15:03:19 2007] [error] PHP Parse error:
syntax error, unexpected '{' in /Volumes/RAIDer/webserver/Documents/
OLDB/customer/test
Jay Blanchard wrote:
> This has been the expected behavior (adding [SOLVED]) for a long time
> though it does not occur as often as it should. It has been in the
> NEWBIE GUIDE for a long time and has been a de-facto standard on IT or
> computer related mailing lists like this for years.
I have b
I know that the same is possible using curl, but with url_fopen on it's
just way easier.
We also allready use the suhosin patch & extension, but there is no
directive to limit fopen, you can just limit include directives.
We also have a limited number of requests, but that's not the point. The
[snip]
Jay, just out of curiosity - you also chose to start a new thread,
rather than reply to the old one - why is that? If anything, that is
the core issue we should be addressing.
[/snip]
It is my e-mail client.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:/
Jay Blanchard wrote:
> [snip]
> I have absolutely no objection to using it, but there's nothing
> de-facto standard about it.
> [/snip]
>
> OK
>
Jay, just out of curiosity - you also chose to start a new thread,
rather than reply to the old one - why is that? If anything, that is
the core issu
On Nov 28, 2007, at 12:52 PM, Stut wrote:
Jason Pruim wrote:
The search results arn't stored in a session, just the search
variable (IE: What they searched for) It was the only way I could
get it to export the search results to my excel file... It may be
because I have everything in sep
[snip]
I'm trying a lot to find how I can run the cmd (command line of windows)
and
send to the cmd commands?
[/snip]
On the server? http://www.php.net/exec
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I am using Curl extension for my project.
Regulary I am fetching some pages from web using Curl.
Now I must create ban system for some IPs.
Is there any way to do that with Curl ?
--
Best Regards,
Gevorg Harutyunyan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hello!
I'm trying a lot to find how I can run the cmd (command line of windows) and
send to the cmd commands?
Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Nov 28, 2007, at 12:07 PM, Stut wrote:
Jason Pruim wrote:
On Nov 27, 2007, at 6:01 PM, Stut wrote:
Jason Pruim wrote:
Just for my own curiosity, why do you think sessions are evil? I
haven't found a better way to store my variables between
different pages... Other then always posting t
[snip]
I have absolutely no objection to using it, but there's nothing de-facto
standard about it.
[/snip]
OK
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jason Pruim wrote:
On Nov 28, 2007, at 12:07 PM, Stut wrote:
Jason Pruim wrote:
One of the things I have in a session variable, is a search function
through the database, and then an export to excel option. Would I be
better to store that in a cookie rather then a session variable?
Not sur
[EMAIL PROTECTED] wrote:
> Wouldn't this be solved if the email is simply an answer to the thread
> instead of a new, separate email?
Yes it would. Any other suggestion (to fix the same) will most likely
fail when the user cannot even work out how to reply properly. IMHO.
/Per Jessen, Züric
Jason Pruim wrote:
On Nov 27, 2007, at 6:01 PM, Stut wrote:
Jason Pruim wrote:
Just for my own curiosity, why do you think sessions are evil? I
haven't found a better way to store my variables between different
pages... Other then always posting them in either $_POST or $_GET
each time... B
> From: Daniel Brown <[EMAIL PROTECTED]>
> Date: Wed, 28 Nov 2007 11:37:10 -0500
> To: <[EMAIL PROTECTED]>
> Cc:
> Subject: Re: [PHP] Re: PHP RFC # 0001 --- List Etiquette
>
>
> Further, I think Jason Pruim's suggestion of adding to the welcome
> email opens up an interesting point. Can th
On Nov 28, 2007 11:13 AM, <[EMAIL PROTECTED]> wrote:
> Wouldn't this be solved if the email is simply an answer to the thread
> instead of a new, separate email? Within the thread about nested files
> (http://www.nabble.com/Nested-include-require-not-working-in-5.2-tf4882937.html)
> there was also
On Nov 28, 2007 11:16 AM, Jay Blanchard <[EMAIL PROTECTED]> wrote:
> [snip]
> However, doing this defeats the purpose of a mailing list archive,
> and prompts unnecessary repetition of help requests for an issue that
> may have been "discussed to death" just five days prior. Again, the
> [SOLV
Wouldn't this be solved if the email is simply an answer to the thread
instead of a new, separate email? Within the thread about nested files
(http://www.nabble.com/Nested-include-require-not-working-in-5.2-tf4882937.html)
there was also an email with a changed subject ("(SOLVED)" was added), bu
[snip]
However, doing this defeats the purpose of a mailing list archive,
and prompts unnecessary repetition of help requests for an issue that
may have been "discussed to death" just five days prior. Again, the
[SOLVED] tag is great on a forum, where you can quickly scan for that
topic that y
On Nov 28, 2007 10:56 AM, Jay Blanchard <[EMAIL PROTECTED]> wrote:
> [snip]
> So the summary of my proposal is as follows:
>
> 1.) An issue has been identified with the list whereby
> improper archival will likely lead to repeat questions and unnecessary
> traffic to the list.
>
On Nov 27, 2007, at 6:01 PM, Stut wrote:
Jason Pruim wrote:
Just for my own curiosity, why do you think sessions are evil? I
haven't found a better way to store my variables between different
pages... Other then always posting them in either $_POST or $_GET
each time... But that can add u
On Nov 28, 2007, at 10:56 AM, Nathan Nobbe wrote:
On Nov 28, 2007 10:48 AM, Daniel Brown <[EMAIL PROTECTED]> wrote:
Good morning (/afternoon/evening) all;
This is more or less an RFC-type email, hence the subject line. I
would like to see your comments on this case, and maybe we can for
On Nov 28, 2007 10:56 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote:
>
> On Nov 28, 2007 10:48 AM, Daniel Brown <[EMAIL PROTECTED]> wrote:
>
>
> >Good morning (/afternoon/evening) all;
> >
> >This is more or less an RFC-type email, hence the subject line. I
> > would like to see your comments
On Nov 28, 2007 10:48 AM, Daniel Brown <[EMAIL PROTECTED]> wrote:
>Good morning (/afternoon/evening) all;
>
>This is more or less an RFC-type email, hence the subject line. I
> would like to see your comments on this case, and maybe we can forge
> some sort of agreement or unofficial trea
[snip]
So the summary of my proposal is as follows:
1.) An issue has been identified with the list whereby
improper archival will likely lead to repeat questions and unnecessary
traffic to the list.
2.) I propose that we discontinue the act of subject
modification to indicate a
Good morning (/afternoon/evening) all;
This is more or less an RFC-type email, hence the subject line. I
would like to see your comments on this case, and maybe we can forge
some sort of agreement or unofficial treaty or something.
Oftentimes we see a user post a question to the list
Hello!
I have a php application (self-written) that has to compute a huge
amount of data (several GB). I am using PHP as a module of apache.
The problem is that the apache process seems to use at most 2GB of
memory. My two 64-Bit Debian servers have 4GB and 8GB of RAM and about
80GB Swap but only
Thanks Jochem and Daneil. I got it.
Jean-Michel Philippon-Nadeau wrote:
> Dear Tedd, Dear List,
>
> tedd wrote:
>> As for being "hung-up" -- again, I'm clueless. I mistakenly thought
>> that anything obtained from the browser was subject to suspicion as is
>> any outside data. But apparently you can "trust" (I realize within
>> cert
On Wednesday 21 November 2007 03:14:43 Ronald Wiplinger wrote:
> I have an application, where I use pictures. The size of the picture is
> about 90kB and to speed up the preview, I made a thumbnail of each
> picture which is about 2.5 to 5kB.
> I use now a directory structure of ../$a/$b/$c/
I r
tedd wrote:
> At 3:01 PM +0100 11/28/07, Jochem Maas wrote:
...
> Jochem:
>
> This just hasn't been my week -- everyone (long story) thinks I'm being
> sarcastic when I'm not.
ouch!
>
> The "Sorry, my bad" means "I apologize, my mistake." How can that be
> taken as sarcasm?
guess it's down t
Dear Tedd, Dear List,
tedd wrote:
As for being "hung-up" -- again, I'm clueless. I mistakenly thought that
anything obtained from the browser was subject to suspicion as is any
outside data. But apparently you can "trust" (I realize within certain
limits) some things provided by the browser --
on 11/27/07 3:49 PM, Wolf at [EMAIL PROTECTED] wrote:
>
> Mike Yrabedra <[EMAIL PROTECTED]> wrote:
>> on 11/27/07 1:53 PM, Wolf at [EMAIL PROTECTED] wrote:
>>
>>>
>>> Mike Yrabedra <[EMAIL PROTECTED]> wrote:
on 11/27/07 1:43 PM, Wolf at [EMAIL PROTECTED] wrote:
>
>
Wolf wrote:
> Always make sure you reply to the list...
>
> And yes, you can export as an ical format, just look at an ical file and
> format your output to it. It's just like doing the CSV/CVS/TXT or any
> other file, you just have to put it in the right format with the right
> extension when ex
Jeff Benetti wrote:
> Am I correct that if two people are logged on using two different languages
> that the session var will keep track of the different users (by IP I assume)
> and the server won’t mess up?
Sessions are per-user and are not global (you'd need to use something
like memcache or si
Jeff Benetti wrote:
...
> Am I correct that if two people are logged on using two different languages
> that the session var will keep track of the different users (by IP I assume)
> and the server won’t mess up?
yes, the contents of $_SESSION are stored per user. this is tracked by way of a
ses
At 3:01 PM +0100 11/28/07, Jochem Maas wrote:
tedd wrote:
> So, sniffing the browser to determine language isn't the same as browser
sniffing -- OK.
there is no sniffing of the browser - merely a case of parsing the contents of
the Accept-Language header if the browser sent it along with the
AmirBehzad Eslami wrote:
> Hi list,
>
> Below statement is borrowed from PHP License here[1]:
>
> The name "PHP" must not be used to endorse or promote products
> derived from this software without prior written permission. For
> written permission, please contact [EMAIL PROTECTED]
tedd wrote:
> At 12:56 AM +0100 11/28/07, Jochem Maas wrote:
>> Colin Guthrie wrote:
>>> tedd wrote:
>>
>> ...
>>
>> >
>> > Sorry Tedd, but I'm not sure where the browser sniffing stuff came in.
>>> IE and FF both offer a UI to input the user's preferred language, it's
>>> an HTTP standard thi
On Nov 28, 2007 9:39 AM, AmirBehzad Eslami <[EMAIL PROTECTED]> wrote:
> Hi list,
>
> Below statement is borrowed from PHP License here[1]:
>
> The name "PHP" must not be used to endorse or promote products
> derived from this software without prior written permission. For
> written p
Wow! I love this group, ask and you shall receive. Thanks everyone for the
comments and suggestions.
The following snippet from Andrés Robinet would actually suit my current
project..
define('DEFAULT_LANG_ID', 'en');
function getLanguageId() {
// Allow for language id override in $
Hi list,
Below statement is borrowed from PHP License here[1]:
The name "PHP" must not be used to endorse or promote products
derived from this software without prior written permission. For
written permission, please contact [EMAIL PROTECTED]
Does this mean that saying this webs
tedd wrote:
> At 12:56 AM +0100 11/28/07, Jochem Maas wrote:
>> Colin Guthrie wrote:
>>> tedd wrote:
>>
>> ...
>>
>> >
>> > Sorry Tedd, but I'm not sure where the browser sniffing stuff came in.
>>> IE and FF both offer a UI to input the user's preferred language, it's
>>> an HTTP standard thi
Always make sure you reply to the list...
And yes, you can export as an ical format, just look at an ical file and
format your output to it. It's just like doing the CSV/CVS/TXT or any
other file, you just have to put it in the right format with the right
extension when exporting.
Wolf
Mohamed
At 12:56 AM +0100 11/28/07, Jochem Maas wrote:
Colin Guthrie wrote:
tedd wrote:
...
>
> Sorry Tedd, but I'm not sure where the browser sniffing stuff came in.
IE and FF both offer a UI to input the user's preferred language, it's
an HTTP standard thing and nothign to do with user agents
If interested! Pls contact me off list.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
what is the thought behind php not providing access to original post
data? this removes any chance of analyzing corrupt upload data, which
is often the case with mobile browsers. can future versions of php
please include a way of viewing raw server requests in full?
On 26/11/2007, [EMAIL PROTECTED
hello
under what EXACT circumstances does UPLOAD_ERR_PARTIAL and
UPLOAD_ERR_NO_FILE occur?
...NO_FILE, does it happen ONLY if the user submits a form without
choose a file to upload, or can this one also cover corrupt file data
that php could not parse?
...PARTIAL, does it happen if the user pre
Jason Pruim wrote:
Set the main page, so that when you login, it accesses a master
database, which has the username, password, and database name stored in
it. Write the database name to a session variable, which I could then
use in my mysql connect file for the database...
This sounds complet
Ronald,
Add 'example' to the end of the search query.
George
> -Original Message-
> From: Ronald Wiplinger [mailto:[EMAIL PROTECTED]
> Sent: 28 November 2007 8:07 am
> To: Jay Blanchard
> Cc: PHP General list
> Subject: Re: [PHP] Can I create flash via php?
>
>
> Jay Blanchard wrote:
>
Did you look for files named config.php? I would try to find out which file
is loaded instead of the wanted one. Maybe you could use
fopen('config.php','r',TRUE); and check the contents of that file to get an
idea where it comes from? If it happens only with a file of this name, I
would assume
Jay Blanchard wrote:
> [snip]
> I want to create flash animations via a web page. Is it possible? What
> do I need. I do not want to use Windows
> [/snip]
>
> STFW http://www.google.com/search?hl=en&q=create+flash+using+PHP
>
>
>
>
Excellent link (and bet I tried that one before!!!), c
83 matches
Mail list logo