Re: [PHP] PHP HTACCESS

2001-02-08 Thread Christian Sakshaug
Hey Take a look at www.phpbuilder.com, www.devshed.com or one of they many good sites on the net. Here you will find tutorials, forums, tips etc, that you can use for increase your experiance. I also suggest books to increase your exp to... http://www.php.net/links.php for more links At

[PHP] How to make PHP work in all sub-directories?

2001-02-08 Thread SED
Hi, Im hosting a PHP-doc in sub-directorie (http://myserver/subdirectory/) on my IIS server Win2000 but it doesn't run, though it runs in the root (http://myserver/). Is there something in the PHP.ini to config (and how) or is it something else? Regards, Sumarlidi Einar Dadason SED - Graphic

Re: [PHP] Variable quantity chooser.

2001-02-08 Thread Jørg V . Bryne
The slider control is not a regular html-form-object. (on Windows you can see one in the recycle-bin properties). If you want to, or need to, i guess you can use an active-x control og make a javascript to do it. I wouldn't reccomend either... However if you need to set a not so spesific number

[PHP] Exception Stack Error

2001-02-08 Thread Ashley M. Kirchner
I just compiled apache_1.3.17, mod_perl-1.25 and php-4.0.4pl1. However, now when I try to start apache, I get the following error: Fatal System Error: Raise at top of Exception Stack Where might this error be coming from? Apache? PHP? Some other PHP extension I might have

Re: [PHP] PHP HTACCESS

2001-02-08 Thread Jean-Arthur Silve
hello, you can see with the following syntax : http://login:[EMAIL PROTECTED]/protecteddir/ So, the user enter the code and passwd from a PHP form, then you redirect him with this syntax. But prefer redirection with a javascript, because M$ Explorer seems do not love this:

Re: [PHP] uploading file

2001-02-08 Thread Richard Lynch
// Creates the image file with a timestamp $timestamp = time(); $image= $timestamp.$picture_name; if ($PLATFORM == "windows") { $new_path = str_replace('^', '\\', $WINDOWS_PATH); What's with the "^"?... And, since \ is special in PHP, you are changing ^ to \? Why? echo $picture; if

Re: [PHP] AS400 SQL Errors and Resources

2001-02-08 Thread Richard Lynch
I reallize that the SQL syntax should be similar among all DB's which allow SQL, but there are slight differences amongst them. With that said, I have written an SQL statement to the AS400 and am getting errors back. So, and I don't have ANY, I need a site to visit where I can reference DB2

Re: [PHP] Mail-Encryption

2001-02-08 Thread Richard Lynch
I want to send mails via the "mail"-command which are encrypted and which uses the certificates used by Netscape Messenger and Outlook (if you export the files, it's extention is .p12). - How do I generate such keys (in general) ? Install gnupg (http://gnupg.org) or PGP and use

Re: [PHP] Need some Help! [:)]

2001-02-08 Thread Richard Lynch
Basically in a nutshell... i made a new row in post signature int(1) And you have a new column (you said row, you meant column) in members signature text?... Where are you storing the actual text and how is it related to 1 or 2 or is it always just 1?... If I'm confusing you, draw it out on

Re: [PHP] PHP mySQL

2001-02-08 Thread Richard Lynch
initial condition 1) three are many *html in my SQL ex:xxx.html,and yyy.html 2)I have domain ex: abc (ex: http://www.abc.com) 3)database name : aaa 4)table name :bbb I want to try next step. when I type in URL from brouze ,ex http://www.abc.com/xxx.html . I can get xxx.html from my

Re: [PHP] db forms creator?

2001-02-08 Thread Richard Lynch
Hi, can anyone point me towards an easy way to generate forms to update a mysql database? I think there's something called PHPGen that does this... myPHPAdmin or whatever it is does it in a generic sort of way, no? -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out?

Re: [PHP] *Animated* images. (repost)

2001-02-08 Thread Richard Lynch
I'm sorry for the repost, but the last one was misunderstood (i think). i'm looking for ways to generate *animated* images using PHP. Check if http://php.net/gd supports any animation. Get GD from http://www.boutell.com Install it. Recompile PHP --with-gd -- Visit the Zend Store at

Re: [PHP] movies manipulation??

2001-02-08 Thread Richard Lynch
i'm working on a web site where users will be able to upload movies. the problem is that i want to dinamicly create a movie preview. is it possibile, even with some external programs in other languages, to exetract a picture from o movie? QuickTime? AVI? What?... Anyway, try to find a

Re: [PHP] Creating another php file

2001-02-08 Thread Richard Lynch
$result2 = mysql_query("INSERT INTO winLoss(login, pass) VALUES('$login', '$pass')"); if($result2) { $fp = fopen ("/home2/colorado/public_html/profiles/$screen_name$ext", "w"); fwrite($fp, "?php $result = mysql_query("SELECT * from winLoss WHERE

Re: [PHP] content retrieval from mp3.com band pages - need help

2001-02-08 Thread Richard Lynch
Ok, I'm new to programming in PHP. What I'm trying to do is retrieve the song list with play links off of my bands' page at Mp3.com. Ultimately I want to build it into a function I can call with an array of song names and it will return the html formatted as I like COOL!!!

Re: [PHP] PHP4 Changelog

2001-02-08 Thread Richard Lynch
As I am working on the upgradation of my system into PHP 4.0 from the lower version, I want the Change log in a good format. A word document or some other good format which comprises the complete the Change log would be great for me to look through and do the upgradation process in the

Re: [PHP] Compile error w/ libextra.a (ranlib)

2001-02-08 Thread Richard Lynch
that this was merely the somewhat out of date and rarely seen _PHP2_ (phew, I guess...). So I need to get hosting support for this site up ASAP. I will need support for both PHP2 and PHP4 (which I will be converting the code to) and both msql and mysql (again, converting from the former to the

Re: [PHP] HTTP Authentication w/IIS

2001-02-08 Thread Richard Lynch
OK, I loaded PHP with the ISAPI filter, but still no luck with authentication.. Did you reboot? It is Windows... I think ?php phpinfo();? will tell you if you are actually using ISAPI or CGI or not... Maybe. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like

Re: [PHP] php_imap4r2.dll not loaded ?!?! (win2k)

2001-02-08 Thread Richard Lynch
I'm trying to use some POP3 functions and the manual states I would need to use the IMAP functions. So I uncommented the ";extension=php_imap4r2.dll" line in my "c:\winnt\php.ini" file. But it gave me the following error: "Unable to load dynamic library './php_imap4r2.dll' - The specified

Re: [PHP] email function's sender

2001-02-08 Thread Richard Lynch
Since I've set sendmail_path to /var/qmail/bin/inject in php3.ini, all emails coming from the http client come from me, i.e. my email address on our server, and not from the apache client name, http ... What's wrong in my conf ... qmail comes with a sendmail wrapper, so you may want to use that

Re: [PHP] Connectivity to AS/400

2001-02-08 Thread Richard Lynch
I'm going to be trying to connect to the native DB2 database in a AS/400 So far thats all I know about the IBM side. Can someone give me a short update on what options I have ? Option 1. ODBC bridge/whatsit from OpenlinkSW.com, EasyODBC.org (?) or that other one I always forget. Option 2.

Re: [PHP] FDF Toolkit uncompression error

2001-02-08 Thread Richard Lynch
I've downloaded the FDF toolkit from adobe (fdftk4_05_C.tar.Z) and it doesn't uncompress. I've noticed that other people are using it. Has anyone else experianced this same problem and if so what was your work around. Have you been able to uncompress other .Z files, or just .gz?...

Re: [PHP] Possible bug in pg_connect (4.0.3.pl1) ?

2001-02-08 Thread Richard Lynch
$conexion2 = pg_Connect("host=$servidor user=$usuario password=$pass dbname=$bd port=$puerto"); and this one does not ? $conexion2 = pg_Connect("host=$servidor port=$puerto user=$usuario password=$pass dbname=$bd"); I always just copied the stuff in order... Does the manual

Re: [PHP] Using a background image with GD

2001-02-08 Thread Richard Lynch
Does anyone have an example or can someone tell me how to use a background image in GD? You build the image with the background and get another image, and do that CopyResized thing to copy the second onto the background. If I actually used GD before I might know the function names... --

Re: [PHP] PHPSESSID location?

2001-02-08 Thread Richard Lynch
Where is the temp session file held at? I have a script that uses sessions but I can't find the session file. My php.ini file indicates that the session.save_path = c:\php\sessiondata but there is not any files there when there should be. Change those \ to / and keep all the players happy. It

Re: [PHP] SELECT options is null or not an object

2001-02-08 Thread Richard Lynch
SELECT options is null or not an object Does anyone know why I get this error when selecting an option in the box? I think that's a JavaScript error message, no?... In a popup window rather than in the middle of your page... script language=javascript !-- function getDocID(form) var

Re: [PHP] MySQL previous next query

2001-02-08 Thread Richard Lynch
I need to build a query that needs to find the previous or next record in a database using a form. The records are numbered using a field called 'sb_num'. This field is initially set using the form. Would something like this work Next: Select 'field1', 'field2' from table order by sb_num

Re: [PHP] Generic cloner?

2001-02-08 Thread Richard Lynch
I'm wondering if there is an easy way to code a generic cloner at top level of object inheritance tree so that all descendents can follow? Or by nature the clone() function needs be implemented at final class def.? Thanks a lot! You could probably use something like: function

Re: [PHP] auto appending for each directory

2001-02-08 Thread Richard Lynch
I'm developing a web page with a directory structure like this: /main -/subject1/ --/subsubsect11 --/subsubsect12 --/subsubsect13 --/subsubsect14 --/subsubsect15 -/subject2/

Re: [PHP] COM?

2001-02-08 Thread Richard Lynch
Does Anyone know what needs to be installed on the server other than php 4.0.4 and IIS to instantiate COM Objects like Excel and word. If Excel and Word are COM objects, that's pretty much it, I should think... What magical incantation you have to type into: $word = new

Re: [PHP] Getting referrer page

2001-02-08 Thread Richard Lynch
Is there any way in straight HTML to get the page referred from and make a link out of it? Or is scripting languages, like my favorite, PHP, the only way to do that? SSI (Server Side Include) *might* be able to do it, and doesn't really quality as a scripting language in my book. You could

Re: [PHP] Is there a way to call php functions in perl? and vice versa

2001-02-08 Thread Richard Lynch
Is there a way to call php functions in perl? or call perl functions from PHP codes? ?php exec("/full/path/to/script.pl", $output, $error); while (list(,$line) = each($output)){ echo $line, "BR\n"; } if ($error){ echo "OS Error: $error. Usually

RE: [PHP] uploading file

2001-02-08 Thread Maxim Maletsky
Everyone say : "Good morning mr. Lynch" ! Man, I enjoy that, Cheers, Maxim Maletsky -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 5:41 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] uploading file // Creates the image file with a

Re: [PHP] reg-ex problem

2001-02-08 Thread Christian Reiniger
On Thursday 08 February 2001 07:40, Michael Dearman wrote: And the | is using '\d' and 'prem'. It probably should be "/(div\d)|prem/ Unless those parens are part of the expression. Then And after a second look, yea the \d is tightly bound to the div. But in confirming this, besides

RE: [PHP] PHP4 Changelog

2001-02-08 Thread Maxim Maletsky
Hey, you know ... you've made me just too curious about cutpasting. [sorry guys, I know it's [[[TOTALLY ::: OT]]] ] I have just succeeded doing it myself - I highlighted the text on php.net AND pasted it into word guess what : IT WORKED! and I CAN EVEN PRINT IT OUT!!! Is it that

RE: [PHP] PHP4 Changelog

2001-02-08 Thread Maxim Maletsky
Why don't you just [highlight] the text you need on php.net/ChangeLog-4.php - [CTRL+C], [paste] into a text editor, and then [cutpaste] into your M$ Word ? easy enough ... Cheers, Maxim Maletsky -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED]] Sent: Thursday, February

[PHP] PHP function using a WML variable from a select list as to access the right data in a MYSQL database

2001-02-08 Thread Kato Strandjord
I use apache server on win2000, php4, mysql and wml which I test local on my harddrive. The code under is working fine when I test it on emulators like UP SDK from phone.com. or other, but i have fooled it to use static variables which is not the solution i want. My problem is. How can I use my

Re: [PHP] uploading file

2001-02-08 Thread Phil Driscoll
Everyone say : "Good morning mr. Lynch" ! Hear Hear! I was all overcome with a wave of nostalgia :) Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] Events in HTML with PHP

2001-02-08 Thread Francesco Rossi
Hi, How i can use the event OnChange of a tag Select for run a php script ? Es. select name="myname" size="1" onchange="HOW?" Thank. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

[PHP] subscribe to the mailing list

2001-02-08 Thread harpreet kaur
Get free email and a permanent address at http://www.netaddress.com/?N=1 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] Access a printer via PHP

2001-02-08 Thread Ankur Verma
You cannot directly access a printer from a php script. but you can try locating a a command line utility which will print the data provided to it in the command line or a the contents of a filename provided in the command line to the printer connected to the server. If the data is quite large (

[PHP] Installing PHP on Redhat 7.0 ..

2001-02-08 Thread Petter
Hi. Does anyone know where i can find a step-by step installation guide for installing PHP on an Redhat 7.0 running apache ? Regards. Petter Dilling PHP Newbie :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

[PHP] can i install apache php-module AND php-cgi on the same windows-apache?

2001-02-08 Thread Sebastian Stadtlich
i need it, because i want to do some image genaration and that is broken in win32 in the apache module. i would like to have a different ending for these skripts that need to be executed as CGI... it would be easy possible with IIS, but i still would prefer apache, since with IIS there are

Re: [PHP] base dir

2001-02-08 Thread Martin A. Marques
El Jue 08 Feb 2001 01:44, Steve Werby escribi: "Brandon Orther" [EMAIL PROTECTED] wrote: I am sure this is a dumb/easy question but I can't seem to find it looking at the php manual... can someone tell me the function that gets the path of where the script is? Create a webpage

Re: [PHP] How to make PHP work in all sub-directories?

2001-02-08 Thread Martin A. Marques
El Jue 08 Feb 2001 05:34, SED escribi: Hi, Im hosting a PHP-doc in sub-directorie (http://myserver/subdirectory/) on my IIS server Win2000 but it doesn't run, though it runs in the root (http://myserver/). Is there something in the PHP.ini to config (and how) or is it something else? NO!

[PHP-CVS] cvs: php4 /ext/mnogosearch php_mnogo.c test.php

2001-02-08 Thread Sergey Kartashoff
gluke Thu Feb 8 05:33:36 2001 EDT Modified files: /php4/ext/mnogosearch php_mnogo.c test.php Log: Added UDM_PARAM_SEARCHTIME result parameter. Now at least mnoGoSearch-3.1.10 required to use this module. Added some parameters aliases. Example

Re: [PHP] Installing PHP on Redhat 7.0 ..

2001-02-08 Thread Michael Hall
RedHat 7.0 should have rpm packages for PHP4 ( mod_php and standalone rpms). Do rpm -q php and rpm -q mod_php to see if PHP4 is already installed. If not, find them in the rpm directory of your CD. Then just install the rpm. The mod_php package is what you want for setting PHP up as a DSO with

[PHP] Weird one--PHP parsing jpg image!?

2001-02-08 Thread dphillips
Our site, under construction, displays a gallery of jpeg images. We're using Apache with PHP 4.0.2 compiled in, on Windows 98SE. At one point we recall our page with $PHP_SELF, and it generates a URL like http://localhost/php/php.exe/sandbox/gallery_demo.php. The weird thing is that some of

Re: [PHP] Variable quantity chooser.

2001-02-08 Thread David VanHorn
I'm sure I can help you, but I'm not able to follow your terminology. What's a "quantity chooser" and what's a "slider"? Are you referring to select boxes? I'm not trying to be rude, I just don't understand what you're referring to. I'm confident you can accomplish what you want using a

Re: [PHP] Parse WML to PHP?

2001-02-08 Thread Chris Adams
On 8 Feb 2001 06:24:20 -0800, Kato Strandjord [EMAIL PROTECTED] wrote: How is it possible to parse a WML strin variable with a value="SO480", and parse over to a PHP strin variabl , so you can use it to in a PFP function. I get a error messages in M3gate WAP emulator, an UP SDK emulator telling

[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-02-08 Thread Rasmus Lerdorf
rasmus Thu Feb 8 06:21:13 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Doc account for Jin Tae-Young Index: CVSROOT/avail diff -u CVSROOT/avail:1.76 CVSROOT/avail:1.77 --- CVSROOT/avail:1.76 Thu Feb 8 06:17:37 2001 +++

Re: [PHP] ora error

2001-02-08 Thread Mark
First guess is correct, yeah I did use the cool ora_plogin thing I'm only doing selects so why do I need to do any commits -Mark ""Richard Lynch"" [EMAIL PROTECTED] wrote in message 09ab01c091b8$3e6b4000$[EMAIL PROTECTED]">news:09ab01c091b8$3e6b4000$[EMAIL PROTECTED]... Oracle Error: 2042

[PHP-CVS] cvs: CVSROOT / cvsusers gen_acl_file.m4

2001-02-08 Thread Rasmus Lerdorf
rasmus Thu Feb 8 06:26:08 2001 EDT Modified files: /CVSROOTcvsusers gen_acl_file.m4 Log: Doc account for Ingmar Heinrich Index: CVSROOT/cvsusers diff -u CVSROOT/cvsusers:1.205 CVSROOT/cvsusers:1.206 --- CVSROOT/cvsusers:1.205 Thu Feb 8 06:21:13

[PHP] Passing arrays as arguments to a method

2001-02-08 Thread rodrigo
Is it possible to pass arrays as arguments to class methods? If so, how? What is the proper syntax and things to look out for. Thanks in advanced. -- Ivan R. Quintero E.* (507)228-3477 Aptdo 1263 * (507)228-9105 Balboa, Ancon * 640-0370

[PHP-CVS] cvs: CVSROOT / cvsusers gen_acl_file.m4

2001-02-08 Thread Rasmus Lerdorf
rasmus Thu Feb 8 06:31:48 2001 EDT Modified files: /CVSROOTcvsusers gen_acl_file.m4 Log: PEAR account for Björn Schotte Index: CVSROOT/cvsusers diff -u CVSROOT/cvsusers:1.206 CVSROOT/cvsusers:1.207 --- CVSROOT/cvsusers:1.206 Thu Feb 8 06:26:08

[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-02-08 Thread Rasmus Lerdorf
rasmus Thu Feb 8 06:45:36 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Change waldschrott to andre Index: CVSROOT/avail diff -u CVSROOT/avail:1.77 CVSROOT/avail:1.78 --- CVSROOT/avail:1.77 Thu Feb 8 06:21:13 2001 +++

Re: [PHP] Previous Next problems !!

2001-02-08 Thread Steve Werby
"Niel Zeeman" [EMAIL PROTECTED] wrote: I'm looking for a way to have a "next 10 records" "previous 10 records" type of sinario, extracting records from a database. Now the only problem is that I want to do it in Interbase. I know mysql has a seek option and a method of only returning a

Re: [PHP] Variable quantity chooser.

2001-02-08 Thread Steve Werby
"David VanHorn" [EMAIL PROTECTED] wrote: Sorry, I've been away from this for a while. Let me peel back a bit. When I generate the form, I pull up from the db, the quantity on hand, and the quantity already committed to orders. So: $max=$quantity-$commit is the maximum number I can allow

[PHP] Re: [PHP-WIN] Re: [PHP] RE: [PHP-WIN] MSSQL Functions

2001-02-08 Thread Toby Miller
Frank, That worked like a charm. I just copied the ntwdblib.dll that comes with the PHP 4 binaries to the Winnt/System32 directory so the MSSQL functions are now working on a machine without the need to install MSSQL Server or Client. You just saved me from having to do a whole web site with the

[PHP] optimizing mysql with php

2001-02-08 Thread Patrik Wallstrom
What settings should I have if I would like to optimize PHP without exhausting my MySQL db? There is the mysql.max_persistent setting, which is on a per process level. Should I set this low, to 10 perhaps? If it's unlimited, PHP will just eat up another persistent connection until MySQL is

Re: [PHP] COM?

2001-02-08 Thread Tim Knip
The magical incantations: "Word.Application" etc.. - Original Message - From: "Richard Lynch" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 08, 2001 10:31 AM Subject: Re: [PHP] COM? Does Anyone know what needs to be installed on the server other than php 4.0.4

Re: [PHP] PHP File Uplaod Path

2001-02-08 Thread Shane McBride
Dhaval, You really do not nee to be concerned about the temp directory, but if you are, you can wite a little script (if your not the sysadmin) to find this out. Actually it tells you a ton of useful info. Here it is: ? phpinfo(); ? Name it phpinfo.php or whatever you like, upload it to the

Re: [PHP] Passing arrays as arguments to a method

2001-02-08 Thread Chris Lee
Ive seen posts like this before ( 'how do I pass arrays as arguments to functions?' ) this is quite simple, nothing at all has to be done. ?php class test { function test($array) { foreach($array as $pos = $val) echo "$pos : $val br\n"; } } $arr[] = 'chris '; $arr[] = 'lee ';

[PHP-CVS] cvs: php4 /ext/domxml php_domxml.c php_domxml.h

2001-02-08 Thread Uwe Steinmann
steinm Thu Feb 8 07:12:16 2001 EDT Modified files: /php4/ext/domxmlphp_domxml.c php_domxml.h Log: - add domxml_unlink_node(), not tested Index: php4/ext/domxml/php_domxml.c diff -u php4/ext/domxml/php_domxml.c:1.26 php4/ext/domxml/php_domxml.c:1.27

Re: [PHP] UserAUTH from webform

2001-02-08 Thread Chris Lee
Please explain more... IE, Netscape, Opera, Lynx, blah blah blah allways send the PHP_AUTH_USER / PHP_AUTH_PW if there is a user / pw to send. this works on a per domain name bases. ie. if I was on www.mediawaveonline.com and had to enter a username / passwd then anywhere I go on

[PHP] Converting CFML to PHP

2001-02-08 Thread Kevin Queen
List, I have been given the task of converting all of our current ColdFusion pages to PHP, I am wondering if there is some kind of converting tool out there for this. I don't need 100% accuracy as I can/will fix any errors, I am just looking for the easiest way to convert 500+ files. TIA,

[PHP] splitting a class across separate files?

2001-02-08 Thread Monte Ohrt
I have a class with many functions. About 80% of these functions are rarely used, so I'd like to split them out to a separate file and include them only if a certain condition applies. This way the PHP compiling is kept to a minimum. How do I make the included functions members of the current

[PHP] COM - get existing instance?

2001-02-08 Thread Tim Knip
Is it possible to grab a running instance of for example Word? In VisualBasic-words: can you use 'GetObject' instead of 'CreateObject'? The latter is done by : $word = new Com("Word.Application") this creates a NEW instance, however i want to get an already running instance. Possible? --

[PHP] Php (mysql) different char-sets

2001-02-08 Thread Siim Einfeldt aka Itpunk
Is it possible to make three textareas on one page (of course it is, but read til the end, you`ll get the point) and let the user type into each box in a different language with different charsets. For example, lets say I want to insert three versions of one text on one page (without

Re: [PHP] splitting a class across separate files?

2001-02-08 Thread Chris Lee
Its called inheritance. rarley.php ?php class rarley_used { function one() { } function two() { } } ? main_class.php ?php include_once('rarley.php'); class main_class extends rarley_used { function three() { } function four() { } } ? -- Chris Lee

[PHP] gif support

2001-02-08 Thread Pablo Martin De Natale
Hello! I've installed php4 like apache module, with enable gd. But I have't got gif support. How can I install php with gif support? Thanks Pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] radiobutton

2001-02-08 Thread Miguel Loureiro
Hello, I have sometging like this: input type="Radio" name="radio1" value=? echo $opt1 ?"Opt1 how I know if some user choose some radiobutton??? I tried if($opt1) , but without success T.Y. Miguel Loureiro [EMAIL PROTECTED]

Re: [PHP] gif support

2001-02-08 Thread Chris Lee
the 'gif' format is owned and controled by compuserve, it is a copyrighted format, it is not an open format. This is why your finding no 'gif' support in php. old old versions of gd do have 'gif' support built-in (this was before all the lawsuits) I would not recommend this older version of gd,

Re: [PHP] radiobutton

2001-02-08 Thread Reuben D Budiardja
Try this: if($radio1 == $opt1) { do whatever } rdb At 04:39 PM 2/8/01 +, Miguel Loureiro wrote: Hello, I have sometging like this: input type="Radio" name="radio1" value=? echo $opt1 ?"Opt1 how I know if some user choose some radiobutton??? I tried if($opt1) , but without

Re: [PHP] splitting a class across separate files?

2001-02-08 Thread Christian Reiniger
On Thursday 08 February 2001 17:13, Chris Lee wrote: Its called inheritance. rarley.php ?php class rarley_used { ? main_class.php ?php include_once('rarley.php'); class main_class extends rarley_used Other way round (rarely_used extends main_class) :) -- Christian Reiniger

Re: [PHP] include(blah.php?var=this); doesn't work?!

2001-02-08 Thread Rasmus Lerdorf
Uh, why? Adding ?asin$asin makes absolutely no sense in an include since included files share the same namespace as the parent file. You can simply do: $asin = 123; include 'book_reviews.php'; And the $asin variable will be accessible to you book_reviews.php script. -Rasmus On Thu, 8 Feb

Re: [PHP] Super SQL problem! Please advise!

2001-02-08 Thread Sandeep Hundal
thanks for the tip steve. i read up on left joins, and got this: SELECT diary.id, diary.thedate, diary.topic, diary.entry FROM diary LEFT JOIN comments ON diary.id = comments.id; but it only joins the two tables. What I need is only 1 column from the second table, counted. Something like this,

[PHP] Passing files to a browser

2001-02-08 Thread Rob Root
HI, I am having problems passing files through to a browser. First I tried: ?php $fp = fopen("test.pdf", "r"); header("content-type: application/pdf"); fpassthru($fp); fclose($fp); ? And got an Acrobat instance with no file displayed. Then I tried: ?php $fp =

Re: [PHP] include(blah.php?var=this); doesn't work?!

2001-02-08 Thread thor
You don't need to go through these hoops. Any include page you use will automatically use any variable that has been set in the master page. Thus, all you need to do is include the book_reviews.php page, and the $asin variable will work in that one IF it has been set in the master file. If

[PHP] Should this work?

2001-02-08 Thread szii
foreach($some2DArray as $refToArrayRow) { } It won't even parse with an error of bParse error/b: parse error, expecting `T_VARIABLE' or `'$'' in b./myFile.php/b on line b473/bbr Can you not use a reference within a foreach loop? With the removed, it works fine but then when I update the

Re: [PHP] Super SQL problem! Please advise!

2001-02-08 Thread Steve Werby
"Sandeep Hundal" [EMAIL PROTECTED] wrote: thanks for the tip steve. i read up on left joins, and got this: SELECT diary.id, diary.thedate, diary.topic, diary.entry FROM diary LEFT JOIN comments ON diary.id = comments.id; but it only joins the two tables. Right. It took care of your main

RE: [PHP] include(blah.php?var=this); doesn't work?!

2001-02-08 Thread Rasmus Lerdorf
Adding ?asin=$asin doesn't make much sense but do it like this: include('book_reviews.php?asin=' . $asin); Which makes just as little sense. Included files share the same namespace as the file doing the including. You don't pass arguments to included files. -Rasmus -- PHP General

[PHP] Testing CONNECTION Speed

2001-02-08 Thread Matias Banzas
Is there any way to do this?? i mean.. test the connection speed of a client machine??? Thanks Matias [EMAIL PROTECTED] -- 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

[PHP] Getting MIME-type of file

2001-02-08 Thread Tobias Talltorp
After a lot of searching on the mailing list and different resources I have come up with... nothing. My question: Can I get the MIME-type of a file using PHP? (image/gif, text/plain, application/octet-stream, ect.) Thanks, // Tobias -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: PHP as Scripting Language

2001-02-08 Thread Bill Rausch
"#!/usr/local/bin/php -q" doesn't quite do it for me. Here's what I get before and after adding the -q. $ cat xxx.php #!/usr/local/bin/php ?php echo "hello world\n"; ? $ xxx.php X-Powered-By: PHP/4.0RC2 Set-Cookie: PHPSESSID=d74e5e80abcf1d2898588b595dc751d5 Expires:

[PHP] RE: Events in HTML with PHP

2001-02-08 Thread Foley, John
Javascript to call another page (or at least URL) that is a php file . . . I have JavaScript OnChange examples, if you need it. -Original Message- From: Francesco Rossi [SMTP:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 5:17 AM To: [EMAIL PROTECTED] Subject:

[PHP] Regex Matching

2001-02-08 Thread Andrew Rush
in Perl, i do thusly: $adtext = "This is a {test} john.smith\@mail.mainetoday.com"; $email = $1 if($adtext=~/(\{.*\})/); print "email = $email\n\n"; and i get back "email = "test". i then do thusly in PHP: $f=fopen($test_name, "r");

Re: [PHP] Testing CONNECTION Speed

2001-02-08 Thread Adam Knight
Only with the assistance of JavaScript. 1) Make a session 2) Log the start time (server) 3) Send a large graphic (200K) 4) BODY onLoad='document.location="your/script.php"' 5) Log finish time when the user comes back (check for a session, blah blah). 6) Do the math (200 * 1024 / ($stop-$start) =

[PHP] XSLT

2001-02-08 Thread Chris Lee
sablotron seems to be converting br/ to br is this normal? its not valid XHTML. index.xsl ?xml version='1.0' encoding='utf-8'? xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xsl:output method='html' indent='yes' encoding='utf-8' / xsl:template match='/menu'

Re: [PHP] Passing files to a browser

2001-02-08 Thread Christian Reiniger
On Thursday 08 February 2001 18:43, Rob Root wrote: ?php $fp = fopen("test.txt", "r"); header("content-type: text/plain"); fpassthru($fp); fclose($fp); ? And got: Hello, World br bWarning/b: 1 is not a valid File-Handle resource in

RE: [PHP] Passing files to a browser

2001-02-08 Thread Javier Muniz
Actually, if you read the manual entry for fpassthru, it states that the filehandle will be closed by fpassthru upon reading. So you're trying to close your filehandle twice... get rid of the fclose($fp) at the end and you should be fine. -jm -Original Message- From: Christian Reiniger

[PHP] Any image drawing tutorials anywhere?

2001-02-08 Thread John Guynn
I am rapidly coming to the conclusion that I need to be able to draw a fairly simple image (.gif or .jpg doesn't matter) with PHP to get Netscape to display it correctly. Can anyone point me to a tutorial? Thanks in advance, John Guynn This email brought to you by RFCs 821 and 1225. -- PHP

Re: [PHP] Getting MIME-type of file

2001-02-08 Thread Tobias Talltorp
Oops, I forgot to mention the most important part... I need to get the MIME-type (or something that can identify the file-extension) from a file ALREADY on the server, not posted through a form. I.e. How do I get the MIME-type of "tobias.zip" in my folder? I already know how to get the MIME-type

[PHP] PHP not sending email

2001-02-08 Thread Paulson, Joseph V. \Jay\
Hello everyone- I'm having a small problem with PHP not sending email anywhere using the mail() function. Here are my settings for sending mail in the php.ini file (PHP version 4.03pl1 - OS Solaris) [mail function] SMTP= localhost ;for win32 only

[PHP] interoperating with perl

2001-02-08 Thread Britton
I have some web agent type stuff to do for which there are some handy perl modules. I can just wrap them in scripts and system() them of course, but I though I'd check if there is some more elegant approach to integrating with perl before I do that? Thanks, Britton -- PHP General Mailing

Re: [PHP] can i install apache php-module AND php-cgi on the same windows-apache?

2001-02-08 Thread Alex Akilov
Sebastian, I see no reason why you couldn't. I believe at one time I had CGI, Apache and Servlet all serving up PHP using different extensions in Apache on Win32. However, it's been a while so don't hold me to it. Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Form posted?

2001-02-08 Thread Steve Werby
"rodrigo" [EMAIL PROTECTED] wrote: Is there a function that can tell me whether a form was posted? There's an Apache environment variable. $REQUEST_METHOD. Returns "GET" or "POST". Do ?php phpinfo(); ? in your script for more good stuff. -- Steve Werby COO 24-7 Computer Services, LLC Tel:

Re: [PHP] PHP auth... a little help :)

2001-02-08 Thread Chris Lee
This is the file I include, works for me. cookie.egn just sets the session variable 'SessionID' and database.egn just has my fetch_db_value functions. Email me if you have any more questions. http://www.php.net/manual/en/features.http-auth.php ? include_once('cookie.egn');

[PHP] security help

2001-02-08 Thread Thor M. Steindorsson
Should this be possible? I know this isn't an issue with php, but since I used php to do this, I figured maybe someone here has encountered the same thing, and knows how to help. Is this something that can be fixed by making some changes on the linux server? By using this: ? echo "pre";

Re: [PHP] Getting MIME-type of file

2001-02-08 Thread James, Yz
Oops, I forgot to mention the most important part... I need to get the MIME-type (or something that can identify the file-extension) from a file ALREADY on the server, not posted through a form. I.e. How do I get the MIME-type of "tobias.zip" in my folder? I already know how to get the

  1   2   >