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

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: === > >

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

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

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 "$letter_value  "; on test.php i can display the value of term but with this echo "$letter_value  ";

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 "$letter_value  "; on test.php i can display the value of term but with this echo "$letter_value  ";

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 mos

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 cal

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, usin

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

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

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, a

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

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: > > > > > $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 numbe

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 is

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

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

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... -- P

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? Thank you... You're welcome. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

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' $fixedSt

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 reg

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

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

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. In

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, re

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 to

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_

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

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 = 'SMit

Re: [PHP] PHP URL issues

2007-03-13 Thread Don Don
$query_string = 'testId='. urlencode(trim($tmpTestId)) . '&userId=' . urlencode(trim($tmpUserId)); print ' View Values '; on view page i am trying to display the values using $_GET[value] and it sill returns "" Satyam <[EMAIL PROTECTED]> wrote: You should use urlencode() on variables th

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 i

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 ''; print_r($_GET); echo ''; Anything else there? "Don Don" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > $query_string = 'testId='. urlencode(trim($tmpTestId)) . '&userId=' . > u

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, th

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

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 tak

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 validatio

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

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 (Frida

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

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:

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

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

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

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:

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

Re: [PHP] dst and strtotime

2007-03-13 Thread Tijnema !
On 3/13/07, Jake McHenry <[EMAIL PROTECTED]> wrote: 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 As i said before i don't think it has to do with PHP version, but with your timezone settin

Re: [PHP] dst and strtotime

2007-03-13 Thread Robert Cummings
On Tue, 2007-03-13 at 12:50 -0400, Jake McHenry wrote: > 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.. PHP 5.2.0 works properly. Cheers, Rob. -- .--

Re: [PHP] PHP URL issues

2007-03-13 Thread Tijnema !
On 3/13/07, Steve <[EMAIL PROTECTED]> wrote: Instead of trying to call specific $_GET values, try printing out the entire $_GET variable. echo ''; print_r($_GET); echo ''; Anything else there? I wanted to say that:P You can check if the data is really sended to the second page by printing t

Re: [PHP] dst and strtotime

2007-03-13 Thread Jake McHenry
On 3/13/07, Jake McHenry <[EMAIL PROTECTED]> wrote: 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 As i said before i don't think it has to do with PHP version, but with your timezone se

RE: [PHP] dst and strtotime

2007-03-13 Thread Brad Fuller
> -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 yesterday, is correct, but > strtotime("l

Re: [PHP] dst and strtotime

2007-03-13 Thread Robert Cummings
On Tue, 2007-03-13 at 17:50 +0100, Tijnema ! wrote: > 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, 2

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 17:50 +0100, Tijnema ! wrote: > 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 [mai

Re: [PHP] dst and strtotime

2007-03-13 Thread Tijnema !
On 3/13/07, Tijnema ! <[EMAIL PROTECTED]> wrote: On 3/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Tue, 2007-03-13 at 17:50 +0100, Tijnema ! wrote: > > On 3/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > On Tue, 2007-03-13 at 12:31 -0400, Jake McHenry wrote: > > > > > > > > >>

Re: [PHP] dst and strtotime

2007-03-13 Thread Tijnema !
On 3/13/07, Tijnema ! <[EMAIL PROTECTED]> wrote: On 3/13/07, Tijnema ! <[EMAIL PROTECTED]> wrote: > On 3/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Tue, 2007-03-13 at 17:50 +0100, Tijnema ! wrote: > > > On 3/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > On Tue, 2007-03-1

Re: [PHP] dst and strtotime

2007-03-13 Thread Robert Cummings
On Tue, 2007-03-13 at 17:58 +0100, Tijnema ! wrote: > On 3/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Tue, 2007-03-13 at 17:50 +0100, Tijnema ! wrote: > > > On 3/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > On Tue, 2007-03-13 at 12:31 -0400, Jake McHenry wrote: > > > > >

Re: [PHP] dst and strtotime

2007-03-13 Thread Jake McHenry
On Tue, 2007-03-13 at 17:58 +0100, Tijnema ! wrote: On 3/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Tue, 2007-03-13 at 17:50 +0100, Tijnema ! wrote: > > On 3/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > On Tue, 2007-03-13 at 12:31 -0400, Jake McHenry wrote: > > > > > > > >

Re: [PHP] Redirecting in a PHP script

2007-03-13 Thread Philip Thompson
As other people have already said, use the header() function. However, be sure to include exit; after you call it. I've run into problems where it did not redirect properly if I didn't have the exit call. This also prevents anymore of the page loading (and maybe providing sensitive informat

Re: [PHP] Class and subclass

2007-03-13 Thread Jim Lucas
Alain Roger wrote: 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 $myo

[PHP] Looking for a good Ajax Mailing List

2007-03-13 Thread bruce
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. Any thoughts/ideas. Thanks -Bruce [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

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

2007-03-13 Thread tedd
At 4:18 PM +0100 3/13/07, Tijnema ! wrote: I'm not sure if it's the size you were looking for, but keep in mind that it depends on the block size. So different filesystems use different block size. Tijnema Yes and in addition, regardless of the "absolute" file size, the file still has to be

Re: [PHP] variables in CSS in PHP question/problems

2007-03-13 Thread Tijnema !
On 3/13/07, Bruce Gilbert <[EMAIL PROTECTED]> wrote: 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

Re: [PHP] variables in CSS in PHP question/problems

2007-03-13 Thread Németh Zoltán
2007. 03. 13, kedd keltezéssel 12.12-kor Bruce Gilbert ezt írta: > 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 bod

Re: [PHP] dst and strtotime

2007-03-13 Thread Jake McHenry
-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 yesterday, is correct, but strtotime("last sunday") giv

RE: [PHP] dst and strtotime

2007-03-13 Thread Brad Fuller
Jake McHenry wrote: > Why would one give me EST and the other EDT? Because EDT did not kick in until 2 or 3 AM on 3/11. PHP is compensating for DST by subtracting 1 hour, because php sees "last sunday" as 12:00 AM on 3/11. Subtract 1 hour and you get 11:00 PM on 3/10. > +60*60 worked after strt

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

2007-03-13 Thread Peter Lauri
Not pure Ajax, but it is Javascipt: [EMAIL PROTECTED] Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free > -Original Message- > From: bruce [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 13, 2007 7:2

Re: [PHP] Class and subclass

2007-03-13 Thread Stut
Alain Roger wrote: 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 c

Re: [PHP] dst and strtotime

2007-03-13 Thread Robert Cummings
On Tue, 2007-03-13 at 13:02 -0400, Robert Cummings wrote: > > Well that's strange since PHP4 and 5 both use the same ini file on my > dev box. And so they both get the following ini setting: > > date.timezone="Canada/Eastern" > > And in php 4.4.4 I get the bad output, but in php 5.2.0 I get t

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 13:02 -0400, Robert Cummings wrote: > > Well that's strange since PHP4 and 5 both use the same ini file on my > dev box. And so they both get the following ini setting: > > date.timezone="Canada/Eastern" > > And in p

Re: [PHP] dst and strtotime

2007-03-13 Thread Robert Cummings
On Tue, 2007-03-13 at 18:44 +0100, Tijnema ! wrote: > On 3/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Tue, 2007-03-13 at 13:02 -0400, Robert Cummings wrote: > > > > > > Well that's strange since PHP4 and 5 both use the same ini file on my > > > dev box. And so they both get the follow

Re: [PHP] dst and strtotime

2007-03-13 Thread Jake McHenry
On Tue, 2007-03-13 at 18:44 +0100, Tijnema ! wrote: On 3/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Tue, 2007-03-13 at 13:02 -0400, Robert Cummings wrote: > > > > Well that's strange since PHP4 and 5 both use the same ini file on my > > dev box. And so they both get the following i

[PHP] Re: Stream Functions

2007-03-13 Thread ccspencer
Richard Lynch writes: On Sun, March 11, 2007 1:15 pm, [EMAIL PROTECTED] wrote: Can anyone suggest why the connection might be refused? My first guess would be that you have a firewall blocking the connection. PHP can't poke holes in your firewall for you. Since it is in the so-called "u

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

2007-03-13 Thread Yannick Warnier
Le lundi 12 mars 2007 à 18:04 +0100, Tijnema ! a écrit : > On 3/12/07, Doctorrock <[EMAIL PROTECTED]> wrote: > > > > 2007/3/12, Yannick Warnier <[EMAIL PROTECTED]>: > > > > > > The problem wasn't quite there. The 304 response was correct and didn't > > > really cause a problem in IE7. > > > > > > I

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

2007-03-13 Thread Yannick Warnier
Le mardi 13 mars 2007 à 10:19 -0700, bruce a écrit : > 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. > > Any thoughts/ideas. Hi Bruce, Try the Dojo Toolkit mailing lists, or any JS toolk

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

2007-03-13 Thread Micky Hulse
bruce wrote: Any thoughts/ideas. The ydn-javascript is busy... but specifically for the YUI library: List forum/archives (found via quick google search): YUI: Good luck! Cheers, Micky -- Wishlists:

[PHP] mail

2007-03-13 Thread Dani Dws
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? best regards. _ Solve the Conspiracy and

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

2007-03-13 Thread Bruce Gilbert
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 using PHPMyAdmin and I

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

2007-03-13 Thread Tijnema !
On 3/13/07, Bruce Gilbert <[EMAIL PROTECTED]> 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

RE: [PHP] mail

2007-03-13 Thread Brad Fuller
> -Original Message- > From: Dani Dws [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 13, 2007 2:35 PM > To: php-general@lists.php.net > Subject: [PHP] mail > > I just want to know if the mail function works from a localhost (local > server)? > > I've checked my php.ini all the setting a

Re: [PHP] Redirecting in a PHP script

2007-03-13 Thread Chris Shiflett
Robert Cummings wrote: > I've found clicking really fast can get you back :) I, too, have successfully used this technique. :-) Chris -- Chris Shiflett http://shiflett.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail

2007-03-13 Thread Tijnema !
On 3/13/07, Dani Dws <[EMAIL PROTECTED]> wrote: 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? best regards. Sometimes ISP is blocking port 25, if so, yo

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

2007-03-13 Thread Tijnema !
On 3/13/07, Bruce Gilbert <[EMAIL PROTECTED]> wrote: On 3/13/07, Tijnema ! <[EMAIL PROTECTED]> wrote: > So you just need to set the content-type and output > add this to the bottom of the script: > header("Content-Type: ".$encodeddata); > echo $title; > > If i understand you right. > > Tijnema >

Re: [PHP] Redirecting in a PHP script

2007-03-13 Thread Tijnema !
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 just right of the back button, where you can go back 2 step

[PHP] Re: session/login issue

2007-03-13 Thread Gunter Sammet
"Mark" wrote in message news:[EMAIL PROTECTED] > 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 authentic

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

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

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" Sent: Tuesday, March 13, 2007 5:55 PM Subject: Re: [PHP] 2 errors I can not understand On 3/13/07, Jonat

  1   2   >