[PHP] virtual() call to CGI script

2001-08-28 Thread Egan
I use the PHP virtual() function to call a CGI script, and that works fine. But I need to prevent the CGI from being executed directly, in case someone tries to access its URL. Since HTTP_REFERER is unreliable, I was wondering how others have solved this problem ... Egan -- PHP General

[PHP] MySQL query length

2001-08-28 Thread Niklas Lampén
Can it cause any problems if mySQL query is very long? I have to compare many words to many fields in my DB and I've done it like Field LIKE '%searchword%' || Field LIKE '%searchword%' || Field LIKE '%searchword%'.. Query is build by a function, so I don't know the exact length but it is

[PHP] session.use_cookie

2001-08-28 Thread Richard Baskett
Could someone tell me how session.use_cookie works? To me it seems that if this is enabled and the user has cookies off.. then sessions will not work period. Any help on this would be appreciated :) Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

RE: [PHP] MySQL query length

2001-08-28 Thread Kees Hoekzema
You can alter the packetsize mysql will accept, you can find out the current setting with a show variables query, look for the max_allowed_packet var. You can alter it in your my.cnf file. (i have it on 25M atm). - Kees -Original Message- From: Niklas Lampén [mailto:[EMAIL

Re: [PHP] PCRE Multiline modifier

2001-08-28 Thread _lallous
Thanks! But I still nned to escape, but only once. I mean '\/pre' instead of '\\/pre'. Andrey Hristov [EMAIL PROTECTED] wrote in message 004401c12f02$ae5a2d30$0b01a8c0@ANDreY">news:004401c12f02$ae5a2d30$0b01a8c0@ANDreY... I think that is the solution: ? $mem = prehello world\nI love you

[PHP] Re: MySQL query length

2001-08-28 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Niklas lampén) wrote: Can it cause any problems if mySQL query is very long? I have to compare many words to many fields in my DB and I've done it like Field LIKE '%searchword%' || Field LIKE '%searchword%' || Field LIKE

Re: [PHP] Re: Need help on putting variable into form

2001-08-28 Thread Hugh Danaher
Andy, I think at one time I tried using double quotes but didn't get good results. If you have time to answer, why the backslash and what the hell is foo? - Original Message - From: Andy Ladouceur [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 27, 2001 8:51 PM Subject: Re:

[PHP] ereg()

2001-08-28 Thread Ben Quinn
Hi all Say i had text similar to below Cairns Fine Mareeba Fine Innisfail Fine I'm using the following code to grab the weather forecast for each of those towns $GrabURL = forecast_map_data.txt; $GrabStart = PROVINCIAL CITY; $GrabEnd = UV ratings; $file =

RE: [PHP] file uploads windows clients

2001-08-28 Thread Pere Vineta
I suggest you to check www.zend.com/zend/spotlight/uploading.php Bst Rgds Pere Gerard Samuel [EMAIL PROTECTED] escribió en el mensaje [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Ok, I tried the to replicate on different browsers. Microsoft IE 5.5 ,6 beta Opera 5 all show this problem. Here

Re: [PHP] ereg()

2001-08-28 Thread Jack Dempsey
You could try fgets from the fp instead of fread. Then for each line depending on how well structured it is you have a variety of options, but i think this would be at least a good start: www.php.net/preg_split - split on multiple spaces - \s+ jack Ben Quinn wrote: Hi all Say i had text

Re: [PHP] Re: Need help on putting variable into form

2001-08-28 Thread Christopher William Wesley
On Tue, 28 Aug 2001, Hugh Danaher wrote: I think at one time I tried using double quotes but didn't get good results. If you have time to answer, why the backslash and what the hell is foo? Using the backslash escapes the double quote ... tells php to not use the double quote (as it does to

Re: [PHP] Multiple JavaScript Windows

2001-08-28 Thread * RzE:
Original message From: Carlos Fernando Scheidecker Antunes [EMAIL PROTECTED] Date: Mon, Aug 27, 2001 at 07:48:06PM -0500 Message-ID: 001201c12f5b$19d05e60$0a505ad1@Nando4 Subject: [PHP] Multiple JavaScript Windows Hello All, I need to have multiple JavaScripts windows with my database PHP

[PHP] Sessions with MySQL

2001-08-28 Thread Tobias Strauß
I'm using a MySQL-database to store my session variables by using the following code: session_set_save_handler sess_open, sess_close, sess_read, sess_write, sess_destroy, sess_gc ); session.gc_probability in the php.ini file is set to 1. In a book I read that this

[PHP] str_replace() function help

2001-08-28 Thread Navid Yar
Hello, I am creating an online text editor for a magazine site and I want to be able to apply some CSS formatting into it. The following is the script that adds the br / tags where necessary, then it strips the br / tags by replacing them with some p tags with CSS formatting. The problem I'm

RE: [PHP] POST to port 443 (SSL)

2001-08-28 Thread Jon Farmer
Ermm you are missing SSL encryption. You can't just try and talk to port 443! You have to use something that talks SSL to talk to port 443. fsockopen() does not talk SSL. Regards -- Jon Farmer տլ Systems Programmer, Entanet www.enta.net Tel +44 (0)1952 428969 Mob +44 (0)7968 524175 PGP Key

Re: [PHP] POST to port 443 (SSL)

2001-08-28 Thread Jason Brooke
Hello, I am trying to use the UPS Online Tools, the XML version. This requires you POSTing an XML document to their Tools server, which is SSL enabled. I am having a problem getting this to connect in PHP (4.0.6) on my server (Apache 1.3.20). In my scripts, I use $Socket = fsockopen

[PHP] What does PHP stand for?

2001-08-28 Thread Niklas Lampén
It just crossed my mind: I don't know what PHP stands for...so anyone? :) Niklas

Re: [PHP] What does PHP stand for?

2001-08-28 Thread Adi Wibowo
On Tue, 28 Aug 2001, [iso-8859-1] Niklas Lampén wrote: It just crossed my mind: I don't know what PHP stands for...so anyone? :) PHP stands for ... PHP. Adi Wibowo -- http://dewey.petra.ac.id * Work matter: [EMAIL PROTECTED] * Private matter : [EMAIL PROTECTED]

RE: [PHP] What does PHP stand for?

2001-08-28 Thread SED
The manual says: officially PHP: Hypertext Preprocessor SED -Original Message- From: Niklas Lampén [mailto:[EMAIL PROTECTED]] Sent: 28. ágúst 2001 10:38 To: Php-General Subject: [PHP] What does PHP stand for? It just crossed my mind: I don't know what PHP stands for...so

RE: [PHP] What does PHP stand for?

2001-08-28 Thread Seb Frost
Stands for PHP: Hypertext Pre-processor. I guess they didn't like the sound of just HP. - seb -Original Message- From: Adi Wibowo [mailto:[EMAIL PROTECTED]] Sent: 28 August 2001 11:54 To: Niklas Lampén Cc: Php-General Subject: Re: [PHP] What does PHP stand for? On Tue, 28 Aug

RE: [PHP] What does PHP stand for?

2001-08-28 Thread Jon Haworth
PHP Hypertext Preprocessor (yes, it's recursive) HTH Jon -Original Message- From: Niklas Lampén [mailto:[EMAIL PROTECTED]] Sent: 28 August 2001 11:38 To: Php-General Subject: [PHP] What does PHP stand for? It just crossed my mind: I don't know what PHP stands for...so anyone? :)

RE: [PHP] What does PHP stand for?

2001-08-28 Thread Niklas Lampén
Funny that there is no meanin for the first P. Niklas -Original Message- From: Jon Haworth [mailto:[EMAIL PROTECTED]] Sent: 28. elokuuta 2001 13:57 To: 'Niklas Lampén'; Php-General Subject: RE: [PHP] What does PHP stand for? PHP Hypertext Preprocessor (yes, it's recursive) HTH Jon

[PHP] cancellation cleanup handlers in PHP4?

2001-08-28 Thread alvarez
Is it possible to register functions to be executed at program termination as in unix's onexit() and pthread_cleanup_push facilities ? D. Alvarez Arribas [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: [PHP] What does PHP stand for?

2001-08-28 Thread SED
I suggest this for the PHP ;) Professional Hypertext Preprocessor SED -Original Message- From: Niklas Lampén [mailto:[EMAIL PROTECTED]] Sent: 28. ágúst 2001 11:11 To: Php-General Subject: RE: [PHP] What does PHP stand for? So PHP stands for Personal Home Pages Hypertext

[PHP] PHPUK Meeting - Cancelled

2001-08-28 Thread James Moore
Hi everyone, Im sorry to inform you that I have decided to cancel the meeting on the 8th of September, this is due to having very little response and it seems pointless to have a meeting that large for literally 8 to 10 people, if there are still people who want to meet on that day then perhaps

[PHP] Problem using session

2001-08-28 Thread Rosen
Hi, I'm creating system with user registration. I want to use sessions without cookies. My cookies are disabled. this is my login.php: global $curusr, $curpass, $registered; if (lExistUser( $usr, $pwd ) == false )// is user exist ? { echo $usr . $pwd; echo - Error; session_destroy();

Re: [PHP] cancellation cleanup handlers in PHP4?

2001-08-28 Thread pierre-yves
Hello, From the manual: http://www.php.net/manual/en/function.register-shutdown-function.php py - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 28, 2001 7:37 AM Subject: [PHP] cancellation cleanup handlers in PHP4? Is it possible to register

Re: [PHP] Disabling certain functions per directory

2001-08-28 Thread pierre-yves
You will find the answer to that question in the archives. Someone answer this question a couple of days ago. Can't remember the address of the archive tho, anyone can help me here? py - Original Message - From: Andy Ladouceur [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday,

[PHP] haX0Ring exercise :)

2001-08-28 Thread alvarez
I want a function or macro to return executable code yielding syntax preprocessing of binary trees. Because the Macro Processor seems to be somewhat messy I though a regular function might be capable of doing the job. e.g. btree ('((a, b)(c, d))') should be expanded to

[PHP] How do I read the first n lines from a file?

2001-08-28 Thread Tauntz
hi ! I have a simmple question :).. Lets say that I have a file called: list.txt and I want to take the first 10 lines from it echo it to the browser ? thank you [EMAIL PROTECTED]

