Re: [PHP] What is The best way/tool for debuging PHP?

2012-05-27 Thread As'ad Djamalilleil
i'm using dreamweaver its just good for designing + debugging ,, you dont have to type all the code ,, it would generate the script by itself so you can learn from the generated script ,, but takes time to make it handy ,, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] What is The best way/tool for debuging PHP?

2012-05-27 Thread Lester Caine
LEOPARD Corporation wrote: Dev-PHP is an IDE, and I don't need such tool because I'm using Eclipse, and I'm very comfortable with. Good to hear others are using Eclipse as well ;) I work on a lot more than just PHP so as a single platform it's great - even between Linux and Windows. what I

Re: [PHP] What is The best way/tool for debuging PHP?

2012-05-26 Thread LEOPARD Corporation
Thanks for your reply. Dev-PHP is an IDE, and I don't need such tool because I'm using Eclipse, and I'm very comfortable with. what I really want to know is: what is the best pure debugging tool which its function is to debug PHP scripts and applications only. Thanks in advance! On Sat, May

Re: [PHP] What is The best way/tool for debuging PHP?

2012-05-26 Thread shiplu
There is nothing you can call best. But whether some tools, technology will perform better depends completely on the context. I know some ways to debug PHP codes. 1. Netbeans IDE. The debugging facility here is excellent. You can debug even a single file without creating a project. It uses

RE: [PHP] What is The best way/tool for debuging PHP?

2012-05-26 Thread admin
-Original Message- From: LEOPARD Corporation [mailto:leopardonline@gmail.com] Sent: Saturday, May 26, 2012 12:02 PM To: php-general@lists.php.net Subject: Re: [PHP] What is The best way/tool for debuging PHP? Thanks for your reply. Dev-PHP is an IDE, and I don't need such tool

Re: [PHP] What is the best way to process live data?

2009-08-29 Thread LinuxManMikeC
On Sat, Aug 29, 2009 at 3:31 PM, Paul Hallidaypaul.halli...@gmail.com wrote: For those of you that remember (not likely but anyway) I am working on some code that splits CLF records and feeds them into a database. What I need to do now is automate it. So what I have is a program (urlsnarf)

Re: [PHP] Is this the best way?

2008-03-19 Thread Jason Pruim
On Mar 19, 2008, at 12:02 AM, Shawn McKenzie wrote: Why is Jason schreefing again? Because I'm good at it? ;) -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424-9337 www.raoset.com [EMAIL PROTECTED] -- PHP General Mailing List

Re: [PHP] Is this the best way?

2008-03-19 Thread Jason Pruim
Just to warn you... I've been up for about 30 minutes and I'm still on my first shot of caffeine... Sorry if things don't make 100% sense :) On Mar 18, 2008, at 10:27 PM, Jochem Maas wrote: Jason Pruim schreef: On Mar 18, 2008, at 3:20 PM, Jochem Maas wrote: what started out as a simple

Re: [PHP] Is this the best way?

2008-03-19 Thread Stut
Jason Pruim wrote: $cmd = $iau ? 'verify account' : 'login'; I've seen these kinds of things in other scripts that I've looked at, but don't totally understand what the : does between 2 options... $cmd = $iau ? 'verify account' :'login'; if () { $cmd =

Re: [PHP] Is this the best way?

2008-03-19 Thread TG
Just to warn you... I've been up for about 30 minutes and I'm still on my first shot of caffeine... Sorry if things don't make 100% sense :) Same here. start from scratch again? By the time I'm ready to release this, I'll have 50 versions :) Measure twice, cut once. Not that I

Re: [PHP] Is this the best way?

2008-03-18 Thread TG
Somehow it is getting to this statement and the variable that you are using just before the ORDER BY part is empty, Why don't you show us that statement. Requested statement below: $query = SELECT * from .$linkauth['table']. order by .$sortOrder; The $linkauth['table'] is

Re: [PHP] Is this the best way?

2008-03-18 Thread Jochem Maas
what started out as a simple little reply bloated out into an inpromptu brain fart ... lots of bla .. enjoy :-) Jason Pruim schreef: Hi everyone, I am attempting to add a little error checking for a very simple login system. The info is stored in a MySQL database, and I am using mysqli to

