[PHP] PHP5/MySQL5/Apache2 Problems

2006-01-15 Thread Death Gauge
I've done everything I can think of to make PHP run with MySQL and Apache. I 
added PHP as a module to Apache2. I then told PHP that the 
extension_dir="./ext" and then uncommented extenstion=php_mysql.dll But PHP 
isn't showing anything about MySQL when I restart Apache and now Apache 
won't start cause it is running into errors with PHP/MySQL. How do I fix 
this? All help is appreciated.


--Death Gauge
"How do you gauge your death?!"

_
On the road to retirement? Check out MSN Life Events for advice on how to 
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] No forums?

2005-11-05 Thread Death Gauge
Forums and mailinglists like this are about the same. Forums has image 
content though while mailing lists just have text content. You get the same 
replies as you would with the other so be happy that they at least have this 
mailing list and don't just say "Here is PHP and have fun learning it 
without our help."


Side question: Larry Ullman: You wouldn't happen to be the same Mr. Ullman 
that wrote the PHP&MySQL For Dynamic Web Sites?


--Death Gauge
"How do you gauge your death?!"

_
On the road to retirement? Check out MSN Life Events for advice on how to 
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[suspicious - maybe spam] [PHP] [suspicious - maybe spam] RE: [PHP] Recommended Reading?

2005-10-18 Thread Death Gauge



I've never read a book to do PHP or anything else. I simply google and go to 
site after site reading tutorials and docs then making a sample page with 
what I've read and learned.


--Death Gauge
"How do you gauge your death?!"




Original Message Follows
From: "Alan Lord" <[EMAIL PROTECTED]>
To: 
Subject: [PHP] Recommended Reading?
Date: Tue, 18 Oct 2005 19:43:36 +0100

Hi all,

Forgive this long diatribe, a bit off-topic I know, but it might
stimulate a good discussion...

I have built a few small apps in PHP before and, whilst they work, I
can't but help feeling that I go about the whole thing the WRONG way...

I am not a professional software person (far from it) but I am
reasonably competent in most things "technical". I trained in
Electronics, build my own PCs and Linux systems from scratch, have used
- just for fun - Java, Delphi, Visual Basic, PHP and a little C/C++.

I am now wanting to write my own application (using PHP of course) to do
something "really useful". And I am looking for some recommendations on
reading [books or links] about "how to design" my application and how to
think about the design in it's abstract form before I start writing
code.

Normally I end up writing little bits of code to solve small problems
and then sort of kludging them together to do something useful.

I would really like to try and go about this one the RIGHT way.

Thanks in advance.

Al

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: [PHP] RE: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] RE: Issues with News sites again...

2005-09-14 Thread Death Gauge
Just for the record. I'm a professional C++ programmer and I know to 
initialize variables before I use them. Secondly, I've taken into account 
what has been said but all I keep seeing is guys saying that not 
initializing the variables opens up security issues. Which is just agreeing 
with what the site is basically saying that the only security issues would 
be introduced by the script creator. Lastly, I addressed this issue with my 
ISP and they already have security measures in place for anything that could 
come about from bad PHP scripts.


--Death Gauge
"How do you gauge your death?!"




Original Message Follows
From: "Richard Lynch" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: "Jay Blanchard" <[EMAIL PROTECTED]>
CC: "'Death Gauge'" <[EMAIL PROTECTED]>, php-general@lists.php.net
Subject: Re: [PHP] RE: [suspicious - maybe spam] [PHP] [suspicious - maybe   
   spam] RE: Issues with News sites again...

Date: Wed, 14 Sep 2005 10:40:34 -0500 (CDT)

On Wed, September 14, 2005 9:46 am, Jay Blanchard wrote:
> At the risk of starting another globals holy war, the reply that you
> received was a generalization that reflects the potential (< NOTE
> THAT)
> security risks from having register globals 'on'. The poster was
> essentially
> correct, misuse of globals opens up a whole can of potential security
> issues. I will refer you to several good PHP security resources at
> http://www.shiflett.org

I was frankly rather pissed when register_globals went "off"

*I* do not have any uninitialized variables anywhere in any scripts on
any site I ever built.  Period.

Upon reflection, though...

In the unlikely event that I break down and give in to client demands
to install some lame-ass bulletin board with all its *other* security
holes, it's pretty much guaranteed their crappy PHP code ALSO has a
zillion uninitialized variables.

Even phpLIB, which sort of morphed into PEAR (???) used to have a
bunch of uninitialized member variables.  It wouldn't even run on my
server since I had E_ALL cranked up.  Their first patch for that was
to just change my warnings dynamically.  Then not change them BACK at
the end of their code.  Blech.

Sure, I'd LIKE to educate every PHP scripter to never use an
uninitialized variable.  And I'd LOVE to change the default
error_reporting in php.ini to E_ALL.

But neither of those is likely to happen, and the best band-aid we can
muster is register_globals "off"

That said, the real culprits, as far as I can tell, are just doing
extract($_POST), at which point they might as well have just left
register_globals "on" anyway...

register_globals "off" is a band-aid.

