Re: [PHP] PEAR::SOAP returns objects instead of associative arrays

2005-02-03 Thread Jochem Maas
William Lovaton wrote: Hello, I just found out that since version 0.7, PEAR::SOAP returns stdClass objects instead of associative arrays. http://pear.php.net/package-changelog.php?pacid=87release=0.7.3 What is the reason for this? I _need_ to get associative arrays, how do I revert to the old

[PHP] Howto disable echo back in windows?

2005-02-03 Thread Unreal HSHH
I need to get data from stdin, but i don't know how to disable echo back in windows. There is stty -echo in unix like OS, but what about windows? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Hoe does that work - http://www.domainname.con/?var=lakjhd (instead of http://www.domainname.con/file.php?var=lakjhd)?

2005-02-03 Thread symbulos partners
How do you activate / allow the behavious http://www.domainname.con/?var=lakjhd instead of the more traditional http://www.domainname.con/file.php?var=lakjhd -- symbulos partners -.- symbulos - ethical services for your organisation http://www.symbulos.com -- PHP General Mailing List

Re: [PHP] Hoe does that work - http://www.domainname.con/?var=lakjhd (instead of http://www.domainname.con/file.php?var=lakjhd)?

2005-02-03 Thread Unreal HSHH
Rename the file.php to your web server default index file name, such as index.php. Or make a rewrite for it On Thu, 03 Feb 2005 09:42:45 +, symbulos partners [EMAIL PROTECTED] wrote: How do you activate / allow the behavious http://www.domainname.con/?var=lakjhd instead of the more

RE: [PHP] Hoe does that work - http://www.domainname.con/?var=lakjhd (instead of http://www.domainname.con/file.php?var=lakjhd)?

2005-02-03 Thread Chris Ramsay
[snip] How do you activate / allow the behavious http://www.domainname.con/?var=lakjhd instead of the more traditional http://www.domainname.con/file.php?var=lakjhd [snip] Are you using Apache? - http://httpd.apache.org/docs-2.0/mod/mod_dir.html ||

Re: [PHP] Howto disable echo back in windows?

2005-02-03 Thread Jochem Maas
Unreal HSHH wrote: I need to get data from stdin, but i don't know how to disable echo back in windows. There is stty -echo in unix like OS, but what about windows? not strictly php related butI think what your looking for is to start your batch script with: @echo off -- PHP General Mailing

Re: [PHP] Need help with ereg regular expression

2005-02-03 Thread Jochem Maas
John Nichel wrote: Argghhhreturn receipts indeed - I believe there was an informal decision that everyone should actually return the requested reciept - the idea being that 1000+ reciepts will probably make said person change their ways. I notice that KHS (the OP) didn't

Re: [PHP] Need help with ereg regular expression

2005-02-03 Thread Jochem Maas
Mikey wrote: Argghhhreturn receipts I just mailed the guy and gave him a friendly nod - they are off now :-) damn ;-) I was hoping a barrage of RRs would be what made him turn them off. oh well on to the next victim ;-) Mikey -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Need help with ereg regular expression

2005-02-03 Thread Jochem Maas
Jason Wong wrote: On Thursday 03 February 2005 02:18, John Nichel wrote: Argghhhreturn receipts Use a *real* mail client -- one that ignores those stupid things. Jason, I use Thunderbird - AFAICT its pretty real, BUT I have to have allow return reciepts because of other

Re: [PHP] Need help with ereg regular expression

2005-02-03 Thread Jason Wong
On Thursday 03 February 2005 18:08, Jochem Maas wrote: Jason, I use Thunderbird - AFAICT its pretty real, BUT I have to have allow return reciepts because of other things/work I do - turning them off is not an option for me I can understand it if it's to enable scheduling features. However if

Re: [PHP] Need help with ereg regular expression

2005-02-03 Thread Jochem Maas
Jason Wong wrote: On Thursday 03 February 2005 18:08, Jochem Maas wrote: Jason, I use Thunderbird - AFAICT its pretty real, BUT I have to have allow return reciepts because of other things/work I do - turning them off is not an option for me I can understand it if it's to enable scheduling

Re: [PHP] Multiline data Insert Into table from a generated form?

