Re: [PHP] More on cleaning Windows characters...

2002-11-04 Thread Tom Rogers
Hi, Monday, November 4, 2002, 2:58:22 PM, you wrote: ahsb After considerable investigation into the form input of non-Latin 1 ahsb characters to be processed by PHP on a Linux box, I've been able to ahsb distill the issue down considerably, though a solution (and one oddity) ahsb remains

[PHP] Battling with highlighting search criteria

2002-11-04 Thread David Russell
Hi there, My brain has just gone very fuzzy... I have a search string ($search) and a result ($result). I need to highlight every occurance of $search in $result. I know that it means that I need to change (for example) $result = This is a test, isn't it? $search = is Into $result = thspan

[PHP] Address array?

2002-11-04 Thread Steve Jackson
I want to display an address from my database based on an orderid. Where am I going wrong? I am still unsure how Php interacts with mySQL but am I right in assuming it should be an array? My code... function get_shipping_address($address_array) { $conn = db_connect(); $orderid =

[PHP] Re: Address array?

2002-11-04 Thread Erwin
Steve Jackson wrote: I want to display an address from my database based on an orderid. Where am I going wrong? I am still unsure how Php interacts with mySQL but am I right in assuming it should be an array? My code... function get_shipping_address($address_array) { $conn = db_connect();

[PHP] Re: Battling with highlighting search criteria

2002-11-04 Thread Erwin
I have a search string ($search) and a result ($result). I need to highlight every occurance of $search in $result. I know that it means that I need to change (for example) $result = This is a test, isn't it? $search = is Into $result = thspan class=highlightis/span span

Re: [PHP] Images retrieved from MYSQL database using PHP becoming corrupted.

2002-11-04 Thread Hatem Ben
hello, Check the PHP-DB archives you'll find a code for the upload, and this one for viewing image : ? $mysql_hostname = ; $mysql_username = ; $mysql_passwd = ; $mysql_dbname = ; // Connecting, selecting database $link = @mysql_connect($mysql_hostname,$mysql_username, $mysql_passwd)

[PHP] Re: confirm subscribe to php-general@lists.php.net

2002-11-04 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... On 2 Nov 2002 03:26:36 - [EMAIL PROTECTED] wrote: Hi! This is the ezmlm program. I'm managing the [EMAIL PROTECTED] mailing list. I'm working for my owner, who can be reached at [EMAIL PROTECTED] To confirm that you

Re: [PHP] Who can tell me where I can get the cracked Zend Encoder3.0 ?

2002-11-04 Thread Krzysztof Dziekiewicz
Who can tell me where I can get the cracked Zend Encoder 3.0 ? By the way write do [EMAIL PROTECTED] for cracked Windows XP ;-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Battling with highlighting search criteria

2002-11-04 Thread David Russell
Hey there I told you my brain was feeling fuzzy :) This works great. Only one problem... I would like it to be case insensitive... Any way? I assume that it would be a ereg/preg replace, but I have no clue with regexp at all. Anyone who could help?? David Russell IT Support Manager Barloworld

Re: [PHP] Battling with highlighting search criteria

2002-11-04 Thread Justin French
how are you doing it for only the FIRST??? Anyhoo, a simple string replace should do it... I'd do this: $result = str_replace($search,span class=\highlight\{$search}/span,$result); Justin on 04/11/02 6:27 PM, David Russell ([EMAIL PROTECTED]) wrote: Hi there, My brain has just gone very

Re: [PHP] Re: Battling with highlighting search criteria

2002-11-04 Thread Erwin
David Russell wrote: Hey there I told you my brain was feeling fuzzy :) This works great. Only one problem... I would like it to be case insensitive... Any way? I assume that it would be a ereg/preg replace, but I have no clue with regexp at all. Try the following one: $result = This is

[PHP] How to use OCISaveLob OCILoadLob OCISaveLobFile

2002-11-04 Thread Jean Tardy
Hello, Who know how to use those functions:OCISaveLob, OCILoadLob, OCISaveFile? Where can I find documentation and sample about this general purpose: 'lob object manipulation with oracle Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Address array?

2002-11-04 Thread Jason Wong
On Monday 04 November 2002 16:42, Steve Jackson wrote: I want to display an address from my database based on an orderid. Where am I going wrong? I am still unsure how Php interacts with mySQL but am I right in assuming it should be an array? My code... function

