Re: [PHP] USERNAME

2001-12-06 Thread Rasmus Lerdorf
Not that I have ever used HyperWave, but a 3 second glimpse at the manual would seem to indicate that you get a HyperWave connect by calling hw_connect(). -Rasmus On 7 Dec 2001, Chamarty Prasanna Kumar wrote: Hi All, Want to know the usage of hw_getusername(int connection);

[PHP] Re:[PHP] USERNAME

2001-12-06 Thread Rasmus Lerdorf
by the apache server.ie., we are using password protecting directory by apache. Thanks in advance, Kumar. On Fri, 07 Dec 2001 Rasmus Lerdorf wrote : Not that I have ever used HyperWave, but a 3 second glimpse at the manual would seem to indicate that you get a HyperWave

Re: [PHP] Version To Version

2001-12-07 Thread Rasmus Lerdorf
You probably used different ./configure flags to build the two. Neither MySQL nor GD/PNG stopped working for me going from 4.0.4 to 4.0.6. -Rasmus On Fri, 7 Dec 2001, Robert Covell wrote: A question about different release versions of PHP. Why do things like png from gd 1.8 work in

Re: [PHP] are this bug fixed ?

2001-12-07 Thread Rasmus Lerdorf
Not really a bug. If you do not trust users who are writing scripts on your system, you are basically out of luck. There are all sorts of things you can do in a PHP script that will chew away on system resources. -Rasmus On Fri, 7 Dec 2001, Alawi wrote:

Re: [PHP] Costum Error Page

2001-12-08 Thread Rasmus Lerdorf
Just put a phpinfo() call in your 404.php page and see for yourself. On Sat, 8 Dec 2001, Daniel Urstöger wrote: Opps, sorry, I had a bug, now I have this problem: Browser is showing this URL: http://yourdomain.com/play/404.php and so the REQUEST_URI is: /play/404.php But I would need

Re: [PHP] How do I check GD version?

2001-12-08 Thread Rasmus Lerdorf
This mail got rather long, so here are my 3 questions in a short version: 1) What is GD? (fore use with imagecopyresampled function) GD is an image library. You need GD version 2.0.1 or higher to use imagecopyresampled(). 2) How can I run a function that will tell me what version of GD

Re: [PHP] PHP XML

2001-12-07 Thread Rasmus Lerdorf
No, you need to disable short_tags and use ?php ... ? for all your PHP tags if you are going to mix PHP and XML tags in the same file. -Rasmus On Fri, 7 Dec 2001, Steve Haemelinck wrote: Hi Guys I am developing with PHP and XML. Now I experience some problem with the processing

Re: [PHP] Setting Cookies

2001-12-10 Thread Rasmus Lerdorf
Yes, setting and cookie and redirecting in the same request is not reliable. Some browsers can do it sometimes, others can't. -Rasmus On Mon, 10 Dec 2001, Steve Osborne wrote: I am attempting to use the SetCookie command. I receive the following error: Warning: Cannot add header

Re: [PHP] Template class