2005-02-03 Thread Mike Smith
Change: while ($c=0;$ccount($_POST['tourid']):$c++) to (change the : before $c++ to ;): for ($c=0;$ccount($tourid);$c++) I think i mentioned the while loop in my first reply. I should have said for. (See: http://us2.php.net/for, http://us3.php.net/while, http://us4.php.net/foreach) I'm not

[PHP] Script stuck on final ?

2005-02-03 Thread Alp
Why would a php script get stuck at the ver last line of code in php/mysql combination? I'm getting a parse error at the very last line. Thanks in advance for your help. Alp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Script stuck on final ?

2005-02-03 Thread Reinhart Viane
Probably because you forgot to use a closing } somewhere or you forgot a ; somewhere Greetings -Oorspronkelijk bericht- Van: Alp [mailto:[EMAIL PROTECTED] Verzonden: donderdag 3 februari 2005 12:36 Aan: php-general@lists.php.net Onderwerp: [PHP] Script stuck on final ? Why would a php

Re: [PHP] Script stuck on final ?

2005-02-03 Thread Jochem Maas
Alp wrote: Why would a php script get stuck at the ver last line of code in php/mysql combination? I'm getting a parse error at the very last line. probably because you have an unmatch curly brace somewhere ({ or }). Thanks in advance for your help. Alp -- PHP General Mailing List

[PHP] Re: Script stuck on final ?

2005-02-03 Thread Alp
Thanks to both of you. Unfortunately I have found out it was due to another reason: in one function I am trying to insert 3 sets of data into 3 seperate tables. In trying to accomplish that I am using a 'for' loop. The minute I write in the second 'for' loop I loose the page in browser and receive

Re: [PHP] Re: Script stuck on final ?

2005-02-03 Thread Jochem Maas
Alp wrote: Thanks to both of you. Unfortunately I have found out it was due to another reason: in one function I am trying to insert 3 sets of data into 3 seperate tables. In trying to accomplish that I am using a 'for' loop. The minute I write in the second 'for' loop I loose the page in browser

Re: [PHP] Re: Script stuck on final ?

2005-02-03 Thread James Kaufman
On Thu, Feb 03, 2005 at 08:25:43PM +0800, Alp wrote: Thanks to both of you. Unfortunately I have found out it was due to another reason: in one function I am trying to insert 3 sets of data into 3 seperate tables. In trying to accomplish that I am using a 'for' loop. The minute I write in the

RE: [PHP] Hoe does that work - http://www.domainname.con/?var=lakjhd (instead of http://www.domainname.con/file.php?var=lakjhd)?

2005-02-03 Thread Chris Ramsay
Dear Symbulos Partners, OK this is becoming off topic really...but here we go very briefly... If you are using apache web server(?) then you need to edit your httpd.conf and add index.php to your DirectoryIndex list; Reference all calls to the file (will have to be called index.php) to /... If

Re: [PHP] PEAR::SOAP returns objects instead of associative arrays

2005-02-03 Thread William Lovaton
Hi, It works but in some cases. It works with this: stdClass Object ( [cod_tipo_identi] = 4 [des_identificacion] = REGISTRO CIVIL [abr_identificacion] = RC ) It convert it to an Array, but it doesn't work with this: Array ( [0] = stdClass Object (

Re: [PHP] PEAR::SOAP returns objects instead of associative arrays

2005-02-03 Thread Jochem Maas
William Lovaton wrote: Hi, ... I need the nested objects to be arrays and your suggestion won't do the trick and I don't want to be iterating over the array to convert the objects. well its either iterate the array and typecast or set the option, you best bet for finding out how/where/what

Re: [PHP] Need help with ereg regular expression

2005-02-03 Thread John Nichel
Jason Wong wrote: On Thursday 03 February 2005 02:18, John Nichel wrote: Argghhhreturn receipts Use a *real* mail client -- one that ignores those stupid things. I'm using Thunderbird on a RHEL AS 3 box. About as real as it gets. Unfortunately, here at work, I need to have

[PHP] Copy mySQL database...

2005-02-03 Thread Russell P Jones
I just need to make a duplicate copy of a mySQL database (I have to reinstall some web software and I am afraid it will overwrite the existing database, so i would like to make a backup of it)... Any classes, scripts, etc out there to do this? Russ -- PHP General Mailing List

RE: [PHP] Copy mySQL database...

2005-02-03 Thread Mikey
I just need to make a duplicate copy of a mySQL database (I have to reinstall some web software and I am afraid it will overwrite the existing database, so i would like to make a backup of it)... Any classes, scripts, etc out there to do this? Russ Try RTFM for mySQL, section 5.6.1

Re: [PHP] Copy mySQL database...

2005-02-03 Thread Jochem Maas
Russell P Jones wrote: I just need to make a duplicate copy of a mySQL database (I have to reinstall some web software and I am afraid it will overwrite the existing database, so i would like to make a backup of it)... Any classes, scripts, etc out there to do this? oh for gods sake, do you not

Re: [PHP] Reading a .doc or .rtf file in php

2005-02-03 Thread Marek Kilimajer
sunil wrote: I have got a task of reading a .doc(word document) using php. But while reading doc file, some meta character like boxes and some other characters also appears. I will be highly obliged to you if you send me the code for reading a .doc file using php. Any help appriciated. You can

Re: [PHP] Copy mySQL database...

2005-02-03 Thread Steve Buehler
At 08:52 AM 2/3/2005, you wrote: I just need to make a duplicate copy of a mySQL database (I have to reinstall some web software and I am afraid it will overwrite the existing database, so i would like to make a backup of it)... Any classes, scripts, etc out there to do this? This is more

[PHP] Using a recursive ArrayIterator

2005-02-03 Thread V Kam
Hello all I need some assistance converting code to use the RecursiveIterator in PHP 5 SPL. I have the following function which scans through a nested array set and returns the path to all matches. ?php function arraySearchRecursive($needle, $haystack, $path=) { foreach($haystack as

[PHP] String - Number Automatic Conversion

2005-02-03 Thread Nuzzo Art-CINT116
I am not sure if this is a bug or I am just doing something dumb but I am having a problem with automatic converting of strings to a number between 0 and -1. For example: $p1 = Array ( 0 = -.15, 1 = -.15 + 0, 2 = (float) -.15 + 0, 5 = -1.15,

[PHP] mcrypt_module_open

2005-02-03 Thread blackwater dev
Do I have to compile php5 with a specific option to use this function (mcrypt_module_open)? I just have it compiled with mysql and it throws errors that this function is undefined. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] String - Number Automatic Conversion

2005-02-03 Thread Richard Lynch
Nuzzo Art-CINT116 wrote: 1 = -.15 + 0, 6 = -1.15 + 0, [1] = 0 [6] = -1.15 Is this a bug or am I missing something. Looks like a bug to me... It's remotely possible that it's documented somewhere that -.15 doesn't turn into a number, but that would be

Re: [PHP] Script stuck on final ?

2005-02-03 Thread Richard Lynch
Alp wrote: Why would a php script get stuck at the ver last line of code in php/mysql combination? I'm getting a parse error at the very last line. It may help you (now and in the future) to remember that PHP is just a program, that reads your script, line by line, and then tries to convert

[PHP] Premature end of script headers: php

2005-02-03 Thread Claudio
Hi, Im trying to use PHP4 and PHP5 at the same time. PHP4 as CGI and PHP5 as module. PHP5 ist actually not present and not installed PHP4 runs find as module, when I try to use it as CGI I receive the error message: Premature end of script headers: php Can someone help me? Here my used

Re: [PHP] mcrypt_module_open

2005-02-03 Thread Richard Lynch
blackwater dev wrote: Do I have to compile php5 with a specific option to use this function (mcrypt_module_open)? I just have it compiled with mysql and it throws errors that this function is undefined. ./configure --help | less /mcrypt -- Like Music? http://l-i-e.com/artists.htm -- PHP

[PHP] I need to create a search that will search partial files names of images and display the images. Basically, I have a folder on the internet that has security camera images dumped into it with a file name like this:

2005-02-03 Thread Vin
I need to create a search that will search partial files names of images and display the images. Basically, I have a folder on the internet that has security camera images dumped into it with a file name like this: MDcameraname20050109104846001N38B.jpg MDcameranameMMDDHHMMSS001N38B So what

[PHP] Re: PHP5 + SPL - Creating an object as an array.

2005-02-03 Thread Yotam Ofek
Jason Barnett wrote: Yotam Ofek wrote: I would like to create an object like this: ?php class TestClass { private $some_array; public $just; public $some; public $public; public $vars; } ? Is it possible, through SPL, to make the class accessible as $testclass['array_key'],

Re: [PHP] Re: How to make binary strings useful?

2005-02-03 Thread Richard Lynch
Jerry Miller wrote: There's a FAQ section entitled PHP and Other Languages, C isn't even listed among them! Neither is COBOL. :-) But you could Google for PHP and C and probably come up with something worth reading. But do feel free to write up a new section for the manual. You can skip

Re: [PHP] problems with session timeout

2005-02-03 Thread Richard Lynch
Pedro Henrique Calais wrote: I'm with the following problem: my PHP scripts takes a very long time to execute (about 3 hours) because it has has system call to a perl script that is very time consuming. I would recommend either using in the call to the Perl script, or inserting whatever you

Re: [PHP] I need to create a search that will search partial files names of images and display the images. Basically, I have a folder on the internet that has security camera images dumped into it with a file name like this:

2005-02-03 Thread Richard Lynch
Vin wrote: I need to create a search that will search partial files names of images and display the images. Basically, I have a folder on the internet that has security camera images dumped into it with a file name like this: MDcameraname20050109104846001N38B.jpg

Re: [PHP] PHP Memory limit exceeded

2005-02-03 Thread Ben-Nes Yonatan
Ben-Nes Yonatan wrote: Hi all, I got a problem with uploading files which encounter the memory limit when their size is not even close to the memory limit itself, let me explain. My server is as follows: 1. PHP 4.3.9 2. DB - Postgresql 7.4 3. Apache 1.3.26 Here is my code that i made

RE: [PHP] String - Number Automatic Conversion

2005-02-03 Thread Nuzzo Art-CINT116
Possible work-around: I suspect that $p1[14] = -0.15 + 0; will do what you want, since the leading 0 will probably trigger the regex properly. Try it and see. Changing it to -0.15 + 0 works. This data is actually coming from a numeric field in an Oracle database using the OCI

Re: [PHP] RE: How to make binary strings useful?

2005-02-03 Thread Richard Lynch
Jerry Miller wrote: Here's the code (with the domain name removed) that doesn't work, despite the poor documentation of the variable types: ? $dir = /home/domain_name/www/binary/; $dh = opendir ($dir); do { $file = readdir ($dh); }

Re: [PHP] I need to create a search that will search partial files names of images and display the images. Basically, I have a folder on the internet that has security camera images dumped into it with a file name like this:

2005-02-03 Thread Marek Kilimajer
Vin wrote: I need to create a search that will search partial files names of images and display the images. Basically, I have a folder on the internet that has security camera images dumped into it with a file name like this: MDcameraname20050109104846001N38B.jpg MDcameranameMMDDHHMMSS001N38B

Re: [PHP] PHP Memory limit exceeded

2005-02-03 Thread Ben-Nes Yonatan
Ben-Nes Yonatan wrote: Hi all, I got a problem with uploading files which encounter the memory limit when their size is not even close to the memory limit itself, let me explain. My server is as follows: 1. PHP 4.3.9 2. DB - Postgresql 7.4 3. Apache 1.3.26 Here is my code that i made

Re: [PHP] How to make binary strings useful?

2005-02-03 Thread Richard Lynch
Jerry Miller wrote: Is there an example of the UNIX od utility written in PHP? I dunno. Goodle for PHP octal dump Is such a useful task even possible?? Certainly it's possible, though I'm not sure why you wouldn't just USE the existing 'od' utility. From what I've seen of strings, they're

Re: [PHP] Credit card storing, for processing

2005-02-03 Thread Richard Lynch
Brian Dunning wrote: I agree with this. There is way too much paranoia about credit cards online. 99% of stolen credit card numbers are acquired by phishing and the other 1% by uncrumpling receipts out of a wastebasket. There's no longer any reason to go to the trouble of trying to crack

[PHP] Clear POST variables on page refresh

2005-02-03 Thread Richard Morley
I'm not sure if this is specifically a PHP problem, but here we go. Is there a way to clear the POST variables when the user refreshes a page? Specifically, my webpage POSTs a form to update or delete a record from the database -- it POSTs to itself, however. But if the user then clicks

RE: [PHP] Credit card storing, for processing

2005-02-03 Thread Richard Lynch
Brandon Thompson wrote: WowI was hoping someone would respond with a little balance to that reactionary doomsday speech. Don't get me wrong...those are some very valid points that need to be considered, but my gosh... I'd rather frighten away somebody from storing CCs insecurely than

RE: [PHP] String - Number Automatic Conversion

2005-02-03 Thread Richard Lynch
Nuzzo Art-CINT116 wrote: Possible work-around: I suspect that $p1[14] = -0.15 + 0; will do what you want, since the leading 0 will probably trigger the regex properly. Try it and see. Changing it to -0.15 + 0 works. This data is actually coming from a numeric field in an Oracle database

Re: [PHP] PHP Memory limit exceeded

2005-02-03 Thread Richard Lynch
At the other hand i did find some huge mistake at my side... only the download of the file require 28MB (god knows why! but i wont start to bother u folks about it now) the upload need 16MB so clearly u were correct but im sorry to admit that i didnt understand y its getting tripled... after

Re: [PHP] Credit card storing, for processing

2005-02-03 Thread Brian Dunning
Source for these statistics? I pulled them from the MYASS database. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using SSL with PHP5's socket_* functions

2005-02-03 Thread Richard Lynch
dan wrote: I am a bit new to PHP, especially sockets, so what I am asking may very well be comparing apples to oranges. I am writing a function to interact with an SSL server, but I see no way of how I can communicate over SSL. I expected to be able to enter an address such as

[PHP] Problem solved!

2005-02-03 Thread Jerry Miller
I didn't want to give up entirely on the flexibility of writing my scripts in C, so I thought some more about how to get a CGI script to use PHP without having to spend a lot of time on PHP logic. My first attempt was to see whether I could substitute the extension .php for the usual .cgi

RE: [PHP] Clear POST variables on page refresh

2005-02-03 Thread Chris W. Parker
Richard Morley mailto:[EMAIL PROTECTED] on Thursday, February 03, 2005 9:57 AM said: I'm not sure if this is specifically a PHP problem, but here we go. Is there a way to clear the POST variables when the user refreshes a page? [snip] I read something somewhere that seemed to imply this

[PHP] mcrypt public and private key

2005-02-03 Thread Daniel Bowett
Hi, I have been reading up on the mcrypt function. Is it possible to use it with a public and private key pair or just with a single key? Cheers. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] String - Number Automatic Conversion

2005-02-03 Thread Ford, Mike
On 03 February 2005 16:07, Nuzzo Art-CINT116 wrote: I am not sure if this is a bug or I am just doing something dumb but I am having a problem with automatic converting of strings to a number between 0 and -1. For example: 1 = -.15 + 0, [1] = 0 Is this a bug or am I

RE: [PHP] How to make binary strings useful?

2005-02-03 Thread Mikey
I need to convert binary dumps of data structures into database table rows, and MySQL on my server doesn't support queries from C. Errr, how can that be? AFAIK the mySQL extension of PHP is ostensibly a wrapper for the mySQL C libraries. If you have mySQL and PHP installed then I can't see

Re: [PHP] Clear POST variables on page refresh

2005-02-03 Thread Richard Lynch
Richard Morley wrote: I'm not sure if this is specifically a PHP problem, but here we go. Is there a way to clear the POST variables when the user refreshes a page? Specifically, my webpage POSTs a form to update or delete a record from the database -- it POSTs to itself, however. But if the

[PHP] $_SERVER['REQUEST_URI'] being trimmed

2005-02-03 Thread Verdon Vaillancourt
Hi :) I am trying to build a simple mechanism to allow visitors to set a site preference (stored in a cookie) by clicking on a link. I want the cookie set and the original page reloaded with the new cookie set, when a visitor clicks on the link. My link looks like this... a

