Re: [PHP] Enclosing fields in MySQL queries with ` or '

2007-03-13 Thread Dotan Cohen
On 13/03/07, Richard Lynch [EMAIL PROTECTED] wrote: On Wed, March 7, 2007 1:22 pm, Dotan Cohen wrote: A backtick (`) on the other hand is a mysql-ism. It allows you to use keywords as field names (eg `index`) amongst other things (including quoting strings). I *think* that this is actually

Re: [PHP] stream_get_contents() quite slow

2007-03-13 Thread Francois Aichelbaum
I doubt that's the reason : - it's working over the loopback interface - links and wget don't have any latence issues Nicholas Yim a écrit : Hello Francois Aichelbaum, mainly due to the slow network speed Best regards, === At 2007-03-13, 04:02:41 you wrote: === Hi

[PHP] Re: php 4 and 5

2007-03-13 Thread Tony Marston
Haydar Tuna [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, Most important change is Object Oriented Features. PHP 5 support Object Oriented programming features. Technically this is incorrect. PHP 4 does provide basic support for OOP, but PHP 5 provides better

Re: [PHP] help with script needed

2007-03-13 Thread Stut
Richard Lynch wrote: You could also just use: if (($i % 15) === 0) echo FooBar; elseif (($i % 3) === 0) echo Foo; elseif (($i % 5) === 0) echo Bar; 15 works because 3 and 5 are mutually prime or whatever it's called. Good point, missed that one. A minimalist might not even bother with the

Re: [PHP] PHP URL issues

2007-03-13 Thread Don Don
I've just noticed that if am passing only one value it works fine, but when am passing in more than one none works. Why is that or what could be wrong ? e.g. this works echo ba href='test.php?term=$letter_value'$letter_value nbsp;/a/b; on test.php i can display the value of term

Re: [PHP] PHP URL issues

2007-03-13 Thread Don Don
I've just noticed that if am passing only one value it works fine, but when am passing in more than one none works. Why is that or what could be wrong ? e.g. this works echo ba href='test.php?term=$letter_value'$letter_value nbsp;/a/b; on test.php i can display the value of term

Re: [PHP] Re: Posting variable outside of the post form

2007-03-13 Thread Shafiq Rehman
Hello, Use session variables -- Shafiq Rehman (ZCE) http://phpgurru.com | http://shafiq.pk On 3/13/07, Haydar Tuna [EMAIL PROTECTED] wrote: Hello, If your variable is not most important for your application security, you should use HTML hidden form field but If your variable is most

Re: [PHP] __autoload() no workie on my 5.2 install...

2007-03-13 Thread Jochem Maas
Nathan Hawks wrote: Thanks - I hadn't noticed that that had changed. did it fix your problem? I was only guessing at the possibilities so I like to know if/how you got it fixed - it'll save me and others that read the list some pain when I/we/they move to 5.2+. On Mon, 2007-03-12 at 13:15

Re: [PHP] Re: Posting variable outside of the post form

2007-03-13 Thread Doctorrock
Mpff, you should start by minding XSS attacks on PHP_SELF, and no echoing it as raw ... : http://blog.phpdoc.info/archives/13-XSS-Woes.html

[PHP] About exec function

2007-03-13 Thread Pablo Luque
Hello, I'm designing a website with php and the critical point of the design is to execute a program in the server, so after execution is finished, server will show the client some data and info. The program is called pspice, which analizes electronic circuits, works in msdos and in order to

Re: [PHP] Redirecting in a PHP script

2007-03-13 Thread Eric Butera
On 3/12/07, Larry Bradley [EMAIL PROTECTED] wrote: I need to goto different PHP pages in my web site depending on what happens within some PHP code. For example, if the user is not logged in when he goes to a page, I want to send him to a LOGIN page. I've have everything working fine, using

[PHP] Re: php 4 and 5

2007-03-13 Thread Haydar Tuna
Hello, I haven't explain this topic clearly. I'm sorry. Both PHP 5 and PHP 4 support OOP features but PHP 5 support more OOP features than PHP 4 and version of PHP is 5 now. As you know, 5 is bigger than 4 :))). PHP 5 is very comfortable and easy to use. PHP 5 supports more library than

[PHP] question for translating fsockopen into CURL

