[PHP] Please I need help it's very Urgent (Prevent un-authorized users to download document)

2003-06-16 Thread Mishari
Hi All I built a MySQL table for all authorized users and their password , when user correctly enter his username and password he can access to a PHP site that contains a link to all document he need When he click on one of the document to he can download it, the URL will appear :

Re: [PHP] Call to undefined function: mysql_connect()

2003-06-16 Thread Jason Wong
On Monday 16 June 2003 13:49, Daniel R. Hansen wrote: Attempts to install the client RPM return messages that it's already installed. What version of MySQL do you have installed? And where did you get it from? If it's not from Redhat then it's best that you remove it and install Redhat's. --

Re: [PHP] Please I need help it's very Urgent (Prevent un-authorizedusers to download document)

2003-06-16 Thread Leif K-Brooks
Mishari wrote: Hi All I built a MySQL table for all authorized users and their password , when user correctly enter his username and password he can access to a PHP site that contains a link to all document he need When he click on one of the document to he can download it, the URL will appear

Re: [PHP] Re: Upgrading PHP 4.1.2 to Current

2003-06-16 Thread Jaap van Ganswijk
At 2003-06-15 23:57 +0200, Catalin Trifu wrote: As I understand, you are using prepackaged PHP and Apache, the ones that come with a Linux distribution. If you want to continue using this style of RPMs you should consider looking for an upgrade on the web site for u'r Linux distro (like

Re: [PHP] Please I need help it's very Urgent (Prevent un-authorized users to download document)

2003-06-16 Thread Sebastian
Hi. See if this helps you get started. I assume each user has an ID. If so all you have to do is make a query above $userid that fetches the user ID of the user that is auth to download.. Also, edit the $path to the location of the files, you can download a file by file.php?file=a_file.zip --

[PHP] Object pooling with PHP

2003-06-16 Thread Sephiroth
Hi, Is it possible to implement an object pooling service with PHP? Something like COM+ or IAS (Inprise Application Server)... any ideas? regards, Sepho -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Session Problems

2003-06-16 Thread Joseph Ross Lee
Hello... I'm having a hard time passing values from one php scripts to the other because it doesn't seem to work. Here's part of the script session_start(); require_once(./functions.php); $usrname = $_POST['usrname']; $passwrd= $_POST['passwrd']; session_register('usrname');

php-general Digest 16 Jun 2003 07:07:44 -0000 Issue 2120

2003-06-16 Thread php-general-digest-help
php-general Digest 16 Jun 2003 07:07:44 - Issue 2120 Topics (messages 151601 through 151641): Re: Capturing the input of dynamic form fields (part II) 151601 by: Frank Keessen 151602 by: esctoday.com | Wouter van Vliet 151603 by: Frank Keessen Re: Mail() problem

Re: [PHP] php editor?

2003-06-16 Thread Lars Torben Wilson
On Sun, 2003-06-15 at 22:34, M-Ali Mahmoodi wrote: if no newer editors? so the old messages suggest the older! I wasn't suggesting that people not suggest new editors. People just don't need to argue about it (at least, not on the list). Cheers, Torben Lars Torben Wilson [EMAIL PROTECTED]

[PHP] Reverse Phone Number Lookup in importable format

2003-06-16 Thread Peter Janett
I'm looking to do a lookup on a list of my incoming phone numbers. (Basically adding name to a number only caller ID setup.) I've found a couple sites that allow reverse phone number lookups, most notably anywho.com, by I'm hoping to find something that would allow me to easily get the data

[PHP] need config file parsing code.

2003-06-16 Thread Daevid Vincent
I am writing an open source web page that I can't believe doesn't exist already. basically i want to see all the DHCP clients on my network AND their nice windows names -- that is the tricky part -- I can't find a tool that does that part. GRRR... Anyways, here is what I have so far if you want

RE: [PHP] php editor?

2003-06-16 Thread Wim Paulussen
My two cents : jEdit main reasons why : - syntax highlighting - works on Linux and Windows (java-based) - full folding capabilities Wim -Oorspronkelijk bericht- Van: M-Ali Mahmoodi [mailto:[EMAIL PROTECTED] Verzonden: Monday, June 16, 2003 7:35 AM Aan: [EMAIL PROTECTED] Onderwerp: Re:

[PHP] speed on XML files

2003-06-16 Thread Diana Castillo
I have problems receiving large xml files, they take too long, does anyone have a solution? thank you, Diana -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] need config file parsing code.

