[PHP] sending/notifying a server process

2005-11-11 Thread tony yau
Hi All, I have a server process that sends fax,print, etc (both in C# and in Java). Currently it polls says the fax table in the database for any fax jobs. How can I get my PHP script to call or notify these services directly so not having to wait for the next poll. I can't open a socket to the

[PHP] php session in ie

2005-11-11 Thread sunaram patir
Hi, i am having problem with internet explorer. i am working on a project on building a website where i need to keep track of the users i.e. i use a login system in there in short. with the following code i check whether the user is logged in or not. ?php session_start();

[PHP] php session in ie

2005-11-11 Thread sunaram patir
Hi, i am having problem with internet explorer. i am working on a project on building a website where i need to keep track of the users i.e. i use a login system in there in short. with the following code i check whether the user is logged in or not. ?php session_start();

Re: [PHP] mod_rewrite, apache2, php5RC1 and osx bsd

2005-11-11 Thread Marcus Bointon
On 10 Nov 2005, at 21:36, Richard Lynch wrote: On Wed, November 9, 2005 10:36 pm, Dan Rossi wrote: RewriteRule ^(.*)/(.*)/(.*)/(.*)/(.*)/(.+\.(video))$ ../../phpscript.php I should think all those .* should be .+ instead... I mean, if somebody surfs to this URL:

Re: [PHP] php session in ie

2005-11-11 Thread Marcus Bointon
On 11 Nov 2005, at 11:43, sunaram patir wrote: it works fine in firefox and msn explorer. in internet explorer, when i visit to a link in any page it asks for the login details again. could anyone please help me out?! It just sounds like you have cookies disabled or not allowed for this

Re: [PHP] php session in ie

2005-11-11 Thread M
sunaram patir wrote: Hi, i am having problem with internet explorer. i am working on a project on building a website where i need to keep track of the users i.e. i use a login system in there in short. with the following code i check whether the user is logged in or not. ?php session_start();

Re: [PHP] PHP 5 OO performance exceptions

2005-11-11 Thread cron
Some more thought. To solve this problem would be necessary to create some utility class like System in java and that way should be possible to do a System::echo($string) based on type, i guess this can be accomplished using overloading. Am I making any sense? - Original Message -

Re: [PHP] Re: security code

2005-11-11 Thread Jochem Maas
Richard Lynch wrote: On Thu, November 10, 2005 10:11 am, Jochem Maas wrote: rant mode=troll sarcasm=true anger=+3 replies=duck ... or put another way - is there a good reason why the web should be any less discriminating than the rest of society. Yes. It's the WORLD WIDE WEB. shucks,

Re: [PHP] Re: security code

2005-11-11 Thread Gustavo Narea
Hello. Richard Lynch wrote: On Thu, November 10, 2005 10:45 am, Gustavo Narea wrote: CAPTCHA tests are indispensables. The problem comes when you *only* use visual tests (such as visual turing numbers). If you need CAPTCHA tests, you may use them both visuals and audibles. This is a good

Re: [PHP] PHP 5 OO performance exceptions

2005-11-11 Thread Jochem Maas
read the internals@ archive - there is a chap there who is developing an php module that makes objects wrappers for basic types available. but imho: $str = new String(W T F !!); echo $str-getValue(), $str, $str-__toString(); is just a bit OTT. also creating and rolling out (to

Re: [PHP] Re: security code

2005-11-11 Thread Gustavo Narea
Hello. Richard Lynch wrote: On Thu, November 10, 2005 10:11 am, Jochem Maas wrote: rant mode=troll sarcasm=true anger=+3 replies=duck ... or put another way - is there a good reason why the web should be any less discriminating than the rest of society. Yes. It's the WORLD WIDE WEB.

Re: [PHP] php session in ie

2005-11-11 Thread Stephen Leaf
For security.. *never* store the password in a cookie.. if you must... instead do some sort of encryption on it and some other value store that and use it for verification. On Friday 11 November 2005 05:43 am, sunaram patir wrote: Hi, i am having problem with internet explorer. i am working on

Re: [PHP] Re: security code

2005-11-11 Thread Edward Vermillion
Gustavo Narea wrote: Hello. [snip] As I said previously, It depends on the target of your website. For instance, if your website is for web designers, you may only need to use visual turing numbers: They must have a user agent which is able to process images and I cannot imagine a blind

[PHP] Cannot find bison and Flex even when those are installed

2005-11-11 Thread Jurgen
Dear group I tried to install php 4.3.11 on Linux Suse 6.4. I've installed bison and flex in /usr/local/ When I run ./configure in my php-dir he tells me he can't find bison and flex. How can I solve this matter Jurgen Campforts Lichtaartsebaan 58 2460 Kasterlee Tel: 0496/60.25.75

RE: [PHP] a code question..??

2005-11-11 Thread bruce
would the approach be to use an iframe, and some sort of ajax code, to allow the user to interact with the dialog/code within the iframe. keep in mind, that the code within the iframe would be running on the remote server... -bruce -Original Message- From: comex [mailto:[EMAIL

Re: [PHP] Cannot find bison and Flex even when those are installed

2005-11-11 Thread Dan McCullough
You might have to change the configure option from with-bison=/usr/local/bison to with-bison=/usr or even with-bison= Happens to me alot. This would also be a better email for the PHP INSTALL list On 11/11/05, Jurgen [EMAIL PROTECTED] wrote: Dear group I tried to install php 4.3.11 on Linux

RE: [PHP] Cannot find bison and Flex even when those are installed

2005-11-11 Thread Jurgen
Everything is installed, I already have a running PHP on my box but without gd-support, now i wanted to add gd-support, so i builded gd with the proper extensions (jpeg, png, etc), then i made make clean in the php-folder where the source is, then the configure and it fails on bison and flex,

Re: [PHP] php session in ie

2005-11-11 Thread M
Stephen Leaf wrote: For security.. *never* store the password in a cookie.. OP stores the password in session -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Cannot find bison and Flex even when those are installed

2005-11-11 Thread Jurgen
Hi again, Nothing of your ideas helped out. mayby i'm not sure if this was right, but i performed followed command: PATH=/usr/local/bin:$PATH I installed bison, flex and all others in /usr/local/ so I put the bin-dir in my path-var. Fired the whole configure-bunch again and it was up and

Re: [PHP] Re: security code

2005-11-11 Thread Richard Lynch
On Fri, November 11, 2005 8:47 am, Gustavo Narea wrote: On the other hand, if your website is for programmers, you may want to know that programmers can be blind (although you won't take this into account): http://www.blindprogramming.com What I found most interesting about this site: PHP's

Re: [PHP] php session in ie

2005-11-11 Thread sunaram patir
i will for sure. thanks. On 11/11/05, M [EMAIL PROTECTED] wrote: Stephen Leaf wrote: For security.. *never* store the password in a cookie.. OP stores the password in session -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP

Re: [PHP] php session in ie

2005-11-11 Thread Richard Lynch
On Fri, November 11, 2005 5:20 am, sunaram patir wrote: session_start(); This one here... (see below) header(Location: login.php); Not crucial, but you'd save some HTTP connections by just doing: require 'login.php'; exit; instead of bouncing the user's agent back and forth

Re: [PHP] sending/notifying a server process

2005-11-11 Thread Richard Lynch
On Fri, November 11, 2005 4:57 am, tony yau wrote: I have a server process that sends fax,print, etc (both in C# and in Java). Currently it polls says the fax table in the database for any fax jobs. How can I get my PHP script to call or notify these services directly so not having to wait

Re: [PHP] a code question..??

2005-11-11 Thread comex
would the approach be to use an iframe, and some sort of ajax code, to allow the user to interact with the dialog/code within the iframe. keep in mind, that the code within the iframe would be running on the remote server... Sorry, I had forgotten the content of the original question. If what

Re: [PHP] Array_merge, safety and race condition?

2005-11-11 Thread Richard Lynch
On Thu, November 10, 2005 6:44 pm, Ezra Nugroho wrote: $array1 = array_merge ($array1, $array2); So far the code gives me what I want. However, suppose if $array1 is extremely huge, am I introducing a bug here because of possible race condition? It's possible that array_merge has two write

[PHP] Re: Unable to send variables to MySQL table

2005-11-11 Thread Satyam
It is a good idea to check for errors, like this: mysql_query($add_to_db) or die('Error inserting SQL data at ' . __LINE__ . ' br/' . $add_to_db .'br/' . mysql_error()); If there is no error (non-null return value from mysql_query()) the expresion after the OR does even get looked at, since

Re: [PHP] php session in ie

2005-11-11 Thread sunaram patir
instead of bouncing the user's agent back and forth session_cache_limiter('private_no_expire'); session_set_cookie_params(0,/,schools.zenrays.com); session_start(); ... will probably not match this one here. You've set the Cookie Parameters here to very specific values. You should

Re: [PHP] Inserting a NULL value into MySQL via PHP

2005-11-11 Thread Richard Lynch
On Thu, November 10, 2005 11:15 pm, Curt Zirzow wrote: ?php $sql_quoted = array(); // shiflett' -- style $myFieldValue = isset($POST['myFieldValue'])? $_POST['myFieldValue']: ''; if (strlen(trim($myFieldValue)) { $sql_quoted['myField'] = ' . mysql_real_escape_string($myFieldValue) . ';

RE: [PHP] a code question..??

2005-11-11 Thread Richard Lynch
On Thu, November 10, 2005 6:02 pm, bruce wrote: in your example, wouldn't app A, essentially download the code from app B, and run the source on app A? or would the code be run on app B, with the resulting html/content/page being transferred to app A? Yes, but I've NEVER in this entire

RE: [PHP] a code question..??

2005-11-11 Thread Richard Lynch
On Thu, November 10, 2005 7:41 pm, bruce wrote: +---+ | | | user| | 'sub_btn'| | | | | |

[PHP] Changing databases from MySQL to Oracle

2005-11-11 Thread Janet Smith
I am new to PHP and am trying to learn how it works. We have a PHP program that is using MySQL. We are wanting to use our Oracle database instead. The Oracle database is on a different server that our PHP program. Does any one know how I can change connections from MySQL to Oracle? We have

Re: [PHP] php session in ie

2005-11-11 Thread Richard Lynch
He's not storing the password in a Cookies. He's storging it in a $_SESSION Which is still a Risk, especially on a shared server, but it's not necessarily in the category of Never do this On Fri, November 11, 2005 9:48 am, Stephen Leaf wrote: For security.. *never* store the password in a

Re: [PHP] php session in ie

2005-11-11 Thread Richard Lynch
On Fri, November 11, 2005 12:06 pm, sunaram patir wrote: session_start(); session_cache_limiter('private_no_expire'); session_set_cookie_params(0,/,schools.zenrays.com); when i call var_dump($_COOKIE), it returns null. i can't make out what's happening! Is $_COOKIE NULL in the browsers

RE: [PHP] Changing databases from MySQL to Oracle

2005-11-11 Thread Jay Blanchard
[snip] I am new to PHP and am trying to learn how it works. We have a PHP program that is using MySQL. We are wanting to use our Oracle database instead. The Oracle database is on a different server that our PHP program. Does any one know how I can change connections from MySQL to Oracle? We

Re: [PHP] Re: Security Issues - Where to look?

2005-11-11 Thread GamblerZG
Richard Lynch wrote: On Thu, November 10, 2005 3:29 pm, GamblerZG wrote: IMO, the best way is to re-generate SIDs on each request, but such method will decrease perfomance of a script. But if Cookies are off, you just destroyed their Back button in their browser, which should be a crime.

Re: [PHP] Changing databases from MySQL to Oracle

2005-11-11 Thread Bernhard Janetzki
On Friday 11 November 2005 19:21, Janet Smith wrote: I am new to PHP and am trying to learn how it works. We have a PHP program that is using MySQL. We are wanting to use our Oracle database instead. The Oracle database is on a different server that our PHP program. Does any one know how I

Re: [PHP] Changing databases from MySQL to Oracle

2005-11-11 Thread Bernhard Janetzki
On Friday 11 November 2005 19:29, Bernhard Janetzki wrote: On Friday 11 November 2005 19:21, Janet Smith wrote: I am new to PHP and am trying to learn how it works. We have a PHP program that is using MySQL. We are wanting to use our Oracle database instead. The Oracle database is on a

Re: [PHP] php session in ie

2005-11-11 Thread sunaram patir
array(1) { [PHPSESSID]= string(32) 337a44c0d6c9ed3cf4ba4e97d707589e } is returned by firefox on calling var_dump($_COOKIE). NULL in ie. On 11/11/05, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, November 11, 2005 12:06 pm, sunaram patir wrote: session_start();

Re: [PHP] php session in ie

2005-11-11 Thread sunaram patir
On 11/11/05, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, November 11, 2005 12:06 pm, sunaram patir wrote: session_start(); session_cache_limiter('private_no_expire'); session_set_cookie_params(0,/,schools.zenrays.com); when i call var_dump($_COOKIE), it returns null. i can't make

Re: [PHP] php session in ie

2005-11-11 Thread Richard Lynch
Try setting session.use_cookies to Off so PHP won't even try to use Cookies. On Fri, November 11, 2005 12:49 pm, sunaram patir wrote: On 11/11/05, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, November 11, 2005 12:06 pm, sunaram patir wrote: session_start();

Re: [PHP] php session in ie

2005-11-11 Thread Andras Kende
- Original Message - From: sunaram patir [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Friday, November 11, 2005 5:31 AM Subject: [PHP] php session in ie Hi, i am having problem with internet explorer. i am working on a project on building a website where i need to keep track

Re: [PHP] Cannot find bison and Flex even when those are installed

2005-11-11 Thread Gustavo Narea
I'm not pretty sure, but I think I did this before running ./configure: # export YACC=bison Cheers. Dan McCullough wrote: You might have to change the configure option from with-bison=/usr/local/bison to with-bison=/usr or even with-bison= Happens to me alot. This would also be a better

[PHP] arrays question

2005-11-11 Thread cybermalandro cybermalandro
I have this that looks like this array(3) { [0]= array(2) { [0]= string(1) 1 [1]= string(1) 2 } [1]= array(2) { [0]= string(3) 492 [1]= string(3) 211 } [2]= array(2) { [0]= string(2) 11 [1]= string(2) 20 } } I want to loop through

[PHP] REQ: DOMDocument needs a way to format XML code

2005-11-11 Thread Daevid Vincent
I have a feature request (and I'm a bit disappointed that this isn't already in the DOMDocument, when there are nearly useless methods like normalize())... Ruby has this built in. xmllint has the --format parameter. But yet PHP's DOMDocument has no way of cleaning up the code. Could someone

[PHP] fopen on windows

2005-11-11 Thread Jay Blanchard
$theFile = fopen(docs/InstallationInstructionMaster.txt, r) || die; while(!feof($theFile)){ $theLine = fgets($theFile, 4096); echo $theLine . br\n; } fclose($theFile); The above code appears to work, but all that is output is lines of line breaksno data. The file is a tab

Re: [PHP] fopen on windows

2005-11-11 Thread Jasper Bryant-Greene
Jay Blanchard wrote: $theFile = fopen(docs/InstallationInstructionMaster.txt, r) || die; I'm not sure if it would make any difference, but I usually use or in this case rather than ||, and I know they have different operator precedence. while(!feof($theFile)){ $theLine =

RE: [PHP] fopen on windows

2005-11-11 Thread Jay Blanchard
[snip] Well, it's a pretty model example of a line-by-line file read. I can't see anything wrong with it, so perhaps the problem lies elsewhere. There's no other files with the same name in your include_path? Maybe something to do with auto_detect_line_endings or whatever it's called, in

Re: [PHP] fopen on windows

2005-11-11 Thread Jasper Bryant-Greene
Jay Blanchard wrote: [snip] Well, it's a pretty model example of a line-by-line file read. I can't see anything wrong with it, so perhaps the problem lies elsewhere. There's no other files with the same name in your include_path? Maybe something to do with auto_detect_line_endings or

RE: [PHP] fopen on windows

2005-11-11 Thread Nathan Tobik
I've always used: fopen(C:\\dir\\dir\\file.txt); on windows, I'm not sure how PHP interprets the slashes internally though... Nate Tobik (412)661-5700 x206 VigilantMinds $theFile = fopen(docs/InstallationInstructionMaster.txt, rb) || die; -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] fopen on windows

2005-11-11 Thread Jay Blanchard
[snip] Blank lines. Just to see if the problem is fgets(), try this: // Left off the b because it ain't binary :) $theFile = file_get_contents( docs/InstallationInstructionMaster.txt, r ) or die; $lines = explode( \n, $theFile ); foreach( $lines as $line ) { $line = explode( \t, $line

[PHP] Re: REQ: DOMDocument needs a way to format XML code

2005-11-11 Thread Rob Richards
Daevid Vincent wrote: I have a feature request (and I'm a bit disappointed that this isn't already in the DOMDocument, when there are nearly useless methods like normalize())... Ruby has this built in. xmllint has the --format parameter. But yet PHP's DOMDocument has no way of cleaning up the

[PHP] RE: REQ: DOMDocument needs a way to format XML code

2005-11-11 Thread Daevid Vincent
Holy Shit! Yes. That's awesome! You had me at EHLO --E.Webb (10.04.05) -Original Message- From: Rob Richards [mailto:[EMAIL PROTECTED] Sent: Friday, November 11, 2005 1:41 PM To: Daevid Vincent Cc: php-general@lists.php.net Subject: Re: REQ: DOMDocument needs a way to format XML

Re: [PHP] arrays question

2005-11-11 Thread Brent Baisley
Here's a few loops that should work. You can actually just use the first loop to concatenate text string instead create array items, but I wasn't sure what type of processing you wanted to do with the result. //Convert Array from 3 rows by 2 cols - 2 rows by 3 cols for($i=0;

[PHP] Filtering and Escaping (Was: Select and $_POST)

2005-11-11 Thread Chris Shiflett
Richard Lynch wrote: Suppose PHP had a superglobal $_CLEAN which was an empty array. This seems like a decent idea, for two reasons: 1. Developers don't have to remember to initialize their array, which offers some protection. PHP can do this for them. 2. Variable scope issues are not a

Re: [PHP] Filtering and Escaping (Was: Select and $_POST)

2005-11-11 Thread Jasper Bryant-Greene
Chris Shiflett wrote: I'm pretty lenient with email addresses and use the pattern from the PHP Cookbook (David Sklar and Adam Trachtenberg). I usually modify it to not allow angled brackets, since I don't know any email address that has those (but, they're probably OK as far as the spec goes).

Re: [PHP] php session in ie

2005-11-11 Thread Stephen Leaf
if it's a risk then it's in my never get into the practice of doing this category. Passwords should always be used to verify and discarded. never saved in any form which can be seen directly or decoded. And true $_SESSION isn't a cookie.. however there are some systems that a cookie is used

Re: [PHP] Re: Select and $_POST

2005-11-11 Thread GamblerZG
Curt Zirzow wrote: There is a pecl extension that you can register, custom superglobals although it comes with some extra stuff as well: http://php.net/runkit I wish it would be a part of core distribution. Would be extremely useful. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] What is the purpose of sessions extension?

2005-11-11 Thread Jasper Bryant-Greene
GamblerZG wrote: What is the purpose of sessions extension? The reason I ask is because learning to deal with all its functions, ini options and quirks took me _much_ more time than writing pure-php replacement. (That is, without using session_set_save_handler().) I realise that yours might

[PHP] Question about session

2005-11-11 Thread Bagus Nugroho
I have session code which written WindowsXP and It wotk properly as expected, but when I'm used in Windows 2K, it got error as; Notice: Undefined index: loginMessage in C:\CentralData\forms\mainForm.php on line 65 I'am used Apache 2.0 and PHP 5.0.4. Is php.ini setting on W2K different with XP

Re: [PHP] Question about session

2005-11-11 Thread Esteamedpw
There's no code. You need to put your code in the Email so we can see it...

Re: [PHP] Filtering and Escaping (Was: Select and $_POST)

2005-11-11 Thread Chris Shiflett
Chris Shiflett wrote: However, most security issues like XSS and SQL injection aren't really input filtering problems. Often, input filtering can effectively eliminate these vulnerabilities (and there's no excuse to not be filtering input), but escaping addresses the root cause of the problem.

[PHP] emailing MySQL list not working

2005-11-11 Thread Bruce Gilbert
Hello, I am using a template for an email database. This has a MySQL database where the end user can sign up to receive my email newsletter, They subscribe and are entered into a MySQL database that I have set up. Everything works fine as far as being entered into the dataase The problem occurs

[PHP] url query problem

2005-11-11 Thread Imroz
Hi PHP Gurus Am new to the php world, I need help to do something. PlZz help I have this link http://www.taximauritius.mu/link1.php. What I want to do : When clicking on the link above, that would bring me to a page

Re: [PHP] url query problem

2005-11-11 Thread Minuk Choi
You've tried accessing $_GET in reservation.php? Like $_GET['client'] would return apartment1 in reservation.php if you clicked on http://www.taximauritius.mu/reservation.php?client=apartment1 -Minuk Imroz wrote: Hi PHP Gurus Am new to the php world, I need help to do something.

RE: [PHP] Question about session

2005-11-11 Thread Bagus Nugroho
poblem was solved by add session_register function before $_SESSION[blablabla]; From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sat 12-Nov-2005 09:50 To: Bagus Nugroho; php-general@lists.php.net Subject: Re: [PHP] Question about session There's no

Re: [PHP] mail return-path problem

2005-11-11 Thread Eric Butera
On 11/8/05, Richard Heyes [EMAIL PROTECTED] wrote: Eric Butera wrote: I was just curious if there was a way to set the return path of an email dynamically. I've looked around and all I could find was a Zend tutorial running sendmail from the command line, which I don't want to do. :) I