[PHP] password in the mysql table 'auth'

2004-10-08 Thread 22
Concerning Auth How to set username and password in the mysql table 'auth'. Nothing has resulted from direct entry into the table. Vlad Alivanov

RE: [PHP] code not working...help?

2004-10-08 Thread Graham Cossey
[snip][snip] Secondly I find it easier (to read) to code my SQL statements thus: $countResult = db_query(SELECT count(*) AS msgCount FROM messages WHERE uid='$userID' AND fid='$fid' AND post_date='$lastmonth'); [snip] /quote --- I

[PHP] Array concatenation behaviour change

2004-10-08 Thread rich gray
Just a heads up on this change in array concatenation behaviour that could cause a few probs for some people... ? $arr1 = array(0 = 'Zero'); $arr2 = array(1 = 'One',2 = 'Two'); $arr2 = $arr1 + $arr2; echo phpversion().'br /'; print_r($arr2); ? this code produces on our provider's server...

RE: [PHP] Help with Array Sorting Please

2004-10-08 Thread Ford, Mike
On 07 October 2004 17:29, Nick Wilson wrote: Hi, If you scroll up the list you'll see another thread of mine, this is related. The reason for a new thread is that i've made a lot of progress but the old was getting really confusing.. Here's the scoop: I have an array like this:

Re: [PHP] pdf_open_pdi_page

2004-10-08 Thread Hendrik Schmieder
Matt M. schrieb: I was on that page. There's nothing which comes close to your assumption. sorry, wrong link you dont need PDFlib+PDI. Is that the license that you have? here is an assumption. I assumed you would read the pdflib manual, did you see? Note All functions described in this

[PHP] Sessions not destroyed

2004-10-08 Thread Hendrik Schmieder
Hello, we have a severe problem with seesions. We use Apache 1.3.31 with PHP 4.3.9 as Apache module in Windows 2000 In our php.ini we have session.gc_probability = 100 session.gc_dividend= 100 session.gc_maxlifetime = 120 But even after 20 minutes the session file is still there. And the

[PHP] function.filetime in PHP5

2004-10-08 Thread Nunners
Does anyone know what function.filetime has been replaced by in PHP5? Cheers Nunners

Re: [PHP] Array concatenation behaviour change

2004-10-08 Thread Gareth Williams
Can't you sort the array? On 8 Oct 2004, at 10:41, rich gray wrote: Just a heads up on this change in array concatenation behaviour that could cause a few probs for some people... ? $arr1 = array(0 = 'Zero'); $arr2 = array(1 = 'One',2 = 'Two'); $arr2 = $arr1 + $arr2; echo phpversion().'br /';

Re: [PHP] function.filetime in PHP5

2004-10-08 Thread Marek Kilimajer
Nunners wrote: Does anyone know what function.filetime has been replaced by in PHP5? no such function ever existed. Choose one of the following: filemtime filectime fileatime -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Sessions not destroyed

2004-10-08 Thread M. Sokolewicz
are you using the default PHP sessions? or are you using a custom session handler? Hendrik Schmieder wrote: Hello, we have a severe problem with seesions. We use Apache 1.3.31 with PHP 4.3.9 as Apache module in Windows 2000 In our php.ini we have session.gc_probability = 100 session.gc_dividend

Re: [PHP] Re: Sessions not destroyed

2004-10-08 Thread Hendrik Schmieder
M. Sokolewicz schrieb: are you using the default PHP sessions? or are you using a custom session handler? Hendrik Schmieder wrote: Hello, we have a severe problem with seesions. We use Apache 1.3.31 with PHP 4.3.9 as Apache module in Windows 2000 In our php.ini we have session.gc_probability =

Re: [PHP] Sessions not destroyed

2004-10-08 Thread Marek Kilimajer
Hendrik Schmieder wrote: Hello, we have a severe problem with seesions. We use Apache 1.3.31 with PHP 4.3.9 as Apache module in Windows 2000 In our php.ini we have session.gc_probability = 100 session.gc_dividend= 100 Should be session.gc_divisor. And you need to start at least one other

[PHP] tool to check syntax

2004-10-08 Thread Stéphane THIBAUDEAU
Hello, I'm looking for a tool which checks php syntax the way CheckStyle does for Java for example. (http://checkstyle.sourceforge.net/) I'd like such a tool to warn me when a PHPDoc comment doesn't document every parameters for a method, when there is no PHPDoc comment for a class or method,

