Re: [PHP] Using array_search I get error

2007-03-12 Thread Tijnema !
On 3/12/07, Richard Kurth <[EMAIL PROTECTED]> wrote: Richard Kurth wrote: > > > -Original Message- > From: Stut [mailto:[EMAIL PROTECTED] > Sent: Sunday, March 11, 2007 2:53 PM > To: Richard Kurth > Cc: php-general@lists.php.net > Subject: Re: [PHP] Using array_search I get error > > R

[PHP] Re: php 4 and 5

2007-03-12 Thread Haydar Tuna
Hello, Most important change is Object Oriented Features. PHP 5 support Object Oriented programming features. PHP 5 also supports more library than PHP 4.:) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://ww

[PHP] Re: Why won't this query go through?

2007-03-12 Thread Haydar Tuna
Hello, Did you control your user privileges? May be, your database user don't have enough privileges for INSERT. If your database user have enough database privileges for INSERT, you must control your SQL. Firstly you should write your SQL to the screen with echo ($q) and then paste this

[PHP] Re: Data Types Problem

2007-03-12 Thread Haydar Tuna
Hello, Becuase PHP don't convert "01" string to integer 1. In the PHP help file : PHP Help for type casting When a string is evaluated as a numeric value, the resulting value and type are determined as follows. The string will evaluate as a float if it contains any of the characters

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