RE: [PHP] Re: Battling with highlighting search criteria

2002-11-04 Thread David Russell
Hi Erwin, Yep, this does exactly what str_replace does. How can I make the whole thing case insensitive: $result= This Is A Test, Isn't It? $search= IS It will include the 'is' in 'This', and also the 'Is' and the 'is' in 'isn't'. cheers David Russell IT Support Manager Barloworld Optimus

RE: [PHP] Battling with highlighting search criteria

2002-11-04 Thread David Russell
Ok, this works. Just one more thing, How can I get the return in the same case as it was originally? Ie if I have $string = Forward , and $search = for, I want spanForward/span, not span...forward/span. Thanks David Russell IT Support Manager Barloworld Optimus (Pty) Ltd Tel: +2711

RE: [PHP] Re: Battling with highlighting search criteria

2002-11-04 Thread David Russell
Sorry, my mistake... This is what happens when you have 2 machines - one production and one development. You get confused between the two grin Just one more thing, How can I get the return in the same case as it was originally? Ie if I have $string = Forward , and $search = for, I want

Re: [PHP] Re: Battling with highlighting search criteria

2002-11-04 Thread Erwin
Try the following one: $result = This is a test, isn't it?; $search = is; $result = preg_replace( '/(' . $search . ')/i', span class=\highlight\\$1/span, $result ); Grtz Erwin David Russell wrote: Hi Erwin, Yep, this does exactly what str_replace does. No, it doens't...this one is

Re: [PHP] Re: Battling with highlighting search criteria

2002-11-04 Thread Erwin
How can I get the return in the same case as it was originally? Ie if I have $string = Forward , and $search = for, I want spanForward/span, not span...forward/span. Read my reply to your previous reply ;-)) But...some more explanation: $result = preg_replace( '/(' . $search . ')/i',

Re: [PHP] Battling with highlighting search criteria

2002-11-04 Thread Justin French
With a more detailed regexp... unfortunately, I don't know enough about them. Justin on 04/11/02 7:59 PM, David Russell ([EMAIL PROTECTED]) wrote: Ok, this works. Just one more thing, How can I get the return in the same case as it was originally? Ie if I have $string = Forward , and

Re: [PHP] Battling with highlighting search criteria -solution

2002-11-04 Thread Justin French
I just had a look in the manual at the reg exp functions, and this was in the user notes: eregi_replace($search, b\\0/b, $text); so, try: $result = eregi_replace($search, span class=\foo\\\0/span, $result); Justin on 04/11/02 7:59 PM, David Russell ([EMAIL PROTECTED]) wrote: Ok, this

Re: [PHP] trouble with maximum_execution_time and file upload

2002-11-04 Thread Marek Kilimajer
If you are running in safe mode, setting time limit has no effect Eduardo M. Bragatto wrote: I've send an e-mail with a doubt related with the maximum_execution_time variable but it has no answers, so, I'm submiting it again... I'm using a single php script to send files named

Re: [PHP] Images retrieved from MYSQL database using PHP becomingcorrupted.

2002-11-04 Thread Marek Kilimajer
Works for me, tr putting some echo mysql_error on your page Darren McPhee wrote: I have spent the last 3 days trying to figure this out. And will probably give up very soon. I have written 2 programs (which are very common PHP programs) that A) Allows me to upload image files into a MYSQL

[PHP] How to send mail with authentification?

2002-11-04 Thread Martin Thoma
Hello! Our SMTP-Server has changed to authentification. Now we cannot send mails anymore using mail(). How can I set the password in mail? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Battling with highlighting search criteria

2002-11-04 Thread David Russell
Hi Erwin, Great thanx, my brain is cleared grin. Well, a little more... Where would I be able to find more info about regexp's? TIA David Russell IT Support Manager Barloworld Optimus (Pty) Ltd Tel: +2711 444-7250 Fax: +2711 444-7256 e-mail: [EMAIL PROTECTED] web: www.BarloworldOptimus.com

[PHP] Re: How to send mail with authentification?

2002-11-04 Thread Manuel Lemos
Hello, On 11/04/2002 09:54 AM, Martin Thoma wrote: Hello! Our SMTP-Server has changed to authentification. Now we cannot send mails anymore using mail(). How can I set the password in mail? Not with mail(). You may want to try this class that comes with a wrapper function named smtp_mail()