2001-12-10 Thread Rasmus Lerdorf
What's the point of something like this? Just to type { instead of ? doesn't seem like any sort of benefit to me. -Rasmus On Mon, 10 Dec 2001, Wolfram Kriesing wrote: (just in case any of the people on PEAR-DEV will read this at all, since everyone must be tired of the template class

Re: [PHP] How to use gd/php with no freetype?

2001-12-10 Thread Rasmus Lerdorf
Yes, you are out of luck without Freetype. You need to install Freetype, then build GD against that and then finally build PHP against that Freetype-enabled GD. As for your second question, the ImageTTFText() function takes the TTF font filename as an argument. See php.net/imagettftext

Re: [PHP] Generating PDF...

2001-12-11 Thread Rasmus Lerdorf
dpi doesn't really apply to a PDF file unless your PDF file has embedded images in which case the dpi of these images would affect your output. And PHP is fine for generating PDF with. See http://php.net/pdf -Rasmus On Tue, 11 Dec 2001, Johan Holst Nielsen wrote: Hi, I just have some

Re: [PHP] Version 4.1.0's New Input Mechanism

2001-12-11 Thread Rasmus Lerdorf
The arrays $_GET, $_POST, $_COOKIE, $_SERVER contain exactly the same data as the arrays $HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $HTTP_SERVER_VARS. Try this to see for yourself: Yes, the new names are just to give people a shorter auto-global mechanism to access this same data.

Re: [PHP] PHPhish Logo

2001-12-12 Thread Rasmus Lerdorf
Not that I think PHP needs a mascot, but I have always liked the mole/groundhog. Someone even drew up some logos based on that at some point. See: http://cvs.php.net/~rasmus/logo1.gif http://cvs.php.net/~rasmus/logo2.gif http://cvs.php.net/~rasmus/logo3.gif

Re: [PHP] Cookie

2001-12-12 Thread Rasmus Lerdorf
How is exactly is SetCookie() broken? Compare your header() call to the same SetCookie() calls and you will see that yours produces: Set-Cookie: username=Rasmus; expires=Wed, 12-Dec-2001 21:58:55 GMT; path=/; domain=www.php.net Set-Cookie: password=d41d8cd98f00b204e9800998ecf8427e;

Re: [PHP] Beginner's CURL

2001-12-12 Thread Rasmus Lerdorf
You need to escape the ? or simply grab it directly using curl -O http://us2.php.net/distributions/php-4.1.0.tar.gz (yes, using the mirrors is a good thing) -Rasmus On Wed, 12 Dec 2001, Weston Houghton wrote: Ok, So I'm an admitted newbie to using CURL, and idea why this doesn't work?

Re: [PHP] Need PHP 4.0.3pl1

2001-12-12 Thread Rasmus Lerdorf
All source releases are tagged in CVS and can be checked out of cvs. See http://cvs.php.net and the cvs man page. As for a Windows binary, just build it from those sources. -Rasmus On Wed, 12 Dec 2001, Gaylen Fraley wrote: This build is not on php.net. I need both the linux source and the

Re: [PHP] PHP APACHE Authenticate

2001-12-13 Thread Rasmus Lerdorf
Are you sure you want to send an external POST request to a PHP script on the same server? That doesn't make a whole lot of sense to me. Why not simply include file1_1.php4 directly from file_1.php4. However, assuming you have some logical reason for wanting to do this, it is rather simple.

Re: [PHP] Antialiasing with GD..?

2001-12-13 Thread Rasmus Lerdorf
The jpgraph graphing package written in PHP has such an anti-aliasing line draw routine written in PHP and it isn't actually that slow. Check it out at http://www.aditus.nu/jpgraph/ -Rasmus On Thu, 13 Dec 2001, Phil Driscoll wrote: On Wednesday 12 December 2001 8:35 am, Jan Maska wrote:

Re: [PHP] The peacock logo... and others...

2001-12-13 Thread Rasmus Lerdorf
The O'Reilly animal for PHP is a cuckoo bird. On Thu, 13 Dec 2001, Philip Hallstrom wrote: Not to throw a wrench into the plans and it's not clear that it really matters, but O'Reilly uses a peacock for an XML book. http://www.oreilly.com/catalog/xmlnut/ and a pelican for this book.

RE: [PHP] The peacock logo... and others...

2001-12-13 Thread Rasmus Lerdorf
, 13 Dec 2001, Jack Dempsey wrote: True...guess everyone's forgotten the ol' pocket manual... Any chance a new edition will come out? -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 13, 2001 2:30 PM To: Philip Hallstrom Cc: [EMAIL

RE: [PHP] The peacock logo... and others...

2001-12-13 Thread Rasmus Lerdorf
months though. -Rasmus On Thu, 13 Dec 2001, Jack Dempsey wrote: Oh great, I didn't realize there was full book in the making...any ideas on when the full book will be hitting the shelfs? -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 13

Re: [PHP] HTTP_REFERER is missing in SSL

2001-07-27 Thread Rasmus Lerdorf
I have a frameset that runs on a SSL enabled server that has two frames in it. One of the source is the local machine and the other one is a (outsourced asp !!) script in another machine without SSL. The non SSL one requires HTTP_REFERER to make sure it was hit from the authorized server.

Re: [PHP] Sessions Question

2001-07-28 Thread Rasmus Lerdorf
session_register($refresh); session_register($seconds); session_register($title); You probably want to remove the $ signs in the above. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] Get when it should be Post

2001-08-01 Thread Rasmus Lerdorf
I've been having a problem of late that some of my forms which are set to method=post are not submitting by post by via get. I have seen browsers that only do post when it sees, method=POST ie. POST vs. post -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] Get when it should be Post

2001-08-01 Thread Rasmus Lerdorf
Then you have some silly mistake somewhere. Show us the URL. -Rasmus Thanx, tried capitals but it still submits via GET :-/ Rasmus Lerdorf wrote: I've been having a problem of late that some of my forms which are set to method=post are not submitting by post by via get. I have seen

Re: [PHP] How to Compare dates?

2001-08-02 Thread Rasmus Lerdorf
if ( ( mysql_result($db_result,$db_record,'order_date')=00) Uh, huh? Just try ==0 there. Not =000 -Rasmus -- 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] shtml or php ??

2001-08-02 Thread Rasmus Lerdorf
Which is the best language to use, php or shtml, I use only a couple of SSI commands in shtml to call in headers and footers, and run cgi scripts as below. I thought maybe as I am getting more into php that I should change the files from shtml to php, and use the equivalent commands to call

Re: [PHP] shtml or php ??

2001-08-03 Thread Rasmus Lerdorf
I have tried the virtual() command but keep receiving error - undefined function, can someone give an example in how to use this ? virtual() only works if you are running PHP as an Apache module. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] file downloads