RE: [PHP] How do I read the first n lines from a file?

2001-08-28 Thread Niklas Lampn
You can do this: $i = 0; $fp = fopen("list.txt", "r"); while (!feof($fp) $i 10) { $i++; $Text = fgets($fp, 4096); // Reads first 4096 characters from a row. print "$Textbr\n"; }; Niklas -Original Message- From: Tauntz [mailto:[EMAIL PROTECTED]] Sent: 28.

[PHP] Re: Problem using session

2001-08-28 Thread Rosen
And one question: Should I use session_start() in every php file on my site ? Thanks, Rosen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL

RE: [PHP] How do I read the first n lines from a file?

2001-08-28 Thread Niklas Lampn
Oops.. Forgot to close the file. Put as last line: fclose($fp); Niklas -Original Message- From: Niklas Lampn [mailto:[EMAIL PROTECTED]] Sent: 28. elokuuta 2001 15:29 To: Tauntz; Php-General Subject: RE: [PHP] How do I read the first n lines from a file? You can do this: $i = 0; $fp

[PHP] Re: Re: cancellation cleanup handler

2001-08-28 Thread alvarez
Hello, From the manual: http://www.php.net/manual/en/function.register-shutdown-function.php py Thanks (but)... I was referring to functions that are executed in a fully functional PHP environment including output using echo. The crippled shutdown thing does not serve for

RE: [PHP] What does PHP stand for?

2001-08-28 Thread Jon
Hmm although the answer was Personal Home Page Tools and is now Hypertext Preprocessor when people ask me, I say Pre-Hypertext Processor Its the same meaning, and puts the letters in the correct order, so as not to confuse people. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: Problem using session

2001-08-28 Thread Frank Loewenthal
On Tuesday 28 August 2001 02:20 pm, you wrote: And one question: Should I use session_start() in every php file on my site ? Thanks, Rosen Yes! -- SFI Technology Services AG Dr. F. Loewenthal Stettbachstrasse 10 CH-8600 Dübendorf Switzerland [EMAIL PROTECTED] www.sfi.ch +41/1-824 49 00

[PHP] PHP and Java issues. Desperate please help.

2001-08-28 Thread Bill Koch
I have dug through several forums trying to find a solution to this issue. I have configured PHP4.0.6 with Sun's JDK1.3.1 on RH7.1. I keep receiving a the following error message: Fatal error: Unable to load Java Library /usr/java/jdk1.3.1/jre/lib/i386 /classic/libjvm.so, error:

Re: [PHP] Re: Problem using session

2001-08-28 Thread hassan el forkani
yes and be carefull to put that before any aoutput is sent to the browser (even a blank space is an output) regards At 14:20 28/08/01, Rosen wrote: And one question: Should I use session_start() in every php file on my site ? Thanks, Rosen -- PHP General Mailing List

[PHP] Re: payflow pro hosed

2001-08-28 Thread Bill Koch
Dan, Check the php.ini file. You need to be sure the payflow library is being loaded. The following should be listed under extensions in your php.ini directory: extension=pfpro.so extension=libpfpro.so Also be sure that the path to the php/module file is listed as well. Bill -- PHP

SV: [PHP] Re: The future of PHP - accessory libraries

2001-08-28 Thread anders nawroth
installation for the other 400 customers using the server. Then they have to take the server down to install the new build. Is it any wonder that they just say no? I have to go with the (few) extensions/librarys provided by my ISP. If you don't run your own server, that's how it works with most

Re: [PHP] How do I read the first n lines from a file?

2001-08-28 Thread Tauntz
hey.. thank you.. but is it possible to read the last lets say 10 lines from a file ? - Original Message - From: "Niklas Lampn" [EMAIL PROTECTED] To: "Tauntz" [EMAIL PROTECTED]; "Php-General" [EMAIL PROTECTED] Sent: Tuesday, August 28, 2001 3:28 PM Subject: RE: [PHP] How do I read the

[PHP] How can I Get Text as it Set

2001-08-28 Thread Alawi Albaity
when a person write in a text area i want to get it string and format it as it set for example when he write --- how are all world i do not see you --- i want to store it as it set in my database i not want it to be how are all world i do not see you --- Thanks

RE: [PHP] How do I read the first n lines from a file?

2001-08-28 Thread Niklas Lampn
Yes. Then you have to do it a bit differently: $file = file("list.txt"); // $file is now an array of lines in "list.txt" for ($i = count($file); $i count($file) - 10; $i--) { print "$file[$i]br"; }; That should do. Didn't try it thou. That prints the lines in order last, last-1,

RE: [PHP] zlib1.1.3 and ob_gzhandler

2001-08-28 Thread Martin Helie
I was using ob_gzhandler with PHP4.0.4, and everything was fine. I was using an older version of gd and zlib, though (I think 1.8.3 and 1.1.2, respectively -- but I'm not certain). There are no errors in the apache log. -Original Message- From: Zeev Suraski [mailto:[EMAIL PROTECTED]]

Re: [PHP] How do I read the first n lines from a file?

2001-08-28 Thread Data Driven Design
You might be better off using the file() function which reads a file into an array, then you can use the indexes to get whatever lines you want http://www.php.net/manual/en/function.file.php Data Driven Design 1506 Tuscaloosa Ave Holly Hill, Florida 32117 http://www.datadrivendesign.com Phone:

[PHP] Listserv

2001-08-28 Thread Phil Spitler
Does anyone know of a good listserv written in PHP? Thanks! - Phil Spitler [Vice President] Web Hut Design, Inc. c 704-451-1324 mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] mcrypt

2001-08-28 Thread Power Programmer
I use mcrypt to encrypt passwords, I saw somewhere international users had trouble with the high ascii. is the any functions that can convert the high ascii to hex or something ? Thanks Randy --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system

RE: [PHP] How can I Get Text as it Set

2001-08-28 Thread Seb Frost
can't you just explode the string with \n as the separator? Look up explode function at php.net. - seb -Original Message- From: Alawi Albaity [mailto:[EMAIL PROTECTED]] Sent: 28 August 2001 14:06 To: [EMAIL PROTECTED] Subject: [PHP] How can I Get Text as it Set when a person write in

Re: [PHP] virtual() call to CGI script

2001-08-28 Thread Egan
On Tue, 28 Aug 2001 16:38:14 +1000, Jason Brooke [EMAIL PROTECTED] wrote: I use the PHP virtual() function to call a CGI script, and that works fine. But I need to prevent the CGI from being executed directly, in case someone tries to access its URL. Since HTTP_REFERER is unreliable, I was

[PHP] php 4 installation error

2001-08-28 Thread Olivier VIGAND
i try to install php 4.0.6 on a linux redhat 6.0 with apache 1.3.20 and apxs. when i execute the make command i have then following message make[1]: Entering directory `/usr/local/php-4.0.6' /bin/sh /usr/local/php-4.0.6/libtool --silent --mode=link gcc -I. -I/usr/local/php-4.0.6/

[PHP] Refresh Main frame

2001-08-28 Thread Rosen
Hi, how can I tell to refresh the main frame ( index.php ) from some subframe I use frames ) ? Thanks, Rosen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators,

Re: [PHP] virtual() call to CGI script

2001-08-28 Thread Jason Brooke
if you're using apache, something along the lines of the following untested directives should prevent anyone but the localhost (which is where your virtual() calls should be coming from) from accessing the cgi's via http Directory /path/to/usr/cgi order deny, allow deny from all allow from

RE: [PHP] How do I read the first n lines from a file?

2001-08-28 Thread Jon Farmer
If you are on a unix box you might want to use the tail command... if you use exec() the output will be in an array... -- Jon Farmer ?? Systems Programmer, Entanet www.enta.net Tel +44 (0)1952 428969 Mob +44 (0)7968 524175 PGP Key available, send blank email to [EMAIL PROTECTED] -Original

[PHP] Using Ingres II Functions

2001-08-28 Thread Jason G Ngo
The php manual mentions about compiling php with Open API headers for Ingres. We are using the commercial version of Ingres II for NT. Is this a different animal from Ingres for Linux or should I contact Computer Associates to get those headers? How do I get php to access directly to Ingres II

Re: [PHP] mcrypt

2001-08-28 Thread Jason Brooke
I use mcrypt to encrypt passwords, I saw somewhere international users had trouble with the high ascii. is the any functions that can convert the high ascii to hex or something ? Thanks Randy Have a squiz here: http://www.php.net/manual/en/ref.strings.php -- PHP General Mailing

Re: [PHP] Refresh Main frame

2001-08-28 Thread * RzE:
Original message From: Rosen [EMAIL PROTECTED] Date: Tue, Aug 28, 2001 at 04:29:05PM +0300 Message-ID: [EMAIL PROTECTED] Subject: [PHP] Refresh Main frame Hi, how can I tell to refresh the main frame ( index.php ) from some subframe I use frames ) ? Thanks, Rosen /Original message

RE: [PHP] mcrypt

2001-08-28 Thread Power Programmer
I looked at those and still don't know which one i should use any ideas?? -Original Message- From: Jason Brooke [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 28, 2001 6:49 AM To: Power Programmer Cc: [EMAIL PROTECTED] Subject: Re: [PHP] mcrypt I use mcrypt to encrypt passwords,

Re: [PHP] virtual() call to CGI script

2001-08-28 Thread Egan
On Tue, 28 Aug 2001 23:38:30 +1000, Jason Brooke [EMAIL PROTECTED] wrote: if you're using apache, something along the lines of the following untested directives should prevent anyone but the localhost (which is where your virtual() calls should be coming from) from accessing the cgi's via http

[PHP] Re: The future of PHP - accessory libraries

2001-08-28 Thread Geoff Caplan
Rasmus wrote This is solved by people who roll distributions. Debian, Mandrake, RedHat, FreeBSD, etc. It is very simple to add new features to an existing PHP setup through these binary distributions of PHP, even for newbies. Once you know your way around PHP and its build system, you

[PHP] PHP/Sendmail interaction : how to get rid of wrong emails

2001-08-28 Thread Sebastian Stadtlich
Hi all I'm facing the Problem that lots of my users are too stupid to write their email correct. When i mail them with php a return email is send to me by their mailserver, which results in LOTS of mail for the root account. Can i get sendmail to put the returned emails in a file? so that i can

Re: [PHP] Refresh Main frame

2001-08-28 Thread Rosen
Can I send params to main frame ? Thanks, Rosen * RZe: [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Original message From: Rosen [EMAIL PROTECTED] Date: Tue, Aug 28, 2001 at 04:29:05PM +0300 Message-ID: [EMAIL PROTECTED] Subject: [PHP] Refresh Main frame

RE: [PHP] PHP/Sendmail interaction : how to get rid of wrong emails

2001-08-28 Thread Jon Farmer
Well on submission of the email you could try contacting their mail server and pretend to a have a mail for them using SMTP. If you get a recipient ok or similar message.. ,thre is a code for it, then at least the server accepts mail for that address. You might be better off croning this rather

[PHP] LAN Scripts/Functions

2001-08-28 Thread ReDucTor
Well to start I am lazy(so pls don't tell me to go make everything) :D Now I am after Scripts and/or Functions that would be handy to use on at a LAN, or on a Website Related to LANs...here are just a few things I have thought up... - Game Related - Game Stats - Clan Management -

RE: [PHP] Refresh Main frame

2001-08-28 Thread Jon Farmer
Yes but you would have to dynamically build the javascript statement up using php with the query string you wanted and use window.parent.name-of-frame.location.href=index.php??echo $querystring? -- Jon Farmer Õ¿Õ¬ Systems Programmer, Entanet www.enta.net Tel +44 (0)1952 428969 Mob +44

Re: [PHP] virtual() call to CGI script

2001-08-28 Thread Jason Brooke
We don't define any virtual hosts in httpd.conf; instead, we use a custom handler hooked into post-read-request. So I won't be able to define /path/to/usr/cgi in httpd.conf. But if that concept will work in user .htaccess files, it would be an improvement over my current techniques. I'll

Re: [PHP] Re: The future of PHP - accessory libraries

2001-08-28 Thread Rasmus Lerdorf
Look at it from their point of view. Say, as a customer, you want to use library X. The ISP looks around and eventually find it lives on a personal site in Greece or Hungary. Not very confidence inspiring. The ftp on this site is broken, so they email the author and wait a couple of days

Re: [PHP] Refresh Main frame

2001-08-28 Thread * RzE:
Original message From: Rosen [EMAIL PROTECTED] Date: Tue, Aug 28, 2001 at 05:03:50PM +0300 Message-ID: [EMAIL PROTECTED] Subject: Re: [PHP] Refresh Main frame Can I send params to main frame ? Thanks, Rosen /Original message Reply Well... yes, you can. You'll have to use a different kind

RE: [PHP] LAN Scripts/Functions

2001-08-28 Thread Erik H. Mathy
Now I am after Scripts and/or Functions that would be handy to use on at a LAN, or on a Website Related to LANs...here are just a few things I have thought up... el snippo! Get thy lazy behind to Freshmeat and Sourceforge. ;) http://www.freshmeat.net http://sourceforge.net/ Enjoy! - Erik

AW: [PHP] PHP/Sendmail interaction : how to get rid of wrong emails

2001-08-28 Thread Sebastian Stadtlich
any hint where to find the perl mod or some php-code that contacts mailservers like you described? -Ursprüngliche Nachricht- Von: Jon Farmer [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 28. August 2001 16:14 An: Sebastian Stadtlich; 'Php-General (E-Mail) Betreff: RE: [PHP]

[PHP] javascript code beautification

2001-08-28 Thread alvarez
Does someone know of a PHP-function to reformat Sources of C-like langs? I need to generate syntactically uniform Javascripts independent of the specific user input. Thanks, D. Alvarez Arribas [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

[PHP] PWS

2001-08-28 Thread frank clarke
I have installed PHP CGI 4.0 on my Win 98 machine with PWS and tried this script that I put in the wwwroot directory and called test.php3: html body ?php $myvar = Hello World; echo $myvar; ? /body /html I called the page from my browser like this: http://localhost/test.php3 The page

Re: [PHP] Re: The future of PHP - accessory libraries

2001-08-28 Thread Rasmus Lerdorf
Something which seems to not be a viable option for most things is SO files. For some reason, the only real way (documented) to get things into PHP is to compile them all into PHP. I've used the pdflib SO file and just used dl() to bring it in - works like a champ. Pity I can't do that for

[PHP] maito function

2001-08-28 Thread Mark Lo
Hi, I would like to know how to use the mailto function calling the mail client and at the same time having the subject filled with something. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: [PHP] PHP/Sendmail interaction : how to get rid of wrong emails

2001-08-28 Thread Jon Farmer
For perl look at http://www.cpan.org/modules/by-category/19_Mail_and_Usenet_News/Mail/Mail-Ch eckUser-1.02.readme As for php you would need to open a socket connection.. My advice would be to use the perl module and call a perl script from php. Regards Jon -- Jon Farmer Õ¿Õ¬ Systems

[PHP] mailto function with this subject line filled.

2001-08-28 Thread Mark Lo
Hi, I would like to know how to use the mailto function calling the mail client and most importantly having the subject filled with something. Etc. Subject: abc inquiry Thank you Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] LAN Scripts/Functions

2001-08-28 Thread ReDucTor
Arr...Might as well search Sourceforge and Freshmeat :D hehe But hopfully posting here will get people to step out, and might hand out things that have been working on similar...I know there was a person on here before, looking for a thing to browse computers shares thro PHP... - James

Re: [PHP] mailto function with this subject line filled.

2001-08-28 Thread Tyler Longren
Well, if you're just doing this with an anchor tag: a href=mailto:[EMAIL PROTECTED]?subject=TheSubject;Mail me/a If you're looking for php's mail function, look at www.php.net. Tyler Longren [EMAIL PROTECTED] Captain Jack Communications www.captainjack.com - Original Message - From:

Re: [PHP] Re: The future of PHP - accessory libraries

2001-08-28 Thread Michael Kimsal
Rasmus Lerdorf wrote: Look at it from their point of view. Say, as a customer, you want to use library X. The ISP looks around and eventually find it lives on a personal site in Greece or Hungary. Not very confidence inspiring. The ftp on this site is broken, so they email the author and wait

[PHP] How do I get the file size of a file on my server?

2001-08-28 Thread Joseph Bannon
How do I get the file size of a file on my server using PHP? Thanks, Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Best Way?

2001-08-28 Thread Gary
Hi All, I have a php/mysql authentication page where 10 people can login. Each person has thier own page that they update daily. What would be the best way to take them to their update area? I thought of cookies but that requires them haveing cookies turned on. TIA Gary -- PHP General

Re: [PHP] Re: The future of PHP - accessory libraries

2001-08-28 Thread Michael Kimsal
Rasmus Lerdorf wrote: Something which seems to not be a viable option for most things is SO files. For some reason, the only real way (documented) to get things into PHP is to compile them all into PHP. I've used the pdflib SO file and just used dl() to bring it in - works like a champ. Pity

Re: [PHP] How do I get the file size of a file on my server?

2001-08-28 Thread Andrey Hristov
filesize() Andrey Hristov IcyGEN Corporation http://www.icygen.com 99% - Original Message - From: Joseph Bannon [EMAIL PROTECTED] To: PHP (E-mail) [EMAIL PROTECTED] Sent: Tuesday, August 28, 2001 5:37 PM Subject: [PHP] How do I get the file size of a file on my server? How do I get

Re: [PHP] PWS

2001-08-28 Thread John Meyer
At 07:27 AM 8/28/01 -0700, you wrote: I have installed PHP CGI 4.0 on my Win 98 machine with PWS and tried this script that I put in the wwwroot directory and called test.php3: ?php $myvar = Hello World; echo $myvar; ? I called the page from my browser like this: http://localhost/test.php3 Why

Re: [PHP] What does PHP stand for?

2001-08-28 Thread Michael Kimsal
It stands for freedom of choice, liberty, mom and apple pie, as far I can tell, though probably not in that order. Niklas Lampén wrote: It just crossed my mind: I don't know what PHP stands for...so anyone? :) Niklas -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] How do I get the file size of a file on my server?

2001-08-28 Thread Jeff Lewis
$file_size = filesize(FILENAME); if ($file_size = 1073741824) { $file_size = round($file_size / 1073741824 * 100) / 100 . g; } elseif ($file_size = 1048576) { $file_size = round($file_size / 1048576 * 100) / 100 . m; } elseif ($file_size = 1024) { $file_size = round($file_size / 1024 * 100) / 100

Re: [PHP] Best Way?

2001-08-28 Thread Andrey Hristov
Read about SESSIONs in PHP4, they are flexible. If cookies are set off then the session_id is added transparantly to every URL on the parsed page(must be switched on in php.ini, and all hrefs have to be relative like '/cgi-bin/some_script.php' , not

Re: [PHP] maito function

2001-08-28 Thread Jason Brooke
Hi, I would like to know how to use the mailto function calling the mail client and at the same time having the subject filled with something. This is not a php question, it's html and easily answered by looking at a html reference, but the answer is: a

[PHP] remote hosts

2001-08-28 Thread Joseph Bannon
I run a community website with a bulletin board which I wrote in PHP. Each member gets a profile and can submit a picture with it. However, those members with pictures on geocites are having problems. Seems their server denies remote hosts. Is there a way with PHP to tell their server to let

[PHP] PHP on Win NT , IIS

2001-08-28 Thread Sridhar Moparthy
Hi Friends, I am kind of new to PHP. I am planning to install PHP4 on Windows NT with IIS as web server and Oracle as database. Could you please help me to understand some of the following. What web server is better on NT with PHP? What PHP installation mode performs better i.e. CGI, SAPI

[PHP] iODBC Troubles

2001-08-28 Thread Jonathan Hilgeman
I first tried unixODBC in order to get ODBC functionality on my FreeBSD 4.2 box with PHP 4.0.3 on Apache 1.3.14. It didn't work too well, and I kept getting an error about undefined symbols like pthread_mutex_init or something when trying to run command-line sample applications. So someone

[PHP] concatenate?

2001-08-28 Thread Jeremy Morano
Hello, I was just wondering if there was a simple function like str_con or something like that to concatenate strings? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

RE: [PHP] PHP on Win NT , IIS

2001-08-28 Thread Hoover, Josh
What web server is better on NT with PHP? I'm sure everyone has their own opinion, but if you're using NT, then you're probably just as well using IIS until Apache 2.0 has a final release out. What PHP installation mode performs better i.e. CGI, SAPI Module , build or not build etc ?

RE: [PHP] concatenate?

2001-08-28 Thread Seb Frost
$string0 = hello; $string1 = goodbye; $string2 = $string0 . and . $string1; result:$string2 = hello and goodbye - seb -Original Message- From: Jeremy Morano [mailto:[EMAIL PROTECTED]] Sent: 28 August 2001 16:28 To: [EMAIL PROTECTED] Subject: [PHP] concatenate? Hello, I

Re: [PHP] Best Way?

2001-08-28 Thread Michael Kimsal
So require them to have cookies turned on. If it's YOUR system, you can require whatever you want. If this is something for your company, presumably it's a business tool of some sort, and you can then require them to do whatever you need to go get the job done. Gary wrote: Hi All, I

Re: [PHP] Best Way?

2001-08-28 Thread Andrew Brampton
Make a login screen that can save cookies (so they don't have to type username again) and keep a Session Varible of their username/password so u know if they are Auth to enter certain areas... This way if they don't have cookies they can login anyway... but if they do allow cookies then it saves

[PHP] parse error AFTER end of included file??

2001-08-28 Thread Jaxon
Hi, Can anyone tell me why I have a parse error here? I'm including this file, which is 16 lines, but the error being thrown by the including page reports a parse error in this file on line 17 ???: ?php if (!isset($page_type)) { $page_type = foo; } if (!isset($page_id))

RE: [PHP] parse error AFTER end of included file??

2001-08-28 Thread Johnson, Kirk
You need to close off this bit of code with a brace '}': if (!isset($page_id)) { Kirk -Original Message- From: Jaxon [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 28, 2001 9:34 AM To: [EMAIL PROTECTED] Subject: [PHP] parse error AFTER end of included file?? Hi,

RE: [PHP] parse error AFTER end of included file??

2001-08-28 Thread Jaxon
doh! thanks for spotting that Kirk! cheers, j -Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 28, 2001 11:49 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] parse error AFTER end of included file?? You need to close off this bit of code

[PHP] Re: parse error AFTER end of included file??

2001-08-28 Thread James Holloway
Jaxon, do you have a line of white space after your closing tag? Anyway, this looks fishy to me: if (!isset($page_id)) { $sql=select page_id from table where fieldname = $value; $link_id = mysql_connect($host, $usr, $pass) or die (mysql_error());

Re: [PHP] virtual() call to CGI script

2001-08-28 Thread Egan
On Wed, 29 Aug 2001 00:16:10 +1000, Jason Brooke [EMAIL PROTECTED] wrote: It will work in .htaccess if you enable it, or you might even be able to use something like: DirectoryMatch ^/path/to/.*/cgi (untested again) After testing this I see that: Apache uses the IP address of the remote host

  1   2   3   >