2007-03-12 Thread Yannick Warnier
The problem wasn't quite there. The 304 response was correct and didn't really cause a problem in IE7. In fact, the problem was somewhere else. As mentioned by someone in the PHP doc comments (http://be.php.net/manual/en/ref.session.php#64125 ), IE is the only one to reject urls of the likes of ht

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

2007-03-12 Thread Tijnema !
Just a little note, getting content-length and a lot of other stuff from remote files is also possbiel with curl_getinfo() www.php.net/curl_getinfo Tijnema On 3/11/07, Tijnema ! <[EMAIL PROTECTED]> wrote: Not everyone checks his email 1000 times a day, last time he replied was yesterday... s

[PHP] Limiting speed when using CURL functions

2007-03-12 Thread Tijnema !
Hi, Is there any way i can limit the transfer speed when using CURL? I'm uploading a file to a server, and i don't want the script to f*** up all bandwidth. TIA Tijnema

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

2007-03-12 Thread Jochem Maas
Nathan Hawks wrote: > Hey all. This is my first post, 'coz it's the first time I've ever had > such a confusing problem with PHP. > > I recently got a VPS and compiled PHP 5.2.1 with the following options: > > --prefix=/usr/local/php5 --with-apxs2=/usr/local/apache2/bin/apxs > --with-config-file

Re: [PHP] Limiting speed when using CURL functions

2007-03-12 Thread Martin Marques
Tijnema ! wrote: Hi, Is there any way i can limit the transfer speed when using CURL? I'm uploading a file to a server, and i don't want the script to f*** up all bandwidth. man renice P.D.: This is not a PHP question. -- 21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37,

[PHP] Caching options - trunkcache?

2007-03-12 Thread Merlin
Hi there, I am looking for a replacement of php trunkcache. As far as I can see, there is no further development and I had to take it offline due a system update and compatibility issues. What would you guys recommend for a free caching system on a LAMP environment running php 4.x apache 1.x

Re: [PHP] Limiting speed when using CURL functions

2007-03-12 Thread Tijnema !
On 3/12/07, Martin Marques wrote: Tijnema ! wrote: > Hi, > > Is there any way i can limit the transfer speed when using CURL? > > I'm uploading a file to a server, and i don't want the script to f*** > up all > bandwidth. man renice P.D.: This is not a PHP question. I'm talking about the

Re: [PHP] Caching options - trunkcache?

2007-03-12 Thread Jochem Maas
Merlin wrote: > Hi there, > > I am looking for a replacement of php trunkcache. As far as I can see, > there is no further development and I had to take it offline due a > system update and compatibility issues. > > What would you guys recommend for a free caching system on a LAMP > environment r

Re: [PHP] Caching options - trunkcache?

2007-03-12 Thread clive
Merlin wrote: I am looking for a replacement of php trunkcache. I think you meant turck mmcache? have a look at these: http://eaccelerator.net (derivative of mmcache last release: 2006/02/15) http://www.php-accelerator.co.uk/ -- Regards, Clive. Real Time Travel Connections {No electrons

Re: [PHP] Re: php 4 and 5

2007-03-12 Thread Robert Cummings
On Mon, 2007-03-12 at 10:21 +0200, Haydar Tuna wrote: > Hello, > Most important change is Object Oriented Features. PHP 5 support > Object Oriented programming features. I think you mean supports "more" OOP features. PHP4 had plenty of OOP support also. Cheers, Rob. -- .

[PHP] PHP URL issues

2007-03-12 Thread Don Don
I've got the following url rewriting problem. on page 1 i've got this See and on page 2 i've got this $messageID = $_REQUEST["messageId"]; $userID = $_REQUEST["userId"]; when i check to see the values of these variables its says its empty, but when i place my curs

Re: [PHP] PHP URL issues

2007-03-12 Thread Tijnema !
On 3/12/07, Don Don <[EMAIL PROTECTED]> wrote: I've got the following url rewriting problem. on page 1 i've got this See and on page 2 i've got this $messageID = $_REQUEST["messageId"]; $userID = $_REQUEST["userId"]; when i check to see the values of these variables its says its empty,

Re: [PHP] PHP URL issues

2007-03-12 Thread Németh Zoltán
2007. 03. 12, hétfő keltezéssel 05.50-kor Don Don ezt írta: > I've got the following url rewriting problem. > > on page 1 i've got this > > See is this all within something like an echo statement with " marks? otherwise the values might not display correctly > > and on page 2

Re: [PHP] Re: php 4 and 5

2007-03-12 Thread Haydar Tuna
Hello, Yes, you are right I mean supports more OOP features. PHP 5 support more OOP features than PHP 4. :) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.haydartuna.net "Robert Cummings" <[EMAIL PROTECTED

Re: [PHP] Caching options - trunkcache?

2007-03-12 Thread Merlin
clive schrieb: Merlin wrote: I am looking for a replacement of php trunkcache. I think you meant turck mmcache? have a look at these: http://eaccelerator.net (derivative of mmcache last release: 2006/02/15) http://www.php-accelerator.co.uk/ thanx I tried php-accelerator. Lets see if this

Re: [PHP] Caching options - trunkcache?

2007-03-12 Thread Robert Cummings
On Mon, 2007-03-12 at 14:17 +0100, Merlin wrote: > clive schrieb: > > Merlin wrote: > > > >> I am looking for a replacement of php trunkcache. > > I think you meant turck mmcache? > > > > have a look at these: > > > > http://eaccelerator.net (derivative of mmcache last release: 2006/02/15) *CO

Re: [PHP] php 4 and 5

2007-03-12 Thread tedd
At 8:14 AM +0800 3/12/07, [EMAIL PROTECTED] wrote: Dear All, What different between 4 and 5 ? Edward. 1 tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] dst and strtotime

2007-03-12 Thread Jake McHenry
Hi everyone, I was hoping a problem like this wouldn't arise, but it happened :( After the dst updates on my fedora box, this broke, and worked fine before.. now gives me 3/10 instead of 3/11 for strtotime("last sunday") anyone know why? 3/10 was saturday! $recent_period = strtotime('l

RE: [PHP] dst and strtotime