[PHP] php's saxon:output equivalent

2002-11-04 Thread Pierre Vaudrey
Has anybody an equivalent for java saxon:output in a php library ? The port I would make follow : xsl:template match=/ xsl:for-each select=*/INDI saxon:output file={$dir}/{@ID}.html xsl:apply-templates select=./ /saxon:output /xsl:for-each saxon:output file={$dir}/index.html

[PHP] finding a value in an array

2002-11-04 Thread Craig
I have a database table that holds the values of IDs in the format 1,2,3,4,5,67,x,x,x,x,x,x I am using a dynamic select list menu that displays a list of items from a 2nd table with the values set to their unique ids eg option vaue =1item 1/option option vaue =2item2/option option vaue =3item

[PHP] Re: finding a value in an array

2002-11-04 Thread Erwin
Craig wrote: I have a database table that holds the values of IDs in the format 1,2,3,4,5,67,x,x,x,x,x,x I am using a dynamic select list menu that displays a list of items from a 2nd table with the values set to their unique ids eg option vaue =1item 1/option option vaue =2item2/option

RE: [PHP] Re: Session cookies

2002-11-04 Thread Chris Kay
I don't use cookies when I use sessions.. Saves hassles Regards Chris Kay -Original Message- From: Erwin [mailto:erwin;isiz.com] Sent: Monday, 4 November 2002 6:50 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Session cookies When the user logs in , i create a session

RE: [PHP] Add content thru e-mail

2002-11-04 Thread Chris Kay
Could you not put a .forward to a php script? Correct me if I am wrong or even point me in the right direction Cause I am thinking of doing this soon. Regards Chris Kay -Original Message- From: Timothy Hitchens (HiTCHO) [mailto:phplists;hitcho.com.au] Sent: Monday, 4

[PHP] Re: How to send mail with authentification?

2002-11-04 Thread Martin Thoma
Thanx, I will try this. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Php Ready-to-go

2002-11-04 Thread Martin Thoma
Hello! Is there a way to run a php-script on a pc/windows-computer which hasn't php-installed? I thought of somekind of compiler which creates an .exe, which embeds the script and the php-environment. Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Php Ready-to-go

2002-11-04 Thread Alexander Kuznetsov
Hello Martin, Monday, November 04, 2002, 2:53:48 PM, you wrote: MT Hello! MT Is there a way to run a php-script on a pc/windows-computer which hasn't MT php-installed? I thought of somekind of compiler which creates an .exe, MT which embeds the script and the php-environment. MT Martin On

RE: [PHP] Add content thru e-mail