Re: [PHP] Is this the best way?

2008-03-18 Thread Jason Pruim
On Mar 18, 2008, at 3:20 PM, Jochem Maas wrote: what started out as a simple little reply bloated out into an inpromptu brain fart ... lots of bla .. enjoy :-) Jason Pruim schreef: Hi everyone, I am attempting to add a little error checking for a very simple login system. The info is

Re: [PHP] Is this the best way?

2008-03-18 Thread Jason Pruim
On Mar 18, 2008, at 12:26 PM, TG wrote: Somehow it is getting to this statement and the variable that you are using just before the ORDER BY part is empty, Why don't you show us that statement. Requested statement below: $query = SELECT * from .$linkauth['table']. order by .$sortOrder;

Re: [PHP] Is this the best way?

2008-03-18 Thread Jochem Maas
Jason Pruim schreef: On Mar 18, 2008, at 3:20 PM, Jochem Maas wrote: what started out as a simple little reply bloated out into an inpromptu brain fart ... lots of bla .. enjoy :-) Jason Pruim schreef: Hi everyone, I am attempting to add a little error checking for a very simple login

Re: [PHP] Is this the best way?

2008-03-18 Thread Shawn McKenzie
Why is Jason schreefing again? Jochem Maas wrote: Jason Pruim schreef: On Mar 18, 2008, at 3:20 PM, Jochem Maas wrote: what started out as a simple little reply bloated out into an inpromptu brain fart ... lots of bla .. enjoy :-) Jason Pruim schreef: Hi everyone, I am attempting to

Re: [PHP] Is this the best way?

2008-03-17 Thread Jason Pruim
: Re: [PHP] Is this the best way? On Mar 14, 2008, at 1:44 PM, TG wrote: What error are you getting? Maybe there's some way to fix that too. The error I get without checking the row count is this: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server

Re: [PHP] Is this the best way?

2008-03-14 Thread Dan Joseph
I am attempting to add a little error checking for a very simple login system. The info is stored in a MySQL database, and I am using mysqli to connect to it. I have it working with the solution provided below, but I am wondering if this is the right way to do it or if there is a better way?

Re: [PHP] Is this the best way?

2008-03-14 Thread TG
I think the first thing I'd check is why you'd have more than one row being returned. Is this a problem with some other part of the system? Bad data import? Not checking for unique users when creating them? Something like that. If you do everything you can to prevent the possibility of

Re: [PHP] Is this the best way?

2008-03-14 Thread Jason Pruim
On Mar 14, 2008, at 12:45 PM, Dan Joseph wrote: I am attempting to add a little error checking for a very simple login system. The info is stored in a MySQL database, and I am using mysqli to connect to it. I have it working with the solution provided below, but I am wondering if this is the

Re: [PHP] Is this the best way?

2008-03-14 Thread Jason Pruim
On Mar 14, 2008, at 12:51 PM, TG wrote: I think the first thing I'd check is why you'd have more than one row being returned. Is this a problem with some other part of the system? Bad data import? Not checking for unique users when creating them? Something like that. The

Re: [PHP] Is this the best way?