2001-08-04 Thread Rasmus Lerdorf
Why does this code produce a page cannot be displayed error? Your query is probably wrong. Comment out the header stuff and add some error checking to your query. ?php mysql_connect(localhost,username,password); mysql_select_db(database); $query = SELECT file_path from photos where

Re: [PHP] file downloads

2001-08-04 Thread Rasmus Lerdorf
I made the changes you suggested and it's still a no go. I'm sure of the query because print img src=\$path\; Will display the image I'm trying to download. How does that make the SQL query valid? You didn't implement the mysql_query() error checking I suggested. That's likely what is

Re: [PHP] when i start apache have some problem

2001-08-04 Thread Rasmus Lerdorf
Syntax error on line 205 of /etc/httpd/conf/httpd.conf: Cannot load /var/www/libexec/libphp4.so into server: undefined symbol: gss_mech krb5 /var/www/bin/apachectl start: httpd could not be started any one can help? Add --with-kerberos to your PHP configure line -Rasmus -- PHP General

Re: [PHP] PHP + GD 2.0.1

2001-08-04 Thread Rasmus Lerdorf
Has anyone got PHP successfully compiled and using GD 2.0.1? If so what was your configure line please and any other changes you had to make in order to get PHP to compile. Thanks. Build gd-2.0.1 with these two lines in your GD2 Makefile: CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LIBJPEG

Re: [PHP] Is there a setInterval function in PHP?

2001-08-04 Thread Rasmus Lerdorf
Yes, see http://php.net/declare -Rasmus On Sat, 4 Aug 2001, Zlutarch G. wrote: Hi, I couldn't find a similar function in the official documentation. Does anyone know if there is a setInterval function in PHP? i.e., making repeated calls to a function separated by a given time period. Is

Re: [PHP] PHP + GD 2.0.1

2001-08-04 Thread Rasmus Lerdorf
Has anyone got PHP successfully compiled and using GD 2.0.1? If so what was your configure line please and any other changes you had to make in order to get PHP to compile. Thanks. Build gd-2.0.1 with these two lines in your GD2 Makefile: CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LIBJPEG

Re: [PHP] PHP + GD 2.0.1

2001-08-04 Thread Rasmus Lerdorf
[root@b gd-2.0.1] ~ make test gcc -I. -I/usr/include/freetype2 -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include gdtest.o -o gdtest -L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib libgd.a -lpng -lz -ljpeg -lfreetype -lm gcc: libgd.a: No such file or directory

Re: [PHP] PHP + GD 2.0.1

2001-08-04 Thread Rasmus Lerdorf
Make php failed: Make sure you don't have gd-1.x header files in /usr/local/include -Rasmus -- 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] md5 on different platform

2001-08-04 Thread Rasmus Lerdorf
excuse my ignorance on that field, but if I use md5 in a java server page (jsp), can I decrypt it in php ? Is the implemantation of md5 the same on both language ? Sure, but you don't decrypt md5. You md5 again and compare the two md5's -Rasmus -- PHP General Mailing List