RE: [PHP] String - Number Automatic Conversion

2005-02-03 Thread Nuzzo Art-CINT116
Is this a bug or am I missing something. It's a bug -- see http://bugs.php.net/bug.php?id=30726 Reported fixed on 18-Jan-2005, so I guess you're looking at 4.3.11/5.0.4 to actually contain the fix. Cheers! Mike

RE: [PHP] Clear POST variables on page refresh

2005-02-03 Thread Chris W. Parker
Richard Lynch mailto:[EMAIL PROTECTED] on Thursday, February 03, 2005 11:26 AM said: A simple thing to do is to put an md5 hash into the POST data, then only do the insert if that md5 hash isn't already used when they hit refresh. This avoids the hassle of re-direct headers and trying

Re: [PHP] $_SERVER['REQUEST_URI'] being trimmed

2005-02-03 Thread Verdon Vaillancourt
Thanks for the input Mikey... I guess I'm just not sure how to, and I had already hit on this method that is almost doing the trick :) salut, verdon On 3-Feb-05, at 2:46 PM, Mikey wrote: Any thoughts? Thanks, verdon Why don't you just use JavaScript to set the cookie and then reload the page

Re: [PHP] Credit card storing, for processing

2005-02-03 Thread John Nichel
Brian Dunning wrote: Source for these statistics? I pulled them from the MYASS database. Now that's priceless. Thanks Brian, you've made my day! -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Credit card storing, for processing