2002-11-04 Thread Michael Geier
/etc/aliases foo: |/path/to/script.php script.php ? $fp = fopen(php://stdin,r) ; $buffer = ; while (!feof($fp)) { $buffer .= fgetc($fp); } $email_parts = explode(\n\n,preg_replace(/\r/,,$buffer)); $headers = $email_parts[0]; $body = $email_parts[1]; /* ...etc... */ ?

[PHP] HELP COOKIES !

2002-11-04 Thread Shaun
Hi, I tried some advice you gave , i tried to destroy the session cookie wiht setcookie(session_name()); and setcookie(session_name(),-3600); but the cookie is still there . Instead , there are now 2 cookies with the same name , the one has the session id , the other has no contents! HOW CAN I

Re: [PHP] Re: Your opinion on globals/reference

2002-11-04 Thread Gerard Samuel
That is true. Didn't think about it like that. Thanks for your input.. rolf vreijdenberger wrote: but what if you decide later you want more objects or globals in your function?? your parameter list could get quit long! -- Rolf Vreijdenberger De Pannekoek en De Kale W:

[PHP] fsockopen fails if port blocked by firewall - PHP 4.0.6 / Apache / Linux

2002-11-04 Thread neil smith
Hello List - I am having a problem with fsockopen since my ISP upgraded their linux server. The same function works just fine on another linux server and PHP version (using a different ISP). This fsockopen function previously worked as expected, returning within the specified timeout (2 sec)

Re: [PHP] Been looking for a tutorial on how to create themes ingeneral

2002-11-04 Thread Marek Kilimajer
My way: take a theme that most suits your needs and change it Kevin Myrick wrote: Ok, like I stated in my last message, I am using PHPWebsite as my portal system. However, I would like to learn how to do custom themes, because like sooo many aspiring web designers/programmers, I got an

[PHP] Re: HELP COOKIES !

2002-11-04 Thread Erwin
Shaun wrote: Hi, I tried some advice you gave , i tried to destroy the session cookie wiht setcookie(session_name()); and setcookie(session_name(),-3600); but the cookie is still there . Instead , there are now 2 cookies with the same name , the one has the session id , the other has no

[PHP] storing cc details in mysql

2002-11-04 Thread adrian [EMAIL PROTECTED]
Hi, I know this is an old chestnut and i am going thru archives and googling as well. anyhoo, my small company recently decided that live cc processing was too expensive for our needs (this has to do with us being based in ireland where there is a problem with the banks -they only deal with one

Re: [PHP] storing cc details in mysql

2002-11-04 Thread adrian [EMAIL PROTECTED]
Sorry forgot to say we do have a secure server. - Original Message - From: adrian [EMAIL PROTECTED] [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 04, 2002 4:37 PM Subject: [PHP] storing cc details in mysql Hi, I know this is an old chestnut and i am going thru archives

RE: [PHP] storing cc details in mysql

2002-11-04 Thread SED
Rule no. 1 = Never save the cc-numbers in an online database. Regards, Sumarlidi E. Dadason SED - Graphic Design _ Tel: 896-0376, 461-5501 E-mail: [EMAIL PROTECTED] website: www.sed.is -Original Message- From: adrian [EMAIL PROTECTED]

Re: [PHP] storing cc details in mysql

2002-11-04 Thread 1LT John W. Holmes
There are AES_Encrypt/Decrypt and DES_Encrypt/Decrypt functions in MySQL. Quote from Manual: AES_ENCRYPT() and AES_DECRYPT() were added in version 4.0.2, and can be considered the most cryptographically secure encryption functions currently available in MySQL.

Re: [PHP] storing cc details in mysql

2002-11-04 Thread Justin French
Really quick answer: 1. consider storing them OFF the server as soon as possible... having minimal (if any) numbers stored on the live (net connected server) will: a) make the server a less desireable hack b) result in less risk in case of a hack c) be more responsible to your customers 2.

[PHP] image submit buttons

2002-11-04 Thread John Meyer
(isset($_POST[Submit])) is this the way to check a submission image to see if it's been set? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Session on PHP 4.3.0

2002-11-04 Thread Marcel
Hi, I'm having some problems with session on version 4.3.0. On 4.1.1 it was working perfectly. Here are the sources of login.php and logout.php: login.php session_start(); $GLOBALS[SID] = PHPSESSID=.session_id(); $GLOBALS[var1] = $HTTP_SESSION_VARS[var1]; logout.php session_start();

RE: [PHP] image submit buttons

2002-11-04 Thread John W. Holmes
(isset($_POST[Submit])) is this the way to check a submission image to see if it's been set? Nope. Try the manual: IMAGE SUBMIT variable names When submitting a form, it is possible to use an image instead of the standard submit button with a tag like: input type=image src=image.gif

[PHP] PHP and Apache Cocoon???

2002-11-04 Thread HA, Hai
Hello experts, I am hoping to build a website to host a sizeable document and add functionality to allow readers to submit comments and general feedback. The main document is currently stored as a series of XML pages and I have succeeded in publishing these documents in HTML with Apache Cocoon.

[PHP] PHP Installation problem - httpd.conf issue?

2002-11-04 Thread Lee Philip Reilly
Hi there, I recently upgraded from PHP version 4.0-ish to 4.2.3 on my Linux/Apache machine. AFAIK, Apache is setup correctly (it serves HTML) and PHP works, but only from the command line. If I type php -q php.php test.html the output of phpinfo() is stored in test.html. When I try and look at

[PHP] Does anyone know if this is possible?

2002-11-04 Thread Raymond Lilleodegard
Hi! I have made a website with a webshop and the orders are written down in txtfiles and a faxserver is scanning a directory for txtfiles and sends them as faxes. So I am trying to write the txtfile like I should have written the order in a table. Or you can say I am trying to make some columns

[PHP] Bizzare mime-type header() problem

