Re: [PHP] Redirecting in a PHP script

2007-03-15 Thread clive
Larry Bradley 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 the following Javascript

Re: [PHP] Limiting speed when using CURL functions

2007-03-15 Thread Tijnema !
On 3/15/07, Richard Lynch [EMAIL PROTECTED] wrote: On Wed, March 14, 2007 6:55 am, Tijnema ! wrote: On 3/12/07, Richard Lynch [EMAIL PROTECTED] wrote: 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

Re: [PHP] Can a Form Action transfer to another file that is a form?

2007-03-15 Thread Tijnema !
On 3/15/07, Stephen [EMAIL PROTECTED] wrote: I have a script file that is both the form and action handle (using isset), which is a menu selection. If the action handler is executing it is a switch statement that will chose the next form. I would like to transfer to another script file that is

Re: [PHP] 北京超品锐智技术有限责任公司招聘启示 [AD]

2007-03-15 Thread Tijnema !
On 3/15/07, Faye Wang [EMAIL PROTECTED] wrote: 北京超品锐智技术有限责任公司招聘启示 公司简介: 国内专业本地化公司 Transpac Technology Inc., which was established on 1996, specializes in Chinese software localization as well as Website and other technical documentation translation. Our working system is consist of popular

Re: [PHP] 北京超品锐智技术有限责任公司招聘启 示 [AD]

2007-03-15 Thread Andrei
LOL... Why you even bother to read it? Tijnema ! wrote: On 3/15/07, Faye Wang [EMAIL PROTECTED] wrote: 北京超品锐智技术有限责任公司招聘启示 公司简介: 国内专业本地化公司 Transpac Technology Inc., which was established on 1996, specializes in Chinese software localization as well as Website and other technical

Re: [PHP] 北京超品锐智技术有限责任公司招聘启示 [AD]

2007-03-15 Thread Tijnema !
On 3/15/07, Andrei [EMAIL PROTECTED] wrote: LOL... Why you even bother to read it? Because i hate SPAM ! Tijnema ! wrote: On 3/15/07, Faye Wang [EMAIL PROTECTED] wrote: 北京超品锐智技术有限责任公司招聘启示 公司简介: 国内专业本地化公司 Transpac Technology Inc., which was established on 1996, specializes in

RE: [PHP] wxWidget/.NET like framework for PHP ?

2007-03-15 Thread Edward Kay
Hello, I am currently thinking about a php framework dedicated to web applications with rich client interfaces using AJAX. The goal of this framework is to provide the possibility to write rich web applications using a syntax similar to wxWidgets or .NET. An example is better than a

[PHP] ftruncate

2007-03-15 Thread Swati Asthana
hi, Is there any function in php through which we can delete / truncate the content of a text file that is before the file pointer/file handler ? can we use truncate? actually im using a function to pick the content from a text file using 2 delimiters, but that function checks only the first

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

2007-03-15 Thread Ford, Mike
On 14 March 2007 01:00, Larry Garfield wrote: 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

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

2007-03-15 Thread Ford, Mike
On 12 March 2007 23:06, Richard Lynch 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

RE: [PHP] Capitalizing the first letter

2007-03-15 Thread Ford, Mike
On 14 March 2007 08:25, Richard Lynch wrote: On Tue, March 13, 2007 9:10 am, Todd Cary wrote: I would like to write a filter that takes the text smith or SMith and returns Smith; same for ralph smith. No, you don't. :-) You *think* you want to write that function, but this is one of

Re: [PHP] Capitalizing the first letter

2007-03-15 Thread Tijnema !
On 3/15/07, Ford, Mike [EMAIL PROTECTED] wrote: On 14 March 2007 08:25, Richard Lynch wrote: On Tue, March 13, 2007 9:10 am, Todd Cary wrote: I would like to write a filter that takes the text smith or SMith and returns Smith; same for ralph smith. No, you don't. :-) You *think* you

RE: [PHP] 2 errors I can not understand

2007-03-15 Thread Ford, Mike
On 14 March 2007 22:52, Richard Lynch wrote: On Wed, March 14, 2007 6:52 am, Myron Turner wrote: Richard Lynch wrote: On Tue, March 13, 2007 6:04 pm, Jonathan Kahan wrote: The = operator takes precedence, and $d is set to 0. But why? According to the manual, the modulus operator