Re: [PHP] spell checker

2001-08-05 Thread Rasmus Lerdorf
http://php.net/pspell On Mon, 6 Aug 2001, Justin French wrote: Hi, I know this is a biggie, but has anyone attempted to write a spell check (preferably english) in PHP? I'd LOVE something that can spell-check user-submitted text somehow, becuase I'm writing a fully dynamic news-based

Re: [PHP] file_exists bug?

2001-08-06 Thread Rasmus Lerdorf
As documented: http://php.net/clearstatcache -Rasmus On Mon, 6 Aug 2001, Ken Williams wrote: Am I an idiot? (View this message as text) html body ? $bIsFileOne = is_file(/tmp/test.txt); # Will be true cause test.txt will exist sleep (5); # Sleep while you telnet in and remove

Re: [PHP] PHP in corporate settings?

2001-08-09 Thread Rasmus Lerdorf
Just one point Java is actually open source, because you can get the source code for the JVM. It is not GPL what means that if you want to make money with it you have to pay for it (but after all Sun is a bussiness, and bussiness are for making money). Access to source code has very little

Re: [PHP] logging bandwidth

2001-08-12 Thread Rasmus Lerdorf
I am logging server activity to a MySQL database. Unfortunately, I have yet found a way to log the number of bytes being transferred to a visitor. The closest I've come to anything like that is apache_lookup_uri() but I'm not sure it's meant to handle such a thing. Does anyone know a

Re: [PHP] component library

2001-08-13 Thread Rasmus Lerdorf
as cold fusion (custom tags), can i made some component to reuse in all my script ? ?custom_tag()? is a function visible every where in PHP ? Yes can i developp a script with a name, and call this script by an include function and passing parameters ? You don't need to pass parameters

Re: [PHP] something about the documentation

2001-08-13 Thread Rasmus Lerdorf
The $link argument is optional. If you don't specify one it will just use the last one created. -Rasmus On Mon, 13 Aug 2001, Yamin Prabudy wrote: Hi there there is something missing in the documentation. in this case is about mysql here is the source that i paste from the website

Re: [PHP] PHP and Apache

2001-08-13 Thread Rasmus Lerdorf
I was wondering if any of you had a problem compiling Apache 1.3.20 with mod_php4? Because I can compile, make, make install for redhat 7.1 for php 4.0.6. When I run my configure script for apache i have --activate-module=src/modules/php4/libmodphp.a as one of the lines in the script. I

RE: [PHP] How to get the query string?

2001-08-13 Thread Rasmus Lerdorf
I'd like to get the query string the browser sends to the script. The problem is that since the $HTTP_POST_VARS (or $HTTP_GET_VARS ) is an associative array I can't use numbers to point to the elements of this array. This piece of code does not work: for

Re: [PHP] PHP and Apache

2001-08-13 Thread Rasmus Lerdorf
Then you didn't follow the steps in the INSTALL file exactly. Go back and start over. This stuff has been tested thousands of times. It works. -Rasmus On Mon, 13 Aug 2001, Jay Paulson wrote: yeah i've tried that too and i still get the same error(s) From: Rasmus Lerdorf [EMAIL PROTECTED

Re: [PHP] cgi and module?

2001-08-13 Thread Rasmus Lerdorf
Is there any way to use the --with-apxs and make the cgi version in the make? Nope, you need to do two separate builds. One using --with-apxs and one without. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP] Imlib Errors Still

2001-08-15 Thread Rasmus Lerdorf
Firstly When Imlib2 is compiled into PHP, how do I know (like should there be an entry in phpinfo() ) Of course. For an example see http://conf.php.net/info.php Secondly Whats the easiest way people have installed imlib2 into PHP. Im trying the way the (very small) INSTALL file

Re: [PHP] Ldap package.

2001-08-15 Thread Rasmus Lerdorf
Install OpenLDAP (www.openldap.org) On Thu, 16 Aug 2001, Johan Vikerskog (ECS) wrote: I am going to install a LDAP package for my apache-mysql-php web interface. The question is. What ldap package to use and how to do it. Is there anything else i should de except for: --with-ldap=ldap

