s only because there aren't
> any SI prefixes higher than Yotta (10^24).
>
Yeah, that Super Turbo Lobster Fighter Alpha EX2 Special is freakin' huge.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Does nullmailer have a sendmail wrapper? mail() in unix/linux looks for
the sendmail binary.
mail() on windows uses the settings in php.ini.
--
--Matthew Sims
--<http://killermookie.org>
>
>
> Ok, so I came across nullmailer, which seems to do exactly what I want -
>
t','second','third');
echo $new_array[1]; <--- Will echo first
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
89 8777 Fax: +61 8 9389 8444
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Isn't there a --enable-cli option when compiling PHP for command line? If
so, was that included as part of the install?
I saw thi
t;
> It's not finding them by itself..so you my need to be a bit more
> specific.
>
> ..you have mysql libs installed, right?
>
> -Robby
I think just doing --with-mysql=/path/to/mysql is all you need to do. Once
PHP sees the MySQL base directory it knows where the headers and libs a
array to query your DB?
$result = mysql_query("select * from gen_table
where GO like ''.$_GET["go"].''
and ym like ''.$_GET["dt"].''
and Tit like ''.$_GET["ti".''
and Aut like ''.$_GE
re probably correct. There's something not right with your
query string.
A good test to try is to run the query from the mysql prompt and
substitute the vars with actual values and see if it returns correctly.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
is CSI and won't insert data
into your database. You need an SSI like PHP do to that.
The PUSH thing you're referring to? Are you talking about the PSH flag in
TCP? PUSH is a transport-layer protocal. HTTP only has GET and POST (as
well as OPTION,HEAD,PUT,DELETE,TRACE and CONNECT) which are
application-layered.
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
how the browser will handle
> the filedownload. You're at the mercy of the intellegence of the
> browser :/
>
Read as: IE is stupid.
;)
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
evaluates whether $n
has been typed as a string or as an integer, not whether the value of $n
is an integer.
Can anyone comment on this?
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
assword");
>
> I've tried:
>
> print_r("Host: \t$hostUser: $userPassword: $password");
>
> and god knows what else with the brackets etc.
>
> Any ideas...?
>
I think your understanding of print_r is a little fuzzy.
Try just using print.
--Matthew Sims
--<http:
Fraggle, SYN, et all).
>
> Best regards,
>
> Richard Davey
This should help.
http://www.unixcities.com/dos-attack/index1.html
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ing on their user level. Passing the $_SESSION variables
around was just plain easier than setting up cookies. I also felt I had a
greater control over the whole process from login to logout.
Instead of passing the session_id through the URL ($_GET) just assign it
to $_SESSION and pass that around. Then it'll stay transparent to the
user.
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
What if you used this?
session_start();
$_SESSION['sid']=session_id($HTTP_GET_VARS['sid']);
Now as long as each of your pages has session_start() at the top, you can
use $_SESSION['sid'] whereever.
To the mailing list: Am I doing this correctly?
--Matthew Sims
-
> "Matthew Sims" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>>
>> >> Instead of passing the session_id through the URL ($_GET) just assign
> it
>> >> to $_SESSION and pass that around. Then it'll stay transparent to the
n another page:
if ($_SESSION['sid']==session_id()) {
continue browsing;
} else {
redirect to front page;
}
or however you want it to be. The above isn't tested. Not sure if
session_id needs to be assigned to a variable.
Is this what you're referring to or am I just misreading wha
point. If you don't run your own server, you might
want to see other options about running your site.
If you do run your own server, maybe store the passwd as an MD5 hash on
the web page that sends it to a script outside your web root. If the MD5
hashes match, return the passwd back to the web
turned on then the
session id is different with each page. Bleh.
Okay...so...ignore all that I said. :)
So I guess $_GET is the only option...that sucks.
Sorry dude.
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the
> server the way IMAP does. POP3 delivers the mail to
> the client and then drops it.
>
> --John
Just like John says, webmail should use IMAP. Mail clients should use POP3.
If you want a webmail, you should be using IMAP.
I've been using SquirrelMail for over a year and it
> * Thus wrote Chris:
>> Hi All.
>>
>> What would cause all the tables in all the databases to be deleted all
>> at
>> once?
>
> a magic spell?
>
>
> Curt
The Keibler Elves
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing
tions of a specific user, you'll need to look
> elsewhere.
>
> -
> michal migurski- contact info and pgp key:
> sf/cahttp://mike.teczno.com/contact.html
>
Though not PHP, I've been using Awstats and love it.
http://awstats.
HTML,
> use htmlentities(). etc.
>
On top of that, the fact that you can turn it off creates different PHP
environments between different servers. So now programmers are forced to
check that magic_quotes_gpc is on each time and take appropriate action
when it's off.
I think a good progra
> Can someone help me ?
>
> Thanks in advance!
$_SERVER["REMOTE_ADDR"]
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
index.php");
exit;
}
}
So if the login fails, they'll still be sitting at the login page. The
above code needs to be set before any HTML code, else the redirect won't
work.
http://us4.php.net/manual/en/function.header.php
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ed to use client side instructions, aka
javascript. You're probably not going to get it to work so well using PHP
which is server side instructions.
Part of getting the slideshow to work is making the browser switch to the
next image and well, PHP doesn't really make the browser do anything.
f mysql do allow multiple queries.
I've heard the same thing, regarding MySQL 4. But someone else mentioned
that this only applies to the command line of MySQL only. True? False?
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
n the form
> field, even though the database holds a value in that field.
>
> What am I doing wrong...?
>
> --
> -
> Michael Mason
Do you need to use a while loop? If you're expecting only 1 query result
from the database, skip the while loo
es not contain any quotes, the class works
perfectly. But whenever quotes are passed through, I get the following
error:
Fatal error: Uncaught exception 'Exception' in
/www/htdocs/classes/db_class.php:53 Stack trace: #0
/www/htdocs/letter.php(51): DB_Mysql->execute('INSERT into aeM...
> Hi,
>
> Doesn't sound like an OO issue, sounds like you're kiling the query
> with the '. You should go thru and maybe do an str_replace( "'", "\'",
> $_POST['test'] ) on all your post variables.
>
> -Dan J
t;].'\'';
>$dbh->execute($query);
> }
> catch (Exception $e) {
>// This just prints, but you could do other things like ignoring
>// the error or trying to reconnect, etc.
>echo $e->getMessage();
>print_r( $e->getTrace() );
> }
>
Nice, that makes it easier on the eyes to read.
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
mysql_escape_string","$_POST");
And it all worked on nicely.
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
read the code.
Also, using the PHP tags can mean fewer characters in your webpage making
it slightly smaller.
But...that's just my preference. :)
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> So is there a date set yet or is it just to wait?
>
> How is the progrese one the respons to RC3? Is it many bugs left?
>
> Dear Reagrds
I've been using RC3 for the past month and so far I haven't run into any
problems.
I want to get used to the new OO setup
but the problem is, what if $var was converted to $var = "0" instead
> of $var = 0 somewhere throughout the code that I didn't know about?
>
> Is there a way to be sure what's going on here?
>
> --
> -Josh
What about the isset function? Or any of the following:
h
PHP5 released today! (for those that don't know yet) ;)
http://www.php.net/
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Umm this is very weird - I've checked the database and the string is
> only stored upto the first carriage return everything else appears to
> be missing, BUT, when I display it in the webpage (using
> stripslashes()) the entire original message is intact - but on a
> single line!!! :S
Magic
nyone (regardless of cookies being allowed or not) to be able to use my
> service, but I would still like it to be secure.
>
If security is in mind, adding SSL to your website is a great start.
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
/usr/local/apache/bin/apxs
> loading cache ./config.cache
> checking host system type... sparc-sun-solaris2.7
>
>
> Any assistance would be deeply appreciated
>
> -- Mark Perkoski
Do you have GCC installed? That usually the next step. If you type gcc at
the command prompt you
Gremlins Associates -> www.gremlins.biz
Apache2 had been well known to not work completely with PHP. It's not
PHP's fault. Though some people have managed to get it right. YMMV.
You'll probably have an easier time using Apache1.3.
--Matthew Sims
--<http://killermookie.org>
;
If by no comma or decimal point you mean rounding to a whole integer,
check out the round() function.
http://us3.php.net/manual/en/function.round.php
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
>
> ps.. to you guys who said that the doesn't have a value=''.. it
> does...
Please, in this documentation from the W3C's site, show me where there's a
value attribute for textarea.
http://www.w3.org/TR/1998/REC-html40-19980424/interact/forms.h
>
> Curt,
>
> I checked the log file as you recommended but it doesn't reveal any
> meaningful
> clues. Its funny, I've installed
> tons of packages and never had a configuration crap out like this.
>
> ws3 {root} 28: more config.log
> This file contains any messages produced by compilers while
> r
>> Can someone advise me of a very good PHP-5 book.
>
> Hands down the best:
>
> Advanced PHP Programming
> by George Schlossnagle
>
> Regards,
> Philip
I also recommend this book. It covers the new OO model of PHP5 very well.
--Matthew Sims
--<http://killermoo
ql-result.php
For example:
$query = "SELECT * from tablename where index='var'";
$result = mysql_result($query);
while ($row = mysql_fetch_array($result)) {
//do stuff with $row
}
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www
aybe pass along the session id, if needed
> echo 'page 2';
> ?>
>
>
Try this:
blah blah blah
session_start() needs to go before any HTML is outputted (is that a word?).
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
;
> Thanks in advance,
>
> Arnout
Instead of passing "Incorrect Password" why not simply pass something
easier like the number 1 or the word no? Then check if $error=="1" (or
"no") and simply go from there?
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Matthew Sims wrote:
>>>I'm trying to use html_decode with the echo function but failed so far.
>>>
>>>
>>>
>>>What would be the correct syntax?
>>>
>>>TIA
>>
>>
>> You should read up on how to use mysql_res
> Astrum Et Securis
>
> I used the Postfix Enabler software which sets up the mail server.
> How do I test the mail server? How can I determine if it actually sends
> mail?
>
> RSJ
>
>
> On 7/22/04 2:45 PM, "Matthew Sims" <[EMAIL PROTECTED]> wrote
's an MX record for your machine.
nslookup -type=mx
>> Diagnostic-Code: X-Postfix; host nymx-1.nyroc.rr.com[24.92.226.31]
Heh, I'm orginally from Rochester. :)
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
form fields are usually only sent through a submit request.
Maybe changing you Javascript refresh to a submit that redirects back to
the same page might help?
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e of performing a submit...but if there's
one thing I really suck at is javascript. :)
Google is your friend.
http://groups.google.com/groups?q=javascript+submit&ie=UTF-8&hl=en&btnG=Google+Search
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailin
> Hi,
> Is there a way to get with PHP script ( maybe with some module) serial
> number of the hard disk?
>
> Thanks in advance!
If there's a command on your operating system to get this information,
then use PHP's exec function.
$serialNum = exec('command to get
ogle Groups to see if there's a DOS command for this.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> I would have thought perl and php programmer would want to get together
> and trash asp or something.
PHP coders trash ASP.
Perl coders trash everyone.
:)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You can't really get much better than php.net, the best online
documentation for PHP.
http://us2.php.net/tut.php
--
--Matthew Sims
--<http://killermookie.org>
> Where can I find detailed PHP5 tutorials, but written for the
> beginner...they must be online tutorials as I
I just signed up with a new hosting site. So first thing I did was check
what phpinfo() had to say.
I see that register_globals is turned on. Now I always use the $_GET and
$_POST vars but will this still affect me?
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailin
sing, and should keep using, the $_GET and $_POST
> arrays.
>
>
And this won't pose as a security risk to me?
Just for kicks I tried using the .htaccess to turn it off locally but the
hosting site doesn't have the AllowOverride option set for me.
--
--Matthew Sims
--<http:
.something.com/bs3/index1.htm
> )
>
> Thanks,
> Ryan
Not sure what you're thinking of explode means but the above is correct.
You've defined http:// as the boundry so anything before and after the
boundry is placed into the final2 array. http:// appears twice in your
string.
-
r. In
fact, PHP can't do anything with the browser.
I should just copy and save the above and paste it into everyone one of
these types of questions. ;)
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
>
> Im not only using this for fopen. So does php work relative to the
> script being called or not?
>
> Much thanks...
> --
> Nick W
When in doubt, use absolute.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
n=507846
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> On Thu, 2004-10-28 at 15:03 -0700, Matthew Sims wrote:
>> About a week ago someone was asking where are beginner can go to learn
>> PHP5? This book was just advertised on Slashdot.
>>
>> Learning PHP 5
>> Only $20 on Amazon.com
>> http://www.amazon.com
ing security in my scripts...something I never thought
to brainstorm first.
If you're looking specifically for PHP5 object-oriented programming,
that's something that needs to be learned outside of any progrmaming
language. It's what I'm going through now but PHP is my crutch to
>
Hey! Look what I found in the archives!
http://marc.theaimsgroup.com/?l=php-general&m=109891764507039&w=2
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ing.
Staring at my sandals...that's a paddling. Paddling the school
canoe...ooh, you better believe that's a paddling.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Thanks for the sarcasm, it definitely helps.
>
> Why is it that when people ask a question there is always someone that has
> a smartass answer?
>
It keeps us on our toes. Someone's gotta do it.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailin
examples will be yours to behold.
>
> :7)
>
Can you pick one for me?
;)
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ht now. Thanks. :-)
One thing I'd like to clear up is that I am not now, nor have I ever been
self-medicating with Cipro or any other antibiotics. I've always taken
them under the advice of and with a prescription from a qualified medical
doctor.
Again, I'm feeling better and hope
are taking in. If you're already comfortable writing
procedual programs with PHP than PHP can be a good stepping stone
introduction into the land of OO.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
gt; thanks in advance!
>
> d
>
I'm sure I'll be one of the many who says this:
!isset
The ! means not. You can use it with most of the functions like !empty
(not empty).
So you can use it like so:
if (!isset($_GET["var"])) {
do stuff
}
--
--Matthew Sims
--<
l then that's just too bad. It's proprietary, belongs only to Microsoft
and no one has access to the source code to continue its work.
Seeing the major breakthrough PHP has made in the past few years, does
your boss really think PHP is going away?
I see that Perl is still around.
--
--Matthew
xtarea's do as such:
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
7;$_POST[Attend_4_9]','$_POST[Attend_5_9]','$_POST[Attend_6_9]','$_POST[Attend_7_9]','$_POST[Attend_8_9]','$_POST[Attend_9_9]','$_POST[Attend_10_9]','$_POST[Attend_1_10]','$_POST[Attend_2_10]','$_POST[Attend
y outside string-quotes
echo "A banana is $fruits[banana].";
// Works
echo "A banana is " . $fruits['banana'] . ".";
Consistency can go a long way. :)
You are right about the complex syntax.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ive the mail? Can you send mail to the server itself by
replying back to the email?
If your answer is no to at least the first part, then you need to setup a
mail server.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
EMAIL PROTECTED]
>>
>> Thanks.
>>
>> Jonathan
>
> jpgraph is excellent. I haven't checked out the new version yet for
> PHP5, but for PHP4 it is by far the best graphing utility I have seen.
>
jpgraph has recently released support for PHP5 and I'm using
: " $language['program_name'] \n" .
Try:
echo "".$language['program_name']."\n";
You need to concatenate your array.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
k for it in /etc, it is not there.
>
> How can I find it???
>
> Thanks,
> Don
Quick and dirty way:
$ sudo find / -name php.ini
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
owing how to find the answer without anyones help.
Sometimes it takes a mean push to get someone on the right track. You
might not like it but you can't deny the results it can bring.
--
--Matthew Sims
--<http://killermookie.org>
> some people will never get it.
>
--
PHP Gene
remlins Associates -> www.gremlins.biz
You know, I bet that man is getting sick of eating fish all the time.
"Teach a man to shoot a cow..."
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
y $_POST['name'] and
$_POST['address'].
Whatever page action calls, you can have php check that the submit button
was executed like:
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
POST is a superglobal var. It's
always available to all pages.
Is php even working for you?
If you just create a test.php with simply:
does anything show up in the web browser?
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
'var'] which I also ever tried...
> But at this time, I'm vary hard to found out what happen !
>
> Edward.
That doesn't even answer his questions.
First, HTML forms:
http://www.w3.org/TR/REC-html40/interact/forms.html
particually
http://www.w3.org/TR/REC-html40/
do with PHP. Use a HTML/JavaScript mailing list,
>> and/or read some howto's for HTML/JavaScript.
>
> But I want to use php instead of HTML/JavaScript...
> So, is there any sample for reference ?
>
PHP and Javascript are apples and oranges. They are nothing alike and are
completely different in everyway. If you want something done with the
browser, use Javascript.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Merry Christmas and happy new year for all that is
> part of php community, god bless us. Peace!
>
How is this PHP? Please consult the Christmas mailing list.
JUST KIDDING! Happy holidays. :)
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://w
> It should be noted that the MS KnowledgeBase article about trying to do a
> dynamic include (as of when I last used ASP, years ago) made absolutely NO
> mention of using:
>
>
101 - 186 of 186 matches
Mail list logo