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:
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
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
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
-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
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)
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
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
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 =
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
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
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
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
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;
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
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?
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
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?
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
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
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
$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'];
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 =
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
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
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
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
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
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
- 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
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
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
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
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
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
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
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...
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]
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
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
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
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?
: 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
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
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
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
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
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
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:
:[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
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.
--
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
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
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
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
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
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
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
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
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
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(
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
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
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
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
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
66 matches
Mail list logo