2002-11-04 Thread Chris Boget
Ok, so I've a script that outputs HTML. If a particular argument is passed to that script, it sends the following header commands before it echoes out any HTML: header( Content-Disposition: inline; filename=policy.doc ); header( Content-type: application/msword ); so that it opens up and

Re: [PHP] Been looking for a tutorial on how to create themes ingeneral

2002-11-04 Thread Jonathan Sharp
look at smarty (smarty.php.net) as it does templates, and i am accomplishing 'themes' on a current project by just changing the template directory. -js Marek Kilimajer wrote: My way: take a theme that most suits your needs and change it Kevin Myrick wrote: Ok, like I stated in my last

Re: [PHP] Address array?

2002-11-04 Thread Hugh Danaher
Stephen, after your line: $query = SELECT * FROM orders WHERE orderid = '$orderid'; you should add: mysql_query($query); in your code line you've just set your variable--you haven't asked mysql to do anything. Hope this helps. Hugh - Original Message - From: Steve Jackson [EMAIL

[PHP] Strange error!

2002-11-04 Thread Daniele Baroncelli
Hi guys, I have very weird problem. I have installed the PHP version 4.2.3 on the LINUX virtual server of my web project. Previously I had the PHP version 4.0.6. The error I get is very weird. When I insert a record with the phpMyAdmin, the first 4 characters of each field don't get saved. Same

Re: [PHP] Bizzare mime-type header() problem

2002-11-04 Thread Chris Boget
But why? Why is PHP echoing out something it should not be echoing? The validation doesn't fail so as such, the text should never be sent to stdout (the browser). Or am I misunderstanding something? Ok, I figured out what my problem was and I'd very much appreciate if someone who was

Re: [PHP] Php Ready-to-go

2002-11-04 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 http://pear.php.net/bcompiler ? ~Paul On Monday 04 November 2002 08:09 am, Alexander Kuznetsov wrote: Hello Martin, Monday, November 04, 2002, 2:53:48 PM, you wrote: MT Hello! MT Is there a way to run a php-script on a pc/windows-computer

Re: [PHP] How to send mail with authentification?

2002-11-04 Thread Edward Marczak
On 11/4/02 6:54 AM, Martin Thoma [EMAIL PROTECTED] tapped the keys: Hello! Our SMTP-Server has changed to authentification. Now we cannot send mails anymore using mail(). How can I set the password in mail? The built in mail command cannot handle authentication. There is a class on

[PHP] $_FILES

2002-11-04 Thread Salvador Ramirez
Hi, I hope somebody could help me with a problem I have with the $_FILES variable. I'm trying to make a PHP script which could have access to an uploaded remote file. The piece of HTML is: html body form action=ll.php method=post enctype=multipart/form-data input

Re: [PHP] $_FILES

2002-11-04 Thread 1LT John W. Holmes
How about just print_r($_FILES); Does that return anything? ---John Holmes... - Original Message - From: Salvador Ramirez [EMAIL PROTECTED] To: PHP General [EMAIL PROTECTED] Sent: Monday, November 04, 2002 3:50 PM Subject: [PHP] $_FILES Hi, I hope somebody could help me with

Re: [PHP] $_FILES

2002-11-04 Thread Salvador Ramirez
On Mon, 4 Nov 2002, 1LT John W. Holmes wrote: How about just print_r($_FILES); Does that return anything? It just return the same as before, i.e. Array ( ) ---sram ---John Holmes... - Original Message - From: Salvador Ramirez [EMAIL PROTECTED] To: PHP General [EMAIL PROTECTED]

[PHP] mysql_query maximum size

2002-11-04 Thread kevin
Hi there, Just wondering if there is a maximum size to the sql that can be passed as a mysql_query, either from mysql itself or from the php side of things? I ask only cause I have a limiting clause on my select and I have no idea how big it will grow and I would prefer to write it in such a

Re: [PHP] $_FILES

2002-11-04 Thread 1LT John W. Holmes
Do you have file uploads enabled in php.ini? ---John Holmes... - Original Message - From: Salvador Ramirez [EMAIL PROTECTED] To: 1LT John W. Holmes [EMAIL PROTECTED] Cc: PHP General [EMAIL PROTECTED] Sent: Monday, November 04, 2002 4:04 PM Subject: Re: [PHP] $_FILES On Mon, 4 Nov

Re: [PHP] mysql_query maximum size

2002-11-04 Thread 1LT John W. Holmes
Just wondering if there is a maximum size to the sql that can be passed as a mysql_query, either from mysql itself or from the php side of things? I ask only cause I have a limiting clause on my select and I have no idea how big it will grow and I would prefer to write it in such a way that I

Re: [PHP] $_FILES

2002-11-04 Thread Salvador Ramirez
On Mon, 4 Nov 2002, 1LT John W. Holmes wrote: Do you have file uploads enabled in php.ini? No, sorry. I changed that and all worked fine. I wonder why that is not mentioned on the section of uploads of the PHP documentation. Thanks a lot. ---sram ---John Holmes... - Original Message

Re: [PHP] Re: Cookies disabled, new session ID each click!

2002-11-04 Thread Steve Fatula
What you describe is what SHOULD happen and does on that web site, that does NOT happen on my web site, with the exact same code I posted in the original message. So, the question remains, what would cause the SID to be blank every other click? Yes, I have also used Netscape on Linux to

RE: [PHP] Am I blind? simple 15 line code producing error - SOLUTION FOUND! - tks

2002-11-04 Thread Paul
To those of you that helped me with this problem I have spent time eliminating lines of code.. the problem was in the following line: if ($_SESSION[first_name]) the line should be like this if (ISSET($_SESSION[first_name])) Seems like ISSET made a difference in eliminating warning: Cannot add

[PHP] Authentication with PHP and HTTP

2002-11-04 Thread Phillip Erskine
I have a site that uses PHP/MySQL authentication for one section and Apache/HTTP authentication for another. Eventually I would like to use only PHP and MySQL for authenticating users, but in the meantime, I have to use both. First, users will log in to the main section of the site and I

[PHP] PHP crypto extension news

2002-11-04 Thread J Smith
Since I just finished a pretty major source overhaul of the cryptopp-php extension, I figured I should make a little announcement, as this is oh-so-exciting news. Recently, Wei Dai released Crypto++ 5.0, which was pretty much a complete re-write of the public domain Crypto++ cryptography

[PHP] randomly select file

2002-11-04 Thread ROBERT MCPEAK
Could someone suggest some php for randomly selecting a file from a directory and then displaying the contents of the file? Thanks in advance! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP/Flash

2002-11-04 Thread Clint Tredway
I have a small example of using Flash/PHP if anyone wants it.. Clint -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Need info about upload to a FTP

2002-11-04 Thread Cyclone Médias
hi everyone. Who knows about to create a upload function to a ftp... I have a server with many Web_Users, I know that we can create a command that make a upload field on each folder of the ftp... Is is a .upload file or a php script? Please help! Thanks! -- PHP General Mailing List

Re: [PHP] Need info about upload to a FTP

2002-11-04 Thread John Nichel
Manual - FTP Functions Cyclone Médias wrote: hi everyone. Who knows about to create a upload function to a ftp... I have a server with many Web_Users, I know that we can create a command that make a upload field on each folder of the ftp... Is is a .upload file or a php script? Please help!

[PHP] Re: Does anyone know if this is possible?

2002-11-04 Thread Joel Boonstra
Hi Raymond, I have made a website with a webshop and the orders are written down in txtfiles and a faxserver is scanning a directory for txtfiles and sends them as faxes. So I am trying to write the txtfile like I should have written the order in a table. Or you can say I am trying to make

Re: [PHP] randomly select file

2002-11-04 Thread John Nichel
Dump the files in the directory into an array, then randomly select on from that. ROBERT MCPEAK wrote: Could someone suggest some php for randomly selecting a file from a directory and then displaying the contents of the file? Thanks in advance! -- PHP General Mailing List

Re: [PHP] PHP/Flash

2002-11-04 Thread rija
Me :-) I wonder if you can post me these scripts - Original Message - From: Clint Tredway [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 05, 2002 8:46 AM Subject: [PHP] PHP/Flash I have a small example of using Flash/PHP if anyone wants it.. Clint -- PHP

Re: [PHP] randomly select file

2002-11-04 Thread rija
Why don't you cope with opendir / readdir () and array_rand () I tried it and I look ok- But, I wonder if there are noble another way to do it? - Original Message - From: ROBERT MCPEAK [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 05, 2002 8:40 AM Subject: [PHP]

[PHP] OSX compile problem (TSRM libs)

2002-11-04 Thread Kristopher Yates
Hello, I'm trying to compile PHP4.2.3 for Mac OSX 10.2 (Jaguar). Has anyone else had this problem (see below)? #./configure --with-apxs=/usr/sbin/apxs #make ld: multiple definitions of symbol _virtual_stat TSRM/.libs/libtsrm.al(tsrm_virtual_cwd.lo) definition of _virtual_stat in sectio n

[PHP] 4.2.3 compile problem on OSX

2002-11-04 Thread Kristopher Yates
Hello, I'm trying to compile PHP4.2.3 for Mac OSX 10.2 (Jaguar). Has anyone else had this problem (see below)? ./configure --with-apxs=/usr/sbin/apxs make ld: multiple definitions of symbol _virtual_stat TSRM/.libs/libtsrm.al(tsrm_virtual_cwd.lo) definition of _virtual_stat in sectio n

[PHP] Re: Does anyone know if this is possible?

2002-11-04 Thread Raymond Lilleodegard
Ok! I think I will try a little more to get it work with php first, but it is a good idea you have here. Thanks! : ) Raymond Joel Boonstra [EMAIL PROTECTED] wrote in message news:Pine.LNX.4.44.0211041703230.11800-10;amos.gf.gospelcom.net... Hi Raymond, I have made a website with a