[PHP] fopen and http://

2004-10-08 Thread Adam Williams
Hi, I'm having a problem with fopen and http files. I keep getting the error: Warning: fopen(http://zed/htdocs/rgfindingaids/series594.html ) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/awilliam/public_html/rgfaidstest.php on line 15

Re: [PHP] fopen and http://

2004-10-08 Thread Matt M.
But I don't understand why I am getting that error about failed to open strem: HTTP request failed, when I can bring up the links fine in a browser on the server running the php script. So can anyone help me out? Thanks do you have allow_url_fopen enabled?

Re: [PHP] fopen and http://

2004-10-08 Thread Adam Williams
On Fri, 8 Oct 2004, Matt M. wrote: But I don't understand why I am getting that error about failed to open strem: HTTP request failed, when I can bring up the links fine in a browser on the server running the php script. So can anyone help me out? Thanks do you have allow_url_fopen

Re: [PHP] Sessions not destroyed

2004-10-08 Thread Hendrik Schmieder
Marek Kilimajer schrieb: Hendrik Schmieder wrote: Hello, we have a severe problem with seesions. We use Apache 1.3.31 with PHP 4.3.9 as Apache module in Windows 2000 In our php.ini we have session.gc_probability = 100 session.gc_dividend= 100 Should be session.gc_divisor OK , changed in

Re: [PHP] tool to check syntax

2004-10-08 Thread Robby Russell
On Fri, 2004-10-08 at 14:37 +0200, Stphane THIBAUDEAU wrote: Hello, I'm looking for a tool which checks php syntax the way CheckStyle does for Java for example. (http://checkstyle.sourceforge.net/) I'd like such a tool to warn me when a PHPDoc comment doesn't document every parameters

Re: [PHP] Sessions not destroyed

2004-10-08 Thread Marek Kilimajer
Hendrik Schmieder wrote: Marek Kilimajer schrieb: Hendrik Schmieder wrote: Hello, we have a severe problem with seesions. We use Apache 1.3.31 with PHP 4.3.9 as Apache module in Windows 2000 In our php.ini we have session.gc_probability = 100 session.gc_dividend= 100 Should be

[PHP] Quotes in form textarea fields

2004-10-08 Thread Sam Smith
I swear I googled for an hour first. A user enters in a textarea field of FORM1.php: Bob is high Submitted to FROM2.php we get: Bob is \high\ In a hidden field in FROM2.php we store the value: type=hidden, value=? echo stripslashes($_POST['textarea']); ? Value now Bob is high Then from

Re: [PHP] fopen and http://

2004-10-08 Thread Hendrik Schmieder
Adam Williams schrieb: Hi, I'm having a problem with fopen and http files. I keep getting the error: Warning: fopen(http://zed/htdocs/rgfindingaids/series594.html ) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in

Re: [PHP] Quotes in form textarea fields

2004-10-08 Thread Robby Russell
On Fri, 2004-10-08 at 06:22 -0700, Sam Smith wrote: I swear I googled for an hour first. A user enters in a textarea field of FORM1.php: Bob is high Submitted to FROM2.php we get: Bob is \high\ In a hidden field in FROM2.php we store the value: type=hidden, value=? echo

Re: [PHP] fopen and http://

2004-10-08 Thread Adam Williams
On Fri, 8 Oct 2004, Hendrik Schmieder wrote: What say phpinfo about Registered PHP Streams ? Hendrik Hi, I think I just figured out my problem...I had to use rtrim($line) because I think there was a \n or an invisible character at the end of the line that was being passed to the

RE: [PHP] Sessions not destroyed

2004-10-08 Thread Graham Cossey
[snip] If you are right, then this is a severe design bug. Depends on your point of view. It is a sideeffect of loading current session (and thus accessing it) before the session gc is called. So the question is, should the session module give up on current session just because it should

RE: [PHP] fopen and http://

