Re: [PHP] php vulnerability

2005-08-21 Thread Jasper Bryant-Greene
Shafiq Rehman wrote: My server was hacked last week and the message displayed on home page was "spy kidz owns your server". I researched on internet and found that this is some kind of trojan which infects the *.index files. It penetrate from HTTP. Some paople were saying that there is vulnerab

[PHP] php vulnerability

2005-08-21 Thread Shafiq Rehman
Hi all, My server was hacked last week and the message displayed on home page was "spy kidz owns your server". I researched on internet and found that this is some kind of trojan which infects the *.index files. It penetrate from HTTP. Some paople were saying that there is vulnerability in PHP.

Re: [PHP] php explained in sql

2005-08-21 Thread John Taylor-Johnston
varchar: colname<>'' Thanks, John Jasper Bryant-Greene wrote: John Taylor-Johnston wrote: In php, if I wanted to know if $mydata->email contained something, I would do this, right? if ($mydata->email) {} How would I express this in SQL (MySQL)? That doesn't tell you if $mydata->email

Re: [PHP] Hardware Detection

2005-08-21 Thread Richard Lynch
On Fri, August 19, 2005 9:55 pm, Saenal M wrote: > Can we get information about hardware on client's PC. (e.g. hard disk, > processor, keyboard, etc).? And How? > anyone knows? please reply back. Not only is it not possible, most of that information is NONE OF YOUR DAMN BUSINESS!!! :-) You can as

Re: [PHP] preg_match

2005-08-21 Thread Richard Lynch
On Sat, August 20, 2005 5:00 am, John Nichel wrote: > Personally, I have never used \\ in PCRE when looking for things like > spaces (\s), word boundraries (\b), etc. and it's all worked out fine. Personally, { I } have never { used proper indenting in my code } and it's all worked

Re: [PHP] __sleep, __wakeup and persistent connections

2005-08-21 Thread Richard Lynch
On Sat, August 20, 2005 6:33 am, Marcus Bointon wrote: > I'm sorting out some code to handle session object storage, I can't help with the OO stuff. > given that the connection is persistent, and may thus be used by > other scripts, is calling mysql_close a particularly bad idea? Should > I just

[PHP] Re: exec ping

2005-08-21 Thread mikespook
The PEAR package Net_Monitor and Net_Ping is useful for you. It`s esay way to detact the host~~ ^_^ "Juan Pablo Herrera" <[EMAIL PROTECTED]> ??:[EMAIL PROTECTED] Hi all! I have following script: $comando = system('ping 168.192.0.1', $nn); echo $nn; Well, i need that only show the first ten

Re: [PHP] apache sessions

2005-08-21 Thread Richard Lynch
On Sat, August 20, 2005 1:41 pm, Bawt T. Eggdrop wrote: > im trying to change my session backend for apache from files to mysql. > is there something php provides that allows a php script to execute > before each page gets loaded in apache. if not i have to edit hundreds > of php files...theres got

Re: [PHP] support for database interaction

2005-08-21 Thread Richard Lynch
On Sat, August 20, 2005 11:58 pm, Fernando Garza wrote: > I am creating a 'Shell' in prolog language that interacts with a > 'Visual > Prolog' database format in 'Win32', I would like to interact with this > database with 'PHP', just like the interaction with 'MySQL' database, > can > you give me s

Re: [PHP] Resizing thumbnails to the browser

2005-08-21 Thread Richard Lynch
On Sun, August 21, 2005 3:04 pm, Murray @ PlanetThoughtful wrote: > I have a series of thumbnails on my site of photos I've taken that are > all > 150px in width, but of variable height. I want to randomly display one > of > the thumbnails each time the home page of my site is loaded in a > column

Re: [PHP] php explained in sql

2005-08-21 Thread Jose Miguel
We should use: if (!empty($mydata->email)) in php, right? On 8/19/05, Jasper Bryant-Greene <[EMAIL PROTECTED]> wrote: > John Taylor-Johnston wrote: > > In php, if I wanted to know if $mydata->email contained something, I > > would do this, right? > > if ($mydata->email) > > {} > > > > How would

Re: [PHP] Re: Problem between php4.4 and mysql

2005-08-21 Thread Jasper Bryant-Greene
M. Sokolewicz wrote: Jasper Bryant-Greene wrote: Well, it's hard to say without a bit more detail. Are you able to give us the actual error that PHP is giving on the database connected pages? I assume you are using the mysqli functions rather than the mysql functions to access your database

[PHP] Resizing thumbnails to the browser

2005-08-21 Thread Murray @ PlanetThoughtful
Hello All, I have a series of thumbnails on my site of photos I've taken that are all 150px in width, but of variable height. I want to randomly display one of the thumbnails each time the home page of my site is loaded in a column that is 140px wide. I'm wondering if anyone can point me at

Re: [PHP] Need help with for loop, pulling MySQL data, completely lost

2005-08-21 Thread Dan Trainor
Evan Priestley wrote: Dan, When you run the second query ("$query1"), its results overwrite the results of your first query ("$query0"). `mysql_fetch_assoc()' returns results from the _most recent_ query, so after the first iteration, the call to `mysql_fetch_assoc()' is returning results