How the PHP community can "fix" this problem for real is not something
to be figured out in a 10-minute PHP-General discussion.

--
Like Music?
http://l-i-e.com/artists.htm

_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[suspicious - maybe spam] [PHP] [suspicious - maybe spam] RE: Issues with News sites again...

2005-09-14 Thread Death Gauge
I would be very worried about the quality of any reply that posts a link 
that says the opposite of what the person is saying. Nowhere in that link 
did I see them say that turning on the globals was a security issue. The 
page said the misuse of the globals was the security risk due to forgetting 
to initialize variables and then goes on to show examples of the issue risks 
if the globals aren't properly initialized. The security issues fall on the 
web designer not the ISP or PHP, ISP and PHP doesn't control if I forget to 
initialize something in my PHP scripts. The first two paragraphs even state 
that it is a web designer's problem (not in so many words though).


[QUOTE]
Perhaps the most controversial change in PHP is when the default value for 
the PHP directive register_globals went from ON to OFF in PHP 4.2.0. 
Reliance on this directive was quite common and many people didn't even know 
it existed and assumed it's just how PHP works. This page will explain how 
one can write insecure code with this directive but keep in mind that the 
directive itself isn't insecure but rather it's the misuse of it.


When on, register_globals will inject your scripts with all sorts of 
variables, like request variables from HTML forms. This coupled with the 
fact that PHP doesn't require variable initialization means writing insecure 
code is that much easier. It was a difficult decision, but the PHP community 
decided to disable this directive by default. When on, people use variables 
yet really don't know for sure where they come from and can only assume. 
Internal variables that are defined in the script itself get mixed up with 
request data sent by users and disabling register_globals changes this.

[/QUOTE]

--Death Gauge
"How do you gauge your death?!"




Original Message Follows
From: Jasper Bryant-Greene <[EMAIL PROTECTED]>
To: php-general@lists.php.net
Subject: [PHP] Re: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] 
RE:[PHP] RE: Issues with News sites again...

Date: Wed, 14 Sep 2005 17:37:21 +1200

Death Gauge wrote:
I'll try that...But why shouldn't I have register_globals on (which my ISP 
does and every tutorial I've ever read says to do in order to use several 
different features of PHP:-/).


http://php.net/security.globals

I would be very worried about the quality of any tutorial that said that 
(and any ISP that did that by default).


--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[suspicious - maybe spam] [PHP] [suspicious - maybe spam] RE: [PHP] RE: Issues with News sites again...

2005-09-13 Thread Death Gauge
I'll try that...But why shouldn't I have register_globals on (which my ISP 
does and every tutorial I've ever read says to do in order to use several 
different features of PHP:-/).



--Death Gauge
"How do you gauge your death?!"




Original Message Follows
From: "Jasper Bryant-Greene" <[EMAIL PROTECTED]>
To: php-general@lists.php.net
Subject: [PHP] RE: Issues with News sites again...
Date: Wed, 14 Sep 2005 15:21:43 +1200 (NZST)

On Wed, September 14, 2005 3:15 pm, Death Gauge said:
> Sorry had to eat too.  Ok here is the source that is giving me problems.
> I'd
> dropped a few things from it cause they weren't working either but this
> gives the just of what I'm trying to do. I'm renaming the poster.php 
files

> to more appropriate names but you get the idea of what I'm trying but not
> getting to work.
>
> 
> // Poster (poster.php)
>switch($id)

Unless you have register_globals on, which you shouldn't, this should be
switch($_POST['id'])

--
Jasper Bryant-Greene

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[suspicious - maybe spam] [PHP] [suspicious - maybe spam] RE: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] RE: [PHP] Re: [suspicious - maybe spam] [PHP] [suspicious - maybe spam]Issueswit

2005-09-13 Thread Death Gauge
Sorry had to eat too.  Ok here is the source that is giving me problems. I'd 
dropped a few things from it cause they weren't working either but this 
gives the just of what I'm trying to do. I'm renaming the poster.php files 
to more appropriate names but you get the idea of what I'm trying but not 
getting to work.





pselector.php is :

";
echo "";
echo "";
echo "News Poster";
echo "What's New Poster";
echo "";
echo "";
?>




--Death Gauge
"How do you gauge your death?!"




Original Message Follows
From: "Death Gauge" <[EMAIL PROTECTED]>
To: php-general@lists.php.net
Subject: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] RE: [PHP] 
Re: [suspicious - maybe spam] [PHP] [suspicious - maybe spam]Issueswith News 
sites again...

Date: Wed, 14 Sep 2005 00:40:00 +

In night college courses right now. I'll supply full code and everything 
when I get home in about 2 hours or so. (Had to re-reply cause for some 
reason my mail client keeps putting the repliers email in the to box instead 
of PHP's mailing list url.


--Death Gauge
"How do you gauge your death?!"

_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[suspicious - maybe spam] [PHP] [suspicious - maybe spam] RE: [PHP] Re: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] Issueswith News sites again...