Re: [PHP] Does anyone know if this is possible?

2002-11-04 Thread rija
It depends on where the textfile are going to be store If you store them into unauthorized directory that php does not have the right (or permission) to write in, I think it cannot be done, but if you put down the file into allowed directory, why not? to make column into your text file I think \t

RE: [PHP] Am I blind? simple 15 line code producing error - SOLUTION FOUND! - tks

2002-11-04 Thread David Freeman
To those of you that helped me with this problem I have spent time eliminating lines of code.. the problem was in the following line: if ($_SESSION[first_name]) the line should be like this if (ISSET($_SESSION[first_name])) The change that would induce this error is likely to be

Re: [PHP] Battling with highlighting search criteria

2002-11-04 Thread rija
$result = eregi_replace(($search),span class=hightlight\\0/span,$result) ; I use it, and I work fine for me. - Original Message - From: David Russell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 04, 2002 7:27 PM Subject: [PHP] Battling with highlighting search criteria

Re: [PHP] Bizzare mime-type header() problem

2002-11-04 Thread Chris Shiflett
Your pseudocode is incomplete, because you do not show us where you call this mysterious function that validates using $PHPSESSID. Also, if that is really all your switch consists of, you're not really gaining anything over using a simple if construct: if ($action == msword) {

[PHP] Re: Authentication with PHP and HTTP