2004-10-08 Thread Mulley, Nikhil
May be the path is not the correct ,just check with the Web Directory you configured to be and if its htdocs then I would say that its better to remove the htdocs from the path in fopen statement. -Original Message- From: Adam Williams [mailto:[EMAIL PROTECTED] Sent: Friday, October 08,

Re: [PHP] Sessions not destroyed

2004-10-08 Thread Marek Kilimajer
Graham Cossey wrote: [snip] If you are right, then this is a severe design bug. Depends on your point of view. It is a sideeffect of loading current session (and thus accessing it) before the session gc is called. So the question is, should the session module give up on current session just

Re: [PHP] Sessions not destroyed

2004-10-08 Thread Hendrik Schmieder
Marek Kilimajer schrieb: Hendrik Schmieder wrote: Marek Kilimajer schrieb: Hendrik Schmieder wrote: Hello, we have a severe problem with seesions. We use Apache 1.3.31 with PHP 4.3.9 as Apache module in Windows 2000 In our php.ini we have session.gc_probability = 100 session.gc_dividend= 100

Re: [PHP] Quotes in form textarea fields

2004-10-08 Thread Marek Kilimajer
Sam Smith wrote: I swear I googled for an hour first. A user enters in a textarea field of FORM1.php: Bob is high Submitted to FROM2.php we get: Bob is \high\ In a hidden field in FROM2.php we store the value: type=hidden, value=? echo stripslashes($_POST['textarea']); ? Value now Bob is high So

Re: [PHP] Sessions not destroyed

2004-10-08 Thread Hendrik Schmieder
Graham Cossey schrieb: [snip] If you are right, then this is a severe design bug. Depends on your point of view. It is a sideeffect of loading current session (and thus accessing it) before the session gc is called. So the question is, should the session module give up on current session

Re: [PHP] Sessions not destroyed

2004-10-08 Thread Marek Kilimajer
Hendrik Schmieder wrote: Anyway , if the apache service is stopped (I am not speaking about a crash) all session files must be deleted. Why? Why should users loose their sessions just because I need to restart web server? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: [PHP-INSTALL] install errors with oci8

2004-10-08 Thread Hendrik Schmieder
Bob Redding schrieb: Running on Mandrake 10.0, Apache 2 and Oracle Client Bob Redding Look where you have libclntsh.a or libclntsh.so. Hendrik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions not destroyed

2004-10-08 Thread Hendrik Schmieder
Marek Kilimajer schrieb: Hendrik Schmieder wrote: Anyway , if the apache service is stopped (I am not speaking about a crash) all session files must be deleted. Why? Why should users loose their sessions just because I need to restart web server? OK, good point. So I redrew the request for

[PHP] Re: Sessions not destroyed

2004-10-08 Thread Hendrik Schmieder
Patrick Blousson schrieb: Hi, What about your hard disk partitions? Sessions only works on NTFS partitions. FAT don 't have a last accessed flag on file. Patrick. - Original Message - From: Hendrik Schmieder [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Friday,

[PHP] URL verification

2004-10-08 Thread Bruno Santos
Hello all. I have a login page where users have to authenticate themselves to access some site areas. Apache is configured to use https. the user when is typing the URL in the browser, i know that it will not put the https protocol. how can i check in the page if the user is accessing the the

Re: [PHP] Sessions not destroyed

2004-10-08 Thread Marek Kilimajer
Hendrik Schmieder wrote: Marek Kilimajer schrieb: Hendrik Schmieder wrote: Anyway , if the apache service is stopped (I am not speaking about a crash) all session files must be deleted. Why? Why should users loose their sessions just because I need to restart web server? OK, good point. So I

Re: [PHP] Sessions not destroyed

2004-10-08 Thread M. Sokolewicz
Hendrik Schmieder wrote: Graham Cossey schrieb: [snip] If you are right, then this is a severe design bug. Depends on your point of view. It is a sideeffect of loading current session (and thus accessing it) before the session gc is called. So the question is, should the session module

Re: [PHP] URL verification

2004-10-08 Thread Matt M.
how can i check in the page if the user is accessing the the site via SSL ?? or i have to put a redirect in the page anyway, whether the user is alredy accessing the page via SSL? if it has to be https, why not just use mod_rewrite to make sure it is. With php you could check

Re: [PHP] URL verification

2004-10-08 Thread Greg Donald
On Fri, 08 Oct 2004 15:48:52 +0100, Bruno Santos [EMAIL PROTECTED] wrote: how can i check in the page if the user is accessing the the site via SSL ?? or i have to put a redirect in the page anyway, whether the user is alredy accessing the page via SSL? parse_url() -- Greg Donald Zend

Re: [PHP] URL verification

2004-10-08 Thread Marek Kilimajer
Bruno Santos wrote: Hello all. I have a login page where users have to authenticate themselves to access some site areas. Apache is configured to use https. the user when is typing the URL in the browser, i know that it will not put the https protocol. how can i check in the page if the user

RE: [PHP] URL verification

2004-10-08 Thread Justin Palmer
how can i check in the page if the user is accessing the the site via SSL ?? if(!$_server['https']) { //redirect to secure page. } There are probably better ways, maybe through apache, but I think that will work. -Justin -Original Message- From: Bruno Santos [mailto:[EMAIL

Re: [PHP] Sessions not destroyed

2004-10-08 Thread Marek Kilimajer
M. Sokolewicz wrote: Hendrik Schmieder wrote: Ok, I think you're all missing a few points here... First of all, every time a session is started/accessed/written to/whatever, PHP makes a check, it calculates , using gc_probability/gc_divisor, if it should run the gc (Garbage Collector) on this

Re: [PHP] URL verification

2004-10-08 Thread Jordi Canals
Hi, Check the port number: 80 for http and 443 for https (standard defaults). You can check it with $_SERVER['SERVER_PORT'] i.e.: if ($_SERVER['SERVER_PORT'] != 443) { header('Location: https://some.location.here'); } Also, there is not important if the login form is displayed in SSL mode

Re: [PHP] Quotes in form textarea fields

2004-10-08 Thread Jordi Canals
A user enters in a textarea field of FORM1.php: Bob is high Submitted to FROM2.php we get: Bob is \high\ Tha't's normal beacuse you have magic_quotes_gpc_on In a hidden field in FROM2.php we store the value: type=hidden, value=? echo stripslashes($_POST['textarea']); ? Value now Bob

[PHP] Grab an array from a cookie without throwing errors?

2004-10-08 Thread Brian Dunning
I've got a cookie that's either non-existent or a serialized array. I'm trying all sorts of different code combinations to retrieve it into an array variable, but everything I try throws up some combination of notices and/or warnings. Here is my latest greatest: $cookie =

Re: [PHP] Grab an array from a cookie without throwing errors?

2004-10-08 Thread Matt M.
$cookie = $_COOKIE['bookmarks']; if(unserialize($cookie) == true) { $bookmarks = unserialize($cookie); } else { $bookmarks = array(); } if (isset($_COOKIE['bookmarks'])) { $cookie = $_COOKIE['bookmarks']; if(unserialize($cookie) == true) { $bookmarks =

[PHP] header redirect with POST?

2004-10-08 Thread Jay Blanchard
Good morning gurus, Is it possible to have a form where I post variables to a processing script which would then redirect to another form have variables posted from the processing script? I am researching the HTTP header things as I write this, but have not found a viable answer that is PHP only.

RE: [PHP] header redirect with POST?

2004-10-08 Thread Murray @ PlanetThoughtful
Much warmth, Murray http://www.planetthoughtful.org Building a thoughtful planet, One quirky comment at a time. -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Saturday, 9 October 2004 1:50 AM To: [EMAIL PROTECTED] Subject: [PHP] header redirect with POST?

[PHP] WDDX functions not working!!

2004-10-08 Thread Phil Ewington - 43 Plc
Hi All, I have been running 4.3.4 on a Cobalt RaQ 4 for some months and have been using the WDDX functions with great effect. I have recently moved all our sites to a new server (Linux RedHat ES 3 running PHP 4.3.6) and found that the WDDX functions do not work! No errors just nothing happens. I

Re: [PHP] header redirect with POST?

2004-10-08 Thread raditha dissanayake
Hi Jay, Nice to see you ask a question for a change ;-) Jay Blanchard wrote: Good morning gurus, Is it possible to have a form where I post variables to a processing script which would then redirect to another form have variables posted from the processing script? I am researching the HTTP header

Re: [PHP] header redirect with POST?

2004-10-08 Thread Matt M.
Is it possible to have a form where I post variables to a processing script which would then redirect to another form have variables posted from the processing script? I am researching the HTTP header things as I write this, but have not found a viable answer that is PHP only. I dont know if

Re: [PHP] Grab an array from a cookie without throwing errors?

2004-10-08 Thread John Nichel
Brian Dunning wrote: I've got a cookie that's either non-existent or a serialized array. I'm trying all sorts of different code combinations to retrieve it into an array variable, but everything I try throws up some combination of notices and/or warnings. Here is my latest greatest: $cookie =

Re: [PHP] header redirect with POST?

2004-10-08 Thread John Nichel
Jay Blanchard wrote: Good morning gurus, Is it possible to have a form where I post variables to a processing script which would then redirect to another form have variables posted from the processing script? I am researching the HTTP header things as I write this, but have not found a viable

Re: [PHP] header redirect with POST?

2004-10-08 Thread raditha dissanayake
John Nichel wrote: Jay Blanchard wrote: Good morning gurus, Is it possible to have a form where I post variables to a processing script which would then redirect to another form have variables posted from the processing script? I am researching the HTTP header things as I write this, but have not

Re: [PHP] Array concatenation behaviour change

2004-10-08 Thread rich gray
Can't you sort the array? Yes of course but that wasn't the point of my post I was trying to show that the same code produces differing results on 2 different versions of PHP ... rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RE: **[SPAM]** RE: [PHP] Newsgroups Space

2004-10-08 Thread Chris Dowell
Nice idea, but you want to be future-proof, don't you? Once alt.binaries.vr.animals.lobster starts filling up with 5 hour Virtual Reality ROMs you're looking at needing a lot more than that. I'd go with about 6 YB if I were you, and that's only because there aren't any SI prefixes higher than

Re: [PHP] header redirect with POST?

2004-10-08 Thread Jay Blanchard
[snip] that works, had to do it a couple of times myself. btw jay, if your machine has perl installed and the LWP module is also installed (usually will be) you might find the POST binary on your server. If it's there you can forget about sockets and make use of this program to send the data to

RE: [PHP] Newsgroups Space

2004-10-08 Thread Jay Blanchard
[snip] Nice idea, but you want to be future-proof, don't you? Once alt.binaries.vr.animals.lobster starts filling up with 5 hour Virtual Reality ROMs you're looking at needing a lot more than that. I'd go with about 6 YB if I were you, and that's only because there aren't any SI prefixes

[PHP] sending mail -- nullmailer

2004-10-08 Thread Josh Howe
Ok, so I came across nullmailer, which seems to do exactly what I want - forward mail to an existing smtp server. But it isn't working. I'm using the mail() php function, and the mails aren't arriving. The same code works fine on a windows machine pointing to the same smtp server. Does anybody

[PHP] Need help with a string

2004-10-08 Thread Brent Clements
Given the following string: $textString = Share A Dream Come True Parade 3:00 SpectroMagic Parade 9:00, 11:00 Wishes? nighttime spectacular 10:00 I need to break the string up into pieces where as $string[1] = Share A Dream Come True Parade 3:00 $string[2] = SpectroMagic Parade 9:00, 11:00

Re: [PHP] RE: **[SPAM]** RE: [PHP] Newsgroups Space

2004-10-08 Thread Matthew Sims
Nice idea, but you want to be future-proof, don't you? Once alt.binaries.vr.animals.lobster starts filling up with 5 hour Virtual Reality ROMs you're looking at needing a lot more than that. I'd go with about 6 YB if I were you, and that's only because there aren't any SI prefixes higher

Re: [PHP] sending mail -- nullmailer

2004-10-08 Thread Matthew Sims
Does nullmailer have a sendmail wrapper? mail() in unix/linux looks for the sendmail binary. mail() on windows uses the settings in php.ini. -- --Matthew Sims --http://killermookie.org Ok, so I came across nullmailer, which seems to do exactly what I want - forward mail to an existing

[PHP] Re: sending mail -- nullmailer

2004-10-08 Thread Manuel Lemos
Hello, On 10/08/2004 01:35 PM, Josh Howe wrote: Ok, so I came across nullmailer, which seems to do exactly what I want - forward mail to an existing smtp server. But it isn't working. I'm using the mail() php function, and the mails aren't arriving. The same code works fine on a windows machine

Re: [PHP] Need help with a string

2004-10-08 Thread Greg Donald
On Fri, 8 Oct 2004 11:38:23 -0500, Brent Clements [EMAIL PROTECTED] wrote: Given the following string: $textString = Share A Dream Come True Parade 3:00 SpectroMagic Parade 9:00, 11:00 Wishes? nighttime spectacular 10:00 I need to break the string up into pieces where as $string[1] =

[PHP] RE: Quotes in form textarea fields

2004-10-08 Thread Jensen, Kimberlee
Yes, the magic quotes will get you, but they are meant to protect you. Either 1. Go into php.ini and disable them 2. Create an include file that you include in each script, in it, use ini_set() to disable magic quotes at run time http://us2.php.net/manual/en/function.ini-set.php -Original

[PHP] move_uploaded_file() problem

2004-10-08 Thread Daniel Lahey
I'm seeing a very strange problem with move_uploaded_file(...). I'm uploading jpegs and the transfer appears to go a little too quickly, and when I look at the directory listing, the files are about twice the size that they should be. When we view the file in the browser, the images are either

[PHP] Creating a Sequence from Array

2004-10-08 Thread Nick Wilson
hello all, I have an array like this: array ( 1 = array(123, 345, 454), 2 = array(8854, 393, 4947, 77, 3343), 3 = array(393, 33) ); I need to create an array sequence from that that would look like this: array ( '1:123', '2:8854',

Re: [PHP] Help with Array Sorting Please

2004-10-08 Thread Nick Wilson
* and then Ford, Mike declared php 543 = 2 432 = 2 // like here, more 2's than 1's see? 566 = 2 568 = 2 999 = 3 878 = 3 444 = 3 That's not terribly good, as you are using the unknowns (ip addresses) as keys to the knowns (machine IDs). It would be better keying off the

Re: [PHP] Help with Array Sorting Please

2004-10-08 Thread Nick Wilson
* and then Ford, Mike declared 543 = 2 432 = 2 // like here, more 2's than 1's see? 566 = 2 568 = 2 999 = 3 878 = 3 444 = 3 That's not terribly good, as you are using the unknowns (ip addresses) as keys to the knowns (machine IDs). It would be better keying off the machine

Re: [PHP] Need help with a string

2004-10-08 Thread Jason Davidson
prolly already mentioned, but what about explode using the commas $strings = explode(',', $textString); Greg Donald [EMAIL PROTECTED] wrote: On Fri, 8 Oct 2004 11:38:23 -0500, Brent Clements [EMAIL PROTECTED] wrote: Given the following string: $textString = Share A Dream Come True

Re: [PHP] Need help with a string

2004-10-08 Thread Tim Van Wassenhove
In article [EMAIL PROTECTED], Greg Donald wrote: On Fri, 8 Oct 2004 11:38:23 -0500, Brent Clements [EMAIL PROTECTED] wrote: Given the following string: $textString = Share A Dream Come True Parade 3:00 SpectroMagic Parade 9:00, 11:00 Wishes? nighttime spectacular 10:00 I need to break

[PHP] Re: move_uploaded_file() problem

2004-10-08 Thread Tim Van Wassenhove
In article [EMAIL PROTECTED], Daniel Lahey wrote: I'm seeing a very strange problem with move_uploaded_file(...). I'm uploading jpegs and the transfer appears to go a little too quickly, and when I look at the directory listing, the files are about twice the size that they should be. When we

[PHP] Re: Creating a Sequence from Array

2004-10-08 Thread Tim Van Wassenhove
In article [EMAIL PROTECTED], Nick Wilson wrote: array ( 1 = array(123, 345, 454), 2 = array(8854, 393, 4947, 77, 3343), 3 = array(393, 33) ); I need to create an array sequence from that that would look like this: array ( '1:123',

Re: [PHP] header redirect with POST?

2004-10-08 Thread djoseph
I'm not sure I completely understand what is trying to be accomplished, but it sounds like some javascript could be used to do this. Basically, you'd have form a submit to form b, then form b generate a form with a few hiddens, then force a submit with javascript to form c. -Dan Joseph -

[PHP] read aspx files

2004-10-08 Thread celso andrade
hi all, how do i setup a apache+php server to read aspx files as php files? i need it to parse aspx files. thank you ___ Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora!

Re: [PHP] Help with Array Sorting Please

2004-10-08 Thread Nick Wilson
* and then Nick Wilson declared * and then Ford, Mike declared php sorry about the dupes everyone, i changed router today and resent a whole bunch of stuff b4 i realized it wasnt goint out... -- Nick W -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] fopen and http://

2004-10-08 Thread Andrew Kreps
On Fri, 8 Oct 2004 08:33:11 -0500 (CDT), Adam Williams [EMAIL PROTECTED] wrote: So now it works except on the very last line it processes, it prints does not exist, so there is still some sort of a hidden character but its not affecting fetching the URLs from the web server. so i'm still

Re: [PHP] read aspx files

2004-10-08 Thread Robby Russell
On Fri, 2004-10-08 at 15:00 -0300, celso andrade wrote: hi all, how do i setup a apache+php server to read aspx files as php files? i need it to parse aspx files. thank you Do you mean run aspx files? Or just read them? If so, you should just be able to read the contents of

Re: [PHP] read aspx files

2004-10-08 Thread Brent Clements
Your question is a bit confusing. Do you want to convert asp to php on the fly? and then parse the php natively? Not easily done. Or do you just want to name your files .aspx yet have php code in the files. Easily done. Or do you want to run aspx files natively?(if so check out the mod_mono

Re: [PHP] Sessions not destroyed

2004-10-08 Thread Dennis Gearon
There is a difference between the session file existing, and the user still having a valid session. If the timeout has occurred, and the file has not been deleted, when the user accesses it, the session will not show up in $_SESS[]. Which for all intents an purposes, means the session has been

Re: [PHP] read aspx files

2004-10-08 Thread Marek Kilimajer
celso andrade wrote: hi all, how do i setup a apache+php server to read aspx files as php files? i need it to parse aspx files. Find this line in httpd.conf: AddType application/x-httpd-php .php Add aspx extension and restart apache -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Re: Creating a Sequence from Array

2004-10-08 Thread Nick Wilson
* and then Tim Van Wassenhove declared I do have some code to show you but im afraid ive been going at it all the wrong way so im not sure it's of any use. Do you have a clue what your code is doing? Or did you just come up with it? What is the use of writing code that you don't

Re: [PHP] header redirect with POST?

2004-10-08 Thread Chris Shiflett
--- Jay Blanchard [EMAIL PROTECTED] wrote: Is it possible to have a form where I post variables to a processing script which would then redirect to another form have variables posted from the processing script? I am researching the HTTP header things as I write this, but have not found a

Re: [PHP] Help with Array Sorting Please

2004-10-08 Thread M Saleh EG
i'd recommand u to use trees if u got complicated data arrays. use tree datascturcutres... u could sort n do watever then or jus queues or stacks depending on what u wanna do Try PEAR Tree class it might help Hope that was usefull. On Fri, 8 Oct 2004 20:13:10 +0200, Nick Wilson [EMAIL

Re: [PHP] read aspx files

2004-10-08 Thread M Saleh EG
Do u mean using .aspx as ur file extensions? and then setup Apache to read them as php file? If that's the case then ur talking about types and extension handlers. Try or research about: Add Type in apache docs. and handlers. On Fri, 08 Oct 2004 11:23:02 -0700, Robby Russell [EMAIL PROTECTED]

RE: [PHP] Re: sending mail -- nullmailer

2004-10-08 Thread Josh Howe
I don't want to setup and maintain a new mail server (sendmail) when we already have an smtp server set up and maintained by our sys admin. Am I crazy here? Can anybody recommend a good sendmail wrapper I can use that will work with PHP and any other apps that use sendmail? Thanks

[PHP] static inheritance in a class object

2004-10-08 Thread Kevin
Anyone know why class static vars are inherited? (See code below) class A { public static $CONFIG = null; } A::$CONFIG = A; class B extends A { public static $CONFIG = null; } B::$CONFIG = B; print (A: . A::$CONFIG . br); print (B: . B::$CONFIG . br); -- PHP General Mailing List

Re: [PHP] Help with Array Sorting Please

2004-10-08 Thread Nick Wilson
* and then M Saleh EG declared i'd recommand u to use trees if u got complicated data arrays. use tree datascturcutres... u could sort n do watever then or jus queues or stacks depending on what u wanna do Try PEAR Tree class it might help Hope that was usefull. *very*

[PHP] finding links to jpg,mpg,avi

2004-10-08 Thread Mag
Hi, I have seen this functionality in a PERL program/script and would like to do the same thing...but in php. The way the script worked was, you give it a url: http://somesite.com/pics-and-movies.html pics-and-movies.html (the above example page) would contain something like: html body a

Re: [PHP] Re: sending mail -- nullmailer

2004-10-08 Thread John Nichel
Josh Howe wrote: I don't want to setup and maintain a new mail server (sendmail) when we already have an smtp server set up and maintained by our sys admin. Am I crazy here? Can anybody recommend a good sendmail wrapper I can use that will work with PHP and any other apps that use sendmail?

[PHP] 1000+ character POSTed strings get mangled

2004-10-08 Thread Jonny Roller
If I POST a string greater than 1000 character through a form, the resulting string gets mangled. What I get back is the first 1000 characters of the string, then the name of the form variable, an equal sign (=) and then the entire string again. If I change the form to a GET, this problem

Re: [PHP] 1000+ character POSTed strings get mangled

2004-10-08 Thread John Holmes
Jonny Roller wrote: If I POST a string greater than 1000 character through a form, the resulting string gets mangled. What I get back is the first 1000 characters of the string, then the name of the form variable, an equal sign (=) and then the entire string again. If I change the form to a

Re: [PHP] Quotes in form textarea fields

2004-10-08 Thread Andrew Kreps
On Fri, 08 Oct 2004 06:22:22 -0700, Sam Smith [EMAIL PROTECTED] wrote: Then from FROM2.php we Submit BACK to FROM1.php and enter it back into the textarea field with: type=textarea, value=? echo $_POST['hidden']); ? I'd like to add that you can also use the following syntax for textarea

Re: [PHP] Need help with a string

2004-10-08 Thread Andrew Kreps
On 8 Oct 2004 17:27:10 -, Tim Van Wassenhove [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], Greg Donald wrote: On Fri, 8 Oct 2004 11:38:23 -0500, Brent Clements [EMAIL PROTECTED] wrote: Given the following string: $textString = Share A Dream Come True Parade 3:00 SpectroMagic

Re: [PHP] Quotes in form textarea fields

2004-10-08 Thread John Holmes
Andrew Kreps wrote: I'd like to add that you can also use the following syntax for textarea fields: input type=textarea?= $_POST['hidden'] ?/textarea which may also get you past the quoting problem. You mean you can use: textarea name=hidden?=htmlentities($_POST['hidden'])?/textarea unless you

[PHP] Callback functions inside classes - how to?

2004-10-08 Thread Thomas Hochstetter
Hi again, I have always been wondering how this is done properly: Here is an example: [snip] class A { function name( $a, $b, $c) { $tmp = array(); $tmp[a] = $a; . array_push( $GLOBALS['XMLStack'], $tmp ); } function parse() { .. some definitions .

[PHP] Recursion to sanitize user input

2004-10-08 Thread zooming
I'm trying to sanitize my user input. My sanitize function does not work if I send a variable that's an array. I'm using recursion to go through the array. The example below shows that $_POST['city'] works but $_POST['user'] doesn't work. The array comes back blank. Anyone see what's wrong

[PHP] Re: Recursion to sanitize user input

2004-10-08 Thread M. Sokolewicz
Very simple :) when recursion happens, you return the sanitized value, but never store it ;) [EMAIL PROTECTED] wrote: I'm trying to sanitize my user input. My sanitize function does not work if I send a variable that's an array. I'm using recursion to go through the array. The example below

Re: [PHP] Re: Recursion to sanitize user input

2004-10-08 Thread zooming
Hi M I don't understand. I don't think I'm storing it anywhere. I have it looping through all the POST variables. If it's not an array then the sanitize function returns a sanitized value. If it's an array then the sanitize function calls itself again and again until it finds a single

[PHP] Securing Servers

2004-10-08 Thread Stephen Craton
Hello, I'm in the process of hooking up my own personal web server for use by certain clients to view the progress on work I'm doing for them. However, I'm on a shared network that is behind a firewall and some computers on the network need to stay secure as possible. I've heard that if you gain

Re: [PHP] Re: Recursion to sanitize user input

2004-10-08 Thread Comex
The recursion doesn't do anything with the returned value from the function. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   >