2005-02-03 Thread Brian Dunning
Source for these statistics? I pulled them from the MYASS database. Now that's priceless. Thanks Brian, you've made my day! I wish I could take credit. Many versions of this have gone around, but here's one: http://www.crapco.com/badads/myass.html So much for my earlier post about keeping this

Re: [PHP] Premature end of script headers: php

2005-02-03 Thread Marek Kilimajer
My guess cli binary is executed instead of cgi. Claudio wrote: Hi, Im trying to use PHP4 and PHP5 at the same time. PHP4 as CGI and PHP5 as module. PHP5 ist actually not present and not installed PHP4 runs find as module, when I try to use it as CGI I receive the error message: Premature end of

Re: [PHP] Premature end of script headers: php

2005-02-03 Thread Claudio
Maybe... What is the diference? In /usr/local/php-4.3.10/ I have 5 files after make install (pear php php-config phpextdist phpsize) What should I do? How can I make the cgi-executable? Marek Kilimajer wrote: My guess cli binary is executed instead of cgi. Claudio wrote: Hi, Im trying to

Re: [PHP] Premature end of script headers: php

2005-02-03 Thread Marek Kilimajer
Claudio wrote: Maybe... What is the diference? In /usr/local/php-4.3.10/ I have 5 files after make install (pear php php-config phpextdist phpsize) What should I do? How can I make the cgi-executable? Marek Kilimajer wrote: My guess cli binary is executed instead of cgi. Try $