2003-06-16 Thread Lars Torben Wilson
On Mon, 2003-06-16 at 01:14, Daevid Vincent wrote: So my question is, does anyone have some code (PHP preferred obviously, but any language should work or be portable) that will take a file of the form below and split it into the chunks required. Or anything even close? For example, a 'chunk'

Re: [PHP] Re: Zend encoding and security

2003-06-16 Thread Zeev Suraski
At 20:09 15/06/2003, Manuel Lemos wrote: Hello, On 06/15/2003 12:39 PM, Zeev Suraski wrote: At 13:59 11/06/2003, Manuel Lemos wrote: I guess they can't compare with what they can't afford to buy. It's therefore nice that it's available for free 21-day evaluation on zend.com, isn't it? :) I

[PHP] Software Testing and Internationalization - Free book by LISA/Lemoine International

2003-06-16 Thread Alex Lam
Dear colleague, LISA, in collaboration with Lemoine International has made Software Testing and Internationalization by Galileo Computing freely available for download. This 330 page book will transform how you view testing methodologies and procedures. It introduces the reader to essential

[PHP] error reporting linenumber and filename

2003-06-16 Thread Bas Jobsen
Hi, Running the code below, shows an errror in line 2 as expected. How do i get the linenumber of the function call? 3 here. ? function test($x){if($x!='a')trigger_error('error: call test with argument 1 equals a',E_USER_ERROR);} test('b'); ? Best regards, Bas -- PHP General Mailing List

RE: [PHP] error reporting linenumber and filename[Scanned]

2003-06-16 Thread Michael Egan
Use the predefined constant: __LINE__ Regards, Michael Egan -Original Message- From: Bas Jobsen [mailto:[EMAIL PROTECTED] Sent: 16 June 2003 12:50 To: PHP General Subject: [PHP] error reporting linenumber and filename[Scanned] Hi, Running the code below, shows an errror in line 2 as

[PHP] Re: speed on XML files

2003-06-16 Thread Catalin Trifu
Hi, Receiving from where ? Cheers, Catalin Diana Castillo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have problems receiving large xml files, they take too long, does anyone have a solution? thank you, Diana -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] php editor?

2003-06-16 Thread PHPSpooky
Glory! UltraEdit (www.ultraedit.com) for windows.. my vote goes for it. Not too expensive, and way too bright. Been using it for 3 years without a bit of hesitation. Zend is pretty good too, if you can afford it. And big UP to you Ryan A.!! Totally rock man! Supremacy, PHPSpooky

Re: [PHP] error reporting linenumber and filename[Scanned]

2003-06-16 Thread Bas Jobsen
Hi Michael, I'm not sure that there is a way beyond this to show the line within the function but I don't see that this would be necessary - at least not for resolving errors. i'm building a class for html table, will give you a short example (see below). Running testtable.php will produce

RE: [PHP] Variable variables question?

