riables' for different
> tabs or windows in a browser.
>
> www.scotttrade.com does it somehow, and I see no GET variables on the URL.
>
What about $_SESSION variables? You can use the $_SESSION to keep the same
identity from page to page and still require a different login
rnd = array("1"=> "bkgrnd-default.gif", "2" =>
"bkgrnd-positive.gif", "3" => "bkgrnd-negative.gif");
http://us2.php.net/manual/en/function.array.php
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
quot;1"=> "bkgrnd-default.gif", "2" =>
> "bkgrnd-positive.gif", "3" => "bkgrnd-negative.gif");
> $imgNeeded = table['field'];
> $imgName = $imgBkgrnd[$imgNeeded];
>
Yup, just like that.
You can even get
to have both. I'm using both on a server I have.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
with which user's permissions PHP scripts are executing.
>
If you chown the PHP script to the web server's userid, that should be
good enough.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
orter code block but is harder to debug later. Should I be striving for
> the shortest most compact code utilizing the fewest possible variables.
> Or,
> can I code in a style which is easier to read and debug?
>
> --
> Robb Kerr
It depends. But in this case probably not. If I had sever
} else {
> $vBkgrndImage = "Bkgrnd-Body-Correct.jpg";
> }
> }
>
> Thanx
> --
> Robb Kerr
I can't see anything wrong. What's the error you're receiving?
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
"Bkgrnd-Body-Correct.jpg";
>> }
>> }
>>
>> Thanx
>> --
>> Robb Kerr
Yes, see what the vars are, maybe something like this:
if ($vBkgrndImage == "AnswerPage") {
echo "1: $vAnswerID_RS_PageContent";
echo "2:".$row_RS_Pag
> exec("/usr/bin/gpg --homedir /home/testdir/.gnupg --armor --output e.gpg
> -e -r uid_someuser sf.txt");
>
> if I run it from the command line, it works fine...
>
I'm not sure but what if you defined an absolute path for your output
files (e.gpg and sf.txt).
>
> The object is not destroyed!? How do I destroy it without calling
> unset($b)?
>
Not sure if this is your solution but have you looked in to destructors?
Half down this page it explains:
http://us4.php.net/migration5.oop
--
--Matthew Sims
--<http://killermookie.org>
/* make 2 references but delete object, 2 variable
> * references still exits */
> $a = new foo();
> $b = &$a;
> $a = null;
> var_dump($a); /* NULL */
> var_dump($b); /* NULL */
>
> /* proof that references still exists */
> $b = new foo();
> var_dump($a); /* Object #1
ata from the DB for a textarea use this before displaying:
$_POST["textarea"] = str_replace("","\n",$_POST["textarea"]);
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
o convert it back
>> again before populating the text area.
>>
>> Suppose it just comes down to personal preference... Or is there a
>> specific
>> benefit to doing it this way?
>>
>> Regards
>>
>> Enda
>> On 27/07/2004 22:55, "Mat
erting with nl2br supposedly takes up more CPU. Doing many nl2br
conversions can run your site/program slow. In some cases, it's better to
convert before injection since disk space is more abundent than CPU
cycles.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing L
re any HTML output. At the end of the DB
injection simply add:
header("Location:your_php_page.php");
exit;
This will reload that page and all the $_POST data will be removed. THen
you can hit refresh all you want.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
mysql_fetch_row($sth);
And then work with the $result array? If your DB indexes are listed as
CompanyCode and CompanyDB, then use:
$result = mysql_fetch_array($sth);
Then you have your variable names like you want:
$result['CompanyCode'] and $result['CompanyDB']
--
--Matth
>
> [smartass mode to full power - nothing personl]
> [/smartass mode]
Is that W3C HTML 4.01 compliant?
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ofanity?
>
> Just my two cents.
Read the Fscking Manuel
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
tp server?
>
> Thanks in advance
>
> Robin
First things first...can you send mail from this server? The server needs
to have some sort of MTA installed (sendmail,Qmail,Exim,etc) before you
can use the mail() function.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP Gen
is a lot easier to setup than
receiveing mail.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Object Oriented Model.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
od.
>
Unless it's about PEAR.
;)
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
he week the first day of the month
> lands on. I can take the info pulled with date() and use several
> switch() and if statements, but that's ugly. Anyone have any
> suggestions?
>
> Thanks!
> ~ David
>
You mean like:
$firstWkDay = date("l", mktime(0,0,0
ot;-mm-dd hh:ii:ss" just prior to converting them to a unix
timestamp with strtotime(). This will ensure you get a valid GMT result
for times during daylight savings.
EXAMPLE:
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
mktime(0,0,0,$m,1,$y));
A little more simpler.
BTW, "D" or "l" pretty much do the same thing. It depends on whether you
wan Mon or Monday.
D = abbrviated name
l = full name
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
script. I am guessing, but I would do:
> "SELECT * FROM temp_users WHERE ID=$id"
>
> Thanks again.
>
> Aaron
>
More like:
"SELECT * FROM temp_users WHERE ID=\"".$_GET["id"]."\"";
Use $_GET to access variables from the url.
--
27; and $id == 159 and $Itemid ==
162) {
echo "It works! Yay me! Gimme a cookie, dammit!";
}
If you don't get that echo statement, then you should look into your if
statement.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> The latest message I got was 'Redirection limit for this URL exceeded.
> Unable to load the requested page.This may be caused by cookies that are
> blocked.'.
>
> Bing
>
Correct me if I'm wrong but I think this is an Apache error.
--
--Matthew Sims
--&
lidated the question/answer to one line
rather than having two indexes in the MySQL table. Probably a preference.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
my code or on something on the server or the
> javascript
> i didn't know what part of my code to include here
> so can anyone tell me where is the problem ?
> code is available for discuss
And how does this relate to PHP??
--
--Matthew Sims
--<http://killermookie.org>
> Matthew Sims wrote:
>
>>And how does this relate to PHP??
>>
>>
>>
> Matthew,
> you are now sure to be flamed by all those who believe off topic
> maililngs by those who do not read the newby guide should be allowed and
> encouraged.
>
>
>
&g
;
> The message size limit is controlled by your mailer. (postfix, sendmail,
> qmail, etc).
>
> Squirrelmail is a nice php-based interface.
>
> -Robby
I second that. Squirrelmail is solid. And the plugin features is great.
--
--Matthew Sims
--<http://killermookie.org>
--
PH
re your web server app and that the web server has plenty of
resources to handle your requests.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Hello, I'm trying to get the hang of OOP here but can't quite figure
> out how to relate these classes. I've got one for the main project,
> one for the database, and one for a user. Somehow I need to get the
> user access to the database, without cumbersome constructor calls
> involving a copy
o get suggestions for emacs, as well, and I'd be very
>surprised if one or more commercial editors weren't offered.
VIM!
Emacs!
VIM!
Emacs!
VIM!
KWrite!
KWrite?!
Real men write code using a chisel and hammer on granite stone. You bet
your ass you'll learn how to write small, ti
> [snip]
> Any recommendations on how to make PHP run faster?
> [/snip]
>
> A multiple CPU box. (It's a legitimate answer!)
I usually add more gerbils to my spinning wheel.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.n
> BBEdit is the tool of the Gods.
>
> Jon
Zeus would be proud of you.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hts...
>
> thanks
>
> -bruce
I think javascript would be your cup of tea...getting the browser to
reload a frame.
Google is your friend:
http://www.google.com/search?q=javascript%20reload%20frame&hl=en&lr=&ie=UTF-8&sa=N&tab=gw
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This is probably getting a little offtopic (okay, a lot and my last for
today) but I'll answer what I can. Now I can't speak for Horde but I can't
see how Horde would be any different than what Squirrelmail provides.
> "Matthew Sims" <[EMAIL PROTECTED]> write
>> I have this date in timestamp format:
>>
>> $a= 20040810114155;
>>
>> I want to add 7 days to this date. How can i do that?
>>
>> Thanks
>>
>>
Isn't it considered faster to let the database do the conversion to Unix
Timestamp?
--
--Matthew Sims
er-side instructions.
A header simply sends, well, HTTP headers. You're asking the browser to
reload a frame which is different.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> On Wed, 2004-08-11 at 00:13, Matthew Sims wrote:
>> > hi...
>> >
>> > this probably doens't belong here.. but i'll try!
>> >
>> > i have a two frame window. when the user logs into the 'main' window,
>> i
>> > wa
.
Now picture PHP as the guy to writes the HTML and sends it to the browser
and stands there waiting for a request to send more HTML to the browser.
"Frame? I don't know where this frame is. You'll have to ask the
javascript guy where that is." (that's my bad rendition of P
> raditha dissanayake wrote:
>> I vote this list be renamed as
>>
>> php-general-apache-mysql-imap-iis discussion list.
>>
>> all those not in favour please flame.
>>
>>
>
> We could just move this list to a Yahoo! group, then we can answer
> questions for any topic, and have the trolls too. ;)
>
>
>
>> Imagine all the people that'll want to post to a John Holmes list!!!
>
> People would be wide open for that list.
>
> Sorry.., I couldn't resist... Just had to take the low road...
>
>
>
> alex hogan
Damn, that was pretty good. :)
--
--Matthe
security somewhat, by
> enacting strict controls (with authpf) and then routing around them with
> an insecure web login.
>
> -mike.
Adding SSL to the mix would probably fix the insecure login part.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
passed through $_GET to pull up the
cooresponding story.
Learn HTML and CSS and you can make a website look however you want it to
look. PHP simply makes the pages change depending on user events.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
#x27;s not really different from any other dynamic website.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Yea, But then I took his advice and found this
> http://www.catb.org/~esr/faqs/smart-questions.html#keepcool so I was
> not so offended :)
>
> I had all the other links, but that one and did not think my question
> was that "out there" for the list... oh well.
>
>
> On Aug 17, 2004, at 12:31 PM,
27;t have to look much further than this. You have a class that was
designed in PHP3 and suddenly you're wondering why it work in PHP5?
The OO model in PHP has been vastly revamped. It's closer to what OO is
suppose to be. So my guess is that all your classes are now invalid.
You'll
> Okay - I apologize but I'm a systems admin - not a programmer - would I
> even need those classes now?
>
> -Original Message-
> From: Matthew Sims [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 17, 2004 3:40 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PH
ll languages will be a cinch to
learn. They're all the same, just different syntax.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> $row = mysql_fetch_array($sql, MYSQL_BOTH);
>>
>> Thank you.
>> TR
As Tony shows, anything between the [] is optional.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
emove the frames? Where would the image load then?
If you want it to load on the same page, just have the link refresh the
page to load the larger image.
Not sure what you're really asking.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
tever UID the web server runs as (nobody, www, etc).
If you're running it through a stand alone script, well then, if you don't
own the directory or you're not root, that's probably the problem.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
s?
>>
>
> Can't help you unless you give us an error...
>
And check to see that PostgreSQL is accepting network connections rather
than localhost. Is it listening to a port?
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, first thing to do is to get to know what it is. You can't
send mail without one.
First thing:
http://www.webopedia.com/TERM/S/SMTP.html
I'm not too familiar with what MTA's are out there for windows that are
free. All I know is Exchange for windows and I don't
ave your vars sitting in $_SESSION.
Web page is index.php:
...webpage stuff here...
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
*** Automated Message - Do Not Reply ***
Hello, I am currently out on vacation on a warm sunny beach, suckin' down
an alcoholic beverage or something and will reply to your message when I
return...or not.
--
--Matthew Sims
--<http://killermookie.org>
*** End ***
> Another thi
er (your ISP *has* to have one) or install one yourself on
your computer. I have no clue what your OS is but if you're using
Linux/Unix, go search for sendmail, Qmail or Exim. For windows, Exchange.
I think this isn't the place to ask about setting up an SMTP server.
--
--Matthew Sims
--&l
Just mostly curious but is there a way to assign one variable to multiple
variables in one single line?
Rather than do this:
$var2 = $var1;
$var3 = $var1;
Is there a method to perform a:
($var2,$var3) = $var1;
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List
> How about:
>
> $var1 = $var2 = $var3 = 5;
> echo $var1 . '' . $var2 . '' . $var3 . '';
> ?>
>
> Regards,
>
> Justin
>
I had something stuck in my head between what Python does and PHP's list
function. Not sure why I c
Anyone know any good XML parsers that work with PHP5? Most of what I can
find on freshmeat are still using PHP4 classes and Google isn't turning up
much either.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
> Matthew Sims wrote:
>
>> Anyone know any good XML parsers that work with PHP5? Most of what I can
>> find on freshmeat are still using PHP4 classes and Google isn't turning
>> up
>> much either.
>
> What do you want to do? This parses xml pretty
> Matthew Sims wrote:
>
>> My fault, I should have been more specific. An RSS reader. :) I was
>> using
>> xmlParser-0.3 and feedParser-0.5 to display news sites. Since I've
>> converted to PHP5, they no longer work for me.
>
> definitely a combination o
', 'a,'))."\n";
>> ?>
>>
>> [EMAIL PROTECTED] sql]$ php -q s1.php
>> 2
>> 2
>
> split in php isn't the same as perl's split, there is preg_split()
> which you can use:
>
> $results = preg_split('/,/','a,', -1, PREG_SPLIT_NO_EMPTY);
> print(count($results)); // outputs: 1
>
>
> Curt
Would explode() provide the same technique?
$var = "a,";
$results = explode(",", $var);
$results[0] = a;
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
decipher?" Hmm.. interesting.
>
> Now that they know that we know, we're all in danger. Be on the look out
> for assassins.
>
I'm immune from assassins.
Gunslingers, hatchet men and thugs, on the other hand, still present a
problem.
--
--Matthew Sims
--<http://killermo
> On Thu, 2004-09-16 at 18:33, Matthew Sims wrote:
>> I'm immune from assassins.
>>
>> Gunslingers, hatchet men and thugs, on the other hand, still present a
>> problem.
>
> When I first read this I read "thongs" instead of "thugs". It stil
lt.
http://support.microsoft.com/default.aspx?kbid=842242
A lot of programs are affected by this...possibly MySQL, too?
Anyways, I'm telling my friends and family to steer clear of SP2 upgrade
till the dust settles and the kinks are worked out.
--
--Matthew Sims
--<http://killermookie.or
by name but you will be getting your letters of
> termination shortly.
>
>>
>> ---John Holmes...
>>
>
>
> --
> Raditha Dissanayake.
I still haven't received my (small) paycheck for last week.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
>
> "[PHP} Can't get NULL to output anything!"
>
> hehe
> Andre
>
>
Check your firewall.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
;> > versions greater than 4.1.0. For that, use MySQLi.
>> >
>> > mysqli:
>> > The mysqli extension is designed to work with the version 4.1.3 or
>> > above of MySQL.
>>
>> What the manual says (as quoted) is either not relevant or is not c
> HAHAHA, this thread is awsome though, you all must admit the humor
> involved here. I hope this thread continues for a couple more days.
> or here is an idea for a thread
> {PHP} globals.asp wont set my php vars
Firewall.
--
--Matthew Sims
--<http://killermookie.org>
finally* all made sense! This book
> is *so* well-written, that you really understand the whole OOP mindset
> after just the first 3 chapters.
>
Thanks for the tip. I just ordered the book through Amazon. :)
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing Lis
#x27;t execute query");
>
> while ($row = mysql_fetch_array($result));
>
> {
>
> extract($row);
>
> echo $company;
>
> }
>
> ?>
>
Your while statment has a ; at the end of it.
while ($row = mysql_fetch_array($result)) {
echo $row["company"];
}
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
item) {
echo $item->xpath('dc:date');
}
?>
I just want to get the date. Am I doing xpath incorrectly or does xpath
not currently work properly in PHP5?
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Goals as $value)
>
> {
>
> print "$value ";
>
> }
>
> ?>
Not to do all the work for you but do you mean:
You are interested in:
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
T18:15:00+00:00
>
>
> My sample of my PHP code is:
>
> $library = simplexml_load_file('file.rss');
> foreach ($library->item as $item) {
> echo $item->xpath('dc:date');
> }
> ?>
>
> I just want to get the date. Am I doing xpath incorrectly or d
t;
> --
How about php-check-your-firewall
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
his needs to work on Mac and PC.
>
> thx in advance
> Adil..
>
What's wrong with:
This isn't even PHP.
--
--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:
>>>Here's what i'm trying to do in php and using a mySQL database:
>>>
>>>I want a button on a page that if clicked it launches the browser's or
>>>OS's
>>>"Save As" window, allowing me to specify
onfigure the
local server's sendmail program to relay mail to the remote server.
/var/mail is where users mail boxes are stored when using to old mail
format mbox. Qmail uses the newer format Maildir which resides in user's
home directory. So it looks like you have a user by the nam
ith php4, but i'm not
> certain.
>
> any thoughts/opinions/comments would be helpful...
>
> thanks
>
> -bruce
>
Without seeing your classes, PHP4 classes will not work with PHP5. The OO
model has been completely revamped. So if the code works in PHP4 but not
in PHP5, my g
IL PROTECTED]
And do you receive it? Does 'which sendmail' return you the path to where
the sendmail binary is?
You should be contacting the admin of this server and be asking these
questions. We can't answer them since we don't own/have access to the
machine.
--
--Matthew
?
>
> Can I use as AuthUserFile ".htpasswd" since they are in the same
> directory?
>
> I know its not smart but let's get this working and I'll move .htpasswd
> later to "upper level" :)
>
>
>
> -afan
Dude...do you know what mailing lis
m a true 3D environment model to a...well, an SSI language
with a database is quite a drastic change.
With today's advance editors (Doom 3, Unreal, Half-Life 2 soon...) I would
think using these would produce better and quicker results. And you don't
even have to know how to code. J
> When I run the php page, I get
>
> Parse error: parse error, unexpected T_RETURN in /var/www/html/afi/sq.php
> on
> line 12
> --
> Whil
>
function square($num) {
$result = $num * $num;
return $result;
}
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Hi guys,
>
> I have this code Javascript code:
>
> if (document.images) {
>
> img1on = new Image(); img1on.src = " ?>Graphics/";
> img2on = new Image(); img2on.src = " ?>Graphics/";
>
> Regards,
>
> Aaron
>
When you mix PHP and javascript together in an external file, the file
needs
> [snip]
> i know this isn't completely related to php but i am creating a web
> based
> news reader in php, how much disk space do you think i need to run my
> own
> local news server?
> [/snip]
>
> I'd go with a 1TB RAID
>
Better go with 2TB. You know ho
le.com/failed.php>
And guess what! The guy who wrote PHP, Rasmus Lerdorf, works at Yahoo!
http://lerdorf.com/resume/
An article about the PHP scalability myth:
http://www.onjava.com/pub/a/onjava/2003/10/15/php_scalability.html
Anything else? :)
--
--Matthew Sims
--<http://killermoo
s/companies do rely
on using PHP. Does your PHB consider the list I provided "hobbyists"?
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e tool.
If you boss is so in love with Windows, why not PHP on Windows?
http://news.netcraft.com/archives/2003/08/30/php_growing_surprisingly_strongly_on_windows.html
--
--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:
>
>> The following sites have been known to use PHP:
>
>> www.insight.com (is a publicly traded fortune 1000 company. The site is
>> 90% PHP)
>
>
> Insight now uses CF. It was a political change, not one agreed on by
> the techie
uld just take a
moment to READ. Managers don't want to read, they want someone to hold
their hand.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
with your boss is to show the similarities between
Sharepoint and PHP rather than showing what Sharepoint can't do. That
would put your boss on the defensive and make him/her resent you. Then
after you show the similarities, show the costs/savings of Sharepoint/PHP.
Does that make sense?
--
--Ma
> So, using xpath, I have constructed the following function. The problem is
> the quotes "" around the number. xpath is treating it as a string, I
> believe.
Would sprintf() work for this?
Something like:
$num = sprintf("%d", $xpathNum);
I haven't tested
gt; zero.
$countRow is returning 0 or empty?
What does print_r($countRow) show you?
Also, try running your query from the mysql prompt, substituting the PHP
with real values. See if mysql complains about your query.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> Do I need to have sendmail configured on my linux box to send mail via
> PHP?
> Thanks!
Sendmail or any MTA will do.
So yes, you need to have a working mail server.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
>
> I'm sorry, I don't know what and MTA is. Can I configure PHP to use any
> smtp
> server?
>
MTA = Mail Transfer Agent
http://us4.php.net/manual/en/ref.mail.php
For unix/linux, PHP ignores the smtp settings in php.ini which means
you'll need to setup sendmail fo
-MM-dd HH:mm:ss, like:
$lastmonth = date("Y-m-d H:i:s", mktime(date("H"), date("i"), date("s"),
date("m")-1, date("d"), date("Y"));
MySQL will suck it up much better that way.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
1 - 100 of 186 matches
Mail list logo