[PHP] Re: 0x9f54

2007-04-11 Thread Man-wai Chang
how do you do string comparison in utf-8? say the user entered a chinese string the browser and you need to search for the string in the MySQL table using PHP. -- .~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org / v \ Simplicity is Beauty! May the Force and Farce be with you!

[PHP] Re: Evaluating strings...

2007-04-11 Thread itoctopus
= is for assigment == is for typeless comparison (meaning 1 will be equal to '1', '' will be equal to 0) === is for type comparision (meaning 1 will only be equal to 1, '' will only be equal to '', and TRUE will only be equal to true) -- itoctopus - http://www.itoctopus.com ""Anthony J. Maske"" <[

Re: [PHP] Retrieving parameters passed from .html...?

2007-04-11 Thread itoctopus
yup, $_GET to get stuff from the URL $_POST to get stuff from the form $_SESSION to get stuff from the session $_FILES in case you have files in your form, they will be stored here -- itoctopus - http://www.itoctopus.com ""Anthony J. Maske"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECT

Re: [PHP] MD5 & bot Question

2007-04-11 Thread tedd
At 7:50 PM -0500 4/10/07, Richard Lynch wrote: On Sun, April 8, 2007 11:12 am, tedd wrote: chose from. Unless, there is something here that I don't understand (which very well could be), I can't see how anyone, without massive computer resources, could break that. Am I wrong? You are wron

Re: [PHP] Retrieving parameters passed from .html...?

