Re: [PHP] Getting root privs

2010-04-29 Thread Nilesh Govindarajan
On 04/30/2010 11:26 AM, Jim Lucas wrote: Nilesh Govindarajan wrote: Hi, As you know there are lot of control panels lying around like Cpanel, Lxadmin, most of them based on PHP. The control panels allow editing of system files which requires root privileges, can somebody tell me how to gain roo

Re: [PHP] Getting root privs

2010-04-29 Thread Jim Lucas
Nilesh Govindarajan wrote: > Hi, > > As you know there are lot of control panels lying around like Cpanel, > Lxadmin, most of them based on PHP. The control panels allow editing of > system files which requires root privileges, can somebody tell me how to > gain root privileges inside the script s

[PHP] Getting root privs

2010-04-29 Thread Nilesh Govindarajan
Hi, As you know there are lot of control panels lying around like Cpanel, Lxadmin, most of them based on PHP. The control panels allow editing of system files which requires root privileges, can somebody tell me how to gain root privileges inside the script so that it can be useful if I want

Re: [PHP] Two color rows in table inside while iteration

2010-04-29 Thread shiplu
$a=0; while (++$a, $row=mysql_fetch_...){ echo "<..." } Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest) -- PHP General Mailing List (http:

Re: [PHP] Re: Malware Question

2010-04-29 Thread Al
On 4/29/2010 1:35 PM, Gary . wrote: On 4/29/10, Al wrote: Ross had a good suggest about planted links to external malicious sites. One of the sites I worked on a couple of years ago had this happen. They ask me to look into it. There were about 90 htaccess files that redirected the user to a

Re: [PHP] Admin Interface

2010-04-29 Thread Karl DeSaulniers
JPMaster made a good simple login/admin panel. Google him maybe? Karl Sent from losPhone On Apr 29, 2010, at 4:39 PM, Brandon Rampersad wrote: What guide/ebook/tutorial/article that would explain best-practices and best-interfaces for admin/backend panels would you recommend?. I alread

[PHP] Admin Interface

2010-04-29 Thread Brandon Rampersad
What guide/ebook/tutorial/article that would explain best-practices and best-interfaces for admin/backend panels would you recommend?. I already know how to build them, now i just need to narrow my techniques to the best ones by reading best practices and implementations :) Thank You Buds Brandon

Re: [PHP] Two color rows in table inside while iteration

2010-04-29 Thread tedd
At 11:01 AM -0300 4/29/10, Juan Rodriguez Monti wrote: 2010/4/29 tedd : At 8:29 AM -0300 4/28/10, Juan Rodriguez Monti wrote: Hello Guys, I would like to implement a two color row table for some queries that I'm doing. I use PHP to query a DB, then I use while to print all its results. I

[PHP] In need of CVS/SVN checkout script for Production servers

2010-04-29 Thread Daevid Vincent
Semi-off-topic, but I'm pretty sure you all are faced with this same challenge, I figured it's worth a shot and maybe some flaming. I'm looking for a script (bash or php) that I would run on my production web server that would do this or close to it: 1. do a CVS/SVN checkout to a new time

Re: [PHP] Re: Malware Question

2010-04-29 Thread Gary .
On 4/29/10, Al wrote: > Ross had a good suggest about planted links to external malicious sites. One > of > the sites I worked on a couple of years ago had this happen. They ask me to > look > into it. > > There were about 90 htaccess files that redirected the user to a malicious > site > whenever

Re: [PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-29 Thread Gary .
On 4/29/10, ioan...@btinternet.com wrote: > On 2010/04/29 19:46, Gary . wrote: >> Failed to connect to host is a pretty strange error if they're doing >> anything regarding cookies and so on, IMO - I think I'd expect at >> least a connection to be established before they decide they don't >> like y

Re: [PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-29 Thread ioan...@btinternet.com
On 2010/04/29 19:46, Gary . wrote: On 4/25/10, ioan...@btinternet.com wrote: I can return a target page - once, but then on refresh within a few hours the script curl_error is that it cannot connect to the host and return is empty. Failed to connect to host is a pretty strange error if they'

[PHP] Re: Two color rows in table inside while iteration

2010-04-29 Thread Al
On 4/28/2010 7:29 AM, Juan Rodriguez Monti wrote: Hello Guys, I would like to implement a two color row table for some queries that I'm doing. I use PHP to query a DB, then I use while to print all its results. I have a code pretty similar to this one : $results = Here the QUERY; e

[PHP] Re: Malware Question

2010-04-29 Thread Al
On 4/28/2010 7:50 PM, Ashley Sheridan wrote: Hi all, This isn't exactly a PHP question, but I don't know anyone else with the collected smarts of this list. Basically, a site I built and am managing has been identified by Google as a source of malware. Now, I've been over the source code with

Re: [PHP] Two color rows in table inside while iteration

2010-04-29 Thread Juan Rodriguez Monti
2010/4/29 tedd : > At 8:29 AM -0300 4/28/10, Juan Rodriguez Monti wrote: >> >> Hello Guys, >> I would like to implement a two color row table for some queries that I'm >> doing. >> >> I use PHP to query a DB, then I use while to print all its results. I >> have a code pretty similar to this one : >

Re: [PHP] Two color rows in table inside while iteration

2010-04-29 Thread tedd
At 8:29 AM -0300 4/28/10, Juan Rodriguez Monti wrote: Hello Guys, I would like to implement a two color row table for some queries that I'm doing. I use PHP to query a DB, then I use while to print all its results. I have a code pretty similar to this one : $results = Here the QUERY;

Re: [PHP] Security/Development Question

2010-04-29 Thread tedd
At 4:54 PM -0400 4/28/10, David Stoltz wrote: My concern is passing SQL queries in this way is not best practice - am I wrong? Please let me know how you would react to this? David : First, you are not wrong. Second, that's exactly the type of security risk you want to protect yourself from.

Re: [PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-29 Thread Gary .
On 4/25/10, ioan...@btinternet.com wrote: > I can return a target page - once, but then on refresh within a few > hours the script curl_error is that it cannot connect to the host and > return is empty. Failed to connect to host is a pretty strange error if they're doing anything regarding cookies