Re: [PHP] wxWidget/.NET like framework for PHP ?

2007-03-15 Thread David CHATEL
Edward Kay [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Hi David, Take a look at Qcodo (http://www.qcodo.com) as this does exactly what you're looking for. Edward Hi Edward, This is indeed really close to what i'm looking for. There's one thing : with qcodo,

Re: [PHP] wxWidget/.NET like framework for PHP ?

2007-03-15 Thread Tijnema !
On 3/15/07, David CHATEL [EMAIL PROTECTED] wrote: Edward Kay [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Hi David, Take a look at Qcodo (http://www.qcodo.com) as this does exactly what you're looking for. Edward Hi Edward, This is indeed really close to what

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

2007-03-15 Thread Robert Cummings
On Thu, 2007-03-15 at 10:30 +, Ford, Mike wrote: On 12 March 2007 23:06, Richard Lynch 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

[PHP] suphp and header (Status: xxx yyyyy) not seeing default error page

2007-03-15 Thread Puskás Zsolt ( Errotan )
Hello everybody. Sorry for my bad english. I'm using apache 2.2.3-3.3 ; php 5.2.0-8-cgi ; suphp 0.6.2-1 on debian etch. I'm running php as cgi ( using suphp ). I can't get header (Status: 404 Not found); and other header (xxx) commands to send default error page like

Re: [PHP] 2 errors I can not understand

2007-03-15 Thread Myron Turner
Ford, Mike wrote: On 14 March 2007 22:52, Richard Lynch wrote: On Wed, March 14, 2007 6:52 am, Myron Turner wrote: Richard Lynch wrote: On Tue, March 13, 2007 6:04 pm, Jonathan Kahan wrote: The = operator takes precedence, and $d is set to 0. But why? According to

Re: [PHP] Passing a class through an array

2007-03-15 Thread Jeff Taylor
Ahh the problem was that I was using $name1-$name instead of $name1-name to call the variable. Thanks though :) 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

RE: [PHP] $_POST array order

2007-03-15 Thread Michael Weaver
Another option would be to use an associative array: input type=text name=domain_object_vars[FirstName] value=/ . . . . input type=text name=domain_object_vars[Zip] value= This way the 'submit' button wouldn't even show up as a key in the array, which is accessible to PHP through the

Re: [PHP] Environment variables...

2007-03-15 Thread David BERCOT
Hi, Le Wed, 14 Mar 2007 17:37:02 -0500 (CDT), Richard Lynch [EMAIL PROTECTED] a écrit : PHP runs as its own user in its own environment. Stuff you cram into your environment has no effect on that, as it should be. If you alter the environment of the PHP user you might get what you want.

Re: [PHP] logging erros and user access to logs

2007-03-15 Thread Jason Joines
Richard Lynch wrote: Get the errors OFF the web page (display_errors OFF) and into the logs and provide your users with logs for their own domains with vhosts. On Wed, March 14, 2007 11:02 am, Jason Joines wrote: My users want to be able to debug their scripts, see mysql errors, and

RE: [PHP] Environment variables...

2007-03-15 Thread Edward Kay
Yes, great... Now, I have another problem ;-) In Debian, everything is ok. I put my variable in /etc/apache2/httpd.conf. But on RedHat, I don't know which file is concerned... It's /etc/httpd/conf/httpd.conf on Fedora so I'd expect Red Hat to be the same. You'd probably be best putting

Re: [PHP] Redirecting in a PHP script

2007-03-15 Thread tedd
At 11:28 PM -0500 3/14/07, Richard Lynch wrote: On Tue, March 13, 2007 11:54 pm, Chris Shiflett wrote: 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

Re: [PHP] Environment variables...

2007-03-15 Thread David BERCOT
Everything is OK !!! Thank you very much. David. Le Thu, 15 Mar 2007 13:39:33 -, Edward Kay [EMAIL PROTECTED] a écrit : Yes, great... Now, I have another problem ;-) In Debian, everything is ok. I put my variable in /etc/apache2/httpd.conf. But on RedHat, I don't know which file

[PHP] Re: [PHP-WIN] Re: [PHP] Re: Question on virus/worms

2007-03-15 Thread Seak, Teng-Fong
Stut wrote: Seak, Teng-Fong wrote: But after I've spent some time reading the log files, I've finally found out how the hackers managed to achieve worm infiltration. Actually, they're using an URL like this:

Re: [PHP] Re: [PHP-WIN] Re: [PHP] Re: Question on virus/worms

2007-03-15 Thread Dave Goodchild
Turn off register_globals - if you pollute your scripts with global variables like that you are asking for trouble. If you can't make sure you clean the variable. Using include($page.php) is asking for trouble. If you can get register_globals switched off (it's off by default in PHP5 for this

Re: [PHP] Redirecting in a PHP script

2007-03-15 Thread Satyam
- Original Message - From: tedd [EMAIL PROTECTED] At 11:28 PM -0500 3/14/07, Richard Lynch wrote: On Tue, March 13, 2007 11:54 pm, Chris Shiflett wrote: 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

RE: [PHP] Re: question regarding form filtering

2007-03-15 Thread Tim
-Message d'origine- De : Richard Lynch [mailto:[EMAIL PROTECTED] Envoyé : mercredi 14 mars 2007 23:45 À : Tim Cc : 'Haydar Tuna'; php-general@lists.php.net Objet : RE: [PHP] Re: question regarding form filtering On Wed, March 14, 2007 9:07 am, Tim wrote: You almost for sure

[PHP] Re: [PHP-WIN] Re: [PHP] Re: Question on virus/worms

2007-03-15 Thread Seak, Teng-Fong
Seak, Teng-Fong wrote: No, I don't deserve anything because, as I've written in the original post (but I suppose you didn't notice), the website is outsourced and made by a 3rd company. Well, I've just realised (and checked) that I forgot to mention that my company's website was outsourced.

[PHP] PHP-FLASH

2007-03-15 Thread CK
Hi, Here's hoping one of the savvy PHP participants is also skilled with FLASH, the following variables are output to the browser as: thePrices=partCD +PlayerthePrices=price320thePrices=partShocksthePrices=price450thePr ices=partCa r+CoverthePrices=price500 The desired name/value

Re: [PHP] Can a Form Action transfer to another file that is a form?

2007-03-15 Thread Wolf
You can either split them off, or you will need to POST encode the data and pass it along to the next page. I'd have to see how the entire process/scripts were running to give you a good code sample, but if you want info to pass from one page to the next, POST it Stephen wrote: I have a script

[PHP] Re: PHP-FLASH

2007-03-15 Thread Mikey
To get values such as price=500 then you will need to encode that into your URL. At the moment you are making thePrices=price500, so the value you are seeing is correct. Tf you had price=500 then you would see a variable called price with a value of 500. I suspect you are trying to make an

Re: [PHP] Re: PHP-FLASH

2007-03-15 Thread Andrei
Mikey wrote: To get values such as price=500 then you will need to encode that into your URL. At the moment you are making thePrices=price500, so the value you are seeing is correct. Tf you had price=500 then you would see a variable called price with a value of 500. I suspect you are

Re: [PHP] logging erros and user access to logs

2007-03-15 Thread Tijnema !
On 3/15/07, Jason Joines [EMAIL PROTECTED] wrote: Richard Lynch wrote: Get the errors OFF the web page (display_errors OFF) and into the logs and provide your users with logs for their own domains with vhosts. On Wed, March 14, 2007 11:02 am, Jason Joines wrote: My users want to be able

RE: [PHP] Re: [PHP-WIN] Re: [PHP] Re: Question on virus/worms

2007-03-15 Thread Jim Moseby
Seak, Teng-Fong wrote: No, I don't deserve anything because, as I've written in the original post (but I suppose you didn't notice), the website is outsourced and made by a 3rd company. Then you should be having this conversation with the 3rd party. They need to validate *EVERY* bit of

Re: [PHP] Just upgraded to php 5, html emails showing up as text

2007-03-15 Thread Robert Cummings
On Thu, 2007-03-15 at 12:24 -0700, Paul Nowosielski wrote: Dear All, I've just upgraded our systems to apache2 and php5 and all our emails are showing up as text now and not html. Any ideas?? User error? Cheers, Rob. -- .. |

Re: [PHP] Re: PHP-FLASH

2007-03-15 Thread CK
Hi, This is an exercise, would you elaborate, as I'm fairly new to PHP- FLASH On Mar 15, 2007, at 12:55 PM, Mikey wrote: To get values such as price=500 then you will need to encode that into your URL. At the moment you are making thePrices=price500, so the value you are seeing is

Re: [PHP] Re: PHP-FLASH

2007-03-15 Thread CK
Hi, This is an exercise, using a simple file for the sake of learning. Any assistance would be appreciated. CK On Mar 15, 2007, at 1:08 PM, Andrei wrote: Mikey wrote: To get values such as price=500 then you will need to encode that into your URL. At the moment you are making

[PHP] LAMP Opportunity

2007-03-15 Thread Efrain Sarmiento
Title: Lamp Developer Skills: lamp, Linux, Apache, MySQL, php, unix Date: 3-15-2007 Location: New York, NY Area code: 212 Tax term: FULLTIME CON_IND CON_W2 CON_HIRE_IND CON_HIRE_W2 Pay rate: $70 Length:

Re: [PHP] Just upgraded to php 5, html emails showing up as text

2007-03-15 Thread Erik Jones
Are you including a mime-type header in your mail calls? On Mar 15, 2007, at 1:45 PM, Robert Cummings wrote: On Thu, 2007-03-15 at 12:24 -0700, Paul Nowosielski wrote: Dear All, I've just upgraded our systems to apache2 and php5 and all our emails are showing up as text now and not html.

Re: [PHP] Just upgraded to php 5, html emails showing up as text

2007-03-15 Thread Paul Nowosielski
That was the issue , thanks! On Thursday 15 March 2007 11:56, Erik Jones wrote: Are you including a mime-type header in your mail calls? On Mar 15, 2007, at 1:45 PM, Robert Cummings wrote: On Thu, 2007-03-15 at 12:24 -0700, Paul Nowosielski wrote: Dear All, I've just upgraded our

Re: [PHP] logging erros and user access to logs

2007-03-15 Thread Richard Lynch
On Thu, March 15, 2007 8:25 am, Jason Joines wrote: Richard Lynch wrote: Get the errors OFF the web page (display_errors OFF) and into the ?php error_reporting(E_PARSE); ini_set('display_errors','On'); ini_set('display_startup_errors','On'); include('mypage.php'); ?

Re: [PHP] Environment variables...

2007-03-15 Thread Richard Lynch
On Thu, March 15, 2007 8:18 am, David BERCOT wrote: Le Wed, 14 Mar 2007 17:37:02 -0500 (CDT), Richard Lynch [EMAIL PROTECTED] a écrit : PHP runs as its own user in its own environment. Stuff you cram into your environment has no effect on that, as it should be. If you alter the

Re: [PHP] logging erros and user access to logs

2007-03-15 Thread Jason Joines
On Thu, 15 Mar 2007, Richard Lynch wrote: Date: Thu, 15 Mar 2007 14:35:45 -0500 (CDT) From: Richard Lynch [EMAIL PROTECTED] To: Jason Joines [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: Re: [PHP] logging erros and user access to logs On Thu, March 15, 2007 8:25 am, Jason Joines

Re: [PHP] logging erros and user access to logs

2007-03-15 Thread Jason Joines
Richard Lynch wrote: On Thu, March 15, 2007 8:25 am, Jason Joines wrote: Richard Lynch wrote: Get the errors OFF the web page (display_errors OFF) and into the ?php error_reporting(E_PARSE); ini_set('display_errors','On'); ini_set('display_startup_errors','On');

Re: [PHP] logging erros and user access to logs

2007-03-15 Thread Richard Lynch
On Thu, March 15, 2007 2:47 pm, Jason Joines wrote: Richard Lynch wrote: On Thu, March 15, 2007 8:25 am, Jason Joines wrote: Richard Lynch wrote: Get the errors OFF the web page (display_errors OFF) and into the ?php error_reporting(E_PARSE); ini_set('display_errors','On');

Re: [PHP] suphp and header (Status: xxx yyyyy) not seeing default error page

2007-03-15 Thread Richard Lynch
On Thu, March 15, 2007 7:26 am, Puskás Zsolt ( Errotan ) wrote: My main goal is to hide class php files and directories and of course other error pages would be useful :) . Actually, for the class files, you can move them completely out of the web tree and use php.ini include_path to let PHP

Re: [PHP] ftruncate

2007-03-15 Thread Richard Lynch
On Thu, March 15, 2007 4:57 am, Swati Asthana wrote: Is there any function in php through which we can delete / truncate the content of a text file that is before the file pointer/file handler ? can we use truncate? actually im using a function to pick the content from a text file using 2

Re: [PHP] Environment variables...

2007-03-15 Thread Erik Jones
PHP runs as its own user in its own environment. Stuff you cram into your environment has no effect on that, as it should be. Just a note for the sticklers out there: PHP does not run as its own user. It runs as whatever user runs the php script. So, if the script is being run by a

Re: [PHP] suphp and header (Status: xxx yyyyy) not seeing default error page

2007-03-15 Thread Puskás Zsolt ( Errotan )
Thanks for replying, but header(HTTP/1.0 404 Not Found); only works if php is an apache module I tried it and tried lots of other stuff. I think it is not possible to use apache's error documents because php-cgi don't really communicate with apache ( apache specific functions don't work [ like

Re: [PHP] ftruncate

2007-03-15 Thread Tijnema !
On 3/15/07, Richard Lynch [EMAIL PROTECTED] wrote: On Thu, March 15, 2007 4:57 am, Swati Asthana wrote: Is there any function in php through which we can delete / truncate the content of a text file that is before the file pointer/file handler ? can we use truncate? actually im using a

Re: [PHP] logging erros and user access to logs

2007-03-15 Thread Jason Joines
Richard Lynch wrote: On Thu, March 15, 2007 2:47 pm, Jason Joines wrote: Richard Lynch wrote: On Thu, March 15, 2007 8:25 am, Jason Joines wrote: Richard Lynch wrote: Get the errors OFF the web page (display_errors OFF) and into the ?php error_reporting(E_PARSE);

Re: [PHP] LAMP Opportunity

2007-03-15 Thread Børge Holen
On a first thought, this mostly are not skills you wish for, but rather some experience. Someone should have read correction... ;D On Thursday 15 March 2007 19:48, Efrain Sarmiento wrote: Title:Lamp Developer Skills: lamp, Linux, Apache, MySQL, php, unix Date: 3-15-2007

[PHP] Help: DOMXPath-Query, quotes and apostrophes

2007-03-15 Thread Adam Randall
I seem to be hitting a wall here. I have the need to run an XPath query on strings that may contain quotes, apostrophes or both. Going through google turned up some interesting information, but nothing that solved my issue. An example of what I am trying to do is as follows: $query = '\'foobar';

Re: [PHP] Re: [PHP-WIN] Re: [PHP] Re: Question on virus/worms

2007-03-15 Thread Richard Lynch
On Thu, March 15, 2007 9:15 am, Seak, Teng-Fong wrote: Stut wrote: Seak, Teng-Fong wrote: But after I've spent some time reading the log files, I've finally found out how the hackers managed to achieve worm infiltration. Actually, they're using an URL like this:

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

2007-03-15 Thread Vieri
--- Ford, Mike [EMAIL PROTECTED] wrote: And I can testify from personal experience that this has been true since the very early days of 4.0.x (in fact, I still have a 4.0.5 installation hanging around that I tested it on...!!), so I do not know where the *BLEEP* the OP can have been getting

[PHP] php - web service (ajax/jscript)

2007-03-15 Thread bruce
Hi I'm trying to find information with regards to how to create/implement a test web services app. I'm trying to find pointers to anyone who's actually created this kind of functionality, or pointers to web sites where I can find the information I'm looking for. For my test, App1 has the web

[PHP] php bar/graph scripts/library

2007-03-15 Thread Ron Croonenberg
hello all, I am looking for some scripts/libraries etc to produce some bar graphs etc. Does anyone know of something nice (that works on Linux) thanks, Ron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] LAMP Opportunity

2007-03-15 Thread Nobody Special
Prestigious Online NY Based News Paper is seeking a solid *LAMP (see definition of LAMP below) developer to work as part of A team to architect and build the software that helps the online newspaper function as a site with an unparalleled combination of scale and complexity. The successful