2002-11-04 Thread silver
hi - I'm not quite sure if this will help you, but lets give it a try: you could use this URL syntax: http://user:password;www.site.com to automatically log your user in to the htaccess protected area. the bad thing about it is that user / password show up in the URL, but you could hide this

[PHP] Fw: [PHP-DEV] When my PHP file opens, I want it to automaticallysubmit

2002-11-04 Thread Chris Shiflett
This type of question should be addressed to [EMAIL PROTECTED] I am forwarding it there. Also, please correct your reply-to address. Chris Luke wrote: Hello, On my website, I have a php form which submits the global Ip address of the computer its on to a specific email address, I want it to

[PHP] Radiator PHP

2002-11-04 Thread Chris Kay
Anyone ever used PHP instead of Hooks in radiator, or even if it could be done... I have no idea just thought I would give it ago Before u tell me to goto ask on the radiator list I have I just thought I would get some comments from the PHP community.

Re: [PHP] Re: Authentication with PHP and HTTP

2002-11-04 Thread Chris Shiflett
You can hide URLs by fetching them with one of your own PHP scripts: base href=www.site.com ? readfile(http://user:password;www.site.com/); ? I think it might be at least better than frames. :-) Chris silver wrote: you could use this URL syntax: http://user:password;www.site.com to

[PHP] Upload permission on a web_user space...

2002-11-04 Thread Benjamin Trépanier
Hello, I'm trying again to ask you that question because I was not understand. I have a unix server hosting service, my hosting service allow me to create web_server. Those are create for my client who have to upload differents things. So when people are connecting to my ftp (example on IE...)

Re: [PHP] Battling with highlighting search criteria

2002-11-04 Thread Michael Sims
On Mon, 4 Nov 2002 11:59:20 +0200, you wrote: Ok, this works. Just one more thing, How can I get the return in the same case as it was originally? Use backreferences to capture what matched and use that in the replace string. Example: ? $search = is; $str = This is a test, isn't it?; $str =

[PHP] Re: 4.2.3 compile problem on OSX

2002-11-04 Thread Adam Atlas
PHPmac (http://www.phpmac.com/) has some excellent articles on the subject. If all else fails, you can also grab a pre-compiled binary at http://www.entropy.ch/software/macosx/php/. On Mon Nov 4, 2002 5:12:38 PM, Kristopher Yates wrote: Hello, I'm trying to compile PHP4.2.3 for Mac OSX 10.2

[PHP] about @ in php

2002-11-04 Thread Alex
this day ,I read somebody else's program in php,found that in that one's page ,with such as if (!($recordnum=pg_numrows($rs))){ echo 'ÃüÁî´¦ÀíÍê±Ï£¡';using,I don't know how the refer to.somebody help me?thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] about @ in php

2002-11-04 Thread John Nichel
The symbol supresses error messages. Alex wrote: this day ,I read somebody else's program in php,found that in that one's page ,with such as if (!($recordnum=pg_numrows($rs))){ echo 'ÃüÁî´¦ÀíÍê±Ï£¡';using,I don't know how the refer to.somebody help me?thanks. -- PHP General

Re: [PHP] Upload permission on a web_user space...

2002-11-04 Thread rija
Hi Ben, I am not sure to understand exactly what do you want to do. But I am going to try to answer you about something, First, If you need to create your own ftp software using php, check out ftp library (http://www.faqs.org/rfcs/rfc959.html) there are several function about it, and you can

Re: [PHP] Re: Cookies disabled, new session ID each click!

2002-11-04 Thread Jason Wong
On Tuesday 05 November 2002 05:15, Steve Fatula wrote: What you describe is what SHOULD happen and does on that web site, that does NOT happen on my web site, with the exact same code I posted in the original message. Presumably the test website and your website are on different servers -- try

[PHP] checkboxes and selection lists

2002-11-04 Thread marco_bleeker
Hi, as a beginner I find the way you declare variables through HTML-forms quite straightforward. But the reverse, to put the same variables back into a form field is not so obvious for selection lists and checkboxes. Would for instance this be the best way: SELECT CLASS=select

Re: [PHP] checkboxes and selection lists

2002-11-04 Thread John Nichel
For something like this, instead of doing all the HTML, I would set up and array, and then loop through the array to output the HTML... SELECT CLASS=select NAME=qual ?php for ( $i = 0; $qual_array[$i]; $i++ ) { if ( $_POST['qual'] == $qual_array[$i] ) { echo ( OPTION VALUE=\ .

Re: [PHP] checkboxes and selection lists

2002-11-04 Thread rija
If you have hundred thousand elements for example if you rob up for some country select within tierce code- I thinks doing like the following is better echo select optiona optionb ... optionzz option selected$value /option /select ; And I don't care if it could have 2 same

[PHP] php help for project!!

2002-11-04 Thread Karl James
Hello I need help with A project that I'm doing for a fantasy football league.. Where I'm doing auto add/delete of players of a roster With maintaing a salary cap of $40.000.00 I have done the mysql database.. I just need help with Code and forms I want to use check boxes to do the add and

RE: [PHP] checkboxes and selection lists

2002-11-04 Thread Brendon G
I use the following function for my check boxes in forms in PHP. Putting your form element creation into functions or even classes makes life so much easier when you have to validate / change code. you'll be glad you did it Cheers Brendon function fncwriteformcheckbox($strname, $strid,

Re: [PHP] php / ldap

2002-11-04 Thread Stig Venaas
On Wed, Oct 30, 2002 at 09:28:00AM -0500, GC wrote: Hi, using php_ldapadd, I get this error in ldap.log: Oct 30 09:23:43 Lunar slapd[10714]: conn=202 op=1 RESULT tag=105 err=65 text=object class 'posixAccount' requires attribute 'uidNumber' How do I get the next available uid number from

  1   2   >