2007-03-13 Thread Yeni Setiawan
dear all. I'm currently writing a script that connect to specific IP (server) at a specific port (1950). then I need to send some parameters and the server will give me a reply. too bad, my current webhost no longer accept fsockopen(). so I need to translate my script into CURL thingie. here's

Re: [PHP] Oracle XMLTYPE column truncates

2007-03-13 Thread Mikey
Richard Lynch wrote: DB truncation could be either of the following: #1. The column is not large enough to hold that data. Research LONGTEXT and BLOB #2. The query buffer is not large enough to pass the data in. Re-configure your db/php setup. It was definitely to do with casting it to a

Re: [PHP] Class and subclass

2007-03-13 Thread Alain Roger
Hi Richard, In fact the problem is that under Zend Studio editor, when i typed : $this-class_A_property-Class_B_method did not appear as valid. if i typed $this-class_A_property , this was valid because $this refered to Class_A. but if you define a property (private $myobject_B) in class A, and

Re: [PHP] Redirecting in a PHP script

2007-03-13 Thread Dave Goodchild
If you do want to use the header function after html has been output, you can always look at using output buffering (ob_start()).

Re: [PHP] About exec function

2007-03-13 Thread Jochem Maas
Pablo Luque wrote: Hello, I'm designing a website with php and the critical point of the design is to execute a program in the server, so after execution is finished, server will show the client some data and info. The program is called pspice, which analizes electronic circuits, works in

Re: [PHP] PHP URL issues

2007-03-13 Thread Satyam
You should use urlencode() on variables that will go into URL arguments. You might have a whitespace in any of those variables and the URL stops at the first whitespace. If those spaces are at the ends and are not significant, you might want to use trim(). - Original Message -

Re: [PHP] different and logic between PHP4 and PHP5

2007-03-13 Thread Vieri
--- Richard Lynch [EMAIL PROTECTED] wrote: On Mon, March 12, 2007 1:53 pm, Vieri wrote: The following code: ?php $b=; $c=df; $a=($b and $c); Why in the world would you use 'and' on two strings? What is that supposed to even mean?... Type-cast them to numbers if you want to

Re: [PHP] different and logic between PHP4 and PHP5

2007-03-13 Thread Jon Anderson
Vieri wrote: I didn't code this. We have inherited some code that worked this way in php4: if string1 and string2 exist then return true or 1 else return false or 0 in php5 it just doesn't behave the same way. Rather than echo, try var_dump. You'll find that it's returning a boolean, which

[PHP] Re: question regarding form filtering

2007-03-13 Thread Haydar Tuna
Hello, You can write some basic functions such as checking length of variable, removing special character, checking number or string, trimming blank lines and so on. And then you can use this functions together and you can write new functions. For example, if you want to check number

[PHP] Capitalizing the first letter

2007-03-13 Thread Todd Cary
I would like to write a filter that takes the text smith or SMith and returns Smith; same for ralph smith. Is the a good source on using filters this way? Thank you... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] session/login issue

2007-03-13 Thread Gunter Sammet
Hi all: I inherited an application using PHP 5.1.4 with MySQL 4.1.20, Apache/2.0.46 (Red Hat) on a VPS server with Plesk 7.5. The authentication used to work just fine till yesterday. Now it doesn't authenticate anymore. My debugging so far hasn't revelaed much. It seems like the sessions are

Re: [PHP] Capitalizing the first letter

2007-03-13 Thread Dave Goodchild
ucwords(strtolower($string)) or ucfirst(strtolower($string)) On 3/13/07, Todd Cary [EMAIL PROTECTED] wrote: I would like to write a filter that takes the text smith or SMith and returns Smith; same for ralph smith. Is the a good source on using filters this way? Thank you... -- PHP

Re: [PHP] Capitalizing the first letter

2007-03-13 Thread Stut
Todd Cary wrote: I would like to write a filter that takes the text smith or SMith and returns Smith; same for ralph smith. Is the a good source on using filters this way? ?php $txt = ralph SMith; $txt = ucwords(strtolower($txt)); ? Thank you... You're welcome. -Stut -- PHP

RE: [PHP] Capitalizing the first letter