2008-03-14 Thread Richard Heyes
$rowcnt = mysqli_num_rows($loginResult); if($rowcnt !=1){ echo Auth failed; die(Auth failed... Sorry); }else{ while($row1 = mysqli_fetch_array($loginResult)) { $_SESSION['user'] = $row1['loginName'];

Re: [PHP] Is this the best way?

2008-03-14 Thread Eric Butera
On Fri, Mar 14, 2008 at 1:02 PM, Richard Heyes [EMAIL PROTECTED] wrote: $rowcnt = mysqli_num_rows($loginResult); if($rowcnt !=1){ echo Auth failed; die(Auth failed... Sorry); }else{ while($row1 =

Re: [PHP] Is this the best way?

2008-03-14 Thread Shawn McKenzie
Dan Joseph wrote: I am attempting to add a little error checking for a very simple login system. The info is stored in a MySQL database, and I am using mysqli to connect to it. I have it working with the solution provided below, but I am wondering if this is the right way to do it or if there

Re: [PHP] Is this the best way?

2008-03-14 Thread Jason Pruim
On Mar 14, 2008, at 1:05 PM, Eric Butera wrote: On Fri, Mar 14, 2008 at 1:02 PM, Richard Heyes [EMAIL PROTECTED] wrote: Yes, if it is a lack of being able to see your value using print_r or echo, then use var_dump(). Seeing the value's and printing them arn't a problem... Just a hold

Re: [PHP] Is this the best way?

2008-03-14 Thread Jason Pruim
On Mar 14, 2008, at 1:15 PM, Shawn McKenzie wrote: Dan Joseph wrote: I am attempting to add a little error checking for a very simple login system. The info is stored in a MySQL database, and I am using mysqli to connect to it. I have it working with the solution provided below, but I am

Re: [PHP] Is this the best way?

2008-03-14 Thread TG
What error are you getting? Maybe there's some way to fix that too. Just remember that errors and notices are like pain. It usually means there's something wrong. If you're getting an error, there may be a better way of doing waht you're doing. Ideally, you should get zero results if

Re: [PHP] Is this the best way?

2008-03-14 Thread Jason Pruim
On Mar 14, 2008, at 1:44 PM, TG wrote: What error are you getting? Maybe there's some way to fix that too. The error I get without checking the row count is this: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to

Re: [PHP] Is this the best way?

2008-03-14 Thread Jim Lucas
Jason Pruim wrote: On Mar 14, 2008, at 1:15 PM, Shawn McKenzie wrote: Dan Joseph wrote: I am attempting to add a little error checking for a very simple login system. The info is stored in a MySQL database, and I am using mysqli to connect to it. I have it working with the solution provided

Re: [PHP] Is this the best way?

2008-03-14 Thread TG
- Original Message - From: Jason Pruim [EMAIL PROTECTED] To: TG [EMAIL PROTECTED] Cc: PHP General List php-general@lists.php.net Date: Fri, 14 Mar 2008 14:56:32 -0400 Subject: Re: [PHP] Is this the best way? On Mar 14, 2008, at 1:44 PM, TG wrote: What error are you getting

Re: [PHP] Is this the best way?

2008-03-14 Thread Jason Pruim
On Mar 14, 2008, at 5:03 PM, TG wrote: - Original Message - From: Jason Pruim [EMAIL PROTECTED] To: TG [EMAIL PROTECTED] Cc: PHP General List php-general@lists.php.net Date: Fri, 14 Mar 2008 14:56:32 -0400 Subject: Re: [PHP] Is this the best way? On Mar 14, 2008, at 1:44 PM, TG

Re: [PHP] Is this the best way?

2008-03-14 Thread TG
Then it's the other query (with the ORDER BY) that you want to look at to fix the SQL error. Don't forget to use (assuming MySQL) mysql_real_escape_string() on all variables being used in the SQL query. That'll help prevent a problem with single quotes or other bad characters showing up in

Re: [PHP] Is this the best way?

2008-03-14 Thread Jason Pruim
On Mar 14, 2008, at 5:40 PM, TG wrote: Then it's the other query (with the ORDER BY) that you want to look at to fix the SQL error. Don't forget to use (assuming MySQL) mysql_real_escape_string() on all variables being used in the SQL query. That'll help prevent a problem with single

Re: [PHP] Is this the best way?

2008-03-14 Thread Jim Lucas
Jason Pruim wrote: On Mar 14, 2008, at 5:03 PM, TG wrote: - Original Message - From: Jason Pruim [EMAIL PROTECTED] To: TG [EMAIL PROTECTED] Cc: PHP General List php-general@lists.php.net Date: Fri, 14 Mar 2008 14:56:32 -0400 Subject: Re: [PHP] Is this the best way? On Mar 14

Re: [PHP] What is the best way to protect the PHP page that returns the AJAX data?

2007-05-13 Thread Richard Lynch
On Thu, May 10, 2007 10:18 pm, Daevid Vincent wrote: Like most sites, someone needs to join up to use mine. Errr. To be pedantic, I don't think most sites require registration, actually... :-) I'm not saying it's bad or anything, just that there's still way more HTML pages out there with free

Re: [PHP] What is the best way to protect the PHP page that returns the AJAX data? [solved]

2007-05-13 Thread Richard Lynch
On Fri, May 11, 2007 9:59 pm, [EMAIL PROTECTED] wrote: Set ajaxObject.setRequestHeader(User-Agent,SecretName); in Javascript and check for it in PHP. Not fool-proof, but the average person wouldn't be able to get in. Unless the user View Source and read your AJAX code... This is not going to

Re: [PHP] What is the best way to protect the PHP page that returns the AJAX data? [solved]

2007-05-13 Thread Stut
Richard Lynch wrote: On Fri, May 11, 2007 9:59 pm, [EMAIL PROTECTED] wrote: Set ajaxObject.setRequestHeader(User-Agent,SecretName); in Javascript and check for it in PHP. Not fool-proof, but the average person wouldn't be able to get in. Unless the user View Source and read your AJAX code...

Re: [PHP] What is the best way to protect the PHP page that returns the AJAX data? [solved]

2007-05-12 Thread Robert Cummings
On Fri, 2007-05-11 at 22:12 -0700, [EMAIL PROTECTED] wrote: I don't see you giving a solution. The solution is the same as for any session in which you want to protect data. It hardly needs covering yet again. Read the archives. Cheers, Rob. On 5/11/07, Robert Cummings [EMAIL PROTECTED]

Re: [PHP] What is the best way to protect the PHP page that returns the AJAX data? [solved]

2007-05-11 Thread Crayon Shin Chan
On Friday 11 May 2007 12:45, Robert Cummings wrote: On Thu, 2007-05-10 at 21:23 -0700, Daevid Vincent wrote: Thanks for the suggestion and concern. Fear not, I'm a PHP Guru as mentioned. A Guru would have spent 60 seconds testing to see if the session_start() scenario worked BEFORE posting

Re: [PHP] What is the best way to protect the PHP page that returns the AJAX data? [solved]

2007-05-11 Thread clive
Robert Cummings wrote: A Guru would have spent 60 seconds testing to see if the session_start() scenario worked BEFORE posting to the list :B /me was thinking the same -- Regards, Clive. Real Time Travel Connections {No electrons were harmed in the creation, transmission or reading of

Re: [PHP] What is the best way to protect the PHP page that returns the AJAX data?

2007-05-11 Thread Rangel Reale
I would also like to know how people are dealing with this, how to you make sure people don't steal your data, sometimes it can be something simple like state names, but sometimes it can be your entire user/email database, who knows? And OF COURSE he is not passing a query on the url, a dumb

Re: [PHP] What is the best way to protect the PHP page that returns the AJAX data?

2007-05-11 Thread Robert Cummings
On Fri, 2007-05-11 at 09:01 -0300, Rangel Reale wrote: I would also like to know how people are dealing with this, how to you make sure people don't steal your data, sometimes it can be something simple like state names, but sometimes it can be your entire user/email database, who knows?

Re: [PHP] What is the best way to protect the PHP page thatreturns the AJAX data?

2007-05-11 Thread Rangel Reale
: php-general@lists.php.net Sent: Friday, May 11, 2007 10:13 AM Subject: Re: [PHP] What is the best way to protect the PHP page thatreturns the AJAX data? On Fri, 2007-05-11 at 09:01 -0300, Rangel Reale wrote: I would also like to know how people are dealing with this, how to you make sure

Re: [PHP] What is the best way to protect the PHP page that returns the AJAX data?

2007-05-11 Thread Eric Butera
On 5/10/07, Daevid Vincent [EMAIL PROTECTED] wrote: I'm a PHP guru Then this question shouldn't have been asked. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What is the best way to protect the PHP page thatreturns the AJAX data?

2007-05-11 Thread Robert Cummings
On Fri, 2007-05-11 at 10:33 -0300, Rangel Reale wrote: That was only an example, the question is, how do I protect possibly sensitive data sent by AJAX, so one user can't access other user's data? Is the anwser just don't do this with AJAX? No, do what you would normally do. Filter access

Re: [PHP] What is the best way to protect the PHP page that returns the AJAX data? [solved]

2007-05-11 Thread heavyccasey
Set ajaxObject.setRequestHeader(User-Agent,SecretName); in Javascript and check for it in PHP. Not fool-proof, but the average person wouldn't be able to get in. On 5/11/07, clive [EMAIL PROTECTED] wrote: Robert Cummings wrote: A Guru would have spent 60 seconds testing to see if the

Re: [PHP] What is the best way to protect the PHP page that returns the AJAX data? [solved]

2007-05-11 Thread Robert Cummings
On Fri, 2007-05-11 at 19:59 -0700, [EMAIL PROTECTED] wrote: Set ajaxObject.setRequestHeader(User-Agent,SecretName); in Javascript and check for it in PHP. Not fool-proof, but the average person wouldn't be able to get in. Bleh, do it right. Don't settle for half-assed solutions that rely on

Re: [PHP] What is the best way to protect the PHP page that returns the AJAX data? [solved]

2007-05-11 Thread heavyccasey
I don't see you giving a solution. On 5/11/07, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2007-05-11 at 19:59 -0700, [EMAIL PROTECTED] wrote: Set ajaxObject.setRequestHeader(User-Agent,SecretName); in Javascript and check for it in PHP. Not fool-proof, but the average person wouldn't

Re: [PHP] What is the best way to protect the PHP page that returns the AJAX data?

2007-05-10 Thread heavyccasey
That's a humongous, humongous security risk there. What if someone goes http://example.com/gimmedata.php?query=DROP DATABASE hi? Unless I misunderstood. A better way would be in the script: switch ($_GET['query']) { case fetch: $dbquery = 'SELECT stuff FROM stuff'; break; case eatsnacks:

RE: [PHP] What is the best way to protect the PHP page that returns the AJAX data? [solved]

2007-05-10 Thread Daevid Vincent
:[EMAIL PROTECTED] Sent: Thursday, May 10, 2007 8:28 PM To: Daevid Vincent Cc: php-general@lists.php.net Subject: Re: [PHP] What is the best way to protect the PHP page that returns the AJAX data? That's a humongous, humongous security risk there. What if someone goes http://example.com

RE: [PHP] What is the best way to protect the PHP page that returns the AJAX data? [solved]

2007-05-10 Thread Robert Cummings
On Thu, 2007-05-10 at 21:23 -0700, Daevid Vincent wrote: Thanks for the suggestion and concern. Fear not, I'm a PHP Guru as mentioned. A Guru would have spent 60 seconds testing to see if the session_start() scenario worked BEFORE posting to the list :B Cheers, Rob. --

RE: [PHP] What is the best way to backup a MySQL Database

2004-03-22 Thread Pablo Gosse
Elliot J. Balanza wrote: Hi I've been trying to use MySQL dump with a php query (since we dont have like a mysql_dump function) but it's not working. Can anyone please point me to a page so i can read a method to backup MySQL databases to an .sql file using php? thanks. Vamp Why

Re: [PHP] What is the best way to backup a MySQL Database

2004-03-22 Thread Brian V Bonini
On Mon, 2004-03-22 at 14:35, Elliot J. Balanza wrote: Hi I've been trying to use MySQL dump with a php query (since we dont have like a mysql_dump function) but it's not working. Can anyone please point me to a page so i can read a method to backup MySQL databases to an .sql file using

Re: [PHP] Fastest loop code/best way to get database results into array

2003-12-01 Thread Robert Cummings
On Mon, 2003-12-01 at 03:06, Galen wrote: I'm working on some code that deals with a LOT of results from a MySQL database and drops them into an array. It deals with about 17,200 results on a very fast box in about 0.5 seconds, which is not too bad, until I realize I may need to call it on

Re: [PHP] Fastest loop code/best way to get database results into array

2003-12-01 Thread Eugene Lee
On Mon, Dec 01, 2003 at 03:24:35AM -0500, Robert Cummings wrote: : : On Mon, 2003-12-01 at 03:06, Galen wrote: : : I'm working on some code that deals with a LOT of results from a MySQL : database and drops them into an array. It deals with about 17,200 : results on a very fast box in about

Re: [PHP] what is the best way to handle connectivity

2002-10-07 Thread salamander
Jeff, ODBC should work just fine - you can just link --with-iodbc as per the HOWTOs on www.iodbc.org. If you use a native driver than the Informix client needs to be installed on the same box. Best regards, Andrew Hill Director of Technology Evangelism - OpenLink Software Universal Data

Re: [PHP] what is the best way to handle connectivity

2002-10-07 Thread Jeff Bluemel
thanks for the FYI... this is what I as assuming the answer was going to be, but I wanted to make sure. Jeff Salamander [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Jeff, ODBC should work just fine - you can just link --with-iodbc as per the HOWTOs on

Re: [PHP] What is the best way to do this...

2001-10-26 Thread David Robley
On Fri, 26 Oct 2001 16:48, DeloX wrote: Let s say i have 5 pages on my site. I want some content to appear on each page so that when i want to change that content on all the pages i have only one place to modify. I used to write that content in a .txt file and having it read each time any of

Re: [PHP] What is the best way to do this...

2001-10-26 Thread * RzE:
Original message From: DeloX [EMAIL PROTECTED] Date: Fri, Oct 26, 2001 at 03:18:33AM -0400 Message-ID: [EMAIL PROTECTED] Subject: [PHP] What is the best way to do this... Let s say i have 5 pages on my site. I want some content to appear on each page so that when i want to change that content

RE: [PHP] What is the best way to do this...

2001-10-26 Thread Joseph Blythe
Personally I would look at a templating system, there are lots of them around. I have only used FastTemplates and Smarty I would reccommend the later. http://www.phpinsider.com/php/code/Smarty/ or have a look at for a few more: http://phpclasses.upperdesign.com/browse.html/class/1 Hope this

RE: [PHP] RE: [PHP-DB] Best way to check if a query succeeded

2001-03-30 Thread Boget, Chris
Wouldn't doing it like this however be ok: if ($result = mysql_query($query)) { I could be wrong, but I do not believe so. The above would evaluate as _true_ 100% of the time because irregardless of success of the query, $result is getting a value. It's just like doing: $i = "joe"; if(

Re: [PHP] RE: [PHP-DB] Best way to check if a query succeeded

2001-03-30 Thread Christian Reiniger
On Friday 30 March 2001 16:25, you wrote: Wouldn't doing it like this however be ok: if ($result = mysql_query($query)) { I could be wrong, but I do not believe so. The You are wrong :) ($result = mysql_query(...)) assigns a value to result, and the entire expression evaluates to

Re: [PHP] RE: [PHP-DB] Best way to check if a query succeeded

2001-03-29 Thread Stuart J. Browne
Doesn't the command return 1 or 0 in success or failure? Not 1 or 0. It returns 0 or some other value. Almost the same, but not quite. You may not have a result Probably wrong but something like if (mysql_query($query)) { } else { } or you could die out mysql_query($query) or

[PHP] Re: [PHP-DB] Re: [PHP] RE: [PHP-DB] Best way to check if a query succeeded

2001-03-29 Thread Terry Romine
On Thursday, March 29, 2001, at 08:32 AM, Nick Davies wrote: Doesn't the command return 1 or 0 in success or failure? You may not have a result Probably wrong but something like if (mysql_query($query)) { } else { } What I understand is that the return from the query only tells you

Re: [PHP] RE: [PHP-DB] Best way to check if a query succeeded

2001-03-29 Thread Nick Davies
Doesn't the command return 1 or 0 in success or failure? You may not have a result Probably wrong but something like if (mysql_query($query)) { } else { } or you could die out mysql_query($query) or die On Thu, 29 Mar 2001, Boget, Chris wrote: i was just wondering what you

RE: [PHP] RE: [PHP-DB] Best way to check if a query succeeded

2001-03-29 Thread Boget, Chris
Doesn't the command return 1 or 0 in success or failure? Not 1 or 0. It returns 0 or some other value. Almost the same, but not quite. You may not have a result Probably wrong but something like if (mysql_query($query)) { } else { } or you could die out mysql_query($query) or die