Re: [PHP] Clear POST variables on page refresh

2005-02-03 Thread Ricky Morley
Richard Lynch mailto:[EMAIL PROTECTED] on Thursday, February 03, 2005 11:26 AM said: A simple thing to do is to put an md5 hash into the POST data, then only do the insert if that md5 hash isn't already used when they hit refresh. Thank you for your responses. One question: If I were to use

RE: [PHP] Clear POST variables on page refresh

2005-02-03 Thread Richard Lynch
Chris W. Parker wrote: Richard Lynch mailto:[EMAIL PROTECTED] on Thursday, February 03, 2005 11:26 AM said: A simple thing to do is to put an md5 hash into the POST data, then only do the insert if that md5 hash isn't already used when they hit refresh. This avoids the hassle of

Re: [PHP] $_SERVER['REQUEST_URI'] being trimmed

2005-02-03 Thread Richard Lynch
Verdon Vaillancourt wrote: I am trying to build a simple mechanism to allow visitors to set a site preference (stored in a cookie) by clicking on a link. I want the cookie set and the original page reloaded with the new cookie set, when a visitor clicks on the link. My link looks like

Re: [PHP] Premature end of script headers: php

2005-02-03 Thread Richard Lynch
Claudio wrote: Maybe... What is the diference? In /usr/local/php-4.3.10/ I have 5 files after make install Leave off the --with-apxs2 in your ./configure should make the CGI binary. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Clear POST variables on page refresh