Re: [PHP] to set file tye at apache module using htaccess

2001-08-16 Thread Rasmus Lerdorf
If you just want to set this for a single file, just use a Location /path/filename ForceType application/x-httpd-php /Location in your httpd.conf file. .htaccess files are generally evil and should be avoided if you have control over your httpd.conf file. Note that the mime-type. There is no

Re: [PHP] to set file tye at apache module using htaccess

2001-08-16 Thread Rasmus Lerdorf
In response to Rasmus, I need to make this for all html files under a domain, not just one file. Is there anyway to do this? Sure, in your httpd.conf file look for your VirtualHost block for the dmain and add: AddType application/x-httpd-php .html -Rasmus -- PHP General Mailing List

Re: [PHP] MYSQL_SOCKET

2001-08-16 Thread Rasmus Lerdorf
the variable MYSQL_SOCKET is set to /tmp/mysql.sock and i need it to be /var/lib/mysql/mysql.sock is there anyway i can set this variable in php? From http://php.net/mysql_connect : resource mysql_connect ([string hostname[:port][:/path/to/socket] [, string username [, string password]]])

Re: [PHP] Need to dynamically globalise variables

2001-08-16 Thread Rasmus Lerdorf
Use the $GLOBALS array. On Thu, 16 Aug 2001, Tom Hodder wrote: I have a function like this... function register_db_to_globals( $row ) { while( list( $key, $val) = each( $row ) ) { global $$key; // (I've tried this with $key as well

Re: [PHP] Oracle module installation

2001-08-16 Thread Rasmus Lerdorf
I am under the (possibly flawed) assumption that you need to have the oracle client installed on the web server in order to use the oracle PHP module. Since I don't want to use the client on this machine at all, I would prefer to use the Perl DBI/DBD modules to connect to the

Re: [PHP] MYSQL_SOCKET

2001-08-16 Thread Rasmus Lerdorf
? thanks, jay - Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: Jay Paulson [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; php [EMAIL PROTECTED] Sent: Thursday, August 16, 2001 2:45 AM Subject: Re: [PHP] MYSQL_SOCKET the variable MYSQL_SOCKET is set to /tmp/mysql.sock and i

Re: [PHP] Problem with a query? or Syntax?

2001-08-16 Thread Rasmus Lerdorf
The site is (www.passive-aggressive.org/pic_archive.php). The problem only happens when i select 08 as the month (i have a dropdown in which 08 is an invalid octal number which will evaluate to 0 -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] hacks we should know about

2001-08-16 Thread Rasmus Lerdorf
hi i found it very helpful to know about hacks such as the below list and was wondering if anyone had any more dumb mistakes they could tell us before we make them. 1. http://www.somesite.com/source.php3?url=/etc/passwd 2. http://www.somesite.com?page=../../../../etc/passwd 3. not setting

Re: [PHP] hacks we should know about

2001-08-16 Thread Rasmus Lerdorf
rasmus, if password.inc is being parsed by php then how would you get the code??? won't it just be a blank page??? oh i thought up one more ... Include files are written to be included. They are tested and debugged in the scope of the file that is including it. Parsing such an include file

Re: [PHP] Is there a special character I here? (Regular Expressions)

2001-08-16 Thread Rasmus Lerdorf
I am starting on php, coming from Perl. One thing I really like on the way we can use regex in Perl is the shorthand: \w -- [a-zA_Z0-9_] \W -- [^a-zA_Z0-9_] \d -- [0-9] \D -- [^0-9] \s -- white space characters ... Is this shorthand handled in php? Sure, all the preg* functions take

Re: [PHP] GD - ttf without anti-aliasing

2001-08-17 Thread Rasmus Lerdorf
How can I create images with gd, so that the text (true type font) written on it will not be anti-aliased? Supposedly by using a negative colour index. Although I have had limited success with that. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] GD - ttf without anti-aliasing

2001-08-17 Thread Rasmus Lerdorf
Read the documentation: http://php.net/imagettftext This stuff is not a secret. -Rasmus On Fri, 17 Aug 2001, Tobias Strauß wrote: What's a negative color index and how can I use it? My code so far is: header (Content-type: image/png); $img = imagecreate (200, 200); $fontcolor =

Re: [PHP] Can I turn this error off?

2001-08-17 Thread Rasmus Lerdorf
Turn off E_NOTICE in your php.ini file. On Fri, 17 Aug 2001, Rene Fournier wrote: Just started learning PHP/MySQL a couple days ago, and would like to know if I can somehow suppress the following error: Warning: Undefined variable: submit in c:\Program Files\Apache

Re: [PHP] Protecting include files

2001-08-18 Thread Rasmus Lerdorf
Files ~ \.inc$ Order allow,deny Deny from all /Files On Mon, 14 Aug 2000, Sid wrote: Hi, I have a php script which includes .inc files. Is there any way in which I can prevent a normal surferfrom viewing these files. Is there any command that I can add to a .htaccess file. Thanks

Re: [PHP] Accessing an array of objects

2001-08-18 Thread Rasmus Lerdorf
echo $test[1]-variable; Get rid of the quotes, they are useless and just confuse the parser. -Rasmus -- 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:

Re: [PHP] Count total

2001-08-19 Thread Rasmus Lerdorf
On Sun, 19 Aug 2001, Martin Kampherbeek wrote: Hi, Who can help me with the following problem? I have the tables score and totalscore. Score: id userid name score Totalscore: userid name totalscore In the table score one user can have mutiple scores. But in totalscore the

Re: [PHP] crop string?

2001-08-20 Thread Rasmus Lerdorf
basename() On Mon, 20 Aug 2001, Jeremy Morano wrote: Hi, I would like to know how to crop this string from this, $string = \home\folder1\folder2\page1.php to this $string = page1.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] The future of PHP

2001-08-22 Thread Rasmus Lerdorf
So, the jist is, what does PHP have to offer to the web in the future? I think it's still a viable option that will be around for at least another 6-7 years. This kid thinks it's shelf life is another 3. What do ya'll think? Personally I would be a hell of a lot more worried if I was in

Re: [PHP] File Upload and NT...

2001-08-24 Thread Rasmus Lerdorf
Try putting it in a directory that doesn't have a space in it. On Fri, 24 Aug 2001, Joseph Koenig wrote: Sorry, I know file uploads are asked about all the time... I'm having an odd problem on a WinNT system. When I try to do my upload, I test the file to see the type of it: $image_info =

Re: [PHP] The future of PHP

2001-08-24 Thread Rasmus Lerdorf
So, it is very hard to convince the anybody to bet all the farm in PHP. You may have the technical arguments, but is not enough, I'm afraid. You in particular, may not need to convince others to bet on PHP, but it is nothing like that for most people that want to live from software

Re: [PHP] multi-dimensional array won't echo

2001-08-25 Thread Rasmus Lerdorf
The first echo statement doesn't work, the second does. Anybody know why? $string1=15; $string2=27; $myarray[$string1][$string2]=syncopated; echo $myarray[$string1][$string2]br /\n; //displays Array[27] echo $myarray[$string1][$string2] . br /\n; //displays syncopated Complex

Re: [PHP] Safe mode + /usr/share/php

2001-08-25 Thread Rasmus Lerdorf
A recent feature addition (4.0.7) is a safe_mode_include_dir php.ini directive where you can do exactly this. -Rasmus On Sun, 26 Aug 2001, Artyom Plouzhnikoff wrote: Is it possible to use safe mode yet allow all scripts to include any files from /usr/share/php? Normal users ain't gonna

Re: [PHP] disable_functions....

2001-08-25 Thread Rasmus Lerdorf
Any php.ini directive can be used in your httpd.conf on a per-dir basis. See the manual.. -Rasmus On Sat, 25 Aug 2001, Andy Ladouceur wrote: Does anyone know if its possible to use disable_functions on only specified directories, and not all? Hopefully its possible.. -- PHP General

Re: [PHP] POST without Content-Type?

2001-08-25 Thread Rasmus Lerdorf
Well, first of all, you are using an ancient version of PHP. That message was changed from a fatal error to a warning over a year ago. And if you really want to have PHP accept non-typed POST data, it's an obvious one-line change in main/SAPI.c -Rasmus On Sat, 25 Aug 2001, Chris Maresca

Re: [PHP] Error while passing parameters as path

2001-08-25 Thread Rasmus Lerdorf
Are you running PHP 3 as a CGI? Things work/don't work a bit differently in CGI mode. -Rasmus On Sun, 26 Aug 2001, Anas Mughal wrote: All, I read the article by John Coggeshall on building search engine friendly pages. Now, I trying to pass my script parameters as path (instead of

RE: [PHP] Error while passing parameters as path

2001-08-26 Thread Rasmus Lerdorf
please point me where I could read on how to write dynamic loading PHP extensions. Thank you very much. P.S. I found one at http://www.webtechniques.com/archives/2001/01/junk/ Please let me know of any other good resources. Thanks. -Original Message- From: Rasmus Lerdorf

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

2001-08-27 Thread Rasmus Lerdorf
I love PHP, but for the following reason it could be the death of it. All the PHP intellectuals stand up, get together, and solve this problem, or at least give us some reassurance. (I'm only a newbie after all). :) This is solved by people who roll distributions. Debian, Mandrake, RedHat,

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] 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

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

2001-08-28 Thread Rasmus Lerdorf
That's not allowing me to simply dl() an SO file, because I don't have the SO file to start with - that's what I was trying to get at. If I have to reconfigure everything, there's not much point, I don't think. Unless I'm missing something obvious. I'd like to be able to simply have an

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

2001-08-28 Thread Rasmus Lerdorf
Exactly. When you do ./configure --with-foo=shared; make then modules/foo.so will appear magically and you can dl() that or load it using extension=foo.so in your php.ini. You don't have to recompile PHP. -Rasmus I am afraid that is only theory. I tried that for the snmp module

Re: [PHP] The future of PHP

2001-08-28 Thread Rasmus Lerdorf
These guys resort to these marketing tricks to promote Python as hell, and the PHP people just sits and waits doing almost nothing in comparision to promote PHP as hard as they can even when they lives depend on the acceptance of PHP as a wide spread language! Manuel, please, give this

Re: [PHP] The future of PHP

2001-08-29 Thread Rasmus Lerdorf
If you read my messages in the thread from the beginning you can see that basically the current problems of PHP in its acceptance are more with the people view of PHP than about its technical abilities. It is a known fact that PHP is very good for Web programming. The problem is that not

Re: [PHP] The future of PHP

2001-08-29 Thread Rasmus Lerdorf
The talks that you give are for people that already know about PHP. No they aren't. As I said in my message, the seminar series I did were specifically for people who knew nothing about PHP and it was presented alongside other technologies. But yes, the people would have to have had some

Re: [PHP] ZEND API

2001-08-29 Thread Rasmus Lerdorf
Hopefully someone here can help... I'm writing my own extension and using the Zend API docs at Zend.com. They are very vague on using resources. I can create them just fine, but the docs leave out exactly how access the resource data later. I've been looking at ext/curl/curl.c and

Re: [PHP] Decent Web Calendar With Moderated Public Postings

2001-08-30 Thread Rasmus Lerdorf
I'd like to find a good web calendar which will allow the general public to enter suggested events into a web calendar. I would want these suggested events to be moderated so that they can be verified. Does anyone know of a package that would allow this type of moderated public posting?

Re: [PHP] Serious Fopen Problems - not newbie :)