2007-03-13 Thread Chris Boget
I would like to write a filter that takes the text smith or SMith and returns Smith; same for ralph smith. Is the a good source on using filters this way? It may not be the most efficient way of accomplishing this, but you could do something like: $string = 'SMith' $fixedString =

Re: [PHP] Capitalizing the first letter

2007-03-13 Thread Jochem Maas
Todd Cary wrote: I would like to write a filter that takes the text smith or SMith and returns Smith; same for ralph smith. Is the a good source on using filters this way? // filter? echo ucfirst(strtolower(SMith)); // or echo ucwords(strtolower(ralph a. SMith)); // with regard to

Re: [PHP] Image from a secure site

2007-03-13 Thread Manolet Gmail
2007/3/12, Richard Lynch [EMAIL PROTECTED]: Instead of trying to re-invent the authentication wheel, just use http://php.net/curl wow!! Thanks you A LOOOT!!! thats amazing!!! On Thu, March 8, 2007 4:51 pm, Manolet Gmail wrote: hi, i install 4 IP cameras and i want to extract

Re: [PHP] Data Types Problem

2007-03-13 Thread Jochem Maas
Richard Lynch wrote: By definition, all HTTP data is of type 'string' because that's the ONLY data type HTTP supports. PHP will cheerfully typecast it to whatever it needs to be later, but when it first comes in from the GET (or POST or COOKIE or whatever) data, it's going to start its life

[PHP] Re: Capitalizing the first letter

2007-03-13 Thread Haydar Tuna
Hello, In PHP ucfirst() function make a string's first character uppercase. But ralph smith have two words respectivetely ralph and smith. For this reason, if you call the ucfirst(ralph smith) function, you cannot see the Ralph Smith. You see the Ralph smith. If you want to see Ralph Smith

[PHP] Re: Capitalizing the first letter

2007-03-13 Thread Haydar Tuna
Hello Again, You can use ucwords() functions except my method. This function returns a string with the first character of each word in str capitalized, if that character is alphabetic. :) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department

RE: [PHP] Capitalizing the first letter

2007-03-13 Thread Edward Kay
I would like to write a filter that takes the text smith or SMith and returns Smith; same for ralph smith. Is the a good source on using filters this way? $bar = ucwords(strtolower($bar)); This is an example on the manual page for ucwords. How hard did you look? Edward -- PHP General

[PHP] Re: Capitalizing the first letter

2007-03-13 Thread Haydar Tuna
Hello Again, You can use ucwords() functions except my method. This function returns a string with the first character of each word in str capitalized, if that character is alphabetic. :) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department

[PHP] Re: Capitalizing the first letter

2007-03-13 Thread Haydar Tuna
Hello Again, You can use ucwords() functions except my method. This function returns a string with the first character of each word in str capitalized, if that character is alphabetic. :) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department

Re: [PHP] PHP URL issues

2007-03-13 Thread Steve
This may or may not help, but here's a few things to note: 1) I would avoid placing variable output in double quoted strings. While not important for smaller scripts, doing a large number of outputs like this causes a decent performance hit. In fact, I wouldn't use double quotes ever in php.

RE: [PHP] Re: question regarding form filtering

2007-03-13 Thread Tim
-Message d'origine- De : Haydar Tuna [mailto:[EMAIL PROTECTED] Envoyé : mardi 13 mars 2007 14:53 À : php-general@lists.php.net Objet : [PHP] Re: question regarding form filtering Hello, You can write some basic functions such as checking length of variable, removing

Re: [PHP] Capitalizing the first letter