2003-06-16 Thread Ford, Mike [LSS]
-Original Message- From: Douglas Douglas [mailto:[EMAIL PROTECTED] Sent: 14 June 2003 00:57 Thanks for the explanation, but I think this is a different case, isn't? I'm not trying to do this ${$_POST}, I'm trying to make this string $_POST. Then why not just make it: $var =

Re: [PHP] Please I need help it's very Urgent (Prevent un-authorized users to download document)

2003-06-16 Thread Mishari
Dear Sebastian, I almost follow your steps, but I got one problem actully a big one,it tries to downlaod the php site not the document it self: I havn't got your point when you said you can download a file by file.php?file=a_file.zip I did the following: // I alredy checked the username and

RE: [PHP] Very Weird Problem Continued

2003-06-16 Thread Ford, Mike [LSS]
-Original Message- From: James Hicks [mailto:[EMAIL PROTECTED] Sent: 15 June 2003 14:44 The following variable needs to be escaped before it can be submitted as an MySQL query. It seems that the \0 in this string is causing me the problem. I have tried several functions in an

RE: [PHP] error reporting linenumber and filename[Scanned]

2003-06-16 Thread Ford, Mike [LSS]
-Original Message- From: Bas Jobsen [mailto:[EMAIL PROTECTED] Sent: 16 June 2003 14:39 I'm not sure that there is a way beyond this to show the line within the function but I don't see that this would be necessary - at least not for resolving errors. i'm building a class

[PHP] Re: rows by day

2003-06-16 Thread Hugh Bothwell
Sebastian [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] $result = $db-sql(SELECT * FROM $news GROUP BY time DESC LIMIT $_GET[page], $pagelimit); while($row = mysql_fetch_row($result)) { echo $row[title] br/ Written by $row[author] br/ $row[text]; } I'd like to sort the

[PHP] Re: speed on XML files

2003-06-16 Thread Diana Castillo
I send an xml request to a remote server and get back the xml response. Catalin Trifu [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Receiving from where ? Cheers, Catalin Diana Castillo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have problems

[PHP] fopen on foto

2003-06-16 Thread Diana Castillo
Hi, when I do an fopen on this file I get an error, however the jpg is there, why do I get this error? http://www.touricoholidays.com/pictures/miami south beach/ritz plaza - front.jpg this is the error I get: failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request at

Re: [PHP] error reporting linenumber and filename

2003-06-16 Thread Marek Kilimajer
Not possible with current php Bas Jobsen wrote: Hi, Running the code below, shows an errror in line 2 as expected. How do i get the linenumber of the function call? 3 here. ? function test($x){if($x!='a')trigger_error('error: call test with argument 1 equals a',E_USER_ERROR);} test('b'); ?

[PHP] Good PHP Books

2003-06-16 Thread Mark McCulligh
Hi Other PHP Users, I have been asked to teach an introduction course on PHP/MySQL at my local College. I am looking for a good beginner book for the course. Like most people I learned PHP from php.net and online tutorials. But I need a book for the course. I am looking for a book that is not

RE: [PHP] Good PHP Books

2003-06-16 Thread Dan Joseph
Hi Mark, I can't really recommend one, but I can recommend going to www.journeyed.com and checking out what books they have there. They are a retailer to students, and their books are mostly designed for classroom teaching. I'm sure you could find something there that would fit your

[PHP] PhpMyAdmin / MySQL

2003-06-16 Thread Pushpinder Singh Garcha
Hello All, I am using phpMyAdmin to administer my MySQl DB. I am running Mac OS Jaguar. when I try to start up phpMyAdmin I get an error: Welcome to phpMyAdmin 2.4.0 Error MySQL said: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) So I try to start up the MySQL

Re: [PHP] ACL howto

2003-06-16 Thread Ernest E Vogelsinger
At 06:11 16.06.2003, Sn!per said: [snip] I have several admin modules for my portal. And I have also several admin users who are supposed to have access only to certain modules. Say, the superadmin can access ALL modules (modA, modB, modC, modD) and

[PHP] Re: PHP help/example for booking program

2003-06-16 Thread Giuliano
Hi Other PHP Users, i am new PHP in the list; i am looking for some code example for a hotel or residence booking program; can someone help me with good tips? some code? i thank you for every help, bye Giuliano -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Good PHP Books

2003-06-16 Thread Mike Brum
Mark, One thing that you might want to consider is to just get the book you think is best and has the most solid content and then build your ciriculum around certain chapters. It shouldn't be hard to have a student read a chapter a night or even two chapters over the course of a week. Most of the

Re: [PHP] Capturing the input of dynamic form fields (part II)

2003-06-16 Thread Terje Torkelsen
i think this query could be optimized by putting all the inserts in one query. something like this: $query = 'INSERT INTO test (test1, test2) VALUES '; foreach($_POST['test1'] as $i = $value ) { $query .= ('.$_POST['test1'][$i].', '.$_POST['test2'][$i].'), ; } $result = mysql_query( substr(

Re: [PHP] Re: speed on XML files

2003-06-16 Thread Robert Cummings
Try compression, XML generally cmopresses very well since it is usually text. Cheers, Rob. Diana Castillo wrote: I send an xml request to a remote server and get back the xml response. Catalin Trifu [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Receiving from

Re: [PHP] Good PHP Books

2003-06-16 Thread Mark McCulligh
Thanks for your input. Yes I am already planning on using the book for extra information for the course, knowing I won't cover all the chapters in the book in such a short time. I won't get into things like GD(images) or things like creating PDF files dynamically. I plan to in the future create

[PHP] WARNING: FW: Virus Found in message [PHP-DB] Re Now how about Roman Numerals?

2003-06-16 Thread Marios Adamantopoulos
-Original Message- From: Hugh Bothwell [mailto:[EMAIL PROTECTED] Sent: 16 June 2003 14:50 Norton AntiVirus found a virus in an attachment from Hugh Bothwell. Attachment: besturingssystemen.xls.exe Virus name: [EMAIL PROTECTED] Action taken: Clean failed : Quarantine succeeded :

Re: [PHP] Good PHP Books

2003-06-16 Thread John Nichel
There's Programming PHP by Rasmus Lerdorf and Kevin Tatroe (O'Reilly). It's the only one I have, and have been satisified with it. I was already a year or so into php when I got it, and use it mainly as a reference, so I don't know how good it is for beginners. Mark McCulligh wrote: Hi Other

[PHP] Help inserting compressed data into a mysql database

2003-06-16 Thread Mr Percival
Hi, I am trying to insert compressed data into a database. Inserting it in seems to work file: $data = addslashes(gzdeflate($data, 9)); insert into database For the most part it works on reteiving the data but sometimes the data is unreadable. extract from database $data = @gzinflate($data);

[PHP] Re: php editor?

2003-06-16 Thread James Hatridge
Hi John et al,, On Sunday 15 June 2003 02:09, John Nichel wrote: Linux I use Quanta. Do you know how (or if) to get Quanta to color code PHP like it does html? If I could get that then Quanta would be almost perfit. Thanks JIM -- Jim Hatridge Linux User #88484

Re: [PHP] Help inserting compressed data into a mysql database

2003-06-16 Thread Bas Jobsen
extract from database $data = @gzinflate(stripslahes($data)); Op maandag 16 juni 2003 18:03, schreef u: Hi, I am trying to insert compressed data into a database. Inserting it in seems to work file: $data = addslashes(gzdeflate($data, 9)); insert into database For the most part it works

[PHP] interact with .htaccess

2003-06-16 Thread Miguel Angelo
Hi People That is a very good idea, i was thinking about using something similar on a file sharing area... But James, do you know how can we use this to build pages i mean include images on a html pages on a restricted way kind like image=/somewhere/mysecretfile.jpg Do you know how i can

Re: [PHP] Good PHP Books

2003-06-16 Thread Mark McCulligh
I have looked Programming PHP and Web Database Applications with PHP MySQL' both from O'Reilly. Both look good, but a little out of date. Mark. -- John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] There's Programming PHP by Rasmus Lerdorf and Kevin Tatroe (O'Reilly). It's

Re: [PHP] Re: php editor?

2003-06-16 Thread Stefan Dengscherz
Hi James, Quanta has built in syntax highlighting for PHP; i have made a small screenshot: http://www.chowned.us/sd/quanta-php.png regards Am Mon, 2003-06-16 um 17.49 schrieb James Hatridge: Hi John et al,, On Sunday 15 June 2003 02:09, John Nichel wrote: Linux I use Quanta. Do you

[PHP] HTML...

2003-06-16 Thread Johnny Martinez
Hi all, I'm trying to send an email to multiple recips but for some reason the Select isn't passing multiple options...Does anyone see a problem with this code? Do I an array or something to handle the passed multiples? Johnny page_1.php: html body

RE: [PHP] HTML...

2003-06-16 Thread Van Andel, Robbert
I believe the variable passed is actually an array ($email_recipients[0], $email_recipients[1]...etc). Robbert van Andel -Original Message- From: Johnny Martinez [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2003 9:27 AM To: [EMAIL PROTECTED] Subject: [PHP] HTML... Hi all, I'm

Re: [PHP] HTML...

2003-06-16 Thread Stefan Dengscherz
Hello, select name='email_recipients' size='6' multiple change this to select name='email_recipients[]' ... you can then easily access the multiple selections by walking the array: for ($i=0;$isizeof($email_recipients);$i++) { echo $email_recipients[$i]; echo br /; } regards -- PHP

Re: [PHP] HTML...

2003-06-16 Thread Marek Kilimajer
name the select email_recipients[] Johnny Martinez wrote: Hi all, I'm trying to send an email to multiple recips but for some reason the Select isn't passing multiple options...Does anyone see a problem with this code? Do I an array or something to handle the passed multiples? Johnny

Re: [PHP] HTML...

2003-06-16 Thread Cal Evans
in page to try var_dump($_POST['email_recipients']); =C= * Cal Evans * http://www.christianperformer.com * Stay plugged into your audience * The measure of a programmer is not the number of lines of code he writes but the number of lines he does not have to write. * - Original Message -

[PHP] mysql_errno codes

2003-06-16 Thread Thomas Hochstetter
Hi. [3rd try] ... where can i get mysql_error codes from? The ones that mysql_errno returns. Thanks Thomas -- +++ GMX - Mail, Messaging more http://www.gmx.net +++ Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage! -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: php editor?

2003-06-16 Thread Noel Wade
My favorite little gem is a shareware program called Code-Genie (www.code-genie.com). Its cheap, fast, a slim app, provides tons of useful little features, and has TOTALLY user-configurable text-coloring. You can specify a particular coloring scheme for each file extension, so it automatically

Re: [PHP] Re: php editor?

2003-06-16 Thread Chris Sherwood
I use PHPCoder Pro and it works great... hook it into your php and apache engines and you can run and debug while coding - Original Message - From: Noel Wade [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 16, 2003 9:57 AM Subject: Re: [PHP] Re: php editor? My favorite

RE: [PHP] mysql_errno codes

2003-06-16 Thread Jay Blanchard
[snip] [3rd try] ... where can i get mysql_error codes from? The ones that mysql_errno returns. [/snip] If MySQL returns an error code (let's use 80 as an example) go to your shell and type; perror 80 You will get back a response... Error code 80: Accessing a corrupted shared library If you

Re: [PHP] mysql_errno codes

2003-06-16 Thread Jeff Harris
On Jun 16, 2003, Thomas Hochstetter claimed that: |Hi. | |[3rd try] ... where can i get mysql_error codes from? The ones that |mysql_errno returns. | |Thanks |Thomas | All mysqld error messages are located into the file $MYSQL_ROOT_DIR/$LANGUAGE/errmsg.txt (or thereabouts) and listed in

Re: [PHP] mysql_errno codes

2003-06-16 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Mon, 16 Jun 2003 at 17:53, lines prefixed by '' were originally written by you. Hi. [3rd try] ... where can i get mysql_error codes from? The ones that mysql_errno returns. In the comments section of http://uk2.php.net/mysql_errno it

Re: [PHP] Good PHP Books

2003-06-16 Thread Brad Dameron
Mark, An exceptional book and one I sleep with next to my bed is the PHP Bible 2nd Edition from Tim Converse and Joyce Park. This edition is published September 2002 and covers PHP 4.2. However it is 1000 pages. But it covers PHP in a simple explanatory way and will be a great resource. Hope

Re: [PHP] Re: PHP help/example for booking program

2003-06-16 Thread Noel Wade
Welcome, hope you enjoy PHP - its a great language! My best suggestion is to check out the book PHP and MySQL Web Development by Luke Welling and Laura Thomson - it provides you with all of the PHP MySQL fundamentals and good concepts for how to design something like that. The book is aimed a

Re: [PHP] Re: PHP help/example for booking program

2003-06-16 Thread Brad Dameron
Try here: http://www.hotscripts.com/PHP/Scripts_and_Programs/ or here: http://php.resourceindex.com/ Enjoy, Brad - Original Message - From: Giuliano [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 16, 2003 7:42 AM Subject: [PHP] Re: PHP help/example for booking program

[PHP] Server-initiated HTTP requests

2003-06-16 Thread Sander
I'm using php to have several servers communicate between eachother. I want to do the following: Server A sends a request to server B. Server B stores some information about this request, and sends back a response to A (so far it's regular HTTP). Next, server B must send an HTTP request to server

Re: [PHP] Server-initiated HTTP requests

2003-06-16 Thread Brad Dameron
? header(Location:http://www.domain.com;); ? Brad - Original Message - From: Sander [EMAIL PROTECTED] I'm using php to have several servers communicate between eachother. I want to do the following: Server A sends a request to server B. Server B stores some information about this

Re: [PHP] WARNING: FW: Virus Found in message [PHP-DB] Re Now how about Roman Numerals?

2003-06-16 Thread Miles Thompson
Marios, Hard to say - bugbear is making the rounds, and it's a pernicious little beastie. It not only uses an existing address list, it has a built-in SMTP mailer and synthesizes not only To: addresses, but also From: addresses. Last week I had mail addressed to me ([EMAIL PROTECTED]) from

Re: [PHP] WARNING: FW: Virus Found in message [PHP-DB] Re Now how about Roman Numerals?

2003-06-16 Thread Jason Wong
On Tuesday 17 June 2003 01:29, Miles Thompson wrote: Hard to say - bugbear is making the rounds, and it's a pernicious little beastie. It not only uses an existing address list, it has a built-in SMTP mailer and synthesizes not only To: addresses, but also From: addresses. Norton's popping

Re: [PHP] Server-initiated HTTP requests

2003-06-16 Thread Jason Wong
On Tuesday 17 June 2003 01:07, Sander wrote: I'm using php to have several servers communicate between eachother. I want to do the following: Server A sends a request to server B. Server B stores some information about this request, and sends back a response to A (so far it's regular HTTP).

Re: [PHP] Please I need help it's very Urgent (Prevent un-authorized users to download document)

2003-06-16 Thread Sebastian
it should not do that. Are you on *nix? try not editing the script so much, try it like i gave it to you except remove the array to test a file to download. Just to verify that the script works for you. cheers, - Sebastian - Original Message - From: Mishari [EMAIL PROTECTED] To:

Re: [PHP] Server-initiated HTTP requests

2003-06-16 Thread Sapporo
I'm using php to have several servers communicate between eachother. I want to do the following: Server A sends a request to server B. Server B stores some information about this request, and sends back a response to A (so far it's regular HTTP). Next, server B must send an HTTP request to server

RE: [PHP] mysql_errno codes

2003-06-16 Thread Thomas Hochstetter
Thanks guys ... always a pleasure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Emptying the browser cache

2003-06-16 Thread Don
Hi, Is the a PHP command that will empty the browser's current cache? Thanks, Don -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Emptying the browser cache

2003-06-16 Thread Jason Wong
On Tuesday 17 June 2003 02:40, Don wrote: Is the a PHP command that will empty the browser's current cache? No. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development *

[PHP] str_replace() problems actually *_replace() problems to be more accurate

2003-06-16 Thread Thomas Bolioli
I am a perl/java/c++ programmer who is doing something in php and have run accross something I am stumped with. I am trying to replace carriage returns with br or p tags (p's in groups of two and br's for any unmatched cr's). I have tried all of the *_replace() functions including string_*,

[PHP] two php installations

2003-06-16 Thread Terje Torkelsen
is there a way to install two phps on one apache server? want a stable php4 on my production site and a php5-dev to test on.. just use different virtualhosts, like php5.domain.com for the one with php5 installed. looked in the apache docs, seems like LoadModule cant be used inside VirtualHost,

[PHP] Re: Emptying the browser cache

2003-06-16 Thread user
There is no way to do this in any programming language since it is not part of the http spec. There may be som client side vb hack that someone knows that works on IE for Windows but I doubt it. It is not very secure to allow web sites to control your browser's cache. Try looking into expire

[PHP] Re: Emptying the browser cache

2003-06-16 Thread Thomas Bolioli
There is no way to do this in any programming language since it is not part of the http spec. There may be som client side vb hack that someone knows that works on IE for Windows but I doubt it. It is not very secure to allow web sites to control your browser's cache. Try looking into expire

[PHP] timing out exec statements

2003-06-16 Thread Dave [Hawk-Systems]
we are dropping to a perl script to process transactions, occasionally the remote server the perl script interacts with becomes bogged, the transaction goes into limbo, or for whatever reason the processing of that transaction hangs (happening about 0.2% of the time). Is there a way to time and

[PHP] Re: str_replace() problems actually *_replace() problems to be more accurate

2003-06-16 Thread Terje Torkelsen
take a look at the comments for the nl2br() functions, many nice examples for problems simular to this: http://no2.php.net/manual/en/function.nl2br.php On Mon, 16 Jun 2003 20:49:14 +0200, Thomas Bolioli wrote (in message [EMAIL PROTECTED]): I am a perl/java/c++ programmer who is doing

[PHP] REGISTER_SHUTDOWN_FUNCTION() -- Still Not Working.

2003-06-16 Thread Jason Caldwell
REGISTER_SHUTDOWN_FUCNTION() still broke. http://bugs.php.net/bug.php?id=14542 This was suppose to be fixed for (Win32 platforms) in release 4.3.2, although I don't see it in the fix-log. I've been pushing to get this fixed for some time now (circa 2001.) If I knew C/C++, I'd hop in there and

[PHP] page name string

2003-06-16 Thread drparker
I need a really simple function that retrieves the actual page file name from a URL. So, if the URL is http://www.server.com/pagename.php, or if it is http://www.server.com/directory/pagename.php, the function in both cases will return pagename.php. I'm sorry if this is a ridiculously easy

Re: [PHP] page name string

2003-06-16 Thread CPT John W. Holmes
I need a really simple function that retrieves the actual page file name from a URL. So, if the URL is http://www.server.com/pagename.php, or if it is http://www.server.com/directory/pagename.php, the function in both cases will return pagename.php. I'm sorry if this is a ridiculously easy

[PHP] phpMyAdmin to output CSV to excel (including fieldnames)

2003-06-16 Thread J J
I see all the options in phpMyAdmin for CSV/excel output but I can't get it to export the fieldnames, headers as well. It'd be nice to have it automatically do that into excel so the output is easier to follow and provide to someone else. Am I just missing the option in phpMyAdmin or does it not

[PHP] LDap Schema

2003-06-16 Thread Anoop Singhal
Hi, I have a ldap server and I want to list the entire schema. There are a couple of attributes in this schema which are not set for any of the entries. Consequently, when I get all the entries, these attributes are not returned and thus do not even know that they exist!. Is there a way to

Re: [PHP] Reverse Phone Number Lookup in importable format

2003-06-16 Thread pop
Peter, Have you thought of contacting excite and cutting straight through to the bone? Anyway you might start by contacting someone from this url http://www1.excite.com/home/companyinfo/strategic_partnerships_overview/0,37 74,,00.html Please let me know what you find out as I have an idea Ive

[PHP] Re: speed on XML files

2003-06-16 Thread Catalin Trifu
Hi, If you have no access to the remote server and can not use compression, then I guess you are in trouble. btw. how big is your XML document ? Perhaps the inet connection is not very good either. Cheers, Catalin Diana Castillo [EMAIL PROTECTED] wrote in message news:[EMAIL

[PHP] Re: two php installations

2003-06-16 Thread Catalin Trifu
Hi, As far as I know you can not do that; but you instead install two Apache servers with different PHP modules and make them listen to different ports. Cheers, Catalin Terje Torkelsen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] is there a way to install two phps on

Re: [PHP] WARNING: FW: Virus Found in message [PHP-DB] Re Now how about Roman Numerals?

2003-06-16 Thread Miles Thompson
At 01:45 AM 6/17/2003 +0800, Jason Wong wrote: On Tuesday 17 June 2003 01:29, Miles Thompson wrote: Hard to say - bugbear is making the rounds, and it's a pernicious little beastie. It not only uses an existing address list, it has a built-in SMTP mailer and synthesizes not only To:

Re: [PHP] phpMyAdmin to output CSV to excel (including fieldnames)

2003-06-16 Thread Chris Hayes
At 21:33 16-6-2003, you wrote: I see all the options in phpMyAdmin for CSV/excel output but I can't get it to export the fieldnames, headers as well. It'd be nice to have it automatically do that into excel so the output is easier to follow and provide to someone else. Am I just missing the option

[PHP] mysql error messages

2003-06-16 Thread Thomas Hochstetter
Hi. I have parsed the txt file and put it on my site . it's kinda ugly and messy, but maybe it helps someone. http://www.thomash.co.za/docs/errmsg.php T

Re: [PHP] timing out exec statements

2003-06-16 Thread Brad Dameron
Wouldn't this be best done inside your perl script? That way you can have it retry a few times then if it hard fails return to the PHP script. Brad - Original Message - From: Dave [Hawk-Systems] [EMAIL PROTECTED] To: php list [EMAIL PROTECTED] Sent: Monday, June 16, 2003 11:55 AM

[PHP] How to avoid Socket Post output?

2003-06-16 Thread Kevin Stone
Hello list, I'm attempting to use the PostToHost() function to send a request to a remote script. The purpose for this is to request and retrieve information from a remote database without the need for messy HTTP HTML methods. I realize that I could use an HTML form, put the data in hidden

Re: [PHP] How to avoid Socket Post output?

2003-06-16 Thread Kevin Stone
ACK! NEVER MIND! I'm just blind. I didn't see the echo statement on the fgets() line. Problem solved. - Kevin - Original Message - From: Kevin Stone [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 16, 2003 2:46 PM Subject: [PHP] How to avoid Socket Post output? Hello

Re: [PHP] How to avoid Socket Post output?

2003-06-16 Thread Kevin Stone
Oh wait.. unless that output is required somehow. I removed the echo statement now my request isn't being replied to by the database script. Seems I desparately need a lesson in socket connections. Does anyone know of a good book or tutorial other than the manual that goes into this stuff in

Re: [PHP] str_replace() problems actually *_replace() problems to be more accurate

2003-06-16 Thread Mark
--- Thomas Bolioli [EMAIL PROTECTED] wrote: I am a perl/java/c++ programmer who is doing something in php and have run accross something I am stumped with. I am trying to replace carriage returns with br or p tags (p's in groups of two and br's for any unmatched cr's). I have tried all

Re: [PHP] str_replace() problems actually *_replace() problems to bemore accurate

2003-06-16 Thread Lars Torben Wilson
On Mon, 2003-06-16 at 11:49, Thomas Bolioli wrote: I am a perl/java/c++ programmer who is doing something in php and have run accross something I am stumped with. I am trying to replace carriage returns with br or p tags (p's in groups of two and br's for any unmatched cr's). I have tried

[PHP] Array in a $_session

2003-06-16 Thread Frank Keessen
Hi, Still strugling with array's ; : Can you help me with this?? input type=\text\ name=\test1[$i]\ size=\6\ How can i put that value into an $_SESSION?? Something like $_SESSION[test1][$i]?? This is the way i put into a database foreach($_POST['test1'] as $i = $Value) { $query = INSERT

Re: [PHP] How to avoid Socket Post output?

2003-06-16 Thread Lars Torben Wilson
On Mon, 2003-06-16 at 13:46, Kevin Stone wrote: Hello list, I'm attempting to use the PostToHost() function to send a request to a remote script. The purpose for this is to request and retrieve information from a remote database without the need for messy HTTP HTML methods. I realize

[PHP] How do I delete a mySQL table?

2003-06-16 Thread zavaboy
How do I delete a mySQL table? (Just what's in the subject) -- - Zavaboy [EMAIL PROTECTED] www.zavaboy.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to avoid Socket Post output?

2003-06-16 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Mon, 16 Jun 2003 at 22:00, lines prefixed by '' were originally written by you. Oh wait.. unless that output is required somehow. I removed the echo statement now my request isn't being replied to by the database script. For a quick

Re: [PHP] How do I delete a mySQL table?

2003-06-16 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Mon, 16 Jun 2003 at 22:22, lines prefixed by '' were originally written by you. How do I delete a mySQL table? (Just what's in the subject) - Zavaboy [EMAIL PROTECTED] www.zavaboy.com Connect to the mysql server, select the db then use:

RE: [PHP] How do I delete a mySQL table?

2003-06-16 Thread Mike Brum
DROP TABLE `tablename` -Original Message- From: zavaboy [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2003 5:22 PM To: [EMAIL PROTECTED] Subject: [PHP] How do I delete a mySQL table? How do I delete a mySQL table? (Just what's in the subject) -- - Zavaboy [EMAIL PROTECTED]

Re: [PHP] How do I delete a mySQL table?

2003-06-16 Thread zavaboy
Thanks! David Nicholson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, This is a reply to an e-mail that you wrote on Mon, 16 Jun 2003 at 22:22, lines prefixed by '' were originally written by you. How do I delete a mySQL table? (Just what's in the subject) - Zavaboy

  1   2   >