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] 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

[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 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

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] 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

[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] 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

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] 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] 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 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

[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 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

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] 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

[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

[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

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] 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] 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

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] 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

[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

[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: 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] 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

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

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] 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 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 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

[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] 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

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] 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] 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] 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] 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

[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 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

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] 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] 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 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

[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"" <[

[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!

<    1   2