2007-03-13 Thread Steve
For your filter to return only/no digits, I would recommend doing a bit of reading on preg_replace ( http://us2.php.net/preg_replace ) while noting the following flags: \d Matches any decimal digit; this is equivalent to the class [0-9]. \D Matches any non-digit character; this is equivalent

Re: [PHP] $35 to the first person who can do this XML-parsing PHP script

2007-03-13 Thread Jochem Maas
Richard Lynch wrote: On Mon, March 12, 2007 8:05 pm, Myron Turner wrote: Richard Lynch wrote: For something that simple in PHP4, I didn't even bother with the 50-line expat lib solution... A couple preg matches, or even just strtok and call it done... //assume file_get_contents is too

[PHP] Re: session/login issue

2007-03-13 Thread Mark
Gunter Sammet wrote: Hi all: I inherited an application using PHP 5.1.4 with MySQL 4.1.20, Apache/2.0.46 (Red Hat) on a VPS server with Plesk 7.5. The authentication used to work just fine till yesterday. Now it doesn't authenticate anymore. My debugging so far hasn't revelaed much. It seems

Re: [PHP] Image from a secure site

2007-03-13 Thread Manolet Gmail
Well in case someone need to do this... this is the code.. very easy at all.. header ('Content-type: image/jpeg'); $ch =curl_init(http://contelec.sytes.net:2002/IMAGE.JPG?cidx=20072261649239281;); curl_setopt($ch,CURLOPT_USERPWD,invitado:invitado); curl_exec($ch); curl_close($ch);

Re: [PHP] Capitalizing the first letter

2007-03-13 Thread Todd Cary
Chris Boget wrote: I would like to write a filter that takes the text smith or SMith and returns Smith; same for ralph smith. Is the a good source on using filters this way? It may not be the most efficient way of accomplishing this, but you could do something like: $string = 'SMith'

Re: [PHP] PHP URL issues

2007-03-13 Thread Don Don
$query_string = 'testId='. urlencode(trim($tmpTestId)) . 'userId=' . urlencode(trim($tmpUserId)); print 'pa href=viewpage.php?'. htmlentities($query_string) .' View Values /a/p'; on view page i am trying to display the values using $_GET[value] and it sill returns Satyam [EMAIL

Re: [PHP] Capitalizing the first letter

2007-03-13 Thread Todd Cary
Steve wrote: For your filter to return only/no digits, I would recommend doing a bit of reading on preg_replace ( http://us2.php.net/preg_replace ) while noting the following flags: \d Matches any decimal digit; this is equivalent to the class [0-9]. \D Matches any non-digit character; this

Re: [PHP] PHP URL issues

2007-03-13 Thread Steve
Instead of trying to call specific $_GET values, try printing out the entire $_GET variable. echo 'pre'; print_r($_GET); echo '/pre'; Anything else there? Don Don [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] $query_string = 'testId='. urlencode(trim($tmpTestId)) . 'userId=' .

Re: [PHP] FW: looking for two remote functions

2007-03-13 Thread Tijnema !
Can you maybe explain why you want the exact size on the disk in blocks?? do you care if it differs 1KB?? what are you planning to write, the actual filesize on the disk can only differ 1 block with real filesize, and so if the blocksize is 1024bytes, it differes a max of 1024bytes... And btw,

[PHP] Using a reentrant form

2007-03-13 Thread Todd Cary
To validate a page, I set the form value to the page name the user is on. Then there is a hidden variable, looped that is set to 1. By checking looped, I know if the user has re-entered the form so I can do my validation checks. Is there a disadvantage to this approach? Thank you... --

Re: [PHP] dst and strtotime

2007-03-13 Thread Jake McHenry
A little more info: strtotime(last monday) or yesterday, is correct, but strtotime(last sunday) gives me 3/10 (saturday), strtotime(last saturday) gives me 3/9 (Friday), last friday gives me 3/8 thursday.. etc. maybe it will go away after a week?? anyone else have anything to

Re: [PHP] PHP URL issues

2007-03-13 Thread Satyam
I wouldn't do the htmlentities() on the whole argument list. Depending on the Doctype version you have declared and depending how well implemented it is in each browser, it may render the argument list useless. Unless you declared the strictest and latest version of HTML, all browsers will

Re: [PHP] Using a reentrant form

2007-03-13 Thread Németh Zoltán
2007. 03. 13, kedd keltezéssel 08.19-kor Todd Cary ezt írta: To validate a page, I set the form value to the page name the user is on. Then there is a hidden variable, looped that is set to 1. By checking looped, I know if the user has re-entered the form so I can do my validation checks.

RE: [PHP] Capitalizing the first letter

2007-03-13 Thread Peter Lauri
Thank you! I did not know about the ucwords() functions, and it does not need the string set to lower case. Now to create a filter that returns only numbers (e.g. a1234z - 1234) and the same for non-numbers. [Peter Lauri - DWS Asia] This to replace all non-digit characters with

Re: [PHP] dst and strtotime

2007-03-13 Thread Tijnema !
does return the time() command the right date for you? Tijnema On 3/13/07, Jake McHenry [EMAIL PROTECTED] wrote: A little more info: strtotime(last monday) or yesterday, is correct, but strtotime(last sunday) gives me 3/10 (saturday), strtotime(last saturday) gives me 3/9 (Friday),

[PHP] variables in CSS in PHP question/problems

2007-03-13 Thread Bruce Gilbert
I stumbled upon this article http://www.chrisjdavis.org/2005/10/16/php-in-css/ and was trying out variables with PGP, but can't get it to work. I wanted to have a variable image that changes on refresh, and also set the body color with PHP/CSS and maybe get that to change on refresh too. sp

Re: [PHP] dst and strtotime

2007-03-13 Thread Jake McHenry
yes. echo date(Y-m-d g:i A T, time()); echo date(Y-m-d g:i A T, strtotime(last sunday)); returns 2007-03-13 12:38 PM EDT 2007-03-10 11:00 PM EST Thanks, Jake does return the time() command the right date for you? Tijnema On 3/13/07, Jake McHenry [EMAIL PROTECTED] wrote: A

Re: [PHP] dst and strtotime

2007-03-13 Thread Tijnema !
On 3/13/07, Jake McHenry [EMAIL PROTECTED] wrote: -Original Message- From: Jake McHenry [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 13, 2007 11:22 AM To: For users of Fedora; PHP-General Subject: Re: [PHP] dst and strtotime A little more info: strtotime(last monday) or

Re: [PHP] dst and strtotime

2007-03-13 Thread Robert Cummings
On Tue, 2007-03-13 at 12:31 -0400, Jake McHenry wrote: -Original Message- From: Jake McHenry [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 13, 2007 11:22 AM To: For users of Fedora; PHP-General Subject: Re: [PHP] dst and strtotime A little more info: strtotime(last

Re: [PHP] dst and strtotime

2007-03-13 Thread Jake McHenry
Has or can anyone try this on PHP5 to see if it does the same? I'll upgrade if needed, but didn't really want to at the current time.. Thanks Jake On Tue, 2007-03-13 at 12:31 -0400, Jake McHenry wrote: -Original Message- From: Jake McHenry [mailto:[EMAIL PROTECTED] Sent:

Re: [PHP] dst and strtotime

2007-03-13 Thread Tijnema !
On 3/13/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-03-13 at 12:31 -0400, Jake McHenry wrote: -Original Message- From: Jake McHenry [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 13, 2007 11:22 AM To: For users of Fedora; PHP-General Subject: Re: [PHP] dst and

Re: [PHP] dst and strtotime

2007-03-13 Thread Jake McHenry
On 3/13/07, Jake McHenry [EMAIL PROTECTED] wrote: -Original Message- From: Jake McHenry [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 13, 2007 11:22 AM To: For users of Fedora; PHP-General Subject: Re: [PHP] dst and strtotime A little more info: strtotime(last monday) or

[PHP] 2 errors I can not understand

2007-03-13 Thread Jonathan Kahan
Hi all, Please see my output below followed by the code. I have been trying for some to figure out why 1) I can not get a line feed to work in the web page that i am using to display the output as I am not running from the commad line 2) Why my loop is only executing 3 times when i want

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Tijnema !
On 3/13/07, Jonathan Kahan [EMAIL PROTECTED] wrote: Hi all, Please see my output below followed by the code. I have been trying for some to figure out why 1) I can not get a line feed to work in the web page that i am using to display the output as I am not running from the commad line Line

Re: [PHP] Redirecting in a PHP script

2007-03-13 Thread Robert Cummings
On Tue, 2007-03-13 at 21:50 +0100, Tijnema ! wrote: On 3/13/07, Chris Shiflett [EMAIL PROTECTED] wrote: Robert Cummings wrote: I've found clicking really fast can get you back :) I, too, have successfully used this technique. :-) Chris Did you guys ever noted that little arrow down

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Jonathan Kahan
That worked in answering part 1 now i got to figure out part 2 - Original Message - From: Tijnema ! [EMAIL PROTECTED] To: Jonathan Kahan [EMAIL PROTECTED] Cc: php Lists php-general@lists.php.net Sent: Tuesday, March 13, 2007 5:55 PM Subject: Re: [PHP] 2 errors I can not understand

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Matt Carlson
I think you have an issue with the line while($d$s) when it comes to the number 3. $d will NEVER be $s if $s = 3. I think you want $d=$s?? Or maybe a switch for the number 3? - Original Message From: Jonathan Kahan [EMAIL PROTECTED] To: php Lists php-general@lists.php.net Sent:

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Matt Carlson
I retract my statement. I think I spoke too quickly. I think I don't fully understand the code (can't pay attention right now for some reason), and I talked too quick. I do think it has to do with the while loop though, as that is where it seems to be dying. - Original Message

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Jake McHenry
It worked for you? It didn't for me until i changed if ($s%$d=0) to if($s%$d == 0) Jake - Original Message - From: Jonathan Kahan [EMAIL PROTECTED] To: Tijnema ! [EMAIL PROTECTED] Cc: php Lists php-general@lists.php.net Sent: Tuesday, March 13, 2007 6:08 PM Subject: Re: [PHP] 2

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Myron Turner
Matt Carlson wrote: I think you have an issue with the line while($d$s) when it comes to the number 3. $d will NEVER be $s if $s = 3. I think you want $d=$s?? Or maybe a switch for the number 3? - Original Message From: Jonathan Kahan [EMAIL PROTECTED] To: php Lists

Re: [PHP] Looking for a good Ajax Mailing List

2007-03-13 Thread Martin Marques
bruce escribió: Hi... I know this is off topic.. I'm looking for a good Ajax Mailing list for Ajax discussions. I've seen a few via google, but not alot of traffic. Best I know of are the Mozilla JavaScript and DOM mailling lists. There's an AJAX list, but I mainly use the JS one:

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Jonathan Kahan
This did fix the problem but I am amazed that $s%$d=0 would be interpereted as a statement assigning d to 0 since there is some other stuff in front of d... I would think that would produce an error at compile time since $s%$d is an illegal variable name. Normally when my php script errors at

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Robert Cummings
On Tue, 2007-03-13 at 19:04 -0400, Jonathan Kahan wrote: This did fix the problem but I am amazed that $s%$d=0 would be interpereted as a statement assigning d to 0 since there is some other stuff in front of d... I would think that would produce an error at compile time since $s%$d is an

Re: [PHP] mail

2007-03-13 Thread Martin Marques
Dani Dws escribió: I just want to know if the mail function works from a localhost (local server)? I've checked my php.ini all the setting are right but the mail function is not sending any mail, any idea? How are you using it? -- select 'mmarques' || '@' || 'unl.edu.ar' AS email;

Re: [PHP] Back to security

2007-03-13 Thread jekillen
On Mar 12, 2007, at 3:32 PM, Richard Lynch wrote: On Sat, March 10, 2007 12:41 pm, Alain Roger wrote: I'm continuing to work on securing my administration part of the website. based on previous posts and reading materials, I was thinking to use the following process : Think of HTTPS as like

[PHP] Help me specify/develop a feature! (cluster web sessions management)

2007-03-13 Thread Mark
I have a web session management server that makes PHP clustering easy and fast. I have been getting a number of requests for some level of redundancy. As it is, I can save to an NFS or GFS file system, and be redundant that way. Here is an explanation of how it works:

Re: [PHP] Back to security

2007-03-13 Thread Jon Anderson
jekillen wrote: For what it is worth, I am only aware of one drawback to https with respect to how requests are handled that makes it difficult to use with virtual hosting. I am a little hazy on how it works but when https is used only the ip address of the request is available to the server

Re: [PHP] different and logic between PHP4 and PHP5

2007-03-13 Thread Larry Garfield
On Tuesday 13 March 2007 7:50 am, Vieri wrote: ?php //$b=3; $c=3; $a=($b and $c); echo A = .$a; ? in PHP4 I get: A = 0 and in PHP5 I get: A = I could call this lazyness on our part or code portability through PHP versions or better yet, bad inherited coding right from the start. A

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Jim Lucas
Robert Cummings wrote: On Tue, 2007-03-13 at 19:04 -0400, Jonathan Kahan wrote: This did fix the problem but I am amazed that $s%$d=0 would be interpereted as a statement assigning d to 0 since there is some other stuff in front of d... I would think that would produce an error at compile

Re: [PHP] displaying image from MySQL DB using HTML/PHP

2007-03-13 Thread Jim Lucas
Bruce Gilbert wrote: I am having some difficulty getting an image to display on a php that I have added to MySQL DB. Here is what I have tried so far in the MySQL DB I have a table called image_holder and the fields are id,mimename,filecontents...filecontents field is set to a type of blob

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Robert Cummings
On Tue, 2007-03-13 at 18:46 -0700, Jim Lucas wrote: another suggestion would be to have it written this way 0 == ($s % $d) if you by chance did this 0 = ($s % $d) it will give you an error, because you cannot assign a value to a literal value. Yeah, this has flown across the list

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Jim Lucas
Robert Cummings wrote: On Tue, 2007-03-13 at 18:46 -0700, Jim Lucas wrote: another suggestion would be to have it written this way 0 == ($s % $d) if you by chance did this 0 = ($s % $d) it will give you an error, because you cannot assign a value to a literal value. Yeah, this has flown

Re: [PHP] Redirecting in a PHP script

2007-03-13 Thread Chris Shiflett
Tijnema wrote: Did you guys ever noted that little arrow down just right of the back button, where you can go back 2 steps at once, so you don't have to click very fast? I think we both remember browsing before that feature was invented. Chris -- Chris Shiflett http://shiflett.org/ -- PHP

Re: [PHP] Help me specify/develop a feature! (cluster web sessions management)

2007-03-13 Thread Richard Lynch
On Tue, March 13, 2007 7:27 pm, Mark wrote: I have a web session management server that makes PHP clustering easy and fast. I have been getting a number of requests for some level of redundancy. As it is, I can save to an NFS or GFS file system, and be redundant that way. Talk to Jason at

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Richard Lynch
While the others have provided the answers for your questions, I went a little further before reading the whole thread, so here's some bonus free advice. :-) On Tue, March 13, 2007 4:30 pm, Jonathan Kahan wrote: 1) I can not get a line feed to work in the web page that i am using to display

Re: [PHP] displaying image from MySQL DB using HTML/PHP

2007-03-13 Thread Richard Lynch
On Tue, March 13, 2007 9:07 pm, Jim Lucas wrote: DON'T USE REQUEST only use it from where you expect it to be, in this case, $_GET Unless you actually WANT your web application to be flexible and allow other users to have links or POST forms to interface with it... It's not like you can trust

[PHP] Re: displaying image from MySQL DB using HTML/PHP

2007-03-13 Thread Haydar Tuna
Hello, I think your image field in mysql table is BLOB. Firstly, you can create like a image.php file for call image data from table. You can call your image data this file with GET,POST or SESSION variables and in image table there is a uqiue field for call any image such as personal

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Richard Lynch
On Tue, March 13, 2007 6:04 pm, Jonathan Kahan wrote: This did fix the problem but I am amazed that $s%$d=0 would be interpereted as a statement assigning d to 0 since there is some other stuff in front of d... I would think that would produce an error at compile time since $s%$d is an

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Richard Lynch
On Tue, March 13, 2007 6:27 pm, Robert Cummings wrote: Moral of the story? Don't be sloppy. Take pride in writing readable code. Anyone can produce gibberish. The converse is not true. :-) IOW, some of us produce gibberish even when we are trying to write readable code. 'Course, Perl hackers

Re: [PHP] Can i use DateTime Object with an timestamp as referenceinstead of an formated string.

2007-03-13 Thread Mathijs
Richard Lynch wrote: Personally, I'd log it in GMT or UTC or whatever it is, and then only change time-zones on display. Logging various different time-zones within the actualy data is just going to be confusing, probably... Depends on what you are doing, though, I guess... YMMV On Wed,

Re: [PHP] PHP 5.2 + IE 7 = HTTP 304 in login procedure [SOLVED]

2007-03-13 Thread Richard Lynch
On Tue, March 13, 2007 1:56 pm, Yannick Warnier wrote: According to RFC1033 ( http://www.camtp.uni-mb.si/books/Internet-Book/DNS_NameFormat.html ), underscores are forbidden in DNS names, including subdomains. Yeah, meaning that the program where you created the subdomain with is not