Re: [PHP] Re: Problem between php4.4 and mysql

2005-08-21 Thread Jasper Bryant-Greene
On 21 Aug 2005, at 21:24, Jasper Bryant-Greene wrote: As far as your database problem goes... Have you recently installed MySQL 4.1 or has it previously been working with MySQL 4.1? Alex Scott wrote: I Installed it about a month ago (from RPM's) and php 4.4 as well the two were working tog

Re: [PHP] Re: Problem between php4.4 and mysql

2005-08-21 Thread Alex Scott
On 21 Aug 2005, at 20:47, Alex Scott wrote: Thanks, Yes I found that it was also loading php.conf from conf.d , so moved that up a level restartedd apache and that error ceased. However I am still finding that the database connected php pages are not loading. I don't know why they just se

[PHP] Re: Problem between php4.4 and mysql

2005-08-21 Thread JamesBenson
Sounds like you have a duplicate entry in your httpd.conf for the PHP module, 100% of the time ive seen that error is the above reason, so I suggest checking your LoadModule * sections, depending whether you have a shared libphp4.so module or built-in module there should or shouldnt be a LoadMo

Re: [PHP] Looking for CMS advice

2005-08-21 Thread Esteamedpw
I would check out Mambo: _http://mamboserver.com_ (http://mamboserver.com) - Clint

Re: [PHP] PHP and Prolog

2005-08-21 Thread Edin Kadibašić
Fernando Garza wrote: > Hi, > > I am creating a Shell in prolog language that interacts with a Visual Prolog > database format in Win32, I would like to interact with this database with > PHP, just like the interaction with MySQL database, can you give me some > notion or the code that need to

Re: [PHP] PHP and Prolog

2005-08-21 Thread Rory Browne
I've never really examined the code behind the PHP/MySQL API, but I would assume, that it is mainly a wrapper for the C MySQL API. Do you know how to interact with this database in any other language such as C, Perl, Java etc? I don't know much about prolog, but a look at www.swi-prolog.org sugge

Re: [PHP] Need help with for loop, pulling MySQL data, completely lost

2005-08-21 Thread Evan Priestley
Dan, When you run the second query ("$query1"), its results overwrite the results of your first query ("$query0"). `mysql_fetch_assoc()' returns results from the _most recent_ query, so after the first iteration, the call to `mysql_fetch_assoc()' is returning results from `query1', not fr

Re: [PHP] Problem between php4.4 and mysql

2005-08-21 Thread Alex Scott
Also I am using mysql 4.1.12 and mysql Is designed to work with 4.1.13? Can anybody suggest to me how I might fix this problem please??? Alex. On 21 Aug 2005, at 12:23, Alex Scott wrote: On 21 Aug 2005, at 12:08, Alex Scott wrote: Thanks for reply, But just briefly, why should it have b

[PHP] Need help with for loop, pulling MySQL data, completely lost

2005-08-21 Thread Dan Trainor
Hello, all - As a pet project of mine, I've decided to write a bit of code. This is what I have, and it's not working as expected: if ($action == "prepareforupdate") { @unlink("UPDATES/".$id."/9.jpg"); $query0 = "SELECT * FROM updates WHERE id=".$id.""; if (!$dbdata =

Re: [PHP] Problem between php4.4 and mysql

2005-08-21 Thread Alex Scott
On 21 Aug 2005, at 12:08, Alex Scott wrote: Thanks for reply, But just briefly, why should it have been working for the past month o.k? Kind regards, Alex. On 21 Aug 2005, at 11:34, Burhan Khalid wrote: Alex Scott wrote: Hi there, I discovered that our website was not working prop

Re: [PHP] support for database interaction

2005-08-21 Thread Greg Donald
On 8/21/05, Fernando Garza <[EMAIL PROTECTED]> wrote: > I am creating a 'Shell' in prolog language that interacts with a 'Visual > Prolog' database format in 'Win32', I would like to interact with this > database with 'PHP', just like the interaction with 'MySQL' database, can > you give me some no

[PHP] Looking for CMS advice

2005-08-21 Thread Zachary Kessin
I am about to start on a project that seems like it would be right for a CMS system. It will be about 80% rather boring stuff with about 20% custom database work. I have looked at XOOPS and a few others. However I can not seem to find one rather important thing about XOOPS. I understand how to

Re: [PHP] how to know when a php library is installed

2005-08-21 Thread Greg Donald
On 8/21/05, Lizet Pena de Sola <[EMAIL PROTECTED]> wrote: > I need to test whether a library is installed with php or not. extension_loaded(); -- Greg Donald Zend Certified Engineer MySQL Core Certification http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Problem between php4.4 and mysql

2005-08-21 Thread Burhan Khalid
Alex Scott wrote: Hi there, I discovered that our website was not working properly today (To my horror). Hosted on redhat enterprise 4. I think that there is a problem with php 4.4 talking to Apache mysql 4.1 as the php pages which do not talk to the DB are working but other php pages are

[PHP] Problem between php4.4 and mysql

2005-08-21 Thread Alex Scott
Hi there, I discovered that our website was not working properly today (To my horror). Hosted on redhat enterprise 4. I think that there is a problem with php 4.4 talking to Apache mysql 4.1 as the php pages which do not talk to the DB are working but other php pages are working. I restar

RE: [PHP] how to know when a php library is installed

2005-08-21 Thread Lizet Pena de Sola
Contacting host, thanks :) -Original Message- From: Jasper Bryant-Greene [mailto:[EMAIL PROTECTED] Sent: Sunday, August 21, 2005 1:20 AM To: 'php' Subject: Re: [PHP] how to know when a php library is installed Lizet Pena de Sola wrote: > Hello all: > I need to test whether a library is i

[PHP] VERY SORRY, explanation

2005-08-21 Thread Fernando Garza
very sorry for the "spam", I send the message many times because I received this message:* Symantec Mail Security detected prohibited content in a message sent from your address (SYM:00367781894249647555) *and I thinked that my message isn´t received, so I try to change the content very t

Re: [PHP] support for database interaction

2005-08-21 Thread Robert Cummings
On Sun, 2005-08-21 at 02:58, Fernando Garza wrote: > Hi, > > I am creating a 'Shell' in prolog language that interacts with a 'Visual > Prolog' database format in 'Win32', I would like to interact with this > database with 'PHP', just like the interaction with 'MySQL' database, can > you give m

Re: [PHP] how to know when a php library is installed

2005-08-21 Thread Jasper Bryant-Greene
Lizet Pena de Sola wrote: Hello all: I need to test whether a library is installed with php or not. In this case it's the tidy library I need for a project. Jasper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] support for database interaction

2005-08-21 Thread Jasper Bryant-Greene
Fernando Garza wrote: Hi, I am creating a 'Shell' in prolog language that interacts with a 'Visual Prolog' database format in 'Win32', I would like to interact with this database with 'PHP', just like the interaction with 'MySQL' database, can you give me some notion or the code that need to

[PHP] how to know when a php library is installed

2005-08-21 Thread Lizet Pena de Sola
Hello all: I need to test whether a library is installed with php or not. In this case it's the tidy library I need for a project. After getting a message from the hosting administrator that the tidy library was installed and ready to use I ran a phpinfo() to find out details: There's nothing that

[PHP] support for database interaction

2005-08-21 Thread Fernando Garza
Hi, I am creating a 'Shell' in prolog language that interacts with a 'Visual Prolog' database format in 'Win32', I would like to interact with this database with 'PHP', just like the interaction with 'MySQL' database, can you give me some notion or the code that need to be executed to get this