2007-04-11 Thread clive
itoctopus wrote: yup, $_GET to get stuff from the URL $_POST to get stuff from the form $_SESSION to get stuff from the session $_FILES in case you have files in your form, they will be stored here and $_REQUEST to get $_GET, $_POST, and $_COOKIE all in one -- PHP General Mailing List (http:/

Re: [PHP] Retrieving parameters passed from .html...?

2007-04-11 Thread Stut
clive wrote: itoctopus wrote: yup, $_GET to get stuff from the URL $_POST to get stuff from the form $_SESSION to get stuff from the session $_FILES in case you have files in your form, they will be stored here and $_REQUEST to get $_GET, $_POST, and $_COOKIE all in one If you're going to s

Re: [PHP] MD5 & bot Question

2007-04-11 Thread tedd
At 8:11 PM -0500 4/10/07, Richard Lynch wrote: On Tue, April 10, 2007 7:47 am, tedd wrote: Your use of metaphor is quite colorful, but if you if change a single pixel in an image, then you change the MD5 signature -- that is what I was talking about -- and that is not wrong. Unless I look a

[PHP] downloading an image

2007-04-11 Thread Ross
tthe image does not display although it exists in the table 'images' This calls the download script this is the download script id = $_GET['id']; $query = "SELECT name, type, size, content FROM images WHERE id ='$id'"; $result = mysql_query($query) or die(mysql_error()); list($name, $ty

Re: [PHP] MD5 & bot Question

2007-04-11 Thread tedd
At 7:52 PM -0500 4/10/07, Richard Lynch wrote: On Sun, April 8, 2007 11:26 am, tedd wrote: The way I figure it, in an image I have 72 dot per square inch -- so, in one square inch that's 5,184 places for me to store a 24 bit key. To me, that's a lot of places to hid my Easter egg -- is that n

Re: [PHP] MD5 & bot Question

2007-04-11 Thread tedd
At 8:36 PM -0500 4/10/07, Richard Lynch wrote: > With millions of different images and more being added, it presents a considerable challenge to crack. I think not... You only have to find 10,000 people who hate MS and give each of them 200 unique images to identify. Well actually, all on

RE: [PHP] downloading an image

2007-04-11 Thread Jay Blanchard
[snip] tthe image does not display although it exists in the table 'images' [/snip] http://www.google.com/search?hl=en&q=display+image+from+blob+PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Array remove function?

2007-04-11 Thread Tijnema !
On 4/10/07, Richard Lynch <[EMAIL PROTECTED]> wrote: http://php.net/array_flip followed up an unset, followed by another array_flip, I guess... What if you have an array like this: Array ( [0] => Array ( [0] => 1 [1] => 2 [2] => 2 [3] => 2

Re: [PHP] Retrieving parameters passed from .html...?

2007-04-11 Thread tedd
At 2:48 PM +0200 4/11/07, clive wrote: itoctopus wrote: yup, $_GET to get stuff from the URL $_POST to get stuff from the form $_SESSION to get stuff from the session $_FILES in case you have files in your form, they will be stored here and $_REQUEST to get $_GET, $_POST, and $_COOKIE all in

Re: [PHP] Retrieving parameters passed from .html...?

2007-04-11 Thread Richard Davey
tedd wrote: I wouldn't recommend using $_REQUEST -- it can be problematic in a couple of ways. 1) You don't know where the data came from; 2) One (GET or POST) takes precedence over the other -- I don't remember which at the moment. 2) It depends on your php.ini setting, specifically: varia

[PHP] PHP editor

2007-04-11 Thread Jonathan Kahan
Hi all, I beleive this is in the realm of php (I have learned my lesson from last time). Does anyone have recomendation for any free (I.E. permanently free not 30 day trial) of a good php editor. The ones i am seeing all only allow usage for a limited time. Kind Regards Jonathan Kahan --

RE: [PHP] PHP editor

2007-04-11 Thread Jay Blanchard
[snip] I beleive this is in the realm of php (I have learned my lesson from last time). Does anyone have recomendation for any free (I.E. permanently free not 30 day trial) of a good php editor. The ones i am seeing all only allow usage for a limited time. [/snip] Eclipse Notepad 2 -- PHP Gen

Re: [PHP] PHP editor

2007-04-11 Thread jgodish
Check Out Easy Eclipse http://www.easyeclipse.org/site/home/ Quoting Jonathan Kahan <[EMAIL PROTECTED]>: > Hi all, > > I beleive this is in the realm of php (I have learned my lesson from last > time). Does anyone have recomendation for any free (I.E. permanently free > not 30 day trial) of a go

Re: [PHP] PHP editor

2007-04-11 Thread Jochem Maas
Jonathan Kahan wrote: > Hi all, > > I beleive this is in the realm of php (I have learned my lesson from > last time). Does anyone have recomendation for any free (I.E. > permanently free not 30 day trial) of a good php editor. The ones i am > seeing all only allow usage for a limited time. STFA,

Re: [PHP] PHP editor

2007-04-11 Thread Robert Cummings
On Wed, 2007-04-11 at 10:12 -0400, Jonathan Kahan wrote: > Hi all, > > I beleive this is in the realm of php (I have learned my lesson from last > time). Does anyone have recomendation for any free (I.E. permanently free > not 30 day trial) of a good php editor. The ones i am seeing all only all

Re: [PHP] Re: 0x9f54

2007-04-11 Thread Seak, Teng-Fong
OK, I've spent five minutes to try to understand what you're doing. There're something I don't understand: 1. You use dbase_open("/home/bt/canton.DBF",0); which seems that you open a database file directly. Well, I don't do like this. I use mysql_connect("localhost", "username", "some_passwor

[PHP] Re: downloading an image

2007-04-11 Thread Roberto Mansfield
Verify that your $type is a correct mime type. Ross wrote: > tthe image does not display although it exists in the table 'images' > > > This calls the download script > > > $property_id = $_SESSION['property_id'] ; > $query = "SELECT * FROM images WHERE property_id='$property_id'"; > $resu

[PHP] Re: downloading an image

2007-04-11 Thread Ross
yes it is image/jpeg "Roberto Mansfield" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Verify that your $type is a correct mime type. > > > Ross wrote: >> tthe image does not display although it exists in the table 'images' >> >> >> This calls the download script >> >> >> > $pro

[PHP] UPDATE and redirect

2007-04-11 Thread marcelo Wolfgang
Hi all, I'm new to this list and new to php programming so sorry if I do something wrong here :) Ok, now to my problem. I've created a query to update a mysql db, and it isn't working, and it's not throwing me any errors, so I need some help to figure out what's wrong here. My code follows

[PHP] Re: PHP editor

2007-04-11 Thread Steve
You could always opt to use emacs or vi. ""Jonathan Kahan"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > I beleive this is in the realm of php (I have learned my lesson from last > time). Does anyone have recomendation for any free (I.E. permanently free > not 30 d

Re: [PHP] UPDATE and redirect

2007-04-11 Thread Brad Bonkoski
marcelo Wolfgang wrote: Hi all, I'm new to this list and new to php programming so sorry if I do something wrong here :) Ok, now to my problem. I've created a query to update a mysql db, and it isn't working, and it's not throwing me any errors, so I need some help to figure out what's wro

Re: [PHP] UPDATE and redirect

2007-04-11 Thread Fredrik Thunberg
marcelo Wolfgang skrev: Hi all, I'm new to this list and new to php programming so sorry if I do something wrong here :) Ok, now to my problem. I've created a query to update a mysql db, and it isn't working, and it's not throwing me any errors, so I need some help to figure out what's wro

Re: [PHP] downloading an image

2007-04-11 Thread Jochem Maas
Ross wrote: > tthe image does not display although it exists in the table 'images' > > > This calls the download script > > > $property_id = $_SESSION['property_id'] ; > $query = "SELECT * FROM images WHERE property_id='$property_id'"; > $result = mysql_query($query); > while($row = mysql_fe

[PHP] PHp Install problems on debian linux

2007-04-11 Thread Don Don
Hi all am having issues with a little problem regarding php5 installation on a debian linux machine. while trying to install php5 and supported modules I get the following error messages, what can i do to get rid of them and continue with the installation ? The following packages have

Re: [PHP] UPDATE and redirect

2007-04-11 Thread marcelo Wolfgang
Hi, It's fixed, I think the problem where at the '==' ... I have to remember that in PHP this is like ActionScript. Also, what if $_GET['act'] is neither 'a' or 'd'? Again, what if $_GET['id'] is null? The only way to not be 'a' or 'd' or to be null is if someone mess with url, which shoul

[PHP] SQL Source Control

2007-04-11 Thread Richard Davey
Hi all, I know a lot of you use various means for PHP source control (CVS, SVN, etc), which is all well and fine, but how do you manage source control on your databases? Say you've got an upgrade to a site, all of the new PHP files are controlled by SVN, so you can rollback at any time, but

[PHP] Re: SQL Source Control

2007-04-11 Thread Colin Guthrie
Richard Davey wrote: > Hi all, > > I know a lot of you use various means for PHP source control (CVS, SVN, > etc), which is all well and fine, but how do you manage source control > on your databases? > > Say you've got an upgrade to a site, all of the new PHP files are > controlled by SVN, so yo

Re: [PHP] Re: 0x9f54

2007-04-11 Thread Seak, Teng-Fong
Man-wai Chang wrote: > how do you do string comparison in utf-8? say the user entered a chinese > string the browser and you need to search for the string in the MySQL > table using PHP. > How? Of course in the usual PHP way! (Be warned that we're getting more and more off-topic. This is

Re: [PHP] PHP editor

2007-04-11 Thread Philip Thompson
On Apr 11, 2007, at 9:17 AM, Jochem Maas wrote: Jonathan Kahan wrote: Hi all, I beleive this is in the realm of php (I have learned my lesson from last time). Does anyone have recomendation for any free (I.E. permanently free not 30 day trial) of a good php editor. The ones i am seeing all

Re: [PHP] PHp Install problems on debian linux

2007-04-11 Thread Robert Cummings
Despite the fact this question involves installing PHP5, it's actually a question about installing Debian packages. Maybe you should look into package managers for Debian. Personally I use dselect, and it usually auto selects any dependencies not already installed. PHP though, I install from source

[PHP] Re: PHP editor

2007-04-11 Thread Al
Does Estrin Technologies, inc. provide its products free? All GOOD, worthwhile editors cost something. Personally, I use phpEdit. Jonathan Kahan wrote: Hi all, I beleive this is in the realm of php (I have learned my lesson from last time). Does anyone have recomendation for any free (I.E.

Re: [PHP] PHP editor

2007-04-11 Thread Robert Cummings
On Wed, 2007-04-11 at 10:30 -0500, Philip Thompson wrote: > > Obviously some people think this is NOT "in the realm of php." > Nonetheless, I think it's a relevant question and others have > answered it well. Relevant sure... but the answers are in the frickin' archives several times over. Ch

Re: [PHP] dynamic web interface and size

2007-04-11 Thread Tijnema !
On 4/11/07, Richard Lynch <[EMAIL PROTECTED]> wrote: 1000 pixels? Woof. Guess my 800x600 box is not in your market... 800x600 :| Using 1600x1200 here :) I like the idea,. because most sites are made for 800x600 and they are so small on my screen... Tijnema -- PHP General Mailing List (

Re: [PHP] PHP editor

2007-04-11 Thread afan
> On Apr 11, 2007, at 9:17 AM, Jochem Maas wrote: > >> Jonathan Kahan wrote: >>> Hi all, >>> >>> I beleive this is in the realm of php (I have learned my lesson from >>> last time). Does anyone have recomendation for any free (I.E. >>> permanently free not 30 day trial) of a good php editor. The on

Re: [PHP] PHP editor

2007-04-11 Thread Jochem Maas
Robert Cummings wrote: > On Wed, 2007-04-11 at 10:30 -0500, Philip Thompson wrote: >> Obviously some people think this is NOT "in the realm of php." >> Nonetheless, I think it's a relevant question and others have >> answered it well. > > Relevant sure... but the answers are in the frickin' ar

Re: [PHP] SQL Source Control

2007-04-11 Thread Jochem Maas
Richard Davey wrote: > Hi all, > > I know a lot of you use various means for PHP source control (CVS, SVN, > etc), which is all well and fine, but how do you manage source control > on your databases? > > Say you've got an upgrade to a site, all of the new PHP files are > controlled by SVN, so yo

[PHP] Re: Question on Portfoilo's

2007-04-11 Thread Steve
If you're working under an NDA or on code that doesn't belong to you, you'll most likely need to hit up the hobbiest side of programming to build your portfolio. Sit down, plan some app that would make your life easier (or someone else's), go through the design process, and then code it to impl

Re: [PHP] dynamic web interface and size

2007-04-11 Thread Robert Cummings
On Wed, 2007-04-11 at 17:44 +0200, Tijnema ! wrote: > On 4/11/07, Richard Lynch <[EMAIL PROTECTED]> wrote: > > > > > > 1000 pixels? > > > > Woof. > > > > Guess my 800x600 box is not in your market... > > 800x600 :| > > Using 1600x1200 here :) > > > I like the idea,. because most sites are made

Re: [PHP] Bind IP with fsockopen

2007-04-11 Thread chris
Thanks how would I handle the fgets line.. If I echo $sock I get resource ID #4 rather then the responce from the other computer. Before on my original script I returned the responce using fputs($fs, "$domain\r\n"); // send query $line = fgets($fs, 1024); // store reply echo $line; // output r

Re: [PHP] Bind IP with fsockopen

2007-04-11 Thread Tijnema !
On 4/11/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Thanks how would I handle the fgets line.. http://www.php.net/socket_read If I echo $sock I get resource ID #4 rather then the responce from the other computer. Before on my original script I returned the responce using fputs($fs, "$doma

[PHP] Posting a variable

2007-04-11 Thread Zhimmy Kanata
Hi, I am trying to pass a variable into a textfield and then pass the variable onto a php page for insertion into a Mysql database. However, I want to send the username of the person logging on. But instead php is taking the username of the logon information of the database. Which I

Re: [PHP] Bind IP with fsockopen

2007-04-11 Thread chris
Thanks Tijnema $line = trim(socket_read($sock, 1024)); was what I was after. Thanks - Original Message - From: "Tijnema !" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: Sent: Wednesday, April 11, 2007 5:09 PM Subject: Re: [PHP] Bind IP with fsockopen On 4/11/07, [EMAIL PROTECTE

Re: [PHP] SQL Source Control

2007-04-11 Thread Richard Davey
Jochem Maas wrote: lets forget that updating SQL schemas on massive DBs will likely take so much time that you will have to plan in downtime on the systems involved ... that's clearly out of the scope of this question. Yes, this was part of the problem (and reason for my original post). At th

Re: [PHP] Design Dilemma - Database Data Abstraction

2007-04-11 Thread Martin Alterisio
2007/4/10, Richard Lynch <[EMAIL PROTECTED]>: On Sat, April 7, 2007 11:49 am, Martin Alterisio wrote: > The solution I presented is to access, and act upon, a database as if > they > were PHP arrays, meaning that a table is presented as an array of > records. I don't quite get why you think thi

Re: [PHP] Posting a variable

2007-04-11 Thread siavash1979
1- your mysql query statement is better to have a WHERE part too. 2- I would use mysql_fetch_row instead of mysql_fetch_assoc 3- in your form, you're using a single quote. anything in between single quotes will be printed as is. you need to close your single quote and print username and open anot

Re: [PHP] Posting a variable

2007-04-11 Thread Robert Cummings
On Wed, 2007-04-11 at 09:59 -0700, [EMAIL PROTECTED] wrote: > 1- your mysql query statement is better to have a WHERE part too. > 2- I would use mysql_fetch_row instead of mysql_fetch_assoc Ummm, why would you want to reduce clarity and maintainability by using mysql_fetch_row()? Cheers, Rob. --

Re: [PHP] Re: Design Dilemma - Database Data Abstraction

2007-04-11 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-04-09 19:45:41 -0300: > Thanks but that's not what I'm looking for. As I said before, my problem > isn't to find an implementation of an ORM, but that the concept I'm working > on will use a very restricted API (array operations), and I'm having trouble > to keep it coher

Re: [PHP] Posting a variable

2007-04-11 Thread siavash1979
Quoting Robert Cummings <[EMAIL PROTECTED]>: > On Wed, 2007-04-11 at 09:59 -0700, [EMAIL PROTECTED] wrote: > > 1- your mysql query statement is better to have a WHERE part too. > > 2- I would use mysql_fetch_row instead of mysql_fetch_assoc > > Ummm, why would you want to reduce clarity and maint

Re: [PHP] Posting a variable

2007-04-11 Thread Jochem Maas
Robert Cummings wrote: > On Wed, 2007-04-11 at 09:59 -0700, [EMAIL PROTECTED] wrote: >> 1- your mysql query statement is better to have a WHERE part too. >> 2- I would use mysql_fetch_row instead of mysql_fetch_assoc > > Ummm, why would you want to reduce clarity and maintainability by using > mys

[PHP] output gz compression

2007-04-11 Thread Eric Butera
I am just curious if anybody else has this issue. My platform is OSX 10.4.9 using a custom compiled PHP 4.4.x (4.4.6 & 4.4.7RC1) I've tried using the php.ini setting zlib.output_compression = On and also ob_start("ob_gzhandler"); directly. Each time I call up the page it crashes. On the server

Re: [PHP] Posting a variable

2007-04-11 Thread Richard Davey
[EMAIL PROTECTED] wrote: Quoting Robert Cummings <[EMAIL PROTECTED]>: On Wed, 2007-04-11 at 09:59 -0700, [EMAIL PROTECTED] wrote: 1- your mysql query statement is better to have a WHERE part too. 2- I would use mysql_fetch_row instead of mysql_fetch_assoc Ummm, why would you want to reduce c

Re: [PHP] Posting a variable

2007-04-11 Thread Robert Cummings
On Wed, 2007-04-11 at 10:53 -0700, [EMAIL PROTECTED] wrote: > Quoting Robert Cummings <[EMAIL PROTECTED]>: > > > On Wed, 2007-04-11 at 09:59 -0700, [EMAIL PROTECTED] wrote: > > > 1- your mysql query statement is better to have a WHERE part too. > > > 2- I would use mysql_fetch_row instead of mysql

Re: [PHP] SQL Source Control

2007-04-11 Thread Lori Lay
Richard Davey wrote: Hi all, I know a lot of you use various means for PHP source control (CVS, SVN, etc), which is all well and fine, but how do you manage source control on your databases? Say you've got an upgrade to a site, all of the new PHP files are controlled by SVN, so you can roll

Re: [PHP] Re: PHP textbook suggestions?

2007-04-11 Thread Chris Lott
You're missing the point-- it's not that there is a practical difference in the examples, it's that there IS a difference, the students see it, and it is an extra point of confusion that isn't needed if one is being consistent. I completely recognize that the practical effects of the differences

Re: [PHP] PHP textbook suggestions?

2007-04-11 Thread Chris Lott
On 4/10/07, Richard Lynch <[EMAIL PROTECTED]> wrote: > print 'The cost is ' . $cost; > NOT > print "The cost is $cost"; > AND CERTAINLY NOT > print ("The cost is $cost"); echo "The cost is ", $cost; If you're going to be this picky, you'd better write your own textbook... :-) Perhaps instead

[PHP] Re: PHP editor

2007-04-11 Thread Sady Marcos
Using with CVS, PHP Eclipse no doubt http://download.eclipse.org/tools/pdt/downloads/?release=S20070401-RC3 Unzip and execute eclipse.exe.. It's free... No CVS.. can use Zend Studio.. but isn't free... My choose is Eclipse.. ""Jonathan Kahan"" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAI

Re: [PHP] Re: Design Dilemma - Database Data Abstraction

2007-04-11 Thread Martin Alterisio
2007/4/11, Roman Neuhauser <[EMAIL PROTECTED]>: # [EMAIL PROTECTED] / 2007-04-09 19:45:41 -0300: > Thanks but that's not what I'm looking for. As I said before, my problem > isn't to find an implementation of an ORM, but that the concept I'm working > on will use a very restricted API (array ope

[PHP] location of the PHP executable

2007-04-11 Thread Mattias Thorslund
Hi, I have looked in the documentation but can't find it: My PHP script (which is run from the command prompt - CLI) needs to know the file system location of the PHP executable. This is because it needs to run a second PHP script. I know about the "which" command but it's not available in all OS

Re: [PHP] PHP editor

2007-04-11 Thread Zoltán Németh
I use jEdit http://www.jedit.org/ and I like it ;) it's not specifically for php but for any kind of programming, and has nice plugins for several programming languages you might edit with it greets Zoltán Németh 2007. 04. 11, szerda keltezéssel 10.12-kor Jonathan Kahan ezt írta: > Hi all, > >

Re: [PHP] UPDATE and redirect

2007-04-11 Thread Zoltán Németh
2007. 04. 11, szerda keltezéssel 16.57-kor Fredrik Thunberg ezt írta: > marcelo Wolfgang skrev: > > Hi all, > > > > I'm new to this list and new to php programming so sorry if I do > > something wrong here :) > > > > Ok, now to my problem. > > > > I've created a query to update a mysql db, and

Re: [PHP] Re: SQL Source Control

2007-04-11 Thread Zoltán Németh
2007. 04. 11, szerda keltezéssel 16.19-kor Colin Guthrie ezt írta: > Richard Davey wrote: > > Hi all, > > > > I know a lot of you use various means for PHP source control (CVS, SVN, > > etc), which is all well and fine, but how do you manage source control > > on your databases? > > > > Say you'v

Re: [PHP] UPDATE and redirect

2007-04-11 Thread Marcelo Wolfgang
and what if $_GET['id'] is something like "1; DROP TABLE tb_emails;" ?? SQL injection just waits to happen I think tha tit will be too much of a hacker effort just to kill a table of contact emails, and also he will have to guess ( is there other way ? ) the table name, but just to be on a s

[PHP] Re: PHP Directory List Script Files over 2 GB

2007-04-11 Thread Robert M
Does anyone else have any other ideas how to resolve this, I have tried multiple different methods all failed. Does the 2 GB limitation using filesize have an alternate method of producing the output. ? Thank you Logan for trying. -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Re: Design Dilemma - Database Data Abstraction

2007-04-11 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-04-11 16:34:27 -0300: > 2007/4/11, Roman Neuhauser <[EMAIL PROTECTED]>: > > > ># [EMAIL PROTECTED] / 2007-04-09 19:45:41 -0300: > >> Thanks but that's not what I'm looking for. As I said before, my problem > >> isn't to find an implementation of an ORM, but that the conce

Re: [PHP] UPDATE and redirect

2007-04-11 Thread Lori Lay
Marcelo Wolfgang wrote: and what if $_GET['id'] is something like "1; DROP TABLE tb_emails;" ?? SQL injection just waits to happen I think tha tit will be too much of a hacker effort just to kill a table of contact emails, and also he will have to guess ( is there other way ? ) the table na

Re: [PHP] UPDATE and redirect

2007-04-11 Thread Zoltán Németh
2007. 04. 11, szerda keltezéssel 17.36-kor Marcelo Wolfgang ezt írta: > > and what if $_GET['id'] is something like > > "1; DROP TABLE tb_emails;" > > ?? > > > > SQL injection just waits to happen > > I think tha tit will be too much of a hacker effort just to kill a table > of contact emails,

[PHP] Re: SQL Source Control

2007-04-11 Thread Colin Guthrie
Zoltán Németh wrote: > yeah I have the same problem ;) > > I have two kind of SQL files: > 1) SQL of the complete, blank DB structure - I store it for each main > version (I should store it for each version if I wouldn't be so > lazy... ;) ) > 2) SQL instructions to upgrade from a DB version to an

Re: [PHP] UPDATE and redirect

2007-04-11 Thread Marcelo Wolfgang
and what if $_GET['id'] is something like "1; DROP TABLE tb_emails;" ?? SQL injection just waits to happen Something I just thought, he could do a drop table inside an update statement ? because the query is : UPDATE tb_emails SET bol_active = $action WHERE auto_id = $id so if he changed t

Re: [PHP] UPDATE and redirect

2007-04-11 Thread Lori Lay
Marcelo Wolfgang wrote: and what if $_GET['id'] is something like "1; DROP TABLE tb_emails;" ?? SQL injection just waits to happen Something I just thought, he could do a drop table inside an update statement ? because the query is : UPDATE tb_emails SET bol_active = $action WHERE auto_id

Re: [PHP] mysql if empty

2007-04-11 Thread tedd
At 5:53 PM -0700 4/10/07, Jim Lucas wrote: Anyways, here is the expanded version hopefully to your liking. # Your request failed. Make up your own custom way of displaying the error. } else { if ( mysql_num_rows($results) > 0 ) { while ( $row = mysql_fetch_assoc($res

Re: [PHP] Re: PHP Directory List Script Files over 2 GB

2007-04-11 Thread Seak, Teng-Fong
Robert M wrote: Does anyone else have any other ideas how to resolve this, I have tried multiple different methods all failed. Does the 2 GB limitation using filesize have an alternate method of producing the output. ? Thank you Logan for trying. I think you'd better file a bug report to PH

[PHP] Re: PHP Directory List Script Files over 2 GB

2007-04-11 Thread Robert M
Well it looks like I am forced to use a different approach do to the limitations of PHP http://bugs.php.net/bug.php?id=27792 This Bug has been around now for HOW long now. Seems to me that it would have been addressed in the past few years, Gigabyte files have been around a long time. Maybe not

Re: [PHP] location of the PHP executable

2007-04-11 Thread Jim Lucas
Mattias Thorslund wrote: Hi, I have looked in the documentation but can't find it: My PHP script (which is run from the command prompt - CLI) needs to know the file system location of the PHP executable. This is because it needs to run a second PHP script. I know about the "which" command but i

[PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-11 Thread Arbitrio, Pat
You folks know anyone who fits this one? Description: Your task would be the maintenance and extension of our dynamic and cutting edge Intranet and Internet web sites written in PHP5. PHP/Mysql Experience: 3-4 years, where 1 year must be PHP5. Candidates must be well versed in: * PHP5

Re: [PHP] location of the PHP executable

2007-04-11 Thread Jarrel Cobb
Don't you have to run locate -u first to generate the database before using locate? You can't just assume a database exists already can you? On 4/11/07, Jim Lucas <[EMAIL PROTECTED]> wrote: Mattias Thorslund wrote: > Hi, > > I have looked in the documentation but can't find it: > > My PHP scri

Re: [PHP] PHP editor

2007-04-11 Thread Susana Carrasco
For Win, I use either Notepad++ or PHP Designer (www.mpsoftware.org). For Linux I use Joe.

Re: [PHP] location of the PHP executable

2007-04-11 Thread Davi
Em Quarta 11 Abril 2007 18:50, Jarrel Cobb escreveu: > Don't you have to run locate -u first to generate the database before using > locate? You can't just assume a database exists already can you? > If you can use locate, you can use which... =P BTW, do something to check OS then: IF OS == *ni

Re: [PHP] SQL Source Control

2007-04-11 Thread Travis Doherty
Richard Davey wrote: > Hi all, > > I know a lot of you use various means for PHP source control (CVS, > SVN, etc), which is all well and fine, but how do you manage source > control on your databases? > > Say you've got an upgrade to a site, all of the new PHP files are > controlled by SVN, so you

[PHP] Re: PHP textbook suggestions?

2007-04-11 Thread LuKreme
On 11-Apr-2007, at 13:06, Chris Lott wrote: You're missing the point-- it's not that there is a practical difference in the examples, it's that there IS a difference, the students see it, and it is an extra point of confusion that isn't needed if one is being consistent. I have to disagree, and

Re: [PHP] location of the PHP executable

2007-04-11 Thread Mattias Thorslund
Jim Lucas wrote: > Mattias Thorslund wrote: >> Hi, >> >> I have looked in the documentation but can't find it: >> >> My PHP script (which is run from the command prompt - CLI) needs to know >> the file system location of the PHP executable. This is because it needs >> to run a second PHP script. I

RE: [PHP] location of the PHP executable

2007-04-11 Thread Buesching, Logan J
IF db not exists THEN locate -u END-IF I'd hate to see the time it'd take to create a first-time database... this could take awhile to run. -Original Message- From: Davi [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 11, 2007 6:10 PM To: php-general@lists.php.net S

Re: [PHP] location of the PHP executable

2007-04-11 Thread Jochem Maas
Mattias Thorslund wrote: > Jim Lucas wrote: ... > $ /my-location-of/php myscript.php > /my-location-of/php > $ > > I was hoping there's a function or $_SERVER property that would contain > this? have you tried looking for this info you want? I can't say for sure if it always exists but on the fe

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-11 Thread Robert Cummings
On Wed, 2007-04-11 at 17:43 -0400, Arbitrio, Pat wrote: > > Other skills: > > * Dreamweaver *ROFLMFAO* Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-11 Thread Robert Cummings
On Wed, 2007-04-11 at 18:53 -0400, Robert Cummings wrote: > On Wed, 2007-04-11 at 17:43 -0400, Arbitrio, Pat wrote: > > > > Other skills: > > > > * Dreamweaver > > *ROFLMFAO* Still *ROFLMFAO* Cheers, Rob. -- .. | InterJinn Applicatio

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-11 Thread Jochem Maas
Robert Cummings wrote: > On Wed, 2007-04-11 at 18:53 -0400, Robert Cummings wrote: >> On Wed, 2007-04-11 at 17:43 -0400, Arbitrio, Pat wrote: >>> Other skills: >>> >>> * Dreamweaver >> *ROFLMFAO* > > Still *ROFLMFAO* I don't see what's so funny. there is great skill involved with becoming profi

RE: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-11 Thread Jay Blanchard
[snip] Robert Cummings wrote: > On Wed, 2007-04-11 at 18:53 -0400, Robert Cummings wrote: >> On Wed, 2007-04-11 at 17:43 -0400, Arbitrio, Pat wrote: >>> Other skills: >>> >>> * Dreamweaver >> *ROFLMFAO* > > Still *ROFLMFAO* I don't see what's so funny. there is great skill involved with becomin

RE: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-11 Thread Robert Cummings
On Wed, 2007-04-11 at 18:03 -0500, Jay Blanchard wrote: > [snip] > Robert Cummings wrote: > > On Wed, 2007-04-11 at 18:53 -0400, Robert Cummings wrote: > >> On Wed, 2007-04-11 at 17:43 -0400, Arbitrio, Pat wrote: > >>> Other skills: > >>> > >>> * Dreamweaver > >> *ROFLMFAO* > > > > Still *ROFLMF

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-11 Thread JM Guillermin
- Original Message - From: "Robert Cummings" <[EMAIL PROTECTED]> To: "Jay Blanchard" <[EMAIL PROTECTED]> Cc: "Jochem Maas" <[EMAIL PROTECTED]>; Sent: Thursday, April 12, 2007 1:05 AM Subject: RE: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer! On Wed, 2007-04-11 at 18:03 -05

Re: [PHP] SQL Source Control

2007-04-11 Thread Chris
I'm surprised (or rather, I'm unaware of) there is no native MySQL solution for this situation. Considering it's not a mysql specific problem I'd be surprised if there was. Postgres lets you do database changes inside a transaction, eg: begin; alter table x add column y int; ... commit; but

Re: [PHP] Help with table in database and login scripts.

2007-04-11 Thread Chris
Karl James wrote: Team, I want to know if my table is setup correctly. I am creating a site where team owners control fantasy football teams. Imaginary teams. They can trade players, add and drop them as long as they are under the salary cap at all times. if not they are given a warning to

Re: [PHP] Bind IP with fsockopen

2007-04-11 Thread chris
Hi ive tried \r\n\n and pretty much every other combination I can think of. But I still cant get it to return a line break. Otherwise the script is working though. - Original Message - From: "Richard Lynch" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 11, 2007 1

Re: [PHP] mysql if empty

2007-04-11 Thread Jim Lucas
tedd wrote: At 5:53 PM -0700 4/10/07, Jim Lucas wrote: Anyways, here is the expanded version hopefully to your liking. # Your request failed. Make up your own custom way of displaying the error. } else { if ( mysql_num_rows($results) > 0 ) { while ( $row = mysql_fetch_assoc(

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-11 Thread Richard Lynch
On Wed, April 11, 2007 6:00 pm, Jochem Maas wrote: > Robert Cummings wrote: >> On Wed, 2007-04-11 at 18:53 -0400, Robert Cummings wrote: >>> On Wed, 2007-04-11 at 17:43 -0400, Arbitrio, Pat wrote: Other skills: * Dreamweaver >>> *ROFLMFAO* >> >> Still *ROFLMFAO* > > I don't see what'

Re: [PHP] Re: PHP Directory List Script Files over 2 GB

2007-04-11 Thread Richard Lynch
On Wed, April 11, 2007 3:36 pm, Robert M wrote: > Does anyone else have any other ideas how to resolve this, I have > tried > multiple different methods all failed. > > Does the 2 GB limitation using filesize have an alternate method of > producing the output. ? > > Thank you Logan for trying. The

Re: [PHP] location of the PHP executable

2007-04-11 Thread Richard Lynch
On Wed, April 11, 2007 2:49 pm, Mattias Thorslund wrote: > I have looked in the documentation but can't find it: > > My PHP script (which is run from the command prompt - CLI) needs to > know > the file system location of the PHP executable. This is because it > needs > to run a second PHP script.

Re: [PHP] location of the PHP executable

2007-04-11 Thread Mattias Thorslund
Jochem Maas wrote: > > have you tried looking for this info you want? > > > Yup, but the manual seems kind of "light" on the subject. > > I can't say for sure if it always exists but on the few boxes > > I tried I found and entry in both $_SERVER and $_ENV: > > > > "_" => '/usr/bin/php' >

  1   2   >