2005-02-03 Thread Richard Lynch
Ricky Morley wrote: Richard Lynch mailto:[EMAIL PROTECTED] on Thursday, February 03, 2005 11:26 AM said: A simple thing to do is to put an md5 hash into the POST data, then only do the insert if that md5 hash isn't already used when they hit refresh. Thank you for your responses. One

Re: [PHP] Premature end of script headers: php

2005-02-03 Thread Claudio
gw:/usr/local/php-4.3.10/bin # ./php -v PHP 4.3.10 (cli) (built: Feb 3 2005 17:58:19) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies Your guess was correct... after a new configure without axp2s... gw:/usr/local/php-4.3.10/bin # ./php -v PHP

Re: [PHP] I need to create a search that will search partial filesnames of images and display the images. Basically, I have a folder on theinternet that has security camera images dumped into it with a file namelike this:

2005-02-03 Thread Vin
Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Vin wrote: I need to create a search that will search partial files names of images and display the images. Basically, I have a folder on the internet that has security camera images dumped into it with a file name

Re: [PHP] Clear POST variables on page refresh

2005-02-03 Thread Ricky Morley
You're wonderful. Thank you very much. On Thu, 3 Feb 2005 13:02:14 -0800 (PST), Richard Lynch [EMAIL PROTECTED] wrote: Ricky Morley wrote: Richard Lynch mailto:[EMAIL PROTECTED] on Thursday, February 03, 2005 11:26 AM said: A simple thing to do is to put an md5 hash into the POST data,

