Hello,
on 04/24/2009 10:17 PM Ron Piggott said the following:
> I am on a shared web site hosting company. They are asking me to edit
> my PHP script to specify the SMTP using $aditional_parameters on the URL
> below. If this can't be achieved then I need to confirm this.
No, AFAIK you cannot c
Hello,
on 04/24/2009 09:34 AM MEM said the following:
> I’m trying to understand the advantages behind opting by using a
> Self-Process PHP Form, instead of having a form and then point the action of
> the form to another .php page.
>
> Can anyone point me some resources about this. Why using o
ini_set("SMTP", "mail.host.com");
ini_set("smtp_port", 25);
http://ca2.php.net/manual/en/mail.configuration.php
http://ca2.php.net/manual/en/function.ini-set.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I am needing to put this into one specific PHP script. What would the
ini_set look like? Ron
On Sat, 2009-04-25 at 06:43 +0530, kranthi wrote:
> if u cant change the configuration settings of php.ini
> use http://pear.php.net/package/Mail
> alternatively u can also hav ini_set on top of every
I am on a shared web site hosting company. They are asking me to edit
my PHP script to specify the SMTP using $aditional_parameters on the URL
below. If this can't be achieved then I need to confirm this.
Ron
On Fri, 2009-04-24 at 20:04 -0500, Adam Williams wrote:
>
> Ron Piggott wrote:
> >
if u cant change the configuration settings of php.ini
use http://pear.php.net/package/Mail
alternatively u can also hav ini_set on top of every page.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ron Piggott wrote:
How do I specify an actual SMTP server? (Like mail.host.com)
This is what I have so far:
mail($email, $subject, $message, $headers);
I was to http://ca2.php.net/manual/en/function.mail.php and saw this
syntax:
mail ( string $to , string $subject , string $message [, stri
Andrew Hucks wrote:
I've been coding PHP for about a year, and I'm running out of things to code
that force me to learn new things. If you have any suggestions, I'd greatly
appreciate it.
I'm currently writing an in-house PHP helpdesk ticket system. I looked
at all the open source ones i
How do I specify an actual SMTP server? (Like mail.host.com)
This is what I have so far:
mail($email, $subject, $message, $headers);
I was to http://ca2.php.net/manual/en/function.mail.php and saw this
syntax:
mail ( string $to , string $subject , string $message [, string
$additional_headers
Is the $Count++..
-Mensagem original-
De: PJ [mailto:af.gour...@videotron.ca]
Enviada em: sexta-feira, 24 de abril de 2009 21:14
Para: php-general@lists.php.net
Assunto: [PHP] inexplicable behaviour
Frankly, I don't know what to look for or why something so weird would
happen:
I have pag
On Apr 24, 2009, at 19:00, Andrew Hucks wrote:
I've been coding PHP for about a year, and I'm running out of things
to code
that force me to learn new things. If you have any suggestions, I'd
greatly
appreciate it.
What have you coded? How about a chat app? How about a simple db based
Frankly, I don't know what to look for or why something so weird would
happen:
I have pagination set up and the number for pages "next" has a link but
the "next" does not. I have experimented with all sorts of
configurations of the code but the only thing that works (and this is
totally "off the wa
how about:
a replacement for mailman in php
a trac/redmine written in php
a better bugzilla replacement in php
On Fri, Apr 24, 2009 at 4:25 PM, Nathan Rixham wrote:
> Andrew Hucks wrote:
>>
>> I've been coding PHP for about a year, and I'm running out of things to
>> code
>> that force me to le
Andrew Hucks wrote:
I've been coding PHP for about a year, and I'm running out of things to code
that force me to learn new things. If you have any suggestions, I'd greatly
appreciate it.
a: get paid to do it; pick up work on freelance sites and they'll give
you the ideas + you'll get paid to
I've been coding PHP for about a year, and I'm running out of things to code
that force me to learn new things. If you have any suggestions, I'd greatly
appreciate it.
On Apr 24, 2009, at 18:06, Skip Evans wrote:
Hey all,
Anyone have any experience with Expression Engine? I have a new
client that wants me to use it to build a site and I must say I am
rather underwhelmed.
But I happen to be one of those people that believe in developing
your own lig
Hey all,
Anyone have any experience with Expression Engine? I have a
new client that wants me to use it to build a site and I must
say I am rather underwhelmed.
But I happen to be one of those people that believe in
developing your own lightweight framework you know yourself
inside and out
Jan G.B. wrote:
Yes, preg_match_all returns all matches and the subpattern matches
(the "stuff" inside the brakes)
You can ommit stop it by using (?:) instead of ()..
So: preg_match_all('/(?:[a-z]+|"[a-z ]+")/i', $_POST["terms"], $termsarray)
You might want to check out the regular expression
$var = "John \"Jill\" \"Judy Smith\"";
echo $var;
$var2=explode("\"",$var);
echo '';
print_r($var2);
echo '';
$tVar=count($var2);
for($i=0;$i<$tVar;$i++){if(strlen($var2[$i])<2){unset($var2[$i]);}else{$var2
2009/4/24 Adam Williams :
>
>
> Jan G.B. wrote:
>>
>> You could try it with regular expression matching..
>> for example:
>> > preg_match_all('/([a-z]+|"[a-z ]+")/i', $searchstring, $resultarray);
>> ?>
>>
>>
>> Regards
>>
>
> Thanks. That seems to create 2 duplicate arrays, though. Can it be
2009/4/24 Bastien Koert :
>
>
> On Fri, Apr 24, 2009 at 10:03 AM, tedd wrote:
>> Whereas, your opinion doesn't matter much because you haven't contributed
>> anything I can remember
Tedd, it's not my problem that your sight is limited.
I don't believe the Netiquette states that "whatever one say
Jan G.B. wrote:
You could try it with regular expression matching..
for example:
Regards
Thanks. That seems to create 2 duplicate arrays, though. Can it be
narrowed down to just array [0]?
preg_match_all('/([a-z]+|"[a-z ]+")/i', $_POST["terms"], $termsarray);
echo $_POST["terms"]."
2009/4/24 Adam Williams :
> I have a form where users submit search terms and it explodes the terms into
> an array based upon spaces. But, how can I have explode() keep words in
> quotation marks together? For example, if someone enters on the form:
>
> John Jill "Judy Smith"
>
> and I run $term
I have a form where users submit search terms and it explodes the terms
into an array based upon spaces. But, how can I have explode() keep
words in quotation marks together? For example, if someone enters on
the form:
John Jill "Judy Smith"
and I run $termsarray = explode(" ", $_POST["term
On Fri, Apr 24, 2009 at 10:03 AM, tedd wrote:
> At 11:13 AM +0200 4/24/09, Jan G.B. wrote:
>
>> 2009/4/22 tedd :
>> > Your opinion as to IF I should say something, or not, carries little
>> weight.
>>
>>> When you've donated enough time helping others on this list, then
>>> perhaps
>>> that wi
"Nitsan Bin-Nun" a écrit dans le message de
news:d47da0100904201431r2fcb8e19ufba47f33e53d0...@mail.gmail.com...
Hi Guys,
I have created few chats in the past, but I'm trying to create a new one
which saves on HTTP requests and do not become an overkill to the server
as
more users get in.
T
At 11:13 AM +0200 4/24/09, Jan G.B. wrote:
2009/4/22 tedd :
> Your opinion as to IF I should say something, or not, carries
little weight.
When you've donated enough time helping others on this list, then perhaps
that will change.
Sorry, but that's a bad attitude in my opinion. It's like "
On Fri, Apr 24, 2009 at 7:41 PM, Jan G.B. wrote:
> 2009/4/24 Andrew Ballard :
> > On Tue, Apr 21, 2009 at 1:20 PM, Jan G.B.
> wrote:
> >> Do yourself a favour:
> >>
> >> * remopve that 1337 hax0r name - it makes you look like a dumbass
> >
> > This coming from someone whose e-mail address is ro0
Thanks to all for your replies.
I'm more elucidated about the possibilities now. I have seen here a lot of
keywords to start digging. :)
Thanks once again,
Márcio
> -Original Message-
> From: Tony Marston [mailto:t...@marston-home.demon.co.uk]
> Sent: sexta-feira, 24 de Abril de 2009 14:
2009/4/24 Andrew Ballard :
> On Tue, Apr 21, 2009 at 1:20 PM, Jan G.B. wrote:
>> Do yourself a favour:
>>
>> * remopve that 1337 hax0r name - it makes you look like a dumbass
>
> This coming from someone whose e-mail address is ro0ot.w...@?
> Sounds a little ironic. ;-)
Got me. ;)
But try to
At 5:30 PM -0500 4/23/09, Lists wrote:
Tedd, nice looking contact demo thingy.. but PJ has a point. ;-) It
would make the app perhaps more intuitive if one could just type
text in any of the 3 fields and then spit out results that match all
of the comparisons that are not blank by clicking one
On Tue, Apr 21, 2009 at 1:20 PM, Jan G.B. wrote:
> Do yourself a favour:
>
> * remopve that 1337 hax0r name - it makes you look like a dumbass
This coming from someone whose e-mail address is ro0ot.w...@?
Sounds a little ironic. ;-)
Andrew
--
PHP General Mailing List (http://www.php.net/)
What you are describing is known as a "self executing" script where the
script posts back to itself. In other words it has two passes - the first
uses the GET method to build the screen for the user, which may or may not
be empty, while the second uses the POST method to send the user's changes
On Wed, Apr 22, 2009 at 10:25 AM, Jan G.B. wrote:
> 2009/4/21 Per Jessen :
>> Jan G.B. wrote:
>>
>>> A web application that uses an external db server would be quite ...
>>> uhm... slow! Anyone did this, yet? ;)
>>
>> Certainly, and it's not slow. It depends entirely on your connection to
>> the
Having a script that is self executing - when it posts back to itself
instead of a separate script - has absolutely nothing to do with the
separation of business and presentation. It is possible for a single script
to use separate components for the presentation, business and data access
layers
Well, if you keen on separating business from presentation (which is usually
a good practice), you can always do this:
So you can call in fact the processing page, the real presentation can be in
another PHP file, as well as the processing functions. Of course, instead of
PrintForm() you can
[snip] What about the moto: "let's separate business from presentation?"[/snip]
This depends on how strictly you're following any given model like MVC. IMHO
you should use the right tool for the job.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/uns
When you have it all in one file, the first thing you do is check to see if
this request was submitted from the form. If not, you send the blank form. If
it was, you validate all of the data. When a validation fails, you add error
messages and resend the form with any fields that passed the vali
Lists wrote:
> tedd wrote:
>> At 4:58 PM -0400 4/23/09, PJ wrote:
>>>
>>> >>> tedd wrote:
>>> >>> > http://php1.net/a/edit-db-demo/
>>> >>>
>>> >H I've looked at your demo and, frankly, don't see it
>>> working.
>>> When I enter names and click on one of the search buttons, I don't get
From: Chris
>>> the ini_set (or you can set the 5th param to the mail() function) is
a
>>
>>> return-path. If the message bounces (recipient's mailbox full,
server
>>> down, whatever the reason) it gets delivered to that address. They
>> serve
>>> different purposes.
>>
>> The dirty little sec
So, on your opinion, we can call that method, on some circumstances, a good
practice?
What about the moto: "let's separate business from presentation?"
Thanks once again,
Márcio
> -Original Message-
> From: Sándor Tamás (HostWare Kft.) [mailto:sandorta...@hostware.hu]
> Sent: sexta-fei
I think the main advantage is that if something goes wrong processing the
datas, you can show the form again without redirecting again.
And if you have to change the behavior of the page, you have to change only
one file instead of two.
SanTa
- Original Message -
From: "MEM"
To: "
Im trying to understand the advantages behind opting by using a
Self-Process PHP Form, instead of having a form and then point the action of
the form to another .php page.
Can anyone point me some resources about this. Why using one instead of
another. What are the main advantages?
Regard
Hi,
Im having problems when i try to use the function scandir() in a Novell
Netware Volumen or a Windows Shared Folder
they both are mapped as a windows network drive, so i suppose i could access
them as local drive, but i can't. instead i receive this message:
Warning: scandir(R:\) [function.s
uhm, I did not read it, you are right ... well, take this code as a joke, OK?
getMessage(), "\n";
if($checkSomethingAndEventuallyContinue = true){
$line = $exception->getLine();
$php = explode(PHP_EOL, file_get_contents($exception->getFile()));
while($line--)
Understanding that some coders are diametrically opposed to all assistance
from debuggers as crutches, I offer this link for the rest of us:
http://particletree.com/features/php-quick-profiler/
Mine was pointing to the wrong folder and still has some warnings so I think
these guys might have hurri
Ok, the details of the problem obviously aren't being understood.
Let's assume that I explained it poorly and I'll try again. Take the
following code (It's complete, cut/paste to see what happens.):
running = true;
}
public function stop() {
$this->running = false;
}
public function __
2009/4/23 Bill Moran :
>
> Specifically, the __destruct() method of certain objects will be
> called if an object goes out of scope due to an exception. Since
> the __destruct() method didn't call the code that caused the
> exception, it can't catch it.
>
> I need the __destruct() method to behave
On 24-Apr-09 03:45, Chris wrote:
> I don't think mysql has any way of finding that out. If you're using an
> abstraction layer, it's easy enough in code - though rollback's are a
> little harder - should they do a complete rollback or just to a savepoint?
Thank you for taking the time to sketch th
>
>
> What would be nice is a function like get_current_exception() that
> would either return the current exception object, or return false
> if there is no exception.
>
> I guess the try catch pair works like this:
you try to run a part of script which you know it could be under errors
You te
Is there a way to determine if a mysql query returns an empty set? I am
selecting 10 results at a time with a limit statement and need to know
when i've ran out of rows. I've only got 2 rows in the database, so
when I start with row 10, it returns an empty set. I have the following
code:
/
In response to Andrea Giammarchi :
>
> http://uk2.php.net/set_exception_handler
> http://uk2.php.net/manual/en/function.set-error-handler.php
Thanks for the reply, Andrea. However, you either didn't read my
entire message, or didn't understand it. I can't use either of
those to detect an except
Jan G.B. wrote:
> 2009/4/21 Per Jessen :
>> Jan G.B. wrote:
>>
>>> A web application that uses an external db server would be quite ...
>>> uhm... slow! Anyone did this, yet? ;)
>>
>> Certainly, and it's not slow. It depends entirely on your connection
>> to the public internet.
>>
>
> As we're
2009/4/24 Andrew Williams :
> Hi All,
>
> Does anyone know of any php grahp that will enable you to show/analyse more
> than one inputs like price versus time?
>
Hi Andrew,
we're using PEAR:Image_graph here and it's good for our needs. Maybe
you should check it out.
PEAR:Image_graph http://pea
2009/4/22 Daniel Brown :
> On Wed, Apr 22, 2009 at 12:31, Jan G.B. wrote:
>> I believe that you all should just overread the huge signature.
>> You've wasted a lot bandwidth with this discussion about the signature. :-)
>> It's not interesting.
>> You could have send your pointless replies to the
2009/4/22 tedd :
> At 6:31 PM +0200 4/22/09, Jan G.B. wrote:
>>
>> I believe that you all should just overread the huge signature.
>> You've wasted a lot bandwidth with this discussion about the signature.
>> :-)
>> It's not interesting.
>> You could have send your pointless replies to the person,
Hi,
> your function could be condensed to this:
>
> function check($a)
> {
> return is_array($a) ? true : false;
> }
Or even better, this:
function check($a)
{
return is_array($a);
}
Not that I'd imagine it makes a great deal of difference.
--
Richard Heyes
HTML5 graphing: RGraph (www.r
http://pchart.sourceforge.net/documentation.php?topic=exemple8
but may be a 2-D graph will be more simpler to understand
http://teethgrinder.co.uk/open-flash-chart/gallery-bar-4.php
Kranthi.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
y specifically an excel chart ?
see http://teethgrinder.co.uk/open-flash-chart/
Kranthi.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
* I have been to see how to embed excel charts and graph to php code. does
any knows how*
willandy.co.uk
http://uk2.php.net/set_exception_handler
http://uk2.php.net/manual/en/function.set-error-handler.php
> Date: Thu, 23 Apr 2009 12:19:30 -0400
> From: wmo...@potentialtech.com
> To: php-general@lists.php.net
> Subject: [PHP] How can I detect an exception without using try/catch?
>
>
> Specifical
Hi All,
Does anyone know of any php grahp that will enable you to show/analyse more
than one inputs like price versus time?
--
Best Wishes
Andrew Williams
willandy.co.uk
62 matches
Mail list logo