[PHP] Re: php vulnerability

2005-08-27 Thread Raj Shekhar
Shafiq Rehman <[EMAIL PROTECTED]> writes: > Hi all, > > Thanx to all of you. My server is running on Linux and there is not any > phpbb running on it. If vulnerability is in my code.. Is there any way that > I can find the buggy code on my server which allowed that trojan to write > into all t

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

2005-08-27 Thread Sunny Boy
Death Gauge wrote: 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

[PHP] Ahmed Abdel-Aliem has invited you to try Google Talk.

2005-08-27 Thread Ahmed Abdel-Aliem
I've been using Google Talk and thought you might like to try it out. We can use it to call each other for free over the internet. Here's an invitation to download Google Talk. Give it a try! --- Ahmed Abdel-Aliem has invited yo

RE: [PHP] PHP MySql Extension No Loading

2005-08-27 Thread Bagus Nugroho
ensure you have php_mysql.dll on c:\PHP\ext and don't forget to check php.ini location, it must comply with httpd.conf ( see PHPIniDir ".") and restart apache after editing both of files. From: Glen Zimmerman [mailto:[EMAIL PROTECTED] Sent: Sat 27-Aug-2

Re: [PHP] PHP Security

2005-08-27 Thread Chris Shiflett
Richard Lynch wrote: The actual text is: "...in a Web service protocol FOR PHP" Good catch. The summary sent to the list was: "A new security flaw in the PHP Web service protocol used by a large number of Web applications could allow attackers to take control of vulnerable servers." Thank

[PHP] Apache Installation Error: Cannot load /usr/lib64/httpd/modules/libphp4.so into server: undefined symbol: unixd_config

2005-08-27 Thread Chinyi Woo
Hello, guys I am trying to configure apache_1.3.33 with php 4.3.9 on my linux box. After adding LoadModule php4_module /usr/lib64/httpd/modules/libphp4.so to http.conf, I started httpd by "apachectl start" and got the following error message: Cannot load /usr/lib64/httpd/modules/libphp4.so into s

[PHP] syntax for multiple boolean

2005-08-27 Thread Ross
I want to check if multiple fields are empty and want to find the best shorthand way to do it. What are the rules with brackets in PHP. if (empty ($fname){ //do something } if (empty ($sname){ //the same thing } if (empty ($address){ //do the same ting again } R. -- PHP General Mail

[PHP] sscanf() not returning info

2005-08-27 Thread Simon Fredriksson
Can anyone tell me what is wrong here? Pic 1"; $info = sscanf($data,"%s"); var_dump($info); ?> Returns: array(3) { [0]=> string(12) "new20030101"" [1]=> NULL [2]=> NULL } I expect: array(3) { [0]=> string(11) "new20030101" [1]=> string(10) "Zero01.jpg" [2]=> string(5) "P

Re: [PHP] syntax for multiple boolean

2005-08-27 Thread sub
You could write what your code does now like this. if (empty ($fname) || empty ($sname) || empty ($address)) { // do something } If you want your first condition to be met and one of your second two conditions to be met you can do it like this: if (empty ($fname) && (empty ($sname) || empty ($ad

[PHP] & and mySQL

2005-08-27 Thread mastershay
Hi, I am trying to search mySQL for URLs that include & in them. I start with a standard URL that uses &, use str_replace to put in &, and then do a mySQL query. However, nothing is found when I run the search through PHP. When I do the search directly through phpMyadmin, it works fine. Anyone

RE: [PHP] PHP MySql Extension No Loading

2005-08-27 Thread Glen Zimmerman
Yes, I have the dll in the right place (C:\php\ext), and PHPIniDir is set to C:\php where php.ini is located.  I know that php.ini is being picked up, because the changes I make to the file take affect when I restart Apache.  PHP is loading properly as the php function, phpinfo, does display

[PHP] Image Rendering/Generation Options

2005-08-27 Thread Dan Trainor
Hello, all - I've seen a few times, albeit I don't know how, people generate images on a page in different ways, such as maybe using base64 to output the raw image data into a page? Is this correct? If so, what does it "look" like? How would one go about doing this? If not, what are my opt

Re: [PHP] Image Rendering/Generation Options

2005-08-27 Thread Chris
Well, you can't output HTML *and* an image in the same request. What you can do is generate HTML in one script, put image tags in the HTML that references a another script, which actually outputs the image. So something like: Then in myimage.php you would output the correct headers (such as

Re: [PHP] Image Rendering/Generation Options

2005-08-27 Thread Jasper Bryant-Greene
Dan Trainor wrote: I've seen a few times, albeit I don't know how, people generate images on a page in different ways, such as maybe using base64 to output the raw image data into a page? Is this correct? If so, what does it "look" like? How would one go about doing this? If not, what are m

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

RE: [PHP]Re: Need advice or code

2005-08-27 Thread Robbert van Andel
You don't need to use XML with XmlHTTPRequest. The returned data can be a simple text string. XmlHTTPRequest is the best javascript technology to come out. It's done wonders for the interactivity of my websites. It's well worth the time to learn. -Original Message- From: Death Gauge [m