2001-08-30 Thread Rasmus Lerdorf
Well, try it from the command line and strace it and see which errno the socket open call is giving you (you said you weren't a newbie). -Rasmus On Fri, 31 Aug 2001, Paul Procacci wrote: Hey all, I've been using php for a long time and never have I had a problem with fopen(). Everytime

Re: [PHP] access to the apache environment from the c-client builtinto PHP 4.0.x

2001-08-30 Thread Rasmus Lerdorf
Just do a putenv() from PHP? On Fri, 31 Aug 2001, Liam Hoekenga wrote: we're trying to get a krb4 c-client working with php built as an apache server module (either dso or static). we've hit a wall in that, c-client itself seems to have access to the environment in which apache was

Re: [PHP] Disbale function in certain virtual host

2001-08-31 Thread Rasmus Lerdorf
VirtualHost foo php_admin_value disable_functions strlen /VirtualHost On Fri, 31 Aug 2001, Nicolas Ross wrote: I am searching a way of disabling certain functions in a particular Virtual Host. I search through the archive of this list and I found a begening of a solution. I can disable

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

2001-08-29 Thread Rasmus Lerdorf
Being practical, the vast majority of serious PHP applications will be running on Linux. If you were to cover RedHat, and .rpm compatible distros such as SuSE, you would cover the requirements of perhaps the majority of users. But RedHat, SuSE, Mandrake, Debian and FreeBSD already have

Re: [PHP] Recursivly Updating Files

2001-09-03 Thread Rasmus Lerdorf
Why not just configure your server to use an auto_prepend_file ? On Mon, 3 Sep 2001, skater wrote: help!!! I'm recursivley reading and editing every .htm and .html file in a 1000 page website and upgrading it to contain linked CSS, Javascript includes and PHP includes. the script works

Re: [PHP] If PHP4 existed in 1995 we would of taken over the worldby now

2001-09-03 Thread Rasmus Lerdorf
What I am saying is that if php is always following or copying the technology that happened a couple years ago then what's the point? php will then always be known as the low cost option and project managers won't even give it a second look. What I am looking for is the cool factor. I know

Re: [PHP] Newbie Question: Converting PHP3 files to PHP4?

2001-09-03 Thread Rasmus Lerdorf
Just configure your server to serve up .php3 files as PHP 4. ie. add this line to your httpd.conf file: AddType application/x-httpd-php .php .php3 And get rid of your other AddType line. -Rasmus On Mon, 3 Sep 2001, Michelle Marcicki wrote: Hi there, I have recently taken over the

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

2001-08-29 Thread Rasmus Lerdorf
Hi folks I asked my ISP to flesh out their negative comments about adding libraries to PHP. This is their reply - is there anything in this, or are they misunderstanding the situation? We run servers. We want to compile stuff from source, for obvious reasons! As such, the question is

Re: [PHP] tinyweb and PHP4

2001-09-04 Thread Rasmus Lerdorf
Since TinyWeb support CGI execution and provides a semi-standard set of cgi environment variables the CGI version of PHP should work just fine with it. You probably just need to associate .php with the php.exe executable and stick your PHP scripts in the /cgi-bin directory. It also supports

RE: [PHP] Making gd Extensions

2001-09-04 Thread Rasmus Lerdorf
That's quite a rational response... The most common problem people have when building GD support is that they download their own version of GD, but leave the system version of GD and PHP picks up the system header files instead of the desired ones and things get confused. Building PHP with GD

Re: [PHP] Assign multiple variables from mysql_fetch_row() call

2001-09-04 Thread Rasmus Lerdorf
In perl I can say something like: ($var1, $var2) = $sqh-fetchrow_array() to assign column values to more than one variable at a time. So I tried similar syntax with PHP: ($var1, $var2) = mysql_fetch_row($sqh); but could not seem to work it out. I know you can do this with a

Re: [PHP] Assign multiple variables from mysql_fetch_row() call

2001-09-04 Thread Rasmus Lerdorf
You wrote: ($var1, $var2) is magic. I hate magic. It's not magic. It's just simpler. What do you look up in the Perl manual when you hit syntax like that? http://www.perldoc.com/perl5.6/pod/perldata.html I said what not where. I still maintain that if you don't know where to look,

Re: [PHP] accessing a global in a function???

2001-09-04 Thread Rasmus Lerdorf
http://www.php.net/manual/en/language.variables.scope.php On Tue, 4 Sep 2001, Aaron Moore wrote: Sorry about the newbie question. I have a config.php file which contains a string which I would like a function to access. How do i make it global so that it can do so. Thanks for your help

Re: [PHP] pdflib?

2001-09-05 Thread Rasmus Lerdorf
You need a call to pdf_open_file($pdf) before you can start doing anything. -Rasmus On Wed, 5 Sep 2001, Daniel Andersson wrote: hello had everything working and fine. when i went back to the page today, nothing worked. i can (almost) bet my sack on that i haven't changed any code.

Re: [PHP] returns (functions)

2001-09-05 Thread Rasmus Lerdorf
I have a foreach loop running in a function. During the foreach loop, if a variable matches another variable, it does return $variable. My question is this: does the function automatically stop running when the variable is returned? Yes -- PHP General Mailing List (http://www.php.net/) To

<    3   4   5   6   7   8   9   10   11   12   >