Re: [PHP] PHP Memory limit exceeded

2005-02-03 Thread Marek Kilimajer
Richard Lynch wrote: At the other hand i did find some huge mistake at my side... only the download of the file require 28MB (god knows why! but i wont start to bother u folks about it now) the upload need 16MB so clearly u were correct but im sorry to admit that i didnt understand y its getting

[PHP] sending set NUMBERFORMAT

2005-02-03 Thread Nuzzo Art-CINT116
Hopefully this is an easy question. I need to set the default numeric data format when selecting data from an oracle database using PHP OCI interface. The SQLPLUS command is: SET NUMBERFORMAT 0.999 How would I send this from PHP? I need to do the format at the datebase server

Re: [PHP] I need to create a search that will search partial filesnames of images and display the images. Basically, I have a folder on theinternet that has security camera images dumped into it with a file namelike this:

2005-02-03 Thread Vin
Vin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Vin wrote: I need to create a search that will search partial files names of images and display the images. Basically, I have a folder on the

Re: [PHP] I need to create a search that will search partial filesnames of images and display the images. Basically, I have a folder on theinternet that has security camera images dumped into it with a file namelike this:

2005-02-03 Thread Marek Kilimajer
Vin wrote: Here is an example of what I'm talking about: Filename looks like this: MDcameraname20050108124537001A.JPG I would like the output to look like this: 01/08/2005 12:45:37 preg_match('/MDcameraname([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})/', $filename, $m); $m[1] - year $m[2] -

Re: [PHP] I need to create a search that will search partial filesnamesof images and display the images. Basically, I have a folder on theinternetthat has security camera images dumped into it with a file namelike this:

2005-02-03 Thread Vin
Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Vin wrote: Here is an example of what I'm talking about: Filename looks like this: MDcameraname20050108124537001A.JPG I would like the output to look like this: 01/08/2005 12:45:37

[PHP] Escaping using htmlentities

2005-02-03 Thread W Luke
Hi. htmlentities has worked pretty well so far for me...except when it comes across something like ñw or ñ0w in an RSS feed (v2) It tries to convert the ntilde - and it does, but because the ñ doesn't have a space next to the w or the 0w, it breaks the XML and it comes out as ntilde;0w which, I

Re: [PHP] How to make binary strings useful?

2005-02-03 Thread M. Sokolewicz
Richard Lynch wrote: Jerry Miller wrote: Is there an example of the UNIX od utility written in PHP? I dunno. Goodle for PHP octal dump Is such a useful task even possible?? Certainly it's possible, though I'm not sure why you wouldn't just USE the existing 'od' utility. From what I've seen of

Re: [PHP] How to make binary strings useful?

2005-02-03 Thread M. Sokolewicz
actually, ignore that... I didn't read carefuly enough *sighs* M. Sokolewicz wrote: Richard Lynch wrote: Jerry Miller wrote: Is there an example of the UNIX od utility written in PHP? I dunno. Goodle for PHP octal dump Is such a useful task even possible?? Certainly it's possible, though I'm

Re: [PHP] General question: packaging in PHP

2005-02-03 Thread Terje Sletteb
From: Vivian Steller [EMAIL PROTECTED] Are there any thoughts about that in future releases? What do other developers think about this issue? How do organize multiple used classnames? The common answer is: Use a prefix... but i really dislike using cryptic and long prefixes to ensure

[PHP] newbie question regarding forms and drop down list