2007-03-12 Thread Peter Lauri
Is your system time correct? 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: Jake McHenry [mailto:[EMAIL PROTECTED] > Sent: Monday, March 12, 2007 6:10 PM > To: PHP-Ge

RE: [PHP] Using array_search I get error

2007-03-12 Thread Richard Kurth
-Original Message- From: Tijnema ! [mailto:[EMAIL PROTECTED] Sent: Monday, March 12, 2007 1:16 AM To: Richard Kurth Cc: Stut; php-general@lists.php.net Subject: Re: [PHP] Using array_search I get error On 3/12/07, Richard Kurth <[EMAIL PROTECTED]> wrote: > > > > Richard Kurth wrote: >

Re: [PHP] dst and strtotime

2007-03-12 Thread Jake McHenry
yepper date Mon Mar 12 12:25:33 EDT 2007 - Original Message - From: "Peter Lauri" <[EMAIL PROTECTED]> To: "'Jake McHenry'" <[EMAIL PROTECTED]>; "'PHP-General'" Sent: Monday, March 12, 2007 5:23 PM Subject: RE: [PHP] dst and strtotime Is your system time correct? Best regards, Pe

RE: [PHP] Using array_search I get error

2007-03-12 Thread Németh Zoltán
2007. 03. 12, hétfő keltezéssel 09.21-kor Richard Kurth ezt írta: > > -Original Message- > From: Tijnema ! [mailto:[EMAIL PROTECTED] > Sent: Monday, March 12, 2007 1:16 AM > To: Richard Kurth > Cc: Stut; php-general@lists.php.net > Subject: Re: [PHP] Using array_search I get error > > O

Re: [PHP] Using array_search I get error

2007-03-12 Thread Tijnema !
On 3/12/07, Richard Kurth <[EMAIL PROTECTED]> wrote: -Original Message- From: Tijnema ! [mailto:[EMAIL PROTECTED] Sent: Monday, March 12, 2007 1:16 AM To: Richard Kurth Cc: Stut; php-general@lists.php.net Subject: Re: [PHP] Using array_search I get error On 3/12/07, Richard Kurth <[EM

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

2007-03-12 Thread Doctorrock
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. In fact, the problem was somewhere else. As mentioned by someone in the PHP doc comments (http://be.php.net/manual/en/ref.session.php#64125 ), I

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

2007-03-12 Thread Tijnema !
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. > > In fact, the problem was somewhere else. As mentioned by someone in the > PHP doc com

Re: [PHP] Extract url from string

2007-03-12 Thread Tijnema !
On 3/12/07, Brad Fuller <[EMAIL PROTECTED]> wrote: Hey guys, I've been banging my head against the wall trying to figure out the right pattern to use to extract a URL from a string using preg_match(). I've been STFW for a while now, and all the examples that I find are for extracting URLs from

[PHP] Re: Troubles from the newb again

2007-03-12 Thread Steve
The way I see it, you have two ways to avoid that error: 1) If you want to preserve indexes: foreach ($array as $index => $name) { if ($name->currentHP >0) { $newarray[$index] = $name; } } 2) If you don't care about indexes at all foreach ($array as $name) { if ($name-

RE: [PHP] Extract url from string

2007-03-12 Thread Brad Fuller
> -Original Message- > From: Tijnema ! [mailto:[EMAIL PROTECTED] > Sent: Monday, March 12, 2007 1:10 PM > To: Brad Fuller > Cc: php-general@lists.php.net > Subject: Re: [PHP] Extract url from string > > On 3/12/07, Brad Fuller <[EMAIL PROTECTED]> wrote: > > > > Hey guys, > > > > I've been

Re: [PHP] php 4 and 5

2007-03-12 Thread Martin Marques
tedd escribió: At 8:14 AM +0800 3/12/07, [EMAIL PROTECTED] wrote: Dear All, What different between 4 and 5 ? Edward. 1 No! -1 :-D Unless we are talkaing about absolute difference (distance between). -- select 'mmarques' || '@' || 'unl.edu.ar' AS email; --

RE: [PHP] Extract url from string [SOLVED]

2007-03-12 Thread Brad Fuller
On 3/12/07, Brad Fuller <[EMAIL PROTECTED]> wrote: > I tried this: > > preg_match("/http(s)?:\/\/(*.?)\s/", $stringUrl, $matches) > > But my pattern syntax is messed up cuz I get this error: > > Warning: preg_match() [function.preg-match]: Compilation failed: > nothing to repeat at o

Re: [PHP] Re: php 4 and 5

2007-03-12 Thread Martin Marques
Robert Cummings escribió: On Mon, 2007-03-12 at 10:21 +0200, Haydar Tuna wrote: Hello, Most important change is Object Oriented Features. PHP 5 support Object Oriented programming features. I think you mean supports "more" OOP features. PHP4 had plenty of OOP support also. But it wa

Re: [PHP] Re: php 4 and 5

2007-03-12 Thread Robert Cummings
On Mon, 2007-03-12 at 14:18 -0300, Martin Marques wrote: > Robert Cummings escribió: > > On Mon, 2007-03-12 at 10:21 +0200, Haydar Tuna wrote: > >> Hello, > >> Most important change is Object Oriented Features. PHP 5 support > >> Object Oriented programming features. > > > > I think you m

[PHP] different and logic between PHP4 and PHP5

2007-03-12 Thread Vieri
Hi The following code: yields: A = 0 in PHP 4 and A = in PHP 5 How can I get the same behavior in PHP5 as in PHP4 without changing the source code? Is there an option in php.ini I'm missing? Expectin

[PHP] Posting variable outside of the post form

2007-03-12 Thread Otto Wyss
I submit a form back to itself with action="" methode="get" yet I've a large PHP variable which I'd like to access afterwards as well. Is this possible somehow? O. Wyss -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: php 4 and 5

2007-03-12 Thread Martin Marques
Robert Cummings escribió: On Mon, 2007-03-12 at 14:18 -0300, Martin Marques wrote: But it was quite crappy. Don't blame the tool. I've never had a problem with the amount of OOP support in PHP4. That's just taste. I started feeling very comfortable when I got to use constructors, destructor

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

2007-03-12 Thread David Giragosian
On 3/12/07, Otto Wyss <[EMAIL PROTECTED]> wrote: I submit a form back to itself with action="" methode="get" yet I've a large PHP variable which I'd like to access afterwards as well. Is this possible somehow? O. Wyss Cookie, session variable, session cookie, database layer... David

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

2007-03-12 Thread Satyam
- Original Message - From: "David Giragosian" <[EMAIL PROTECTED]> To: "Otto Wyss" <[EMAIL PROTECTED]> Cc: Sent: Monday, March 12, 2007 8:18 PM Subject: Re: [PHP] Posting variable outside of the post form On 3/12/07, Otto Wyss <[EMAIL PROTECTED]> wrote: I submit a form back to itse

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

2007-03-12 Thread Martin Marques
Vieri escribió: Hi The following code: Change here: echo "A = " . (int)$a; -- select 'mmarques' || '@' || 'unl.edu.ar' AS email; - Martín Marqués | Programador, DBA Centro de Telemática| Administrador

[PHP] stream_get_contents() quite slow

2007-03-12 Thread Francois Aichelbaum
Hi guys, I'm using stream_get_contents() to parse content of an HTTP session I opened with fsockopen. My requests headers is just fine and transmission is OK : (0.0007s) But when I read the HTTP answer with stream_get_contents(), it lasts about 2.5s ! The webpage is about 5 kB. The connect

[PHP] Redirecting in a PHP script

2007-03-12 Thread Larry Bradley
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 the following Javascript code: $locat

Re: [PHP] Redirecting in a PHP script

2007-03-12 Thread Tijnema !
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, usi

[PHP] Installing php and mysql on linux

2007-03-12 Thread Jonathan Kahan
Hi all, I am attempting to start the mysql rpm in Red hat as a first step prior to downloading and activating the php-mysql rpm. I was attempting to follow steps based on the link below. the php rpm is loaded and activated as I have been able to execute php scripts. When I attempt to follow th

Re: [PHP] Installing php and mysql on linux

2007-03-12 Thread Brad Bonkoski
I think up2date is *not* up2date ;-) Google for 'yum' and all its flags for usage... -B Jonathan Kahan wrote: Hi all, I am attempting to start the mysql rpm in Red hat as a first step prior to downloading and activating the php-mysql rpm. I was attempting to follow steps based on the link be

RE: [PHP] Installing php and mysql on linux

2007-03-12 Thread Jim Moseby
> I am attempting to start the mysql rpm in Red hat as a first > step prior to > downloading and activating the php-mysql rpm. I was > attempting to follow > steps based on the link below. the php rpm is loaded and > activated as I have > been able to execute php scripts. When I attempt to fo

Re: [PHP] Installing php and mysql on linux

2007-03-12 Thread Jonathan Kahan
http://www.die.net/doc/linux/man/man8/yum.8.html I checked the above page on 'Yum" and see no up2date command as you point out. However when I tried update in the format suggested in the link, it still gives a command not found error. "Brad Bonkoski" <[EMAIL PROTECTED]> wrote in message n

Re: [PHP] Installing php and mysql on linux

2007-03-12 Thread Alberto Ferrer
I gonna suggest something very cool: Apache Friends. http://www.apachefriends.org/en/xampp-linux.html Its the best option on lamp packs. Regards. 2007/3/12, Jonathan Kahan <[EMAIL PROTECTED]>: http://www.die.net/doc/linux/man/man8/yum.8.html I checked the above page on 'Yum" and see no up2da

Re: [PHP] dst and strtotime

2007-03-12 Thread Jake McHenry
Anyone know of anything I can check? I've been trying different things all afternoon and I'm still getting the wrong date from strtotime. date() works fine. Thanks, Jake - Original Message - From: "Jake McHenry" <[EMAIL PROTECTED]> To: "PHP-General" Sent: Monday, March 12, 2007 12:2

Re: [PHP] My help with adding captcha

2007-03-12 Thread Joker7
In news: [EMAIL PROTECTED], Chris said: >> Joker7 wrote: >>> Hi- as you know I have been working on adding a captcha image to my >>> guestbook. >>> Well I have managed to get a very basic one working ;) but !I have >>> been trying to get one that would make it more easy to use ,I have >>> it worki

Re: [PHP] dst and strtotime

2007-03-12 Thread Tijnema !
On 3/12/07, Jake McHenry <[EMAIL PROTECTED]> wrote: Anyone know of anything I can check? I've been trying different things all afternoon and I'm still getting the wrong date from strtotime. date() works fine. Thanks, Jake - Original Message - From: "Jake McHenry" <[EMAIL PROTECTED]> To

Re: [PHP] My help with adding captcha

2007-03-12 Thread Tijnema !
On 3/12/07, Joker7 <[EMAIL PROTECTED]> wrote: In news: [EMAIL PROTECTED], Chris said: >> Joker7 wrote: >>> Hi- as you know I have been working on adding a captcha image to my >>> guestbook. >>> Well I have managed to get a very basic one working ;) but !I have >>> been trying to get one that wo

Re: [PHP] My help with adding captcha

2007-03-12 Thread Joker7
In news: [EMAIL PROTECTED], Chris said: >> Joker7 wrote: >>> Hi- as you know I have been working on adding a captcha image to my >>> guestbook. >>> Well I have managed to get a very basic one working ;) but !I have >>> been trying to get one that would make it more easy to use ,I have >>> it worki

Re: [PHP] dst and strtotime

2007-03-12 Thread Jake McHenry
On 3/12/07, Jake McHenry <[EMAIL PROTECTED]> wrote: Anyone know of anything I can check? I've been trying different things all afternoon and I'm still getting the wrong date from strtotime. date() works fine. Thanks, Jake - Original Message - From: "Jake McHenry" <[EMAIL PROTECTED

Re: [PHP] Redirecting in a PHP script

2007-03-12 Thread Satyam
- Original Message - From: "Larry Bradley" <[EMAIL PROTECTED]> To: Sent: Monday, March 12, 2007 9:02 PM Subject: [PHP] Redirecting in a PHP script 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 lo

Re: [PHP] Redirecting in a PHP script

2007-03-12 Thread Robert Cummings
On Mon, 2007-03-12 at 22:43 +0100, Satyam wrote: > The only way to actually go back in > those is to open the dropdown list for the back button and skip over one > item. I've found clicking really fast can get you back :) > That does not happen when using the header() PHP function. That is my

Re: [PHP] Redirecting in a PHP script

2007-03-12 Thread Richard Lynch
You also may want to consider just using an 'include' instead of bouncing the poor user around like a basketball in re-directs. Each re-direct sends traffic back and forth over the network, which could be slow/flaky. Plus you are chewing up HTTP connections on your web-server, and that's an expen

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

2007-03-12 Thread Richard Lynch
Use sessions. http://php.net/session_start On Mon, March 12, 2007 2:12 pm, Otto Wyss wrote: > I submit a form back to itself with > >action="" methode="get" > > yet I've a large PHP variable which I'd like to access afterwards as > well. Is this possible somehow? > > O. Wyss > > -- > PHP Gene

Re: [PHP] Extract url from string

2007-03-12 Thread Richard Lynch
The problem is that "URL" has a very specific meaning, and includes a BUNCH of complexities you may or may not need... Download "The Regex Coach" and play around with some sample inputs until you find what works for your needs, which is not a full-blown URL detector, since that would be very compl

Re: [PHP] PHP URL issues

2007-03-12 Thread Richard Lynch
On Mon, March 12, 2007 7:50 am, Don Don wrote: > I've got the following url rewriting problem. > > on page 1 i've got this > > See > > > and on page 2 i've got this > > $messageID = $_REQUEST["messageId"]; > $userID = $_REQUEST["userId"]; You switched from Id to ID (capital 'D') and pro

Re: [PHP] Caching options - trunkcache?

2007-03-12 Thread Richard Lynch
APC is getting rolled into PHP 6, allegedly. So that's kind of a no-brainer to choose, imho, as then you can be forwards-compatible with something that turns into the PHP Dev Teams' maintenance work instead of your own. Zend Cache may still be faster, as they got the jump on the PHP code caching

Re: [PHP] Installing php and mysql on linux

2007-03-12 Thread Edward Vermillion
You've either got path problems or up2date is not installed. That's what 'command not found' means, it can't find the 'up2date' command. Do you just want to start the MySQL server? Or are you trying to update the MySQL rpm? You should be able to start the server with a '/etc/init.d/mysql

Re: [PHP] Limiting speed when using CURL functions

2007-03-12 Thread Richard Lynch
On Mon, March 12, 2007 7:14 am, Tijnema ! wrote: > Is there any way i can limit the transfer speed when using CURL? > > I'm uploading a file to a server, and i don't want the script to f*** > up all > bandwidth. I don't recall ever seeing that in curl, but check on the curl site, linked from here:

Re: [PHP] Data Types Problem

2007-03-12 Thread Richard Lynch
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 as a string, no matter how

Re: [PHP] xml parsing

2007-03-12 Thread Richard Lynch
I don't think that's valid XML, because you are mixing your content with your XML tags in a way that will confuse the two... If you can FIX the XML by using the CDATA stuff, or htmlentities encoding the HTML or something, that would be best. If you are STUCK with this bogus XML, you could probabl

Re: [PHP] php 4 and 5

2007-03-12 Thread Richard Lynch
On Sun, March 11, 2007 7:14 pm, [EMAIL PROTECTED] wrote: > What different between 4 and 5 ? -1 -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (ht

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

2007-03-12 Thread Richard Lynch
Perhaps try sending various no-cache headers and a Date-Modified with the current time-stamp in it. You never know with IE what's actually going to work, and you could mess up other browsers, though, so do lots of browser tests... On Sun, March 11, 2007 6:01 pm, Yannick Warnier wrote: > Hello, >

Re: [PHP] Installing php and mysql on linux

2007-03-12 Thread Jonathan Kahan
Your point are well taken. I was ale to follow directions from the mysql website to start getting mysql to work instead of the linux site which was the basis for my original post. Does anyone know where I can go to download (aside from the red hat site where i would need to gather license info)

RE: [PHP] Using array_search I get error

2007-03-12 Thread Richard Lynch
On Sun, March 11, 2007 6:00 pm, Richard Kurth wrote: > > > Richard Kurth wrote: >> >> >> -Original Message- >> From: Stut [mailto:[EMAIL PROTECTED] >> Sent: Sunday, March 11, 2007 2:53 PM >> To: Richard Kurth >> Cc: php-general@lists.php.net >> Subject: Re: [PHP] Using array_search I get er

Re: [PHP] Stream Functions

2007-03-12 Thread Richard Lynch
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. -- Some people have a "gift" link here. Know what I want? I

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

2007-03-12 Thread Jim Lucas
Riyadh S. Alshaeiq wrote: Thank you Mickey, but I have already looked in there and the function posted in the notes is working just fine for getting the size on disk which I am not interested in, I need the actual size that when you download a file to a machine you will get.. Riyadh -Origin

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

2007-03-12 Thread Richard Lynch
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 numbers if you want to use 'and' -- Some people have a "gift" link here. Kno

Re: [PHP] Why won't this query go through?

2007-03-12 Thread Richard Lynch
On Sun, March 11, 2007 11:24 am, Mike Shanley wrote: > I am just not understanding what I could have possibly done wrong with > this query. All of the variables are good, without special characters > in > any sense of the word... So why isn't it importing anything? > > Thanks! > > $q = "INSERT INT

Re: [PHP] Array mysteries

2007-03-12 Thread Richard Lynch
Read the manual again, especially the part about "variable scope" near the beginning. On Sun, March 11, 2007 3:51 am, Otto Wyss wrote: > I want to convert weekdays with a simple function like > >$wdays = array > (0 => "Sonntag" > ,1 => "Montag" > ,2 => "Dienstag" > ,3 =>

Re: [PHP] xml parsing

2007-03-12 Thread Myron Turner
Richard Lynch wrote: I don't think that's valid XML, because you are mixing your content with your XML tags in a way that will confuse the two... If you can FIX the XML by using the CDATA stuff, or htmlentities encoding the HTML or something, that would be best. If you are STUCK with this bogus

Re: [PHP] Why won't this query go through?

2007-03-12 Thread Stephen Johnson
> From: Richard Lynch <[EMAIL PROTECTED]> > On Sun, March 11, 2007 11:24 am, Mike Shanley wrote: >> I am just not understanding what I could have possibly done wrong with >> this query. All of the variables are good, without special characters >> in >> any sense of the word... So why isn't it impor

Re: [PHP] Array mysteries

2007-03-12 Thread Richard Lynch
On Sun, March 11, 2007 12:02 pm, Edward Vermillion wrote: > > On Mar 11, 2007, at 10:02 AM, tedd wrote: > >> At 3:05 PM +0100 3/11/07, Tijnema ! wrote: >>> On 3/11/07, tedd <[EMAIL PROTECTED]> >>> wrote: >>> >>> At 10:05 AM +0100 3/11/07, Tijnema ! wrote: - You c

Re: [PHP] Array mysteries

2007-03-12 Thread Richard Lynch
On Sun, March 11, 2007 2:57 pm, Edward Vermillion wrote: > Would the array lookup be faster for a lesser-used option/key in a > situation where there were quite a few options? (you wouldn't have to > go through the whole switch to get to the option at the end (?) or > would you? I have no idea how

Re: [PHP] Back to security

2007-03-12 Thread Richard Lynch
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 a bank vault in the basement of a branch bank.

Re: [PHP] Variable variables and references

2007-03-12 Thread Richard Lynch
On Sat, March 10, 2007 6:28 am, Dave Goodchild wrote: > Hi guys, I have just read 'Programming PHP' (O'Reilly) and although I > think > it's a great book, I am confused about variable variables and > references - > not the mechanics, just where you would use them. > > The subject of variable variab

Re: [PHP] DB_DataContainer

2007-03-12 Thread Richard Lynch
If you are using PHP 5.0.0 or greater, use the one class, other wise, use the other. The 'eval' BS is to avoid the PHP compiler complaining that you have the same class defined twice. Frankly, it's pretty ugly, if you ask me... On Fri, March 9, 2007 7:08 pm, php trainer wrote: > Could someone ex

Re: [PHP] looking for two remote functions

2007-03-12 Thread Richard Lynch
On Fri, March 9, 2007 5:15 am, Riyadh S. Alshaeiq wrote: > I am looking for an HTTP function for getting remote filesizes. > Keeping in > mind that I am NOT interested in getting the "size on disk" figure, I > need > the actual size of the files when downloaded to a local machine. > Please let > m

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

2007-03-12 Thread Richard Lynch
It seems MUCH more likely to me that the filesize() is being used on some kind of URL that does a re-direct -- and the filesize() may not follow the re-direct for you... The size is the size, in bytes. Overhead in the local OS for block management is not something PHP will be able to predict for

Re: [PHP] name of the variable

2007-03-12 Thread Richard Lynch
On Fri, March 9, 2007 4:27 am, Cefull Lo wrote: > Hi everyone, > Is there any function that return the name of the variable?? > i.e. > > $foo='abc'; > $bar=somefunc($foo); // $bar='foo' here No. And there cannot be, as any given variable could have multiple references and be passed around through

Re: [PHP] php, oci8 and oracle

2007-03-12 Thread Richard Lynch
PHP runs in the sandbox of the HTTP apache server, but I don't think it inherits all of its Env variables... At any rate, the answer you probably want is: NOTE: I began as "the answer guy" on this mailing list back when I realized that the dude answering this same dang ORACLE_HOME question ever

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

2007-03-12 Thread Richard Lynch
If PHP is returning that goofy Windows 'size on disk' number, I want to see your script... Because, no, I don't think it does that... On Sat, March 10, 2007 4:42 am, Riyadh S. Alshaeiq wrote: > Actually if right click on any file or folder on a machine you will > see that > there are two values (

Re: [PHP] Passing a class through an array

2007-03-12 Thread Richard Lynch
If line 140 is the $name1->name part, then you probably haven't written your constructor correctly to cram 'Toon1' into the name field... On Thu, March 8, 2007 11:51 pm, Jeff Taylor wrote: > Hey all, > I'm very new to programming and PHP. > I want to pass instances of a class through an array, an

Re: [PHP] Image from a secure site

2007-03-12 Thread Richard Lynch
Instead of trying to re-invent the authentication wheel, just use http://php.net/curl On Thu, March 8, 2007 4:51 pm, Manolet Gmail wrote: > hi, i install 4 IP cameras and i want to extract the images from their > web interface that is protected be a username and password (HTTP AUTH) > and show i

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

2007-03-12 Thread Richard Lynch
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 "new"... //probably wrong, but be safe $xml = implode('', file('www.librarytools.com/events/sampledata.tx

Re: [PHP] Creating variable names from values

2007-03-12 Thread Richard Lynch
On Thu, March 8, 2007 11:56 am, Otto Wyss wrote: > From an arry I create a table like > >foreach ($persons as $key => $pers) { > echo " >... >} > > so each checkbox field has its own name created from $key. Yet how can > I > access these fields (names) later on? > >for

Re: [PHP] Intro to PHP question

2007-03-12 Thread Richard Lynch
You sure you don't have something like: . . . Or, perhaps, if you are usin CGI, and you have JUST set it up, and you have the wrong command line flags to execute the input as PHP directly somehow... Does work? On Thu, March 8, 2007 11:43 am, Jonathan Kahan wrote: > Hi all, > > I am using a l

Re: [PHP] Intro to PHP question

2007-03-12 Thread Richard Lynch
You have managed to confuse the isntallation process and the way Perl works with the way PHP works. If you want to write a custom CGI script for each and every PHP, and prepend #!/usr/local/bin/php, you just MIGHT be able to do it the way you're doing it... But don't do that. :-) Configure Apach

Re: [PHP] Joke of the day problem

2007-03-12 Thread Richard Lynch
create table alljokes (joke_id int unsigned auto_increment unique not null primary key, joke text); create table daily (whatdate date unique not null primrary key, joke_id int); Run a daily cron job that does this: Your web page then just does: Joke of the day$joke\n"; ?> YMMV On Thu, March 8,

Re: [PHP] Oracle XMLTYPE column truncates

2007-03-12 Thread Richard Lynch
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. Note that cramming all that XML into the DB seems kinda silly to me, unl

Re: [PHP] Creating variable names from values

2007-03-12 Thread Robert Cummings
On Mon, 2007-03-12 at 19:30 -0500, Richard Lynch wrote: > On Thu, March 8, 2007 11:56 am, Otto Wyss wrote: > > From an arry I create a table like > > > >foreach ($persons as $key => $pers) { > > echo " > >... > >} > > > > so each checkbox field has its own name created fro

Re: [PHP] why did it stop working?

2007-03-12 Thread Richard Lynch
On Thu, March 8, 2007 4:57 am, Ross wrote: > > Can someone explain to me why this used to work but then stopped > > header("Content-length: $size"); > header("Content-type: $type"); > header("Content-Disposition: attachment; filename=$name"); > > and this now works > > header("Content-length: ".$si

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

2007-03-12 Thread Myron Turner
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 "new"... //probably wrong, but be safe $xml = implode('', file('www.librarytools.c

Re: [PHP] Javascript and PHP interaction

2007-03-12 Thread Richard Lynch
What you *COULD* do is this: Use .htaccess to force your .css files to *really* be PHP files: ForceType application/x-httpd-php [NOTE: Depending on your server configuration, the application/x-httpd-php part could be *ANYTHING* the sysadmin felt was appropriate...] Inside your CSS, you now

  1   2   >