2005-09-13 Thread Death Gauge
In night college courses right now. I'll supply full code and everything 
when I get home in about 2 hours or so. (Had to re-reply cause for some 
reason my mail client keeps putting the repliers email in the to box instead 
of PHP's mailing list url.


--Death Gauge
"How do you gauge your death?!"




Original Message Follows
From: Jasper Bryant-Greene <[EMAIL PROTECTED]>
To: php-general@lists.php.net
Subject: [PHP] Re: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] 
Issueswith News sites again...

Date: Wed, 14 Sep 2005 10:55:55 +1200

Death Gauge wrote:
I tried what people recommended but I am having major issues because 
everyone misunderstood about what I was trying to do. My site has a What's 
New news poster, which is on every page and just posts two things at a 
time. Then a have a comic book site, game site, novel site, animation site, 
and movie site and each site has their own News poster page. I need to make 
a page where I select Comics books News from a combo box and it loads the 
poster for Comics Books below the combo box (with ("comicposter.php"); ?> or the same with the other site. I can't seem to 
get it to work properly because when I do include (""); I fill out the 
stuff that I want to put in and click submit and nothing the site says it 
submits but when I load my main site it displays a blank screen. Any ideas 
how to fix this? I don't want to mess with Java/Javascript/XmlHTTPREQUEST 
or anything like that. I just want to use HTML/PHP/MySQL nothing majorly 
complicated.


I dunno, maybe if you provided some code so we could understand what you're 
actually doing...


--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Issues with News sites again...

2005-09-13 Thread Death Gauge
I tried what people recommended but I am having major issues because 
everyone misunderstood about what I was trying to do. My site has a What's 
New news poster, which is on every page and just posts two things at a time. 
Then a have a comic book site, game site, novel site, animation site, and 
movie site and each site has their own News poster page. I need to make a 
page where I select Comics books News from a combo box and it loads the 
poster for Comics Books below the combo box (with ("comicposter.php"); ?> or the same with the other site. I can't seem to get 
it to work properly because when I do include (""); I fill out the stuff 
that I want to put in and click submit and nothing the site says it submits 
but when I load my main site it displays a blank screen. Any ideas how to 
fix this? I don't want to mess with Java/Javascript/XmlHTTPREQUEST or 
anything like that. I just want to use HTML/PHP/MySQL nothing majorly 
complicated.


--Death Gauge
"How do you gauge your death?!"

_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[suspicious - maybe spam] [PHP] [suspicious - maybe spam] RE: [PHP] Re: [suspicious - maybe spam] PHP/MySQL/XmlHTTPRequest

2005-08-30 Thread Death Gauge
Ok how do I get rid of the annoying "[suspicious - maybe spam]" crap that 
appears when I post?




--Death Gauge
"How do you gauge your death?!"




Original Message Follows
From: Manuel Lemos <[EMAIL PROTECTED]>
To: Death Gauge <[EMAIL PROTECTED]>
CC: php-general@lists.php.net
Subject: [PHP] Re: [suspicious - maybe spam] PHP/MySQL/XmlHTTPRequest
Date: Tue, 30 Aug 2005 17:11:47 -0300

Hello,

on 08/30/2005 04:51 PM Death Gauge said the following:
Where do I go learn about XmlHTTPRequest? I've done googles and all I've 
found was stuff about toolkits no tutorials or documents telling how to use 
it.


Here you may find at least 3 solutions to take advantage of XMLHttpRequest 
AJAX technology from PHP:


http://www.phpclasses.org/najax

http://www.phpclasses.org/pajax

http://www.phpclasses.org/httprequest


--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[suspicious - maybe spam] [PHP] [suspicious - maybe spam] PHP/MySQL/XmlHTTPRequest

2005-08-30 Thread Death Gauge
Where do I go learn about XmlHTTPRequest? I've done googles and all I've 
found was stuff about toolkits no tutorials or documents telling how to use 
it.

--Death Gauge
"How do you gauge your death?!"

_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP]Re: Need advice or code

2005-08-27 Thread Death Gauge
I would do that but my preferences don't include XML. Right now I code in 
just PHP/MySQL/Javascript/Java/C++/ASM and that is it(of course C++ and ASM 
don't count as web languages heh).

--Death Gauge
"How do you gauge your death?!"

Maybe try a bit of XmlHTTPRequest and some Javascript. When the first item 
is selected (and maybe a submit button is pressed) it goes to the 
XmlHTTPRequest script, gets the data from a php script and echos the output. 
I'm only a beginner on XmlHTTPRequest, so I can't help you code-wise. Sorry.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

_
On the road to retirement? Check out MSN Life Events for advice on how to 
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Need advice or code

2005-08-26 Thread Death Gauge
I've made a site with 5 sites in it and has about 6 MySQL/PHP News 
databases. A while back I tried to use drop-down combo boxes to make a 
single page that linked all 6 news scripts so I could pick one from the 
drop-down enter the news and hit submit to add it to the site. The down side 
is that it didn't work and deactivated the submit button. Is there a way to 
make a drop-down combo box so that when I pick the item name it loads the 
said page under the combo box and then lets you submit and pick another one 
if you need to post to another database. I have 6 scripts that post to each 
database. Any help, code, or advice would be greatly appreciated.


--Death Gauge
"How do you gauge your death?!"

_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php