2005-02-03 Thread Max Krone
I am pretty new to php, so if I am asking a poor question, please forgive me. I have a few input forms using html and php that will take input from text boxes and then put that input into a MySql database. All of the information for the form is put in between a form method element. When I try to

Re: [PHP] newbie question regarding forms and drop down list

2005-02-03 Thread W Luke
On Thu, 3 Feb 2005 15:45:51 -0800, Max Krone [EMAIL PROTECTED] wrote: I assume I am just missing something dumb. Could someone please enlighten me. I can post my code if it will help. Code please, Max! -- Will The Corridor of Uncertainty http://www.cricket.mailliw.com/ - Sanity is a

Re: [PHP] Re: Script stuck on final ?

2005-02-03 Thread Alp
Thanks for pointing it out James. That was it! At least now I do not end up with a blank browser page, but unfortunately I can not achieve what I am trying to do though which is inserting the user input to the relevant tables. I'll keep on trying my luck/witts until I get it... somehow... Alp

Re: [PHP] Script stuck on final ?

2005-02-03 Thread Alp
Thanks Richard, I thought I wasn't missing one, that is until James pinpointed it! I'm using TextPad which does have syntax dependent text coloring, but unfortunately it does not point out what you are missing such as a closing bracket (unlike Dreamweaver). Alp Richard Lynch [EMAIL PROTECTED]

Re: [PHP] Script stuck on final ?

2005-02-03 Thread Jochem Maas
Alp wrote: Thanks Richard, I thought I wasn't missing one, that is until James pinpointed it! I'm using TextPad which does have syntax dependent text coloring, but put your cursor next to a brace - hit CRTL+M, look what happens. :-) unfortunately it does not point out what you are missing such as

Re: [PHP] mcrypt public and private key

2005-02-03 Thread Marek Kilimajer
Daniel Bowett wrote: Hi, I have been reading up on the mcrypt function. Is it possible to use it with a public and private key pair or just with a single key? Cheers. mcrypt supports only single key -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Connecting To Multiple MySQL Databases

2005-02-03 Thread NathanielGuy#21
I know this may be slightly off topic for a PHP listserv but I cant find my answer anywhere else. I start off generating a page connected to one database as a certain user and I call a script that requires a connection to a second database as a different user. Is there any way I could open that

Re: [PHP] Connecting To Multiple MySQL Databases

2005-02-03 Thread John Holmes
NathanielGuy#21 wrote: I know this may be slightly off topic for a PHP listserv but I cant find my answer anywhere else. I start off generating a page connected to one database as a certain user and I call a script that requires a connection to a second database as a different user. Is there any

Re: [PHP] Connecting To Multiple MySQL Databases

2005-02-03 Thread Dan Trainor
NathanielGuy#21 wrote: I know this may be slightly off topic for a PHP listserv but I cant find my answer anywhere else. I start off generating a page connected to one database as a certain user and I call a script that requires a connection to a second database as a different user. Is there any

RE: [PHP] Clear POST variables on page refresh

2005-02-03 Thread trlists
On 3 Feb 2005 Richard Lynch wrote: If it was only two pages, and there was only one header() re-direct, fine. But what ends up happening is you get in the habit of doing this all over the place, and you have a mess of spaghetti logic spread over a hundred files. That is a problem with

[PHP] Udp.pl scare

2005-02-03 Thread Mike
Hello all, I have been hit twice now with the udp.pl exploit found in phpbb I thought that upgrading to php 4.3.10 would stop this? Was I wrong? Here is what it does... The attacker installed a UDP flood tool that ran for 2 hours before buzz was blocked by Network Services. Remote shell

[PHP] Date Update

2005-02-03 Thread Adi Pramadi
Dear Friends, I'm new in PHP programing, and i need a way to add date in php. here is the sample If today is 29/01/2005 (dd/mm/yy) and i need to make an apointment for another 10 days the date recorded sould be 08/02/2005 and not 39/01/2005 is there a way to do it in just like in asp (add

RE: [PHP] Headers already sent error

2005-02-03 Thread yangshiqi
Pls Make sure that outside your ?php and ? tags, these is no any blankspace or sth else. Best regards, Yang Shiqi -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Thursday, February 03, 2005 3:44 PM To: [php] PHP General List Subject: Re: [PHP] Headers already sent